/* Volbycz – volební kalkulačka Aliance pro budoucnost
   Barvy strany se mění jen v :root (--brand, --brand-ink, --brand-soft). */

/* Písma hostovaná lokálně (OFL) – rychlejší načtení a žádné volání Google Fonts. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f2eee4;
  --paper-deep: #e7e0d0;
  --card: #fbf9f4;
  --ink: #0f1b2d;
  --ink-soft: #4a5366;
  --rule: #d8d0bf;
  --brand: #1d3bd6;      /* TODO: barva Aliance pro budoucnost (změnit i ve favicon.svg) */
  --brand-ink: #ffffff;
  --brand-soft: #e2e7fb;
  --agree: #17744f;
  --agree-soft: #dbeee4;
  --neutral: #85600f;
  --neutral-soft: #f2e7cb;
  --disagree: #b3322b;
  --disagree-soft: #f5dedb;
  --caution: #f2c230;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 0 rgba(15, 27, 45, .06), 0 12px 32px -14px rgba(15, 27, 45, .28);
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .06 0 0 0 0 .1 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 50;
  background: var(--ink); color: var(--paper);
  padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* ---------- Záhlaví ---------- */

/* Jemný vzor z volebních křížků za záhlavím a nadpisem, směrem dolů mizí. Barva se bere z --brand. */
body { position: relative; }
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; z-index: -1;
  height: clamp(340px, 46vw, 500px);
  background-color: var(--brand); opacity: .1; pointer-events: none;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M11.5 11.5l7 7M18.5 11.5l-7 7' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"), linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-size: 30px 30px, 100% 100%;
  -webkit-mask-composite: source-in;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M11.5 11.5l7 7M18.5 11.5l-7 7' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"), linear-gradient(to bottom, #000 30%, transparent);
  mask-size: 30px 30px, 100% 100%;
  mask-composite: intersect;
}

.site-header {
  position: relative; z-index: 1;
  background: var(--ink); color: #fff;
  border-bottom: 4px solid var(--brand);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px;
  min-height: 68px; padding-block: 10px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  position: relative; flex: none;
  width: 30px; height: 30px;
  border: 2.5px solid #fff; border-radius: 7px; background: #fff;
  box-shadow: 3px 3px 0 var(--brand);
}
.brand-mark::before,
.brand-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 3.5px; height: 30px; border-radius: 2px; background: var(--brand);
  transform: translate(-50%, -50%) rotate(45deg);
  animation: brand-draw .5s cubic-bezier(.2, .7, .2, 1) .2s both;
}
.brand-mark::after { transform: translate(-50%, -50%) rotate(-45deg); animation-delay: .45s; }
@keyframes brand-draw { from { height: 0; } }
.brand-title {
  font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.015em;
  white-space: nowrap;
}
.brand-year { color: color-mix(in srgb, var(--brand) 45%, #fff); }
.header-date {
  flex: none; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .2);
  font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .78); white-space: nowrap;
}
@media (max-width: 480px) {
  .site-header .wrap { min-height: 56px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-mark { width: 24px; height: 24px; border-width: 2px; border-radius: 6px; box-shadow: 2px 2px 0 var(--brand); }
  .brand-mark::before, .brand-mark::after { width: 3px; height: 25px; }
  .brand-title { font-size: 1rem; }
  .header-date { padding-left: 12px; font-size: .8rem; }
  .hide-sm { display: none; }
}

.demo-banner {
  padding: 8px 16px;
  text-align: center; font-weight: 700; font-size: .9rem;
  color: var(--ink);
  background: repeating-linear-gradient(-45deg, var(--caution) 0 14px, #e6b01b 14px 28px);
  border-bottom: 2px solid var(--ink);
}

/* ---------- Obecné ---------- */

main { flex: 1; }
#app { outline: none; overflow-x: clip; } /* animace otázky nesmí na mobilu vyvolat vodorovný posuvník */
.screen { padding-block: clamp(20px, 4vw, 36px) clamp(40px, 6vw, 72px); }

.reveal {
  opacity: 0; transform: translateY(14px);
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(var(--d, 0) * 80ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.eyebrow {
  margin: 0 0 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}

.display {
  margin: 0; outline: none;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: .98; letter-spacing: -.035em;
}
.lead { max-width: 46ch; margin: 18px 0 0; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); }

.btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .15s ease, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(15, 27, 45, .5); }
.btn:active { transform: none; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.link-btn {
  appearance: none; cursor: pointer;
  padding: 8px 4px; border: 0; background: none;
  font: inherit; color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--ink); }

/* ---------- Nadpis stránky ---------- */

.intro { padding-top: clamp(22px, 4vw, 44px); }
.page-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.75rem, 4.4vw, 3.1rem); line-height: 1.02; letter-spacing: -.03em;
  text-wrap: balance;
}
.page-title .hl { color: var(--brand); }
.page-title .title-sub { display: block; margin-top: .14em; font-size: .6em; font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }

/* ---------- Úvodní obrazovka ---------- */

.intro { transition: padding .5s cubic-bezier(.2, .7, .2, 1); }
.page-title { transition: font-size .5s cubic-bezier(.2, .7, .2, 1); }
.intro-start { display: none; }

.is-welcome .intro {
  display: flex; flex-direction: column; justify-content: center;
  min-height: min(74vh, 700px);
  padding-block: clamp(36px, 8vh, 96px);
}
.is-welcome .page-title { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: .96; }
.is-welcome .intro-start {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  margin-top: clamp(28px, 5vh, 48px);
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) .1s both;
}
.btn-start { padding: 16px 30px; font-size: 1.15rem; border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-start:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-start:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-start .arrow { display: inline-block; transition: transform .2s ease; }
.btn-start:hover .arrow { transform: translateX(4px); }
.intro-meta { font-size: .98rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- Otázka ---------- */

.q-count { margin: 0 0 10px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.progress { display: flex; gap: 4px; margin-bottom: clamp(28px, 5vw, 48px); }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--rule); transition: background .3s; }
.progress span.done { background: var(--ink); }
.progress span.skipped { background: repeating-linear-gradient(90deg, var(--ink-soft) 0 3px, transparent 3px 6px); }
.progress span.current { background: var(--brand); }

.q-anim { animation: slide .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes slide { from { opacity: 0; transform: translateX(28px); } }

.q-body { display: grid; grid-template-columns: minmax(0, 180px) 1fr; align-items: start; gap: 12px 36px; }
.q-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4.5rem, 14vw, 9.5rem); line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 2px var(--ink);
  font-variant-numeric: tabular-nums;
}
.q-topic { margin: 0 0 10px; font-size: .95rem; font-weight: 700; color: var(--brand); }
.q-text {
  margin: 0; outline: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.015em;
}
.q-context { margin-top: 16px; color: var(--ink-soft); }
.q-context summary { cursor: pointer; width: fit-content; font-weight: 600; color: var(--ink); }
.q-context summary:hover { color: var(--brand); }
.q-context-body { max-width: 72ch; margin-top: 12px; padding: 16px 0 4px; border-top: 1px solid var(--rule); }
.q-context[open] .q-context-body { animation: rise .35s cubic-bezier(.2, .7, .2, 1) both; }
.q-context-body p { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--ink); }
.q-args { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 16px 0 0; }
.q-arg dt { font-size: .82rem; font-weight: 700; letter-spacing: .01em; }
.q-arg-pro dt { color: var(--agree); }
.q-arg-con dt { color: var(--disagree); }
.q-arg dd { margin: 4px 0 0; font-size: .96rem; line-height: 1.55; }
.q-context-body .q-asof { margin-top: 16px; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 720px) {
  .q-args { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .q-body { grid-template-columns: 1fr; }
  .q-num { font-size: 3rem; }
}

.answers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(28px, 5vw, 44px); }
@media (max-width: 720px) { .answers { grid-template-columns: 1fr 1fr; } }

.answer {
  appearance: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border: 2px solid var(--rule); border-radius: var(--radius);
  background: var(--card); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 1.1rem; text-align: left;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.answer:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.answer .box { position: relative; flex: none; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.answer .box::before,
.answer .box::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 3px; height: 0; border-radius: 2px; background: var(--brand);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: height .18s ease;
}
.answer .box::after { transform: translate(-50%, -50%) rotate(-45deg); transition-delay: .08s; }
.answer[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.answer[aria-pressed="true"] .box { border-color: var(--brand); }
.answer[aria-pressed="true"] .box::before,
.answer[aria-pressed="true"] .box::after { height: 34px; }
.answer kbd {
  margin-left: auto; padding: 1px 6px; border: 1px solid var(--rule); border-radius: 4px;
  font: 600 .75rem var(--font-body); color: var(--ink-soft);
}
@media (hover: none) { .answer kbd { display: none; } }

.q-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.importance { position: relative; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; user-select: none; }
.importance input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.importance .star {
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%; font-size: .9rem;
  transition: background .15s, color .15s;
}
.importance input:checked + .star { background: var(--ink); color: var(--caution); }
.importance input:focus-visible + .star { outline: 3px solid var(--brand); outline-offset: 3px; }
.q-actions { display: flex; align-items: center; gap: 8px; }

/* mikroanimace: stisk odpovědi, poskočení dílku postupu, hvězdička důležitosti */
.answer:active { transform: scale(.97); box-shadow: none; }
.progress span { transform-origin: center; }
.progress span.pop { animation: seg-pop .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes seg-pop { 40% { transform: scaleY(2.4); } }
.importance input:checked + .star { animation: star-pop .4s cubic-bezier(.2, .7, .2, 1.5); }
@keyframes star-pop { from { transform: scale(.5) rotate(-40deg); } }

/* ---------- Vyhodnocení ---------- */

.evaluating { display: grid; place-items: center; min-height: min(62vh, 520px); }
.eval { display: grid; justify-items: start; gap: 30px; }
.eval-mark {
  position: relative; width: 64px; height: 64px;
  border: 3px solid var(--ink); border-radius: 12px; background: #fff;
}
.eval-mark::before,
.eval-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 0; border-radius: 3px; background: var(--brand);
  transform: translate(-50%, -50%) rotate(45deg);
  animation: eval-draw 1.25s cubic-bezier(.5, 0, .2, 1) infinite;
}
.eval-mark::after { transform: translate(-50%, -50%) rotate(-45deg); animation-delay: .18s; }
@keyframes eval-draw {
  0% { height: 0; opacity: 1; }
  45%, 80% { height: 72px; opacity: 1; }
  100% { height: 72px; opacity: 0; }
}

.eval-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.eval-step {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.2rem, 2.8vw, 1.65rem); line-height: 1.2;
  color: var(--ink-soft); opacity: .22; transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease, color .35s ease;
}
.eval-step.is-active { opacity: 1; transform: none; color: var(--ink); }
.eval-check {
  position: relative; flex: none; width: 26px; height: 26px;
  border: 2px solid var(--rule); border-radius: 50%;
  transition: background .2s, border-color .2s;
}
.eval-step.is-active:not(.is-done) .eval-check { border-top-color: var(--brand); animation: eval-spin .7s linear infinite; }
.eval-step.is-done .eval-check { background: var(--ink); border-color: var(--ink); }
.eval-step.is-done .eval-check::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid var(--paper); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  animation: eval-tick .28s cubic-bezier(.2, .7, .2, 1.4);
}
@keyframes eval-spin { to { transform: rotate(360deg); } }
@keyframes eval-tick { from { opacity: 0; transform: rotate(45deg) scale(.3); } }

/* ---------- Výsledek ---------- */

.result-top { padding-top: 16px; border-top: 2px solid var(--ink); }
.result-context { margin: 0 0 20px; font-size: .95rem; color: var(--ink-soft); }

.result-grid {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ring text pct";
  align-items: center; gap: 16px clamp(20px, 4vw, 40px);
}
@media (max-width: 720px) {
  .result-grid { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ring pct" "text text"; }
}

.ring { grid-area: ring; position: relative; width: clamp(104px, 15vw, 152px); aspect-ratio: 1; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track, .ring-fill { fill: none; stroke-width: 5; }
.ring-track { stroke: var(--rule); }
.ring-fill {
  stroke: var(--brand); stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.1s cubic-bezier(.2, .7, .2, 1) .15s;
}
.ring-photo {
  position: absolute; inset: 11%; width: 78%; height: 78%;
  border-radius: 50%; object-fit: cover; background: var(--paper-deep);
}
.avatar-initials {
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  background: var(--paper-deep);
}
.ring .avatar-initials { font-size: clamp(1.5rem, 3vw, 2.3rem); }

.result-text { grid-area: text; min-width: 0; }
.result-heading {
  margin: 0; outline: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.02rem, 1.8vw, 1.25rem); line-height: 1.25; color: var(--ink-soft);
}
.result-name {
  display: block; margin-top: 2px;
  font-weight: 800; font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.02; letter-spacing: -.025em;
  color: var(--ink);
}
.result-role { margin: 8px 0 0; color: var(--ink-soft); }
.result-scope { margin: 6px 0 0; font-size: 1rem; font-weight: 500; }

.percent {
  grid-area: pct; justify-self: end; margin: 0; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.8rem, 12vw, 8rem); line-height: .85; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.percent small { margin-left: .05em; font-size: .38em; letter-spacing: 0; }

.result-summary { max-width: 60ch; margin: 24px 0 0; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.45; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }

.section-title {
  margin: clamp(44px, 7vw, 72px) 0 0; padding-top: 16px; border-top: 2px solid var(--ink);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; letter-spacing: -.02em;
}
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 6px; font-size: .92rem; color: var(--ink-soft); }
.legend .mk-cand { margin-left: 14px; }

.compare { margin: 0; padding: 0; list-style: none; }
.cmp {
  padding: 18px 0 16px; border-bottom: 1px solid var(--rule);
  animation: rise .5s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms + 200ms);
}
.cmp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 20px; }
.cmp-q { max-width: 62ch; margin: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.cmp-n { display: inline-block; min-width: 2em; color: var(--ink-soft); font-weight: 600; }
.cmp-imp { font-size: .85rem; font-weight: 600; color: var(--neutral); white-space: nowrap; }
.cmp-verdict { flex: none; margin: 0; font-size: .92rem; font-weight: 700; color: var(--ink-soft); }
.cmp.agree .cmp-verdict { color: var(--agree); }
.cmp.disagree .cmp-verdict { color: var(--disagree); }
@media (max-width: 560px) {
  .cmp-head { flex-direction: column; }
}

.scale {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 540px; margin: 14px 0 0;
}
.scale::before {
  content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 15px; height: 2px;
  background: var(--rule);
}
.scale-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scale-dot { display: flex; align-items: center; justify-content: center; height: 32px; }
.scale-dot:empty::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--rule); background: var(--card);
}
.scale-label { font-size: .8rem; line-height: 1.2; text-align: center; color: var(--ink-soft); }
.has-you .scale-label, .has-cand .scale-label { font-weight: 700; color: var(--ink); }

.mk { flex: none; width: 30px; height: 30px; border-radius: 50%; }
.mk-you {
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-size: .72rem; font-weight: 800; letter-spacing: .02em;
}
.mk-cand { object-fit: cover; border: 2px solid var(--brand); background: var(--paper-deep); }
.mk-cand.avatar-initials { font-size: .62rem; }
.has-you.has-cand .mk-you { position: relative; z-index: 1; box-shadow: 0 0 0 2px var(--card); }
.has-you.has-cand .mk-cand { margin-left: -6px; }
.cmp .mk {
  animation: mk-in .45s cubic-bezier(.2, .7, .2, 1.35) both;
  animation-delay: calc(var(--i, 0) * 45ms + 420ms);
}
.cmp .mk-cand { animation-delay: calc(var(--i, 0) * 45ms + 540ms); }
@keyframes mk-in { from { opacity: 0; transform: scale(.3); } }

.cmp-note { margin: 10px 0 0; font-size: .92rem; color: var(--ink-soft); }
.cmp-comment { max-width: 62ch; margin: 12px 0 0; font-size: .98rem; }


/* ---------- O kandidátovi ---------- */

.cand {
  --cand-accent: color-mix(in srgb, var(--brand) 40%, #fff);
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(44px, 7vw, 72px);
  border-radius: 24px;
  background: var(--ink); color: #fff;
}
/* světlé křížky v pravém horním rohu, stejný motiv jako v záhlaví */
.cand::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-color: #fff; opacity: .07;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M11.5 11.5l7 7M18.5 11.5l-7 7' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"), radial-gradient(circle at 85% 10%, #000, transparent 60%);
  -webkit-mask-size: 30px 30px, 100% 100%;
  -webkit-mask-composite: source-in;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M11.5 11.5l7 7M18.5 11.5l-7 7' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"), radial-gradient(circle at 85% 10%, #000, transparent 60%);
  mask-size: 30px 30px, 100% 100%;
  mask-composite: intersect;
}

.cand-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "head figure" "values values" "team team" "cta cta";
  column-gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 5vw, 60px) clamp(22px, 5vw, 60px) clamp(28px, 4vw, 48px);
}

.cand-head { grid-area: head; align-self: center; padding-bottom: clamp(24px, 4vw, 44px); }
.cand-kicker { margin: 0 0 12px; font-size: .95rem; font-weight: 600; color: rgba(255, 255, 255, .68); }
.cand-name {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.7rem, 6.4vw, 5rem); line-height: .92; letter-spacing: -.04em;
}
.cand-statement {
  margin: 20px 0 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.1; letter-spacing: -.02em;
}
.cand-statement em {
  font-style: normal; color: var(--cand-accent);
  background: linear-gradient(transparent 64%, color-mix(in srgb, var(--cand-accent) 30%, transparent) 64%);
}
.cand-lead { max-width: 46ch; margin: 16px 0 0; font-size: 1.06rem; line-height: 1.6; color: rgba(255, 255, 255, .78); }

/* fotka: hlava přesahuje přes modrý kruh, ramena kruh ořízne */
.cand-figure {
  grid-area: figure; position: relative; align-self: end; justify-self: center;
  width: min(100%, 360px); aspect-ratio: 1 / 1.2;
}
.cand-disc {
  position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 1;
  border-radius: 50%; background: var(--brand);
  box-shadow: inset 0 0 0 10px color-mix(in srgb, #fff 12%, transparent);
  outline: 2px solid color-mix(in srgb, var(--brand) 45%, #fff); outline-offset: 8px;
}
.cand-clip {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 41.67% 41.67%;
}
.cand-clip img {
  position: absolute; left: 50%; bottom: 0;
  width: 127%; max-width: none; height: auto;
  transform: translateX(-50%);
}

.cand-values {
  grid-area: values;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0; padding: clamp(26px, 4vw, 40px) 0 0; list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.cand-value { padding: 0 clamp(16px, 2.6vw, 30px); border-left: 1px solid rgba(255, 255, 255, .14); }
.cand-value:first-child { padding-left: 0; border-left: 0; }
.cand-value:last-child { padding-right: 0; }
.cand-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: var(--cand-accent); }
.cand-value-title { margin: 4px 0 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.01em; }
.cand-quote {
  margin: 0 0 12px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.12rem, 1.7vw, 1.3rem); line-height: 1.25;
}
.cand-text { margin: 0; font-size: .97rem; line-height: 1.58; color: rgba(255, 255, 255, .7); }

/* logo kandidátky místo portrétu */
.cand-figure--logo { aspect-ratio: 1; align-self: center; width: min(100%, 300px); }
.cand-logo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cand-accent) 70%, transparent), 0 24px 60px -24px rgba(0, 0, 0, .7);
}

/* tým kandidátky */
.cand-team {
  grid-area: team;
  margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(24px, 4vw, 36px);
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.cand-team-title { margin: 0 0 20px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.01em; }
.cand-team-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(16px, 3vw, 32px); margin: 0; padding: 0; list-style: none; }
.cand-member { display: grid; align-content: start; gap: 4px; }
.cand-member-figure { position: relative; display: block; width: 140px; aspect-ratio: 1 / 1.2; margin-bottom: 12px; }
.cand-member-figure .cand-disc { background: var(--cand-accent); outline: 0; box-shadow: none; }
/* výška místo šířky, aby vyšší fotka nepřetekla rámeček; horní okraj výřezu (vlasy) se ztratí do průhledna */
.cand-member-figure .cand-clip img {
  width: auto; height: 97%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
}
.cand-member-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.cand-member-role { font-size: .95rem; line-height: 1.45; color: rgba(255, 255, 255, .72); }

.cand-cta { grid-area: cta; margin: clamp(28px, 4vw, 40px) 0 0; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-soft); border-color: var(--brand-soft); }
.btn-light .arrow { display: inline-block; transition: transform .2s ease; }
.btn-light:hover .arrow { transform: translateX(4px); }

@media (max-width: 860px) {
  .cand-values { grid-template-columns: 1fr; }
  .cand-value, .cand-value:first-child, .cand-value:last-child { padding: 22px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .cand-value:first-child { padding-top: 0; border-top: 0; }
  .cand-value:last-child { padding-bottom: 0; }
}
@media (max-width: 640px) {
  .cand { border-radius: 18px; }
  .cand-inner { grid-template-columns: 1fr; grid-template-areas: "figure" "head" "values" "team" "cta"; }
  .cand-figure--logo { width: min(48%, 180px); }
  .cand-team-list { grid-template-columns: 1fr; gap: 18px; }
  .cand-member { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; align-items: center; align-content: center; }
  .cand-member-figure { grid-row: span 2; width: 96px; margin: 0; }
  .cand-figure { width: min(64%, 240px); justify-self: start; }
  .cand-head { padding-top: 22px; }
  .cand-cta .btn { width: 100%; justify-content: center; }
}

/* postupné odkrytí */
.cand .cand-disc { opacity: 0; transform: scale(.82); transition: opacity .5s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.cand .cand-clip img { opacity: 0; transform: translate(-50%, 12%); transition: opacity .6s ease .15s, transform .9s cubic-bezier(.2, .7, .2, 1) .15s; }
.cand .cand-head > * { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.cand .cand-head > :nth-child(2) { transition-delay: .08s; }
.cand .cand-head > :nth-child(3) { transition-delay: .16s; }
.cand .cand-head > :nth-child(4) { transition-delay: .24s; }
.cand .cand-value { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 110ms + .35s); }
.cand .cand-logo { opacity: 0; transform: scale(.85) rotate(-6deg); transition: opacity .5s ease, transform .8s cubic-bezier(.2, .7, .2, 1.2); }
.cand .cand-member { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 120ms + .6s); }
.cand.is-in .cand-disc,
.cand.is-in .cand-head > *,
.cand.is-in .cand-value,
.cand.is-in .cand-logo,
.cand.is-in .cand-member { opacity: 1; transform: none; }
.cand.is-in .cand-clip img { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Informace o volbách ---------- */

.info {
  margin-top: clamp(16px, 4vw, 40px);
  padding-block: clamp(40px, 7vw, 88px);
  border-top: 1px solid var(--rule);
  background: var(--card);
}
.info-wrap { display: grid; gap: clamp(48px, 7vw, 88px); }

.info-section {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 14px clamp(24px, 5vw, 64px);
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.info-section h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.05; letter-spacing: -.025em;
  text-wrap: balance;
}
@media (min-width: 861px) {
  .info-section h2 { position: sticky; top: 24px; align-self: start; }
}
@media (max-width: 860px) {
  .info-section { grid-template-columns: 1fr; }
}

.info-body { min-width: 0; }
.info-body p { max-width: 64ch; margin: 0 0 14px; font-size: clamp(1.03rem, 1.6vw, 1.12rem); line-height: 1.62; }
.info-body p:last-child { margin-bottom: 0; }
.info-body .info-lead { font-size: clamp(1.15rem, 2vw, 1.32rem); line-height: 1.45; }
.info-body h3 { margin: 26px 0 8px; font-size: 1.08rem; font-weight: 700; line-height: 1.3; }

.spec { margin: 22px 0 0; border-top: 1px solid var(--rule); }
.spec > div {
  display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: 4px 20px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.spec dt { font-weight: 700; }
.spec dd { margin: 0; }
.spec .times { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; }
.spec .time { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .spec > div { grid-template-columns: 1fr; }
}

.numbered { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: krok; border-top: 1px solid var(--rule); }
.numbered li {
  display: grid; grid-template-columns: 2.25rem 1fr; column-gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
  counter-increment: krok;
}
.numbered li::before {
  content: counter(krok) ".";
  grid-row: span 2;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.2;
}
.numbered h3 { margin: 0 0 4px; }
.info-body .numbered p { margin: 0; }

.deadlines { width: 100%; margin: 18px 0 20px; border-collapse: collapse; }
.deadlines caption { margin-bottom: 6px; text-align: left; font-weight: 700; }
.deadlines th, .deadlines td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.deadlines thead th { font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.deadlines tbody th { font-weight: 700; white-space: nowrap; }

.names { margin: 0; padding: 0; list-style: none; columns: 3 9rem; column-gap: 24px; }
.names li { padding: 3px 0; break-inside: avoid; }

.warning strong { color: var(--disagree); }

.q-list { max-width: 64ch; margin: 0 0 14px; padding-left: 1.4em; font-size: clamp(1.03rem, 1.6vw, 1.12rem); line-height: 1.5; }
.q-list li { padding: 4px 0; }
.qa-item { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.qa-item:first-child { border-top: 1px solid var(--rule); }
.qa-item h3 { margin: 0 0 6px; }
.info-body .qa-item p { margin: 0; }

.text-link {
  font-weight: 700; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.text-link:hover { color: var(--brand); }

.sources { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.sources a { color: inherit; text-underline-offset: 3px; }

/* ---------- Patička ---------- */

.site-footer { padding-block: 28px; border-top: 1px solid var(--rule); font-size: .88rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
}
