:root{--orange:#ea580c;--dark:#b83c0a;--soft:#fff7ed;--ink:#20283b;--muted:#606b7d;--line:#e5e7ec;--bg:#f5f6f8;--card:#fff;--shadow:0 4px 20px #18243a04}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.5}button,input,select{font:inherit}button,select{cursor:pointer}button:disabled,select:disabled{cursor:default;opacity:.6}button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #2563eb;outline-offset:3px}[hidden]{display:none!important}.wrap{max-width:1240px;margin:auto;padding:0 28px}.top{background:linear-gradient(110deg,#a8340b,#da4c0c 65%,#ed6c20);color:white}.head{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-top:30px;padding-bottom:30px}.brand-label{font-size:11px;font-weight:800;letter-spacing:.2em;color:#ffdfc8}h1{font-size:44px;letter-spacing:-.045em;line-height:1.15;margin:8px 0}h1 span{font-weight:400;color:#ffddc6}.head p{margin:0;color:#fff0e4;font-size:14px}.header-status{display:flex;flex-direction:column;align-items:flex-end;gap:10px}.header-status>span:last-child{font-size:11px;color:#ffdfc8}.live{display:inline-flex;align-items:center;gap:9px;background:#fff;color:#94330b;border-radius:30px;padding:9px 15px;font-size:12px;font-weight:800}.dot{width:7px;height:7px;border-radius:50%;background:#9a6c42}.live[data-state="live"] .dot{background:#15803d;box-shadow:0 0 0 4px #dcfce7}.live[data-state="stale"] .dot,.live[data-state="error"] .dot{background:#d97706}.live[data-state="final"] .dot{background:#2563eb}.filters{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.filter-row{display:grid;grid-template-columns:1fr 1fr 1.2fr auto;gap:16px;padding-top:13px;padding-bottom:13px;align-items:end}label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:700;color:var(--muted);min-width:0}select,input,button{border:1px solid #dce0e6;border-radius:9px;min-height:44px;background:white;padding:0 12px;font-size:13px;color:var(--ink);max-width:100%}input,select{width:100%}button{font-weight:700}.primary{background:var(--orange);border-color:var(--orange);color:#fff;padding:0 20px}.primary:hover{background:var(--dark)}.primary span{font-size:19px;margin-right:5px}.filter-note{font-size:12px;margin:0;padding-bottom:10px;color:#92400e}.main{padding-top:27px;padding-bottom:24px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.eyebrow{font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:800;color:var(--dark)}h2{font-size:29px;letter-spacing:-.035em;margin:2px 0}h3{font-size:21px;letter-spacing:-.025em;margin:3px 0}.update-info{display:flex;flex-direction:column;text-align:right;font-size:11px;color:var(--muted);gap:4px}.card{background:var(--card);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.progress-card{padding:21px 24px}.progress-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.big{font-size:38px;letter-spacing:-.05em;line-height:1.2;font-variant-numeric:tabular-nums}.muted{color:var(--muted);font-size:12px}.status-pill,.count{font-size:11px;border-radius:20px;padding:5px 10px;background:var(--soft);color:var(--dark);font-weight:700;white-space:nowrap}.progress{height:8px;background:#f0f1f4;border-radius:12px;overflow:hidden;margin:16px 0 9px}.progress i{height:100%;display:block;width:0;background:linear-gradient(90deg,#c2410c,#fb923c);transition:width .4s}.progress-caption{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 20px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:17px 20px}.stat span{font-size:11px;color:var(--muted)}.stat strong{display:block;font-size:24px;letter-spacing:-.03em;font-variant-numeric:tabular-nums;margin:3px 0}.stat small{color:var(--muted);font-size:10px}.race{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;margin-bottom:20px;border-left:3px solid var(--orange)}.race h3{font-size:18px}.race p{margin:4px 0 0;font-size:12px;color:var(--muted)}.race-number{white-space:nowrap;text-align:right;font-size:24px;font-weight:800;letter-spacing:-.03em;color:var(--dark)}.race-number small{display:block;font-size:11px;font-weight:500;letter-spacing:0;color:var(--muted)}.content-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:20px;align-items:start}.content-grid.single{grid-template-columns:1fr}.candidate-panel,.map-panel,.state-panel{padding:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.candidate-panel>.muted{margin:8px 0 17px}.candidate-tools{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:8px;padding-bottom:14px;border-bottom:1px solid var(--line)}.search-label{grid-column:1/-1}.candidate-tools select,.candidate-tools input{background:#fafbfc;font-size:12px}.candidate{display:grid;grid-template-columns:20px 54px minmax(0,1fr) auto;gap:12px;align-items:center;padding:19px 0;border-bottom:1px solid #eceef2}.rank{font-size:11px;color:#707b8e;font-variant-numeric:tabular-nums}.avatar{position:relative;width:54px;height:54px;border-radius:50%;background:#f0f2f6;display:grid;place-items:center;color:#5d6675;font-size:15px;font-weight:700;overflow:hidden;flex-shrink:0}.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 22%;background:#f0f2f6}.cand-name{font-size:14px;line-height:1.3;font-weight:800;overflow-wrap:anywhere}.cand-meta{font-size:11px;color:var(--muted);margin-top:4px}.cand-votes{text-align:right;font-variant-numeric:tabular-nums}.cand-votes strong{display:block;font-size:23px;letter-spacing:-.04em}.cand-votes span{font-size:11px;color:var(--muted)}.bar{height:4px;border-radius:5px;background:#f0f1f3;margin-top:9px;overflow:hidden}.bar i{display:block;height:100%;background:var(--orange)}.badge{display:inline-block;font-size:10px;padding:2px 6px;border-radius:4px;margin-top:5px;background:#f1f3f6;color:#475569}.badge.elected{background:#e9f8ee;color:#166534}.badge.leading{background:var(--soft);color:var(--dark)}.dest{display:block;font-size:10px;color:#92400e;margin-top:4px}.results-count{margin:13px 0 0}.secondary{color:var(--dark);background:#fff}.more{display:block;width:100%;margin-top:14px}.empty{padding:35px 15px;text-align:center;color:var(--muted);font-size:13px}.loading{padding:10px 0;color:var(--dark);font-size:12px}.map-panel>.muted{margin:8px 0}.map-status{font-size:11px;min-height:34px;color:var(--muted);margin:10px 0 0}.mapgrid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(10,29px);gap:5px;max-width:340px;margin:12px auto 22px}.uf{border:1px solid #e3e7ed;background:#f1f3f6;color:#596579;min-height:0;height:29px;padding:0;border-radius:6px;font-size:10px;transition:transform .15s}.uf:hover{transform:translateY(-2px)}.uf.active{outline:2px solid #172033;outline-offset:2px}.uf.unavailable{border-style:dashed;background:repeating-linear-gradient(135deg,#f5f5f5,#f5f5f5 3px,#e5e7eb 3px,#e5e7eb 5px)!important;color:#5d6675!important}.uf.stale{border:2px dashed #92400e}.legend{display:flex;flex-wrap:wrap;gap:7px 13px}.legend-item{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--muted)}.swatch{width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0}.map-footnote{font-size:10px;color:var(--muted);border-top:1px solid var(--line);margin:17px 0 0;padding-top:13px}.state-panel{margin-top:20px}.table-scroll{overflow-x:auto;margin-top:13px}table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{padding:13px 9px;text-align:left;border-bottom:1px solid #edf0f3;font-size:12px}th{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:600}td:first-child,th:first-child{padding-left:0}td small{font-size:10px;color:var(--muted)}.table-link{border:0;min-height:32px;padding:0;background:none;color:var(--ink);text-align:left}.table-link:hover{color:var(--dark);text-decoration:underline}.notice{padding:12px 16px;border-radius:10px;font-size:13px;margin-bottom:16px}.error{color:#92400e;background:#fffbeb;border:1px solid #fde68a}.source{text-align:center;color:var(--muted);font-size:11px;max-width:760px;margin:30px auto 0}.source p{margin:6px 0}.source a{color:var(--dark);text-underline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:absolute;left:10px;top:-60px;background:white;padding:8px;z-index:30}.skip:focus{top:10px}@media(max-width:960px){.wrap{padding-left:20px;padding-right:20px}.filter-row{gap:10px}.content-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.candidate-panel,.map-panel,.state-panel{padding:18px}.candidate{gap:8px;grid-template-columns:16px 44px minmax(0,1fr) auto}.avatar{width:44px;height:44px}.cand-votes strong{font-size:20px}.stat{padding:14px}.stat strong{font-size:21px}}@media(max-width:760px){.content-grid{grid-template-columns:1fr}.filter-row{grid-template-columns:1fr 1fr}.filters{position:static}.primary{align-self:end}.head{padding-top:24px;padding-bottom:24px}h1{font-size:36px}.header-status>span:last-child{display:none}.live{font-size:10px;padding:8px 10px}.mapgrid{grid-template-rows:repeat(10,32px)}.uf{height:32px}.map-panel{padding:24px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.candidate{grid-template-columns:20px 54px minmax(0,1fr) auto;gap:12px}.avatar{width:54px;height:54px}.cand-votes strong{font-size:23px}}@media(max-width:480px){.wrap{padding-left:14px;padding-right:14px}.head{align-items:flex-start;gap:12px}.head p{font-size:11px;max-width:170px}.brand-label{font-size:9px;letter-spacing:.1em}h1{font-size:32px}.live{max-width:125px;font-size:10px;line-height:1.3}.header-status{padding-top:6px}.page-heading{align-items:flex-start;flex-direction:column;gap:5px}.update-info{text-align:left;font-size:10px}.progress-card{padding:17px}.progress-heading{align-items:flex-start}.progress-heading .muted{display:block;font-size:11px}.big{font-size:32px}.status-pill{font-size:10px}.progress-caption{font-size:10px}.stat strong{font-size:23px}.stat small{font-size:9px}.race{padding:17px;align-items:flex-start;flex-direction:column;gap:10px}.race-number{text-align:left;font-size:22px}.candidate-panel,.state-panel{padding:16px}.candidate{grid-template-columns:14px 42px minmax(0,1fr) auto;gap:8px}.avatar{width:42px;height:42px;font-size:12px}.cand-name{font-size:12px}.cand-meta{font-size:10px}.cand-votes strong{font-size:19px}.cand-votes span{font-size:10px}.rank{font-size:10px}.section-heading>.muted{display:none}.map-panel{padding:18px}h3{font-size:19px}.candidate-tools{grid-template-columns:1fr 1fr}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* A marca laranja da rádio mantém seu contraste sobre uma faixa branca. */
.station-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.station-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.station-logo {
  display: block;
  width: 280px;
  max-width: 100%;
  flex-shrink: 0;
}
.station-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.station-caption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 600px) {
  .station-inner { padding-top: 13px; padding-bottom: 13px; }
  .station-logo { width: 220px; }
  .station-caption { display: none; }
}

/* Comboboxes keep native selects as the application data source. */
.search-select { position: relative; width: 100%; min-width: 0; }
.search-select input { padding-right: 36px; text-overflow: ellipsis; font-weight: 400; }
.search-select input:disabled { opacity: .6; cursor: default; }
.search-select-toggle {
  position: absolute; right: 1px; top: 1px; bottom: 1px;
  width: 34px; min-height: 0; padding: 0; border: 0;
  background: transparent; color: var(--muted); font-size: 19px;
}
.search-select.is-open input { border-color: var(--orange); }
.select-popup {
  position: fixed; z-index: 100; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 5px; box-shadow: 0 10px 30px #17203326;
  color: var(--ink); font-size: 13px; font-weight: 400;
}
.select-option { min-height: 40px; padding: 10px 12px; border-radius: 6px; cursor: pointer; overflow-wrap: anywhere; }
.select-option[aria-selected="true"] { font-weight: 700; color: var(--dark); }
.select-option.is-active, .select-option:hover { background: var(--soft); }
.select-empty { padding: 14px 12px; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .search-select input { font-size: 16px; }
  .select-option { min-height: 44px; }
}

.zone-panel { padding: 22px 24px; margin-bottom: 20px; }
.zone-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 15px 0 5px; }
.zone-filter { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; }
.zone-filter input { width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: var(--orange); }
.zone-note { margin-bottom: 0; }
.zone-panel a { color: var(--dark); text-underline-offset: 3px; }
@media (max-width: 480px) {
  .zone-panel { padding: 17px; }
  .zone-panel .section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
}

.section-panel { padding: 22px 24px; margin-bottom: 20px; scroll-margin-top: 120px; }
.section-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 16px 0; }
.section-tools > label:first-child { width: 250px; max-width: 100%; }
.section-count { display: inline-block; white-space: normal; margin: 0 0 8px; }
.section-detail { background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 12px 0; font-size: 13px; scroll-margin-top: 120px; }
.section-detail h4 { font-size: 16px; margin: 0 0 8px; }
.section-detail p:last-child { margin-bottom: 0; }
.section-files { padding-left: 20px; }
.section-files li { margin: 10px 0; }
.section-files small { display: block; color: var(--muted); }
.section-files a { color: var(--dark); overflow-wrap: anywhere; }
@media (max-width: 760px) { .section-panel, .section-detail { scroll-margin-top: 16px; } }
@media (max-width: 480px) { .section-panel { padding: 17px; } .section-panel .section-heading { flex-wrap: wrap; } }
