/* Geist Sans and Mono (Vercel, SIL OFL 1.1), served from this site. */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Baseline tokens (same as the Florida and national sites), light then dark. */
:root {
  --bg: #f6f5f1; --surface: #fcfcfb; --surface-2: #efede7; --ink: #0e0e0d; --ink-2: #4a4945; --ink-3: #807e77;
  --rule: #dcd9d0; --rule-2: #e9e6de; --dem: #2b63d9; --rep: #d7402b; --dem-soft: #dfe7f9; --rep-soft: #f9e1dc;
  --npa: #8a877e; --live: #d7402b; --warn: #b8730a; --warn-soft: #fbefd9; --good: #1f8a5b;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.12);
  --w-reg: #3f1d4f; --w-photo: #6e3a86; --w-other: #a675bd; --w-where: #dcc6e8; --w-idnum: #a3a097; --w-ink-light: #2a1433;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #111110; --surface: #1a1a19; --surface-2: #232321; --ink: #f0efec; --ink-2: #c3c2b7; --ink-3: #8d8b83;
  --rule: #34332f; --rule-2: #2a2927; --dem: #4f86ec; --rep: #e85a43; --dem-soft: #1d2a45; --rep-soft: #3d221d;
  --npa: #8d8b83; --live: #e85a43; --warn: #e0a54a; --warn-soft: #3a2c14; --good: #3fb07c;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); --w-reg: #e7d6f0; --w-photo: #c39ad6; --w-other: #8d5aa6; --w-where: #4f2a63; --w-idnum: #77756d; --w-ink-light: #2a1433; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #111110; --surface: #1a1a19; --surface-2: #232321; --ink: #f0efec; --ink-2: #c3c2b7; --ink-3: #8d8b83;
  --rule: #34332f; --rule-2: #2a2927; --dem: #4f86ec; --rep: #e85a43; --dem-soft: #1d2a45; --rep-soft: #3d221d;
  --npa: #8d8b83; --live: #e85a43; --warn: #e0a54a; --warn-soft: #3a2c14; --good: #3fb07c;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); --w-reg: #e7d6f0; --w-photo: #c39ad6; --w-other: #8d5aa6; --w-where: #4f2a63; --w-idnum: #77756d; --w-ink-light: #2a1433; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) 64px; }
.d { color: var(--dem); } .r { color: var(--rep); } .fine { font-size: 12.5px; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* bar */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.bar .in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.mark { font-weight: 700; font-size: 17px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.mark small { font-weight: 500; color: var(--ink-3); font-size: 13px; }
.bar nav { display: flex; gap: 18px; margin-left: auto; font-size: 13.5px; } .bar nav a { text-decoration: none; color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 10px; color: var(--ink-2); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.theme { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 2px; }
.theme button { border: 0; background: none; color: var(--ink-2); font: 12px var(--sans); padding: 3px 8px; border-radius: 999px; cursor: pointer; }
.theme button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (max-width: 760px) { .bar nav { display: none; } }

/* hero */
.hero { padding: 40px 0 8px; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.025em; margin: 10px 0 14px; font-weight: 700; }
h1 em { font-style: normal; color: var(--ink-3); }
.lede { font-size: 18px; color: var(--ink-2); max-width: 760px; margin: 0; }
section { border-top: 1px solid var(--rule); padding: 32px 0 8px; margin-top: 28px; } section.first { border-top: 0; margin-top: 8px; }
h2 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 4px; } .sub { color: var(--ink-2); margin: 0 0 16px; max-width: 780px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow); }
.pad { padding: 18px 20px; }

/* control */
.control { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
@media (max-width: 860px) { .control { grid-template-columns: 1fr; } }
.tally { display: flex; align-items: baseline; gap: 18px; }
.tally b { font-size: 64px; letter-spacing: -.03em; line-height: 1; }
.tally span { font-size: 15px; color: var(--ink-2); }
.seatbar { position: relative; display: flex; height: 26px; border-radius: 6px; overflow: hidden; margin: 14px 0 6px; background: var(--surface-2); }
.seatbar i { display: block; height: 100%; border-right: 1px solid var(--surface); }
.seatbar i.d { background: var(--dem); } .seatbar i.r { background: var(--rep); }
.seatbar i.lean { opacity: .45; }
.seatbar .mid { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.ctl-read { font-size: 17px; margin: 10px 0 0; } .ctl-read b { font-weight: 650; }
.path { display: flex; flex-direction: column; gap: 10px; }
.path .row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule-2); padding-bottom: 8px; }
.path .row:last-child { border-bottom: 0; }

/* race cards */
.races { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.race h3 { margin: 0; font-size: 17px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.race h3 small { font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.badge { font-size: 11.5px; font-weight: 650; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); }
.badge.recount { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.badge.flip-d { background: var(--dem-soft); border-color: transparent; color: var(--dem); }
.badge.flip-r { background: var(--rep-soft); border-color: transparent; color: var(--rep); }
.badge.control { background: var(--ink); color: var(--bg); border-color: transparent; }
.cand { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 4px 0; }
.cand .nm { font-weight: 600; } .cand .nm small { color: var(--ink-3); font-weight: 500; }
.cand .pc { font-weight: 700; font-size: 18px; } .cand .vt { color: var(--ink-3); font-size: 13px; min-width: 70px; text-align: right; }
.mbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-2); margin: 8px 0; }
.mbar i { display: block; height: 100%; } .mbar .d { background: var(--dem); } .mbar .r { background: var(--rep); } .mbar .o { background: var(--npa); opacity: .5; }
.margin { font-size: 14px; } .margin b { font-size: 20px; }
.methods { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; }
.methods th, .methods td { text-align: right; padding: 3px 4px; border-bottom: 1px solid var(--rule-2); } .methods th:first-child, .methods td:first-child { text-align: left; }
.methods th { color: var(--ink-3); font-weight: 600; }
details.cty { margin-top: 10px; } details.cty summary { cursor: pointer; font-size: 13px; color: var(--ink-2); }

/* all seats table */
.tbl-wrap { overflow-x: auto; }
table.all { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
table.all th, table.all td { padding: 7px 10px; border-bottom: 1px solid var(--rule-2); text-align: left; white-space: nowrap; }
table.all th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); cursor: pointer; }
table.all td.n { text-align: right; font-family: var(--mono); font-size: 12.5px; }
table.all tr.close td { background: color-mix(in srgb, var(--warn-soft) 55%, transparent); }

/* rules + calendar */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 860px) { .cols2 { grid-template-columns: 1fr; } }
.cal { list-style: none; padding: 0; margin: 0; } .cal li { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule-2); }
.cal li b { font-family: var(--mono); font-size: 13px; }
.empty { color: var(--ink-3); padding: 18px; }
footer { margin-top: 40px; font-size: 13px; color: var(--ink-3); }

/* phones */
@media (max-width: 560px) {
  .bar .in { gap: 10px; padding: 8px 12px; }
  .mark small, .status { display: none; }
  .theme { margin-left: auto; }
  .tally { gap: 8px; align-items: center; } .tally b { font-size: 48px; } .tally span { font-size: 12.5px; line-height: 1.2; max-width: 72px; }
  .races { grid-template-columns: 1fr; }
  .control > *, .cols2 > * { min-width: 0; }
  .cal li { grid-template-columns: 96px 1fr; }
}
#outstanding-body { overflow-x: auto; }

/* ballots still to count */
.pvsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 12px; }
.pvsum b { display: block; font-size: 24px; letter-spacing: -.02em; } .pvsum span { font-size: 12.5px; color: var(--ink-2); }
.pvbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-2); margin: 6px 0 12px; min-width: 60px; }
.pvbar i { display: block; height: 100%; }
.pvbar .pend, .dot.pend { background: var(--npa); opacity: .55; } .pvbar .ok, .dot.ok { background: var(--good); } .pvbar .part, .dot.part { background: var(--warn); } .pvbar .no, .dot.no { background: var(--ink-3); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
table.out td { vertical-align: top; } table.out td .pvbar { margin: 4px 0 0 auto; width: 80px; }

/* why provisional */
.why-h { margin: 22px 0 6px; font-size: 16px; }
.why-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--rule-2); }
.why-lbl b { display: block; } .why-lbl span { display: block; }
.why-bar { display: flex; height: 22px; border-radius: 5px; overflow: hidden; background: var(--surface-2); }
.why-bar i { display: flex; align-items: center; justify-content: center; height: 100%; font: 600 11.5px var(--sans); font-style: normal; color: #fff; border-right: 1px solid var(--surface); min-width: 2px; }
.why-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; } .why-nums b { color: var(--ink); font-weight: 600; }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.w-reg { background: var(--w-reg); } .w-idnum { background: var(--w-idnum); } .w-photo { background: var(--w-photo); } .w-where { background: var(--w-where); } .w-other { background: var(--w-other); }
.why-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 18px; margin: 14px 0 4px; }
.why-key dt { font-size: 13px; font-weight: 600; } .why-key dd { margin: 2px 0 0 14px; }
@media (max-width: 560px) { .why-row { grid-template-columns: 1fr; gap: 6px; } }
.why-key .y24 { display: block; margin-top: 3px; color: var(--ink-2); font-weight: 600; }
.why-bar i.w-where, .why-bar i.w-other { color: var(--w-ink-light); }
:root[data-theme="dark"] .why-bar i.w-where, :root[data-theme="dark"] .why-bar i.w-other { color: #fff; } :root[data-theme="dark"] .why-bar i.w-reg, :root[data-theme="dark"] .why-bar i.w-photo { color: var(--w-ink-light); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .why-bar i.w-where, :root:not([data-theme="light"]) .why-bar i.w-other { color: #fff; } :root:not([data-theme="light"]) .why-bar i.w-reg, :root:not([data-theme="light"]) .why-bar i.w-photo { color: var(--w-ink-light); } }

/* precinct map */
.map-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 2px; background: var(--surface); }
.seg button { border: 0; background: none; color: var(--ink-2); font: 600 13px var(--sans); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pick { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.pick select { font: 13px var(--sans); padding: 5px 8px; border-radius: 6px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); }
.back { font: 600 13px var(--sans); border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.map-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 960px) { .map-grid { grid-template-columns: 1fr; } }
.map-card { position: relative; padding: 10px; overflow: hidden; }
#map { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 469; max-height: 72vh; margin: 0 auto; touch-action: manipulation; }
#pc path { stroke: var(--surface); stroke-width: .12; vector-effect: non-scaling-stroke; cursor: pointer; transition: opacity .2s; }
#pc path:hover { stroke: var(--ink); stroke-width: 1.2; }
#pc path.out { opacity: .13; }
#cty path { fill: none; stroke: var(--ink-3); stroke-width: .5; vector-effect: non-scaling-stroke; opacity: .5; pointer-events: none; }
#dl path { fill: none; stroke: var(--ink); stroke-width: .9; vector-effect: non-scaling-stroke; pointer-events: none; opacity: .55; }
#dl path.on { stroke-width: 2.4; opacity: 1; }
#arr { pointer-events: none; }
.m-none, .m-base { fill: var(--surface-2); }
.m-unc { fill: color-mix(in srgb, var(--npa) 35%, var(--surface)); }
.m-d1 { fill: color-mix(in srgb, var(--dem) 14%, var(--surface)); } .m-r1 { fill: color-mix(in srgb, var(--rep) 14%, var(--surface)); }
.m-d2 { fill: color-mix(in srgb, var(--dem) 32%, var(--surface)); } .m-r2 { fill: color-mix(in srgb, var(--rep) 32%, var(--surface)); }
.m-d3 { fill: color-mix(in srgb, var(--dem) 52%, var(--surface)); } .m-r3 { fill: color-mix(in srgb, var(--rep) 52%, var(--surface)); }
.m-d4 { fill: color-mix(in srgb, var(--dem) 74%, var(--surface)); } .m-r4 { fill: color-mix(in srgb, var(--rep) 74%, var(--surface)); }
.m-d5 { fill: var(--dem); } .m-r5 { fill: var(--rep); }
.m-flipd { fill: var(--dem-soft); } .m-flipr { fill: var(--rep-soft); }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; color: var(--ink-2); padding: 8px 4px 2px; }
.map-legend .ramp { display: inline-flex; } .map-legend .ramp i { width: 18px; height: 10px; display: block; }
.map-legend i.sw, .map-legend .ramp i { background: currentColor; }
.map-legend i[class*="m-"] { background: none; }
.map-legend .ramp i.m-d1 { background: color-mix(in srgb, var(--dem) 14%, var(--surface)); } .map-legend .ramp i.m-d2 { background: color-mix(in srgb, var(--dem) 32%, var(--surface)); } .map-legend .ramp i.m-d3 { background: color-mix(in srgb, var(--dem) 52%, var(--surface)); } .map-legend .ramp i.m-d4 { background: color-mix(in srgb, var(--dem) 74%, var(--surface)); } .map-legend .ramp i.m-d5 { background: var(--dem); }
.map-legend .ramp i.m-r1 { background: color-mix(in srgb, var(--rep) 14%, var(--surface)); } .map-legend .ramp i.m-r2 { background: color-mix(in srgb, var(--rep) 32%, var(--surface)); } .map-legend .ramp i.m-r3 { background: color-mix(in srgb, var(--rep) 52%, var(--surface)); } .map-legend .ramp i.m-r4 { background: color-mix(in srgb, var(--rep) 74%, var(--surface)); } .map-legend .ramp i.m-r5 { background: var(--rep); }
.map-legend i.sw { width: 12px; height: 10px; display: inline-block; border-radius: 2px; }
.map-legend i.sw.m-unc { background: color-mix(in srgb, var(--npa) 35%, var(--surface)); } .map-legend i.sw.m-flipd { background: var(--dem-soft); } .map-legend i.sw.m-flipr { background: var(--rep-soft); }
.map-legend .sep { color: var(--ink-3); }
.tip { position: absolute; z-index: 5; min-width: 190px; max-width: 260px; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow); padding: 8px 10px; font-size: 12.5px; pointer-events: none; }
.tip b { font-weight: 650; } .tip > span { display: block; margin-bottom: 4px; }
.tip .tr { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 3px; }
.side h4 { margin: 16px 0 6px; font-size: 13px; }
.srow { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule-2); font-size: 13.5px; }
.race-live { margin-bottom: 8px; } .race-live .cand { grid-template-columns: 1fr auto auto; }
.movers { margin: 0; padding-left: 18px; font-size: 13px; } .movers li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.movers li::marker { color: var(--ink-3); }
.m-nc { fill: url(#hatch); } .hatch-bg { fill: var(--surface-2); } .hatch-ln { stroke: var(--ink-3); stroke-width: 1.4; opacity: .55; }
.map-legend i.sw.m-nc { background: repeating-linear-gradient(45deg, var(--surface-2) 0 3px, var(--ink-3) 3px 4px); }
.tip .note { margin-top: 6px; }
.warn-note { font-size: 12.5px; background: var(--warn-soft); color: var(--ink); border-radius: 6px; padding: 8px 10px; margin: 8px 0; }

/* map insets: seats changing hands and the closest race */
.insets { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0 0 18px; }
.inset { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 9px; text-align: left; font: inherit; color: inherit; cursor: pointer; border: 1px solid var(--rule); }
.inset:hover, .inset.on { border-color: var(--ink); }
.inset svg { width: 100%; height: 120px; display: block; margin: 2px 0; }
.ins-pc path { stroke: var(--surface); stroke-width: .6; vector-effect: non-scaling-stroke; }
.ins-ol { fill: none; stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.ins-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .ins-top b { font-size: 15px; margin-right: auto; }
.ins-who { font-size: 13px; }
@media (max-width: 560px) { .insets { grid-template-columns: repeat(2, 1fr); } .inset svg { height: 96px; } }
.ins-note { color: var(--warn); }
.insets[hidden] { display: none; }
