/* Identidade compartilhada pelo Atlas Histórico e pela Apuração ao Vivo.
   As cores eleitorais vêm dos dados existentes e não são cores de navegação. */
:root {
  color-scheme: light;
  --bg: #FAF8F2;
  --surface: #fffefa;
  --panel: #fffefa;
  --line: #dce2d8;
  --ink: #142F35;
  --text: #142F35;
  --muted: #586b67;
  --green: #075A48;
  --accent: #075A48;
  --gold: #F4BF39;
  --coral: #F36A4C;
  --soft: #edf2e9;
  --red: #ef7982;
  --blue: #6caef8;
  --teal: #075A48;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif; }
button, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: var(--green); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:where(button, a, input, select, [tabindex]):focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
button, a, input, select { touch-action: manipulation; }
[hidden], .hidden { display: none !important; }
::selection { background: #f4bf3980; color: var(--ink); }
.wrap, .container { max-width: 1440px; margin: auto; padding-left: 40px; padding-right: 40px; }
.wrap { padding-top: 0; padding-bottom: 36px; }
.header { border-bottom: 1px solid var(--line); }
.top, .nav { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.top { border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.brand, .mark { display: flex; align-items: center; gap: 12px; }
.logo, .mark-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; background: var(--green); color: var(--gold); font-size: 30px; line-height: 1; }
.brand h1, .mark b { font-size: 19px; letter-spacing: -.04em; margin: 0; }
.brand-country { color: var(--muted); font-weight: 400; }
.eyebrow, .mark small, .overline { display: block; color: var(--green); font-size: 10px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.brand .eyebrow, .mark small { font-size: 9px; letter-spacing: .1em; }
.top-right, .nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.pill { font-size: 11px; color: var(--muted); }
.live-nav, .live-banner a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 20px; border-radius: 9px; border: 1px solid transparent; background: var(--coral); color: var(--ink); font-size: 13px; font-weight: 750; white-space: nowrap; transition: background .18s, transform .18s; }
.live-nav:hover, .live-banner a:hover { background: #f58267; text-decoration: none; transform: translateY(-1px); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px #142f3510; }
.nav-links a { font-size: 12px; font-weight: 650; padding: 11px 14px; border-radius: 9px; }
.nav-links .archive { border: 1px solid #b5c9be; background: var(--soft); }
.main { padding-top: 36px; padding-bottom: 36px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero h2, .hero h1 { font-size: clamp(32px, 3.7vw, 52px); font-weight: 650; line-height: 1.12; letter-spacing: -.055em; margin: 12px 0 14px; }
.hero h2 { max-width: 800px; }
.hero h1 em { color: var(--green); font-style: normal; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 5px; text-underline-offset: 9px; }
.hero p { color: var(--muted); font-size: 14px; max-width: 710px; margin: 0; }
.hero .eyebrow::before { content: ""; display: inline-block; background: var(--gold); width: 22px; height: 3px; vertical-align: middle; margin-right: 10px; }
.live-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 26px 0; padding: 18px 22px; border: 1px solid #ccd9ca; border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; background: var(--soft); }
.live-banner h3 { margin: 0 0 3px; font-size: 14px; }
.live-banner p { margin: 0; font-size: 12px; color: var(--muted); max-width: 760px; }
.live-banner a { background: var(--green); color: white; }
.live-banner a:hover { background: #08715a; }
.filters, .switcher { padding: 18px 20px; margin: 24px 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.filterrow { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; }
.filterrow + .filterrow { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.funit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.flabel { font-size: 10px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.segments, .tabs { display: inline-flex; gap: 3px; padding: 4px; border-radius: 9px; background: var(--soft); }
.seg, .tab { border: 0; background: transparent; color: var(--muted); padding: 10px 14px; min-height: 42px; font-size: 12px; font-weight: 650; border-radius: 6px; }
.seg.active, .tab.active { background: var(--green); color: white; box-shadow: 0 2px 4px #142f3512; }
.seg:hover:not(.active):not(:disabled), .tab:hover:not(.active) { background: #dee8db; color: var(--ink); }
.office-scroll { display: flex; flex-wrap: wrap; gap: 8px; }
.office { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 7px; padding: 10px 14px; min-height: 42px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.office.active { background: var(--soft); border-color: var(--green); color: var(--green); box-shadow: inset 0 -2px var(--green); }
.office:hover { border-color: var(--green); }
.filterhint { font-size: 11px; color: var(--muted); margin-left: auto; }
.metrics, .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 16px 0 22px; overflow: hidden; }
.metric, .stat { padding: 18px 22px; min-width: 0; }
.metric + .metric, .stat + .stat { border-left: 1px solid var(--line); }
.metric small, .stat small { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.metric strong, .stat strong { display: block; font-size: clamp(21px, 2.1vw, 29px); font-weight: 650; line-height: 1.2; letter-spacing: -.045em; margin: 7px 0 4px; }
.metric p, .stat span { margin: 0; color: var(--muted); font-size: 12px; }
.grid, .layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); gap: 20px; align-items: start; }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; min-width: 0; }
.map-panel, .map-box { padding: 24px; background: #f3f4eb; overflow: hidden; }
.secrow, .panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.secrow h3, .panel-head h2 { font-size: 18px; font-weight: 650; letter-spacing: -.03em; margin: 0; }
.secrow p, .panel-head p { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.tag { color: var(--muted); border: 1px solid #cdd7c9; border-radius: 5px; font-size: 10px; padding: 4px 8px; white-space: nowrap; }
.map { height: 550px; display: flex; align-items: center; justify-content: center; position: relative; }
.map svg { width: 100%; height: 100%; max-width: 780px; overflow: visible; }
.land, .state { stroke: #faf8f2; stroke-width: 1.8; stroke-linejoin: round; cursor: pointer; transition: filter .18s, stroke-width .18s; }
.land:hover, .land.hovered, .state:hover { stroke: var(--ink); stroke-width: 2.6; filter: brightness(1.04); }
.land.chosen, .state.selected { stroke: var(--ink); stroke-width: 3.5; }
.map [data-uf]:focus-visible { stroke: var(--ink); stroke-width: 4; outline: none; filter: drop-shadow(0 0 3px var(--gold)); }
.state-label, .map-label { fill: var(--ink); font-size: 12px; font-weight: 750; text-anchor: middle; paint-order: stroke; stroke: var(--bg); stroke-width: 2.5; pointer-events: none; }
.state-label.tiny { font-size: 10px; }
.pin { stroke: var(--surface); stroke-width: 2; cursor: pointer; }
.pin:hover { stroke: var(--ink); stroke-width: 3; }
.map svg > path:not([data-uf]) { fill: #e1e7da; stroke: #a4b5a7; }
.map svg > text:not(.map-label):not(.state-label) { fill: var(--muted); }
.under-map, .map-footer { padding-top: 16px; border-top: 1px solid #d5dece; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 11px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.fineprint, .micro, .map-footnote { font-size: 11px; color: var(--muted); }
.side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.detail, .score { padding: 24px; border-top: 3px solid var(--green); }
.detail h3, .score h2 { font-size: 29px; line-height: 1.2; letter-spacing: -.045em; margin: 12px 0 6px; font-weight: 650; }
.toolrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.muted, .score-sub { color: var(--muted); font-size: 12px; }
.score-sub { margin-bottom: 14px; }
.status, .badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c8d7c8; background: var(--soft); color: var(--green); border-radius: 6px; padding: 5px 9px; font-size: 11px; }
.status { margin-top: 12px; }
.status.warn, .badge.warn, .badge.demo { background: #fff3cf; color: #70521b; border-color: #e8d398; }
.right-hero { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.badge { font-weight: 650; white-space: nowrap; }
.pulse { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.vote, .candidate { padding: 16px 0; border-bottom: 1px solid var(--line); }
.vtop, .cand-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vname, .cand-body { min-width: 0; flex: 1; }
.num { font-size: 20px; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.vn, .cand-name { font-size: 14px; font-weight: 650; }
.vmeta, .cand-party, .cand-score small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.dot, .swatch, .mini, .s-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.cand-score { text-align: right; white-space: nowrap; }
.cand-score strong { font-size: 25px; letter-spacing: -.04em; }
.cand-score small { display: block; }
.track, .rail { height: 6px; border-radius: 6px; background: #e8ede3; overflow: hidden; margin-top: 10px; }
.bar, .rail div { height: 100%; border-radius: 6px; }
.rail div { transition: width .4s; }
.chip { display: inline-block; background: #eef1e8; color: var(--muted); padding: 3px 6px; border-radius: 4px; font-size: 10px; }
.chip.ok { background: #e4efdf; color: #285d37; }
.chip.maybe { background: #fff0c3; color: #735510; }
.empty, .placeholder { border: 1px dashed #bac9bc; background: #f6f7f0; padding: 18px; border-radius: 8px; color: var(--muted); font-size: 12px; margin-top: 15px; }
.empty strong, .placeholder b { display: block; color: var(--ink); margin-bottom: 5px; }
.helper { color: var(--muted); font-size: 11px; margin: 14px 0 0; }
.smallbtn, .refresh { border: 1px solid #b5c9be; border-radius: 7px; background: var(--soft); color: var(--green); padding: 9px 12px; font-size: 12px; min-height: 42px; font-weight: 650; }
.smallbtn:hover, .refresh:hover { background: #e0ebdc; }
#go-national { width: 100%; margin-top: 16px; text-align: left; }
.explore, .citypanel { padding: 22px; }
.search, .citypanel input, .citypanel select, .candidate-toolbar input[type=text], .chooser select { width: 100%; padding: 11px 12px; min-height: 44px; border-radius: 7px; border: 1px solid #b6c6b9; background: var(--surface); color: var(--ink); }
.search { margin: 15px 0 10px; }
.search::placeholder, .candidate-toolbar input::placeholder { color: var(--muted); }
.state-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; max-height: 252px; overflow-y: auto; scrollbar-color: #bccbbb transparent; }
.statebtn { display: flex; align-items: center; gap: 7px; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 9px 7px; min-height: 40px; text-align: left; color: var(--ink); font-size: 12px; }
.statebtn.active, .statebtn:hover { background: var(--soft); border-color: #b6c9b9; }
.nationalbtn { grid-column: 1 / -1; margin-bottom: 6px; border-color: #b6c9b9; color: var(--green); background: #f1f5ed; }
.nationalbtn .micro { margin-left: auto; }
.citypanel { display: none; }
.citypanel.show { display: block; }
.citypanel label { display: block; font-size: 12px; margin: 12px 0 6px; }
.overview { margin-top: 20px; padding: 24px; }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.overview-card { border: 1px solid var(--line); background: #f7f8f1; border-radius: 9px; padding: 16px; }
.overview-card h4 { margin: 0 0 9px; font-size: 14px; }
.ovrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 8px 0; font-size: 12px; }
.ovrow strong { white-space: nowrap; }
.sub { font-size: 11px; color: var(--muted); }
.note, .info { border: 1px solid var(--line); border-radius: 9px; background: var(--soft); padding: 15px 18px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.note b, .info b { color: var(--ink); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); padding: 22px 0 0; margin-top: 28px; color: var(--muted); font-size: 11px; }
.sources { display: inline-block; margin-top: 6px; }
.sources a { margin-right: 12px; }
.source-link { overflow-wrap: anywhere; }
.tooltip, .tip { position: fixed; display: none; z-index: 200; pointer-events: none; min-width: 200px; max-width: 300px; padding: 14px; border: 1px solid #bfcec0; border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 12px 32px #142f3526; font-size: 12px; }
.tooltip b, .tip b { display: block; margin-bottom: 5px; }
.tooltip .item { display: flex; justify-content: space-between; gap: 14px; margin: 4px 0; }
.tip small { color: var(--muted); }
.loadbar { display: none; height: 3px; background: var(--soft); overflow: hidden; }
.loadbar::after { content: ""; display: block; background: var(--green); width: 28%; height: 100%; animation: move 1.1s linear infinite; }
@keyframes move { from { transform: translateX(-100%); } to { transform: translateX(360%); } }
.candidate-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.check { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
input[type=checkbox] { accent-color: var(--green); width: 17px; height: 17px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.alert { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 16px; padding: 16px 18px; background: #fff4d5; border: 1px solid #e8d398; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; color: #70521b; font-size: 12px; }
.alert strong { display: block; color: #604716; margin-bottom: 3px; }
.alert.demo { background: #ffefdc; border-color: #e2c09a; }
.switcher { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.chooser { display: flex; align-items: center; gap: 12px; }
.chooser label { font-size: 12px; color: var(--muted); }
.chooser select { width: auto; min-width: 200px; }
.meta-line, .status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.meta-line { justify-content: space-between; color: var(--muted); font-size: 11px; margin: 12px 0; }
.progress-wrap { border: 1px solid var(--line); border-radius: 9px; background: #f4f6ed; padding: 16px; margin-top: 22px; }
.progress-heading, .progress-foot { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.progress-heading strong { color: var(--green); }
.progress-foot { font-size: 10px; flex-wrap: wrap; margin-top: 10px; }
.source { padding: 20px 24px; }
.source h3 { margin: 0 0 10px; font-size: 14px; }
.source p { color: var(--muted); font-size: 12px; margin: 8px 0; }
.states { margin-top: 20px; padding: 24px; }
.states-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.states-head h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.03em; }
.hint { color: var(--muted); font-size: 12px; }
.state-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.state-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; text-align: left; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.state-card.active, .state-card:hover { background: var(--soft); border-color: var(--green); }
.state-card small { display: block; color: var(--muted); font-size: 11px; }
@media (max-width: 1100px) {
  .wrap, .container { padding-left: 24px; padding-right: 24px; }
  .top-right .pill { display: none; }
  .grid, .layout { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 16px; }
  .map { height: 460px; }
  .map-panel, .map-box, .detail, .score, .explore { padding: 20px; }
  .secrow, .panel-head { flex-wrap: wrap; }
  .hero { flex-wrap: wrap; }
  .right-hero { justify-content: flex-start; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .grid, .layout { grid-template-columns: minmax(0, 1fr); }
  .map { height: 510px; }
  .side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .citypanel.show { grid-column: 1 / -1; }
  .state-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live-banner { align-items: flex-start; }
  .nav-links { gap: 4px; }
  .nav-links a { padding: 10px; }
}
@media (max-width: 600px) {
  .wrap, .container { padding-left: 16px; padding-right: 16px; }
  .top, .nav { gap: 16px; padding: 18px 0; flex-wrap: wrap; }
  .top { margin-bottom: 28px; }
  .brand h1 { font-size: 19px; }
  .top-right, .nav-links { width: 100%; justify-content: flex-start; }
  .live-nav { width: 100%; min-height: 46px; }
  .nav-links { justify-content: space-between; gap: 8px; }
  .nav-links a { font-size: 11px; padding: 10px 8px; }
  .main { padding-top: 26px; }
  .hero h2, .hero h1 { font-size: 36px; line-height: 1.12; margin: 12px 0; }
  .hero p { font-size: 13px; }
  .live-banner { flex-direction: column; gap: 14px; padding: 16px; margin: 22px 0; }
  .live-banner a { width: 100%; }
  .filters, .switcher { padding: 14px; }
  .filterrow { gap: 14px; align-items: flex-start; }
  .funit { width: 100%; gap: 7px; }
  .flabel { width: 100%; }
  .segments { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg { padding: 10px 8px; }
  .filterhint { margin-left: 0; }
  .office-scroll { gap: 6px; width: 100%; }
  .office { flex: 1 1 auto; padding: 9px 10px; min-height: 44px; }
  .metrics, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric, .stat { padding: 15px; }
  .metric:nth-child(3), .stat:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3), .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metric strong, .stat strong { font-size: 24px; }
  .metric small, .stat small { font-size: 9px; }
  .metric p, .stat span { font-size: 11px; }
  .map-panel, .map-box { padding: 18px 14px; }
  .secrow h3, .panel-head h2 { font-size: 17px; }
  .map { height: 360px; }
  .side { display: flex; }
  .side > .panel { width: 100%; }
  .detail, .score, .explore, .citypanel, .source { padding: 20px; }
  .state-list { max-height: 300px; }
  .statebtn { min-height: 44px; }
  .overview, .states { padding: 18px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .tabs { width: 100%; }
  .tab { flex: 1; font-size: 13px; }
  .chooser { width: 100%; flex-wrap: wrap; gap: 6px; }
  .chooser select { width: 100%; min-width: 0; }
  .right-hero { gap: 6px; }
  .badge { font-size: 10px; }
  .state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .state-card { padding: 10px; }
  .footer { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Composição editorial: introdução, mapa e resultados na mesma primeira tela. */
:root { --live-red: #D71920; }
body { font-family: "Segoe UI", system-ui, sans-serif; }
.wrap, .container { max-width: 1540px; padding-left: 36px; padding-right: 36px; }
.top, .nav { min-height: 80px; gap: 24px; padding-top: 0; padding-bottom: 0; }
.top { margin-bottom: 0; }
.brand { color: var(--ink); flex-shrink: 0; gap: 10px; }
.brand:hover { text-decoration: none; }
.brazil-mark { width: 46px; height: 46px; flex-shrink: 0; }
.brand strong { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.055em; line-height: 1.2; }
.brand span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; margin-top: 3px; }
.portal-nav { display: flex; align-items: center; gap: 28px; height: 80px; }
.portal-nav a { position: relative; color: var(--ink); font-size: 12px; padding: 28px 0; }
.portal-nav .current { font-weight: 700; }
.portal-nav .current::after { content: ""; position: absolute; bottom: 18px; left: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--gold); }
.live-nav { min-height: 44px; padding: 10px 18px; background: var(--live-red); color: white; border-radius: 8px; font-size: 13px; font-weight: 700; gap: 10px; }
.live-nav:hover { background: #b81016; }
.live-dot { background: #ff666b; width: 8px; height: 8px; box-shadow: 0 0 0 4px #ffffff20; }
.live-nav[data-live-state="counting"] .live-dot { background: #fff; animation: rec-pulse 1.8s ease-in-out infinite; }
.live-nav[data-live-state="final"] { background: var(--green); }
.live-nav[data-live-state="waiting"] .live-dot, .live-nav[data-live-state="unavailable"] .live-dot { box-shadow: none; }
.live-current { cursor: default; }
@keyframes rec-pulse { 50% { box-shadow: 0 0 0 6px #ffffff38; } }
.main { padding-top: 0; }
.filters, .switcher { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: 14px 0; box-shadow: none; }
.filters { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.filterrow { gap: 14px; }
.filterrow + .filterrow { margin: 0; padding: 0; border: 0; flex: 1; }
.funit { gap: 7px; }
.flabel { font-size: 9px; letter-spacing: .07em; }
.segments { padding: 3px; border: 1px solid #dbe3d6; background: #edf1e8; }
.seg { padding: 7px 10px; min-height: 34px; font-size: 11px; }
.office-scroll { gap: 4px; flex-wrap: wrap; }
.office { padding: 7px 8px; font-size: 10px; min-height: 36px; border-color: transparent; background: transparent; }
.office.active { background: #e4ecdf; box-shadow: none; border-color: #afc4b4; }
.filterhint { display: none; }
.filterrow:first-child { flex-wrap: nowrap; }
.election-stage { position: relative; display: grid; grid-template-columns: minmax(210px,.76fr) minmax(370px,1.5fr) minmax(350px,1.1fr); gap: 22px; align-items: start; padding: 28px 0 42px; isolation: isolate; }
.election-stage > :not(.brasil-landscape) { z-index: 1; min-width: 0; }
.election-stage .hero { padding-top: 40px; display: block; }
.hero .eyebrow { font-size: 9px; letter-spacing: .19em; }
.hero .eyebrow::before { display: none; }
.hero h1 { font-size: clamp(35px,2.9vw,46px); font-weight: 800; line-height: 1.08; letter-spacing: -.06em; margin: 18px 0; }
.hero h1 em { display: inline; color: var(--green); text-decoration: none; font-style: normal; }
.hero p { max-width: 280px; color: #526760; font-size: 14px; line-height: 1.65; }
.intro-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 45px; border-top: 1px solid #ccd9cb; padding-top: 16px; color: var(--muted); font-size: 11px; }
.intro-arrow { font-size: 28px; color: var(--green); }
.brasil-landscape { position: absolute; bottom: 0; left: -36px; width: calc(100% + 72px); height: 165px; z-index: 0; pointer-events: none; opacity: .8; }
.election-stage .map-panel, .election-stage .map-box { border: 0; border-radius: 0; padding: 0; background: transparent; overflow: visible; }
.map { height: 550px; margin: 0 -8px; }
.secrow h3, .panel-head h2 { font-size: 15px; }
.map-panel > .secrow, .map-box > .panel-head { align-items: center; }
.map-panel .tag, .map-box .tag { display: none; }
.map-panel .secrow p, .map-box .panel-head p { font-size: 11px; }
.national-action { text-align: right; }
#go-national { width: auto; margin: 8px 0 0; padding: 4px 9px; min-height: 30px; font-size: 10px; background: transparent; border-color: #b4c6b3; }
.under-map, .map-footer { margin: 0; padding-top: 10px; border-color: #c4d2bd; }
.legend { font-size: 10px; gap: 8px 12px; }
.map-footnote, .map-panel .fineprint { font-size: 10px; margin: 7px 0; }
.election-stage .side { gap: 12px; }
.detail, .score { background: #fffefaed; padding: 22px; border-top: 1px solid #d9e2d5; border-radius: 14px; box-shadow: 0 8px 30px #142f3505; }
.detail #candidate-list { max-height: 355px; overflow-y: auto; padding-right: 6px; scrollbar-color: #a4bba5 #edf2e9; scrollbar-width: thin; }
.detail h3, .score h2 { font-size: 27px; margin: 10px 0 6px; font-weight: 800; }
.detail h3::before, .score h2::before { content: "◈"; color: var(--green); display: inline-block; margin-right: 10px; font-size: 24px; vertical-align: 1px; }
.overline, .score .eyebrow { font-size: 9px; letter-spacing: .12em; }
.status { padding: 4px 7px; font-size: 10px; margin-top: 10px; }
.candidate-toolbar { margin-top: 10px; }
.candidate-toolbar input[type=text] { min-height: 34px; font-size: 11px; padding: 7px 10px; }
.vote, .candidate { padding: 12px 0; }
.num { font-size: 22px; }
.vn, .cand-name { font-size: 13px; }
.dot, .swatch { width: 10px; height: 10px; border-radius: 50%; }
.vmeta, .cand-party, .cand-score small { font-size: 10px; }
.pager { margin-top: 10px; }
.pager .smallbtn { min-height: 30px; padding: 2px 9px; }
.helper, .detail .micro { font-size: 10px; }
.metrics { margin: 20px 0; background: transparent; border-left: 0; border-right: 0; border-radius: 0; }
.metric { padding: 14px 22px; }
.metric strong { font-size: 23px; }
.below-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; align-items: start; }
.below-grid .overview { margin: 0; }
.below-grid .note { margin: 0; padding: 18px 22px; }
.below-grid .overview:not([hidden]) + .note { margin-top: 16px; }
.explore { padding: 20px; }
.state-list { grid-template-columns: repeat(6,minmax(0,1fr)); max-height: none; }
.statebtn { font-size: 11px; }
.live-page .switcher { padding: 12px 0; }
.tabs { padding: 3px; }
.tab { padding: 7px 16px; min-height: 36px; }
.chooser select { padding: 7px 12px; min-height: 38px; }
.live-stage .hero { padding-top: 35px; }
.live-stage .hero h1 { font-size: clamp(39px,3.9vw,58px); }
.right-hero { margin-top: 18px; justify-content: flex-start; gap: 6px; }
.badge { font-size: 10px; }
.alert { font-size: 11px; padding: 12px; margin: 18px 0 0; border-left-width: 3px; line-height: 1.6; }
.live-stage .map { height: 580px; }
.stats { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; background: #fffefaed; border-radius: 12px; }
.stat { padding: 10px 14px; }
.stat strong { font-size: 21px; margin: 4px 0 1px; }
.stat small { font-size: 8px; }
.stat span { font-size: 10px; }
.stat:nth-child(3), .stat:nth-child(5) { border-left: 0; }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.progress-wrap { margin-top: 16px; padding: 12px; }
.progress-foot { font-size: 9px; }
.meta-line { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin: 16px 0 20px; }
.live-lower { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(260px,1fr); gap: 22px; align-items: start; }
.live-lower .states { margin: 0; }
.live-lower .source { border-top: 3px solid var(--gold); }
.state-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.nav-links .archive { border: 0; background: none; box-shadow: inset 0 -3px var(--gold); border-radius: 0; }
@media (min-width: 1600px) { .map { height: 600px; } }
@media (max-width: 1190px) and (min-width: 801px) {
  .wrap, .container { padding-left: 24px; padding-right: 24px; }
  .portal-nav { gap: 16px; }
  .election-stage { grid-template-columns: minmax(0,1.4fr) minmax(300px,1fr); gap: 20px; }
  .election-stage .hero { grid-column: 1/-1; padding: 0; }
  .election-stage .hero h1 { font-size: 32px; margin: 6px 0; }
  .election-stage .hero h1 br { display: none; }
  .election-stage .hero p { max-width: none; font-size: 12px; }
  .intro-foot { display: none; }
  .live-stage .hero { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .live-stage .hero .alert { margin: 0; }
  .map, .live-stage .map { height: 490px; }
  .filterrow + .filterrow { flex-basis: 100%; }
  .brasil-landscape { left: -24px; width: calc(100% + 48px); }
}
@media (max-width: 800px) {
  .wrap, .container { padding-left: 16px; padding-right: 16px; }
  .top, .nav { min-height: 68px; gap: 10px; flex-wrap: nowrap; padding: 10px 0; }
  .brand strong { font-size: 18px; }
  .brand span { font-size: 7px; letter-spacing: .09em; }
  .brazil-mark { width: 34px; height: 34px; }
  .brand { gap: 5px; }
  .portal-nav { display: none; }
  .nav .nav-links { display: flex; width: auto; }
  .nav .nav-links a:not(.archive), .nav .live-current { display: none; }
  .nav .nav-links .archive { padding: 8px 0; font-size: 11px; }
  .header .container.nav { padding-left: 16px; padding-right: 16px; }
  .live-nav { width: auto; min-height: 40px; font-size: 11px; gap: 7px; padding: 8px 10px; white-space: nowrap; }
  .live-nav > span:last-child:not(.live-dot) { display: none; }
  .live-dot { width: 6px; height: 6px; }
  .filters { padding: 10px 0; gap: 8px; }
  .filterrow, .filterrow:first-child { width: 100%; gap: 8px; flex-wrap: nowrap; }
  .funit { width: auto; gap: 3px; display: block; }
  .flabel { width: auto; display: block; font-size: 8px; margin-bottom: 4px; }
  .segments { display: flex; width: auto; padding: 2px; }
  .seg { min-height: 36px; font-size: 10px; padding: 6px 8px; }
  .filterrow + .filterrow { align-items: center; flex-wrap: nowrap; }
  .filterrow + .filterrow > .flabel { display: none; }
  .office-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; gap: 3px; }
  .office { flex: 0 0 auto; min-height: 40px; padding: 7px 10px; font-size: 10px; }
  .election-stage { display: flex; flex-direction: column; gap: 18px; padding: 18px 0 26px; }
  .election-stage > :not(.brasil-landscape) { width: 100%; }
  .election-stage .hero { padding: 0; }
  .hero h1, .live-stage .hero h1 { font-size: 31px; line-height: 1.08; margin: 8px 0; letter-spacing: -.055em; }
  .hero h1 br, .live-stage .hero h1 br { display: none; }
  .hero .eyebrow { font-size: 8px; letter-spacing: .12em; }
  .hero p { max-width: none; font-size: 12px; line-height: 1.5; }
  .intro-foot { display: none; }
  .map-panel > .secrow, .map-box > .panel-head { display: block; }
  .map-panel .secrow p, .map-box .panel-head p { font-size: 10px; }
  .map, .live-stage .map { height: 340px; margin: 0; }
  .national-action { position: absolute; right: 0; margin-top: -35px; }
  #go-national { max-width: 130px; text-align: center; font-size: 0; padding: 5px 10px; min-height: 32px; margin: 0; }
  #go-national::after { content: "◎ Brasil inteiro"; font-size: 10px; }
  .map-panel .secrow { padding-right: 133px; }
  .side { display: flex; }
  .detail, .score { padding: 18px; }
  .detail #candidate-list { max-height: none; overflow: visible; padding: 0; }
  .detail h3, .score h2 { font-size: 27px; }
  .vote, .candidate { padding: 14px 0; }
  .vn, .cand-name { font-size: 14px; }
  .vmeta, .cand-party { font-size: 11px; }
  .candidate-toolbar input[type=text] { min-height: 42px; font-size: 12px; }
  .brasil-landscape { left: -16px; width: calc(100% + 32px); bottom: auto; top: 420px; height: 130px; opacity: .35; }
  .live-stage .brasil-landscape { top: 480px; }
  .metrics { margin: 0 0 18px; }
  .metric { padding: 12px; }
  .metric strong { font-size: 23px; }
  .below-grid, .live-lower { display: flex; flex-direction: column; gap: 18px; }
  .below-grid > *, .live-lower > * { width: 100%; }
  .state-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .statebtn { font-size: 12px; }
  .live-page .switcher { display: flex; flex-wrap: nowrap; gap: 8px; padding: 10px 0; }
  .tabs { width: auto; }
  .tab { padding: 8px 9px; font-size: 11px; min-height: 40px; }
  .chooser { width: auto; flex: 1; min-width: 0; }
  .chooser label { display: none; }
  .chooser select { min-width: 0; width: 100%; padding: 8px 5px; font-size: 11px; min-height: 44px; }
  .live-stage .hero { display: grid; grid-template-columns: 1fr; gap: 0; }
  .right-hero { margin: 10px 0 0; }
  .alert { margin: 12px 0 0; font-size: 10px; padding: 9px 11px; }
  .alert strong { font-size: 11px; }
  .alert #alert-text { font-size: 10px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat { padding: 12px; }
  .stat small { font-size: 9px; }
  .stat span { font-size: 10px; }
  .state-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer { margin-top: 20px; }
}
@media (max-width: 360px) {
  .brand strong { font-size: 16px; }
  .brand span { display: none; }
  .brazil-mark { width: 27px; height: 32px; }
  .live-nav { font-size: 10px; padding: 8px; }
  .seg { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) { .live-nav[data-live-state="counting"] .live-dot { animation: none; } }

/* Polimento com o pacote de SVGs fornecido, sem alterar a composição do mapa. */
.intro-landscape { display: block; width: 100%; height: 128px; object-fit: cover; object-position: right bottom; margin-top: 18px; border-radius: 0 0 12px 12px; pointer-events: none; }
.live-stage .intro-landscape { height: 118px; opacity: .85; }
.election-explorer { padding: 24px 0; border-top: 1px solid var(--line); }
.election-explorer-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.election-explorer h2 { margin: 5px 0 0; font-size: 25px; letter-spacing: -.045em; line-height: 1.2; }
.election-explorer-heading p { margin: 0; color: var(--muted); font-size: 12px; max-width: 300px; }
.election-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.election-card { position: relative; min-height: 160px; overflow: hidden; padding: 20px; border: 1px solid #d8e3d6; border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; transition: border-color .18s, box-shadow .18s; }
.election-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.election-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, #fffefaeb 0%, #fffefa80 35%, transparent 65%); }
.election-card-copy { position: relative; z-index: 1; display: block; max-width: 150px; }
.election-card-copy strong { display: block; font-size: 32px; letter-spacing: -.06em; line-height: 1; }
.election-card-copy > span { display: block; margin-top: 8px; font-size: 12px; }
.election-card-arrow { position: absolute; z-index: 1; left: 20px; bottom: 16px; width: 27px; height: 27px; display: grid; place-items: center; background: #fffefae8; color: var(--green); border-radius: 50%; font-size: 17px; }
.election-card-selected { display: none; position: absolute; z-index: 1; top: 14px; right: 12px; border-radius: 4px; padding: 3px 6px; font-size: 9px; font-weight: 650; background: var(--green); color: white; }
.election-card[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.election-card[aria-pressed="true"] .election-card-selected { display: block; }
.election-card:hover { border-color: var(--green); box-shadow: 0 4px 16px #142f3510; }
.detail #candidate-list, .score #candidates { scrollbar-gutter: stable; }
.detail .vote, .score .candidate { border-bottom-color: #e1e7dc; }
.detail .vname, .score .cand-body { padding-left: 2px; }
.detail .track, .score .rail { height: 7px; }
.explore { position: relative; background: #fffefa; }
.explore > .secrow { padding-right: 320px; min-height: 52px; }
.explore > .search { position: absolute; right: 20px; top: 20px; width: 285px; margin: 0; min-height: 42px; }
.explore .state-list { margin-top: 16px; max-height: 210px; overflow-y: auto; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 0 5px 5px 0; scrollbar-gutter: stable; }
.explore .nationalbtn { position: sticky; top: 0; z-index: 1; background: #edf3e8; }
.explore .statebtn { min-height: 42px; }
.footer { position: relative; isolation: isolate; padding-bottom: 76px; }
.footer::after { content: ""; position: absolute; left: -36px; bottom: -36px; width: calc(100% + 72px); height: 72px; background: url('assets/ondas-rodape-brasil.svg') center / cover no-repeat; z-index: -1; opacity: .6; pointer-events: none; }
@media (min-width: 801px) and (max-width: 1190px) {
  .intro-landscape { display: none; }
  .footer::after { left: -24px; width: calc(100% + 48px); }
}
@media (max-width: 800px) {
  .intro-landscape { display: none; }
  .election-explorer { padding: 20px 0; }
  .election-explorer-heading { display: block; margin-bottom: 14px; }
  .election-explorer h2 { font-size: 23px; }
  .election-explorer-heading p { font-size: 11px; margin-top: 8px; }
  .election-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .election-card { min-height: 150px; padding: 16px 12px; }
  .election-card-copy strong { font-size: 29px; }
  .election-card-copy > span { font-size: 11px; max-width: 110px; }
  .election-card-arrow { left: 12px; bottom: 12px; }
  .election-card-selected { font-size: 8px; padding: 2px 4px; top: auto; right: 8px; bottom: 14px; }
  .explore > .secrow { padding-right: 0; min-height: 0; }
  .explore > .search { position: static; width: 100%; margin: 14px 0 10px; }
  .explore .state-list { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 245px; margin-top: 10px; }
  .explore .statebtn { min-height: 44px; }
  .footer { padding-bottom: 48px; }
  .footer::after { left: -16px; bottom: -36px; width: calc(100% + 32px); height: 44px; opacity: .45; }
}
