@font-face{font-family:Geist;src:url(/fonts/geist.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
:root{color-scheme:dark;
  --bg:#080808;--bg-2:#0d0d0d;--surface:#141414;--surface-2:#1c1c1c;--raise:#272727;
  --line:#292929;--line-2:#393939;--line-3:#626262;
  --text:#f5f5f5;--soft:#d0d0d0;--muted:#a1a1a1;
  --accent:#e2e2e2;--accent-2:#ffffff;--accent-ink:#101010;--accent-wash:#ffffff0f;--accent-line:#ffffff55;
  --a:#f0b75a;--b:#9aa8ff;--c:#f28fb0;--d:#6fd3e6;--e:#c3a3ff;--f:#d9cf7c;--z:#7d8794;
  --warn:#f3c46d;--warn-wash:#2a1f0d;--danger:#ff9eab;--danger-wash:#2a1015;
  --r-sm:8px;--r:12px;--r-lg:18px;
  --shadow:0 18px 40px -24px #000c,0 2px 6px -2px #0008;
  --theme-glow:#ffffff08;--theme-glow-2:transparent;
  --board-tint:#ffffff05;--map-glow:#ffffff04;--official-bg:#181818;--official-line:#454545;
  --font:Geist,"Segoe UI",system-ui,sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scrollbar-color:var(--line-3) var(--bg);scroll-behavior:smooth}
body{margin:0;background:radial-gradient(1100px 520px at 85% -8%,var(--theme-glow),transparent 70%),radial-gradient(900px 650px at 0 85%,var(--theme-glow-2),transparent 75%),var(--bg);color:var(--text);font:15px/1.55 var(--font);font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased;min-height:100vh}
::selection{background:var(--accent-line);color:#fff}
::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:var(--bg)}::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:10px;border:2px solid var(--bg)}::-webkit-scrollbar-thumb:hover{background:var(--line-3)}
a{color:var(--accent-2);text-underline-offset:4px;text-decoration-thickness:1px}a:hover{color:#fff}
h1,h2,h3,h4,p{margin:0}
h2{font-size:22px;font-weight:600;letter-spacing:-.02em;line-height:1.25;text-wrap:balance}
h3{font-size:16px;font-weight:600;letter-spacing:-.01em;line-height:1.3}
h4{font-size:14px;font-weight:600}
small{color:var(--muted);font-size:12px}
code{font-size:11px;color:var(--soft);overflow-wrap:anywhere}
svg{flex:none}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:12px;top:-60px;z-index:20;background:var(--accent);color:var(--accent-ink);padding:10px 14px;border-radius:var(--r-sm);font-weight:600}.skip:focus{top:12px}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
input{caret-color:var(--accent)}

/* Controles */
button,select,input[type=search]{font:inherit;font-size:14px;color:var(--text);min-height:40px;border:1px solid var(--line-2);border-radius:var(--r-sm);background:var(--surface-2);padding:8px 14px;transition:background-color .18s,border-color .18s,color .18s}
button,select{cursor:pointer}
button{display:inline-flex;align-items:center;gap:8px;font-weight:500}
button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
button:hover,select:hover{border-color:var(--line-3);background:var(--raise)}
button:disabled,select:disabled,input:disabled{opacity:.45;cursor:default}
button:disabled:hover,select:disabled:hover{background:var(--surface-2);border-color:var(--line-2)}
select{appearance:none;padding-right:36px;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 18px) 52%,calc(100% - 13px) 52%;background-size:5px 5px;background-repeat:no-repeat}
select option{background:var(--surface);color:var(--text)}
.ghost{background:transparent}
.icon-button{width:40px;padding:0;justify-content:center}
.pill{border-radius:999px;padding:6px 16px;min-height:34px;font-size:13px;background:var(--surface-2)}
.field{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted);min-width:0}
.field.inline{flex-direction:row;align-items:center;gap:10px;white-space:nowrap}
.field select,.field input{width:100%}
.field.search{position:relative;flex-direction:row}
.field.search svg{position:absolute;left:12px;top:50%;width:16px;height:16px;transform:translateY(-50%);fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round}
.field.search input{padding-left:36px;min-width:220px}
input[type=search]::placeholder{color:var(--muted)}
.segmented{display:inline-flex;gap:2px;padding:3px;margin:0;border:1px solid var(--line-2);border-radius:calc(var(--r-sm) + 3px);background:var(--bg-2);min-width:0}
.segmented label{position:relative;cursor:pointer}
.segmented input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.segmented span,.segmented.buttons button{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 14px;border-radius:var(--r-sm);font-size:13px;font-weight:500;color:var(--muted);border:0;background:transparent;white-space:nowrap}
.segmented input:checked+span,.segmented.buttons button[aria-pressed=true]{background:var(--raise);color:var(--text);box-shadow:inset 0 0 0 1px var(--line-3)}
.segmented label:hover span,.segmented.buttons button:hover{color:var(--text)}
.segmented input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.segmented input:disabled+span{opacity:.45;cursor:default}
.tile{display:grid;place-items:center;width:46px;height:46px;border-radius:var(--r);background:var(--bg-2);border:1px solid var(--line-2);color:var(--soft)}
.tile svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tile.small{width:38px;height:38px;border-radius:10px}.tile.small svg{width:18px;height:18px}
.tile.accent{color:var(--accent);border-color:var(--accent-line);background:var(--accent-wash)}

/* Estrutura */
.shell{max-width:1240px;margin:0 auto;padding:0 28px}
main.shell{padding-top:28px;padding-bottom:40px}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;border-bottom:1px solid var(--line)}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--text);text-decoration:none}
.brand b{font-size:22px;font-weight:650;letter-spacing:-.035em}
.brand-tag{font-size:12px;color:var(--soft);padding:3px 9px;border-radius:7px;background:var(--surface-2);border:1px solid var(--line-2);font-weight:500}
.mark{width:30px;height:30px}
.mark-body{fill:var(--accent)}.mark-cap{fill:var(--text)}.mark-brow{fill:none;stroke:var(--bg);stroke-width:1.5;stroke-linecap:round}.mark-eye{fill:var(--bg)}
.brand:hover{color:var(--text)}
.header-tools{display:flex;align-items:center;gap:10px}
.live{display:inline-flex;align-items:center;gap:9px;font-size:13px;color:var(--soft);margin-right:6px}
.pulse{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--accent-wash);animation:pulse 2s ease-in-out infinite}
@keyframes pulse{50%{box-shadow:0 0 0 7px transparent;opacity:.65}}
.out-link{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:var(--soft);text-decoration:none;margin-left:6px}
.out-link svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.out-link:hover{color:var(--accent-2)}
.ribbon{position:sticky;top:0;z-index:10;text-align:center;padding:8px 20px;background:var(--warn-wash);color:var(--warn);border-block:1px solid #5c4520;font-size:12px;font-weight:600;letter-spacing:.04em}
.ribbon.official{color:var(--accent);background:var(--official-bg);border-color:var(--official-line)}

/* Hero */

/* Contexto */
.context-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px 22px;margin-bottom:44px}
.context-main{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.context-text{flex:1;min-width:220px}
.context-text h2{font-size:18px}
.context-text p{font-size:13px;color:var(--muted);margin-top:2px}
#governor-control select{min-width:240px;min-height:46px;font-weight:500}
.notice{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);font-size:13px;color:var(--soft)}
.notice.error{color:var(--danger)}

/* Placar */
.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}
.section-title h2{font-size:26px}
.section-title h2 span{color:var(--muted);font-weight:500}
.section-title p{margin-top:6px;font-size:13px;color:var(--muted)}
#connection{color:var(--accent)}#connection.offline{color:var(--danger)}
.scoreboards{display:grid;grid-template-columns:1fr 1fr;gap:16px;scroll-margin-top:60px}
.board{min-width:0;display:flex;flex-direction:column;gap:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px}
.board-sum{background:linear-gradient(180deg,var(--board-tint),transparent 140px),var(--surface)}
.board-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:start}
.note{font-size:12px;line-height:1.6;color:var(--muted);margin-top:3px}
.tag{font-size:11px;font-weight:600;letter-spacing:.05em;padding:4px 9px;border-radius:999px;border:1px solid var(--line-3);color:var(--soft);white-space:nowrap}
.tag.ok{color:var(--accent);border-color:var(--accent-line);background:var(--accent-wash);margin:0}
.tag.warn{color:var(--warn);border-color:#6b5022;background:var(--warn-wash)}
.tag.bad{color:var(--danger);border-color:#6e2c37;background:var(--danger-wash)}
.aggregate-controls{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}
.aggregate-controls select{min-height:36px;font-size:13px}
.candidates{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}
.candidate{position:relative;display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:var(--r);background:var(--bg-2);border:1px solid var(--line);transition:border-color .2s}
.candidate:hover{border-color:var(--line-3)}
.cand-id{display:flex;gap:12px;align-items:center;min-width:0}
.portrait{position:relative;flex:none;display:grid;place-items:center;width:52px;height:64px;border-radius:10px;overflow:hidden;font-size:18px;font-weight:650;letter-spacing:-.02em}
.portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
[data-c]{--s:var(--z)}.series-a{--s:var(--a)}.series-b{--s:var(--b)}.series-c{--s:var(--c)}.series-d{--s:var(--d)}.series-e{--s:var(--e)}.series-f{--s:var(--f)}.series-z{--s:var(--z)}
.candidate .portrait{background:color-mix(in srgb,var(--s) 15%,transparent);color:color-mix(in oklab,var(--s),white 32%);box-shadow:inset 0 0 0 1px var(--s)}
.cand-text{min-width:0}
.cand-meta{display:block;font-size:11px;color:var(--muted);letter-spacing:.02em}
.candidate-name{display:block;font-size:14px;font-weight:600;line-height:1.25;overflow-wrap:break-word}
.candidate-numbers{font-size:34px;line-height:1;font-weight:650;letter-spacing:-.035em}
.candidate-numbers small{font-size:15px;color:var(--muted);font-weight:500;margin-left:2px}
.candidate .candidate-numbers{color:color-mix(in oklab,var(--s),white 32%)}
.candidate-numbers.na{font-size:18px;color:var(--muted)}
.bar{height:4px;border-radius:4px;background:var(--line-2);overflow:hidden}
.bar i{display:block;height:100%;width:100%;border-radius:inherit;transform:scaleX(0);transform-origin:left;transition:transform .6s cubic-bezier(.16,1,.3,1)}
.candidate .bar i{background:var(--s)}
.fill-a{background:var(--a)}.fill-b{background:var(--b)}.fill-c{background:var(--c)}.fill-d{background:var(--d)}.fill-e{background:var(--e)}.fill-f{background:var(--f)}.fill-z{background:var(--z)}
.candidate.series-z .candidate-numbers{color:var(--soft)}
.cand-votes{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--soft)}
.cand-votes span:last-child{color:var(--muted)}
.destinacao{font-size:11px;line-height:1.5;color:var(--muted)}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.metrics>div{display:flex;flex-direction:column;gap:2px;padding:12px 14px;background:var(--surface)}
.metric-label{font-size:11px;color:var(--muted)}
.metric-value{font-size:17px;font-weight:600;letter-spacing:-.01em}
.metric-detail{font-size:11px;color:var(--muted)}
.source-time{font-size:12px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere;margin-top:auto}
.provenance-box summary{cursor:pointer;font-size:13px;color:var(--soft);padding:4px 0}
.provenance-box summary:hover{color:var(--text)}
.provenance{display:grid;gap:8px;margin-top:10px;font-size:12px;color:var(--muted);max-height:260px;overflow:auto}
.comparison{margin:14px 0 48px;padding:14px 18px;border-radius:var(--r);border:1px dashed var(--line-3);font-size:13px;line-height:1.6;color:var(--soft)}
.comparison.ok{border-style:solid;border-color:var(--accent-line);background:var(--accent-wash)}
.empty{font-size:13px;color:var(--muted);padding:6px 0}
.waiting{grid-column:1/-1;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:26px 22px;border-radius:var(--r);border:1px dashed var(--accent-line);background:var(--accent-wash)}
.waiting strong{font-size:24px;font-weight:650;letter-spacing:-.02em}
.waiting span{font-size:13px;line-height:1.6;color:var(--soft);max-width:52ch}
.waiting .countdown{font-size:15px;font-weight:600;color:var(--accent);font-variant-numeric:tabular-nums}

/* 1º turno: dois primeiros em cartão, demais em linhas compactas */
.first-round .candidates>.candidate:nth-child(n+3){grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(60px,140px) 92px 74px;align-items:center;gap:14px;padding:8px 12px}
.first-round .candidates>.candidate:nth-child(n+3) .portrait{width:30px;height:38px;font-size:12px;border-radius:7px}
.first-round .candidates>.candidate:nth-child(n+3) .cand-id{flex-direction:row;align-items:center;gap:10px}
.first-round .candidates>.candidate:nth-child(n+3) .candidate-name{font-size:13px}
.first-round .candidates>.candidate:nth-child(n+3) .candidate-numbers{order:4;font-size:17px;text-align:right}
.first-round .candidates>.candidate:nth-child(n+3) .candidate-numbers small{font-size:12px}
.first-round .candidates>.candidate:nth-child(n+3) .bar{order:2}
.first-round .candidates>.candidate:nth-child(n+3) .cand-votes{order:3;justify-content:flex-end}
.first-round .candidates>.candidate:nth-child(n+3) .cand-votes span:last-child,.first-round .candidates>.candidate:nth-child(n+3) .destinacao{display:none}
.first-round .candidates{gap:8px;container-type:inline-size}
/* Bloco estreito (painel da localidade, celular): nome e % na linha, barra embaixo */
@container (max-width:520px){
  .first-round .candidates>.candidate:nth-child(n+3){grid-template-columns:minmax(0,1fr) auto;gap:6px 10px}
  .first-round .candidates>.candidate:nth-child(n+3) .bar{grid-column:1/-1;order:5}
  .first-round .candidates>.candidate:nth-child(n+3) .cand-votes{display:none}
}

/* Painéis */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);margin-bottom:20px}
.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;padding:22px 24px;border-bottom:1px solid var(--line)}
.panel-head.tight{padding:0 0 12px;border:0}
.panel-head h2{font-size:26px}
.map-switches{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.map-switches select{min-height:40px}
.map-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px;padding:16px}
.map-stage{position:relative;min-width:0;min-height:560px;padding:16px 16px 64px;border-radius:var(--r-lg);border:1px solid var(--line);background:radial-gradient(520px 380px at 55% 45%,var(--map-glow),transparent 75%),var(--bg-2)}
.legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:12px;color:var(--soft)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.swatch{width:11px;height:11px;border-radius:3px;display:inline-block}
.map{margin-top:8px;overflow:hidden;border-radius:var(--r);touch-action:pan-y pinch-zoom}
.map svg{display:block;width:100%;height:clamp(360px,52vw,520px);cursor:grab}
.map svg.dragging{cursor:grabbing}
.map path{fill:#18202a;stroke:var(--bg-2);stroke-width:1.1;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .25s,filter .15s}
.map path:hover{filter:brightness(1.3)}
.map path:focus-visible{outline:none;stroke:var(--accent);stroke-width:2.2}
.map path[aria-pressed=true]{stroke:var(--text);stroke-width:2.2}
.map text{font-size:10px;font-weight:650;fill:#fff;paint-order:stroke;stroke:#000a;stroke-width:2.4px;pointer-events:none;vector-effect:non-scaling-stroke}
.map .low{fill:#174236}.map .mid{fill:#20785e}.map .high{fill:#3fd6a5}
.map .va1{fill:#3a2d17}.map .va2{fill:#6b5124}.map .va3{fill:#a87c30}.map .va4{fill:#f0b75a}
.map .la1{fill:color-mix(in srgb,var(--a) 32%,#080b10)}.map .la2{fill:color-mix(in srgb,var(--a) 62%,#080b10)}.map .la3{fill:var(--a)}.map .lb1{fill:color-mix(in srgb,var(--b) 32%,#080b10)}.map .lb2{fill:color-mix(in srgb,var(--b) 62%,#080b10)}.map .lb3{fill:var(--b)}.map .lc1{fill:color-mix(in srgb,var(--c) 32%,#080b10)}.map .lc2{fill:color-mix(in srgb,var(--c) 62%,#080b10)}.map .lc3{fill:var(--c)}.map .ld1{fill:color-mix(in srgb,var(--d) 32%,#080b10)}.map .ld2{fill:color-mix(in srgb,var(--d) 62%,#080b10)}.map .ld3{fill:var(--d)}.map .le1{fill:color-mix(in srgb,var(--e) 32%,#080b10)}.map .le2{fill:color-mix(in srgb,var(--e) 62%,#080b10)}.map .le3{fill:var(--e)}.map .lf1{fill:color-mix(in srgb,var(--f) 32%,#080b10)}.map .lf2{fill:color-mix(in srgb,var(--f) 62%,#080b10)}.map .lf3{fill:var(--f)}.map .lz1{fill:color-mix(in srgb,var(--z) 32%,#080b10)}.map .lz2{fill:color-mix(in srgb,var(--z) 62%,#080b10)}.map .lz3{fill:var(--z)}
.map .tie{fill:#4a4f58}
.sw-missing{background:#18202a;box-shadow:inset 0 0 0 1px var(--line-3)}.sw-low{background:#174236}.sw-mid{background:#20785e}.sw-high{background:#3fd6a5}
.sw-va1{background:#3a2d17}.sw-va2{background:#6b5124}.sw-va3{background:#a87c30}.sw-va4{background:#f0b75a}
.swatch[data-c],.stack i[data-c],.chip i[data-c]{background:var(--s)}
.sw-a{background:var(--a)}.sw-b{background:var(--b)}.sw-c{background:var(--c)}.sw-d{background:var(--d)}.sw-e{background:var(--e)}.sw-f{background:var(--f)}.sw-z{background:var(--z)}.sw-tie{background:#4a4f58}
.map-tools{position:absolute;right:16px;bottom:16px;display:flex;gap:8px}
.map-tools .icon-button{background:var(--surface)}
#map-brasil{position:absolute;left:16px;bottom:19px}
.map-caption{min-height:20px;margin-top:6px;font-size:12px;color:var(--soft);padding-right:150px}
.credit{display:block;margin-top:4px;padding-right:150px}
.investigation{min-width:0;display:flex;flex-direction:column;gap:14px;padding:18px;border-radius:var(--r-lg);border:1px solid var(--line);max-height:720px;overflow:auto}
.investigation h3{font-size:19px}
.crumbs{font-size:12px;color:var(--muted);margin-top:2px}
#favorite[aria-pressed=true]{color:var(--a);border-color:#6b5124}
#favorite[aria-pressed=true] svg{fill:currentColor}
.filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.filters select{padding-left:10px;padding-right:28px;background-position:calc(100% - 14px) 52%,calc(100% - 9px) 52%;font-size:13px}
.local-result{display:flex;flex-direction:column;gap:12px}
.local-result .candidates{grid-template-columns:1fr}
.local-result .candidate{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:12px}
.local-result .cand-id{flex:1 1 60%}
.local-result .candidate-numbers{font-size:22px}
.local-result .bar,.local-result .cand-votes,.local-result .destinacao{flex-basis:100%}
.local-result .portrait{width:40px;height:48px;font-size:14px}
.local-result .metrics{grid-template-columns:1fr 1fr 1fr}
.local-result .metrics>div{padding:10px}
.local-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.local-head b{font-size:15px}
.local-details{font-size:12px;line-height:1.75;color:var(--muted)}
.reference{padding-top:14px;border-top:1px solid var(--line);display:grid;gap:8px}
.reference table{font-size:12px}
.favorites{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.favorites button{min-height:30px;padding:3px 10px;font-size:12px;border-radius:999px}

/* Regiões */
.regions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px}
.region{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:var(--r);background:var(--bg-2);border:1px solid var(--line)}
.region-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.region-head b{font-size:16px;font-weight:600}
.region-head span{font-size:12px;color:var(--muted)}
.duel{display:flex;justify-content:space-between;gap:10px;font-size:13px}
.duel strong{font-size:22px;font-weight:650;letter-spacing:-.03em;display:block;line-height:1.1}
.duel .right{text-align:right}
.duel strong{color:color-mix(in oklab,var(--s,var(--muted)),white 32%)}
.duel small{display:block;font-size:11px;max-width:16ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stack{display:flex;height:6px;gap:2px;border-radius:6px;overflow:hidden;background:var(--line-2)}
.stack i{display:block;height:100%;width:0}
.region-foot{display:flex;justify-content:space-between;padding-top:10px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.region-foot b{color:var(--soft);font-weight:600}
.region.waiting .duel strong{color:var(--muted)}

/* Tabela */
.table-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;font-size:13px}
th{font-weight:500;font-size:12px;color:var(--muted);text-align:left;padding:10px 12px;white-space:nowrap}
td,tbody th{padding:10px 12px;border-top:1px solid var(--line);color:var(--soft);white-space:nowrap}
.num{text-align:right}
.table-card thead th{position:sticky;top:0;background:var(--surface)}
.table-card tbody tr{transition:background-color .15s}
.table-card tbody tr:hover{background:#ffffff05}
.table-card tbody tr.sel{background:var(--accent-wash)}
.row-button{min-height:32px;padding:4px 0;border:0;background:none;color:var(--text);font-weight:500;gap:8px}
.row-button:hover{background:none;color:var(--accent-2)}
.row-button span{color:var(--muted);font-weight:400;font-size:12px}
td .stack{width:180px;height:6px}
td .stack-empty{color:var(--muted);font-size:12px}
.state-label{font-size:11px;font-weight:600;letter-spacing:.04em}

/* Histórico */
.history-actions{display:flex;gap:8px;flex-wrap:wrap}
.chips{display:flex;gap:10px;flex-wrap:wrap;padding:16px 24px 0}
.chip{min-width:170px;padding:10px 14px;border-radius:var(--r);border:1px solid var(--line-2)}
.chip span{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--soft);letter-spacing:.03em;text-transform:uppercase}
.chip span i{width:8px;height:8px;border-radius:50%}
.chip strong{display:block;font-size:22px;font-weight:600;letter-spacing:-.02em;margin-top:2px}
.chart{margin:16px 24px 0;padding:10px;border-radius:var(--r-lg);border:1px solid var(--line);background:var(--bg-2);min-height:120px}
.chart svg{display:block;width:100%;height:auto}
.chart .grid{stroke:#ffffff12;stroke-dasharray:3 4}
.chart .axis{font-size:11px;fill:var(--muted)}
.chart .series{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.chart .series{stroke:var(--s)}.chart .dot{fill:var(--s)}.chart [class^=dot-]{fill:var(--z)}.chart .dot-a{fill:var(--a)}.chart .dot-b{fill:var(--b)}.chart .dot-c{fill:var(--c)}.chart .dot-d{fill:var(--d)}
.chart .end{font-size:12px;font-weight:600;fill:var(--text)}
.chart .cursor{stroke:#ffffff40}
.chart .hit{fill:transparent;cursor:pointer}
.chart-tip{position:fixed;z-index:30;pointer-events:none;padding:9px 11px;border-radius:var(--r-sm);background:var(--raise);border:1px solid var(--line-3);box-shadow:var(--shadow);font-size:12px;line-height:1.55;min-width:180px}
.chart-tip div{display:flex;justify-content:space-between;gap:12px}
.history-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:16px 24px;font-size:13px;color:var(--soft)}
.history-controls input{flex:1;min-width:200px;accent-color:var(--accent)}
.history-controls output{font-size:12px;color:var(--muted)}
.history-text{padding:0 24px 22px}
.history-text summary,.reference summary{cursor:pointer;font-size:13px;color:var(--soft)}

/* Rodapé */
.footer{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:24px;align-items:center;margin-top:40px;padding:28px 0 8px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.brand.small b{font-size:16px}.brand.small .mark{width:22px;height:22px}
.footer-meta{display:flex;flex-direction:column;gap:4px;text-align:right}

/* Modo TV */
body.tv .context-card,body.tv .map-card,body.tv .regions-card,body.tv .table-card,body.tv .history-card,body.tv .footer,body.tv .aggregate-controls,body.tv .provenance-box{display:none}
body.tv main.shell{max-width:1700px;padding-top:28px}
body.tv .candidate-numbers{font-size:64px}
body.tv .portrait{width:84px;height:104px;font-size:28px}
body.tv .candidate-name{font-size:20px}
body.tv .section-title h2{font-size:34px}

@media (max-width:1100px){
  .map-grid{grid-template-columns:1fr}
  .investigation{max-height:none}
  .regions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  .shell{padding:0 16px}
  .scoreboards{grid-template-columns:1fr}
  .out-link{display:none}
  .footer{grid-template-columns:1fr}
  .footer-meta{text-align:left}
  .map-stage{min-height:0}
  .map-caption,.credit{padding-right:0;margin-top:52px}
  .credit{margin-top:4px}
}
@media (max-width:560px){
  .masthead{min-height:64px}
  .brand-tag,.live time{display:none}
  .live{margin:0}
  .context-card{padding:16px}
  #turno-group,#cargo-group,#governor-control,#governor-control select{width:100%;min-width:0}
  #turno-group label,#cargo-group label{flex:1}#turno-group span,#cargo-group span{width:100%;justify-content:center}
  .board{padding:14px}
  .board-head{grid-template-columns:auto minmax(0,1fr)}
  .board-head .tag{grid-column:1/-1;justify-self:start}
  .candidates{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
  .candidate{padding:12px;gap:10px}
  .candidate-numbers{font-size:28px}
  .portrait{width:42px;height:52px;font-size:15px}
  .cand-id{flex-direction:column;align-items:flex-start;gap:8px}
  .metrics{grid-template-columns:1fr}
  .panel-head{padding:16px}
  .panel-head h2,.section-title h2{font-size:22px}
  .map-grid,.regions{padding:10px}
  .regions{grid-template-columns:1fr}
  .map-stage{padding:12px 12px 60px}
  .filters{grid-template-columns:1fr}
  .map-switches,.map-switches .segmented,.table-tools,.field.search,.field.search input{width:100%;min-width:0}
  .map-switches .segmented button{flex:1;justify-content:center}
  .field.inline{width:100%}.field.inline select{flex:1}
  .chips,.history-controls{padding-inline:16px}.chart{margin-inline:16px}.history-text{padding-inline:16px}
  .chip{min-width:0;flex:1}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body{background:#fff;color:#000}.panel,.board,.context-card,.candidate,.metrics>div,.region{background:#fff!important;color:#000;border-color:#999}.note,.source-time,.metric-label,.metric-detail{color:#333}.ribbon{position:static}.map-card,.history-card,.header-tools{display:none}}

/* Aparência local. Cores dos partidos, mapas e alertas não são remapeadas. */
:root[data-theme="green-yellow"]{
  --bg:#060b08;--bg-2:#0b120d;--surface:#0d1711;--surface-2:#132018;--raise:#1c2b20;
  --line:#233328;--line-2:#35483a;--line-3:#546859;
  --text:#f1f5ee;--soft:#d0d9cd;--muted:#a0b09f;
  --flag-green:#009739;--flag-yellow:#ffdf00;
  --accent:var(--flag-yellow);--accent-2:#ffed70;--accent-ink:#191600;--accent-wash:#ffdf001c;--accent-line:#ffdf0066;
  --theme-glow:#00973945;--theme-glow-2:#ffdf0020;
  --board-tint:#3fd6a50b;--map-glow:#3fd6a50d;--official-bg:#06201a;--official-line:#1d5a48;
}
:root[data-theme="red"]{
  --bg:#10070a;--bg-2:#170c10;--surface:#1d1015;--surface-2:#27171e;--raise:#35202a;
  --line:#3a252e;--line-2:#51353f;--line-3:#77515f;
  --text:#faf0f3;--soft:#e2cdd4;--muted:#bba0aa;
  --accent:#ff9da8;--accent-2:#ffc2ca;--accent-ink:#29090f;--accent-wash:#ff9da81c;--accent-line:#ff9da866;
  --theme-glow:#b32a4440;--theme-glow-2:#8b24321a;
  --board-tint:#3fd6a50b;--map-glow:#3fd6a50d;--official-bg:#06201a;--official-line:#1d5a48;
}

html:has(dialog[open]){overflow:hidden}
dialog{color:var(--text);font:15px/1.55 var(--font);background:var(--surface);border:1px solid var(--line-2);box-shadow:0 24px 80px -24px #000c}
dialog::backdrop{background:#000000d9}
.theme-dialog{width:min(620px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:28px;border-radius:16px;overflow:auto}
.theme-dialog-head,.menu-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.theme-dialog h2{font-size:28px;line-height:1.15;letter-spacing:-.03em;margin:0}
#theme-close{flex-shrink:0}
#theme-description{color:var(--soft);margin:12px 0 26px;max-width:45ch}
.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0;margin:0;border:0}
.theme-options label{position:relative;cursor:pointer;min-width:0}
.theme-options input{position:absolute;opacity:0;width:1px;height:1px}
.theme-options label>span{display:flex;flex-direction:column;gap:14px;padding:10px 10px 16px;height:100%;border:2px solid var(--line-3);border-radius:12px;color:var(--soft);background:var(--bg-2)}
.theme-options b{font-size:14px;font-weight:550;line-height:1.3;padding-inline:2px}
.theme-options input:checked+span{border-color:var(--accent);color:var(--text);background:var(--accent-wash)}
.theme-options label:hover>span{border-color:var(--accent)}
.theme-options input:focus-visible+span{outline:2px solid var(--accent);outline-offset:4px}
.theme-swatch{width:100%;height:96px;border-radius:6px;display:block;flex-shrink:0}
.swatch-neutral{background:linear-gradient(145deg,#555555,#0d0d0d 75%);border-bottom:4px solid #dedede}
.swatch-green{background:linear-gradient(135deg,#009739 50%,#ffdf00 50%)}
.swatch-red{background:linear-gradient(145deg,#d42242,#6b1225)}
.theme-privacy{font-size:13px;color:var(--muted);margin:22px 0 26px}
.theme-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.theme-actions button{min-height:44px;justify-content:center}
.theme-primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);font-weight:650}
.theme-primary:hover{background:var(--accent-2);color:var(--accent-ink)}
#theme-toggle{min-height:44px}
.mobile-menu-toggle{display:none}
.mobile-menu{position:fixed;inset:0 0 0 auto;margin:0;width:min(320px,90vw);height:100dvh;max-height:100dvh;max-width:90vw;padding:24px;border-radius:0;border-width:0 0 0 1px}
.mobile-menu h2{margin:0;font-size:22px}
.mobile-menu nav{display:flex;flex-direction:column;margin-top:28px}
.mobile-menu nav>a,.mobile-menu nav>button{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;min-height:54px;padding:14px 4px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);text-decoration:none;font-size:16px}
.mobile-menu nav>a:hover,.mobile-menu nav>button:hover{color:var(--accent);background:var(--surface-2)}
#mobile-theme-label{color:var(--muted);font-size:12px}
@media(max-width:560px){
  #theme-toggle{display:none}
  .mobile-menu-toggle{display:inline-flex;min-height:44px}
  .theme-dialog{padding:20px}
  .theme-dialog h2{font-size:24px}
  #theme-description{margin-bottom:20px}
  .theme-options{grid-template-columns:1fr;gap:10px}
  .theme-options label>span{flex-direction:row;align-items:center;padding:10px;gap:16px}
  .theme-swatch{width:80px;height:54px}
  .theme-privacy{margin:18px 0}
  .theme-actions{flex-direction:column-reverse}
  .theme-actions button{width:100%}
}
@media print{dialog,.mobile-menu-toggle{display:none!important}}

/* Resumo do mapa e ergonomia em telas pequenas. */
.map.is-pannable{touch-action:none}
.map-toolbar{position:absolute;left:16px;right:16px;bottom:16px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.map-tools{position:static;margin-left:auto;order:3}
#map-brasil{position:static;order:0;min-height:44px}
.map-pan-mode{display:none}
.map-preview{position:absolute;z-index:5;width:min(340px,calc(100% - 24px));padding:16px;background:var(--surface-2);border:1px solid var(--line-3);border-radius:12px;box-shadow:0 12px 32px -8px #000b;font-size:13px}
.preview-close{position:absolute;right:8px;top:8px;width:44px;height:44px;background:transparent;border-color:transparent}
.preview-heading{display:flex;align-items:flex-start;gap:8px;padding-right:38px}
.preview-heading h3{flex:1;font-size:16px;overflow-wrap:anywhere}
.preview-heading>span{font-size:11px;color:var(--soft);padding:2px 6px;border-radius:4px;background:var(--raise)}
.preview-source,.preview-status{font-size:11px;line-height:1.5;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}
.preview-source{padding-right:28px}
.preview-coverage{font-size:12px;color:var(--soft);margin-top:8px}
.preview-summary{margin:10px 0;color:var(--text);line-height:1.5}
.preview-columns,.preview-candidates li{display:grid;grid-template-columns:minmax(0,1fr) 65px 58px;gap:8px;align-items:center}
.preview-columns{font-size:10px;color:var(--muted);padding-bottom:5px}
.preview-columns span:not(:first-child){text-align:right}
.preview-candidates{list-style:none;margin:0;padding:0}
.preview-candidates li{padding:7px 0;border-top:1px solid var(--line);font-size:12px}
.preview-name{display:flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere}
.preview-name i{width:8px;height:8px;border-radius:50%;background:var(--s);flex-shrink:0}
.preview-votes{font-size:11px;color:var(--soft);text-align:right;font-variant-numeric:tabular-nums}
.preview-candidates strong{text-align:right;font-variant-numeric:tabular-nums}
.preview-details{min-height:44px;width:100%;justify-content:center;font-size:12px;margin-top:12px}
.comparison-details{margin:14px 0 32px;border:1px solid var(--line-2);border-radius:var(--r);padding:0 16px}
.comparison-details>summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:13px;color:var(--soft)}
.comparison-details .comparison{margin:0 0 14px;padding:12px;border-radius:8px}
.mobile-shortcuts{display:none}
@media(max-width:860px){
  .map-caption{margin-top:12px;padding-right:0}
}
@media(max-width:560px){
  body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
  main.shell{padding-top:18px}
  .context-card{margin-bottom:24px}
  .notice{margin-top:12px;padding-top:12px;font-size:12px}
  .context-text p{font-size:12px}
  button,select,input[type=search],.icon-button,.pill,.segmented span,.segmented.buttons button,.row-button,.aggregate-controls select{min-height:44px}
  input[type=search],select,.filters select,.aggregate-controls select{font-size:16px}
  .icon-button{width:44px}
  .segmented label{min-height:44px;display:flex}
  .segmented span{align-items:center}
  .ribbon{font-size:10px;line-height:1.45;padding:8px 12px;letter-spacing:.02em}
  .section-title h2{font-size:23px}
  .scoreboards .candidates,.local-result .candidates,.first-round .candidates{grid-template-columns:1fr}
  .candidate{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:12px}
  .cand-id{flex-direction:row;align-items:center;gap:10px}
  .portrait{width:36px;height:46px;font-size:14px}
  .candidate-name{font-size:14px}
  .candidate-numbers{font-size:25px;align-self:center}
  .candidate-numbers small{font-size:12px}
  .candidate .bar,.candidate .cand-votes,.candidate .destinacao{grid-column:1/-1}
  .candidate-numbers.na{font-size:13px;max-width:74px}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .metrics>div{padding:10px}
  .metrics>div:last-child:nth-child(odd){grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center}
  .metrics>div:last-child:nth-child(odd) .metric-detail{grid-column:1/-1}
  .source-time{font-size:11px}
  .aggregate-controls{justify-content:space-between;flex-wrap:wrap}
  .map-switches{gap:12px}
  .field.inline{flex-direction:column;align-items:stretch;gap:6px}
  .map-switches select{width:100%;max-width:100%;min-width:0}
  .map-stage{display:flex;flex-direction:column;padding:12px;gap:12px;border-radius:12px}
  .map-stage .legend{order:0;font-size:11px;gap:6px 10px}
  .map{order:1;margin:0;width:100%}
  .map svg{height:auto;aspect-ratio:1/1.02;min-height:290px;max-height:430px}
  .map text{font-size:12px}
  .map-toolbar{position:static;order:2;gap:8px;justify-content:space-between}
  .map-tools{gap:6px;margin-left:0}
  .map-pan-mode{display:inline-flex;order:1;font-size:12px;flex:1;justify-content:center;padding-inline:8px}
  .map-preview{position:static;order:3;width:100%;padding:14px;box-shadow:none;border-color:var(--line-3)}
  .preview-close{position:static;float:right;margin:-6px -6px 0 4px}
  .preview-heading{padding-right:0}
  .preview-source{padding-right:0}
  .map-caption{order:4;margin:0;font-size:12px}
  #municipal-note{order:5;margin:0;font-size:11px}
  #municipal-note:empty{display:none}
  .credit{order:6;margin:0;font-size:10px;line-height:1.5}
  .investigation{padding:14px;overflow:visible}
  .filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .filters>.field:first-child{grid-column:1/-1}
  .filters select{min-width:0}
  .panel-head{padding:16px;gap:12px}
  .table-tools{gap:12px}
  .row-button{padding-block:10px}
  .table-wrap{overscroll-behavior-x:contain}
  .history-actions{display:flex;flex-wrap:wrap;width:100%;gap:8px}
  .history-actions button{flex:1;justify-content:center}
  .history-controls{flex-wrap:wrap}
  .history-controls input{min-height:44px}
  .provenance-box summary{min-height:44px;padding-block:12px}
  .mobile-shortcuts{position:fixed;inset:auto 0 0;z-index:12;display:flex;justify-content:space-around;gap:4px;padding:6px 12px calc(6px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line-2)}
  .mobile-shortcuts a{display:flex;align-items:center;justify-content:center;min-height:44px;flex:1;color:var(--soft);font-size:13px;font-weight:550;text-decoration:none;border-radius:8px}
  .mobile-shortcuts a:hover,.mobile-shortcuts a:focus-visible{background:var(--raise);color:var(--text)}
  #placar,#map-title,#investigation-title,#history-section{scroll-margin-top:64px}
  .footer{margin-top:24px}
  body.tv .mobile-shortcuts{display:none}
}
@media print{.map-preview,.map-toolbar,.mobile-shortcuts{display:none!important}}

.map-preview{max-height:calc(100dvh - 80px);overflow:auto}
@media(max-width:560px){
  .map-switches select{min-height:44px}
  .map-preview{max-height:none;scroll-margin-block:64px 76px}
}

@media(max-width:360px){
  :root .masthead{flex-wrap:wrap;gap:8px;padding-block:10px}
  .masthead .brand{white-space:nowrap}
  .masthead .header-tools{margin-left:auto}
}

/* Direção editorial: hierarquia forte, leitura confortável e divisões estruturais. */
@font-face{font-family:"Barlow Condensed";src:url('/fonts/barlow-condensed-bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
:root{--display:"Barlow Condensed",Geist,sans-serif;--r-sm:6px;--r:10px;--r-lg:12px;--line:#383838;--line-2:#525252;--muted:#b5b5b5}
body{font-size:16px;line-height:1.6}
h2,h3,.candidate-numbers,.duel strong,.chip strong,.waiting strong{font-family:var(--display);font-weight:700;letter-spacing:-.015em}
h2,.panel-head h2{font-size:34px;line-height:1.1}
h3{font-size:26px;line-height:1.15}
h4{font-size:17px}
small,code{font-size:14px}
button,select,input[type=search]{min-height:44px;font-size:16px;border-width:2px}
.icon-button{width:44px}
.pill,.field,.segmented span,.segmented.buttons button{font-size:14px}
.segmented{border-width:2px;padding:4px}
.segmented span,.segmented.buttons button{min-height:40px;font-weight:600}
.segmented input:checked+span,.segmented.buttons button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);box-shadow:none}
.shell{max-width:1440px;padding-inline:32px}
main.shell{padding-top:32px}
.masthead{min-height:88px;border-bottom:3px solid var(--text)}
.brand b{font-family:var(--display);font-size:34px;font-weight:700;letter-spacing:-.015em}
.brand-tag,.live,.out-link{font-size:14px}
.ribbon{font-size:14px;letter-spacing:.015em;padding-block:10px;line-height:1.5}
.context-card{padding:22px 24px;border:2px solid var(--line-2);border-radius:var(--r-lg);margin-bottom:36px}
.context-text h2{font-size:28px}
.context-text p,.notice,.section-title p{font-size:15px;color:var(--soft)}
.context-main{gap:20px}
.notice{margin-top:18px;padding-top:16px;border-top:2px solid var(--line)}
.section-title{align-items:center;margin-bottom:20px}
.section-title h2{font-size:42px;display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 16px}
.section-title h2 span{font-family:var(--font);font-size:16px;font-weight:500;letter-spacing:0;color:var(--soft)}
.scoreboards{gap:24px;align-items:start}
.board{padding:24px;gap:20px;border:2px solid var(--line-2);border-top:5px solid var(--text);background:var(--surface);border-radius:0 0 12px 12px}
.board-head{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding-bottom:18px;border-bottom:2px solid var(--line);align-items:start}
.board-head>.tile{display:none}
.board-head h3{font-size:30px}
.note,.tag,.aggregate-controls,.aggregate-controls select,.empty{font-size:14px}
.tag{white-space:normal;letter-spacing:.02em;border-radius:5px;line-height:1.4}
.board-head .note{margin-top:8px}
.board-head{min-height:132px}
.candidate-details{font-size:14px;color:var(--soft)}
.candidate-details summary{cursor:pointer;min-height:44px;padding-block:10px}
.candidate-details .destinacao{padding-top:6px}
.source-details{font-size:14px;color:var(--soft)}
.source-details summary{cursor:pointer;min-height:44px;padding-block:10px}
.aggregate-controls{flex-wrap:wrap;justify-content:space-between;gap:8px}
.candidates{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.candidate{background:transparent;border:0;border-radius:0;padding:0;gap:14px}
.candidate+.candidate{border-left:1px solid var(--line-2);padding-left:20px}
.candidate:hover{border-color:var(--line-2)}
.candidate-name{font-size:18px;line-height:1.3;font-weight:650}
.cand-meta,.destinacao{font-size:14px;line-height:1.5}
.portrait{width:52px;height:66px;border-radius:6px}
.candidate-numbers{font-size:clamp(48px,4.5vw,64px);line-height:1;letter-spacing:-.02em}
.candidate-numbers small{font:600 22px var(--font);color:var(--soft)}
.candidate-numbers.na{font:600 18px/1.4 var(--font)}
.bar{height:8px;border-radius:2px}.bar i{border-radius:2px}
.cand-votes{font-size:15px;flex-wrap:wrap;gap:0 6px}
.cand-votes>span:first-child{font-weight:650;color:var(--text)}
.metrics{border:0;border-top:2px solid var(--line-2);border-bottom:2px solid var(--line-2);border-radius:0;background:var(--line-2)}
.metrics>div{padding:16px 12px;gap:6px;min-width:0}
.metric-label,.metric-detail{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.metric-value{font-size:21px;line-height:1.25;overflow-wrap:anywhere}
.source-time,.provenance,.provenance-box summary{font-size:14px}
.source-time{color:var(--soft)}
.comparison-details{border:2px solid var(--line-2);border-radius:6px;margin:24px 0 44px}
.comparison-details>summary,.comparison{font-size:15px}
.comparison-details .comparison{border:0;border-radius:0;padding:0 0 8px;line-height:1.7}
.panel{border:2px solid var(--line-2);border-radius:var(--r-lg);margin-bottom:28px}
.panel-head{border-bottom:2px solid var(--line-2);padding:24px}
.panel-head.tight{border:0;padding:0 0 12px}
.map-grid{grid-template-columns:minmax(0,1fr) 400px;gap:24px;padding:24px}
.map-stage{background:var(--bg-2);border:0;border-radius:6px}
.investigation{border:0;border-left:2px solid var(--line-2);border-radius:0;padding:0 0 0 24px;gap:18px}
.investigation h3{font-size:28px}
.filters select{font-size:16px}
.crumbs,.legend,.map-caption,.credit,.local-details{font-size:14px;line-height:1.6}
.local-result .candidate{padding:12px 0;border:0;border-bottom:1px solid var(--line-2)}
.local-result .candidate-numbers{font-size:38px}
.local-result .candidate-numbers.na{font:600 16px/1.4 var(--font);max-width:100px;overflow-wrap:normal}
.local-result .candidate-details{flex-basis:100%}
.region{padding:20px;background:transparent;border:0;border-top:3px solid var(--line-2);border-radius:0}
.region-head b{font-size:19px}.region-head span,.duel small,.region-foot{font-size:14px}
.duel{font-size:15px}.duel strong{font-size:36px}.stack{height:8px;border-radius:2px}
table{font-size:15px}th{font-size:14px;font-weight:600;padding:14px 16px}td,tbody th{padding:14px 16px}
.row-button span,.state-label,td .stack-empty{font-size:14px}
.chip span,.history-controls,.history-controls output,.history-text summary,.reference summary,.footer{font-size:14px}
.chip strong{font-size:34px}.chart .axis,.chart .end{font-size:14px}
.preview-heading h3{font-size:26px}
.preview-source,.preview-status,.preview-coverage,.preview-columns,.preview-candidates li,.preview-votes,.preview-details,.preview-heading>span{font-size:14px}
.preview-summary{font-size:15px}.map-preview{width:min(390px,calc(100% - 24px));border-width:2px;box-shadow:none}
.waiting{padding:24px;border:2px solid var(--line-2);background:var(--bg-2)}
.waiting strong{font-size:36px}.waiting span{font-size:16px}.waiting .countdown{font-size:18px}
.first-round .candidates>.candidate:nth-child(n+3){padding:14px 0;border-left:0;border-top:1px solid var(--line-2)}
.first-round .candidates>.candidate:nth-child(n+3) .candidate-name{font-size:16px}
.first-round .candidates>.candidate:nth-child(n+3) .candidate-details{grid-column:1/-1;order:6}
.first-round .candidates>.candidate:nth-child(n+3) .candidate-details .destinacao{display:block}
.first-round .candidates>.candidate:nth-child(n+3) .candidate-numbers{font-size:26px}
.first-round .candidates>.candidate:nth-child(n+3) .candidate-numbers small{font-size:14px}
@media(max-width:1100px){
  .map-grid{grid-template-columns:1fr}
  .investigation{border-left:0;border-top:2px solid var(--line-2);padding:24px 0 0}
  .candidates{gap:14px}.candidate+.candidate{padding-left:14px}
  .board-head{grid-template-columns:1fr}.board-head .tag{justify-self:start}
  .cand-id{flex-wrap:wrap}
}
@media(max-width:860px){
  .shell{padding-inline:20px}.scoreboards{grid-template-columns:1fr}
  .board-head{grid-template-columns:minmax(0,1fr) auto}
}
@media(max-width:560px){
  .shell{padding-inline:16px}main.shell{padding-top:20px}
  .masthead{min-height:76px;gap:8px}.brand b{font-size:30px}.mark{width:26px;height:26px}
  .header-tools{gap:6px}.live{font-size:14px}
  .ribbon{font-size:12px;padding:10px 12px}
  .context-card{padding:18px;margin-bottom:28px}.context-main{gap:14px}
  .context-text{min-width:0;flex-basis:calc(100% - 70px)}
  .context-text p,.notice{font-size:14px}
  .section-title h2{font-size:38px;gap:6px}.section-title h2 span{font-size:15px;flex-basis:100%}
  .board{padding:18px;gap:18px}.board-head{grid-template-columns:1fr}.board-head h3{font-size:30px}
  .candidates{gap:0}.candidate,.candidate+.candidate{padding:18px 0;border:0;border-bottom:2px solid var(--line);gap:10px 12px}
  .cand-id{flex-wrap:nowrap}.portrait{width:42px;height:54px}
  .candidate-name{font-size:17px}.cand-meta,.destinacao{font-size:14px}
  .candidate-details{grid-column:1/-1}
  .candidate-numbers{font-size:44px}.candidate-numbers small{font-size:18px}
  .candidate-numbers.na{font-size:15px;max-width:86px}
  .metrics>div{padding:14px 10px}.metric-value{font-size:22px}.source-time{font-size:14px}
  .aggregate-controls select{max-width:100%;font-size:16px}
  .panel-head{padding:18px}.panel-head h2{font-size:32px}
  .map-grid,.regions{padding:16px}.map-grid{gap:20px}
  .map-stage{padding:0;gap:16px}.map-stage .legend,.credit,#municipal-note,.map-caption{font-size:14px}
  .map-pan-mode{font-size:14px}.investigation{padding-top:20px}
  .local-result .candidate-numbers{font-size:34px}
  .local-result .candidate-numbers.na{font-size:15px}
  .local-result .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .map-preview{width:100%;padding:16px}.preview-columns,.preview-candidates li{grid-template-columns:minmax(0,1fr) 58px 55px;gap:6px}
  .comparison-details{margin:20px 0 32px;padding-inline:14px}
  .mobile-shortcuts{border-top:2px solid var(--line-2)}.mobile-shortcuts a{font-size:15px}
  .first-round .candidates>.candidate:nth-child(n+3) .candidate-name{font-size:16px}
  .theme-privacy,#mobile-theme-label{font-size:14px}
}
@media(max-width:360px){.candidate-numbers{font-size:38px}.candidate-name{font-size:16px}.board{padding:14px}.cand-id{gap:8px}}
@media print{.board,.panel{border-color:#555}.candidate{background:transparent}.source-time,.metric-detail,.metric-label{color:#333}}

/* Placar em primeiro plano: retratos, percentuais e avanço de cada fonte. */
.masthead{min-height:76px}
main.shell{padding-top:20px}
.context-card{padding:12px 0 18px;margin-bottom:22px;background:transparent;border:0;border-bottom:2px solid var(--line-2);border-radius:0}
.context-main{gap:14px}
.context-main>.tile,.context-text p{display:none}
.context-text{min-width:0}.context-text h2{font:600 16px var(--font);color:var(--soft)}
.context-main .segmented{padding:2px;border-width:1px}
.context-main .segmented span{min-height:40px}
.section-title{margin-bottom:22px;align-items:center}
.section-title h2{font-size:54px;line-height:1}
.section-title p{margin-top:7px;color:var(--soft)}
.section-title>p{margin:0;max-width:32ch;text-align:right;font-size:14px}
.scoreboards{gap:24px}
.scoreboards .board{padding:24px;gap:22px;border:2px solid var(--line-2);border-radius:12px;background:var(--surface)}
.scoreboards .board-head{min-height:0;padding:0 0 18px;border-bottom:1px solid var(--line-2);grid-template-columns:minmax(0,1fr) auto;gap:12px}
.scoreboards .board-head h3{font-size:28px}
.scoreboards .board-head .note{font-size:14px;max-width:48ch;margin-top:6px;line-height:1.5}
.scoreboards .board-head .tag{max-width:170px;font-size:12px;line-height:1.5;align-self:start}
.source-progress{display:grid;gap:9px}
.progress-label{display:flex;justify-content:space-between;align-items:baseline;gap:16px;font-size:14px;color:var(--soft)}
.progress-label strong{color:var(--text);font-size:20px;line-height:1.2;font-weight:650}
.source-track{height:5px;overflow:hidden;background:var(--line);border-radius:2px}
.source-track i{display:block;height:100%;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .6s cubic-bezier(.16,1,.3,1)}
.scoreboards .candidates,.first-round .scoreboards .candidates{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;container-type:normal}
.scoreboards .featured-candidate{display:flex;flex-direction:column;gap:12px;padding:0;border:0;min-width:0;align-items:stretch}
.scoreboards .featured-candidate+.featured-candidate{padding:0 0 0 22px;border-left:1px solid var(--line-2)}
.featured-candidate .cand-id{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px;align-items:center;min-height:124px}
.featured-candidate .portrait{width:100px;height:124px;border-radius:8px;font-size:28px;box-shadow:none;border:1px solid color-mix(in srgb,var(--s),var(--line) 50%)}
.featured-candidate .portrait img{object-position:50% 20%}
.featured-candidate .cand-meta{font-size:14px;margin-bottom:6px;color:var(--soft)}
.featured-candidate .candidate-name{font-family:var(--display);font-size:26px;font-weight:700;letter-spacing:0;line-height:1.05;text-wrap:balance}
.scoreboards .featured-candidate .candidate-numbers{font-family:var(--display);font-size:88px;font-weight:700;line-height:1;letter-spacing:-.02em;white-space:nowrap}
.scoreboards .featured-candidate .candidate-numbers small{font:600 27px var(--font);margin-left:4px}
.scoreboards .featured-candidate .candidate-numbers.na{font:600 18px/1.4 var(--font);white-space:normal;min-height:88px;display:flex;align-items:center}
.featured-candidate .bar{height:9px}
.featured-candidate .cand-votes{font-size:15px;display:block;line-height:1.4}
.featured-candidate .cand-votes>span:first-child{font-size:18px;display:block}
.featured-candidate .cand-votes>span:last-child{font-size:14px}
.featured-candidate .candidate-details{margin-top:0;font-size:14px}
.featured-candidate .candidate-details summary{min-height:36px;padding:6px 0;color:var(--muted)}
.more-candidates{grid-column:1/-1;border-top:1px solid var(--line-2);font-size:15px;min-width:0}
.more-candidates>summary{cursor:pointer;padding:16px 0 0;min-height:44px;color:var(--text);font-weight:550}
.more-candidates>summary:hover{color:var(--accent)}
.other-candidates{display:grid;margin-top:16px}
.other-candidates>.candidate,.first-round .other-candidates>.candidate{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;padding:16px 0;border:0;border-bottom:1px solid var(--line);border-radius:0}
.other-candidates .cand-id{flex-direction:row;flex-wrap:nowrap;align-items:center;gap:10px}
.other-candidates .portrait{width:42px;height:52px;font-size:16px}
.other-candidates .candidate-name{font-size:16px;font-family:var(--font);line-height:1.3}
.other-candidates .cand-meta{font-size:14px}
.other-candidates .candidate-numbers{font-size:32px;align-self:center;order:0;text-align:right}
.other-candidates .candidate-numbers small{font-size:16px}
.other-candidates .bar{display:none}
.other-candidates .cand-votes{grid-column:1/-1;justify-content:flex-start;gap:8px;font-size:14px}
.other-candidates .candidate-details{grid-column:1/-1;font-size:14px}
.other-candidates .candidate-details summary{padding-block:4px;min-height:32px}
.scoreboards .metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:auto;border-top:1px solid var(--line-2);border-bottom:0;background:transparent;gap:16px}
.scoreboards .metrics>div{background:transparent;padding:16px 0 0;gap:5px}
.scoreboards .metric-label{font-size:14px}.scoreboards .metric-value{font-size:20px}
.scoreboards .metric-detail{display:none}
.scoreboards .source-time{font-size:14px;line-height:1.6;margin-top:0}
.first-round .aggregate-controls{display:none}
.operational-details{margin-top:20px;font-size:14px;color:var(--soft)}
.operational-details>summary{min-height:44px;padding-block:10px;cursor:pointer}
.operational-details .notice{padding:0;margin:4px 0 16px;border:0;font-size:14px;max-width:75ch}
.comparison-details{margin-top:12px}
.ribbon{position:static;font-size:12px;padding:8px 16px;letter-spacing:0;font-weight:550}
@media(min-width:861px){.first-round .ribbon{padding-block:8px}}
@media(max-width:1200px) and (min-width:861px){
  .featured-candidate .cand-id{grid-template-columns:1fr;gap:12px;min-height:206px;align-content:start}
  .featured-candidate .candidate-name{font-size:24px}
  .scoreboards .featured-candidate .candidate-numbers{font-size:76px}
  .scoreboards .board-head{grid-template-columns:1fr}.scoreboards .board-head .tag{justify-self:start}
}
@media(max-width:560px){
  main.shell{padding-top:12px}.masthead{min-height:68px}
  .context-card{padding:4px 0 12px;margin-bottom:20px}
  .context-text{display:none}.context-main{gap:10px}
  .context-main .segmented{padding:2px}.context-main .segmented span{min-height:40px}
  .section-title{display:block;margin-bottom:18px}.section-title h2{font-size:44px}
  .section-title p{font-size:14px}.section-title>p{text-align:left;max-width:none;margin-top:8px}
  .scoreboards{gap:20px}.scoreboards .board{padding:18px 16px;gap:20px}
  .scoreboards .board-head{grid-template-columns:1fr;gap:8px;padding-bottom:16px}
  .scoreboards .board-head h3{font-size:28px}.scoreboards .board-head .tag{justify-self:start;max-width:none}
  .scoreboards .candidates,.first-round .scoreboards .candidates{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .scoreboards .featured-candidate,.scoreboards .featured-candidate+.featured-candidate{padding:0;border:0;gap:12px}
  .scoreboards .featured-candidate+.featured-candidate{padding-left:16px;border-left:1px solid var(--line-2)}
  .featured-candidate .cand-id{grid-template-columns:1fr;gap:12px;min-height:202px;align-content:start}
  .featured-candidate .portrait{width:96px;height:120px;border-radius:6px}
  .featured-candidate .cand-meta{font-size:14px;white-space:nowrap}
  .featured-candidate .candidate-name{font-size:23px;line-height:1.08}
  .scoreboards .featured-candidate .candidate-numbers{font-size:60px}
  .scoreboards .featured-candidate .candidate-numbers small{font-size:18px;margin-left:2px}
  .scoreboards .featured-candidate .candidate-numbers.na{font-size:16px;min-height:60px;max-width:none}
  .featured-candidate .cand-votes>span:first-child{font-size:16px}
  .featured-candidate .candidate-details summary{font-size:14px;min-height:44px}
  .featured-candidate .candidate-details .destinacao{font-size:14px;overflow-wrap:anywhere}
  .scoreboards .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .scoreboards .metrics>div:last-child:nth-child(odd){display:flex;grid-column:1/-1;flex-direction:row;align-items:baseline;justify-content:space-between;gap:10px}
  .scoreboards .metric-value{font-size:19px}.scoreboards .metrics>div:last-child .metric-value{font-size:17px}
  .other-candidates .candidate-name{font-size:16px}.other-candidates .cand-votes{display:flex}
  .ribbon{font-size:12px;line-height:1.5;padding:8px 16px;text-align:left}
}
@media(max-width:360px){
  .scoreboards .board{padding:16px 12px}.scoreboards .candidates,.first-round .scoreboards .candidates{gap:12px}
  .scoreboards .featured-candidate+.featured-candidate{padding-left:12px}
  .scoreboards .featured-candidate .candidate-numbers{font-size:50px}
  .featured-candidate .portrait{width:88px;height:110px}.featured-candidate .candidate-name{font-size:22px}
}
body.tv .operational-details{display:none}
.scoreboards .board-head>div{display:contents}
.scoreboards .board-head h3{grid-column:1;grid-row:1}
.scoreboards .board-head .note{grid-column:1/-1;grid-row:2;margin-top:0;max-width:none}
.scoreboards .board-head .tag{grid-column:2;grid-row:1}
@media(min-width:861px){.scoreboards .board-head{min-height:92px;align-content:start}}
@media(max-width:560px){
  .context-main{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  #turno-group,#cargo-group{min-width:0}
  .context-main .segmented span{font-size:14px;padding:6px 4px;letter-spacing:-.02em}
  .context-main .segmented label{min-width:0}
  #governor-control{grid-column:1/-1}
  .scoreboards .board-head{grid-template-columns:minmax(0,1fr) auto;gap:8px 10px}
  .scoreboards .board-head h3{font-size:26px;align-self:center}
  .scoreboards .board-head .tag{align-self:center;max-width:118px;font-size:12px;padding:4px 6px}
  .scoreboards .featured-candidate .candidate-numbers{font-size:56px}
}
@media(max-width:360px){
  .context-main{grid-template-columns:1fr}
  #mobile-menu-toggle{font-size:0;width:44px;padding:0;justify-content:center;gap:0}
  #mobile-menu-toggle svg{width:20px;height:20px}
  .scoreboards .featured-candidate .candidate-numbers{font-size:44px}
}
.map-switches{align-items:end}
.map-switches>.field{min-width:150px}
#map-governor-control{min-width:210px}
@media(max-width:560px){
  .map-switches>.field,#map-governor-control{width:100%;min-width:0}
}

/* Localidade: reservar a barra de rolagem e uma coluna inteira para o percentual. */
.investigation{scrollbar-gutter:stable;padding-inline-end:14px}
.local-result .candidate,
.first-round .local-result .candidates>.candidate:nth-child(n+3){
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;min-width:0
}
.local-result .candidate .cand-id{grid-column:1;grid-row:1;min-width:0;flex-wrap:nowrap}
.local-result .candidate .candidate-name{overflow-wrap:anywhere}
.local-result .candidate .candidate-numbers,
.first-round .local-result .candidates>.candidate:nth-child(n+3) .candidate-numbers{
  grid-column:2;grid-row:1;order:0;justify-self:end;white-space:nowrap
}
.local-result .candidate .candidate-numbers.na{white-space:normal}
.local-result .candidate .bar,
.local-result .candidate .cand-votes,
.local-result .candidate .candidate-details{grid-column:1/-1;min-width:0}
@media(max-width:1100px){.investigation{scrollbar-gutter:auto;padding-inline-end:0}}
.board-estimate{margin-top:16px;border-style:dashed;border-color:var(--line-3)}
.estimate-rows{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.estimate-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:end;padding:14px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface-2)}
.estimate-value{font-size:32px;line-height:1;font-weight:600;letter-spacing:-.02em;color:var(--text)}
.estimate-range{grid-column:1/-1;font-size:12px;color:var(--muted)}
.estimate-track{grid-column:1/-1;position:relative;height:10px;margin-top:6px;border-radius:999px;background:var(--raise);overflow:hidden}
.estimate-band{position:absolute;top:0;bottom:0;background:var(--s);opacity:.75;border-radius:999px}
.estimate-mid{position:absolute;left:50%;top:-2px;bottom:-2px;width:1px;background:var(--line-3)}
.estimate-details{margin-top:12px;border-top:1px solid var(--line);padding-top:8px}
.estimate-details>summary{cursor:pointer;font-size:13px;color:var(--soft);min-height:36px;padding:6px 0}
.estimate-table{overflow-x:auto}
.estimate-table table{width:100%;border-collapse:collapse;font-size:12px}
.estimate-table th,.estimate-table td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
.estimate-table th[scope=row],.estimate-table thead th:first-child{text-align:left}
.estimate-polls{margin:8px 0 0;padding-left:18px;font-size:12px;color:var(--muted)}
@media (max-width:720px){.estimate-rows{grid-template-columns:1fr}.estimate-value{font-size:26px}}
.estimate-scale{grid-column:1/-1;display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}
/* Celular: soma independente recolhida (decisão do usuário em 25/10/2026); o % dela acompanha o do TSE. */
.board-body{display:contents}
.sum-toggle,.sum-peek{display:none}
@media(max-width:860px){
  .board-sum:not(.is-open) .board-body{display:none}
  .sum-toggle{display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;padding:8px 14px;border:2px solid var(--line-2);border-radius:var(--r-sm,6px);background:var(--surface-2);color:var(--text);font:550 15px var(--font);cursor:pointer;transition:background .18s,border-color .18s}
  .sum-toggle:hover,.sum-peek:hover{background:var(--raise);border-color:var(--line-3)}
  .sum-toggle:focus-visible,.sum-peek:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
  .sum-peek:not([hidden]){display:flex;align-items:baseline;gap:6px;width:100%;min-height:44px;padding:6px 10px;border:1px solid var(--line-2);border-radius:6px;background:transparent;color:var(--soft);font:650 22px/1 var(--display);font-variant-numeric:tabular-nums;cursor:pointer;text-align:left;transition:background .18s,border-color .18s}
  .sum-peek span{font:500 13px var(--font);color:var(--muted)}
}
@media(max-width:560px){
  .context-card{margin-bottom:14px}
  .section-title{margin-bottom:12px}.section-title h2{font-size:36px}.section-title>p{margin-top:4px}
  .scoreboards .board{padding:16px 14px;gap:14px}
  .scoreboards .board-head{padding-bottom:12px}
  .scoreboards .featured-candidate,.scoreboards .featured-candidate+.featured-candidate{gap:8px}
  .featured-candidate .cand-id{min-height:0;gap:8px}
  .featured-candidate .portrait{width:76px;height:94px}
  .featured-candidate .cand-meta{margin-bottom:2px}
  .featured-candidate .candidate-name{font-size:21px;line-height:1.08;min-height:2.16em}
  .scoreboards .featured-candidate .candidate-numbers{font-size:52px}
  .scoreboards .featured-candidate .candidate-numbers.na{min-height:52px}
}
@media(max-width:360px){
  .featured-candidate .portrait{width:68px;height:84px}
  .scoreboards .featured-candidate .candidate-numbers{font-size:44px}
}
/* Nada pode arrastar a página para os lados no celular; tabelas e mapa rolam dentro do próprio quadro. */
html,body{overflow-x:clip}
