/* Volební kalkulačka — simple, elegant, Czech.
   Palette: deep indigo-blue (CZ flag blue), warm crimson accent, off-white paper. */

:root {
    --blue:        #11315e;
    --blue-soft:   #1d4a8a;
    --red:         #d7263d;
    --red-soft:    #e85d6c;
    --paper:       #f7f5f0;
    --paper-card:  #ffffff;
    --ink:         #1a1d24;
    --ink-soft:    #5a6270;
    --line:        #e4e0d6;
    --yes:         #2f8f5b;
    --no:          #d7263d;
    --neutral:     #9aa1ad;

    --radius:      16px;
    --radius-sm:   10px;
    --shadow:      0 1px 2px rgba(17,49,94,.06), 0 8px 24px rgba(17,49,94,.07);
    --shadow-lift: 0 4px 8px rgba(17,49,94,.08), 0 16px 40px rgba(17,49,94,.12);
    --font-serif:  'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* žádný vodorovný posun celé stránky na mobilu */
}

.bg-decoration {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 500px at 85% -5%, rgba(29,74,138,.10), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(215,38,61,.06), transparent 55%);
    pointer-events: none;
}

.wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    padding: 56px 0 36px;
    text-align: center;
}
.eyebrow {
    margin: 0 0 12px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
}
.site-header h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    color: var(--blue);
    letter-spacing: -.01em;
}
.subtitle {
    margin: 14px 0 0;
    font-size: 1.05rem;
    color: var(--ink-soft);
}

/* ---------- Cards ---------- */
.card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 20px;
}

.intro h2 {
    margin: 0 0 14px;
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--blue);
    font-size: 1.35rem;
}
.howto {
    margin: 0;
    padding-left: 1.2em;
    color: var(--ink-soft);
}
.howto li { margin-bottom: 6px; }
.howto strong { color: var(--ink); }
.disclaimer {
    margin: 18px 0 0;
    padding: 12px 16px;
    background: rgba(215,38,61,.07);
    border-radius: var(--radius-sm);
    color: var(--red);
    font-weight: 600;
    text-align: center;
    font-size: .92rem;
}

/* ---------- Questions ---------- */
.questions { margin: 0; }

.question {
    border: 1px solid var(--line);
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.question.answered {
    border-color: rgba(29,74,138,.35);
}
.question:focus-within {
    box-shadow: var(--shadow-lift);
}
.question legend {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 18px;
    padding: 0;
}
.q-num {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.answered .q-num { background: var(--yes); }
.q-text {
    font-family: var(--font-serif);
    font-size: 1.12rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.35;
    padding-top: 2px;
}

/* ---------- Options ---------- */
.options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.opt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 11px 6px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
    transition: all .15s ease;
}
.opt input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.opt:hover { border-color: var(--opt-color, var(--blue-soft)); color: var(--ink); }

/* Vybraná možnost dostane svou pastelovou barvu (--opt-color). */
.opt:has(input:checked) {
    color: var(--ink);
    background: var(--opt-color, var(--neutral));
    border-color: color-mix(in srgb, var(--opt-color, var(--neutral)) 70%, #000 8%);
    box-shadow: 0 4px 12px rgba(17,49,94,.14);
    transform: translateY(-1px);
    font-weight: 600;
}

.opt input:focus-visible + span {
    outline: 2px solid var(--blue-soft);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ---------- Actions ---------- */
.actions {
    position: sticky;
    bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,.92);
}
.progress-text {
    margin: 0;
    color: var(--ink-soft);
    font-size: .92rem;
}
#answered-count { font-weight: 600; color: var(--blue); }
.actions-buttons { display: flex; gap: 10px; }

.btn {
    font-family: var(--font-sans);
    font-size: .95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .15s ease;
}
.btn-primary {
    background: var(--blue);
    color: #fff;
}
.btn-primary:hover { background: var(--blue-soft); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    border-color: var(--line);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Results ---------- */
.results { scroll-margin-top: 20px; }
.results h2 {
    margin: 0 0 4px;
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--blue);
    font-size: 1.5rem;
}
.results-sub {
    margin: 0 0 24px;
    color: var(--ink-soft);
    font-size: .92rem;
}
.result-row {
    margin-bottom: 18px;
    animation: rise .4s ease both;
}
@keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.result-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 7px;
}
.result-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
}
.result-name .rank {
    display: inline-block;
    min-width: 1.4em;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}
.result-name .ref-tag {
    margin-left: 8px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--blue-soft);
    background: rgba(29,74,138,.1);
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: middle;
}
.result-pct {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--blue);
    font-variant-numeric: tabular-nums;
}
.bar {
    height: 12px;
    background: var(--paper);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-soft), var(--blue));
    width: 0;
    transition: width .9s cubic-bezier(.2,.8,.2,1);
}
.result-row.top .bar-fill {
    background: linear-gradient(90deg, var(--red-soft), var(--red));
}
.result-detail {
    margin-top: 6px;
    font-size: .82rem;
    color: var(--ink-soft);
}
.result-error {
    color: var(--red);
    text-align: center;
    font-weight: 500;
}

/* ---------- Comparison table (all parties' answers) ---------- */
.compare-toggle-wrap { margin-top: 24px; text-align: center; }
.cmp-scroll {
    margin-top: 18px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    -webkit-overflow-scrolling: touch;
}
.cmp-table { border-collapse: separate; border-spacing: 0; width: auto; min-width: 100%; font-size: .85rem; table-layout: auto; }
.cmp-table th, .cmp-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.cmp-table tr > *:last-child { border-right: none; }
.cmp-table thead th {
    position: sticky; top: 0; z-index: 3;
    background: var(--blue); color: #fff; font-weight: 600;
}
.cmp-table .cmp-party { min-width: 56px; text-align: center; }
.cmp-table .cmp-cell, .cmp-table thead .cmp-you, .cmp-table td.cmp-you { min-width: 52px; width: 56px; text-align: center; }
.cmp-q {
    position: sticky; left: 0; z-index: 2;
    text-align: left; white-space: normal;
    width: 240px; min-width: 200px; max-width: 280px;
    background: var(--paper-card); font-weight: 500;
    line-height: 1.3;
    border-right: 2px solid var(--line);
}
/* Plné krytí lepivého sloupce, aby přes něj nic neprosvítalo při scrollu */
.cmp-table thead .cmp-q, .cmp-table tbody .cmp-q { background-clip: padding-box; }
/* Text otázky v pevné šířce → zalomí se a nikdy nepřeteče do sloupce odpovědí */
.cmp-qtext { display: block; width: 216px; white-space: normal !important; overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
.cmp-table thead .cmp-q .cmp-qtext, .cmp-table thead .cmp-q { white-space: nowrap; } /* hlavička „Otázka“ */
.cmp-table thead .cmp-q { z-index: 4; background: var(--blue); }
.cmp-table tbody tr:nth-child(even) .cmp-q { background: #f6f4ef; }
.cmp-cell { text-align: center; }
.ans-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; height: 30px; padding: 0 7px;
    border-radius: 999px;
    background: var(--bg, var(--neutral));
    border: 1.5px solid color-mix(in srgb, var(--bg, var(--neutral)) 72%, #000 12%);
    color: color-mix(in srgb, var(--bg, var(--neutral)) 30%, #000 70%);
    font-weight: 700; font-size: .9rem; line-height: 1;
}
.cmp-you { background: rgba(29,74,138,.12); }
.cmp-table tbody .cmp-you { background: rgba(29,74,138,.05); }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 40px;
    padding: 32px 0 48px;
    text-align: center;
    color: var(--ink-soft);
    font-size: .88rem;
}
.site-footer .muted { color: var(--neutral); margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 540px) {
    /* Při skrytých textech necháme symboly v mřížce (vejdou se), s textem raději pod sebe */
    .present-options:not(.compact) { grid-template-columns: 1fr !important; }
    .present-options.compact { grid-template-columns: repeat(4, 1fr) !important; }
    .options { grid-template-columns: repeat(2, 1fr); }
    .opt-neutral { grid-column: span 2; }
    .card { padding: 20px; }
    .actions { flex-direction: column; align-items: stretch; text-align: center; }
    .actions-buttons { justify-content: center; }
}

/* =====================================================================
   MOBILE (telefon) — kompletní přizpůsobení prezentačního režimu
   ===================================================================== */
@media (max-width: 640px) {
    .stage { padding: 18px 14px; align-items: flex-start; }
    .slide { max-width: 100%; }

    /* Splash */
    .splash-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
    .splash-sub { font-size: 1rem; }
    .splash-meta { gap: 18px; }
    .btn-lg { width: 100%; padding: 15px 20px; }

    /* Otázka */
    .present-qtext { font-size: clamp(1.3rem, 6vw, 1.8rem); }
    .present-qdesc { font-size: .92rem; }

    /* Možnosti: s textem pod sebou (čitelné, velký cíl na prst),
       bez textu (compact) do mřížky symbolů */
    .present-options { gap: 10px; margin: 24px 0 14px; }
    .present-options:not(.compact) { grid-template-columns: 1fr !important; }
    .present-options:not(.compact) .present-opt {
        flex-direction: row; justify-content: flex-start; gap: 14px;
        padding: 14px 18px; text-align: left;
    }
    .present-options:not(.compact) .opt-symbol { width: 40px; height: 40px; font-size: 1.2rem; flex: 0 0 auto; }
    .present-options:not(.compact) .opt-label { font-size: 1.05rem; }
    /* compact (jen symboly): max 4 ve řadě, ať nejsou drobné */
    .present-options.compact { grid-template-columns: repeat(4, 1fr) !important; }

    /* Navigace — tlačítka na celou šířku, dobře se trefí */
    .present-nav { gap: 8px; }
    .present-nav .btn { flex: 1 1 auto; min-width: 0; padding: 13px 14px; }

    .imp-toggle { width: 100%; }

    /* Výsledky */
    .res-block { padding: 18px 16px; }
    .results-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
    .result-name { font-size: .95rem; }
    .result-pct { font-size: 1.1rem; }

    /* Radar se vejde a osový seznam do jednoho sloupce */
    .radar { max-width: 290px; }
    .radar-axis-list { columns: 1; }
    .radar-legend { gap: 6px; }
    .radar-leg-item { font-size: .82rem; padding: 5px 10px; }

    /* Srovnávací tabulka: užší sloupec otázky, menší kolečka, plynulý scroll */
    .cmp-qtext { width: 150px; }
    .cmp-q { width: 170px; min-width: 150px; max-width: 180px; }
    .cmp-table { font-size: .8rem; }
    .cmp-table th, .cmp-table td { padding: 7px 8px; }
    .ans-badge { min-width: 26px; height: 26px; font-size: .8rem; }

    /* Horní lišta */
    .topbar { padding: 10px 14px; gap: 10px; }
}

/* velmi úzké telefony */
@media (max-width: 380px) {
    .present-options.compact { grid-template-columns: repeat(3, 1fr) !important; }
    .splash-meta { flex-direction: column; gap: 8px; }
}

/* =====================================================================
   PRESENTATION MODE (fullscreen wizard)
   ===================================================================== */
body.present { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.topbar[hidden] { display: none; }
.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 20px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.bar-link {
    border: none; background: var(--paper); cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%;
    font-size: 1.1rem; color: var(--blue);
}
.bar-link:hover { background: var(--line); }
.progress-track { flex: 1; height: 8px; background: var(--paper); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-soft), var(--blue)); transition: width .35s ease; }
.progress-label { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-soft); font-size: .9rem; min-width: 56px; text-align: right; }

.stage { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.site-foot { flex-shrink: 0; }
.slide { width: 100%; max-width: 760px; opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease; }
.slide.slide-in { opacity: 1; transform: none; }

/* ---- Splash ---- */
.splash { text-align: center; }
.splash-title { font-family: var(--font-serif); font-weight: 600; color: var(--blue); font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; margin: 10px 0 0; }
.splash-sub { font-size: 1.15rem; color: var(--ink-soft); margin: 16px 0 0; }
.splash-meta { display: flex; gap: 28px; justify-content: center; margin: 26px 0; color: var(--ink-soft); }
.splash-meta strong { color: var(--blue); font-family: var(--font-serif); font-size: 1.3rem; }
.splash-how { color: var(--ink-soft); margin-bottom: 26px; }
.splash-how kbd { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: .82rem; }
.splash-disclaimer { margin-top: 32px; color: var(--red); font-weight: 600; font-size: .9rem; }
.splash-switch { margin-top: 24px; font-size: .9rem; }
.switch-link { color: var(--blue); margin: 0 6px; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }

/* ---- Question slide ---- */
.present-q { text-align: center; }
.present-qnum { font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.present-qtext { font-family: var(--font-serif); font-weight: 600; color: var(--ink); font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.2; margin: 14px 0 0; }
.present-qdesc { color: var(--ink-soft); margin: 14px auto 0; max-width: 560px; }

.present-options { display: grid; gap: 12px; margin: 36px 0 18px; }
.present-opt {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    border: 2px solid var(--line); background: #fff;
    border-radius: var(--radius);
    padding: 18px 14px; font: inherit; font-weight: 600; font-size: 1rem;
    color: var(--ink); cursor: pointer;
    transition: all .15s ease;
}
.opt-symbol {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--bg, var(--neutral));
    border: 2px solid color-mix(in srgb, var(--bg, var(--neutral)) 72%, #000 12%);
    color: color-mix(in srgb, var(--bg, var(--neutral)) 28%, #000 72%);
    font-size: 1.4rem; font-weight: 700; line-height: 1;
}
.opt-label { font-size: .95rem; }
/* Když je možnost vybraná (tlačítko má barvu pozadí), kolečko zesvětlíme na bílé */
.present-opt.is-sel .opt-symbol { background: rgba(255,255,255,.9); border-color: rgba(0,0,0,.12); }

/* Bez textu: celé tlačítko obarvené barvou volby, symbol vystředěný */
.present-opt.no-label {
    aspect-ratio: 1;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: var(--opt-color);
    /* Okraj odvozený z barvy boxu → u všech barev stejně výrazný (ne tmavší u šedé). */
    border: 2px solid color-mix(in srgb, var(--opt-color) 82%, #000 18%);
    box-shadow: 0 2px 6px rgba(17,49,94,.08);
}
/* Doubled-icon / multi-symbol wrapper — mezera mezi zdvojenými ikonami */
.sym-icons { display: inline-flex; align-items: center; line-height: 0; }
.sym-icons.gap-n > iconify-icon + iconify-icon { margin-left: .1em; }     /* normální */
.sym-icons.gap-t > iconify-icon + iconify-icon { margin-left: -.12em; }   /* těsně */
.sym-icons.gap-o > iconify-icon + iconify-icon { margin-left: -.42em; }   /* překryv */
.opt-symbol iconify-icon, .ans-badge iconify-icon { font-size: 1em; }
.opt-symbol .sym-icons { font-size: inherit; }
.present-opt.no-label .opt-symbol {
    width: auto; height: auto; border: none; background: transparent;
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    color: color-mix(in srgb, var(--opt-color) 26%, #000 74%);
}
.present-opt.no-label:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.present-opt.no-label.is-sel {
    box-shadow: var(--shadow-lift), 0 0 0 3px color-mix(in srgb, var(--opt-color) 55%, #000 16%);
    transform: translateY(-2px) scale(1.02);
}
.present-opt:hover { border-color: var(--opt-color); transform: translateY(-2px); box-shadow: var(--shadow); }
.present-opt.is-sel {
    background: var(--opt-color);
    border-color: color-mix(in srgb, var(--opt-color) 70%, #000 10%);
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

.imp-row { margin: 8px 0 20px; }
.imp-toggle {
    border: 1.5px dashed var(--line); background: transparent;
    border-radius: 999px; padding: 9px 18px; cursor: pointer;
    font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink-soft);
    transition: all .15s ease;
}
.imp-toggle.is-on { background: rgba(224,163,22,.14); border-style: solid; border-color: #e0a316; color: #b07d10; }

.present-nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

.present-loading { text-align: center; }
.spinner {
    width: 42px; height: 42px; margin: 0 auto 16px;
    border: 4px solid var(--line); border-top-color: var(--blue);
    border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Results screen ---- */
.results-screen { text-align: center; }
.results-title { font-family: var(--font-serif); font-weight: 600; color: var(--blue); font-size: clamp(2rem,5vw,3rem); margin: 8px 0 0; }
.results-sub { color: var(--ink-soft); margin: 10px 0 0; }
.res-block { margin-top: 36px; text-align: left; background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.res-block > h2 { margin: 0 0 18px; font-family: var(--font-serif); font-weight: 600; color: var(--blue); font-size: 1.3rem; }
.match-legend .legend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.match-legend .legend-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.match-legend .legend-card h3 { margin: 0 0 8px; font-family: var(--font-serif); font-weight: 600; color: var(--blue); font-size: 1.05rem; }
.match-legend .legend-card p { margin: 0 0 8px; color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.match-legend .legend-card p:last-child { margin-bottom: 0; }
.match-legend .legend-ex { background: var(--paper-card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: .88rem; }
.match-legend .legend-ex strong { color: var(--blue); }
@media (max-width: 560px) { .match-legend .legend-grid { grid-template-columns: 1fr; } }
.site-foot { text-align: center; padding: 28px 20px 36px; color: var(--ink-soft); font-size: .82rem; }
.site-foot a { color: var(--blue); font-weight: 600; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.results-actions { margin-top: 28px; }
.results-foot { margin-top: 22px; color: var(--ink-soft); font-size: .85rem; }

/* radar */
.radar-wrap { display: flex; justify-content: center; }
.radar { width: 100%; max-width: 340px; height: auto; }
.radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-legend { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.radar-leg-item {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .88rem; font-weight: 600; color: var(--ink);
    background: var(--paper); border: 1.5px solid var(--line);
    padding: 6px 12px; border-radius: 999px; cursor: pointer;
    transition: all .15s ease;
}
.radar-leg-item:hover { border-color: var(--blue-soft); }
.radar-leg-item i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; flex: 0 0 auto; }
.radar-leg-logo { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; flex: 0 0 auto; }
.radar-leg-item.is-off { opacity: .45; text-decoration: line-through; background: transparent; }
.radar-serie { transition: stroke-opacity .15s ease, fill-opacity .15s ease; cursor: default; }

@media (min-width: 560px) {
    .present-options { grid-auto-flow: column; }
}

/* party logo + radar axis labels in results */
.party-logo-img { height: 20px; width: 20px; object-fit: contain; vertical-align: middle; margin-right: 7px; border-radius: 4px; }
.radar-spoke { stroke: var(--line); stroke-width: 1; }
.radar-axis { font-size: 13px; font-weight: 700; fill: var(--blue); cursor: default; }
.radar-axis-list {
    margin: 16px 0 0; padding-left: 1.5em; columns: 2; column-gap: 28px;
    font-size: .82rem; color: var(--ink-soft);
}
.radar-axis-list li { margin-bottom: 5px; break-inside: avoid; }
@media (max-width: 520px) { .radar-axis-list { columns: 1; } }
