:root {
  --paper: #FBF8F2;
  --paper-2: #F4EFE4;
  --card: #FFFFFF;
  --ink: #1F2433;
  --ink-soft: #5D6372;
  --ink-mute: #9AA0AE;
  --line: #E6DFD1;
  --accent: #1F2433;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(31, 36, 51, .06), 0 8px 24px rgba(31, 36, 51, .07);
  --shadow-lg: 0 2px 4px rgba(31, 36, 51, .06), 0 18px 40px rgba(31, 36, 51, .12);
  --serif: 'Source Serif 4', Cambria, Georgia, 'Times New Roman', serif;
  --sans: 'Nunito', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --hand: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button { font-family: inherit; color: inherit; }
a { color: inherit; }
#app { min-height: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ Shared */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.kicker { font-family: var(--sans); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--ink-soft); }
.h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -.01em; margin: 10px 0 0; text-wrap: balance; }

.back { position: fixed; top: 22px; left: 22px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.back svg { width: 26px; height: 26px; }
.back:hover { transform: translateX(-2px); box-shadow: var(--shadow-lg); }
.back:focus-visible { outline: 3px solid #2F5BD3; outline-offset: 3px; }
.back .bubble { position: absolute; left: calc(100% + 14px); top: 50%; transform: translate(-6px, -50%); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; padding: 8px 14px; border-radius: 14px; white-space: nowrap; transition: opacity .18s, transform .18s; }
.back .bubble::before { content: ''; position: absolute; left: -7px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 14px; height: 14px; background: var(--ink); border-radius: 2px; }
.back:hover .bubble, .back:focus-visible .bubble { opacity: 1; transform: translate(0, -50%); }
.fs-btn { position: fixed; top: 28px; right: 24px; z-index: 40; width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0; background: transparent; color: var(--ink-mute); display: grid; place-items: center; cursor: pointer; opacity: .7; transition: opacity .2s, background .2s, box-shadow .2s, color .2s; }
.fs-btn svg { width: 21px; height: 21px; }
.fs-btn:hover, .fs-btn:focus-visible { opacity: 1; color: var(--ink); background: var(--card); box-shadow: var(--shadow); }
.fs-btn:focus-visible { outline: 3px solid #2F5BD3; outline-offset: 3px; }
.fs-btn .bubble { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; padding: 7px 12px; border-radius: 12px; white-space: nowrap; transition: opacity .18s, transform .18s; }
.fs-btn .bubble::before { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 12px; height: 12px; background: var(--ink); border-radius: 2px; }
.fs-btn:hover .bubble, .fs-btn:focus-visible .bubble { opacity: 1; transform: translate(0, -50%); }
html:fullscreen { background: var(--paper); }

.badge { width: var(--b, 132px); height: var(--b, 132px); border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); overflow: hidden; flex: none; }
.badge img { width: 62%; height: 62%; object-fit: contain; }
.badge.wide img { width: 80%; height: 30%; }

/* ------------------------------------------------------------------ Home */
.home { align-items: center; justify-content: center; padding: 56px 24px 40px; text-align: center; gap: 0; }
.home header { max-width: 980px; }
.home .lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); margin: 14px auto 0; max-width: 640px; line-height: 1.5; }
.parties { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 3vw, 44px); margin-top: clamp(40px, 7vh, 72px); }
.party-card { display: flex; flex-direction: column; align-items: center; gap: 16px; text-decoration: none; width: 170px; cursor: pointer; background: none; border: 0; padding: 8px; border-radius: 24px; }
.party-card .badge { --b: 148px; transition: transform .25s cubic-bezier(.3,.7,.4,1.4), box-shadow .25s; }
.party-card:hover .badge, .party-card:focus-visible .badge { transform: translateY(-6px) scale(1.04); box-shadow: var(--shadow-lg); }
.party-card:focus-visible { outline: 3px solid #2F5BD3; outline-offset: 4px; }
.party-name { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.15; }
.party-cand { font-size: 14px; color: var(--ink-soft); font-weight: 700; margin-top: -8px; }
.home footer { margin-top: auto; padding-top: 48px; font-size: 13px; color: var(--ink-mute); display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: center; }
.linkbtn { background: none; border: 0; padding: 0; font-weight: 800; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }

/* ------------------------------------------------------------------ Party page */
.partypage { align-items: center; padding: 34px 24px 40px; }
.party-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.party-head .badge { --b: 128px; }
.party-head .party-name { font-size: clamp(28px, 3.4vw, 42px); }
.party-head .party-cand { font-size: 16px; margin-top: -4px; }
.party-head .note { font-size: 13px; color: var(--ink-mute); font-weight: 600; max-width: 520px; }
.subtitle { margin: 26px 0 0; font-weight: 800; color: var(--ink-soft); font-size: 15px; letter-spacing: .02em; }
.themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; width: min(1180px, 100%); margin-top: 18px; }
.theme-card { text-decoration: none; color: inherit; position: relative; background: var(--card); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; text-align: center; min-height: 196px; transition: transform .22s cubic-bezier(.3,.7,.4,1.3), box-shadow .22s; }
.theme-card:hover, .theme-card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.theme-card:focus-visible { outline: 3px solid var(--tc); outline-offset: 3px; }
.theme-card .rank { position: absolute; top: 12px; left: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--tc); color: #fff; font-weight: 900; font-size: 15px; display: grid; place-items: center; }
.theme-card svg { width: 84px; height: 84px; margin-top: 8px; }
.theme-card .t { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.18; text-wrap: balance; }
.theme-card .soon { margin-top: auto; font-size: 11px; font-weight: 800; color: var(--ink-mute); letter-spacing: .04em; text-transform: uppercase; }

/* ------------------------------------------------------------------ Theme page */
.themepage { height: 100vh; min-height: 620px; padding: 16px 22px 12px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; overflow: hidden; }
.tp-head { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 70px 0; min-height: 58px; }
.tp-head .rank { width: 34px; height: 34px; border-radius: 50%; background: var(--tc); color: #fff; font-weight: 900; display: grid; place-items: center; flex: none; }
.tp-head h1 { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 30px); margin: 0; line-height: 1.1; text-align: center; text-wrap: balance; }
.chapters { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.chap { border: 0; background: transparent; color: var(--ink-soft); font-weight: 800; font-size: 14px; padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.chap:hover { background: var(--paper-2); color: var(--ink); }
.chap.on { background: var(--ink); color: #fff; }
.chap.done { color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0 18px; min-height: 0; }
.divider { width: 4px; border-radius: 4px; background: repeating-linear-gradient(to bottom, var(--ink) 0 18px, transparent 18px 26px); opacity: .18; margin: 8px 0; }
.panel { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 4px 18px; min-height: 58px; }
.panel-title { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 16px; letter-spacing: .01em; }
.panel-title .pill { background: var(--paper-2); border-radius: 999px; padding: 7px 14px; }
.info { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-family: var(--serif); font-weight: 700; font-style: italic; font-size: 18px; display: grid; place-items: center; cursor: pointer; flex: none; transition: background .15s, color .15s; }
.info:hover, .info[aria-expanded="true"] { background: var(--ink); color: #fff; }
.stage { flex: 1; min-height: 0; width: 100%; display: block; }
.stage text { user-select: none; }
.t-num { font-family: var(--sans); font-weight: 900; letter-spacing: -.01em; }
.t-lbl { font-family: var(--sans); font-weight: 750; }
.t-body { font-family: var(--sans); font-weight: 600; }
.t-hand { font-family: var(--hand); font-weight: 700; }

.party-side { display: flex; align-items: center; gap: 10px; }
.party-switch { display: flex; gap: 6px; }
.mini { --b: 38px; border: 0; padding: 0; cursor: pointer; opacity: .55; transition: opacity .15s, transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mini:hover, .mini:focus-visible { opacity: 1; transform: scale(1.08); }
.mini.on { opacity: 1; outline: 3px solid var(--pc); outline-offset: 2px; }
.party-label { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 18px; text-align: right; line-height: 1.1; }
.party-label small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.party-label .badge { --b: 44px; }

.sources { position: absolute; top: 58px; left: 12px; right: 12px; z-index: 5; background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-lg); max-height: calc(100% - 74px); overflow: auto; font-size: 14px; line-height: 1.45; }
.sources h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.sources ol { margin: 0; padding-left: 18px; }
.sources li { margin: 0 0 7px; }
.sources li b { font-weight: 900; }
.sources a { color: #2F5BD3; word-break: break-word; }
.sources .meth { margin-top: 10px; color: var(--ink-soft); font-size: 12.5px; }

.controls { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 2px; }
.caption { min-height: 26px; max-width: 980px; text-align: center; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink-mute); padding: 0 12px; }
.caption span.said { color: var(--ink); }
.caption[hidden] { display: none; }
.bar { display: flex; align-items: center; gap: 10px; }
.cbtn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; transition: transform .15s, background .15s; }
.cbtn svg { width: 22px; height: 22px; }
.cbtn:hover { transform: scale(1.06); }
.cbtn:focus-visible { outline: 3px solid #2F5BD3; outline-offset: 2px; }
.cbtn.play { width: 62px; height: 62px; background: var(--ink); color: #fff; }
.cbtn.play svg { width: 28px; height: 28px; }
.cbtn.small { width: 38px; height: 38px; box-shadow: none; background: transparent; }
.cbtn.small.on { background: var(--paper-2); }
.cbtn:disabled { opacity: .35; cursor: default; transform: none; }
.progress { display: flex; gap: 4px; width: min(520px, 70vw); }
.progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.progress i b { position: absolute; inset: 0; background: var(--tc); transform-origin: left; transform: scaleX(0); transition: transform .3s; }
.nextc { display: none; align-items: center; gap: 8px; border: 0; background: var(--tc); color: #fff; font-weight: 900; font-size: 15px; padding: 12px 20px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow); }
.nextc.show { display: inline-flex; animation: pop .45s cubic-bezier(.3,.7,.4,1.4); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.hint { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }

/* ------------------------------------------------------------------ 8 candidates, sharing, trust */
.parties { max-width: 900px; }
.order-note { margin: 22px 0 0; font-size: 13.5px; color: var(--ink-soft); font-weight: 700; }
.order-note a, .cmp-note a, .pstatus a { color: #2F5BD3; }
.cmp-home { margin-top: 44px; width: min(980px, 100%); }
.cmp-home h2 { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--serif); font-size: clamp(19px, 2vw, 24px); margin: 0 0 14px; }
.theme-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tchip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--card); box-shadow: var(--shadow); border-radius: 999px; padding: 7px 16px 7px 9px; font-weight: 800; font-size: 14.5px; transition: transform .18s, box-shadow .18s; }
.tchip:hover, .tchip:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tchip:focus-visible { outline: 3px solid var(--tc); outline-offset: 2px; }
.theme-chips.big .tchip { font-size: 16px; padding: 10px 20px 10px 12px; }
.trust { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 13.5px; font-weight: 800; color: var(--ink-soft); }
.trust li::before { content: '✓'; color: #1C7A4A; margin-right: 6px; font-weight: 900; }
.sharebtn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; padding: 9px 16px 9px 13px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow); }
.sharebtn svg { width: 18px; height: 18px; }
.sharebtn:hover { transform: translateY(-1px); }
.sharebtn:focus-visible { outline: 3px solid #2F5BD3; outline-offset: 3px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; font-weight: 800; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .25s, transform .25s; z-index: 80; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.pstatus { margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); background: var(--card); box-shadow: var(--shadow); border-radius: 999px; padding: 7px 16px; max-width: 640px; line-height: 1.4; }
.pstatus b { color: var(--ink); }
.pstatus.s-complet b::before, .pstatus.s-partiel b::before, .pstatus.s-annonces b::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.pstatus.s-complet b::before { background: #1C7A4A; }
.pstatus.s-partiel b::before { background: #D99A1E; }
.pstatus.s-annonces b::before { background: #C2453A; }
.pfoot { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.endbox { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.nextc.ghost { background: var(--card); color: var(--ink); text-decoration: none; }
.badge.xs { --b: 34px; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.mini { --b: 32px; }
.party-switch { gap: 5px; flex-wrap: wrap; }
.panel-head { flex-wrap: wrap; row-gap: 6px; }
.party-label .badge { display: none; }

/* Text pages (méthode) */
.textpage { align-items: center; padding: 34px 20px 48px; }
.prose { width: min(760px, 100%); line-height: 1.6; font-size: 16.5px; }
.prose h1 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; margin: 8px 0 14px; padding: 0 44px; text-align: center; }
.prose .kicker { text-align: center; }
.prose h2 { font-family: var(--serif); font-size: 22px; margin: 30px 0 8px; }
.prose h3 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 18px 0 6px; }
.prose .intro { font-size: 18px; color: var(--ink-soft); text-align: center; }
.prose a { color: #2F5BD3; }
.prose ul { padding-left: 20px; }
.prose .sharebtn { margin-top: 26px; }
.tablewrap { overflow-x: auto; }
table.status { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
table.status th, table.status td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.status th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
table.status small { color: var(--ink-soft); }
.cmp-pick { width: min(900px, 100%); text-align: center; }
.cmp-pick h1 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); margin: 8px 0 22px; }

/* Compare page */
.cmppage { align-items: center; padding: 16px 20px 48px; }
.cmppage .tp-head { width: 100%; }
.cmp-lede { max-width: 720px; text-align: center; color: var(--ink-soft); margin: 6px 0 18px; font-size: 15.5px; line-height: 1.5; }
.cmp { width: min(1240px, 100%); display: flex; flex-direction: column; gap: 22px; }
.cmp-ch { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.cmp-fact { display: flex; gap: 14px; align-items: flex-start; padding: 2px 4px 14px; border-bottom: 2px dashed var(--line); }
.cmp-fact svg { flex: none; }
.cmp-fact h2 { font-family: var(--serif); font-size: 21px; margin: 0 0 2px; }
.cmp-fact p { margin: 0; font-size: 15.5px; }
.cmp-fact p b { color: var(--tc); font-size: 19px; font-weight: 900; }
.cmp-src { font-size: 12.5px; color: var(--ink-soft); }
.cmp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.cmp-cell { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; background: var(--paper); border-radius: 16px; padding: 12px 12px 14px; border-left: 5px solid var(--pc); transition: transform .15s, box-shadow .15s; }
.cmp-cell:hover, .cmp-cell:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); }
.cmp-cell:focus-visible { outline: 3px solid var(--pc); outline-offset: 2px; }
.cmp-who { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 700; font-size: 15.5px; line-height: 1.12; }
.cmp-who small { display: block; font-family: var(--sans); font-size: 11.5px; color: var(--ink-soft); font-weight: 700; }
.cmp-cell p { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.cmp-cell.empty { border-left-color: var(--line); }
.cmp-cell.empty p { color: var(--ink-mute); font-weight: 600; }
.cmp-tag { align-self: flex-start; font-size: 11.5px; font-weight: 800; color: var(--pc); border: 1.5px solid var(--pc); border-radius: 999px; padding: 2px 9px; }
.cmp-note { max-width: 720px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; margin: 0; }

/* ------------------------------------------------------------------ Modal (méthode) */
.modal { position: fixed; inset: 0; background: rgba(31,36,51,.45); display: grid; place-items: center; z-index: 60; padding: 20px; }
.modal .box { background: #fff; border-radius: 24px; max-width: 640px; width: 100%; padding: 26px 28px; box-shadow: var(--shadow-lg); max-height: 86vh; overflow: auto; line-height: 1.55; font-size: 15.5px; }
.modal h2 { font-family: var(--serif); margin: 0 0 10px; }
.modal .close { float: right; border: 0; background: var(--paper-2); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 20px; }

/* ------------------------------------------------------------------ View transitions */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1100px) { .themes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .theme-card { min-height: 160px; }
  .theme-card svg { width: 64px; height: 64px; }
  .themepage { height: auto; min-height: 100vh; overflow: visible; padding: 14px 12px 12px; grid-template-rows: auto auto auto auto; }
  .tp-head { padding: 4px 56px 0; }
  .split { grid-template-columns: 1fr; gap: 14px; }
  .divider { display: none; }
  .panel { min-height: 0; }
  .stage { height: auto; aspect-ratio: 800 / 640; flex: none; }
  .controls { position: sticky; bottom: 0; background: linear-gradient(to top, var(--paper) 75%, transparent); padding-top: 10px; }
  .party-label span { display: none; }
  /* on phones both corner buttons scroll with the page so they never hide content */
  .back { position: absolute; top: 12px; left: 12px; width: 46px; height: 46px; }
  .fs-btn { position: absolute; top: 14px; right: 10px; }
  .chapters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; scrollbar-width: none; }
  .chap { white-space: nowrap; }
}
@media (max-width: 560px) {
  .party-card { width: 132px; }
  .party-card .badge { --b: 112px; }
  .party-name { font-size: 18px; }
  .mini { --b: 32px; }
  .panel-title .pill { padding: 6px 10px; font-size: 14px; }
}

/* Responsive additions (8 candidates, compare, text pages) */
@media (max-width: 1250px) { .party-label span { display: none; } }
@media (max-width: 1000px) { .cmp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .cmp-grid { grid-template-columns: 1fr; gap: 8px; }
  .cmp-ch { padding: 14px; }
  .prose { font-size: 15.5px; }
  .prose h1 { padding: 0 40px; }
  .trust { flex-direction: column; align-items: center; gap: 6px; }
  .mini { --b: 30px; }
  .tchip { font-size: 13.5px; }
}
/* Long pages on desktop: keep clear of the fixed corner buttons (back, full screen). */
@media (min-width: 901px) { .partypage, .cmppage, .textpage { padding-left: 88px; padding-right: 88px; } }
table.status td:last-child { white-space: nowrap; }
/* Text version of each page (shown before the app starts, and without JavaScript) */
.static { max-width: 760px; margin: 40px auto; padding: 0 20px; line-height: 1.6; font-size: 16px; }
.static h1 { font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.static h2 { font-family: var(--serif); margin-top: 28px; }
.static h3 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.static a { color: #2F5BD3; }
.static .src { font-size: 13px; color: var(--ink-soft); }
/* Sharing kit */
.prose.wide { width: min(1080px, 100%); }
.kitgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin: 22px 0; }
.kitcard { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.25; }
.kitcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; display: block; }
.kitcard .sharebtn { font-size: 13px; align-self: flex-start; text-decoration: none; }
