@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#0c1421;--panel:#131e2e;--line:#263144;--text:#edf2fa;--muted:#9aa9bd;--blue:#78a7ff;--red:#f68c95;--purple:#bda5fa;--grey:#344052}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans',system-ui,sans-serif;font-size:17px}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--blue);outline-offset:5px}.shell{max-width:1800px;margin:auto;display:grid;grid-template-columns:236px minmax(0,1fr)}aside{padding:40px 26px;border-right:1px solid var(--line);height:100vh;position:sticky;top:0;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;letter-spacing:2px;font-size:16px;font-weight:700}.brand small{display:block;font-size:12px;color:var(--muted);letter-spacing:1.5px;margin-top:6px}.brand-icon{display:flex;align-items:center;justify-content:center;width:41px;height:41px;background:#24334c;border-radius:10px;font-family:'Space Grotesk',sans-serif;font-size:26px;letter-spacing:-2px}.brand-icon span{font-size:14px;color:var(--blue);align-self:flex-end;margin-bottom:8px}nav{display:grid;gap:9px;margin-top:58px}nav a{padding:14px 12px;color:var(--muted);border-radius:8px;font-size:16px;display:flex;gap:14px}nav a:hover,nav a.active{background:#1d2c43;color:#dce8ff}nav a span{width:17px;text-align:center;font-size:20px}.side-note{margin-top:auto;border-top:1px solid var(--line);padding-top:25px;color:var(--muted);line-height:1.7}.tiny{font-size:12px;letter-spacing:1.4px}.side-note p{color:#c3cfe0;font-size:16px}.side-note small{font-size:13px}.flag{display:flex;width:35px;gap:3px;margin:18px 0}.flag i{width:9px;height:4px;background:var(--blue)}.flag i:nth-child(2){background:#ddd}.flag i:last-child{background:var(--red)}main{padding:0 42px;min-width:0}header{height:83px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.breadcrumb{font-size:13px;letter-spacing:1.7px;color:var(--muted)}.breadcrumb span{margin:0 12px;color:#526178}.clock{font-size:14px;color:var(--muted)}.hero{display:flex;justify-content:space-between;align-items:center;padding:40px 0 30px;gap:20px}.eyebrow{font-size:13px;letter-spacing:1.7px;font-weight:600;color:#a9b9d0}.pulse{display:inline-block;width:6px;height:6px;background:#a5b6d0;border-radius:50%;margin-right:7px}h1{font-family:'Space Grotesk',system-ui,sans-serif;font-size:clamp(34px,4vw,56px);letter-spacing:-2.5px;line-height:1.1;margin:16px 0 13px;font-weight:500}.hero p{color:var(--muted);font-size:17px;margin:0}.hero-controls{display:flex;align-items:flex-end;flex-direction:column;gap:13px}.connection{font-size:14px;color:var(--muted)}.connection.ok{color:#8dd6b4}.connection.warn{color:#efc786}.hero-controls button{background:#e0e9f6;color:#152034;border:0;padding:12px 17px;border-radius:7px;font-weight:700;font-size:15px}.hero-controls button span{margin-right:8px;font-size:20px}.autolabel{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}input[type=checkbox]{accent-color:#8bb4ff}.notice{border:1px solid #30415b;border-radius:8px;background:#162235;padding:13px 17px;font-size:15px;color:#b9c9df;line-height:1.6;margin-bottom:30px}.notice.warn{border-color:#755d35;background:#292519;color:#e4ca9d}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;gap:15px}h2,h3{font-family:'Space Grotesk',system-ui,sans-serif;font-weight:500;margin:0}h2{font-size:22px;letter-spacing:-.4px}h3{font-size:18px}.tag{font-size:12px;letter-spacing:1px;padding:6px 8px;border:1px solid var(--line);border-radius:4px;color:var(--muted);white-space:nowrap}.chambers{display:grid;grid-template-columns:1fr 1fr;gap:20px}.card{border:1px solid var(--line);background:var(--panel);border-radius:12px;overflow:hidden}.chamber{padding:23px 24px 19px}.card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.card-top>span:not(.tag){font-size:13px;color:var(--muted)}.party-scores{display:flex;align-items:center;justify-content:space-between;margin:29px 0 20px}.party-scores>div:last-child{text-align:right}.party-scores small{font-size:12px;letter-spacing:.7px}.party-scores strong{font-family:'Space Grotesk',system-ui,sans-serif;font-weight:500;display:block;font-size:54px;line-height:1.2;letter-spacing:-2px}.dem{color:var(--blue)}.rep{color:var(--red)}.majority{font-size:13px;text-align:center;color:var(--muted)}.majority span{display:block;color:#d7e0ee;font-size:21px;margin-bottom:6px}.seatbar,.pollbar{height:12px;border-radius:4px;display:flex;background:var(--grey);position:relative}.seatbar:after{content:'';position:absolute;left:50%;top:-5px;width:1px;height:22px;background:#e8eefb}.segment{height:100%}.blue{background:var(--blue)}.red{background:var(--red)}.purple{background:var(--purple)}.neutral{background:var(--grey)}.seats-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:13px;margin-top:13px;gap:10px}.dots{display:grid;grid-template-columns:repeat(29,1fr);gap:3px;margin-top:23px}.dots i{aspect-ratio:1;border-radius:2px;background:var(--grey)}.dots i.blue{background:var(--blue)}.dots i.red{background:var(--red)}.dots i.purple{background:var(--purple)}.senate-dots{grid-template-columns:repeat(20,1fr);gap:5px;min-height:132px;align-content:center}.card-foot{font-size:13px;line-height:1.6;color:var(--muted);margin:18px 0 0;border-top:1px solid var(--line);padding-top:14px}.legend{display:flex;align-items:center;flex-wrap:wrap;gap:16px;color:var(--muted);font-size:13px;margin:16px 0 34px}.legend span{display:flex;align-items:center;gap:6px}.legend i{height:7px;width:7px;border-radius:2px;background:var(--grey)}.legend i.blue{background:var(--blue)}.legend i.red{background:var(--red)}.legend i.purple{background:var(--purple)}.legend small{margin-left:auto;font-size:13px}.polling-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:20px;margin-bottom:35px}.ballot,.context{padding:24px}.subtext{font-size:14px;color:var(--muted);line-height:1.6;margin:9px 0 0}.poll-scores{display:flex;justify-content:space-between;align-items:center;margin:29px 0 20px;gap:12px}.poll-scores span{font-family:'Space Grotesk',sans-serif;font-size:38px;letter-spacing:-1.5px}.poll-scores small{display:block;font-size:13px;color:var(--muted);margin-top:4px}.poll-scores>div:last-child{text-align:right}.margin{text-align:center}.margin strong{font-size:23px;color:#d8e3f3;font-weight:500}.pollbar{height:10px}.poll-bottom{display:flex;justify-content:space-between;gap:12px;margin-top:13px;color:var(--muted);font-size:13px}.context{background:linear-gradient(135deg,#1a2a41,#142030)}.context h2{font-size:30px;line-height:1.15;margin:16px 0}.context p{color:#b5c3d5;font-size:15px;line-height:1.7}.context-row{border-top:1px solid #2b3b52;display:flex;justify-content:space-between;padding:11px 0;font-size:14px}.context-row span,.context small{color:var(--muted)}.context small{font-size:12px;line-height:1.5;display:block}.context-row strong{font-weight:500}.search-label input{background:#141f2f;color:var(--text);border:1px solid var(--line);border-radius:7px;padding:10px 13px;width:185px;font-size:14px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{color:var(--muted);font-size:12px;font-weight:500;letter-spacing:1px;padding:16px 23px;background:#172335}td{padding:17px 23px;border-top:1px solid var(--line);font-size:15px}td:first-child{font-weight:600}td:last-child{font-size:13px;color:var(--muted)}.lead{font-size:14px;border-radius:4px;padding:5px 7px;background:#21324c;display:inline-block}.lead.rep{background:#372733}.empty{text-align:center;color:var(--muted);padding:35px}.text-button{width:100%;border:0;border-top:1px solid var(--line);padding:15px;background:transparent;color:#b6c9e8;font-size:14px}.text-button:hover{background:#1d2a3d}#sources{margin-top:36px}.source-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.source{padding:22px}.source p{font-size:14px;color:var(--muted);line-height:1.6}.source .source-time{font-size:13px}.source a{font-size:14px;color:#a7c3f6}.method{font-size:13px;line-height:1.8;color:var(--muted);max-width:950px;margin:18px 0 30px}footer{border-top:1px solid var(--line);padding:25px 0 30px;display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:13px}.footer-brand{letter-spacing:2px}.footer-brand b{color:var(--blue);font-weight:500}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.mobile-break{display:none}@media(min-width:1450px){main{padding:0 60px}.senate-dots{min-height:170px}}@media(max-width:1100px){.shell{grid-template-columns:190px minmax(0,1fr)}aside{padding:32px 18px}main{padding:0 25px}.chamber{padding:20px 18px}.party-scores small{font-size:12px}.card-top h3{font-size:16px}.polling-grid{grid-template-columns:1.5fr 1fr}.ballot .card-top{align-items:flex-start;flex-direction:column}.senate-dots{min-height:100px}.poll-scores span{font-size:31px}}@media(max-width:820px){.shell{display:block}aside{position:static;height:auto;padding:20px 22px;border-right:0;border-bottom:1px solid var(--line);flex-direction:row;align-items:center;justify-content:space-between}.brand-icon{width:35px;height:35px}nav{margin:0;display:flex;gap:5px}nav a{padding:10px;font-size:14px}nav a span,nav a:nth-child(2),nav a:nth-child(4),nav a:nth-child(5),.side-note{display:none}.brand{font-size:14px}main{padding:0 22px}header{height:55px}.breadcrumb{font-size:12px;letter-spacing:1px}.clock{font-size:12px}.hero{padding:30px 0 24px}h1{font-size:43px}.hero p{font-size:15px}.eyebrow{font-size:12px}.chambers{gap:14px}.party-scores strong{font-size:45px}.polling-grid{gap:14px}.poll-scores span{font-size:32px}td,th{padding:15px 18px}.legend small{width:100%;margin-left:0}}@media(max-width:600px){main{padding:0 17px}.brand small{font-size:12px}.brand{gap:8px}aside{padding:17px}.clock{max-width:90px;text-align:right;line-height:1.6}.breadcrumb span{margin:0 6px}.hero{align-items:flex-start;position:relative;padding-bottom:74px}.hero-controls{position:absolute;bottom:19px;left:0;right:0;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.hero-controls button{padding:9px 11px;font-size:13px}.hero-controls .connection{font-size:12px;max-width:100px}.autolabel{font-size:12px;gap:3px}.hero h1{font-size:43px;margin-top:13px;letter-spacing:-2px}.mobile-break{display:block}.hero p{margin-top:8px;font-size:15px}.notice{font-size:14px;padding:12px 14px;margin-bottom:25px}.chambers,.polling-grid,.source-grid{grid-template-columns:1fr}.chamber{padding:22px}.card-top h3{font-size:18px}.party-scores strong{font-size:54px}.party-scores small{font-size:12px}.dots{gap:4px}.senate-dots{min-height:100px;gap:5px}.section-heading h2{font-size:21px}.tag{font-size:12px;letter-spacing:.5px}.legend{gap:12px;margin-bottom:27px}.polling-grid{margin-bottom:28px}.ballot .card-top{flex-direction:row;align-items:center}.ballot .card-top h2{font-size:20px}.ballot,.context{padding:22px}.poll-scores span{font-size:38px}.context h2 br{display:none}.context h2{font-size:28px}.poll-bottom{font-size:12px;line-height:1.5}.section-heading:has(.search-label){flex-direction:column;align-items:stretch}.search-label input{width:100%;font-size:15px;padding:12px}.subtext{font-size:13px}.race-table td,.race-table th{padding:15px 12px;font-size:14px}.race-table th{font-size:12px}.race-table td:last-child,.race-table th:last-child{display:none}footer{flex-direction:column;gap:12px}.source-grid{gap:12px}.method{font-size:13px}#sources{margin-top:29px}}

/* Keep larger mobile text clear of adjacent controls. */
@media(max-width:600px){header{height:auto;min-height:70px;padding:12px 0}.breadcrumb{line-height:1.6;letter-spacing:.5px}.clock{flex-shrink:0;max-width:110px}.hero{flex-direction:column;padding-bottom:24px;gap:20px}.hero-controls{position:static;flex-wrap:wrap;width:100%;gap:14px}.hero-controls .connection{max-width:none}.hero-controls button{padding:12px 14px}.autolabel{min-height:32px}.card-top,.section-heading{flex-wrap:wrap}.party-scores{gap:8px}.party-scores>div{min-width:0}.party-scores small{display:block;max-width:115px;line-height:1.5;letter-spacing:0}.majority{max-width:90px}.seats-meta,.poll-bottom{flex-wrap:wrap;line-height:1.6}.poll-scores small{max-width:110px;line-height:1.5}.brand{letter-spacing:1px}nav a{padding:9px 7px}.ballot .card-top{flex-wrap:wrap}}

[hidden]{display:none!important}
.view-tabs{display:flex;gap:10px;padding:20px 0 0;border-bottom:1px solid var(--line)}
.view-tabs button{background:transparent;color:var(--muted);border:0;border-bottom:3px solid transparent;padding:13px 18px;font-weight:700;font-size:16px}
.view-tabs button[aria-selected=true]{color:var(--text);border-color:var(--blue)}
.race-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}
.race-controls input,.race-controls select{background:#18263a;color:var(--text);border:1px solid var(--line);border-radius:8px;padding:12px;font-size:16px}
.race-controls input{min-width:210px}
.race-results{padding:5px 22px;margin-bottom:34px;max-height:720px;overflow:auto}
.candidate-race{padding:20px 0;border-bottom:1px solid var(--line)}
.candidate-race:last-child{border:0}
.candidate-race h3{font-size:20px}
.race-meta{font-size:14px;color:var(--muted)}
.candidate-row{display:flex;justify-content:space-between;gap:16px;padding:8px 0;font-size:15px}
.candidate-row strong{white-space:nowrap;font-weight:600}
@media(max-width:820px){nav{display:none}.view-tabs{padding-top:10px}}
@media(max-width:600px){.view-tabs button{font-size:16px;padding:13px 8px}.race-controls{align-items:stretch}.race-controls label{width:100%}.race-controls input,.race-controls select{width:100%}.candidate-row{flex-direction:column;gap:3px}.candidate-row strong{white-space:normal}.race-results{padding:3px 16px}.candidate-race h3{font-size:18px}}

/* Per-kiesdistrict uitslagen, met drie vaste kolommen zoals in de bronlijst. */
.race-results{padding:0 22px}
.candidate-race{padding:18px 0 23px}
.race-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px}
.race-heading h3{font-size:20px}
.race-call{color:var(--muted);font-size:14px;text-align:right}
.candidate-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(90px,.7fr) minmax(50px,.3fr);gap:12px;align-items:center}
.candidate-labels{border-bottom:1px solid var(--line);color:var(--muted);padding:15px 0 7px;font-size:14px}
.candidate-row{display:grid;justify-content:initial;padding:9px 0;font-size:16px}
.candidate-name{display:flex;align-items:baseline;min-width:0;gap:8px;overflow-wrap:anywhere}
.party-dot{flex:none;width:11px;height:11px;border-radius:50%;background:var(--purple)}
.party-dot.dem{background:var(--blue)}
.party-dot.rep{background:var(--red)}
.party-dot.other{background:var(--purple)}
.incumbent-note,.candidate-race .race-meta{color:var(--muted);font-size:13px;margin:10px 0 0}
@media(max-width:600px){.race-results{padding:0 15px}.candidate-grid{grid-template-columns:minmax(0,1.5fr) minmax(60px,.65fr) minmax(34px,.25fr);gap:7px}.candidate-row{flex-direction:initial;gap:7px;font-size:14px}.candidate-labels{font-size:13px}.race-heading h3{font-size:18px}.race-call{font-size:12px}.candidate-name{gap:6px}.party-dot{width:10px;height:10px}}

/* Interactieve races en opvallende wijzigingsmeldingen. */
.updates-banner{display:flex;align-items:center;gap:12px;padding:16px 18px;margin:16px 0 22px;border:2px solid #edbf5d;border-radius:12px;background:#42301a;color:#fff0c9;box-shadow:0 0 0 4px rgba(237,191,93,.12)}
.updates-banner strong{font-size:17px}
.updates-banner button{border:1px solid #e5c37f;border-radius:8px;background:#ffe0a1;color:#352312;padding:9px 13px;font-weight:700}
.updates-banner #updates-dismiss{margin-left:auto;background:transparent;color:#fff0c9;padding:6px 12px;font-size:24px;line-height:1}
.updates-pulse{width:13px;height:13px;border-radius:50%;background:#ffd06d;flex:none;box-shadow:0 0 0 5px rgba(255,208,109,.28);animation:resultPulse 1.4s ease-in-out infinite}
@keyframes resultPulse{50%{box-shadow:0 0 0 12px rgba(255,208,109,0)}}
.new-only{display:flex;align-items:center;gap:8px;margin-left:auto;cursor:pointer;font-weight:700}
.new-only input{width:18px;height:18px}
#new-count{background:#f2c46d;color:#2b1d0c;border-radius:20px;padding:3px 8px}
.candidate-race{padding:0;border-bottom:1px solid var(--line)}
.candidate-race summary{cursor:pointer;list-style:none;padding:17px 0}
.candidate-race summary::-webkit-details-marker{display:none}
.candidate-race summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.candidate-race summary:hover .race-title{text-decoration:underline}
.candidate-race summary:after{content:'⌄';font-size:22px;color:var(--muted);transition:transform .2s}
.candidate-race[open] summary:after{transform:rotate(180deg)}
.candidate-race .race-body{padding:0 0 20px}
.candidate-race.race-updated{background:linear-gradient(90deg,rgba(255,202,93,.14),transparent 85%);border-left:4px solid #f2c46d;padding-left:12px;margin-left:-16px}
.new-badge{font-size:11px;letter-spacing:.5px;font-weight:800;background:#f2c46d;color:#2d200d;border-radius:20px;padding:5px 8px}
.vote-delta{display:inline-block;margin-left:8px;padding:2px 6px;border-radius:5px;background:#31583e;color:#bdffd2;font-size:12px;font-style:normal;font-weight:700}
.view-tabs button[aria-selected=false]:not(:first-child){color:var(--muted)}
@media(max-width:600px){.updates-banner{flex-wrap:wrap}.updates-banner strong{flex:1}.updates-banner #updates-jump{width:calc(100% - 55px)}.updates-banner #updates-dismiss{margin-left:0}.new-only{width:100%;margin-left:0}.race-heading{flex-wrap:wrap;align-items:center}.race-title{flex:1;min-width:160px}.race-call{order:3;margin-left:auto}.new-badge{order:2}.candidate-race summary:after{order:4}.vote-delta{display:block;width:max-content;margin:4px 0 0}}
@media(prefers-reduced-motion:reduce){.updates-pulse{animation:none}}

.view-tabs button.has-updates{color:#ffe1a0!important;text-shadow:0 0 12px rgba(255,208,109,.55)}
