/* Phone screen. One dark broadcast look that matches the TV; square corners;
   no explanatory text on game screens (rules live under Info). The map is the
   menu. Party colors are semantic; the accent (--gold, named for the original
   look) marks "you can act here". Each phone picks its color scheme in Info
   (data-scheme on <html>, violet by default); the schemes are at the end. */
:root {
  --bg: #0a0c0f;
  --panel: #121519;
  --panel-2: #1a1e24;
  --line: #22262b;
  --ink: #f1f1ee;
  --muted: #8d98a2;
  --dim: #5c666f;
  --dem: #2a64c9;
  --dem-ink: #5b93ee;
  --rep: #c9352b;
  --rep-ink: #ef6157;
  --ind: #13845a;
  --ind-ink: #39c08a;
  --gold: #e3ad3f;
  --gold-soft: #3a3017;
  --gold-fill: var(--gold); /* solid accent behind text (bands, badges, buttons) */
  --on-gold: #1b1404; /* text on --gold-fill */
  --map-open: var(--gold-soft); /* states with calls open */
  --map-line: var(--gold);
  --good: #4cc27e;
  --bad: #f2756c;
  --disp: Oswald, "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  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.4 var(--body); font-variant-numeric: tabular-nums; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: left; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.dem { --c: var(--dem); --ci: var(--dem-ink); }
.rep { --c: var(--rep); --ci: var(--rep-ink); }
.ind { --c: var(--ind); --ci: var(--ind-ink); }
.even { --c: var(--muted); --ci: var(--muted); }
.tc { color: var(--ci); }

.disp { font-family: var(--disp); font-weight: 600; }
.lbl { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; }
.lbl b { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 700; }

/* ---------- frame ---------- */
#app { min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: calc(10px + env(safe-area-inset-top)) 18px 10px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.wm { font: 600 22px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; }
.wm span { color: var(--gold); }
.back { color: var(--gold); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; padding: 6px 0; }
.back::before { content: "◀ "; font-size: 10px; }
.tr { display: flex; align-items: center; gap: 10px; min-width: 0; }
.snd { padding: 4px 6px; font-size: 16px; line-height: 1; border: 1px solid var(--line); background: none; cursor: pointer; }
.snd.lock { border-color: var(--gold); }
.snd small { display: block; margin-top: 2px; font: 700 9px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.me { display: flex; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; min-width: 0; }
.me span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 36vw; }
.me b { font: 600 26px/1 var(--disp); color: var(--ink); }
.me b small { font: 700 11px var(--body); color: var(--muted); margin-left: 3px; }
.band { background: var(--gold-fill); color: var(--on-gold); font-weight: 700; font-size: 12px; text-align: center; padding: 5px 10px; letter-spacing: .04em; }
.band.warn { background: var(--gold-soft); color: var(--gold); }
main { flex: 1; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: var(--bg); padding-bottom: env(safe-area-inset-bottom); }
.bottom a { padding: 14px 2px 16px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); line-height: 1.2; display: flex; align-items: center; justify-content: center; }
.bottom a[aria-current="true"] { color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
.badge { display: inline-block; min-width: 18px; margin-left: 5px; padding: 0 5px; background: var(--gold-fill); color: var(--on-gold); font: 700 11px/17px var(--body); font-style: normal; letter-spacing: 0; text-align: center; vertical-align: 1px; }

/* ---------- map ---------- */
.mapwrap { padding: 6px 4px 0; }
.map { width: 100%; height: auto; display: block; }
/* Borders: one width at any map size (non-scaling), drawn the same for
   every state; the gold "calls open" and dashed "your calls" outlines are
   separate layers on top, so a neighbor's edge never covers them. */
.map path { fill: #15181c; stroke: var(--bg); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map path.hit { cursor: pointer; }
.map path.up { fill: #262b32; }
.map path.open { fill: var(--map-open); }
.map path.ol { fill: none; stroke: var(--map-line); stroke-width: 1.5; pointer-events: none; }
.map path.dem { fill: var(--dem); } .map path.rep { fill: var(--rep); } .map path.ind { fill: var(--ind); }
.map path.mine { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 4 3; pointer-events: none; }
/* Labels: one color for every abbreviation and one for every race line,
   with a thin dark edge so they read on any fill. */
.map text { font: 700 15px var(--body); fill: #e4e7ea; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(10, 12, 15, .75); stroke-width: 3px; stroke-linejoin: round; }
.map text.rl { display: none; font: 500 11px var(--body); fill: #aab3bb; letter-spacing: .02em; stroke-width: 2.5px; }
.map text.up { transform: translateY(7px); } .map text.up2 { transform: translateY(13px); }
.map .rl-g { display: none; pointer-events: none; }
.map .rl-tag { fill: rgba(10, 12, 15, .88); stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map .rl-lead { fill: none; stroke: #6b747d; stroke-width: 1; vector-effect: non-scaling-stroke; }
.map .rl-dot { fill: #aab3bb; }
.map text.rl-out { text-anchor: start; } .map text.rl-out.end { text-anchor: end; }
@media (min-width: 700px) { .map text.rl { display: inline; } .map .rl-g { display: inline; } .map text.up, .map text.up2 { transform: none; } }
.key { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; padding: 8px 10px 2px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.key i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; }

.sect { padding: 16px 18px 4px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; }
.li { width: 100%; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid #16191d; }
.li .ab { font: 600 28px/1 var(--disp); }
.li .ab.o { color: var(--gold); }
.li .ab.tc { color: var(--ci); }
.li .nm { font-weight: 700; font-size: 15px; min-width: 0; }
.li .nm small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .rt { text-align: right; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.li .rt b { display: block; font: 600 20px/1 var(--disp); color: var(--ink); letter-spacing: 0; }
.li .rt b.tc { color: var(--ci); }
.li .rt .mk { color: var(--gold); }

/* ---------- race ---------- */
.st { padding: 16px 18px 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.st h1 { font: 600 52px/0.9 var(--disp); text-transform: uppercase; margin: 0; letter-spacing: .01em; }
.st .of { color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.pill { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; background: var(--panel-2); color: var(--muted); white-space: nowrap; margin-bottom: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.st > div { min-width: 0; }
.st .pill { flex-shrink: 1; max-width: 55%; }
.pill.open { background: var(--gold-soft); color: var(--gold); }
.pill.called { background: var(--c); color: #fff; }

.cnt { margin: 18px 18px 0; display: grid; grid-template-columns: 1fr 1fr; }
.cand { padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.cand + .cand { border-left: 0; text-align: right; }
.cand .nm { font: 600 22px/1 var(--disp); text-transform: uppercase; color: var(--ci); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand .pc { font: 600 44px/1 var(--disp); margin: 6px 0 2px; color: var(--ci); }
.cand .vt { color: var(--muted); font-size: 12px; font-weight: 500; min-height: 17px; }
.bar { margin: 0 18px; height: 10px; background: var(--panel-2); display: flex; overflow: hidden; border: 1px solid var(--line); border-top: 0; }
.bar i { display: block; height: 100%; background: var(--c); }
.rep-line { margin: 8px 18px 0; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.rep-line b { color: var(--gold); }

.call { margin: 22px 18px 0; }
.call .lbl { margin-bottom: 8px; }
.big { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 17px 18px; margin-bottom: 8px; font: 600 28px/1 var(--disp); text-transform: uppercase; letter-spacing: .02em; color: #fff; background: var(--c); }
.big span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.big small { font: 700 13px var(--body); letter-spacing: .06em; opacity: .9; white-space: nowrap; }
.big.pick { background: var(--panel); border: 2px solid var(--gold); color: var(--gold); padding: 15px 16px; }
.big.locked { background: var(--panel); border: 2px solid var(--ci); color: var(--ci); padding: 15px 16px; }
.big.off { background: var(--panel); color: #3b434b; }
.big:disabled { cursor: default; }
.big.won small { color: var(--good); opacity: 1; }
.big.lost small { color: var(--bad); opacity: 1; }

.seg { margin: 10px 18px 0; }
.seg .lbl { margin-bottom: 8px; }
.seg .c { display: flex; border: 1px solid var(--line); }
.seg .c button { flex: 1; text-align: center; padding: 12px 8px; font-weight: 700; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg .c button + button { border-left: 1px solid var(--line); }
.seg .c button.pick { background: var(--gold-soft); color: var(--gold); }
.seg .c button.locked { background: var(--panel); color: var(--ci); }
.seg .c button.off { color: #3b434b; }
.seg .c button:disabled { cursor: default; }
.seg .res { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.seg .res b.won { color: var(--good); } .seg .res b.lost { color: var(--bad); }

.room { margin: 20px 18px 0; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.room b { color: var(--ink); }
.nav { margin: 18px 18px 0; display: flex; justify-content: space-between; }
.nav a { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); padding: 8px 0; }

/* In-state race chips on the race page, then a link to the state page. */
.strip { margin: 14px 0 0; padding: 0 18px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip a { flex: none; padding: 8px 10px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.strip a[aria-current="true"] { background: var(--panel-2); border-color: var(--muted); color: var(--ink); }
.strip a.all { border-color: transparent; color: var(--gold); }
.nb { margin: 18px 18px 0; }
.exp { margin-top: 6px; font-size: 11px; color: var(--dim); }
.note { margin: 22px 18px 0; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- race cards and the needle ---------- */
.cards { display: grid; gap: 10px; padding: 6px 18px 4px; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: block; background: var(--panel); border: 1px solid var(--line); padding: 12px 14px 12px; min-width: 0; }
.card.act { box-shadow: inset 3px 0 0 var(--gold); }
.card .ch { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card .kick { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card .tt { font: 600 22px/1.05 var(--disp); text-transform: uppercase; letter-spacing: .01em; }
.card .pill { margin: 0; flex: none; }
.card .cn { margin-top: 4px; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .cn .vs { color: var(--dim); font-weight: 500; font-size: 12px; }

.needle { margin: 12px 0 2px; }
.needle .trk { position: relative; height: 26px; background: var(--panel-2); }
.needle .h { position: absolute; top: 0; bottom: 0; width: 50%; }
.needle .h.a { left: 0; } .needle .h.r { left: 50%; }
.needle .h.dem { background: rgba(42, 100, 201, .16); } .needle .h.rep { background: rgba(201, 53, 43, .16); } .needle .h.ind { background: rgba(19, 132, 90, .18); }
.needle .mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.needle .fb { position: absolute; top: 3px; height: 12px; background: rgba(241, 241, 238, .26); }
.needle .fm { position: absolute; top: 0; height: 18px; width: 3px; margin-left: -1.5px; background: var(--ink); box-shadow: 0 0 0 1px var(--bg); }
.needle .cb { position: absolute; top: 19px; height: 4px; background: rgba(241, 241, 238, .3); }
.needle .cm { position: absolute; top: 17px; width: 8px; height: 8px; margin-left: -4px; transform: rotate(45deg); background: var(--panel-2); border: 2px solid var(--ink); }
.needle.lg .trk { height: 38px; }
.needle.lg .fb { top: 4px; height: 18px; }
.needle.lg .fm { height: 26px; width: 4px; margin-left: -2px; }
.needle.lg .cb { top: 28px; height: 6px; }
.needle.lg .cm { top: 26px; width: 11px; height: 11px; margin-left: -5.5px; }
.needle .ax { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.ro { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.ro b { font-weight: 700; color: var(--ink); }
.ro b.tc { color: var(--ci); }
.ro .dim { color: var(--dim); }
.gl { display: inline-block; vertical-align: -1px; margin-right: 6px; }
.gl.f { width: 3px; height: 12px; background: var(--ink); }
.gl.c { width: 7px; height: 7px; margin-left: 2px; margin-right: 8px; vertical-align: 1px; transform: rotate(45deg); border: 2px solid var(--ink); }
.ro2 { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.ro2 b { color: var(--ink); } .ro2 b.tc { color: var(--ci); }
/* Market prices: a separate, labeled line, never part of the needle. */
.mk { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.mk .lab { font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.mk b { font-weight: 700; color: var(--ink); } .mk b.tc { color: var(--ci); }
.mk .dim, .mk .dim b { color: var(--dim); }
small.snap { color: var(--dim); font-size: 11px; font-weight: 500; }
/* Playable (in the game) or results only. */
/* NYT-style needle on race cards. */
.dial { margin: 8px auto 0; max-width: 260px; }
.dial svg { display: block; width: 100%; height: auto; overflow: visible; }
.dial .da { fill: none; stroke-width: 12; opacity: .35; }
.dial .da.dem { stroke: var(--dem); } .dial .da.rep { stroke: var(--rep); } .dial .da.ind { stroke: var(--ind); }
.dial .db { fill: none; stroke: var(--ink); stroke-width: 12; opacity: .28; }
.dial .dt { stroke: var(--bg); stroke-width: 1.5; }
.dial .dn { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.dial .dh { fill: var(--ink); }
.dial .dl { font: 600 9px var(--body); fill: var(--dim); text-anchor: middle; }
.dial .dv { text-align: center; margin-top: -2px; font-size: 12px; color: var(--muted); }
.dial .dv b { display: block; font: 600 22px/1.1 var(--disp); color: var(--ink); } .dial .dv b.tc { color: var(--ci); }
.seg2.cstyle { margin: 6px 18px 4px; }
/* Race page: section labels inside panels, the market panel, "Before tonight". */
.sect.in { padding: 0 0 6px; }
.cnth { padding: 14px 18px 4px !important; }
.cand .pty { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mp, .bt { margin: 12px 18px 0; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); }
.mpb { display: flex; height: 14px; margin: 4px 0 8px; background: var(--panel-2); }
.mpb i { height: 100%; } .mpb i.dem { background: var(--dem); } .mpb i.rep { background: var(--rep); } .mpb i.ind { background: var(--ind); } .mpb i.oth { background: #8a929a; }
.mpr { display: flex; justify-content: space-between; gap: 12px; }
.mps { display: flex; flex-direction: column; min-width: 0; }
.mps.r { text-align: right; align-items: flex-end; }
.mps .mpn { font-weight: 700; font-size: 14px; } .mps .mpn small { color: var(--muted); font-weight: 500; }
.mps b { font: 600 34px/1.05 var(--disp); color: var(--ink); } .mps b.tc { color: var(--ci); }
.mps small { font-size: 11px; color: var(--dim); }
.bt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bt li { display: grid; grid-template-columns: 130px 1fr; gap: 2px 10px; align-items: baseline; font-size: 13px; }
.bt li span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bt li b { font-weight: 700; } .bt li b.tc { color: var(--ci); }
.bt li small { grid-column: 2; color: var(--dim); font-size: 12px; }
.bt li small.nt { grid-column: 2; grid-row: 1; color: var(--muted); }
.seg2.msw { margin: 12px 18px 0; }
.cmap .dpath { stroke: var(--bg); stroke-width: 1.5; vector-effect: non-scaling-stroke; fill-rule: evenodd; cursor: pointer; }
.cmap a:hover .dpath { opacity: .85; }
.ours-why { margin-top: -4px; margin-bottom: 6px; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 6px; font: 700 10px/1.5 var(--body); letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.tag.play, .kr .kt .tag.play, .mini .nm .tag.play { background: var(--gold-fill); color: var(--on-gold); }
.tag.ro { border: 1px solid var(--line); color: var(--dim); }
.card .tt + .tag { margin: 4px 0 0; }
.ev.mv.sw time { color: var(--dim); }
.ev.mv i.src { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 1px 5px; vertical-align: 1px; }
.ev.mv i.src.m { border: 1px solid var(--muted); color: var(--muted); }
.ev.mv i.src.f { background: var(--ink); color: var(--bg); }
.seg2.fsw { margin-top: 10px; }
.ev.post { line-height: 1.45; }
.ev.post .pw { display: block; }
.ev.post .pn { font-size: 16px; font-weight: 700; color: var(--ink); }
.ev.post .pr { font-size: 12px; color: var(--muted); }
.ev.post .pt { display: block; margin-top: 4px; color: var(--ink); overflow-wrap: anywhere; }
.ev.post .pq { display: block; margin: 6px 0 2px; padding: 6px 8px; border-left: 2px solid var(--line); color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.ev.post .pl { display: block; margin: 6px 0 2px; color: var(--gold); font-size: 12px; overflow-wrap: anywhere; }
.ev.post small { color: var(--dim); }
.ev.post a { color: var(--gold); }
.ev.mv.sw.upset { border-left: 3px solid var(--gold); }
.ev.mv i.up { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-gold); background: var(--gold-fill); padding: 1px 5px; }
.cs { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cs.sub { margin-top: 0; border-top: 0; padding-top: 4px; }
.cs em { font-style: normal; white-space: nowrap; }
.cs.go { color: var(--gold); }
.cs.mine { color: var(--ink); }
.cs.mine b.tc { color: var(--ci); }
.cs.won em { color: var(--good); } .cs.lost em { color: var(--bad); }
.mini { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 11px 18px; border-top: 1px solid #16191d; }
.mini .nm { font-weight: 700; font-size: 14px; min-width: 0; }
.mini .nm small, .mini .rt small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .rt { text-align: right; }
.mini .rt b { font: 600 18px/1 var(--disp); }
.mini .rt b.tc, .mini .rt small.tc { color: var(--ci); }

/* ---------- Races tab ---------- */
.seg2 { display: flex; border: 1px solid var(--line); }
.seg2 > * { flex: 1; text-align: center; padding: 11px 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.seg2 > * + * { border-left: 1px solid var(--line); }
.seg2 > [aria-current="true"] { background: var(--panel-2); color: var(--ink); }
.seg2 b { margin-left: 6px; color: var(--gold); }
.seg2.tabs { margin: 14px 18px 0; }
.seg2.sttabs { margin-top: 10px; }
.seg2.sm { margin: 8px 0 0; }
.seg2.sm > * { padding: 8px 6px; font-size: 11px; }
.filters { margin: 10px 18px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { padding: 7px 10px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chips button[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.filters select { background: var(--panel); color: var(--ink); border: 1px solid var(--line); padding: 7px 8px; font-size: 13px; font-weight: 700; border-radius: 0; max-width: 46vw; }
.hid { margin: 8px 18px 0; font-size: 12px; color: var(--muted); }
.hid button { color: var(--gold); font-weight: 700; }
.cta { display: flex; justify-content: space-between; align-items: center; margin: 12px 18px 0; padding: 12px 14px; background: var(--gold-soft); border: 1px solid var(--gold); color: var(--gold); font: 600 18px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- counties ---------- */
.cblock { margin: 0 18px; }
.cmap { display: block; width: 100%; height: auto; max-height: 52vh; margin: 10px auto 0; }
.cmap path { stroke: var(--bg); stroke-width: .6px; vector-effect: non-scaling-stroke; cursor: pointer; }
.cmap .selo { fill: none; stroke: var(--gold); stroke-width: 2.5px; pointer-events: none; }
.cmap-wait { padding: 40px 0; text-align: center; color: var(--dim); font-size: 13px; }
.cleg { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--muted); }
.cleg .ttl { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cleg i { display: inline-block; width: 18px; height: 10px; vertical-align: -1px; }
.cleg .steps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.cleg .k { white-space: nowrap; }
.cleg .k i { margin-right: 5px; }
.cleg .div { display: inline-flex; flex-direction: column; gap: 3px; align-self: flex-start; }
.cleg .sws { display: flex; gap: 2px; }
.cleg .lab { display: flex; justify-content: space-between; font-weight: 700; }
.cdet { margin-top: 10px; min-height: 20px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cdet b { color: var(--ink); }
.cdet .tc { color: var(--ci); font-weight: 700; }
.ctwrap { margin-top: 8px; overflow-x: auto; }
.ctab { width: 100%; border-collapse: collapse; font-size: 13px; }
.ctab th, .ctab td { padding: 7px 4px; border-top: 1px solid #16191d; text-align: right; white-space: nowrap; }
.ctab th:first-child { text-align: left; padding-left: 0; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
.ctab td:last-child, .ctab th:last-child { padding-right: 0; }
.ctab thead th { border-top: 0; }
.ctab thead button { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); text-align: right; }
.ctab thead th:first-child button { text-align: left; }
.ctab thead th[aria-sort="ascending"] button, .ctab thead th[aria-sort="descending"] button { color: var(--ink); }
.ctab tbody tr { cursor: pointer; }
.ctab tbody th { font-weight: 600; }
.ctab td.tc { color: var(--ci); font-weight: 700; }
.ctab tr.sel { background: var(--gold-soft); }
.ctab tfoot th, .ctab tfoot td { color: var(--muted); font-weight: 700; border-top: 1px solid var(--line); }
.more { margin-top: 8px; padding: 8px 0; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* The lock bar appears once something is picked and commits it. */
.lockbar { position: fixed; left: 0; right: 0; bottom: calc(50px + env(safe-area-inset-bottom)); z-index: 6; padding: 10px 18px 12px; background: linear-gradient(transparent, var(--bg) 40%); }
.lockbar button { width: 100%; background: var(--gold-fill); color: var(--on-gold); padding: 13px 18px; font: 600 22px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lockbar button span { min-width: 0; }
.lockbar button small { display: block; font: 700 12px/1.2 var(--body); letter-spacing: .04em; text-transform: none; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.lockbar button em { font-style: normal; font: 700 14px var(--body); letter-spacing: .06em; white-space: nowrap; }
.lockbar button:disabled { opacity: .6; }
main.has-lock { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }

/* ---------- standings ---------- */
.row { width: 100%; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 11px 18px; border-top: 1px solid #16191d; }
.row.is-me { background: var(--gold-soft); }
.row .rk { font: 600 22px/1 var(--disp); color: var(--muted); }
.row.is-me .rk, .row:first-of-type .rk { color: var(--gold); }
.row .nm { font-weight: 700; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .nm small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.row .pt { font: 600 26px/1 var(--disp); text-align: right; }
.row .pt small { display: block; font: 500 11px var(--body); color: var(--muted); }
.ev { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 9px 18px; border-top: 1px solid #16191d; font-size: 13px; }
.ev time { color: var(--muted); font-weight: 600; }
.ev.ev-official span { color: var(--gold); font-weight: 700; }
/* Map page: key races. */
.kbar { width: 100%; border: 0; text-align: left; cursor: pointer; display: flex; justify-content: space-between; margin-top: 10px; padding: 8px 18px; background: var(--panel-2); font: 600 15px/1.2 var(--disp); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.kbar span:last-child { font: 700 11px/1.6 var(--body); letter-spacing: .12em; color: var(--dim); }
.kr { display: block; padding: 10px 18px; border-top: 1px solid #16191d; color: var(--ink); text-decoration: none; }
.kr .kt { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.kr .kt span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.kb { position: relative; display: flex; height: 8px; margin: 7px 0 6px; background: var(--panel-2); overflow: visible; }
.kb i { height: 100%; }
.kb i.dem { background: var(--dem); } .kb i.rep { background: var(--rep); } .kb i.ind { background: var(--ind); }
.kb i.oth { background: #3a4048; } .kb i.yes { background: var(--gold-fill); }
.kb i.n0 { background: #c4cad0; } .kb i.n1 { background: #6b747d; } .kb i.n2 { background: #9aa2aa; } .kb i.n3 { background: #4a525a; }
.kb.fc i { opacity: .55; background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(0, 0, 0, .35) 4px 7px); }
.kb b { position: absolute; top: -3px; width: 2px; height: 14px; margin-left: -1px; background: #fff; }
.xo { padding: 8px 0 2px; }
.xo .xn { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.xo .xn small { color: var(--dim); }
.xo .xn b { font: 600 20px/1 var(--disp); } .xo .xn b.tc { color: var(--ci); }
.kkey { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 2px 18px 6px; font-size: 12px; color: var(--muted); }
.kkey > span { display: inline-flex; align-items: center; gap: 6px; }
.kkey .kbs { display: inline-flex; width: 26px; height: 8px; } .kkey .kbs i { flex: 1; }
.kkey .kbs i.dem { background: var(--dem); } .kkey .kbs i.rep { background: var(--rep); }
.kkey .kts { display: inline-block; width: 2px; height: 14px; background: #fff; }
.kr .kt span b { color: var(--ink); } .kr .kt span b.tc { color: var(--ci); }
.kr .kl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 12px; color: var(--muted); }
.kr .kl b { color: var(--ink); font-weight: 700; } .kr .kl b.tc { color: var(--ci); }
/* Feed tab: market moves, and race calls in gold. */
.ev.mv { color: var(--ink); text-decoration: none; line-height: 1.45; }
.ev.mv .where { font-weight: 700; }
.ev.mv small { color: var(--dim); font-size: 12px; }
.ev.mv b.tc { color: var(--ci); font-weight: 700; }
.ev.mv.call { border-left: 3px solid var(--gold); background: var(--gold-soft); }
.ev.mv.call .where { color: var(--gold); }
.ev.mv.polls { border-left: 3px solid var(--muted); background: var(--panel); }
.filters.ffeed { justify-content: flex-start; margin-bottom: 8px; }
.filters.ffeed select { flex: 1 1 30%; min-width: 0; max-width: none; }
.empty { color: var(--muted); padding: 14px 18px; }

/* ---------- info ---------- */
.info { padding: 6px 18px 20px; }
.info h2 { font: 600 24px/1.1 var(--disp); text-transform: uppercase; letter-spacing: .02em; margin: 22px 0 6px; }
.info p, .info li { font-size: 14.5px; color: #c9cfd4; margin: 0 0 8px; }
.info ul { padding-left: 18px; margin: 0 0 8px; }
.info b { color: var(--ink); }

/* ---------- join ---------- */
.join { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; }
.join form { width: 100%; max-width: 420px; }
.join h1 { font: 600 64px/0.9 var(--disp); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 22px; }
.join h1 span { color: var(--gold); }
.join label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin: 14px 0 6px; }
.join input { width: 100%; border: 1px solid var(--line); background: var(--panel); padding: 14px; font-size: 18px; }
.join input:focus { border-color: var(--gold); outline: none; }
.join button { width: 100%; margin-top: 18px; background: var(--gold-fill); color: var(--on-gold); padding: 16px; font: 600 20px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.err { color: var(--bad); font-size: 14px; min-height: 20px; margin-top: 10px; }
/* Sign in by email (Oct 31): a line saying what happens, the code box, and
   the small secondary actions under the error line. si-, since .cs, .mk and
   .big are taken. */
.join .si-note { color: var(--muted); font-size: 15px; line-height: 1.4; margin: -6px 0 4px; }
.join .si-note b { color: var(--ink); overflow-wrap: anywhere; }
.join #siCode { font: 600 30px/1 var(--disp); letter-spacing: .35em; text-align: center; padding: 12px 14px; }
.join button[type="submit"]:disabled { opacity: .6; }
.join .si-alt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.join .si-alt button { width: auto; margin: 0; padding: 10px 0; background: none; color: var(--gold); font: 700 12px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.join .si-alt button:disabled { color: var(--muted); }
.info .si-own { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.info .si-out { margin: 2px 0 6px; padding: 10px 14px; border: 1px solid var(--line); color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 18px; right: 18px; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 20; background: var(--ink); color: var(--bg); padding: 12px 16px; font-weight: 700; font-size: 14px; text-align: center; }
.toast.bad { background: var(--bad); color: #fff; }

/* Reliability states (Oct 28): out of touch, connecting, retry. */
.band.bad { background: #3a1715; color: var(--bad); display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.band button, .empty button { color: var(--gold); font-weight: 700; text-decoration: underline; }
.wait { width: 100%; max-width: 420px; }
.wait p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.wait button { background: var(--gold-fill); color: var(--on-gold); padding: 12px 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
/* Map: a state whose callable races are all decided; the state list. */
.map path.done { fill: #1d2a24; }
.exp.pad { margin: 12px 18px 0; }
.cap { margin: 6px 18px 0; font-size: 11px; color: var(--dim); }
.cap b { color: var(--gold); font-weight: 700; }
/* County map: unknown is hatched, unlike "none" or "no votes". */
.cleg i.unk { background: repeating-linear-gradient(45deg, #353b44 0 3px, #14171b 3px 7px); }
.ctab th button.cn { font: inherit; color: inherit; text-align: left; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
/* County count that looks like early and mail ballots only (inferred, display only). */
.cearly { color: var(--muted); font-size: 11px; font-weight: 400; font-style: italic; }
.ctab th .cearly { display: block; white-space: normal; font-size: 10px; line-height: 1.2; }
/* Early ballots cast (UF Election Lab), display only. */
.cev { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; margin-top: 6px; overflow-wrap: anywhere; }
.cev a { color: inherit; text-decoration: underline; }
/* How the state counts mail, early and Election Day ballots (vote_sequencing.json). */
.cnote { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; font-size: 13px; line-height: 1.45; }
.cnote summary { cursor: pointer; color: var(--gold); font-weight: 600; }
.cnote p { margin: 6px 0 0; overflow-wrap: anywhere; }
.cnote a { color: var(--gold); }
/* Needle: the estimate is past the edge of the scale. */
.needle .over { position: absolute; top: 50%; transform: translateY(-50%); font-size: 10px; line-height: 1; color: var(--ink); pointer-events: none; }
.needle .over.a { left: 7px; } .needle .over.r { right: 7px; }
/* Compact rows: the forecast's chance on safe seats. */
.mini .rt small.fc { color: var(--dim); }

/* ---------------- Day mode (the default; the ☀/☾ button switches) ----------------
   Off-white background, white panels, dark text; party and gold colors
   deepened to read on white. The TV and host screens stay dark. */
:root[data-theme="light"] {
  --bg: #f6f5f1;
  --panel: #ffffff;
  --panel-2: #ebe9e3;
  --line: #d8d5cd;
  --ink: #16181b;
  --muted: #545d66;
  --dim: #7b848c;
  --dem: #2a64c9;
  --dem-ink: #1d55b5;
  --rep: #c9352b;
  --rep-ink: #b02a20;
  --ind: #13845a;
  --ind-ink: #0f7049;
  --gold: #b7841c;
  --gold-soft: #f3e6c4;
  --on-gold: #fff;
  --good: #1e8a4c;
  --bad: #c0392b;
  color-scheme: light;
}
:root[data-theme="light"] .band.bad { background: #f6dcd8; }
:root[data-theme="light"] .map path.hit { fill: #e4e2dc; stroke: #f6f5f1; }
:root[data-theme="light"] .map path.hit.up { fill: #d3d0c8; }
:root[data-theme="light"] .map path.hit.done { fill: #cfe3d6; }
:root[data-theme="light"] .map path.hit.open { fill: var(--map-open); }
:root[data-theme="light"] .map path.mine { stroke: #16181b; }
:root[data-theme="light"] .map text { fill: #1d2024; stroke: rgba(246, 245, 241, .8); }
:root[data-theme="light"] .map text.rl { fill: #4a535c; }
:root[data-theme="light"] .map .rl-tag { fill: rgba(255, 255, 255, .92); }
:root[data-theme="light"] .map .rl-lead { stroke: #8a929a; }
:root[data-theme="light"] .map .rl-dot { fill: #4a535c; }
:root[data-theme="light"] .li, :root[data-theme="light"] .mini, :root[data-theme="light"] .ctab th, :root[data-theme="light"] .ctab td,
:root[data-theme="light"] .row, :root[data-theme="light"] .ev, :root[data-theme="light"] .kr { border-top-color: #e2dfd8; }
:root[data-theme="light"] .big.off, :root[data-theme="light"] .seg .c button.off { color: #a3aab1; }
:root[data-theme="light"] .needle .fb { background: rgba(22, 24, 27, .22); }
:root[data-theme="light"] .needle .cb { background: rgba(22, 24, 27, .3); }
:root[data-theme="light"] .kb i.oth { background: #c9c6bf; }
:root[data-theme="light"] .kb i.n0 { background: #4f565d; } :root[data-theme="light"] .kb i.n1 { background: #b9bec3; } :root[data-theme="light"] .kb i.n2 { background: #858c93; } :root[data-theme="light"] .kb i.n3 { background: #d6d9dc; }
:root[data-theme="light"] .kb.fc i { background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255, 255, 255, .55) 4px 7px); }
:root[data-theme="light"] .kb b, :root[data-theme="light"] .kkey .kts { background: #16181b; }
:root[data-theme="light"] .info p, :root[data-theme="light"] .info li { color: #2f353b; }
:root[data-theme="light"] .cleg i.unk { background: repeating-linear-gradient(45deg, #c9c6bf 0 3px, #ebe9e3 3px 7px); }
:root[data-theme="light"] .dial .da { opacity: .45; }
:root[data-theme="light"] .dial .db { opacity: .22; }
:root[data-theme="light"] .dial .dt { stroke: #fff; }
.thm { padding: 4px 6px; font-size: 15px; line-height: 1; border: 1px solid var(--line); background: none; cursor: pointer; color: var(--ink); }

/* ---------- search, bookmarks (Oct 29) ---------- */
.hb { padding: 4px 6px; font-size: 15px; line-height: 1; border: 1px solid var(--line); background: none; cursor: pointer; color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: 2px; }
.hb.bmh { color: var(--gold); }
.hb.bmh.on { border-color: var(--gold); }
.hb small { font: 700 10px/1 var(--body); color: var(--muted); }
@media (max-width: 400px) { .top { padding-left: 12px; padding-right: 12px; } .tr { gap: 6px; } .wm { font-size: 18px; } .me span { display: none; } }
.st .str { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 1; min-width: 0; max-width: 55%; }
.st .str .pill { max-width: 100%; margin-bottom: 0; }
.bmk { border: 1px solid var(--line); background: none; color: var(--muted); font: 700 11px var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; cursor: pointer; white-space: nowrap; margin-bottom: 4px; }
.bmk.on { color: var(--gold); border-color: var(--gold); }
/* A bookmark star beside each compact race row (Oct 31). The row is a link,
   so the star is its sibling, a button at least 44px wide; the two share the
   row's top line. */
.bmrow { display: flex; align-items: stretch; border-top: 1px solid #16191d; }
.bmrow > a { flex: 1 1 auto; min-width: 0; border-top: 0; padding-right: 2px; }
.bmstar { flex: none; width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; color: var(--muted); }
.bmrow > .kr + .bmstar { align-items: flex-start; padding-top: 8px; }
.bmstar.on { color: var(--gold); }
@media (hover: hover) { .bmstar:not(.on):hover { color: var(--ink); } } /* a tap on a phone would leave it lit */
.krk + .bmrow { border-top: 0; }
.krk + .bmrow > a { padding-top: 4px; }
:root[data-theme="light"] .bmrow { border-top-color: #e2dfd8; }
/* The winner's check once a race is officially called (decision desk or
   host; Oct 31): its own green in a filled circle, not the scheme accent, so
   it reads by day and night, in every scheme and next to either party's
   color. Always beside a name or "Called". */
:root { --ck: #4cc27e; --on-ck: #06140c; }
:root[data-theme="light"] { --ck: #1a7f45; --on-ck: #fff; }
.wck { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin: 0 .05em 0 .3em; border-radius: 50%; background: var(--ck); color: var(--on-ck); font: 700 .8em/1 var(--body); font-style: normal; letter-spacing: 0; text-transform: none; vertical-align: .1em; text-shadow: none; }
.pill .wck { margin: 0 .5em 0 0; background: #fff; color: #1a7f45; }
.big small .wck { margin: 0 .4em 0 0; }
/* Path to control lists: the forecast's chance and the market price side by
   side; the one that set the block's shade is boxed. */
.cbl a > b.cb-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cb-es { display: inline-flex; gap: 4px; }
.cb-e { display: inline-flex; align-items: baseline; gap: 3px; padding: 1px 4px; border: 1px solid transparent; font: 13px var(--mono); color: var(--muted); }
.cb-e i { font-style: normal; font-size: 10.5px; color: var(--dim); }
.cb-e.on { border-color: var(--ink); color: var(--ink); }
.cb-e.on i { color: var(--muted); }
.cb-e.dim { opacity: .6; }
.cbl .cb-key { border-top: 1px solid var(--line); font-size: 12.5px; }
/* Senate and House control pages: chip counts. */
.chips button b.ch-n { margin-left: 5px; font-weight: 700; opacity: .75; }
.find { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.55); display: flex; justify-content: center; align-items: flex-start; padding: calc(10px + env(safe-area-inset-top)) 10px 10px; }
.find[hidden] { display: none; }
.fbox { width: 100%; max-width: 560px; background: var(--panel); border: 1px solid var(--line); max-height: 86vh; display: flex; flex-direction: column; }
.fin { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); }
.fin input { flex: 1; min-width: 0; font: 500 16px var(--body); padding: 10px 12px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.fin button { border: 1px solid var(--line); background: none; color: var(--ink); font-size: 16px; padding: 0 12px; cursor: pointer; }
.fres { overflow-y: auto; }
.fres a { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.fres a:hover, .fres a:focus { background: var(--panel-2); }
.fres a b { display: block; font-weight: 700; font-size: 15px; }
.fres a small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.fres a small b { display: inline; font-size: inherit; color: var(--gold); }
.fhint { padding: 12px 14px; color: var(--muted); font-size: 13px; }

/* ---------- path to control ---------- */
.ctl { padding: 10px 18px 12px; border-bottom: 1px solid var(--line); }
.ctt { display: flex; justify-content: space-between; align-items: baseline; }
.ctt b { font: 600 20px/1 var(--disp); text-transform: uppercase; letter-spacing: .03em; }
.ctt span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ctn { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 13px; }
.ctn b { font: 600 22px/1 var(--disp); }
.ctn .tc { color: var(--ci); }
.ctb { position: relative; display: flex; height: 16px; margin: 6px 0; background: var(--panel-2); overflow: visible; }
.ctb i { height: 100%; }
.ctb i.dem { background: var(--dem); } .ctb i.rep { background: var(--rep); } .ctb i.ind { background: var(--ind); }
.ctb i.lk { opacity: .45; }
.ctb i.un { background: var(--panel-2); }
.ctb .maj { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); }
.ctp { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ctp b { color: var(--ink); }
.ctp b.tc { color: var(--ci); }

/* ---------- where the votes left are ---------- */
.vl { margin: 14px 18px 0; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); }
.vlh { font-size: 14px; line-height: 1.4; margin-bottom: 8px; }
.vlh .tc { color: var(--ci); }
.vlr { padding: 6px 0; border-top: 1px solid var(--line); }
.vlt { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.vlt span { color: var(--muted); text-align: right; }
.vlt span b { color: var(--ink); }
.vlb { display: flex; height: 10px; margin: 5px 0 4px; background: var(--bg); }
.vlb i { height: 100%; }
.vlb i.vc { background: #6b747d; }
.vlb i.lft.dem { background: var(--dem); } .vlb i.lft.rep { background: var(--rep); } .vlb i.lft.even { background: var(--gold-fill); }
.vls { font-size: 12px; color: var(--muted); }
.vls .tc { color: var(--ci); }
:root[data-theme="light"] .vlb i.vc { background: #b9bec3; }

/* ---------- key races: order switch, office chips, ranked lines ---------- */
.kview { margin: 4px 18px 8px; }
.kview button { font-size: 11px; }
.kchips { padding: 0 18px 8px; }
.krk { display: flex; gap: 10px; align-items: baseline; padding: 10px 18px 0; font-size: 13px; color: var(--muted); }
.krk .n { font: 600 18px/1 var(--disp); color: var(--gold); min-width: 30px; }
.krk b { color: var(--ink); }
.krk b.tc { color: var(--ci); }
.krk i.up { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-gold); background: var(--gold-fill); padding: 1px 5px; }
.krk + .kr, .krk + .li { border-top: 0; padding-top: 4px; }
.kview > * { white-space: normal; letter-spacing: .06em; padding: 9px 4px; line-height: 1.2; }
/* path to control: shades by how sure a seat is */
.ctb i.won { opacity: 1; } .ctb i.lk { opacity: .82; } .ctb i.s0 { opacity: .62; } .ctb i.s1 { opacity: .44; } .ctb i.s2 { opacity: .3; } .ctb i.s3 { opacity: .17; }
.ctb i + i { box-shadow: inset 1px 0 0 var(--bg); }
.ctk { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 2px 18px 4px; font-size: 11.5px; color: var(--muted); }
.ctk > span { display: inline-flex; align-items: center; gap: 5px; }
.ctk .sw { display: inline-flex; width: 22px; height: 10px; }
.ctk .sw i { flex: 1; }
.ctk .sw i.dem { background: var(--dem); } .ctk .sw i.rep { background: var(--rep); }
.ctk .sw i.won { opacity: 1; } .ctk .sw i.lk { opacity: .82; } .ctk .sw i.s0 { opacity: .62; } .ctk .sw i.s1 { opacity: .44; } .ctk .sw i.s2 { opacity: .3; } .ctk .sw i.s3 { opacity: .17; }
/* Live feed: a call withdrawn or changed stands out like a call, in red-orange */
.ev.mv.uncall { border-left: 3px solid var(--bad); background: color-mix(in srgb, var(--bad) 14%, var(--bg)); }
.ev.mv.uncall .where { color: var(--bad); }
.ev.mv.uncall i.ucl { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--bad); padding: 1px 5px; margin-right: 4px; }
/* Map tab: the search bar (opens the search box) */
.sbar { display: flex; align-items: center; gap: 10px; width: calc(100% - 36px); margin: 10px 18px 4px; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: 500 15px var(--body); text-align: left; cursor: text; }
.sbar span { font-size: 15px; }
.sbar:hover, .sbar:focus { border-color: var(--gold); }

/* ---------- path to control: block lists; more links (Oct 29) ---------- */
.ctb i[data-band] { cursor: pointer; }
.ctb i.on { outline: 2px solid var(--ink); outline-offset: -2px; opacity: 1; position: relative; z-index: 1; }
.ctt a { color: inherit; text-decoration: none; }
.ctt a:hover { color: var(--gold); }
.cbl { margin: 6px 0 8px; border: 1px solid var(--line); background: var(--panel); }
.cbh { display: flex; align-items: center; gap: 4px; padding: 7px 10px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.cbh .tc { color: var(--ci); }
.cbh button { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 14px; cursor: pointer; padding: 0 2px; }
.cbl a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; font-size: 13.5px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.cbl a:first-of-type { border-top: 0; }
.cbl a:hover { background: var(--panel-2); }
.cbl a b { font-weight: 700; }
.cbl .fhint { padding: 8px 10px; }
a.ev { color: inherit; text-decoration: none; }
a.ev:hover { background: var(--panel-2); }
.h1a { color: inherit; text-decoration: none; }
.h1a:hover { color: var(--gold); }
.stl { color: inherit; text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 2px; }
.ev.post button.pn { border: 0; background: none; padding: 0; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.ev.post button.pn:hover { color: var(--gold); }
.kr.wr .kl span { color: var(--muted); }
.kr.wr .src2 { color: var(--gold); white-space: nowrap; }
.kl.cnt2 span { color: var(--ink); }
.kl.cnt2 small { color: var(--muted); }
.kl.cnt2 .tc { color: var(--ci); }
.kr.wr .kl.wl a { color: var(--gold); text-decoration: none; }
.kr.wr .kl.wl small { color: var(--dim); }

/* ---------- How it works (Make your picks) ---------- */
.howto { align-items: center; z-index: 40; }
.hbox { max-height: 88vh; }
.hbody { overflow-y: auto; padding: 16px 18px 6px; font-size: 14px; line-height: 1.45; }
.hbody h2 { font: 600 26px/1 var(--disp); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 8px; color: var(--gold); }
.hbody h3 { font: 600 15px/1.2 var(--disp); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 4px; }
.hbody ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.hbody p { margin: 0 0 6px; }
.hbody .fine { color: var(--muted); font-size: 12px; margin-top: 12px; }
.hfoot { padding: 10px 18px 14px; border-top: 1px solid var(--line); }
.hfoot button { width: 100%; padding: 12px; background: var(--gold-fill); color: var(--on-gold); border: 0; font: 700 15px var(--body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.howrow { display: flex; justify-content: flex-end; padding: 10px 18px 0; }
.howbtn { border: 1px solid var(--line); background: none; color: var(--gold); font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; cursor: pointer; }

/* ---------- your picks (Standings) ---------- */
.howrow { gap: 8px; }
a.howbtn { text-decoration: none; }
.pks { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 4px 18px 8px; font-size: 13px; color: var(--muted); }
.pks b { color: var(--ink); font-size: 15px; }
.pk { display: block; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pk:hover { background: var(--panel-2); }
.pk.done { opacity: .8; }
.pkt { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.pkt span { font-size: 12px; color: var(--muted); font-weight: 700; }
.pkt .tc, .pkl .tc { color: var(--ci); }
.pkl { font-size: 13px; color: var(--muted); margin-top: 3px; }
.pkl b.won { color: var(--good); } .pkl b.lost { color: var(--bad); }
.cbl a > span { min-width: 0; }
.cbl .cbc { font-size: 12.5px; color: var(--muted); }
.cbl .cbc .tc { color: var(--ci); font-weight: 700; }
.cbl .cbw { color: var(--muted); font-size: 12px; white-space: nowrap; }
.cbl a > b { white-space: nowrap; text-align: right; }
.cbl a > b small { color: var(--muted); font-weight: 500; }

/* Small reading text one pixel larger (Eddie, Oct 29). Labels that must
   stay on one line (tabs, chips, tags, the bottom bar) are left as they were. */
.exp { font-size: 12px; }
.note { font-size: 14px; }
.kr .kl { font-size: 13px; }
.kr .kt span { font-size: 13px; }
.ev { font-size: 14px; }
.ev.mv small { font-size: 13px; }
small.snap { font-size: 12px; }
.mk { font-size: 13px; }
.li .nm small { font-size: 13px; }
.mini .nm small, .mini .rt small { font-size: 13px; }
.row .nm small { font-size: 13px; }
.bt li small { font-size: 13px; }
.room { font-size: 13px; }
.rep-line { font-size: 13px; }
.cand .vt { font-size: 13px; }
.ctp { font-size: 13.5px; }
.ctn { font-size: 14px; }
.vls { font-size: 13px; }
.vlt { font-size: 14px; }
.krk { font-size: 14px; }
.cbh { font-size: 13.5px; }
.cbl .cbc { font-size: 13.5px; }
.cbl .cbw { font-size: 13px; }
.pkl { font-size: 14px; }
.pks { font-size: 14px; }
.fhint { font-size: 14px; }
.fres a small { font-size: 13.5px; }
.hid { font-size: 13px; }
.cdet { font-size: 14px; }
.kkey { font-size: 13px; }
.ctk { font-size: 12.5px; }
.mps small { font-size: 12px; }
.ev.post .pq { font-size: 13px; }
.ev.post .pl { font-size: 13px; }
.ev.post .pr { font-size: 13px; }
.key { font-size: 12px; }
.cleg { font-size: 12px; }

/* ---------- forecast under the market price (race page) ---------- */
.mpf { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.mpb.sm { height: 9px; opacity: .85; }
.mpr.sm .mps b { font-size: 24px; }

/* ---------- race rows: forecast bar over the market bar ---------- */
.kb2 { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 8px; margin: 5px 0 0; }
.kb2 > span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kb2 .kb { margin: 0; }
.kb2 .kb.fcb { height: 6px; opacity: .8; }
.kb2 + .kl { margin-top: 6px; }

/* ---------- bottom bar: full labels on a computer, short on a phone ---------- */
.bottom .ns { display: none; }

/* ---------- phones (Evan, Oct 29): same pages, laid out for a narrow screen ---------- */
@media (max-width: 560px) {
  /* Nothing may push the page sideways; rows of tabs scroll inside themselves. */
  html, body { overflow-x: clip; }
  .seg2.tabs { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .seg2.tabs::-webkit-scrollbar { display: none; }
  .seg2.tabs > * { flex: 0 0 auto; padding-left: 12px; padding-right: 12px; }
  /* Top bar: wordmark or Back on the left, the buttons and score on the right,
     no name (it's on Standings). Bigger buttons to tap. */
  .top { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .wm { font-size: 18px; white-space: nowrap; }
  .back { max-width: 32vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; letter-spacing: .06em; }
  .tr { gap: 6px; }
  .tr .hb, .tr .thm, .tr .snd { padding: 7px 8px; font-size: 16px; }
  .snd small { display: none; }
  .snd.lock { box-shadow: 0 0 0 2px var(--gold-soft); }
  .me span { display: none; }
  .me b { font-size: 24px; }
  /* Bottom bar: one-word labels, bigger. */
  .bottom .nl { display: none; }
  .bottom .ns { display: inline; }
  .bottom a { font-size: 12px; letter-spacing: .05em; padding: 15px 2px 17px; }
  /* Race and state pages: a little less headline, more room. */
  .st { padding-left: 14px; padding-right: 14px; }
  .st h1 { font-size: 44px; }
  .st .str { max-width: 50%; }
  .sect, .kr, .krk, .ctl, .ev, .pk { padding-left: 14px; padding-right: 14px; }
  .mp, .bt, .nb, .vl { margin-left: 12px; margin-right: 12px; }
  .mps b { font-size: 30px; }
  .filters { flex-wrap: wrap; }
  .howrow { padding-left: 14px; padding-right: 14px; }
}
.cbl a > b small.cbs { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* race page: the candidates once, under the title */
.st .who2 { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.st .who2 .tc { color: var(--ci); }
.rep-line.nov { margin-top: 2px; }

/* Info › Colors: one button per scheme, its swatch drawn from the scheme list in play.html. */
.schemes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.schemes button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 13px; }
.schemes button[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); font-weight: 700; }
.schemes i { width: 18px; height: 18px; border: 3px solid; flex: none; }

/* ---------- color schemes (one per phone, Info › Colors; violet by default) ----------
   Each sets the accent tokens for night (:root) and day ([data-theme="light"]).
   Gold is the original look and uses the defaults above. Day schemes swap the
   cream background for a cooler off-white; plum tints the backgrounds too. */
:root[data-scheme="violet"] { --gold: #a78bfa; --gold-soft: #2a2056; --gold-fill: #a78bfa; --on-gold: #160d2e; --map-open: #33266b; --map-line: #a78bfa; }
:root[data-theme="light"][data-scheme="violet"] { --gold: #6d3fd1; --gold-soft: #e9e2fb; --gold-fill: #6d3fd1; --on-gold: #fff; --map-open: #e3dafa; --map-line: #6d3fd1; --bg: #f4f5f7; --panel-2: #e8ebef; --line: #d6dbe1; }
:root[data-scheme="lime"] { --gold: #a3e635; --gold-soft: #26350d; --gold-fill: #a3e635; --on-gold: #16240a; --map-open: #2f4210; --map-line: #a3e635; }
:root[data-theme="light"][data-scheme="lime"] { --gold: #45700d; --gold-soft: #ebf7d3; --gold-fill: #84cc16; --on-gold: #152503; --map-open: #e4f4c4; --map-line: #5f8f12; --bg: #f4f5f7; --panel-2: #e8ebef; --line: #d6dbe1; }
:root[data-scheme="orange"] { --gold: #fb923c; --gold-soft: #47250e; --gold-fill: #fb923c; --on-gold: #2a1405; --map-open: #5a2f12; --map-line: #fb923c; }
:root[data-theme="light"][data-scheme="orange"] { --gold: #ad3a0b; --gold-soft: #fde8d8; --gold-fill: #c2410c; --on-gold: #fff; --map-open: #fde1cc; --map-line: #c2410c; --bg: #f4f5f7; --panel-2: #e8ebef; --line: #d6dbe1; }
:root[data-scheme="magenta"] { --gold: #e879f9; --gold-soft: #441a4a; --gold-fill: #e879f9; --on-gold: #2a0a2e; --map-open: #55205c; --map-line: #e879f9; }
:root[data-theme="light"][data-scheme="magenta"] { --gold: #a21caf; --gold-soft: #f7e3f8; --gold-fill: #a21caf; --on-gold: #fff; --map-open: #f4d9f6; --map-line: #a21caf; --bg: #f4f5f7; --panel-2: #e8ebef; --line: #d6dbe1; }
:root[data-scheme="cyan"] { --gold: #22d3ee; --gold-soft: #0f3a47; --gold-fill: #22d3ee; --on-gold: #052a31; --map-open: #11495a; --map-line: #22d3ee; }
:root[data-theme="light"][data-scheme="cyan"] { --gold: #0e7490; --gold-soft: #daf1f7; --gold-fill: #0e7490; --on-gold: #fff; --map-open: #d0edf5; --map-line: #0e7490; --bg: #f4f5f7; --panel-2: #e8ebef; --line: #d6dbe1; }
:root[data-scheme="highlighter"] { --gold: #f5ec5b; --gold-soft: #3d3a10; --gold-fill: #f5ec5b; --on-gold: #15181c; --map-open: #4d4810; --map-line: #f5ec5b; }
:root[data-theme="light"][data-scheme="highlighter"] { --gold: #15181c; --gold-soft: #fff27a; --gold-fill: #fff27a; --on-gold: #15181c; --map-open: #fff27a; --map-line: #15181c; --bg: #f4f5f7; --panel-2: #e8ebef; --line: #d6dbe1; }
:root[data-scheme="tealorange"] { --gold: #fb923c; --gold-soft: #47250e; --gold-fill: #fb923c; --on-gold: #2a1405; --map-open: #134e48; --map-line: #2dd4bf; }
:root[data-theme="light"][data-scheme="tealorange"] { --gold: #ad3a0b; --gold-soft: #fde8d8; --gold-fill: #c2410c; --on-gold: #fff; --map-open: #cdebe6; --map-line: #0f766e; --bg: #f4f5f7; --panel-2: #e8ebef; --line: #d6dbe1; }
:root[data-scheme="plum"] { --gold: #f0a6e6; --gold-soft: #46203f; --gold-fill: #f0a6e6; --on-gold: #2a0f27; --map-open: #57264f; --map-line: #f0a6e6; --bg: #140e17; --panel: #1d1521; --panel-2: #261c2b; --line: #2f2534; }
:root[data-theme="light"][data-scheme="plum"] { --gold: #8e2f86; --gold-soft: #f4dff1; --gold-fill: #8e2f86; --on-gold: #fff; --map-open: #efcdea; --map-line: #8e2f86; --bg: #f7f3f7; --panel: #fffdff; --panel-2: #ede5ed; --line: #ddd2dd; }
:root[data-scheme="mono"] { --gold: #eef1f4; --gold-soft: #2c333c; --gold-fill: #eef1f4; --on-gold: #0d1014; --map-open: #3d4652; --map-line: #e9edf1; }
:root[data-theme="light"][data-scheme="mono"] { --gold: #15181c; --gold-soft: #ffffff; --gold-fill: #15181c; --on-gold: #fff; --map-open: #ffffff; --map-line: #15181c; --bg: #f4f5f7; --panel-2: #e8ebef; --line: #d6dbe1; }

/* People tab (state pages): statewide figures, the measure picker, early voters' make-up. */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.pgrid div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pgrid span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgrid b { font: 600 22px/1.1 var(--disp); color: var(--ink); }
.seg2.pm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 8px; }
.seg2.pm > * { border-left: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; }
.seg2.pm > *:nth-child(3n) { border-right: 0; }
.seg2.pm > *:nth-last-child(-n+3) { border-bottom: 0; }
.pev { font-size: 14px; color: var(--muted); margin-top: 4px; }
.pev b { font: 600 22px/1.1 var(--disp); color: var(--ink); margin-right: 4px; }
.pgrp { margin-top: 12px; }
.pgrp .ttl { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.xo.pr { padding: 5px 0 0; }
.xo.pr .xn { font-size: 14px; }
.xo.pr .xn small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.kb i.pf { background: var(--muted); }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .seg2.pm { grid-template-columns: repeat(6, minmax(0, 1fr)); } .seg2.pm > * { border-bottom: 0; } .seg2.pm > *:nth-child(3n) { border-right: 1px solid var(--line); } .seg2.pm > *:last-child { border-right: 0; } }
/* State page tabs: Senate, Governor, House, Other and People can be wider than a phone; the strip scrolls sideways. */
.seg2.sttabs { overflow-x: auto; scrollbar-width: none; }
.seg2.sttabs::-webkit-scrollbar { display: none; }
.seg2.sttabs > * { flex: 1 0 auto; padding-left: 9px; padding-right: 9px; letter-spacing: .06em; }

/* ---------- county page (#co/GA/13121) ----------
   A ledger read straight down: label, the county's figure, a strip with one
   tick per county in the state (the state a thin line, this county the bar),
   and a rank. Small condensed type, hairlines, section heads that pin under
   the header. The accent (--gold) marks the county; party colors only on
   margins. */
:root { --hair: #1a1e23; --tick: #3d444c; }
:root[data-theme="light"] { --hair: #e4e7eb; --tick: #b9bfc6; }
.cpage { padding: 0 18px 28px; --cond: "Roboto Condensed", "Arial Narrow", var(--body); --s1: color-mix(in srgb, var(--gold) 26%, var(--bg)); --s2: color-mix(in srgb, var(--gold) 48%, var(--bg)); --s3: color-mix(in srgb, var(--gold) 72%, var(--bg)); --s4: var(--gold); }
@media (max-width: 400px) { .cpage { padding-left: 12px; padding-right: 12px; } }
.cpage .s1 { background: var(--s1); } .cpage .s2 { background: var(--s2); } .cpage .s3 { background: var(--s3); } .cpage .s4 { background: var(--s4); }
.cs-hero { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 14px; align-items: start; padding: 16px 0 12px; }
.cs-eye { font: 700 10px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cpage h1 { font: 600 44px/.95 var(--disp); text-transform: uppercase; letter-spacing: .005em; margin: 8px 0; text-wrap: balance; }
.cpage h1.m { font-size: 36px; } .cpage h1.s { font-size: 30px; }
.cs-lede { font: 400 13px/1.35 var(--cond); color: var(--muted); }
.cs-lede b { color: var(--ink); font-weight: 700; }
.cs-lede .nw { white-space: nowrap; }
.cs-loc { width: 100px; height: auto; display: block; }
.cs-loc path { fill: var(--tick); stroke: var(--bg); stroke-width: 3; stroke-linejoin: round; }
.cs-loc path.on { fill: var(--gold); }
.cs-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-top > div { padding: 9px 0 10px 10px; border-left: 1px solid var(--hair); min-width: 0; }
.cs-top > div:first-child { border-left: 0; padding-left: 0; }
.cs-top > div > span { display: block; font: 700 9.5px/1.1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-top b { display: block; font: 500 19px/1 var(--disp); margin-top: 6px; white-space: nowrap; }
.cs-how { display: flex; align-items: center; gap: 8px; padding: 10px 0 2px; font: 400 11px/1.3 var(--cond); color: var(--dim); }
.cs-how .cs-strip { width: 60px; flex: none; }
.cs-sec { position: sticky; top: calc(53px + env(safe-area-inset-top)); z-index: 3; background: var(--bg); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 0 8px; margin: 0; border-bottom: 1px solid var(--line); }
.cs-sec span:first-child { font: 600 14px/1 var(--disp); text-transform: uppercase; letter-spacing: .1em; }
.cs-sec span:last-child { font: 500 10.5px/1 var(--cond); color: var(--dim); text-align: right; }
.cs-cols, .cs-row { display: grid; grid-template-columns: minmax(0, 1fr) 60px 100px 32px; column-gap: 10px; align-items: center; }
.cs-cols { padding: 7px 0 3px; font: 700 9px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.cs-cols span:nth-child(2), .cs-cols span:nth-child(4) { text-align: right; }
.cs-cols .ax { display: flex; justify-content: space-between; } .cs-cols .ax b { font-weight: 700; }
.cs-row { padding: 6px 0; border-top: 1px solid var(--hair); min-height: 38px; }
.cs-cols + .cs-row { border-top: 0; }
.cs-row .l { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cs-row .t { font: 500 13px/1.2 var(--cond); }
.cs-row .s { font: 400 11px/1.2 var(--cond); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-row .v { font: 500 16px/1 var(--disp); text-align: right; white-space: nowrap; }
.cs-row .rk { font: 500 11px/1 var(--cond); color: var(--muted); text-align: right; white-space: nowrap; }
.cs-strip { position: relative; height: 18px; }
.cs-strip svg { position: absolute; left: 0; top: 4px; width: 100%; height: 10px; overflow: visible; }
.cs-strip svg path { stroke: var(--tick); stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.cs-strip svg line { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.cs-strip .sn { position: absolute; top: 1px; width: 1px; height: 16px; margin-left: -.5px; background: var(--muted); }
.cs-strip .cmk { position: absolute; top: 2px; width: 3px; height: 14px; margin-left: -1.5px; background: var(--gold); box-shadow: 0 0 0 2px var(--bg); }
.cs-strip .cmk.dem { background: var(--dem-ink); } .cs-strip .cmk.rep { background: var(--rep-ink); }
.cs-race { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0 0; font: 500 13px/1.2 var(--cond); }
.cs-race .go { color: var(--gold); font: 700 10px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.cs-night { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px 0 4px; }
.cs-night div { padding-left: 10px; border-left: 1px solid var(--hair); display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-width: 0; }
.cs-night div:first-child { padding-left: 0; border-left: 0; }
.cs-night span { font: 700 9px/1.15 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.cs-night b { font: 500 18px/1 var(--disp); white-space: nowrap; }
.cs-night b.off { color: var(--dim); }
.cs-note { font: 400 11px/1.4 var(--cond); color: var(--dim); padding: 4px 0 2px; }
.cs-part { padding: 9px 0 8px; border-top: 1px solid var(--hair); }
.cs-part .t { font: 500 13px/1.2 var(--cond); margin-bottom: 7px; display: flex; justify-content: space-between; gap: 10px; }
.cs-part .t small { font: 400 11px var(--cond); color: var(--dim); }
.cs-bar { display: flex; gap: 2px; height: 8px; }
.cs-bar i { display: block; min-width: 2px; flex-basis: 0; }
.cs-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 7px; }
.cs-keys.k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-keys div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-keys span { display: flex; align-items: center; gap: 5px; font: 400 11px/1 var(--cond); color: var(--muted); white-space: nowrap; }
.cs-keys span i { width: 8px; height: 8px; flex: none; }
.cs-keys b { font: 500 14px/1 var(--disp); }
.cs-dbh { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0 4px; border-top: 1px solid var(--hair); }
.cs-dbh .t { font: 500 13px/1.2 var(--cond); }
.cs-dbh .lg { display: flex; gap: 10px; font: 400 11px/1.2 var(--cond); color: var(--muted); white-space: nowrap; }
.cs-dbh .lg i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: -.5px; }
.cpage .dot { background: var(--gold); }
.cpage .ring { border: 1.5px solid var(--muted); background: var(--bg); }
.cs-db, .cs-dbx { display: grid; grid-template-columns: 76px minmax(0, 1fr) 70px; column-gap: 10px; align-items: center; }
.cs-db { padding: 5px 0; }
.cs-db .t { font: 400 12px/1.2 var(--cond); color: var(--muted); }
.cs-db .v { font: 400 11px/1 var(--cond); text-align: right; color: var(--dim); white-space: nowrap; }
.cs-db .v b { font: 500 14px/1 var(--disp); color: var(--ink); margin-right: 5px; }
.cs-db .trk { position: relative; height: 14px; background: linear-gradient(var(--hair), var(--hair)) 0 50% / 100% 1px no-repeat; }
.cs-db .g { position: absolute; top: 3px; width: 1px; height: 8px; background: var(--hair); }
.cs-db .cn { position: absolute; top: 6px; height: 2px; background: var(--gold-soft); }
.cs-db .dot, .cs-db .ring { position: absolute; top: 3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; }
.cs-dbx { padding: 0 0 6px; }
.cs-dbx div { grid-column: 2; display: flex; justify-content: space-between; font: 700 9px/1 var(--body); color: var(--dim); }
.cs-next { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 22px; }
.cs-next a { padding: 14px 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cs-next > :last-child { text-align: right; align-items: flex-end; border-left: 1px solid var(--hair); }
.cs-next span { font: 700 9.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.cs-next b { font: 600 18px/1 var(--disp); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cs-src { padding: 14px 0 0; font: 400 10.5px/1.5 var(--cond); color: var(--dim); display: grid; gap: 6px; }
.cs-src a { color: var(--muted); text-decoration: underline; }
.cslink { display: block; margin-top: 6px; color: var(--gold); font: 700 11px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.ctab th a.cn { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; }

/* ---------- transit trial (Oct 30) ----------
   From a transit app Evan liked: a mono readout type (Share Tech Mono,
   bundled in vendor/fonts) for labels and figures; maps tilted back with an
   edge under them; counties as cards; the raw vote count on a black board.
   Oswald titles, Roboto text and the scheme colors stay as they were. */
@font-face { font-family: "Share Tech Mono"; src: url(vendor/fonts/ShareTechMono-Regular.ttf) format("truetype"); font-display: swap; }
:root { --mono: "Share Tech Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; --slab: #1f242b; --out: #838a93; }
:root[data-theme="light"] { --slab: #c2beb5; --out: #aeaaa3; }

/* Readout type: small capitals labels and the figures that are read, not sentences. */
.sect, .lbl, .key, .ro2, .pill, .room, .rep-line, .card .kick, .badge, .bottom a, .more {
  font-family: var(--mono); font-weight: 400; letter-spacing: .08em;
}
.sect, .lbl, .key { font-size: 12px; }
.pill { letter-spacing: .03em; }
.lbl b, .ro2 b, .room b, .rep-line b { font-weight: 400; }
.ro b, .ctab td, .ctab tfoot th, .cdet b { font-family: var(--mono); font-weight: 400; letter-spacing: .02em; }
.ro b { font-size: 14px; }
.dial .dv b { font: 26px/1.1 var(--mono); letter-spacing: .02em; }
.dial .dl { font-family: var(--mono); font-weight: 400; }

/* Maps lie tilted back, not quite flat. */
.map .slab path, .cmap .slab path { fill: var(--slab); stroke: var(--slab); stroke-width: 1; pointer-events: none; cursor: default; }
.mapwrap.tilt { padding: 0 0 14px; overflow: hidden; perspective: 1000px; perspective-origin: 50% 0; margin-bottom: -8px; }
/* 19deg, was 30 (Eddie, Oct 31: Texas looked very long and the Northeast tiny);
   the margin takes up the space the tilt leaves above (checked at 390 and 1280px). */
.mapwrap.tilt .map { transform: rotateX(19deg) scale(1.03); transform-origin: 50% 100%; margin: -1.5% 0 0; }
/* Tilting leaves empty space above the map (about a fifth of its height,
   which is its width times --ar, its height over width, up to 52vh). */
.cmap { transform: perspective(1100px) rotateX(26deg); transform-origin: 50% 100%; margin-top: calc(10px - 0.2 * min(52vh, var(--ar, .8) * 100%)); }
/* The rest of the Map tab is a sheet pulled up over the map's near edge. */
.sheet { position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -12px 26px rgba(0, 0, 0, .5); padding-top: 12px; }
.sheet::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; background: var(--line); }
:root[data-theme="light"] .sheet { box-shadow: 0 -10px 22px rgba(20, 24, 28, .12); }

/* Vote still out by county: a transit app's entrances list. Rounded, unlike
   the rest of the page, on purpose (Evan, Oct 30). */
.eta { --amber: #e39a2d; margin: 22px 18px 0; }
:root:not([data-theme="light"]) .eta { --amber: #f0ac45; }
.etah { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.etah h3 { margin: 0; font: 700 22px/1.1 var(--body); letter-spacing: -.01em; }
.csortsel { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font: 13px var(--body); min-width: 0; }
.etal { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.etr { display: grid; grid-template-columns: 46px 1fr; gap: 14px; width: 100%; padding: 14px 16px 13px; text-align: left; min-width: 0; }
.etr + .etr { border-top: 1px solid var(--line); }
.etr.sel { background: var(--gold-soft); }
.ctile { display: block; width: 46px; height: 46px; margin-top: 2px; }
.ctile path { stroke: var(--panel); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ctile .sl { fill: var(--slab); stroke: var(--slab); }
.etb { display: block; min-width: 0; }
.ett { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ett b { font: 700 18px/1.2 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ett em { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font: 13px var(--mono); font-style: normal; }
.pie { width: 13px; height: 13px; } .pie .pr { fill: none; stroke: currentColor; stroke-width: 1.6; } .pie .pw { fill: currentColor; }
.ete { display: block; margin-top: 2px; font: 13px var(--mono); color: var(--muted); }
.etbar { display: flex; gap: 4px; height: 7px; margin: 10px 0 8px; }
.etbar i { display: block; min-width: 0; border-radius: 999px; background: var(--c); }
.etbar i.out { background: var(--amber); } .etbar i.rest { background: var(--panel-2); }
.etl { display: block; font: 13px/1.55 var(--mono); color: var(--muted); }
.etl b { font-weight: 400; }
.etl .dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--c); vertical-align: 0; }
.etl .dot.out { background: var(--amber); }
.etf { display: flex; justify-content: space-between; width: 100%; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--gold); font-weight: 700; font-size: 15px; }
.ettot { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font: 12px var(--mono); color: var(--muted); }
.etx { color: var(--gold); font: 700 12px var(--body); }
.eta .ctwrap { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 4px 14px; }
.eta > .etx { display: block; margin-top: 8px; }

/* The vote count as a board: a lit sign at night, ink on paper by day. */
.lbd { --led: #f1ece2; --dim-led: #8a8478; --b-bg: #060606; --b-line: #2a2a2a; --glow: rgba(241, 236, 226, .25); margin: 4px 18px 0; padding: 8px 12px 7px; background: var(--b-bg); border: 1px solid var(--b-line); color: var(--led); font: 16px/1.45 var(--mono); letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 0 6px var(--glow); }
.lbd .dem { --lc: #6fa8ff; } .lbd .rep { --lc: #ff7a6e; } .lbd .ind { --lc: #5fe0a0; } .lbd .even { --lc: var(--led); }
:root[data-theme="light"] .lbd { --led: var(--ink); --dim-led: var(--muted); --b-bg: var(--panel); --b-line: var(--line); --glow: transparent; }
:root[data-theme="light"] .lbd .dem { --lc: var(--dem-ink); } :root[data-theme="light"] .lbd .rep { --lc: var(--rep-ink); } :root[data-theme="light"] .lbd .ind { --lc: var(--ind-ink); }
:root[data-theme="light"] .lbd .lrow > span { text-shadow: none; }
.lrow { display: grid; grid-template-columns: minmax(0, 1fr) 24px 116px 70px; gap: 6px; padding: 2px 0; align-items: center; }
.lrow > span { white-space: nowrap; overflow: hidden; }
.lrow > span:nth-child(n+2) { text-align: right; }
.lrow.dem > span:nth-child(-n+2), .lrow.rep > span:nth-child(-n+2), .lrow.ind > span:nth-child(-n+2) { color: var(--lc); text-shadow: 0 0 6px color-mix(in srgb, var(--lc) 40%, transparent); }
.lrow.h { font-size: 10px; letter-spacing: .14em; color: var(--dim-led); border-bottom: 1px solid var(--b-line); padding-bottom: 5px; margin-bottom: 3px; text-shadow: none; }
.lrow.f { grid-template-columns: auto auto; justify-content: space-between; margin-top: 5px; padding-top: 6px; border-top: 1px solid var(--b-line); font-size: 12px; letter-spacing: .1em; color: var(--dim-led); text-shadow: none; }
.lrow.f b { font-weight: 400; color: var(--lc, var(--led)); }
.bar.lbar { margin-top: 0; border-color: #2a2a2a; height: 6px; }
:root[data-theme="light"] .bar.lbar { border-color: var(--line); }

/* The needle: chance to win, three needles ending in lettered beads. */
.gauge { --tossup: #343941; --gtag: var(--bg); margin: 4px auto 0; max-width: 300px; }
.card .gauge { --gtag: var(--panel); }
.gauge.lg { max-width: 430px; }
:root[data-theme="light"] .gauge { --tossup: #dad7d0; }
.gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.gauge .gbd path { fill: none; stroke-width: 18; }
.gauge .gbr { stroke: var(--gtag); stroke-width: 1.8; }
.gauge .gtk { stroke: var(--dim); stroke-width: 1; } .gauge .gtk.mj { stroke: var(--muted); stroke-width: 1.6; }
.gauge .gnum { font: 9px var(--mono); fill: var(--muted); text-anchor: middle; }
.gauge .gnm { font: 600 12px var(--disp); fill: var(--ci); letter-spacing: .05em; text-anchor: middle; }
.gauge .gnd { filter: url(#gsh); }
.gauge .gnd.f { fill: var(--ink); }
.gauge .gnd.k { fill: var(--ink); fill-opacity: .72; }
.gauge .gnd.p { fill: var(--gtag); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.gauge .gnd.st, .gauge .gb.st { opacity: .35; }
.gauge .gh { fill: var(--ink); } .gauge .gh2 { fill: var(--gtag); }
.gauge .gb circle { fill: var(--gtag); stroke: var(--ink); stroke-width: 1.3; }
.gauge .gb.f circle { fill: var(--ink); }
.gauge .gb text { font: 9.5px var(--mono); fill: var(--ink); text-anchor: middle; }
.gauge .gb.f text { fill: var(--gtag); }
.gauge .gv { text-align: center; margin-top: 2px; }
.gauge .gv b { display: block; font: 26px/1.15 var(--mono); letter-spacing: .01em; color: var(--ink); } .gauge .gv b.tc { color: var(--ci); }
.gauge.lg .gv b { font-size: 32px; }
.gauge .gv small { font-size: 12px; color: var(--muted); }
.gcs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.gc { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 12px; color: var(--muted); }
.card .gc { background: var(--bg); }
.gc i { display: inline-grid; place-items: center; width: 19px; height: 19px; border: 1.3px solid var(--ink); border-radius: 50%; font: 10px var(--mono); font-style: normal; color: var(--ink); box-sizing: border-box; }
.gc.f i { background: var(--ink); color: var(--bg); }
.gc b { font: 13px var(--mono); color: var(--ink); }
.gc.st { opacity: .55; }
.gc .snap { font-size: 11px; color: var(--dim); }
.glk { margin-top: 8px; text-align: center; font-size: 12px; } .glk a { color: var(--gold); font-weight: 700; }
.gnb .ro { justify-content: center; margin-top: 12px; } .gnb .ro2 { justify-content: center; } .gnb .ro small { color: var(--dim); font-size: 12px; }

/* Race rows: the chance bar split at the average (its number at the end),
   a line at each estimate, tagged above in small chips. */
.kb2.avg { grid-template-columns: 44px 1fr auto; gap: 10px; }
.kb2.avg .kb { height: 10px; }
.kb.tl { margin-top: 17px; }
.kb .tk { position: absolute; top: -4px; bottom: -4px; height: auto; width: 2px; margin-left: -1px; background: var(--ink); } /* black by day, white at night */
.kb .tg { position: absolute; bottom: calc(100% + 5px); transform: translateX(-50%); padding: 1px 4px; background: var(--ink); color: var(--bg); font: 9.5px/1.2 var(--mono); font-style: normal; white-space: nowrap; }
.kb .tg.l { transform: translateX(calc(-100% + 3px)); } .kb .tg.r { transform: translateX(-3px); }
.kav { font: 17px/1 var(--mono); letter-spacing: .01em; }
.kr .kl b.n { font: 13px var(--mono); }

/* The count's votes and shares on split-flap tiles (dark by day and night,
   like a real board); a digit that changed flips in. */
.flp { display: inline-flex; justify-content: flex-end; align-items: center; gap: 2px; perspective: 300px; vertical-align: middle; }
.flp .ft { position: relative; display: inline-grid; place-items: center; width: 13px; height: 22px; border-radius: 2px; background: linear-gradient(#2c2c30 0 50%, #222226 50% 100%); color: #f4f1ea; font: 600 16px/1 var(--disp); font-style: normal; letter-spacing: 0; text-shadow: none; box-shadow: 0 1px 1px rgba(0, 0, 0, .45); }
.flp .ft::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .65); }
.flp .fp { width: 4px; text-align: center; font: 600 14px/1 var(--disp); font-style: normal; color: var(--led); text-shadow: none; }
.flp .ft.fl { animation: flapin .55s cubic-bezier(.3, .7, .4, 1); transform-origin: 50% 50%; }
@keyframes flapin { 0% { transform: rotateX(-90deg); } 60% { transform: rotateX(14deg); } 100% { transform: rotateX(0); } }
.flp .ft.pc { width: 15px; font-size: 13px; }

/* ---------- race board on the Senate and House pages (Oct 31, like Cook's chart) ---------- */
.rbby { margin: 4px 18px 8px; }
.rbsum { display: flex; justify-content: space-between; gap: 8px; padding: 0 18px 8px; font-size: 13px; color: var(--muted); }
.rbsum .tc { color: var(--ci); }
.rbsum b { font-size: 15px; }
.rb { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 0 12px; }
.rbc { min-width: 0; background: var(--panel); border: 1px solid var(--line); }
.rbh { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; padding: 7px 8px; color: #fff; font: 600 13px/1.1 var(--disp); text-transform: uppercase; letter-spacing: .04em; }
.rbh b { font-size: 16px; }
.rbc.dem .rbh { background: var(--dem); } .rbc.rep .rbh { background: var(--rep); } .rbc.tu .rbh { background: #7b7f86; }
.rbc:nth-child(2) .rbh, .rbc:nth-child(6) .rbh { opacity: .82; }
.rbc:nth-child(3) .rbh, .rbc:nth-child(5) .rbh { opacity: .64; }
.rbl { display: flex; flex-direction: column; gap: 4px; padding: 6px; }
.rbt { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 6px; align-items: baseline; padding: 5px 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; font-size: 12.5px; }
.rbt:hover { border-color: var(--ink); }
.rbt b { font-weight: 700; white-space: nowrap; }
.rbt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbt span.tc { color: var(--ci); }
.rbt i { font-style: normal; color: var(--muted); font-size: 11.5px; }
.rbt.play { box-shadow: inset 0 0 0 1.5px var(--gold); }
.rbt.won { background: var(--c); color: #fff; border-color: var(--c); }
.rbt.won span.tc, .rbt.won i { color: #fff; }
.rbm { border: 1px dashed var(--line); background: none; color: var(--muted); font: 700 11px var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 6px; cursor: pointer; }
/* Narrower screens: columns stack into rows, tags flow side by side. */
@media (max-width: 900px) {
  .rb { grid-template-columns: 1fr; }
  .rbl { flex-direction: row; flex-wrap: wrap; }
  .rbt { grid-template-columns: auto auto auto; }
  .rbc:nth-child(n) .rbh { opacity: 1; }
  .rbc.dem:nth-child(2) .rbh, .rbc.rep:nth-child(6) .rbh { background: color-mix(in srgb, var(--c, #888) 82%, #fff); }
}
.sect.pnow span:first-child { color: var(--gold); }
.tag.soon { border: 1px solid var(--gold); color: var(--gold); }
.chips.fkinds { padding: 10px 18px 0; }

/* Live feed: newer lines waiting while you read further down; older pages */
.newlines { position: sticky; top: 64px; z-index: 4; display: block; margin: 8px auto; padding: 8px 14px; border: 0; background: var(--gold-fill, var(--gold)); color: var(--on-gold, #1b1404); font: 700 13px var(--body); letter-spacing: .04em; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.older { display: block; width: calc(100% - 36px); margin: 12px 18px; padding: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--gold); font: 700 13px var(--body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.older[disabled] { color: var(--muted); }
/* Live feed: control of the Senate or House moving (Eddie, Oct 31) */
.ev.mv.ctlmv { border-left: 3px solid #0f8b8d; background: color-mix(in srgb, #0f8b8d 12%, var(--bg)); }
.ev.mv.ctlmv .where { color: #0f8b8d; }
.ev.mv .ctltag { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #0f8b8d; padding: 1px 5px; }
:root[data-theme="dark"] .ev.mv.ctlmv .where { color: #3cc5c7; }

/* Flips and holds (Oct 31) */
.fliptag { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--c); padding: 1px 6px; white-space: nowrap; }
.holdtag { color: var(--muted); }
.st .held { margin-top: 4px; font-size: 13px; color: var(--muted); }
.st .held .tc { color: var(--ci); font-weight: 700; }
.rbt.flip { position: relative; }
.rbt.flip::after { content: "PICKUP"; position: absolute; top: -7px; right: 4px; font: 700 8.5px/1 var(--body); letter-spacing: .06em; background: var(--ink); color: var(--bg); padding: 2px 4px; }

/* Map key swatches drawn with the map's own colors, in both themes (Oct 31:
   the key had night-mode colors in day mode, and no "No races to call"). */
.map path.done { fill: #1d2a24; }
.key i.k-open { background: var(--map-open); outline: 2px solid var(--map-line); outline-offset: -2px; }
.key i.k-up { background: #262b32; }
.key i.k-done { background: #1d2a24; }
.key i.k-none { background: #15181c; outline: 1px solid var(--line); outline-offset: -1px; }
.key i.k-mine { background: transparent; outline: 2px dashed #fff; outline-offset: -2px; }
:root[data-theme="light"] .key i.k-up { background: #d3d0c8; }
:root[data-theme="light"] .key i.k-done { background: #cfe3d6; }
:root[data-theme="light"] .key i.k-none { background: #e4e2dc; }
:root[data-theme="light"] .key i.k-mine { outline-color: #16181b; }
