html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Midterms 2026 — Results: How Markets, Polls and Early Voting Did</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,800;1,9..144,400;1,9..144,600&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
<style>
:root{
  --bg:#060a15; --panel:#0e1629; --panel2:#121c34; --line:rgba(255,255,255,.09);
  --tx:#e9edf7; --mute:#8c97b2; --dim:#5d6885;
  --D:#4d8dff; --R:#ff5d63; --T:#f5b942; --G:#5ad1a0;
  --serif:'Fraunces',Georgia,serif; --sans:'Inter',system-ui,sans-serif; --mono:'JetBrains Mono',ui-monospace,monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:64px}
body{background:var(--bg);color:var(--tx);font-family:var(--sans);line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:hidden}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
  background:radial-gradient(900px 500px at 8% -5%,rgba(77,141,255,.2),transparent 60%),radial-gradient(900px 520px at 100% 0%,rgba(255,93,99,.1),transparent 60%)}
a{color:inherit}
.wrap{max-width:1180px;margin:0 auto;padding:0 22px;position:relative;z-index:1}
.mono{font-family:var(--mono)}
#prog{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,var(--D),var(--T),var(--R));z-index:60}
nav{position:sticky;top:0;z-index:50;background:rgba(6,10,21,.82);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
nav .wrap{display:flex;align-items:center;gap:18px;height:54px}
.brand{font-family:var(--serif);font-weight:800;font-size:17px;letter-spacing:-.01em;white-space:nowrap}
.brand i{font-style:normal;color:var(--D)} .brand b{color:var(--R)}
nav ul{display:flex;gap:4px;list-style:none;margin-left:auto;overflow-x:auto;scrollbar-width:none}
nav ul::-webkit-scrollbar{display:none}
nav a.l{display:block;padding:7px 12px;border-radius:99px;font-size:13px;color:var(--mute);text-decoration:none;white-space:nowrap;transition:.2s}
nav a.l:hover{color:var(--tx);background:rgba(255,255,255,.06)}
.ticker{border-bottom:1px solid var(--line);background:#080d1b;overflow:hidden;position:relative;z-index:1}
.ticker .tk{display:flex;gap:46px;white-space:nowrap;width:max-content;padding:9px 0;animation:tk 80s linear infinite;font-family:var(--mono);font-size:11.5px;letter-spacing:.04em;color:var(--mute)}
.ticker b{color:var(--tx);font-weight:500}.ticker .dd{color:var(--D)}.ticker .rr{color:var(--R)}.ticker .tt{color:var(--T)}
@keyframes tk{to{transform:translateX(-50%)}}
.hero{padding:54px 0 28px}
.herogrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:34px;align-items:center}
.eyebrow{font-family:var(--mono);font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--mute);display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.live{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--T);box-shadow:0 0 0 0 rgba(245,185,66,.7);animation:pulse 2s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 10px rgba(245,185,66,0)}100%{box-shadow:0 0 0 0 rgba(245,185,66,0)}}
h1{font-family:var(--serif);font-weight:800;font-size:clamp(38px,5.2vw,72px);line-height:1;letter-spacing:-.035em;margin:16px 0 18px;font-variation-settings:"opsz" 144}
h1 em{font-style:italic;font-weight:600;background:linear-gradient(90deg,var(--D),#b7a6ff 60%,#c9d3ee);-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.06em}
.lede{max-width:620px;color:#b7c0d6;font-size:clamp(16px,1.6vw,18.5px)}
.cd{display:flex;gap:10px;margin-top:26px;flex-wrap:wrap}
.cd div{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:10px 16px;min-width:96px;text-align:center}
.cd b{display:block;font-family:var(--mono);font-size:26px;font-weight:500;line-height:1.1;font-variant-numeric:tabular-nums}
.cd span{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
.dials{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.dial{text-align:center;padding:22px 14px 18px!important}
.dial .rw{position:relative;width:min(100%,190px);aspect-ratio:1;margin:0 auto}
.dial .rw svg{width:100%;height:100%}
.dial .rw .mid{position:absolute;inset:0;display:grid;place-items:center}
.dial .big{font-family:var(--serif);font-weight:800;font-size:46px;letter-spacing:-.03em;line-height:1;color:var(--D)}
.dial .cap{font-family:var(--mono);font-size:10px;letter-spacing:.12em;color:var(--mute);margin-top:4px}
.dial h3{margin-bottom:10px!important}
.dial .ven{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:12px}
.dial .ven span{font-family:var(--mono);font-size:10.5px;padding:3px 9px;border-radius:99px;background:rgba(255,255,255,.06);color:#c4cce0}
.since{padding:26px 0 0}
.since .head{display:flex;align-items:center;gap:12px;margin-bottom:14px;font-family:var(--mono);font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--T)}
.since .head::after{content:"";flex:1;height:1px;background:var(--line)}
.sgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.sc{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);border-radius:16px;padding:16px 18px}
.sc small{font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.sc .fl{display:flex;align-items:baseline;gap:8px;margin:6px 0 4px;font-family:var(--serif);font-weight:800;font-size:28px;letter-spacing:-.02em;flex-wrap:wrap}
.sc .fl s{font-size:16px;font-weight:600;color:var(--dim);text-decoration:none}
.sc .fl .ar{font-family:var(--mono);font-size:14px;color:var(--T);font-weight:400}
.sc p{font-size:12.5px;color:#9aa5c0}
section{padding:84px 0 10px;position:relative}
.kicker{font-family:var(--mono);font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--T)}
h2{font-family:var(--serif);font-weight:800;font-size:clamp(30px,4.6vw,56px);line-height:1.02;letter-spacing:-.03em;margin:10px 0 14px;max-width:880px}
h2 em{font-style:italic;font-weight:600;color:#c9d3ee}
.sec-lede{max-width:780px;color:#aeb8d0;font-size:17px}
.grid{display:grid;gap:18px}
.g3{grid-template-columns:repeat(3,1fr)}.g2{grid-template-columns:1.1fr .9fr}
.card{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);border-radius:20px;padding:22px;position:relative;overflow:hidden}
.card h3{font-size:13px;font-family:var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--mute);font-weight:500;margin-bottom:12px}
.card .num{font-family:var(--serif);font-weight:800;font-size:clamp(40px,5vw,60px);letter-spacing:-.03em;line-height:1}
.card p.n{color:#9aa5c0;font-size:13.5px;margin-top:10px}
.num .d{color:var(--D)}.num .r{color:var(--R)}
.src{font-family:var(--mono);font-size:10.5px;color:var(--dim);margin-top:12px;letter-spacing:.02em}
.reveal{opacity:0;transform:translateY(22px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}
.gauge svg{width:100%;height:auto;display:block}
.needle{transform-origin:150px 150px;transform:rotate(-90deg);transition:transform 2.1s cubic-bezier(.2,.9,.25,1.05) .2s}
.in .needle,.in.needle{transform:rotate(var(--rot))}
.mk-sub{font-family:var(--mono);font-size:11.5px;color:var(--mute);margin-top:10px;line-height:1.6}
.mk-up{color:var(--G)}.mk-dn{color:var(--R)}
.mk-venues{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.mk-venues span{font-family:var(--mono);font-size:11px;padding:4px 10px;border-radius:99px;background:rgba(255,255,255,.06);color:#c4cce0}
.mk3{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:18px;margin-top:34px}
.mapwrap{display:grid;grid-template-columns:1.25fr .75fr;gap:18px;margin-top:34px;align-items:start}
.tilemap svg{width:100%;height:auto;display:block}
.tile{cursor:pointer;transition:transform .25s,filter .25s;transform-box:fill-box;transform-origin:center;opacity:0}
.in .tile{opacity:1;transition:opacity .5s calc(var(--i)*18ms),transform .25s,filter .25s}
.tile:hover{transform:scale(1.1);filter:brightness(1.2)}
.tile:focus{outline:none}
.tile:focus rect.bg{stroke:#fff;stroke-width:2.5}
.tile.sel rect.bg{stroke:#fff;stroke-width:3}
.tile text{pointer-events:none;font-family:var(--mono)}
.tile.norace{cursor:default;opacity:.5}.tile.norace:hover{transform:none;filter:none}
.flipring{fill:none;stroke:#fff;stroke-width:2;stroke-dasharray:4 3;opacity:0;transition:.3s;pointer-events:none}
.showflips .flipring.on{opacity:1;animation:dash 1.2s linear infinite}
@keyframes dash{to{stroke-dashoffset:-14}}
.maptools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px;align-items:center}
.btn{font-family:var(--sans);font-size:12.5px;font-weight:600;padding:8px 14px;border-radius:99px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:#d4dbee;cursor:pointer;transition:.2s}
.btn:hover{background:rgba(255,255,255,.1)}.btn.on{background:var(--tx);color:#060a15}
.detail{position:sticky;top:76px;min-height:360px}
.detail .st{font-family:var(--serif);font-size:38px;font-weight:800;letter-spacing:-.03em;line-height:1}
.badge{display:inline-block;padding:4px 10px;border-radius:99px;font-family:var(--mono);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#060a15;white-space:nowrap}
.vs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.vs div{padding:12px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid var(--line);font-size:13px}
.vs div small{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.1em;color:var(--mute);margin-bottom:3px}
.vs .dm{border-color:rgba(77,141,255,.5)}.vs .rp{border-color:rgba(255,93,99,.5)}
.vs .win{background:rgba(255,255,255,.1)}
.vs b{font-size:15px}
.kv{display:flex;justify-content:space-between;gap:12px;font-size:13px;padding:8px 0;border-top:1px solid var(--line);color:#b4bdd4}
.kv b{color:var(--tx);font-family:var(--mono);font-weight:500;text-align:right;font-size:12px}
.detail .note{font-size:13px;color:#9fa9c4;margin-top:10px}
.fadein{animation:fi .45s ease}
@keyframes fi{from{opacity:0;transform:translateY(8px)}}
.leg2{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px;font-size:11.5px;color:var(--mute)}
.leg2 span{display:flex;align-items:center;gap:6px}.leg2 i{width:12px;height:12px;border-radius:4px}
/* margins chart */
.mg-row{display:grid;grid-template-columns:104px 1fr 150px;gap:14px;align-items:center;padding:9px 0;border-top:1px solid var(--line)}
.mg-row .nm{font-size:14px;font-weight:600}.mg-row .nm small{display:block;font-weight:400;font-size:11px;color:var(--mute);font-family:var(--mono)}
.mg-bar{position:relative;height:26px}
.mg-bar::before{content:"";position:absolute;left:var(--z);top:-6px;bottom:-6px;width:1px;background:#3a4565}
.mg-fill{position:absolute;top:3px;height:20px;border-radius:6px;width:0;transition:width 1.4s cubic-bezier(.2,.8,.2,1) var(--dl,0s)}
.mg-fill.d{left:var(--z);background:linear-gradient(90deg,#2f5fe0,#6d9cff)}
.mg-fill.r{right:calc(100% - var(--z));background:linear-gradient(270deg,#e6454c,#ff9a9e)}
.in .mg-fill{width:calc(var(--m)*var(--k)*1%)}
.mg-fill span{position:absolute;top:2px;font-family:var(--mono);font-size:12px;color:var(--tx);white-space:nowrap}
.mg-fill.d span{left:calc(100% + 8px)}.mg-fill.r span{right:calc(100% + 8px)}
.mg-meta{font-family:var(--mono);font-size:11px;color:var(--mute);line-height:1.35}
.mg-meta b{color:var(--tx);font-weight:500}
.fl{white-space:nowrap}
.tag{display:inline-block;font-family:var(--mono);font-size:9.5px;letter-spacing:.1em;padding:2px 7px;border-radius:99px;background:rgba(245,185,66,.15);color:var(--T);margin-left:6px;vertical-align:middle}
.tag.flp{background:rgba(77,141,255,.2);color:#9dbcff}
/* open races */
.open2{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px}
.open2 .card h4{font-family:var(--serif);font-size:26px;font-weight:800;letter-spacing:-.02em;margin-bottom:4px}
.open2 .card p{font-size:13.5px;color:#a2adc7;margin-top:8px}
.vsbar{display:flex;height:24px;border-radius:99px;overflow:hidden;background:#1a2440;margin:12px 0 6px}
.vsbar i{display:block;height:100%;width:0;transition:width 1.4s cubic-bezier(.2,.8,.2,1) .2s}
.in .vsbar i{width:calc(var(--w)*1%)}
.vsbar .sd{background:var(--D)}.vsbar .sr{background:var(--R)}.vsbar .so{background:#7c88a8}
.vslbl{display:flex;justify-content:space-between;font-family:var(--mono);font-size:11px;color:var(--mute)}
/* scatter */
.sp svg{width:100%;height:auto;display:block}
.sp .ptx{font-family:var(--mono);font-size:11px;fill:#5d6885}
.sp .pt{opacity:0;transform:scale(.2);transform-box:fill-box;transform-origin:center;transition:opacity .6s,transform .7s cubic-bezier(.2,1.5,.4,1)}
.in .sp .pt,.sp.in .pt{opacity:1;transform:scale(1);transition-delay:calc(var(--i)*.1s)}
.sp .plbl{font-family:var(--mono);font-size:11px;font-weight:700;fill:#05080f}
/* dumbbell */
.dm-row{display:grid;grid-template-columns:150px 1fr;gap:14px;align-items:center;padding:15px 0 13px;border-top:1px solid var(--line)}
.dm-row .l{font-size:13.5px;font-weight:600}.dm-row .l small{display:block;font-weight:400;font-family:var(--mono);font-size:10.5px;color:var(--mute)}
.dm-track{position:relative;height:30px}
.dm-track::before{content:"";position:absolute;left:0;right:0;top:14px;height:2px;background:#26304f}
.dm-zero{position:absolute;top:2px;bottom:2px;width:1px;background:#5d6885;left:var(--z)}
.dm-link{position:absolute;top:13px;height:4px;background:linear-gradient(90deg,#4b5a8c,var(--D));border-radius:4px;left:var(--a);width:0;transition:width 1.6s cubic-bezier(.2,.8,.2,1) .3s}
.in .dm-link{width:calc(var(--b) - var(--a))}
.dm-pt{position:absolute;top:6px;width:18px;height:18px;border-radius:50%;transform:translateX(-50%);left:0;transition:left 1.6s cubic-bezier(.2,.8,.2,1) .3s}
.in .dm-pt{left:var(--a)}
.dm-pt span{position:absolute;left:50%;transform:translateX(-50%);font-family:var(--mono);font-size:10px;color:var(--mute);white-space:nowrap}
.dm-pt.y22{background:#5d6885}.dm-pt.y22 span{top:22px}
.dm-pt.y2b{background:#8ea6d9;width:14px;height:14px;top:8px}.dm-pt.y2b span{top:19px}
.dm-pt.y26{background:var(--D);box-shadow:0 0 18px rgba(77,141,255,.8);width:22px;height:22px;top:4px}.dm-pt.y26 span{color:var(--tx);font-weight:700;top:-17px}
.dm-pt.y26.neg{background:var(--R);box-shadow:0 0 18px rgba(255,93,99,.8)}
.dm-axis{position:relative;height:16px;font-family:var(--mono);font-size:10px;color:var(--dim);margin-left:164px}
.dm-axis span{position:absolute;transform:translateX(-50%)}
.dm-key{display:flex;gap:16px;font-size:12px;color:var(--mute);margin:10px 0 0 164px;flex-wrap:wrap}
.dm-key span{display:flex;align-items:center;gap:6px}.dm-key i{width:10px;height:10px;border-radius:50%}
/* ladder */
.ld-row{display:grid;grid-template-columns:150px 1fr 120px 110px;gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.ld-row .l{font-size:13.5px;font-weight:600}.ld-row .l small{display:block;font-weight:400;font-family:var(--mono);font-size:10px;color:var(--mute)}
.ld-bar{position:relative;height:22px;background:rgba(255,255,255,.03);border-radius:6px}
.ld-bar::after{content:"";position:absolute;left:50%;top:-4px;bottom:-4px;width:1px;background:#3a4565}
.ld-bar .f{position:absolute;left:0;top:0;bottom:0;border-radius:6px;width:0;transition:width 1.5s cubic-bezier(.2,.8,.2,1) var(--dl,0s);background:linear-gradient(90deg,#2f5fe0,#6d9cff)}
.ld-bar .f.r{background:linear-gradient(90deg,#c9303a,#ff7b80)}
.in .ld-bar .f{width:calc(var(--w)*1%)}
.ld-v{font-family:var(--mono);font-size:12.5px;text-align:right}
.ld-o{font-family:var(--mono);font-size:11px;text-align:center;padding:4px 8px;border-radius:99px;font-weight:700}
.ld-o.d{background:rgba(77,141,255,.2);color:#9dbcff}.ld-o.r{background:rgba(255,93,99,.2);color:#ff9a9e}.ld-o.q{background:rgba(245,185,66,.18);color:var(--T)}
.ld-o.up{outline:1px solid var(--T)}
/* bars */
.evhero{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;margin-top:34px}
.stack{display:flex;height:22px;border-radius:99px;overflow:hidden;background:#1a2440;margin-top:14px}
.stack i{display:block;width:0;height:100%;transition:width 1.4s cubic-bezier(.2,.8,.2,1) calc(var(--i)*.12s)}
.in .stack i{width:calc(var(--w)*1%)}
.stack .sd{background:var(--D)}.stack .sr{background:var(--R)}.stack .so{background:#7c88a8}
.stk-l{display:flex;justify-content:space-between;font-family:var(--mono);font-size:11px;color:var(--mute);margin-top:6px}
.ring{width:130px;height:130px;flex:none}
.ring circle{fill:none;stroke-width:12;stroke-linecap:round}
.ring .bg{stroke:#1a2440}.ring .fg{stroke:var(--T);stroke-dasharray:326.7;stroke-dashoffset:326.7;transition:stroke-dashoffset 2s cubic-bezier(.2,.8,.2,1) .2s;transform:rotate(-90deg);transform-origin:60px 60px}
.in .ring .fg{stroke-dashoffset:calc(326.7*(1 - var(--p)/100))}
.ring.blue .fg{stroke:var(--D)}
.chg-row{display:grid;grid-template-columns:200px 1fr;gap:14px;align-items:center;padding:9px 0;border-top:1px solid var(--line)}
.chg-row .l{font-size:13.5px}.chg-row .l small{display:block;font-family:var(--mono);font-size:10.5px;color:var(--mute);line-height:1.3;margin-top:1px}
.chg-bar{position:relative;height:26px}
.chg-bar .f{position:absolute;top:3px;height:20px;border-radius:5px;left:0;width:0;transition:width 1.4s cubic-bezier(.2,.8,.2,1) var(--dl,0s);background:linear-gradient(90deg,#3567e6,#7ba4ff)}
.chg-bar .f.hl{background:linear-gradient(90deg,#c98b1a,#f5b942)}
.in .chg-bar .f{width:calc(var(--w)*1%)}
.chg-bar .t{position:absolute;top:4px;font-family:var(--mono);font-size:12px;left:calc(var(--w)*1% + 8px);opacity:0;transition:opacity .5s 1.2s}
.in .chg-bar .t{opacity:1}
.states{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;margin-top:18px}
.stc{padding:18px!important}
.stc .top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.stc .top b{font-family:var(--serif);font-size:22px;font-weight:800}
.stc .top span{font-family:var(--mono);font-size:11px;color:var(--mute)}
.stc .big{font-family:var(--serif);font-size:30px;font-weight:800;letter-spacing:-.02em;margin:8px 0 2px}
.stc p{font-size:12.5px;color:#9aa5c0}
.stc .res{margin-top:10px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.05);font-family:var(--mono);font-size:11.5px;color:var(--tx)}
.cav{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}
.cav .card{padding:18px}
.cav h4{font-family:var(--serif);font-size:19px;font-weight:600;margin-bottom:6px}
.cav p{font-size:13.5px;color:#a2adc7}
.srcs{columns:2;gap:36px;font-size:13px;color:#9aa5c0;margin-top:18px}
.srcs li{margin:0 0 8px 18px;break-inside:avoid}.srcs a{color:#c9d3ee;text-underline-offset:3px}
footer{padding:60px 0 80px;color:var(--dim);font-size:12.5px;border-top:1px solid var(--line);margin-top:60px;position:relative;z-index:1}
footer p{max-width:820px;margin-bottom:8px}
#tip{position:fixed;pointer-events:none;z-index:99;background:#05080f;border:1px solid rgba(255,255,255,.2);border-radius:10px;padding:7px 11px;font-size:12px;opacity:0;transition:opacity .15s;max-width:240px}
#tip.on{opacity:1}
@media(max-width:980px){
  .herogrid{grid-template-columns:1fr}
  .mapwrap,.g2{grid-template-columns:1fr}.detail{position:static;min-height:0}
  .g3,.evhero,.cav,.mk3,.open2{grid-template-columns:1fr}.sgrid{grid-template-columns:1fr 1fr}
  .srcs{columns:1}
}
@media(max-width:640px){
  .wrap{padding:0 16px}section{padding-top:64px}
  .sgrid{grid-template-columns:1fr}
  .mg-row{grid-template-columns:78px 1fr}.mg-row .mg-meta{grid-column:1/-1}
  .ld-row{grid-template-columns:1fr 70px 80px;gap:6px 10px}.ld-bar{grid-column:1/-1;order:5}
  .chg-row{grid-template-columns:1fr;gap:6px}
  .dm-row{grid-template-columns:1fr;gap:6px}.dm-axis,.dm-key{margin-left:0}
  .brand{font-size:14px}.cd div{min-width:84px;padding:8px 10px}.cd b{font-size:21px}
  .dials{gap:10px}.dial .big{font-size:34px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition-duration:.001s!important;transition-delay:0s!important}
  html{scroll-behavior:auto}.reveal{opacity:1;transform:none}.tile{opacity:1}.sp .pt{opacity:1;transform:none}
}
</style>
</head>
<body>
<div id="prog"></div>
<nav><div class="wrap">
  <div class="brand">Midterms <i>’</i>26 <b>·</b> The Results</div>
  <ul>
    <li><a class="l" href="#results">Results</a></li>
    <li><a class="l" href="#polls">Polls</a></li>
    <li><a class="l" href="#markets">Markets</a></li>
    <li><a class="l" href="#early">Early vote</a></li>
    <li><a class="l" href="#sources">Sources</a></li>
  </ul>
</div></nav>
<div class="ticker"><div class="tk" id="tk"></div></div>

<header class="hero"><div class="wrap herogrid">
  <div class="herotxt">
    <div class="eyebrow"><span class="live"></span><span>Results as of Sun Nov 8, 2026</span><span>·</span><span>Two Senate races still uncalled</span></div>
    <h1>Democrats <em>sweep Congress</em></h1>
    <p class="lede">The Senate flipped on election night — seven Republican seats, with Texas, Kansas and South Carolina among them — and the House followed overnight. The polls, prediction markets and early voters had all pointed the right way, but the real result was bigger than most of them said.</p>
    <div class="cd">
      <div><b>7</b><span>Senate flips</span></div><div><b>0</b><span>GOP flips</span></div><div><b>49.4%</b><span>turnout</span></div>
    </div>
  </div>
  <div class="dials">
    <div class="card dial reveal">
      <h3>Senate</h3>
      <div class="rw"><svg viewBox="0 0 120 120" class="ring blue" style="--p:54"><circle class="bg" cx="60" cy="60" r="52"/><circle class="fg" cx="60" cy="60" r="52"/></svg><div class="mid"><div><div class="big"><span data-count="54">0</span></div><div class="cap">DEMOCRATS</div></div></div></div>
      <div class="ven"><span>Republicans 44</span><span>Alaska · Mississippi open</span></div>
      <p class="mk-sub">Called election night (AP, 11:36 p.m. ET); up from 47 seats</p>
    </div>
    <div class="card dial reveal" style="transition-delay:.1s">
      <h3>House</h3>
      <div class="rw"><svg viewBox="0 0 120 120" class="ring blue" style="--p:59.5"><circle class="bg" cx="60" cy="60" r="52"/><circle class="fg" cx="60" cy="60" r="52"/></svg><div class="mid"><div><div class="big"><span data-count="259">0</span></div><div class="cap">DEMOCRATS (EST.)</div></div></div></div>
      <div class="ven"><span>NBC estimate · R 176</span><span>AP called: D 254 · R 162</span></div>
      <p class="mk-sub">Called 1:24 a.m. ET Nov 4; ~19 seats still uncalled by AP</p>
    </div>
  </div>
</div></header>

<div class="since"><div class="wrap">
  <div class="head">The night in numbers</div>
  <div class="sgrid">
    <div class="sc"><small>Senate seats flipped</small><div class="fl">7 <s>to 0</s></div><p>NC, OH, TX, SC, KS, IA, ME — all Republican-held. Democrats hold at least 54 seats; the GOP flipped none.</p></div>
    <div class="sc"><small>House</small><div class="fl">D 254<s>called</s></div><p>On track for Democrats’ largest House majority since 2008 (AP); Jeffries expects at least 255. Democrats flipped more than 40 GOP-held seats (CBS).</p></div>
    <div class="sc"><small>Governorships flipped</small><div class="fl">5 <s>D</s></div><p>Georgia, Iowa, Ohio, Nevada and Texas (Abbott ousted): Democrats hold a majority of governorships for the first time since 2010.</p></div>
    <div class="sc"><small>Turnout</small><div class="fl">124.3M</div><p>49.4% of eligible voters (preliminary): the second-highest midterm rate since 1914, behind 2018’s 50.05%.</p></div>
  </div>
</div></div>

<section id="results"><div class="wrap">
  <div class="kicker">01 — The results</div>
  <h2>A 54–44 Senate — <em>and two races still counting.</em></h2>
  <p class="sec-lede">Democrats needed a net gain of four seats and took seven, winning in states Trump carried by double digits. Margins ranged from 4 points in Iowa to nearly 20 in North Carolina. Alaska and Mississippi are still unresolved and will decide whether Democrats end up with 54, 55 or 56. Click any state.</p>

  <div class="mapwrap">
    <div class="tilemap card reveal" id="tmcard">
      <div class="maptools">
        <button class="btn" id="flipbtn">Highlight flips</button>
        <span class="mono" style="font-size:11px;color:var(--dim)">Colour = party that won · Nov 8</span>
      </div>
      <svg id="tm" viewBox="0 0 700 520" aria-label="Tile map of the 2026 Senate results"></svg>
      <div class="leg2" id="tmleg"></div>
    </div>
    <div class="card detail reveal" id="detail" style="transition-delay:.15s"></div>
  </div>

  <div class="card reveal" style="margin-top:18px;padding:24px 26px 14px" id="mgcard">
    <h3>Senate margins in the closest races · points (Democrat right, Republican left)</h3>
    <div id="mgrows"></div>
    <p class="src" style="margin-top:14px">Vote shares as reported Nov 4 by NBC and Fox (via The World Data); Michigan, Ohio, Kansas and North Carolina were 97–99% counted, Maine about 91% and New Hampshire about 93%, so Maine and New Hampshire’s final margins may move. Florida’s margin is from On Point Politics. Nebraska’s was R+6.8 with ~92% counted. Alaska and Mississippi are uncalled.</p>
  </div>

  <div class="open2" id="open2">
    <div class="card reveal">
      <h3>Still counting · Alaska</h3>
      <h4>Peltola vs. Sullivan</h4>
      <div class="vsbar"><i class="sd" style="--w:48.2"></i><i class="so" style="--w:3.9"></i><i class="sr" style="--w:47.9"></i></div>
      <div class="vslbl"><span style="color:var(--D)">Peltola 48.2</span><span>others</span><span style="color:var(--R)">Sullivan 47.9</span></div>
      <p>Peltola led by roughly 600 votes on Nov 6 with about 74% counted, after the lead changed hands more than once (Sullivan led by 1,677 on Nov 4). No one has 50%, so ranked-choice voting will decide it. A review of ranked-choice data reported by Democracy Docket and the Times suggests most of the third candidate’s voters (another Dan Sullivan) rank Peltola second. The count may take weeks.</p>
    </div>
    <div class="card reveal" style="transition-delay:.1s">
      <h3>Still counting · Mississippi</h3>
      <h4>Colom vs. Hyde-Smith</h4>
      <div class="vsbar"><i class="sd" style="--w:49.1"></i><i class="so" style="--w:2.1"></i><i class="sr" style="--w:48.8"></i></div>
      <div class="vslbl"><span style="color:var(--D)">Colom 49.1</span><span>others</span><span style="color:var(--R)">Hyde-Smith 48.8</span></div>
      <p>Democrat Scott Colom led by about 2,500 votes (Nov 6–7) in a state that hasn’t elected a Democratic senator since 1982. Roughly 3,600 mail ballots and an unknown number of affidavit ballots are outstanding; counties certify by Nov 13 and Mississippi has no recounts. Republicans have asked counties to preserve affidavit ballots. DDHQ gave Hyde-Smith a 91% chance before polls closed.</p>
    </div>
    <div class="card reveal" style="transition-delay:.2s">
      <h3>Still counting · House</h3>
      <h4>~19 uncalled seats</h4>
      <div class="vsbar"><i class="sd" style="--w:58.4"></i><i class="so" style="--w:4.4"></i><i class="sr" style="--w:37.2"></i></div>
      <div class="vslbl"><span style="color:var(--D)">D 254 called</span><span>19</span><span style="color:var(--R)">R 162 called</span></div>
      <p>AP counted 254 Democratic and 162 Republican seats Saturday morning; NBC’s estimate is 259–176. Remaining races include Colorado’s 4th, where Rep. Lauren Boebert trailed Democrat Eileen Laubacher by about 3,200 votes with 97% counted. House Speaker Mike Johnson says he won’t seek the minority-leader job.</p>
    </div>
  </div>
</div></section>

<section id="polls"><div class="wrap">
  <div class="kicker">02 — The polling</div>
  <h2>The polls called every winner — <em>but understated the size of the wave.</em></h2>
  <p class="sec-lede">The final Times/Siena polls had Democrats ahead in Michigan, Texas, Maine, Ohio, Kansas, Iowa and (narrowly) Alaska; every Siena-polled seat that’s been called went Democratic. But the margins were bigger than polls said in most places, reversing the pattern of recent presidential years. Pollsters called it a “great night.”</p>

  <div class="grid g3" style="margin-top:34px">
    <div class="card reveal gauge">
      <h3>Generic ballot · averages vs. result</h3>
      <svg viewBox="-14 0 328 175" aria-label="Gauge showing Democrats winning the national House vote by about 13 points">
        <defs><linearGradient id="gg" x1="0" x2="1"><stop offset="0" stop-color="#ff5d63"/><stop offset=".5" stop-color="#2a3558"/><stop offset="1" stop-color="#4d8dff"/></linearGradient></defs>
        <path d="M30 150 A120 120 0 0 1 270 150" fill="none" stroke="url(#gg)" stroke-width="16" stroke-linecap="round"/>
        <g id="gticks" font-family="JetBrains Mono" font-size="9" fill="#5d6885" text-anchor="middle"></g>
        <line class="needle" id="needle" style="--rot:78deg" x1="150" y1="150" x2="150" y2="48" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
        <circle cx="150" cy="150" r="9" fill="#fff"/><circle cx="150" cy="150" r="3.5" fill="#0e1629"/>
      </svg>
      <div class="num" style="text-align:center;margin-top:-6px"><span class="d">D+<span data-count="13" data-dec="1">0</span></span></div>
      <p class="n" style="text-align:center">Projected national House vote (D+12.6 with 119M votes counted). Polling averages closed near D+8.5 — a 4.5-point miss. Times/Siena’s final poll said D+11; Emerson, CNN and Reuters/Ipsos were at D+10, D+10 and D+8.</p>
    </div>

    <div class="card reveal" style="transition-delay:.1s">
      <h3>Why voters said they voted</h3>
      <div class="num"><span data-count="38" data-suf="%">0</span></div>
      <p class="n" style="margin-top:6px">Trump’s job approval in the CBS exit poll — historically low for a president in a midterm. 89% of voters said the cost of living was a major or crucial factor.</p>
      <p class="n">Vice President Vance blamed the Iran war: “The reason we lost is the war.” Trump acknowledged it contributed but defended the decision, and replaced chief of staff Susie Wiles with Stephen Miller on Friday.</p>
    </div>

    <div class="card reveal" style="transition-delay:.2s">
      <h3>Who missed, and where</h3>
      <div class="num"><span class="d">10</span> <span style="font-size:22px;color:var(--mute);font-weight:600">pts</span></div>
      <p class="n" style="margin-top:6px">Roughly the biggest Senate misses: in North Carolina and Georgia, Democrats won by about 10 points more than the Silver Bulletin averages of Oct 20 (the latest I could confirm), and Texas by about 10 more than Silver’s average of 2.5.</p>
      <p class="n">Nate Silver had warned Democratic leads were “a normal-sized polling error away from flipping”; the error that came was in the other direction. Michigan was the one Siena poll that overstated Democrats (+11 vs. a 7-point win).</p>
    </div>
  </div>

  <div class="card reveal" style="margin-top:18px;padding:24px 26px 20px">
    <h3>Final polls vs. the result · Democratic margin in points</h3>
    <div class="dumb" id="pdumb"></div>
    <div class="dm-axis" id="pdaxis"></div>
    <div class="dm-key"><span><i style="background:#5d6885"></i>Silver Bulletin average</span><span><i style="background:#8ea6d9"></i>Times/Siena (Nov 1)</span><span><i style="background:var(--D)"></i>Result (D win)</span></div>
    <p class="src">Silver averages: Maine, Texas and Ohio from his late-Oct figures; others (†) Oct 19–25, the latest I could confirm, so true final averages may have been somewhat closer. Results as reported Nov 4 by NBC/Fox (via The World Data). Where Siena didn’t poll (NC, GA, NH, MN, SC) no light marker. South Carolina: Silver had Graham ahead by 1.7; Andrews won by 4.4.</p>
  </div>

  <div class="card reveal" style="margin-top:18px;padding:24px 26px 18px">
    <h3>Pollster scorecard · final national generic-ballot polls vs. D+13.0</h3>
    <div id="gbrows"></div>
    <p class="src">Final national polls vs. the projected D+13.0 House vote, from On Point Politics’ accuracy report (42 pollsters; selection shown). A range of D+3 to D+14: nearly all understated Democrats, and the best came from firms that weight heavily to likely voters.</p>
  </div>
</div></section>

<section id="markets"><div class="wrap">
  <div class="kicker">03 — The markets</div>
  <h2>Markets picked the winner in every chamber — <em>and were too cautious on the upsets.</em></h2>
  <p class="sec-lede">Kalshi and Polymarket priced a Democratic House at about 93–95% and the Senate at about 75% before polls closed, and both were right. Within the Senate, every race Kalshi favored Democrats in was won by Democrats, but so were two races it called underdogs.</p>

  <div class="mk3">
    <div class="card reveal">
      <h3>House control · pre-close</h3>
      <div class="num"><span class="d" data-count="94" data-suf="%">0</span></div>
      <div class="mk-venues"><span>Kalshi 93%</span><span>Polymarket 95%</span></div>
      <p class="mk-sub"><span class="mk-up">✓ Democrats won.</span> Polymarket’s “Democratic sweep” hit 99% by about 10:30 p.m. ET on election night, before the Senate was called.</p>
    </div>
    <div class="card reveal" style="transition-delay:.1s">
      <h3>Senate control · pre-close</h3>
      <div class="num"><span class="d" data-count="75" data-suf="%">0</span></div>
      <div class="mk-venues"><span>Kalshi ~75%</span><span>Polymarket ~75%</span></div>
      <p class="mk-sub"><span class="mk-up">✓ Democrats won, with 54+ seats.</span> Prices rose from 71% on Nov 1 to about 75% at the close; Democrats ended up netting at least seven seats, with two more races still open.</p>
    </div>
    <div class="card reveal" style="transition-delay:.2s">
      <h3>The biggest upsets</h3>
      <div class="chg-row" style="grid-template-columns:150px 1fr;padding:7px 0"><div class="l" style="font-size:12.5px">S. Carolina Senate<small>Andrews (D) won by 4.4</small></div><div class="chg-bar"><div class="f" style="--w:30;--dl:0s"></div><span class="t" style="--w:30">~30% D</span></div></div>
      <div class="chg-row" style="grid-template-columns:150px 1fr;padding:7px 0"><div class="l" style="font-size:12.5px">Texas governor<small>Hinojosa (D) beat Abbott</small></div><div class="chg-bar"><div class="f" style="--w:35;--dl:.1s"></div><span class="t" style="--w:35">~35% D</span></div></div>
      <div class="chg-row" style="grid-template-columns:150px 1fr;padding:7px 0"><div class="l" style="font-size:12.5px">Mississippi Senate<small>Colom leads, uncalled</small></div><div class="chg-bar"><div class="f hl" style="--w:9;--dl:.2s"></div><span class="t" style="--w:9">DDHQ: 9% D</span></div></div>
      <p class="mk-sub">Reuters: every upset went to Democrats. South Carolina was priced about 70% for Graham; Abbott about 65%; DDHQ had Hyde-Smith at 91%.</p>
    </div>
  </div>

  <div class="card reveal sp" style="margin-top:18px;padding:24px 26px 18px" id="spcard">
    <h3>Prices vs. outcomes · Kalshi’s Nov 1 chance a Democrat wins vs. the actual margin</h3>
    <div style="overflow-x:auto"><div style="min-width:680px"><svg id="sp" viewBox="0 0 900 420" role="img" aria-label="Scatter of Kalshi Nov 1 odds against actual Senate margins"></svg></div></div>
    <p class="src">Kalshi prices from Nov 1, 9:33 p.m. ET (DeFi Rate); margins as reported Nov 4 (Florida: On Point Politics). Markets ranked the races in the right order, but nearly every Democratic win was bigger than its price implied: Texas (72%) was won by 12 points, South Carolina (31%) by 4, Iowa (48%) by 4. Alaska and Mississippi are uncalled and not shown.</p>
  </div>

  <div class="card reveal" style="margin-top:18px;padding:24px 26px 28px">
    <h3>Kalshi’s Nov 1 prices, race by race · and what happened</h3>
    <div id="ladder"></div>
    <p class="src">Kalshi prices to buy “Democrat wins,” Nov 1, 9:33 p.m. ET via DeFi Rate; outcomes per AP/NBC. The weekly moves in Kansas (+21), Maine (+13) and Michigan (+11) turned out to be right: all three went to Democrats. Alaska was the only battleground whose price fell that week (−4).</p>
  </div>
</div></section>

<section id="early"><div class="wrap">
  <div class="kicker">04 — Early voting &amp; turnout</div>
  <h2>A record early vote — <em>and an Election Day that was less Republican than expected.</em></h2>
  <p class="sec-lede">More than 60 million Americans voted before Election Day, a midterm record, and the final turnout rate of about 49.4% is the second-highest in over a century. The Democratic edge among registered-party early voters shrank all week, as Republicans voted late. Even so, Democrats won the overall House vote by about 13 points.</p>

  <div class="evhero">
    <div class="card reveal">
      <h3>Ballots cast before Election Day</h3>
      <div class="num"><span data-count="63.3" data-dec="1" data-suf="M">0</span></div>
      <p class="n">On Point Politics’ tracker, Nov 8 (UF Election Lab had 54.4M on Nov 1). A record: all early voting in 2022 totalled 45.9M. About half the electorate voted early or by mail.</p>
    </div>
    <div class="card reveal" style="transition-delay:.1s">
      <h3>Final turnout · preliminary</h3>
      <div class="num"><span class="d" data-count="124.3" data-dec="1" data-suf="M">0</span></div>
      <p class="n">49.4% of eligible voters (Michael McDonald, Nov 4). Behind only 2018 (50.05%) since 1914, and 3.3 points above 2022. California and Washington were still counting mail ballots, so the number may rise.</p>
    </div>
    <div class="card reveal" style="transition-delay:.2s">
      <h3>Party of early voters · registered-party states</h3>
      <div class="num"><span class="d" data-count="39.4" data-dec="1" data-suf="%">0</span> <span style="font-size:18px;color:var(--mute);font-weight:600">D</span></div>
      <div class="stack"><i class="sd" style="--w:39.4;--i:0"></i><i class="so" style="--w:28.3;--i:1"></i><i class="sr" style="--w:32.3;--i:2"></i></div>
      <div class="stk-l"><span style="color:var(--D)">D 39.4</span><span>Other 28.3</span><span style="color:var(--R)">R 32.3</span></div>
      <p class="n" style="margin-top:8px">Final tally in the states that publish party (On Point). The Democratic lead: 22 pts (Oct 15) → 11 (Nov 1, UF) → 7 now — though the state mix differs between trackers.</p>
    </div>
  </div>

  <div class="grid g2" style="margin-top:18px">
    <div class="card reveal">
      <h3>Midterm turnout rate · share of eligible voters</h3>
      <div id="turn"></div>
      <p class="src">McDonald, UF Election Lab / U.S. Elections Project (preliminary, Nov 4), as reported by The World Data and Al Jazeera (48.8% in one count). 2014 and 2022 as cited by The World Data. Texas set a midterm record of 9.8M ballots (51.6% of registered voters); Georgia and Minnesota also set records.</p>
    </div>
    <div class="card reveal" style="transition-delay:.1s">
      <h3>Early-vote lead vs. the final Senate margin</h3>
      <div class="dumb" id="evdumb"></div>
      <div class="dm-axis" id="evaxis"></div>
      <div class="dm-key" style="margin-top:10px"><span><i style="background:#5d6885"></i>Registered-party lead among early voters, Nov 1</span><span><i style="background:var(--D)"></i>Senate result</span><span><i style="background:var(--R)"></i>R lead</span></div>
      <p class="src">UF Election Lab Nov 1 (Iowa, Kansas Oct 31) vs. Senate results. Early registration is not vote choice: Democrats won North Carolina by 7 points more than their early registration lead, and Kansas by 7 more, but Iowa’s early edge of 12 points shrank to a 4-point win, and Florida’s Republican lead held.</p>
    </div>
  </div>

  <div class="states" id="states"></div>

  <div class="cav">
    <div class="card reveal"><h4>Early ≠ the electorate</h4><p>The early electorate skewed older and, in Georgia and North Carolina, increasingly younger as voting went on. But Election Day added more Democrats than the pre-election tallies implied; registered-Republican leads in Florida and Kansas didn’t stop Hamilton from winning Kansas by about 5.</p></div>
    <div class="card reveal" style="transition-delay:.1s"><h4>Blind spots remain</h4><p>Georgia, Texas, Michigan and many other states don’t register by party, so partisan early-vote splits there were modelled, not observed. Texas cast 7.7M early votes and 9.8M in all — roughly 78% of its ballots before Election Day.</p></div>
    <div class="card reveal" style="transition-delay:.2s"><h4>Youth vote</h4><p>Tufts’ CIRCLE estimates 27% of young people voted, matching its early estimate and the second-highest youth midterm turnout in about 30 years. Younger and Hispanic voters swung back toward Democrats, as polls had predicted (Guardian).</p></div>
  </div>
</div></section>

<section id="sources"><div class="wrap">
  <div class="kicker">Sources &amp; method</div>
  <h2 style="font-size:34px">Where the numbers come from</h2>
  <ol class="srcs">
    <li><a href="https://www.ap.org/the-definitive-source/behind-the-news/calling-control-of-congress-in-the-2026-midterm-elections/" target="_blank" rel="noopener">Associated Press — Senate race calls and chronology (Nov 3–4)</a></li>
    <li><a href="https://www.cbsnews.com/live-updates/senate-election-results-2026/" target="_blank" rel="noopener">CBS News — Senate results live updates (through Nov 7)</a> · <a href="https://www.cbsnews.com/live-updates/house-election-results-2026/" target="_blank" rel="noopener">House results</a></li>
    <li><a href="https://www.cnbc.com/2026/11/04/democrats-2026-midterm-election-results.html" target="_blank" rel="noopener">CNBC — “Democrats sweep 2026 midterms; Republicans fail to flip a single seat” (Nov 4)</a></li>
    <li><a href="https://www.yahoo.com/news/politics/live/midterms-2026-election-results-and-latest-updates-mississippi-votes-still-being-counted-in-senate-nail-biter-after-democrats-take-control-of-congress-200037541.html" target="_blank" rel="noopener">Yahoo News — midterm results and latest updates (Nov 7–8): AP House count, Vance, Miller</a></li>
    <li><a href="https://www.nbcnews.com/politics/2026-elections/texas-senate-results" target="_blank" rel="noopener">NBC News — Texas Senate results (Senate 54–44, House estimate 259–176, Mississippi count)</a></li>
    <li><a href="https://theworlddata.com/us-senate-election-results-by-state/" target="_blank" rel="noopener">The World Data — Senate results by state, margins (Nov 4–8)</a></li>
    <li><a href="https://theworlddata.com/midterm-election-voter-turnout-in-us/" target="_blank" rel="noopener">The World Data — midterm turnout (citing McDonald/UF Election Lab, Nov 4)</a></li>
    <li><a href="https://onpointpolitics.us/maps/early-vote" target="_blank" rel="noopener">On Point Politics — early-vote tracker and 2026 poll accuracy report (Nov 8)</a></li>
    <li><a href="https://www.theguardian.com/us-news/2026/nov/05/polls-midterms-results-accurate" target="_blank" rel="noopener">The Guardian — polling experts on a “great night” (Nov 5)</a></li>
    <li><a href="https://www.covers.com/politics/2026-midterm-prediction-market-odds-tracker" target="_blank" rel="noopener">Covers — prediction-market post-mortem (Nov 4)</a> · <a href="https://www.reuters.com/world/us/democrat-andrews-south-carolina-midterm-victory-defies-prediction-markets-odds-2026-11-04/" target="_blank" rel="noopener">Reuters (headline/summary only)</a></li>
    <li><a href="https://defirate.com/odds/2026-midterms/" target="_blank" rel="noopener">DeFi Rate — Kalshi/Polymarket odds, Nov 1 (9:33 p.m. ET)</a></li>
    <li><a href="https://election.lab.ufl.edu/early-vote/2026-early-voting/" target="_blank" rel="noopener">UF Election Lab — early-vote tracker (Nov 1 readings)</a></li>
    <li><a href="https://politicalwire.com/2026/11/01/democrats-lead-in-every-key-senate-race/" target="_blank" rel="noopener">Political Wire — final NYT/Siena Senate polls (Nov 1)</a></li>
    <li><a href="https://www.larryinfishers.com/2026/11/01/polls-point-to-a-democratic-wave-but-nate-silver-warns-the-senate-leads-are-fragile/" target="_blank" rel="noopener">LarryInFishers — Nate Silver’s final averages and warning (Nov 1)</a></li>
    <li><a href="https://nymag.com/intelligencer/article/polls-show-a-midterms-blue-wave-but-beware-all-the-close-races.html" target="_blank" rel="noopener">New York Magazine — Silver Bulletin Senate averages (Oct 19–20)</a></li>
    <li><a href="https://www.financialexpress.com/world-news/us-news/us-midterms-2026-8-battleground-states-that-could-decide-control-of-the-senate/4369108/" target="_blank" rel="noopener">Financial Express / Newsweek — Silver Bulletin averages (Oct 25)</a></li>
    <li><a href="https://www.newsnationnow.com/politics/2026-midterm-elections/hyde-smith-colom-mississippi-senate/" target="_blank" rel="noopener">NewsNation — Mississippi Senate (search summary)</a> · <a href="https://www.democracydocket.com/news-alerts/new-data-suggests-peltola-likely-to-win-alaska-voters-not-confused-by-2-dan-sullivans/" target="_blank" rel="noopener">Democracy Docket — Alaska (search summary)</a></li>
  </ol>
</div></section>

<footer><div class="wrap">
  <p>Snapshot from Sunday, November 8, 2026. Counting is still under way in Alaska, Mississippi, about 19 House seats, and California and Washington’s mail ballots; all results are unofficial until states certify, and vote shares and margins will move.</p>
  <p>Some figures come from search-result summaries or secondary aggregators rather than official sources: the Senate margins (reported Nov 4, some with 91–93% counted), the Alaska and Mississippi counts, the pre-close market odds, the turnout estimate, and the early-vote tracker numbers. The Silver averages marked † are the latest I could confirm and may differ from his final published figures. Early-vote party shares are registration, not vote choice, and the UF (Nov 1) and On Point (Nov 8) trackers cover different states. “Kalshi Nov 1” prices are my last captured reading, not the final pre-close prices.</p>
</div></footer>
<div id="tip"></div>

<script>
const $=(s,r=document)=>r.querySelector(s), $$=(s,r=document)=>[...r.querySelectorAll(s)];
const NS='http://www.w3.org/2000/svg';
function el(t,a={},p){const e=document.createElementNS(NS,t);for(const k in a)e.setAttribute(k,a[k]);if(p)p.appendChild(e);return e}
const tip=$('#tip');
function showTip(e,h){tip.innerHTML=h;tip.classList.add('on');const x=Math.min(e.clientX+14,innerWidth-250);tip.style.left=x+'px';tip.style.top=(e.clientY+14)+'px'}
function hideTip(){tip.classList.remove('on')}
const sgn=v=>v<0?'R+'+Math.abs(v):'D+'+v;

const TK=[['SENATE','D 54 · R 44 · 2 UNCALLED','dd'],['HOUSE','D 254 CALLED · NBC EST. D 259','dd'],['SENATE FLIPS','7 D · 0 R','dd'],['TURNOUT','124.3M · 49.4%','tt'],['EARLY VOTE','63.3M — A RECORD','tt'],['ALASKA','PELTOLA +~600 · COUNTING','tt'],['MISSISSIPPI','COLOM +~2,500 · COUNTING','tt'],['TEXAS','TALARICO D+12.1','dd'],['MARKETS','HOUSE 93–95% · SENATE ~75% PRE-CLOSE','dd'],['GENERIC BALLOT','POLLS D+8.5 · RESULT ~D+13','dd']];
$('#tk').innerHTML=[...TK,...TK].map(t=>`<span>${t[0]} <b class="${t[2]}">${t[1]}</b></span>`).join('');

(function(){const g=$('#gticks');[-15,-10,-5,0,5,10,15].forEach(v=>{const ang=(v/15)*90*Math.PI/180;const x=150+148*Math.sin(ang),y=150-148*Math.cos(ang);const t=el('text',{x,y:y+3},g);t.textContent=v===0?'EVEN':(v<0?'R+':'D+')+Math.abs(v)})})();

/* ---------- RESULTS ---------- */
// state -> [winner party 'D'|'R'|'?', flip?, margin D+ (null if unknown)]
const RES={TX:['D',1,12.1],KS:['D',1,4.9],IA:['D',1,4.1],SC:['D',1,4.4],OH:['D',1,4.9],ME:['D',1,6.9],NC:['D',1,19.6],
 GA:['D',0,18.1],NH:['D',0,13.8],MI:['D',0,7.0],MN:['D',0,10.1],VA:['D',0,null],DE:['D',0,null],IL:['D',0,null],NJ:['D',0,null],RI:['D',0,null],MA:['D',0,null],CO:['D',0,null],NM:['D',0,null],OR:['D',0,null],
 FL:['R',0,-2.9],NE:['R',0,-6.8],WV:['R',0,null],WY:['R',0,null],KY:['R',0,null],OK:['R',0,null],AR:['R',0,null],AL:['R',0,null],TN:['R',0,null],SD:['R',0,null],LA:['R',0,null],ID:['R',0,null],MT:['R',0,null],
 AK:['?',0,null],MS:['?',0,null]};
const NAME={AL:'Alabama',AK:'Alaska',AZ:'Arizona',AR:'Arkansas',CA:'California',CO:'Colorado',CT:'Connecticut',DE:'Delaware',FL:'Florida',GA:'Georgia',HI:'Hawaii',ID:'Idaho',IL:'Illinois',IN:'Indiana',IA:'Iowa',KS:'Kansas',KY:'Kentucky',LA:'Louisiana',ME:'Maine',MD:'Maryland',MA:'Massachusetts',MI:'Michigan',MN:'Minnesota',MS:'Mississippi',MO:'Missouri',MT:'Montana',NE:'Nebraska',NV:'Nevada',NH:'New Hampshire',NJ:'New Jersey',NM:'New Mexico',NY:'New York',NC:'North Carolina',ND:'North Dakota',OH:'Ohio',OK:'Oklahoma',OR:'Oregon',PA:'Pennsylvania',RI:'Rhode Island',SC:'South Carolina',SD:'South Dakota',TN:'Tennessee',TX:'Texas',UT:'Utah',VT:'Vermont',VA:'Virginia',WA:'Washington',WV:'West Virginia',WI:'Wisconsin',WY:'Wyoming'};
// [Dem, Rep, Siena margin, Silver avg, Kalshi Nov1 D%, note]
const KEY={
TX:['James Talarico','Ken Paxton',7,'2.5',72,'Talarico won 55.1%–43.0%, the first Democratic Senate win in Texas since 1988, and 12 points — far above polls. Democrats also ousted Gov. Abbott and flipped the Texas House. Early votes were 7.7M of 9.9M cast.'],
KS:['Adam Hamilton','Roger Marshall*',5,'1.1†',61,'First Democratic senator from Kansas since 1932, ending a 94-year drought. Won 50.9%–46.0% despite registered Republicans leading the early vote. Kalshi had jumped 21 points in a week.'],
IA:['Josh Turek','Ashley Hinson',1,'1.2†',48,'Open seat. Won 50.5%–46.4%, three points better than Siena’s one-point lead; Kalshi had it a coin flip. Democrats also won the governor’s race.'],
SC:['Annie Andrews','Darline Graham*',null,'R+1.7†',31,'Andrews beat the appointed incumbent (her brother Lindsey Graham died in July) 51.1%–46.7% — the first Democratic Senate win in South Carolina since 1998 and one of the biggest market upsets (~70% Graham).'],
OH:['Sherrod Brown','Jon Husted*',5,'3',71,'Special election. Brown regained the seat Husted was appointed to, 50.0%–45.1%, matching Siena’s five-point margin almost exactly.'],
ME:['Troy Jackson','Susan Collins*',6,'2.4',73,'Jackson, who replaced Graham Platner as nominee, beat Collins 53.4%–46.5% (about 91% counted). Siena was within a point; Silver’s average was off by about 4.5.'],
NC:['Roy Cooper','Michael Whatley',null,'9.9†',97,'The biggest flip margin: Cooper won 58.7%–39.1%, about 10 points above Silver’s Oct 20 average. Nearly 2.8M early votes had been cast by Nov 1.'],
GA:['Jon Ossoff*','Mike Collins',null,'9.1†',97,'Ossoff won 59.0%, a margin of 18.1 points — about double the polling average of Oct 20.'],
NH:['Chris Pappas','John E. Sununu',null,'7.1†',92,'Won with 56.0% (about 93% counted), D+13.8, roughly double his polling lead.'],
MN:['Peggy Flanagan','Michele Tafoya',null,'4.6†',92,'Won 53.7% for a 10-point margin, about 5 points above the polling average.'],
MI:['Abdul El-Sayed','Mike Rogers',11,'3.4†',77,'Won by about 7 points (97.9% counted) and will be the first Muslim U.S. senator. The one key state where the final Siena poll (+11) overstated Democrats.'],
FL:['Angie Nixon','Ashley Moody*',null,'—',14,'Moody held the seat in the special election; On Point puts the margin near R+2.9, tighter than UNF’s R+4 poll.'],
NE:['Dan Osborn (I)','Pete Ricketts*',null,'R+0.1†',null,'Ricketts beat independent Osborn by about 6.8 points (92% counted); a sponsored poll had Osborn ahead. No Democrat ran.'],
AK:['Mary Peltola','Dan Sullivan*',2,'3.6',71,'Uncalled. Peltola leads by roughly 600 votes in a ranked-choice count that could take weeks. Kalshi’s price fell 4 points the week before.'],
MS:['Scott Colom','Cindy Hyde-Smith*',null,'—',14,'Uncalled. Colom led by about 2,500 votes; DDHQ gave Hyde-Smith a 91% chance before polls closed. Counties certify by Nov 13.']
};
const TMP={AK:[0,0],ME:[10,0],VT:[9,1],NH:[10,1],WA:[1,2],ID:[2,2],MT:[3,2],ND:[4,2],MN:[5,2],IL:[6,2],WI:[7,2],MI:[8,2],NY:[9,2],MA:[10,2],OR:[1,3],NV:[2,3],WY:[3,3],SD:[4,3],IA:[5,3],IN:[6,3],OH:[7,3],PA:[8,3],NJ:[9,3],CT:[10,3],CA:[1,4],UT:[2,4],CO:[3,4],NE:[4,4],MO:[5,4],KY:[6,4],WV:[7,4],VA:[8,4],MD:[9,4],RI:[10,4],AZ:[2,5],NM:[3,5],KS:[4,5],AR:[5,5],TN:[6,5],NC:[7,5],SC:[8,5],DE:[9,5],OK:[4,6],LA:[5,6],MS:[6,6],AL:[7,6],GA:[8,6],HI:[0,7],TX:[4,7],FL:[9,7]};
const WINCOL={D:'#4d8dff',R:'#c9303a','?':'#f5b942'};
(function(){
  const svg=$('#tm'),T=62,G=5;let i=0;
  Object.keys(TMP).forEach(s=>{
    const [c,r]=TMP[s],x=c*T+8,y=r*T+8,m=RES[s];
    const g=el('g',{class:'tile'+(m?'':' norace'),tabindex:m?0:-1,'data-s':s,role:m?'button':'img','aria-label':NAME[s]+(m?(m[0]==='D'?': Democratic win':m[0]==='R'?': Republican win':': uncalled'):': no Senate race')},svg);g.style.setProperty('--i',i++);
    el('rect',{class:'bg',x,y,width:T-G,height:T-G,rx:9,fill:m?WINCOL[m[0]]:'#141c32',stroke:m?'rgba(255,255,255,.15)':'rgba(255,255,255,.06)'},g);
    const dark=m&&m[0]==='?';
    const t=el('text',{x:x+(T-G)/2,y:y+(T-G)/2+(m?-1:5),'text-anchor':'middle','font-size':m?17:13,'font-weight':700,fill:m?(dark?'#0a1022':'#fff'):'#4a5575'},g);t.textContent=s;
    if(m){const p=el('text',{x:x+(T-G)/2,y:y+(T-G)/2+15,'text-anchor':'middle','font-size':10,fill:dark?'#0a1022':'#fff',opacity:.9},g);p.textContent=m[0]==='?'?'open':(m[2]===null?(m[0]==='D'?'D':'R'):sgn(m[2]));
      el('rect',{class:'flipring'+(m[1]?' on':''),x:x-3,y:y-3,width:T-G+6,height:T-G+6,rx:12},g);
      g.addEventListener('click',()=>sel(s));g.addEventListener('keydown',e=>{if(e.key==='Enter'||e.key===' '){e.preventDefault();sel(s)}});
    }
  });
  $('#tmleg').innerHTML=`<span><i style="background:${WINCOL.D}"></i>Democratic win</span><span><i style="background:${WINCOL.R}"></i>Republican win</span><span><i style="background:${WINCOL['?']}"></i>Uncalled</span><span><i style="border:2px dashed #fff;background:transparent"></i>Flipped from R to D</span>`;
  $('#flipbtn').addEventListener('click',e=>{const on=svg.classList.toggle('showflips');e.target.classList.toggle('on',on);e.target.textContent=on?'Hiding… tap to clear':'Highlight flips'});
  window.sel=function(s){
    $$('.tile',svg).forEach(t=>t.classList.toggle('sel',t.dataset.s===s));
    const m=RES[s],k=KEY[s],box=$('#detail');
    const res=m[0]==='D'?(m[1]?'Democratic flip':'Democratic hold'):m[0]==='R'?'Republican hold':'Uncalled';
    box.innerHTML=`<div class="fadein"><div style="display:flex;justify-content:space-between;align-items:start;gap:10px"><div><div class="mono" style="font-size:11px;color:var(--mute);letter-spacing:.1em">2026 SENATE${s==='OH'||s==='FL'?' · SPECIAL':''}</div><div class="st">${NAME[s]}</div></div><span class="badge" style="background:${WINCOL[m[0]]};color:${m[0]==='?'?'#060a15':'#fff'}">${m[0]==='?'?'Uncalled':m[0]==='D'?'D wins':'R wins'}</span></div>
    ${k?`<div class="vs"><div class="dm${m[0]==='D'?' win':''}"><small>DEMOCRAT${m[0]==='D'?' · WINNER':''}</small><b>${k[0]}</b></div><div class="rp${m[0]==='R'?' win':''}"><small>REPUBLICAN${m[0]==='R'?' · WINNER':''}</small><b>${k[1]}</b></div></div>`:'<div style="height:12px"></div>'}
    <div class="kv"><span>Result</span><b>${res}</b></div>
    <div class="kv"><span>Margin</span><b>${m[2]===null?(m[0]==='?'?'too close to call':'—'):sgn(m[2])}</b></div>
    ${k&&k[2]!==null?`<div class="kv"><span>Final Times/Siena poll</span><b>D+${k[2]}</b></div>`:''}
    ${k&&k[3]!=='—'?`<div class="kv"><span>Silver Bulletin average</span><b>${k[3].startsWith('R')?k[3]:'D+'+k[3]}</b></div>`:''}
    ${k&&k[4]!==null?`<div class="kv"><span>Kalshi (Nov 1): Democrat wins</span><b>${k[4]}%</b></div>`:''}
    ${k?`<p class="note">${k[5]}</p>`:`<p class="note">${m[0]==='D'?'Democratic':'Republican'} ${res.includes('hold')?'hold':'win'} on election night per AP; not among the closely contested races. Margins for these races weren’t captured.</p>`}</div>`;
  };
  sel('TX');
})();

// margins chart
(function(){
  const R=[['NC','N. Carolina',19.6,'Flip',1],['GA','Georgia',18.1,'Hold',0],['NH','N. Hampshire',13.8,'Hold',0],['TX','Texas',12.1,'Flip',1],['MN','Minnesota',10.1,'Hold',0],['MI','Michigan',7.0,'Hold',0],['ME','Maine',6.9,'Flip',1],['OH','Ohio',4.9,'Flip',1],['KS','Kansas',4.9,'Flip',1],['SC','S. Carolina',4.4,'Flip',1],['IA','Iowa',4.1,'Flip',1],['FL','Florida',-2.9,'R hold',0],['NE','Nebraska',-6.8,'R hold',0]];
  const lo=-8,hi=22,z=((0-lo)/(hi-lo))*100,k=100/(hi-lo);
  $('#mgrows').innerHTML=R.map((r,i)=>{const neg=r[2]<0,m=Math.abs(r[2]);
    return `<div class="mg-row"><div class="nm">${r[1]}<small>${r[0]}</small></div><div class="mg-bar" style="--z:${z}%"><div class="mg-fill ${neg?'r':'d'}" style="--m:${m};--k:${k};--dl:${i*.06}s"><span>${neg?'R':'D'}+${m}</span></div></div><div class="mg-meta"><b>${neg?'Republican hold':r[3]==='Flip'?'Democratic flip':'Democratic hold'}</b></div></div>`}).join('');
})();

/* ---------- POLLS ---------- */
function dumbbell(host,axisHost,rows,lo,hi,ticks){
  const pos=v=>((v-lo)/(hi-lo)*100)+'%';
  host.innerHTML=rows.map(r=>{const vals=[r[2],r[3],r[4]].filter(v=>v!==null);const a=Math.min(...vals),b=Math.max(...vals);
   return `<div class="dm-row"><div class="l">${r[0]}<small>${r[1]}</small></div><div class="dm-track" style="--z:${pos(0)}"><div class="dm-zero"></div><div class="dm-link" style="--a:${pos(a)};--b:${pos(b)}"></div>${r[2]!==null?`<div class="dm-pt y22" style="--a:${pos(r[2])}"><span>${sgn(r[2])}</span></div>`:''}${r[3]!==null?`<div class="dm-pt y2b" style="--a:${pos(r[3])}"><span>${sgn(r[3])}</span></div>`:''}<div class="dm-pt y26${r[4]<0?' neg':''}" style="--a:${pos(r[4])}"><span>${sgn(r[4])}</span></div></div></div>`}).join('');
  axisHost.innerHTML=ticks.map(v=>`<span style="left:${pos(v)}">${v<0?'R+'+Math.abs(v):v===0?'0':v}</span>`).join('');
}
// [label, sub, Silver avg, Siena, result]
dumbbell($('#pdumb'),$('#pdaxis'),[
 ['N. Carolina','Silver †',9.9,null,19.6],['Georgia','Silver †',9.1,null,18.1],['N. Hampshire','Silver †',7.1,null,13.8],['Texas','',2.5,7,12.1],['Minnesota','Silver †',4.6,null,10.1],['Michigan','Silver †',3.4,11,7.0],['Maine','',2.4,6,6.9],['Ohio','',3,5,4.9],['Kansas','Silver †',1.1,5,4.9],['Iowa','Silver †',1.2,1,4.1],['S. Carolina','Silver †',-1.7,null,4.4]],-4,22,[-4,0,5,10,15,20]);
// generic ballot scorecard
(function(){
  const P=[['On Point Polling',13.1],['AtlasIntel',14.1],['Big Data Poll',12.3],['Tufts / YouGov',12],['Quinnipiac',12],['NYT / Siena',11],['Emerson',10],['CNN',10],['Fox News',9],['CBS News',8],['Reuters / Ipsos',8],['NBC News',7],['Echelon Insights',5],['Harvard / Harris',4]];
  const res=13,mx=16;
  $('#gbrows').innerHTML=P.map((r,i)=>{const w=r[1]/mx*100,miss=res-r[1];
    return `<div class="chg-row" style="grid-template-columns:150px 1fr;padding:6px 0"><div class="l" style="font-size:13px">${r[0]}<small>${miss>0?'under by '+miss.toFixed(1):'over by '+Math.abs(miss).toFixed(1)}</small></div><div class="chg-bar" style="position:relative"><div class="f" style="--w:${w};--dl:${i*.05}s"></div><div style="position:absolute;top:-3px;bottom:-3px;left:${res/mx*100}%;width:2px;background:var(--T);z-index:2"></div><span class="t" style="--w:${w}">D+${r[1]}</span></div></div>`}).join('')+'<div class="mono" style="font-size:10.5px;color:var(--T);margin-top:6px;text-align:right">▎ amber line = projected result, D+13.0</div>';
})();

/* ---------- MARKETS ---------- */
(function(){
  // Kalshi Nov1 D% vs actual margin scatter
  const COLS=p=>p>=75?'#5b8cff':p>=58?'#9dbcff':p>=42?'#f5b942':p>=25?'#ff9f9b':'#f4656a';
  const P=[['GA',97,18.1,-16],['NC',97,19.6,16],['NH',92,13.8,0],['MN',92,10.1,0],['TX',72,12.1,0],['MI',77,7.0,18],['ME',73,6.9,-14],['OH',71,4.9,-6],['KS',61,4.9,10],['IA',48,4.1,0],['SC',31,4.4,0],['FL',14,-2.9,0]];
  const svg=$('#sp'),W=900,H=420,L=56,Rr=24,T=18,B=48,xmin=0,xmax=100,ymin=-6,ymax=22,x=v=>L+(v-xmin)/(xmax-xmin)*(W-L-Rr),y=v=>T+(1-(v-ymin)/(ymax-ymin))*(H-T-B);
  [0,25,50,75,100].forEach(v=>{el('line',{x1:x(v),x2:x(v),y1:T,y2:H-B,stroke:v===50?'#5d6885':'rgba(255,255,255,.07)','stroke-dasharray':v===50?'5 4':''},svg);const t=el('text',{x:x(v),y:H-B+20,class:'ptx','text-anchor':'middle'},svg);t.textContent=v+'%'});
  [-5,0,5,10,15,20].forEach(v=>{el('line',{x1:L,x2:W-Rr,y1:y(v),y2:y(v),stroke:v===0?'#5d6885':'rgba(255,255,255,.07)','stroke-dasharray':v===0?'5 4':''},svg);const t=el('text',{x:L-10,y:y(v)+4,class:'ptx','text-anchor':'end'},svg);t.textContent=v<0?'R+'+Math.abs(v):v===0?'tied':'D+'+v});
  const xl=el('text',{x:(L+W-Rr)/2,y:H-8,class:'ptx','text-anchor':'middle'},svg);xl.textContent='Kalshi chance a Democrat wins (Nov 1)';
  const yl=el('text',{x:14,y:(T+H-B)/2,class:'ptx','text-anchor':'middle',transform:`rotate(-90 14 ${(T+H-B)/2})`},svg);yl.textContent='Actual margin (points)';
  P.forEach((p,i)=>{const g=el('g',{class:'pt'},svg);g.style.setProperty('--i',i);const px=x(p[1])+p[3];
    el('circle',{cx:px,cy:y(p[2]),r:15,fill:COLS(p[1]),stroke:'#060a15','stroke-width':2},g);
    const t=el('text',{x:px,y:y(p[2])+4,class:'plbl','text-anchor':'middle'},g);t.textContent=p[0];
    g.addEventListener('mousemove',e=>showTip(e,`<b>${p[0]}</b><br>Kalshi ${p[1]}% D<br>Result ${sgn(p[2])}`));g.addEventListener('mouseleave',hideTip)});
  // ladder with outcomes
  const LD=[['GA','Georgia','Ossoff v M. Collins',97,'D','D+18.1'],['NC','N. Carolina','Cooper v Whatley',97,'D','D+19.6 · flip'],['NH','N. Hampshire','Pappas v J. Sununu',92,'D','D+13.8'],['MN','Minnesota','Flanagan v Tafoya',92,'D','D+10.1'],['MI','Michigan','El-Sayed v Rogers',77,'D','D+7.0'],['ME','Maine','Jackson v Collins',73,'D','D+6.9 · flip'],['TX','Texas','Talarico v Paxton',72,'D','D+12.1 · flip'],['AK','Alaska','Peltola v Sullivan',71,'?','uncalled'],['OH','Ohio','Brown v Husted',71,'D','D+4.9 · flip'],['KS','Kansas','Hamilton v Marshall',61,'D','D+4.9 · flip'],['IA','Iowa','Turek v Hinson',48,'D','D+4.1 · upset'],['SC','S. Carolina','Andrews v D. Graham',31,'D','D+4.4 · upset'],['FL','Florida','Nixon v Moody',14,'R','R+2.9'],['MS','Mississippi','Colom v Hyde-Smith',14,'?','uncalled'],['LA','Louisiana','Open seat',13,'R','R held']];
  $('#ladder').innerHTML=LD.map((r,i)=>{const cls=r[4]==='D'?'d':r[4]==='R'?'r':'q';const up=r[3]<50&&r[4]==='D';
    return `<div class="ld-row"><div class="l">${r[1]}<small>${r[2]}</small></div><div class="ld-bar"><div class="f ${r[3]>50?'':'r'}" style="--w:${r[3]};--dl:${i*.05}s"></div></div><div class="ld-v">${r[3]}% D</div><div class="ld-o ${cls}${up?' up':''}">${r[5]}</div></div>`}).join('');
})();

/* ---------- EARLY VOTE ---------- */
(function(){
  const TR=[['2014','36.7%',36.7,0],['2022','46.1%',46.1,0],['2026 (prelim.)','49.4% · 124.3M voters',49.42,1],['2018','50.05%',50.05,0]];
  $('#turn').innerHTML=TR.map((r,i)=>`<div class="chg-row" style="grid-template-columns:150px 1fr"><div class="l">${r[0]}<small>${r[1]}</small></div><div class="chg-bar"><div class="f${r[3]?' hl':''}" style="--w:${r[2]/55*100};--dl:${i*.1}s"></div><span class="t" style="--w:${r[2]/55*100};color:${r[3]?'#f5b942':'#9dbcff'}">${r[2]}%</span></div></div>`).join('');
  // early lead vs Senate result
  dumbbell($('#evdumb'),$('#evaxis'),[['N. Carolina','early D 38.4 · R 26.2',12.2,null,19.6],['Iowa','early D 46.2 · R 34.1',12.1,null,4.1],['Kansas','early D 41.2 · R 43.6',-2.4,null,4.9],['Florida','early D 37.8 · R 40.3',-2.5,null,-2.9]],-5,25,[-5,0,10,20]);
  const ST=[
   ['Texas','5.4M','Talarico D+12.1','7.70M early votes (Nov 1)',null,'Early votes were about 78% of the 9.9M Senate votes cast. 41% of registered voters had voted early; total turnout was a midterm-record 9.8M ballots (51.6% of registered).'],
   ['Florida','5.40M','Moody R+2.9','5.40M early votes (Nov 1)',[37.8,22.0,40.3],'Republicans led the early electorate by 2.5 points (in person: R 43.2%, D 34.9%; mail: D 42.9%, R 35.0%) — and held the Senate seat by about 3.'],
   ['Georgia','2.8M','Ossoff D+18.1','2.83M early votes (Nov 1)',null,'Early voting ended Oct 30 with a midterm record of more than 2.8M ballots and a growing share of voters aged 18–25 (7.3%). Ossoff won by double the polling average.'],
   ['North Carolina','2.8M','Cooper D+19.6','2.82M early votes (Nov 1)',[38.4,35.5,26.2],'Democrats’ early lead over Republicans narrowed from 27 points to 12, but unaffiliated voters (35%) broke heavily Democratic: Cooper won by nearly 20.'],
   ['Kansas','422k','Hamilton D+4.9','422k early votes (Oct 31)',[41.2,15.2,43.6],'Registered Republicans outnumbered Democrats among early voters by 2.4 points; Hamilton still won, becoming the first Democratic senator since 1932.'],
   ['Iowa','440k','Turek D+4.1','440k early votes (Oct 31)',[46.2,19.6,34.1],'Democrats banked a 12-point edge among early voters; the final margin was 4, as Republicans turned out on Election Day. Turek still won.']];
  $('#states').innerHTML=ST.map((s,i)=>`<div class="card stc reveal" style="transition-delay:${(i%3)*.06}s"><div class="top"><b>${s[0]}</b><span>early vote → result</span></div><div class="big">${s[4]?'':''}${s[3].split(' ')[0]}</div><p style="margin-bottom:10px">${s[3].substring(s[3].indexOf(' ')+1)}</p>${s[4]?`<div class="stack"><i class="sd" style="--w:${s[4][0]};--i:0"></i><i class="so" style="--w:${s[4][1]};--i:1"></i><i class="sr" style="--w:${s[4][2]};--i:2"></i></div><div class="stk-l"><span style="color:var(--D)">D ${s[4][0]}%</span><span>Other ${s[4][1]}%</span><span style="color:var(--R)">R ${s[4][2]}%</span></div>`:''}<div class="res">Result: ${s[2]}</div><p style="margin-top:10px">${s[5]}</p></div>`).join('');
})();

function countUp(e){const to=parseFloat(e.dataset.count),dec=+e.dataset.dec||0,pre=e.dataset.pre||'',suf=e.dataset.suf||'';
  if(matchMedia('(prefers-reduced-motion: reduce)').matches){e.textContent=pre+to.toFixed(dec)+suf;return}
  const t0=performance.now(),dur=1600;(function f(t){const p=Math.min(1,(t-t0)/dur),k=1-Math.pow(1-p,3);e.textContent=pre+(to*k).toFixed(dec)+suf;if(p<1)requestAnimationFrame(f)})(t0)}
const io=new IntersectionObserver(es=>es.forEach(en=>{if(en.isIntersecting){en.target.classList.add('in');$$('[data-count]',en.target).forEach(countUp);io.unobserve(en.target)}}),{threshold:.12,rootMargin:'0px 0px -6% 0px'});
$$('.reveal,.tilemap,#mgcard,#mgrows,#pdumb,#evdumb,#gbrows,#turn,#ladder,.gauge,#spcard,#open2').forEach(e=>io.observe(e));
const io2=new IntersectionObserver(es=>es.forEach(en=>{if(en.isIntersecting){en.target.classList.add('in');io2.unobserve(en.target)}}),{threshold:.1});
$$('.stack,.ring,.dm-row,.chg-row,.mg-row,.ld-row,.vsbar,#tm,.gauge,#sp').forEach(e=>io2.observe(e));
addEventListener('scroll',()=>{const h=document.documentElement;$('#prog').style.width=(h.scrollTop/(h.scrollHeight-h.clientHeight)*100)+'%'},{passive:true});
</script>
</body>
</html>