/* 2026 Election Forecast. Colors and dark mode follow members/michigan-primary-2026.html. */

/* Copied from members/michigan-primary-2026.html (lines 12–21). */
:root{color-scheme:light;--page:#f9f9f7;--surface:#fcfcfb;--ink:#0b0b0b;--sec:#52514e;
  --muted:#898781;--grid:#e1e0d9;--axisline:#c3c2b7;--border:rgba(11,11,11,.10);
  --s1:#2a78d6;--red:#e34948;--purple:#8724d1;--gold:#c07a12}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){color-scheme:dark;
  --page:#0d0d0d;--surface:#1a1a19;--ink:#fff;--sec:#c3c2b7;--muted:#898781;
  --grid:#2c2c2a;--axisline:#383835;--border:rgba(255,255,255,.10);
  --s1:#3987e5;--red:#e66767;--purple:#a862e0;--gold:#d9a13d}}
:root[data-theme="dark"]{color-scheme:dark;--page:#0d0d0d;--surface:#1a1a19;--ink:#fff;
  --sec:#c3c2b7;--muted:#898781;--grid:#2c2c2a;--axisline:#383835;
  --border:rgba(255,255,255,.10);--s1:#3987e5;--red:#e66767;--purple:#a862e0;--gold:#d9a13d}

/* Extra tokens for this page.
   --mid: the neutral middle of the blue-to-red scale (toss-up).
   --ai:  the AI Anchor Desk line; checked for color-blind safety beside --s1 in both modes. */
:root{--mid:#dcdbd4;--ai:#c07a12;--prompter:#121211;--prompter-ink:#f4f3ee;--prompter-bar:#2a2a27}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--mid:#3d3d3a;--ai:#c98500;
  --prompter:#050505;--prompter-bar:#262624}}
:root[data-theme="dark"]{--mid:#3d3d3a;--ai:#c98500;--prompter:#050505;--prompter-bar:#262624}

*{box-sizing:border-box;margin:0}
html{-webkit-text-size-adjust:100%}
body{background:var(--page);color:var(--ink);
  font:14px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;padding:28px 16px 48px;overflow-x:hidden}
a{color:var(--s1)}
a:focus-visible,button:focus-visible,input:focus-visible,svg:focus-visible,[tabindex]:focus-visible{
  outline:2px solid var(--s1);outline-offset:2px}
.wrap{max-width:1040px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
#app{display:flex;flex-direction:column;gap:14px;min-width:0}

/* header */
header.page{padding:4px 4px 2px}
.crumb{font-size:12.5px;margin-bottom:6px}
.crumb a{color:var(--sec);text-decoration:none}
.crumb a:hover{text-decoration:underline}
h1{font-size:25px;font-weight:650;letter-spacing:-.01em}
.stamp{color:var(--sec);font-size:12.5px;margin-top:6px;max-width:80ch}
.stale{color:var(--sec);font-size:12.5px;margin-top:6px;border-left:3px solid var(--gold);padding-left:10px}
.modes{display:inline-grid;grid-template-columns:repeat(3,auto);gap:2px;margin-top:14px;
  background:var(--grid);border-radius:9px;padding:2px}
.mode{font:inherit;font-size:13px;border:0;border-radius:7px;padding:7px 13px;background:transparent;
  color:var(--sec);cursor:pointer;line-height:1.25}
.mode:hover:not(:disabled){color:var(--ink)}
.mode[aria-pressed="true"]{background:var(--surface);color:var(--ink);font-weight:600;
  box-shadow:0 1px 2px rgba(0,0,0,.12)}
.mode:disabled{color:var(--muted);cursor:not-allowed}
.modenote{color:var(--sec);font-size:12.5px;margin-top:7px}

/* cards and text */
.card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:18px 20px 16px;min-width:0}
.card h2{font-size:16px;font-weight:650}
.card h3{font-size:13.5px;font-weight:650;margin-top:16px}
.mini>h3:first-child{margin-top:0}
.sub{color:var(--sec);font-size:12.5px;margin-top:4px;max-width:88ch}
.note{color:var(--sec);font-size:12px;line-height:1.55;margin-top:8px;max-width:90ch}
.ainote{color:var(--sec);font-size:12.5px;margin-top:4px}
.soon,.empty{color:var(--sec);font-size:13px;margin-top:10px}
.loading{color:var(--sec);font-size:13px;padding:8px 4px}
.muted{color:var(--sec)}
/* Text for screen readers only. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0}
.credit{color:var(--sec);font-size:12px;margin-top:10px;font-style:italic}
.two{display:grid;grid-template-columns:1fr 1fr;gap:18px 28px;margin-top:12px}
.two>*{min-width:0}
.mini h3{margin-top:0}
.chartbox{position:relative;margin-top:6px;min-width:0}
@media (max-width:720px){.two{grid-template-columns:1fr}}

/* key figures */
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:12px}
.kpi{min-width:0}
.kpi .klabel{color:var(--sec);font-size:12.5px}
.kpair{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-top:6px}
.kpair .right{text-align:right}
.kval{font-size:30px;font-weight:650;letter-spacing:-.01em;line-height:1.1}
.kwho{color:var(--sec);font-size:12.5px;display:inline-flex;align-items:center;gap:6px}
.kpair .right .kwho{flex-direction:row-reverse}
.ksub{color:var(--sec);font-size:12px;line-height:1.45;margin-top:8px}
@media (max-width:760px){.kpis{grid-template-columns:1fr;gap:20px}}

/* "Ask the AIs": our model and each AI's Senate chance, side by side */
.board h2{font-size:19px}
.btiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-top:14px}
.btile{border:1px solid var(--border);border-top:3px solid var(--ai);border-radius:8px;padding:12px 14px 12px;min-width:0}
.btile.ours{border-top-color:var(--s1)}
.btile .bname{font-weight:650;font-size:15px}
.btile .blabel{color:var(--sec);font-size:12px;margin-top:1px}
.btile .bnum{font-size:34px;font-weight:650;letter-spacing:-.01em;line-height:1.05;margin-top:10px}
.btile .bwho{color:var(--sec);font-size:12px}
.btile .bhouse{color:var(--sec);font-size:12.5px;margin-top:8px}
.btile .soon{margin-top:14px}
.boardtake{font-size:15px;margin-top:14px}
.boardswitch{margin-top:0}
@media (max-width:560px){.btiles{grid-template-columns:1fr 1fr}.btile .bnum{font-size:28px}}

/* the split bar of chances */
.pbar{display:flex;gap:2px;height:10px;margin-top:8px}
.pseg{flex-basis:0;min-width:2px}
.pseg:first-child{border-radius:4px 0 0 4px}
.pseg:last-child{border-radius:0 4px 4px 0}
.pseg:only-child{border-radius:4px}
.pseg.d{background:var(--s1)}
.pseg.r{background:var(--red)}
.pseg.i{background:var(--mid)}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none}
.dot.s-d{background:var(--s1)}
.dot.s-r{background:var(--red)}

/* charts */
svg.chart{display:block;max-width:100%;height:auto;overflow:visible}
svg text{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.axis{fill:var(--sec);font-size:11px;font-variant-numeric:tabular-nums}
.annot{fill:var(--sec);font-size:11px}
.val{fill:var(--ink);font-size:11.5px;font-weight:600}
.gridln{stroke:var(--grid);stroke-width:1}
.axisln{stroke:var(--axisline);stroke-width:1}
.thresh{stroke:var(--sec);stroke-width:1}
.cross{stroke:var(--sec);stroke-width:1}
.bar{transition:opacity .12s}
.bar.dim{opacity:.45}
.hit{cursor:crosshair}
.legend{display:flex;gap:6px 16px;margin:8px 0 2px;flex-wrap:wrap}
.lg{display:inline-flex;align-items:center;gap:7px;color:var(--sec);font-size:12px}
.keyrect{width:11px;height:11px;border-radius:3px;flex:none}
.keyline{width:14px;height:2px;border-radius:1px;flex:none}

/* readout */
.tip{position:fixed;z-index:20;pointer-events:none;opacity:0;transform:translateY(2px);
  transition:opacity .1s,transform .1s;background:var(--surface);color:var(--ink);
  border:1px solid var(--border);border-radius:8px;padding:8px 10px;font-size:12px;
  box-shadow:0 6px 20px rgba(0,0,0,.16);max-width:260px}
.tip.on{opacity:1;transform:none}
.tip-title{color:var(--sec);font-size:11.5px;margin-bottom:3px}
.tip-row{display:flex;align-items:center;gap:7px;line-height:1.5}
.tip-row strong{font-weight:650;font-variant-numeric:tabular-nums}
.tip-label{color:var(--sec)}
.tip-key{flex:none}
.tip-key.line{width:12px;height:2px;border-radius:1px}
.tip-key.rect{width:9px;height:9px;border-radius:2px}
.tip-note{color:var(--sec);font-size:11.5px;margin-top:3px}

/* horizontal bars */
.brows{display:flex;flex-direction:column;gap:7px;margin-top:10px}
.brow{display:grid;grid-template-columns:minmax(0,min(15rem,40%)) minmax(0,1fr) 4rem;gap:10px;align-items:center}
.blabel{font-size:12.5px;color:var(--ink);overflow-wrap:anywhere;line-height:1.3}
a.blabel{color:var(--ink);text-decoration:none}
a.blabel:hover{text-decoration:underline}
.btrack{min-width:0}
.bfill{display:flex;gap:2px;height:14px;min-width:2px}
.bseg{flex-basis:0;min-width:2px;transition:opacity .12s}
.bseg:last-child{border-radius:0 4px 4px 0}
.bseg:hover{opacity:.8}
.bval{font-size:12px;color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums;text-align:right}
@media (max-width:560px){
  .brow{grid-template-columns:minmax(0,1fr) auto;row-gap:3px}
  .brow .blabel{grid-column:1/-1}
}

/* diverging rows (the baseline) */
.drows{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.drow{display:grid;grid-template-columns:minmax(0,14rem) minmax(0,1fr) 5.5rem;gap:10px;align-items:center}
.dhead{color:var(--sec);font-size:11.5px}
.dends{display:flex;justify-content:space-between;gap:8px}
.dlabel{font-size:12.5px;line-height:1.3}
.dtrack{position:relative;height:14px}
.dmid{position:absolute;left:50%;top:-3px;bottom:-3px;width:1px;background:var(--axisline)}
.dbar{position:absolute;top:0;height:14px}
.dbar.left{border-radius:4px 0 0 4px}
.dbar.right{border-radius:0 4px 4px 0}
.dval{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;text-align:right}
@media (max-width:560px){
  .drow{grid-template-columns:minmax(0,1fr) 5rem;row-gap:3px}
  .drow .dlabel{grid-column:1/-1}
  .dhead .dlabel{display:none}
}

/* tabs, search, checkbox */
.controls{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin-top:12px}
.tabs{display:inline-flex;gap:2px;background:var(--grid);border-radius:8px;padding:2px;margin-top:10px}
.controls .tabs{margin-top:0}
.tab{font:inherit;font-size:13px;border:0;border-radius:6px;padding:5px 12px;background:transparent;
  color:var(--sec);cursor:pointer}
.tab:hover{color:var(--ink)}
.tab[aria-pressed="true"]{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.12)}
.search{font:inherit;font-size:13px;padding:6px 10px;border:1px solid var(--border);border-radius:8px;
  background:var(--page);color:var(--ink);min-width:0;flex:1 1 200px;max-width:320px}
.check{display:inline-flex;align-items:center;gap:6px;color:var(--sec);font-size:13px;cursor:pointer}
.check[hidden]{display:none}
.more{font:inherit;font-size:12.5px;margin-top:10px;padding:6px 12px;border:1px solid var(--border);
  border-radius:8px;background:transparent;color:var(--ink);cursor:pointer}
.more:hover{background:var(--page)}

/* tables */
.tblwrap{overflow-x:auto;margin-top:10px}
table{border-collapse:collapse;width:100%;font-size:13px}
th,td{text-align:left;padding:7px 10px;border-bottom:1px solid var(--border);vertical-align:top}
th{color:var(--sec);font-weight:600;font-size:12px}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
td{overflow-wrap:anywhere}
td.num{overflow-wrap:normal}
.nowrap{white-space:nowrap}
.cellsub{display:block;color:var(--sec);font-size:11.5px;font-weight:400}
.partisan{color:var(--sec)}
th button.sort{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:inherit}
th button.sort:hover{color:var(--ink)}
table.races tbody tr{cursor:pointer}
table.races tbody tr:hover{background:color-mix(in srgb,var(--grid) 45%,transparent)}
table.races td{padding:8px 10px}
.racecell a{font-weight:600;text-decoration:none;color:var(--ink)}
.racecell a:hover{text-decoration:underline}
.rating{display:flex;align-items:center;flex-wrap:wrap;gap:6px;color:var(--sec);font-size:12px;margin-top:2px}
.chip{font-size:11px;font-weight:600;line-height:1.5;padding:0 7px;border:1px solid var(--axisline);
  border-radius:999px;color:var(--sec);white-space:nowrap}
.cand{display:flex;align-items:center;gap:6px;line-height:1.4}
table.races .pbar{height:6px;margin-top:5px;min-width:64px;margin-left:auto;max-width:110px}
/* the expected margin: bold, with a bar from a center line (left side to the left) */
.mval{font-weight:650;font-size:14.5px;white-space:nowrap}
.mbar{position:relative;height:6px;margin:5px 0 0 auto;min-width:64px;max-width:110px;background:var(--grid);border-radius:3px}
.mbar::after{content:"";position:absolute;left:50%;top:-2px;width:1px;height:10px;background:var(--muted)}
.mseg{position:absolute;top:0;height:6px;border-radius:3px}
.mseg.d{background:var(--s1)}
.mseg.r{background:var(--red)}
.mmob{margin-top:8px}
/* where the Senate money is heading */
.heatbox{margin-top:12px;min-height:200px}
.heat-hot{fill:var(--gold);opacity:.08}
.heat-cold{fill:var(--muted);opacity:.08}
.heat-split{stroke:var(--axisline);stroke-dasharray:5 5}
.heat-zero{stroke:var(--muted)}
.heat-title{font-weight:600}
.heat-corner{font-size:10.5px;font-weight:700;letter-spacing:.12em;fill:var(--gold)}
.heat-name{font-weight:600;fill:var(--ink);paint-order:stroke;stroke:var(--surface);stroke-width:3px;stroke-linejoin:round}
.heat-dot{cursor:pointer}
.heat-dot:focus{outline:none}
.heat-dot:focus .heat-circle,.heat-dot:hover .heat-circle{stroke:var(--ink);stroke-width:2}
.heat-circle{stroke:var(--surface);stroke-width:1.5}
.heat-was{fill:none;stroke-width:1.5;stroke-opacity:.7}
.heatcap{margin-top:6px}
.wp{display:flex;flex-direction:column;gap:2px;margin-top:4px}
.wp-head,.wp-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(96px,150px) minmax(0,1fr);align-items:center;gap:10px}
.wp-head{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-bottom:4px}
.wp-head .wp-d{color:var(--s1);text-align:right}
.wp-head .wp-r{color:var(--red)}
.wp-row{padding:6px 0;border-top:1px solid var(--grid)}
.wp-mid{text-align:center;line-height:1.25}
.wp-mid a{display:block;font-weight:650;color:var(--ink);text-decoration:none}
.wp-mid a:hover{text-decoration:underline}
.wp-mid span{font-size:12px;color:var(--sec)}
.wp-bar{display:flex;height:14px}
.wp-bar.wp-d{flex-direction:row-reverse}
.wp-seg{display:block;min-width:0}
.wp-d .wp-seg.party{background:var(--s1)}
.wp-d .wp-seg.other{background:color-mix(in srgb,var(--s1) 42%,transparent)}
.wp-r .wp-seg.party{background:var(--red)}
.wp-r .wp-seg.other{background:color-mix(in srgb,var(--red) 42%,transparent)}
.wp-side.wp-d{text-align:right}
.wp-amt{font-size:12.5px;margin-top:3px;font-variant-numeric:tabular-nums;white-space:nowrap}
.wp-d .wp-amt strong{color:var(--s1)}
.wp-r .wp-amt strong{color:var(--red)}
.wp-matrix{display:grid;gap:6px;margin-top:8px;max-width:620px}
.wp-mrow{display:grid;grid-template-columns:96px 1fr 1fr;gap:6px}
.wp-mhead span{font-size:12px;font-weight:650;color:var(--sec);text-align:center}
.wp-rowhead{font-size:12px;font-weight:650;color:var(--sec);align-self:center}
.wp-cell{border:1px solid var(--grid);border-radius:10px;padding:10px 12px;font-size:12.5px}
.wp-cell.hot{border-color:color-mix(in srgb,var(--gold) 60%,transparent);background:color-mix(in srgb,var(--gold) 9%,transparent)}
.wp-mean{color:var(--sec)}
.wp-names{margin-top:6px;font-weight:650}
.wp-cell:not(.hot) .wp-names{font-weight:400;color:var(--muted)}
@media (max-width:640px){.wp-head{font-size:10.5px;letter-spacing:.03em}.wp-mrow{grid-template-columns:72px 1fr 1fr}}
.mob{display:none}
.mob .cand{font-size:12px;color:var(--sec)}
.pnote{color:var(--sec);font-size:12.5px}
.tcap{margin-top:10px}
@media (max-width:640px){
  .opt{display:none}
  .mob{display:block;margin-top:4px}
  th,td{padding:7px 6px}
}

/* rating colors: blue to neutral to red, by band */
.r-safe-d{--fill:var(--s1)}
.r-likely-d{--fill:color-mix(in oklab,var(--s1) 65%,var(--mid))}
.r-lean-d{--fill:color-mix(in oklab,var(--s1) 35%,var(--mid))}
.r-toss{--fill:var(--mid)}
.r-lean-r{--fill:color-mix(in oklab,var(--red) 35%,var(--mid))}
.r-likely-r{--fill:color-mix(in oklab,var(--red) 65%,var(--mid))}
.r-safe-r{--fill:var(--red)}
.swatch{display:inline-block;width:9px;height:9px;border-radius:2px;background:var(--fill);flex:none}
.keyrect[class*="r-"]{background:var(--fill)}
.keyrect.r-none{background:transparent;border:1px solid var(--axisline)}

/* the tile map */
.tmap{display:grid;gap:3px;max-width:560px;margin:14px auto 4px}
.tile{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;border-radius:4px;border:0;
  padding:0;background:var(--fill);color:var(--ink);
  font:600 clamp(8.5px,2.3vw,12px)/1 system-ui,-apple-system,"Segoe UI",sans-serif;min-width:0}
/* Dark letters clear 4.4:1 on the strongest blue and red in both modes; white does not. */
.tile.r-safe-d,.tile.r-safe-r{color:#0b0b0b}
.tile.r-none{background:transparent;border:1px solid var(--border);color:var(--sec);font-weight:500}
button.tile{cursor:pointer}
button.tile:hover{box-shadow:inset 0 0 0 2px var(--ink)}
.maplegend{justify-content:center;margin-top:10px}

/* lists */
.moves{list-style:none;padding:0;margin-top:8px;display:flex;flex-direction:column}
.move{padding:9px 0;border-bottom:1px solid var(--border)}
.move:last-child{border-bottom:0}
.mhead{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;font-size:12.5px}
.mkind{font-size:11.5px;font-weight:600;line-height:1.5;padding:0 8px;border:1px solid var(--border);
  border-radius:999px;white-space:nowrap}
/* "Reported" is hand-entered news, not an FEC filing: its own label and a bar down the side. */
.mkind.k-reported{color:color-mix(in srgb,var(--purple) 75%,var(--ink));border-color:var(--purple)}
.move.k-reported{border-left:3px solid var(--purple);padding-left:10px}
.mdate{color:var(--sec)}
.mamt{margin-left:auto;font-weight:600;font-variant-numeric:tabular-nums}
.mbody{font-size:13px;margin-top:2px;color:var(--ink);overflow-wrap:anywhere}
.src{font-size:12px}
.movers{list-style:none;padding:0;margin-top:8px}
.movers li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:6px 0;border-bottom:1px solid var(--border);font-size:13px}
.movers li:last-child{border-bottom:0}
.mv{color:var(--sec);margin-left:auto}
.dumbbells{list-style:none;padding:0;margin-top:10px;display:flex;flex-direction:column;gap:14px}
.dtitle{font-size:13px}
.dtitle .sub{display:inline}
.dbell{position:relative;height:14px;margin-top:6px;background:linear-gradient(var(--grid),var(--grid)) center/100% 1px no-repeat}
.dline{position:absolute;top:6px;height:2px;background:var(--axisline)}
.ddot{position:absolute;top:2px;width:10px;height:10px;margin-left:-5px;border-radius:50%;box-shadow:0 0 0 2px var(--surface)}
.ddot.rg{background:var(--s1)}
.ddot.ai{background:var(--ai)}
.links{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:13.5px}

/* methods page */
.prose h3{margin-top:20px}
.prose .para{font-size:14px;line-height:1.6;margin-top:10px;max-width:78ch}
.plist{margin:10px 0 0;padding-left:22px;display:flex;flex-direction:column;gap:7px;font-size:14px;line-height:1.55;max-width:78ch}
.mcap{font-size:13px;font-weight:600;margin-top:16px}
.mtable{max-width:680px}
.mgrid{display:grid;grid-template-columns:1fr 1fr;gap:0 28px;margin-top:2px}
.mgrid>*{min-width:0}
@media (max-width:720px){.mgrid{grid-template-columns:1fr}}
.mcols{column-width:340px;column-gap:28px;margin-top:2px}
.mgroup{break-inside:avoid}
.mgroup h3{margin-top:18px}
/* Row headers in these tables read like ordinary cells. */
table.kv th,table.mtable tbody th,table.cmoney tbody th{color:var(--ink);font-weight:400;font-size:inherit}
table.kv th{width:58%}
table.kv td:last-child{font-variant-numeric:tabular-nums}
tr.chosen td,tr.chosen th{font-weight:650}
table caption.mcap{caption-side:top;text-align:left;padding:0 0 6px;margin:0;color:var(--ink)}
.mtbl .tblwrap{margin-top:16px}

/* race page */
.back{font-size:13px;text-decoration:none;color:var(--sec);padding:2px 4px;align-self:flex-start}
.back:hover{color:var(--ink);text-decoration:underline}
.raceview,.methodsview{display:flex;flex-direction:column;gap:14px;min-width:0}
.racehead{padding:0 4px}
.racetitle{font-size:22px;font-weight:650;letter-spacing:-.01em}
.racehead .sub{font-size:13px}
.rule{color:var(--sec);font-size:12.5px;margin-top:4px;border-left:3px solid var(--axisline);padding-left:10px;max-width:80ch}
.odds .sides{display:flex;justify-content:space-between;gap:16px}
.odds .side.s-r{text-align:right}
.sname{font-size:14px;font-weight:600}
.party{color:var(--sec);font-weight:400}
.sval{font-size:34px;font-weight:650;letter-spacing:-.01em;line-height:1.15;margin-top:2px}
.odds .pbar{height:12px;margin-top:10px}
.summary{font-size:15px;margin-top:12px}
.odds .rating{font-size:12.5px;margin-top:4px}
.odds .oddsview{margin:0 0 14px}
.mlead.s-d .sval{color:var(--s1)}
.mlead.s-r .sval{color:var(--red)}
.maxis{position:relative;height:26px;margin-top:12px}
.mtrack{position:absolute;left:0;right:0;top:12px;height:2px;background:var(--axisline)}
.mband{position:absolute;top:4px;height:18px;border-radius:9px;background:color-mix(in srgb,var(--ink) 13%,transparent)}
.mzero{position:absolute;left:50%;top:0;width:2px;height:26px;margin-left:-1px;background:var(--muted)}
.mdot{position:absolute;top:4px;width:18px;height:18px;margin-left:-9px;border-radius:50%;border:2px solid var(--surface)}
.mdot.s-d{background:var(--s1)}
.mdot.s-r{background:var(--red)}
.mends{display:flex;justify-content:space-between;font-size:11.5px;color:var(--sec);margin-top:4px}
.facts{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;font-size:13.5px}
.facts dt{color:var(--sec)}
.facts dd{margin:0}
table.cmoney th .dot{margin-right:6px}
table.cmoney td.nofec{color:var(--sec);vertical-align:middle;white-space:normal}

/* the AI Anchor Desk teleprompter */
.prompter{margin-top:16px;border-radius:10px;overflow:hidden;background:var(--prompter);color:var(--prompter-ink);
  border:1px solid var(--border)}
.prompter .fiction{background:var(--prompter-bar);color:#fff;font-size:12.5px;font-weight:700;
  letter-spacing:.02em;padding:8px 16px}
.prompter .script{padding:18px 22px 6px;font-size:17px;line-height:1.7;max-height:380px;overflow-y:auto}
.prompter .script p{margin:0 0 14px;max-width:62ch}
.prompter figcaption{font-size:12px;color:#c9c8c0;padding:10px 16px 12px;border-top:1px solid rgba(255,255,255,.12)}
.prompter figcaption strong{color:#fff}

/* "Who will control Congress": the title row, with "What if the polls are wrong?" beside the title. */
.cardhead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px}
.wi-open{font:inherit;font-size:13px;font-weight:600;color:var(--ink);background:var(--page);border:1px solid var(--axisline);
  border-radius:999px;padding:5px 12px 5px 14px;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.wi-open:hover{background:var(--grid)}
.wi-open .chev,.wi-toggle .chev{width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:rotate(-45deg);transition:transform .15s}
.wi-open[aria-expanded="true"] .chev,.wi-toggle[aria-expanded="true"] .chev{transform:rotate(45deg)}
.wi-panel{margin-top:12px;padding:12px 14px 14px;background:var(--page);border:1px solid var(--grid);border-radius:8px}
.wi-panel .sub{margin-top:0}
.wi-panel .ainote{margin:0 0 4px}

/* The slider. The track runs red (Republicans beat their polls) to blue (Democrats do). The thumb is 22px wide in
   every browser, so the marks below line up with it. */
.wi-slider{margin-top:12px}
.wi-range{-webkit-appearance:none;appearance:none;display:block;width:100%;height:28px;margin:0;background:transparent;cursor:pointer}
.wi-range::-webkit-slider-runnable-track{height:8px;border-radius:4px;
  background:linear-gradient(to right,var(--red),var(--mid) 50%,var(--s1))}
.wi-range::-moz-range-track{height:8px;border-radius:4px;background:linear-gradient(to right,var(--red),var(--mid) 50%,var(--s1))}
.wi-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;box-sizing:border-box;width:22px;height:22px;margin-top:-7px;
  border-radius:50%;background:var(--surface);border:2px solid var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.3)}
.wi-range::-moz-range-thumb{box-sizing:border-box;width:22px;height:22px;border-radius:50%;background:var(--surface);
  border:2px solid var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.3)}
.wi-range:focus-visible{outline:none}
.wi-range:focus-visible::-webkit-slider-thumb{outline:2px solid var(--s1);outline-offset:2px}
.wi-range:focus-visible::-moz-range-thumb{outline:2px solid var(--s1);outline-offset:2px}
.wi-marks{position:relative;height:28px}
.wi-mark{position:absolute;top:0;left:calc(11px + (100% - 22px) * var(--f));transform:translateX(-50%);
  font:inherit;font-size:12px;line-height:1.2;color:var(--sec);background:none;border:0;padding:9px 4px 4px;cursor:pointer;white-space:nowrap}
.wi-mark::before{content:"";position:absolute;left:50%;top:0;width:1.5px;height:6px;background:var(--axisline)}
.wi-mark:hover{color:var(--ink)}
.wi-mark[aria-pressed="true"]{color:var(--ink);font-weight:600}
.wi-ends{display:flex;justify-content:space-between;gap:12px;margin-top:2px;color:var(--sec);font-size:12px}
.wi-ends .short{display:none}
.wi-read{margin-top:10px}
.wi-title{font-size:14.5px;font-weight:650}
.wi-verdict{color:var(--sec);font-size:13px;margin-top:2px}
.kpi.wi-dim{opacity:.4;transition:opacity .15s}
.wi-foldbar{margin-top:14px;border-top:1px solid var(--grid);padding-top:8px}
.wi-toggle{font:inherit;font-size:13px;color:var(--sec);background:none;border:0;padding:0;cursor:pointer;
  display:inline-flex;align-items:center;gap:6px}
.wi-toggle:hover{color:var(--ink)}
.wi-fold{margin-top:6px}
@media (max-width:480px){.wi-ends .long{display:none}.wi-ends .short{display:inline}.wi-panel{padding:10px 10px 12px}}
@media (prefers-reduced-motion:reduce){.wi-open .chev,.wi-toggle .chev,.kpi.wi-dim{transition:none}}

/* phones */
@media (max-width:480px){
  body{padding:20px 16px 40px}
  .card{padding:16px 14px 14px}
  h1{font-size:22px}
  .modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  .mode{padding:7px 4px;font-size:12px}
  .kval{font-size:27px}
  .sval{font-size:28px}
  .prompter .script{font-size:15.5px;padding:14px 16px 4px}
  .search{max-width:none;flex-basis:100%}
  table{font-size:12.5px}
  th,td{padding:6px 4px}
}

@media (prefers-reduced-motion:reduce){
  .tip,.bar,.bseg{transition:none}
}

/* "How to read this": a section's longer explanation, closed until opened. */
.explain{margin-top:12px;border-top:1px solid var(--grid);padding-top:8px}
.explain summary{cursor:pointer;list-style:none;color:var(--sec);font-size:13px;display:inline-flex;align-items:center;gap:6px}
.explain summary::-webkit-details-marker{display:none}
.explain summary::before{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:rotate(-45deg);transition:transform .15s}
.explain[open] summary::before{transform:rotate(45deg)}
.explain summary:hover{color:var(--ink)}
.explain-body{color:var(--sec);font-size:13px;line-height:1.55;margin-top:8px;max-width:72ch;display:flex;flex-direction:column;gap:6px}
@media (prefers-reduced-motion:reduce){.explain summary::before{transition:none}}
/* The what-if chart: dashed marker lines and a lead sentence that carries the story. */
.marker{stroke:var(--ink);stroke-width:1;stroke-dasharray:4 4;opacity:.7}
.half{stroke:var(--surface);stroke-width:1.5;stroke-dasharray:2 3}
.sub.lead{font-size:15px;color:var(--ink);max-width:72ch}

/* ---------- the FEC ticker (ticker.js): a dark strip across the top of the front page ---------- */
.ticker{display:flex;align-items:stretch;height:38px;margin:-28px -16px 18px;overflow:hidden;
  background:var(--prompter);color:var(--prompter-ink);font-size:13px;line-height:1;
  border-bottom:1px solid var(--prompter-bar)}
.ticker[hidden],.ticker.off{display:none}
.tk-tag{flex:none;display:flex;align-items:center;padding:0 12px;background:var(--prompter-bar);
  font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.tk-tag.live::before{content:"";width:7px;height:7px;border-radius:50%;background:#e34948;margin-right:7px;
  animation:tk-pulse 1.6s ease-in-out infinite}
.tk-view{flex:1;min-width:0;display:flex;align-items:center;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 20px,#000 calc(100% - 20px),transparent);
  mask-image:linear-gradient(90deg,transparent,#000 20px,#000 calc(100% - 20px),transparent)}
.tk-reel{display:flex;width:max-content;animation:tk-scroll var(--tk-dur,60s) linear infinite}
.ticker:hover .tk-reel,.ticker:focus-within .tk-reel{animation-play-state:paused}
.tk-track{display:flex;padding:0;list-style:none}
.tk-item{display:block;white-space:nowrap;padding:0 20px;line-height:22px;border-right:1px solid var(--prompter-bar)}
.tk-seat{display:inline-block;margin-right:8px;padding:3px 6px;line-height:1.2;border-radius:4px;background:rgba(255,255,255,.09);
  color:var(--prompter-ink);font-size:11.5px;font-weight:700;letter-spacing:.04em;text-decoration:none}
.tk-seat:hover{background:rgba(255,255,255,.18)}
.tk-dot{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#898781;vertical-align:1px}
.tk-dot.s-d{background:#3987e5}
.tk-dot.s-r{background:#e66767}
.tk-who{font-weight:650}
.tk-what,.tk-when{color:#aeada5}
.tk-src{margin-left:8px;color:#aeada5;font-size:10.5px}
@keyframes tk-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes tk-pulse{50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){
  .tk-reel{animation:none}
  .tk-view{overflow-x:auto;-webkit-mask-image:none;mask-image:none}
  .tk-reel>.tk-track[aria-hidden]{display:none}
  .tk-tag.live::before{animation:none}}

/* Early vote vs. past years (early.js) */
.early .evtbl td{padding:8px 10px;vertical-align:top}
.early .evtbl td.strong{font-weight:650}
.early .evtbl td.up{color:var(--ink)}
.early .evtbl td.down{color:var(--sec)}
.evname{all:unset;cursor:pointer;display:block}
.evname:focus-visible{outline:2px solid var(--s1);outline-offset:2px;border-radius:4px}
.evname .evst::after{content:" ▸";color:var(--sec);font-size:11px}
.evname[aria-expanded="true"] .evst::after{content:" ▾"}
.evst{display:block;font-weight:600}
.evmeasure{display:block;color:var(--sec);font-size:12px;margin-top:2px;line-height:1.35}
.evdetail[hidden]{display:none}
.evdetail > td{padding:4px 10px 14px}
.evbody{max-width:620px}
.evchart{width:100%;height:auto;display:block}
.evline{fill:none;stroke-width:1.6}
.evline.ev26{stroke:var(--gold);stroke-width:3}
.evline.ev24{stroke:var(--ink);opacity:.55}
.evline.ev22{stroke:var(--s1);opacity:.75}
.evline.ev18{stroke:var(--sec);stroke-dasharray:4 3}
.evdot.ev26{fill:var(--gold)}
.evtoday{stroke:var(--gold);stroke-dasharray:2 3;opacity:.7}
.keyline.ev26{background:var(--gold);height:3px}
.keyline.ev24{background:var(--ink);opacity:.55}
.keyline.ev22{background:var(--s1);opacity:.75}
.keyline.ev18{background:var(--sec)}
.evnote{color:var(--sec);font-size:12.5px;margin-top:6px;max-width:80ch}
.evsrc{font-size:12px;color:var(--sec);margin-top:6px}
.evaxis{color:var(--sec);font-size:11px;margin-top:-2px;text-align:center}
.evwho{margin-top:14px}
.evwho h4{font-size:13.5px;font-weight:650}
.evwhotbl td{padding:6px 10px}
.evwhotbl .evchg{display:block;font-weight:650}
.evwhotbl .evcount{display:block;color:var(--sec);font-size:11.5px}
.evwhotbl tr.evtotal td{border-top:1px solid var(--border);font-weight:650}

/* Early vote: the latest write-up's findings and its charts behind tabs (early-notes/notes.json). */
.evnotes{margin:6px 0 18px}
.evnotes[hidden]{display:none}
.evnotes-list{margin:8px 0 4px;padding-left:20px;line-height:1.5}
.evnotes-list li{margin:4px 0}
.evnotes-fig{display:block;margin-top:10px;border-radius:10px;overflow:hidden;background:#0f1419;aspect-ratio:16/9}
.evnotes-fig:focus-visible{outline:2px solid var(--s1);outline-offset:2px}
.evnotes-img{display:block;width:100%;height:auto}

/* ---------- the front page's tabs (Overview, Races, Money, Early vote) ---------- */
/* The bar stays at the top of the screen while a tab scrolls; its page-colored ring covers cards sliding under it. */
.oddsline{color:var(--sec);font-size:13px;padding:0 4px;margin-bottom:-4px;max-width:80ch}
.pagetabs{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;
  background:var(--grid);border-radius:10px;padding:3px;box-shadow:0 0 0 7px var(--page)}
.pagetabs a{display:block;text-align:center;font-size:14px;line-height:1.2;padding:9px 6px;border-radius:8px;
  color:var(--sec);text-decoration:none}
.pagetabs a:hover{color:var(--ink)}
.pagetabs a[aria-current="page"]{background:var(--surface);color:var(--ink);font-weight:650;box-shadow:0 1px 2px rgba(0,0,0,.12)}
.tabpanel{display:flex;flex-direction:column;gap:14px;min-width:0}
.mnotes[hidden]{display:none}
.mnotes .evnotes-list{margin-top:10px;max-width:92ch}
.mnotes .evnotes-list li{margin:7px 0}
@media (max-width:480px){.pagetabs a{font-size:13px;padding:9px 2px}}
