:root {
  --paper:#f7f8fa; --sheet:#fff; --ink:#172d43; --muted:#647487; --rule:#e2e7ec;
  --ballot:#244f76; --valid:#28704b; --valid-bg:#edf5ee; --red:#b43d45; --blue:#3266a6;
  --space:8px; --radius:8px;
  color-scheme:light; font-family:Inter,"Segoe UI",Arial,sans-serif; color:var(--ink); background:var(--paper);
}
* { box-sizing:border-box; }
body { margin:0; }
button,input { font:inherit; }
button,a,input { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; color:inherit; }
button:focus-visible,a:focus-visible,input:focus-visible { outline:3px solid #447caf; outline-offset:3px; }
[hidden] { display:none !important; }
a { color:var(--ballot); text-decoration:none; }
a:hover { text-decoration:underline; }
.masthead { height:92px; max-width:1360px; padding:0 40px; margin:auto; display:flex; align-items:center; justify-content:space-between; }
.brand { display:flex; align-items:center; gap:12px; }
.brand-mark { display:grid; place-items:center; width:38px; height:42px; background:var(--ink); color:white; font-size:24px; font-weight:750; border-radius:4px; }
.brand strong { font-size:18px; letter-spacing:3px; display:block; }
.brand div>span { display:block; color:var(--muted); font-size:12px; margin-top:4px; }
.source-badge { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); }
.source-badge strong { margin-left:10px; border:1px solid var(--rule); padding:5px 8px; color:var(--ink); border-radius:4px; }
.status-dot { width:6px; height:6px; border-radius:50%; background:var(--valid); }
.tabbar { display:flex; padding:0 max(40px,calc((100% - 1280px)/2)); border-top:1px solid var(--rule); border-bottom:1px solid var(--rule); background:var(--sheet); align-items:center; gap:32px; }
.tabbar button { padding:18px 0; font-size:14px; font-weight:600; border:0; border-bottom:3px solid transparent; background:none; color:var(--muted); }
.tabbar button:hover { color:var(--ink); }
.tabbar button[aria-selected=true] { border-bottom-color:var(--ballot); color:var(--ink); }
.historical-note { margin-left:auto; color:var(--muted); font-size:12px; }
main { max-width:1360px; padding:28px 40px; margin:auto; }
.controls,.control-groups { display:flex; align-items:center; gap:16px; }
.controls { justify-content:space-between; min-height:38px; }
.segmented { display:flex; border:1px solid var(--rule); border-radius:6px; background:var(--sheet); padding:3px; gap:3px; }
.segmented button { padding:7px 14px; font-size:12px; border:0; border-radius:3px; background:transparent; color:var(--muted); font-weight:600; }
.segmented button[aria-pressed=true] { background:var(--ink); color:white; }
.button { background:var(--sheet); border:1px solid var(--rule); border-radius:5px; padding:10px 14px; font-size:12px; font-weight:600; }
.button:hover { border-color:#a7b6c5; }
.button:disabled { cursor:default; opacity:.5; }
.page-heading { display:flex; justify-content:space-between; align-items:center; margin:28px 0 24px; gap:16px; }
.eyebrow { text-transform:uppercase; letter-spacing:1.3px; font-size:10px; font-weight:700; color:var(--muted); margin:0 0 10px; }
h1 { font-size:30px; letter-spacing:-.8px; font-weight:650; margin:0; line-height:1.2; }
#subtitle { font-size:13px; color:var(--muted); margin:10px 0 0; }
.final-status { background:var(--valid-bg); color:var(--valid); border:1px solid #d5e7d7; padding:7px 11px; border-radius:4px; font-size:11px; font-weight:600; white-space:nowrap; }
.final-status.replaying { background:#edf2f8; color:var(--ballot); border-color:#d5dfeb; }
.candidate-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:20px; }
.candidate-card { background:var(--sheet); border:1px solid var(--rule); border-top:3px solid var(--candidate); border-radius:var(--radius); overflow:hidden; }
.candidate-card-inner { display:flex; align-items:center; gap:24px; padding:24px; }
.portrait { position:relative; flex-shrink:0; width:108px; height:132px; border-radius:4px; overflow:hidden; background:#eef1f4; }
.portrait img { width:100%; height:100%; object-fit:cover; object-position:center 25%; display:block; }
.avatar { display:flex; width:100%; height:100%; align-items:center; justify-content:center; font-size:20px; color:var(--muted); background:#eef1f4; font-weight:600; }
.candidate-name { font-size:17px; font-weight:650; margin:0 0 6px; letter-spacing:-.2px; }
.candidate-party { color:var(--muted); font-size:11px; }
.candidate-pct { font-size:68px; font-weight:650; letter-spacing:-2px; font-variant-numeric:tabular-nums; margin:12px 0 7px; line-height:1; }
.candidate-pct span { font-size:25px; letter-spacing:-1px; color:var(--muted); }
.candidate-votes { font-size:12px; font-variant-numeric:tabular-nums; color:var(--muted); }
.candidate-status { padding:12px 24px; border-top:1px solid var(--rule); display:flex; justify-content:space-between; font-size:10px; color:var(--muted); background:#fcfdfe; }
.candidate-status strong { color:var(--candidate); font-weight:600; }
.vote-bar { display:flex; height:8px; overflow:hidden; border-radius:3px; background:var(--rule); margin:0 0 8px; }
.vote-bar span { display:block; min-width:1px; }
.bar-legend { display:flex; justify-content:space-between; color:var(--muted); font-size:10px; margin:0 0 24px; }
.majority-note { font-size:12px; color:var(--muted); margin:-12px 0 24px; }
.metrics { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--rule); border-radius:var(--radius); background:var(--sheet); margin:0 0 24px; }
.metric { padding:20px 24px; border-right:1px solid var(--rule); }
.metric:last-child { border:0; }
.metric-label { font-size:11px; color:var(--muted); margin:0 0 10px; }
.metric-value { font-size:23px; font-weight:600; letter-spacing:-.5px; font-variant-numeric:tabular-nums; }
.metric-note { color:var(--muted); font-size:10px; margin-top:7px; }
.panel { border:1px solid var(--rule); border-radius:var(--radius); background:var(--sheet); overflow:hidden; margin-bottom:24px; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 24px; }
.panel-heading h2 { font-size:15px; font-weight:600; margin:0; }
.panel-heading p { font-size:11px; color:var(--muted); margin:5px 0 0; }
.panel-heading>span { color:var(--muted); font-size:10px; }
.chart { padding:0 24px 16px; }
.chart svg { display:block; width:100%; height:auto; max-height:240px; }
.chart text { font-size:10px; fill:var(--muted); font-family:inherit; }
.chart .grid { stroke:#edf0f4; stroke-width:1; }
.chart polyline { fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.chart-legend { display:flex; gap:24px; font-size:10px; color:var(--muted); padding-bottom:12px; }
.chart-legend span { display:flex; align-items:center; gap:6px; }
.chart-legend i { display:block; height:3px; width:18px; }
.table-scroll { overflow:auto; max-height:580px; }
table { width:100%; border-collapse:collapse; font-size:12px; white-space:nowrap; }
th { text-align:left; color:var(--muted); background:#f9fafb; padding:12px 24px; font-size:10px; font-weight:600; border-top:1px solid var(--rule); border-bottom:1px solid var(--rule); position:sticky; top:0; z-index:1; }
td { padding:12px 24px; border-bottom:1px solid #edf0f3; }
tr:last-child td { border-bottom:0; }
tbody tr:hover { background:#fafbfd; }
th.numeric,td.numeric { text-align:right; font-variant-numeric:tabular-nums; }
th button { padding:0; border:0; font-size:inherit; font-weight:inherit; color:inherit; background:none; }
.person { display:flex; align-items:center; gap:12px; }
.person .portrait { width:34px; height:40px; border-radius:4px; }
.person .avatar { font-size:11px; }
.person strong { display:block; font-size:11px; font-weight:600; }
.person small { display:block; font-size:10px; color:var(--muted); margin-top:4px; }
.pill { display:inline-block; border-radius:3px; font-size:10px; padding:4px 7px; color:var(--muted); background:#f0f3f6; }
.pill.elected { color:var(--valid); background:var(--valid-bg); }
.region-grid { display:grid; grid-template-columns:repeat(6,1fr); padding:0 24px 20px; gap:12px; }
.region-block { background:#f8fafb; border:1px solid var(--rule); padding:12px; border-radius:4px; }
.region-block strong { font-size:10px; display:block; margin-bottom:10px; }
.region-block div { font-size:12px; font-weight:600; margin-top:6px; display:flex; justify-content:space-between; }
.region-block small { font-size:9px; font-weight:400; }
.timeline-panel { display:flex; align-items:center; padding:16px 20px; gap:20px; border:1px solid var(--rule); background:var(--sheet); border-radius:var(--radius); margin-bottom:20px; }
.timeline-input { flex:1; }
.timeline-input label { font-size:10px; display:block; color:var(--muted); margin-bottom:8px; }
.timeline-input input { width:100%; accent-color:var(--ballot); }
#timeline-progress { font-size:12px; font-variant-numeric:tabular-nums; }
.feedback { padding:16px; background:#fff4df; color:#78501a; font-size:12px; border-radius:6px; margin-bottom:20px; }
.loading,.empty { padding:32px 24px; font-size:13px; color:var(--muted); }
.search-controls { display:flex; gap:12px; align-items:center; }
.search-controls input[type=search] { border:1px solid var(--rule); border-radius:5px; font-size:11px; padding:10px 12px; background:#fafbfd; width:260px; }
.search-controls label { display:flex; gap:6px; align-items:center; font-size:10px; color:var(--muted); }
.search-controls input[type=checkbox] { accent-color:var(--ballot); }
.chamber { display:flex; flex-wrap:wrap; max-width:460px; gap:7px; padding:0 24px 20px; }
.seat { width:12px; height:12px; border-radius:50%; display:block; }
.group-filter { font-size:11px; font-weight:600; border:0; background:none; color:var(--ballot); padding:0; }
.group-filter:hover { text-decoration:underline; }
.allocation-note { display:flex; justify-content:space-between; gap:12px; font-size:11px; margin:0 24px 20px; padding:12px; background:var(--valid-bg); color:var(--valid); border-radius:4px; }
.audit-line { padding:8px 0; font-size:11px; color:var(--muted); }
.audit-list { padding:0 24px 20px; max-height:260px; overflow:auto; }
.two-columns { display:grid; grid-template-columns:1fr 1.4fr; gap:24px; }
.link-button { font-size:10px; color:var(--ballot); background:none; border:0; padding:0; }
footer { border-top:1px solid var(--rule); margin-top:32px; padding:20px 0; display:flex; flex-wrap:wrap; justify-content:space-between; font-size:10px; line-height:1.6; color:var(--muted); }
footer strong { color:var(--ink); font-weight:600; }
footer p { flex-basis:100%; margin:8px 0 0; }
@media(min-width:1800px) { main,.masthead { max-width:1580px; } .candidate-pct { font-size:66px; } }
@media(max-width:1000px) { .candidate-card-inner { gap:16px; padding:20px; } .portrait { width:88px; height:115px; } .candidate-pct { font-size:44px; } .metric { padding:16px; } .region-grid { grid-template-columns:repeat(3,1fr); } .two-columns { grid-template-columns:1fr; gap:0; } .search-controls { flex-wrap:wrap; } }
@media(max-width:640px) {
  .masthead { height:76px; padding:0 20px; } .brand strong { font-size:15px; letter-spacing:2px; } .brand div>span { font-size:10px; } .source-badge { font-size:9px; max-width:120px; line-height:1.5; } .source-badge strong { margin-left:3px; border:0; padding:0; }
  .tabbar { padding:0 20px; gap:24px; overflow-x:auto; scrollbar-width:none; } .tabbar button { white-space:nowrap; flex-shrink:0; } .tabbar button { font-size:12px; padding:15px 0; } .historical-note { display:none; }
  main { padding:20px 16px; } .controls { gap:8px; flex-wrap:wrap; } .control-groups { gap:8px; flex-wrap:wrap; } .segmented button { padding:7px 10px; } .button { font-size:10px; padding:9px 12px; }
  .page-heading { align-items:flex-start; flex-direction:column; margin-top:24px; } h1 { font-size:25px; } #subtitle { line-height:1.5; font-size:12px; }
  .candidate-grid { grid-template-columns:1fr; gap:12px; } .candidate-card-inner { padding:20px; gap:20px; } .portrait { width:96px; height:120px; } .candidate-pct { font-size:46px; } .candidate-name { font-size:16px; }
  .candidate-status { padding:10px 20px; } .metrics { grid-template-columns:1fr 1fr; } .metric { padding:16px; border-bottom:1px solid var(--rule); } .metric:nth-child(2) { border-right:0; } .metric:nth-child(3),.metric:nth-child(4) { border-bottom:0; } .metric-value { font-size:20px; }
  .panel-heading { padding:16px; flex-wrap:wrap; } .panel-heading h2 { font-size:14px; } .chart { padding:0 8px 12px; } th,td { padding:12px 16px; }
  .region-grid { padding:0 16px 16px; gap:8px; grid-template-columns:1fr 1fr; } .region-block { padding:10px; } .timeline-panel { padding:12px; gap:10px; flex-wrap:wrap; } .timeline-input { min-width:170px; } .search-controls { width:100%; } .search-controls input[type=search] { width:100%; }
  .bar-legend { font-size:9px; } .allocation-note { margin:0 16px 16px; line-height:1.5; } footer { gap:10px; } footer p { margin-top:0; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto; } .flash { animation:none; } }
@keyframes flash { from { background:#fff1bf; } to { background:transparent; } }
.flash { animation:flash 3s ease-out; border-radius:4px; }
.chart line.flip-2022 { stroke:var(--muted); stroke-width:1.5; stroke-dasharray:6 5; }
.chart text.flip-label { fill:var(--muted); font-size:11px; }
.chart polyline.ref { stroke-dasharray:7 6; opacity:.5; }
.chart-legend i.ref-key { background:none; border-top:2px dashed var(--muted); height:0; }
.tone-red { --candidate:#b43d45; } .tone-blue { --candidate:#3266a6; } .tone-green { --candidate:#397557; } .tone-gold { --candidate:#977338; } .tone-purple { --candidate:#786494; } .tone-gray { --candidate:#687c91; }
.vote-bar span,.seat,.chart-legend i { background:var(--candidate); }
.region-block div { color:var(--candidate); }

.control-groups { flex-wrap:wrap; }
.segmented button:disabled { opacity:.45; cursor:default; }
.connection-status { font-size:12px; color:var(--muted); margin:0 0 16px; padding:10px 12px; border:1px solid var(--rule); background:var(--sheet); border-radius:5px; }
.connection-status.stale { background:#fff8e9; color:#805d28; border-color:#eeddbb; }
.projection-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:24px; padding:4px 24px 20px; }
.ranges { padding:0 24px 18px; display:grid; gap:10px; }
.range-row { display:grid; grid-template-columns:170px 1fr 120px; gap:12px; align-items:center; font-size:12px; }
.range-row span:last-child { color:var(--muted); font-variant-numeric:tabular-nums; }
.range-track { position:relative; height:14px; background:var(--rule); border-radius:7px; }
.range-band { position:absolute; top:0; bottom:0; background:var(--candidate); opacity:.35; border-radius:7px; }
.range-dot { position:absolute; top:-3px; width:4px; height:20px; margin-left:-2px; background:var(--candidate); border-radius:2px; }
.range-scale { display:flex; justify-content:space-between; font-size:10px; color:var(--muted); margin-left:182px; margin-right:132px; }
.side-direita { --candidate:#3266a6; } .side-centro { --candidate:#977338; } .side-esquerda { --candidate:#b43d45; } .side-nao-classificado { --candidate:#687c91; }
.senate-groups { display:flex; flex-wrap:wrap; gap:28px; padding:4px 24px 12px; }
.senate-groups div { border-left:3px solid var(--candidate); padding:2px 14px; }
.senate-groups span,.senate-groups small { display:block; color:var(--muted); font-size:12px; }
.senate-groups strong { display:block; font-size:34px; color:var(--candidate); font-variant-numeric:tabular-nums; }
.senate-seats { padding:0 24px; }
.senate-seats.compact { max-width:none; gap:4px; }
.senate-seats.compact .seat { width:8px; height:8px; }
.side-nao-calculado { --candidate:#c9d0d8; }
.senate-note { font-size:11px; color:var(--muted); padding:10px 24px 16px; margin:0; line-height:1.7; }
.map-wrap { padding:0 24px 8px; display:flex; justify-content:center; }
.map-wrap svg { width:100%; max-width:620px; height:auto; }
.uf-shape { fill:var(--candidate); fill-opacity:.82; stroke:#fff; stroke-width:1.2; }
.uf-shape:hover { fill-opacity:1; }
.uf-shape.side-vazio { fill:#d9dee4; }
.map-wrap text { font-size:11px; font-weight:700; fill:#fff; pointer-events:none; paint-order:stroke; stroke:rgba(0,0,0,.35); stroke-width:2px; }
.dot { display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--candidate); margin-right:6px; }
.projection-banner { background:var(--ink); color:#fff; border-radius:var(--radius); padding:16px 22px; margin:0 0 20px; display:grid; gap:4px; }
.projection-banner strong { font-size:18px; letter-spacing:-.2px; }
.projection-banner span { font-size:12px; opacity:.8; }
.sc-grid { padding:0 24px 20px; margin:0; }
.minor-card b { color:var(--ink); }
.track-record { background:linear-gradient(135deg,#123d2b,#1d5a40); color:#fff; border-radius:12px; padding:22px 26px; margin:0 0 20px; }
.track-kicker { margin:0 0 6px; font-size:11px; letter-spacing:1.4px; text-transform:uppercase; opacity:.75; font-weight:700; }
.track-record h2 { margin:0 0 16px; font-size:24px; line-height:1.25; letter-spacing:-.4px; }
.track-compare { display:grid; grid-template-columns:1fr 1fr .8fr; gap:14px; }
.track-col { background:rgba(255,255,255,.08); border-radius:8px; padding:12px 14px; display:grid; gap:4px; }
.track-col > span { font-size:11px; opacity:.75; }
.track-col div { display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.track-col small { font-size:12px; opacity:.85; }
.track-col b { font-size:22px; font-variant-numeric:tabular-nums; }
.track-gap b { font-size:34px; color:#b6f0cf; }
.track-cta { margin-top:16px; display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; border-top:1px solid rgba(255,255,255,.2); padding-top:14px; }
.track-cta strong { font-size:16px; }
.track-cta span { font-size:13px; opacity:.85; flex:1 1 260px; }
.track-share { background:#fff; color:#123d2b; font-weight:700; font-size:13px; padding:9px 14px; border-radius:6px; text-decoration:none; }
.track-share:hover { text-decoration:none; background:#e9f7ef; }
.track-note { margin:10px 0 0; font-size:11px; opacity:.65; }
@media(max-width:700px) { .track-compare { grid-template-columns:1fr; } .track-record h2 { font-size:19px; } }
.hist-bar { display:flex; height:10px; width:220px; border-radius:5px; overflow:hidden; background:var(--rule); }
.hist-bar span { display:block; background:var(--candidate); }
.hist-maps { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; padding:0 24px 20px; }
.hist-map { display:grid; gap:6px; text-align:center; }
.hist-map svg { width:100%; height:auto; }
@media(max-width:700px) { .hist-maps { grid-template-columns:1fr; } .hist-bar { width:120px; } }
.minor-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin:-8px 0 20px; }
.minor-card { display:flex; gap:12px; align-items:center; background:var(--sheet); border:1px solid var(--rule); border-top:3px solid var(--candidate); border-radius:var(--radius); padding:12px; min-width:0; }
.minor-card.blank { --candidate:var(--rule); }
.minor-card .portrait { width:48px; height:60px; }
.minor-card div { min-width:0; }
.minor-card strong { display:block; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.minor-card small { display:block; color:var(--muted); font-size:10px; }
.minor-pct { display:block; font-size:22px; font-weight:650; font-variant-numeric:tabular-nums; margin:4px 0 2px; }
@media(max-width:1000px) { .minor-grid { grid-template-columns:repeat(3,1fr); } }
@media(max-width:600px) { .minor-grid { grid-template-columns:1fr 1fr; } .minor-card strong { white-space:normal; } }
.region-progress { display:block; color:var(--muted); font-size:11px; margin:2px 0 6px; }
.lead-13 td { background:#fbeced; }
.lead-22 td { background:#eaf5ec; }
.comparison ul { margin:0; padding:4px 24px 18px 42px; font-size:13px; line-height:1.9; }
.projection { border-left:3px solid var(--candidate); padding:8px 18px; }
.probability-value { display:block; font-size:40px; line-height:1.1; color:var(--candidate); letter-spacing:-1.5px; margin:8px 0; }
.projection h3 { margin:6px 0; font-size:15px; }
.projection p { margin:10px 0 0; font-size:13px; line-height:1.8; }
.projection p span { color:var(--muted); }
.model-note { border-top:1px solid var(--rule); padding:14px 24px; display:flex; flex-wrap:wrap; gap:12px; font-size:12px; }
.model-note span { color:var(--muted); }
@media(max-width:600px) {
  .controls { align-items:flex-start; }
  .control-groups { gap:8px; }
  #year-controls { flex-basis:100%; }
  .projection-grid { grid-template-columns:1fr; gap:16px; padding:4px 16px 16px; }
  .range-row { grid-template-columns:1fr; gap:4px; }
  .range-scale { margin:0; }
  .ranges { padding:0 16px 16px; }
  .comparison ul { padding:4px 16px 16px 32px; }
  .probability-value { font-size:44px; }
  .model-note { padding:12px 16px; }
}

.waiting-panel { min-height:340px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:40px 24px; }
.waiting-panel h2 { margin:24px 0 12px; font-size:24px; letter-spacing:-.4px; }
.waiting-panel p { margin:0; max-width:460px; color:var(--muted); font-size:14px; line-height:1.7; }
.waiting-panel>span { margin-top:18px; color:var(--muted); font-size:12px; }
.waiting-clock { width:48px; height:48px; border:2px solid #acbccb; border-radius:50%; position:relative; }
.waiting-clock::before { content:''; position:absolute; width:2px; height:14px; top:9px; left:21px; background:var(--ballot); border-radius:2px; }
.waiting-clock::after { content:''; position:absolute; width:11px; height:2px; top:22px; left:22px; background:var(--ballot); border-radius:2px; transform:rotate(30deg); transform-origin:left center; }
@media(max-width:600px) { .waiting-panel h2 { font-size:21px; } }

.projection-wait { padding:16px 24px; color:var(--muted); font-size:13px; }
.projection-wait p { margin:0; }

/* Notícias e projeções: página editorial do 2º turno. Serifa do sistema (a CSP não carrega fontes externas). */
.newsroom-page { --serif:Charter,"Bitstream Charter","Sitka Text",Cambria,Georgia,serif; }
.np-lead { padding:8px 0 28px; margin-bottom:24px; border-bottom:1px solid var(--rule); }
.np-kicker { margin:0 0 14px; font-size:13px; font-weight:600; color:var(--ballot); }
.np-title { font-family:var(--serif); font-size:44px; line-height:1.12; font-weight:700; letter-spacing:-.5px; margin:0; max-width:20em; text-wrap:balance; }
.np-deck { font-family:var(--serif); font-size:20px; line-height:1.55; color:#3c4f63; margin:16px 0 30px; max-width:38em; }
.runoff-line { margin:0; max-width:980px; }
.rl-names { display:flex; justify-content:space-between; font-size:15px; font-weight:650; margin-bottom:10px; }
.rl-names .tone-red { color:var(--red); } .rl-names .tone-blue { color:var(--blue); }
.rl-names b { font-size:26px; font-weight:750; font-variant-numeric:tabular-nums; }
.rl-track { position:relative; height:46px; background:var(--blue); border-radius:3px; overflow:hidden; }
.rl-lula { position:absolute; inset:0 auto 0 0; background:var(--red); }
.rl-band { position:absolute; top:0; bottom:0; background:repeating-linear-gradient(135deg,rgba(255,255,255,.55) 0 3px,transparent 3px 8px); border-left:2px solid #fff; border-right:2px solid #fff; }
.rl-50 { position:absolute; top:-6px; bottom:-6px; width:0; border-left:2px dashed var(--ink); transform:translateX(-1px); }
.rl-first { position:absolute; top:0; width:0; height:0; border-left:8px solid transparent; border-right:8px solid transparent; border-top:11px solid var(--ink); transform:translateX(-8px); }
.rl-axis { position:relative; height:22px; margin-top:6px; font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums; }
.rl-tick { position:absolute; transform:translateX(-50%); }
.rl-half { color:var(--ink); font-weight:700; }
.runoff-line figcaption { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; font-size:12px; color:var(--muted); margin-top:8px; line-height:1.5; }
.rl-key-band { width:22px; height:12px; background:var(--muted) repeating-linear-gradient(135deg,rgba(255,255,255,.6) 0 3px,transparent 3px 8px); border-radius:2px; }
.rl-key-first { width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; border-top:9px solid var(--ink); margin-left:12px; }
.np-block { margin-bottom:24px; }
.np-columns { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:48px; margin-top:36px; }
.np-h2 { font-size:15px; font-weight:700; margin:0 0 14px; }
.news-filter { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.news-filter button { border:1px solid var(--rule); background:var(--sheet); border-radius:999px; padding:6px 14px; font-size:13px; font-weight:600; color:var(--muted); }
.news-filter button span { font-weight:500; margin-left:2px; font-variant-numeric:tabular-nums; }
.news-filter button[aria-pressed=true] { background:var(--ink); border-color:var(--ink); color:#fff; }
.news-day { font-size:13px; font-weight:600; color:var(--muted); margin:26px 0 4px; }
.news-day::first-letter { text-transform:uppercase; }
.news-list { list-style:none; margin:0; padding:0; }
.news-list li { display:grid; grid-template-columns:52px minmax(0,1fr); gap:14px; padding:14px 0; border-bottom:1px solid var(--rule); }
.news-list time,.news-nodate { font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; padding-top:3px; }
.news-title { font-family:var(--serif); font-size:19px; line-height:1.38; color:var(--ink); font-weight:600; }
.news-title:visited { color:#4f5f70; }
.news-meta { display:flex; gap:10px; align-items:center; margin-top:6px; font-size:12px; color:var(--muted); font-weight:600; }
.news-topic { color:var(--ballot); background:#e9f0f7; border-radius:3px; padding:2px 7px; font-weight:600; }
.news-more { margin-top:20px; }
.news-aside { font-size:14px; line-height:1.6; color:#3c4f63; }
.news-aside p { margin:0 0 14px; }
.news-aside .np-h2 { margin-top:28px; } .news-aside .np-h2:first-child { margin-top:0; }
.np-fine { font-size:12px; color:var(--muted); }
@media(max-width:1000px) { .np-columns { grid-template-columns:1fr; gap:32px; } .np-title { font-size:36px; } }
@media(max-width:640px) {
  .np-title { font-size:28px; } .np-deck { font-size:17px; margin-bottom:22px; } .rl-names { font-size:12px; } .rl-names b { font-size:20px; } .rl-track { height:36px; }
  .news-list li { grid-template-columns:44px minmax(0,1fr); gap:10px; } .news-title { font-size:17px; }
}
.quotes { display:grid; grid-template-columns:1fr 1fr; }
.quote { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:18px 24px 22px; border-top:1px solid var(--rule); }
.quote+.quote { border-left:1px solid var(--rule); }
.quote h3 { font-size:13px; font-weight:650; margin:0 0 6px; } .quote h3 a { color:var(--ink); }
.quote-price { display:block; font-size:26px; font-weight:750; font-variant-numeric:tabular-nums; letter-spacing:-.3px; }
.quote-change { display:block; font-size:14px; font-weight:600; margin-top:4px; font-variant-numeric:tabular-nums; }
.quote small { display:block; font-size:11px; color:var(--muted); margin-top:6px; }
.spark { width:240px; max-width:45%; height:56px; flex-shrink:1; }
.spark polyline { fill:none; stroke:var(--ink); stroke-width:1.75; stroke-linejoin:round; }
.spark line { stroke:var(--muted); stroke-width:1; stroke-dasharray:3 3; }
@media(max-width:800px) { .quotes { grid-template-columns:1fr; } .quote+.quote { border-left:0; } }
@media(max-width:640px) { .quote { padding:14px 16px 18px; } .quote-price { font-size:22px; } }
.news-warn { font-size:12px; color:#7a5a12; background:#fff7e0; border:1px solid #f0dca0; border-radius:4px; padding:8px 12px; margin:0 0 12px; }
.supports { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--rule); }
.support-col { padding:16px 24px 20px; } .support-col+.support-col { border-left:1px solid var(--rule); }
.support-col h3 { font-size:14px; font-weight:700; margin:0 0 10px; color:var(--candidate); } .support-col.tone-gray h3 { color:var(--muted); }
.support-col h3 span { font-weight:500; color:var(--muted); margin-left:4px; }
.support-col ul { list-style:none; margin:0; padding:0; }
.support-col li { padding:8px 0; border-top:1px solid var(--rule); font-size:14px; } .support-col li:first-child { border-top:0; }
.support-col li strong { display:block; } .support-col li a { font-size:12px; }
.support-empty { font-size:13px; color:var(--muted); margin:0; }
@media(max-width:800px) { .supports { grid-template-columns:1fr; } .support-col+.support-col { border-left:0; border-top:1px solid var(--rule); } }
.chart polyline.market { stroke-width:1.25; opacity:.75; }
.chart polyline.scenario { stroke-width:3; stroke-linejoin:miter; }
.chart line.today { stroke:var(--muted); stroke-dasharray:2 4; }
.chart line.mark { stroke-width:2.5; } .chart line.mark.apoios { stroke:var(--ink); } .chart line.mark.pesquisas { stroke:#9aa7b5; }
.chart a:hover line.mark,.chart a:focus line.mark { stroke:var(--ballot); stroke-width:4; }
.chart-legend { flex-wrap:wrap; row-gap:8px; }
.chart-legend i.key-scenario { background:var(--muted); height:3px; } .chart-legend i.key-market { background:var(--muted); height:1px; }
.chart-legend i.key-mark { width:2px; height:12px; } .chart-legend i.key-mark.apoios { background:var(--ink); } .chart-legend i.key-mark.pesquisas { background:#9aa7b5; }
.support-raw { border-top:1px solid var(--rule); padding:16px 24px 20px; }
.support-raw h3 { font-size:14px; font-weight:700; margin:0 0 4px; } .support-raw p { font-size:12px; color:var(--muted); margin:0 0 10px; }
.support-raw ul { list-style:none; margin:0; padding:0; }
.support-raw li { display:grid; grid-template-columns:96px minmax(0,1fr) auto; gap:12px; padding:8px 0; border-top:1px solid var(--rule); font-size:14px; align-items:baseline; }
.support-raw li:first-child { border-top:0; } .support-raw time,.support-raw span { font-size:12px; color:var(--muted); } .support-raw a { color:var(--ink); }
@media(max-width:640px) { .support-raw { padding:14px 16px; } .support-raw li { grid-template-columns:1fr; gap:2px; } }
.panel-heading .segmented button { white-space:nowrap; }

/* Notícias e projeções, redesenho: portal de notícias. Texto corrido >= 15px (14px no celular); só selos curtos ficam menores. */
.newsroom-page { color:var(--ink); }
.newsroom-page .panel-heading h2 { font-size:18px; }
.newsroom-page .panel-heading p { font-size:15px; line-height:1.5; max-width:46em; }
.newsroom-page .chart-legend { font-size:14px; gap:10px 22px; }
.newsroom-page .chart text { font-size:11px; }
.newsroom-page .model-note,.newsroom-page .model-note span { font-size:14px; }
.np-now { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 14px; padding:14px 20px; margin-bottom:24px; background:var(--sheet); border:1px solid var(--rule); border-left:5px solid var(--ink); border-radius:var(--radius); }
.np-now-tag { display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:800; letter-spacing:.8px; text-transform:uppercase; color:var(--ink); }
.np-now-tag i { width:10px; height:10px; border-radius:50%; background:var(--muted); }
.np-now-tag.fresh i { background:var(--ink); animation:np-pulse 1.8s ease-out infinite; }
@keyframes np-pulse { 0% { box-shadow:0 0 0 0 rgba(23,45,67,.45); } 70%,100% { box-shadow:0 0 0 9px rgba(23,45,67,0); } }
@media(prefers-reduced-motion:reduce) { .np-now-tag.fresh i { animation:none; } }
.np-now-title { flex:1 1 360px; font-family:var(--serif); font-size:21px; line-height:1.35; font-weight:700; color:var(--ink); }
.np-now .news-meta { margin:0; }
.np-top { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:32px; align-items:start; }
.np-h2 { font-size:17px; }
.np-h2-big { font-size:26px; font-family:var(--serif); margin:0 0 6px; }
.np-sub { font-size:16px; color:#3c4f63; margin:0 0 20px; }
.np-data { margin-top:48px; padding-top:32px; border-top:2px solid var(--ink); }
.story-lead { background:var(--ink); color:#fff; border-radius:var(--radius); padding:28px 28px 24px; margin-bottom:8px; }
.story-lead .story-title { font-size:32px; line-height:1.2; font-weight:700; color:#fff; letter-spacing:-.3px; text-wrap:balance; }
.story-lead .news-meta { color:#cfd9e4; margin-top:18px; }
.story-lead .news-source { background:#fff; color:var(--ink); border-color:#fff; }
.story-lead .news-new { background:#fff; color:var(--ink); }
.story-title { display:block; font-family:var(--serif); color:var(--ink); }
.story-list { list-style:none; margin:0; padding:0; counter-reset:s; }
.story-list li { padding:18px 0; border-bottom:1px solid var(--rule); }
.story-list .story-title { font-size:21px; line-height:1.3; font-weight:650; }
.story-list .news-meta { margin-top:8px; }
.story-title:visited { color:inherit; }
.np-status { font-size:15px; color:var(--muted); margin:16px 0 0; }
.np-status strong { color:var(--ink); }
.np-score { background:var(--sheet); border:1px solid var(--rule); border-radius:var(--radius); padding:24px; }
.np-score .np-kicker { font-size:14px; margin-bottom:10px; }
.np-score .np-title { font-size:26px; line-height:1.2; }
.np-score .np-deck { font-family:inherit; font-size:16px; line-height:1.5; margin:12px 0 22px; }
.np-score .rl-names { font-size:16px; } .np-score .rl-names b { font-size:30px; }
.np-score .rl-axis { font-size:13px; }
.np-score .runoff-line figcaption { font-size:14px; }
.who-says { margin-top:24px; border-top:1px solid var(--rule); }
.sc-row { display:grid; grid-template-columns:1fr 1fr; gap:4px 16px; padding:18px 0; border-bottom:1px solid var(--rule); }
.sc-what { grid-column:1/-1; }
.sc-what h3 { margin:0 0 4px; font-size:17px; font-weight:700; }
.sc-what p { margin:0; font-size:15px; line-height:1.45; color:#3c4f63; }
.sc-cell { display:flex; flex-direction:column; margin-top:10px; border-left:4px solid var(--candidate); padding-left:12px; }
.sc-name { font-size:15px; font-weight:650; color:var(--candidate); }
.sc-cell strong { font-size:38px; line-height:1.1; font-weight:750; letter-spacing:-.8px; font-variant-numeric:tabular-nums; }
.sc-cell small { font-size:15px; color:var(--muted); }
details.np-more,.news-aside details { border-top:1px solid var(--rule); padding:12px 0; }
details.np-more p,.news-aside details p { font-size:15px; line-height:1.55; margin:10px 0 2px; }
details.np-more summary,.news-aside summary { cursor:pointer; font-size:15px; font-weight:650; min-height:24px; }
.np-columns { margin-top:48px; }
.news-aside { font-size:15px; }
.news-aside .np-fine { font-size:14px; margin-top:16px; }
.news-filter { position:sticky; top:0; z-index:10; background:var(--paper); margin:0 0 4px; padding:10px 0; gap:8px; border-bottom:1px solid var(--rule); }
.news-filter button { min-height:44px; padding:8px 18px; font-size:15px; }
.news-filter button[aria-pressed=true] { box-shadow:0 0 0 2px var(--paper),0 0 0 4px var(--ink); }
.news-day { font-size:15px; font-weight:700; margin:30px 0 2px; color:var(--ink); }
.news-list li { grid-template-columns:96px minmax(0,1fr); gap:16px; padding:18px 0; }
.news-list time,.news-nodate { font-size:15px; font-weight:600; padding-top:4px; }
.news-title { font-size:21px; line-height:1.35; max-width:36em; }
.news-sum { font-family:var(--serif); font-size:16px; line-height:1.5; color:#3c4f63; margin:6px 0 0; max-width:40em; }
.news-meta { flex-wrap:wrap; gap:8px 12px; font-size:14px; margin-top:8px; }
.news-source { border:1px solid #b9c4d0; border-radius:4px; padding:1px 8px; font-weight:700; color:var(--ink); font-size:13px; }
.news-topic { font-size:13px; }
.news-new { background:var(--ink); color:#fff; border-radius:999px; padding:1px 9px; font-size:12px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; }
.news-more { min-height:44px; font-size:15px; }
.news-warn { font-size:14px; }
.quote h3 { font-size:15px; } .quote-price { font-size:30px; } .quote-change { font-size:16px; } .quote small { font-size:14px; }
.support-col h3 { font-size:17px; } .support-col li { font-size:16px; } .support-col li a { font-size:14px; } .support-empty { font-size:15px; }
.support-raw h3 { font-size:17px; } .support-raw p { font-size:15px; } .support-raw li { font-size:16px; grid-template-columns:120px minmax(0,1fr) auto; } .support-raw time,.support-raw span { font-size:14px; }
@media(max-width:1000px) { .np-top,.np-columns { grid-template-columns:minmax(0,1fr); } .np-columns { margin-top:40px; } }
@media(max-width:640px) {
  .np-now { padding:12px 14px; } .np-now-title { font-size:18px; flex-basis:100%; }
  .story-lead { padding:20px 18px; } .story-lead .story-title { font-size:25px; } .story-list .story-title { font-size:19px; }
  .np-score { padding:18px 16px; } .np-score .np-title { font-size:22px; } .np-score .np-deck { font-size:15px; }
  .np-score .rl-names { font-size:14px; } .np-score .rl-names b { font-size:22px; }
  .sc-cell strong { font-size:32px; } .sc-what p,.sc-cell small,.sc-name { font-size:14px; }
  .news-filter { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin:0 -16px 4px; padding:10px 16px; } .news-filter button { white-space:nowrap; flex:0 0 auto; }
  .news-list li { grid-template-columns:1fr; gap:4px; padding:16px 0; } .news-list time,.news-nodate { padding-top:0; font-size:14px; } .news-title { font-size:19px; } .news-sum { font-size:15px; }
  .np-h2-big { font-size:22px; } .newsroom-page .panel-heading p,.newsroom-page .chart-legend,.support-raw p,.support-raw time,.support-raw span,.quote small { font-size:14px; }
  .support-raw li { grid-template-columns:1fr; } .support-col li a { font-size:14px; }
  .newsroom-page .chart text { font-size:10px; }
}
.about { border-top:1px solid var(--rule); margin-top:8px; padding:24px 0 8px; max-width:46em; font-size:15px; line-height:1.65; color:#3c4f63; }
.about h2 { font-size:16px; font-weight:700; color:var(--ink); margin:0 0 10px; }
.about p { margin:0 0 10px; }

/* Letreiro de indicadores: corre devagar, para com o mouse/foco, fica parado (e rolável) com movimento reduzido. */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.ticker { background:var(--ink); color:#e8eef5; overflow:hidden; border-bottom:1px solid #0e1e2e; }
.ticker-track { display:flex; width:max-content; animation:ticker 75s linear infinite; }
.ticker:hover .ticker-track { animation-play-state:paused; }
.ticker-item { display:inline-flex; align-items:baseline; gap:8px; padding:11px 28px; font-size:14px; white-space:nowrap; font-variant-numeric:tabular-nums; border-right:1px solid rgba(255,255,255,.14); }
.ticker-item b { font-weight:700; color:#fff; } .ticker-item small { font-size:12px; color:#a9bbcd; }
@keyframes ticker { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@media(prefers-reduced-motion:reduce) { .ticker { overflow-x:auto; } .ticker-track { animation:none; } }
@media(max-width:640px) { .ticker-item { padding:10px 20px; font-size:13px; } }
/* Conteúdo inicial vindo do servidor (buscadores, primeira pintura); o JS substitui ao carregar. */
.seo-lead h2 { font-family:Charter,"Bitstream Charter",Cambria,Georgia,serif; font-size:30px; line-height:1.2; margin:8px 0; }
.seo-lead p,.seo-news li { font-size:16px; line-height:1.55; }
.seo-news ul { padding-left:18px; } .seo-news span { color:var(--muted); font-size:13px; }
.brand-logo { display:block; height:64px; width:auto; }
a.brand:hover { text-decoration:none; }
@media(max-width:640px) { .brand-logo { height:48px; } }
