:root {
  color-scheme:dark; background:#17191b; color:#e2edf6;
  font:16px/1.3 "Segoe UI",Arial,sans-serif;
  --panel:#182736; --edge:#34495c; --muted:#b6c9d9;
  --locality-underline:#ff7180; --mint:#a9f5d7; --stripe:#a5bed1; --ink:#edf6ff;
  --chart-portrait:clamp(32px,4.5vw,42px);
}
* {box-sizing:border-box}
[hidden] {display:none!important}
#public-validation-audio{flex:none;color:var(--ink);background:var(--panel);border:1px solid var(--stripe);border-radius:4px;padding:2px 7px;font:600 .8rem/1.2 "Segoe UI",sans-serif;cursor:pointer}
#public-rotation-pause,#public-fullscreen{flex:none;color:var(--ink);background:var(--panel);border:1px solid var(--stripe);border-radius:4px;padding:2px 7px;min-height:24px;font:600 .8rem/1.2 "Segoe UI",sans-serif;cursor:pointer}
#public-rotation-pause:focus-visible,#public-validation-audio:focus-visible,#public-fullscreen:focus-visible{outline:2px solid var(--mint);outline-offset:2px}
#public-fullscreen-hint{font:600 .8rem/1.2 "Segoe UI",sans-serif}#public-fullscreen-hint:empty{display:none}
.public-sr-text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.public-skip-link{position:fixed;inset:.5rem auto auto .5rem;z-index:6;padding:.45rem .7rem;background:var(--panel);color:var(--ink);outline:2px solid var(--mint)}
.public-skip-link:not(:focus){width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body:has(#public-figures:focus) .broadcast-header{position:relative}
body,h1,h2,h3,p,ul,ol,dl,dd {margin:0}
.broadcast-header{position:sticky;top:0;z-index:5;flex:none;background:#142330}
#broadcast-training-label{display:block;padding:.08rem .6rem;border-radius:2px;background:var(--info-highlight);color:#302203;text-align:center;font-weight:750;line-height:1.2}
main {width:100%;margin:auto;padding:clamp(8px,1.1vw,18px)}
h1,h2,h3 {line-height:1.2}
.context,.coverage {display:flex;align-items:center;gap:.6rem}
.national-board>header {
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.1rem .5rem;align-items:center;
  padding-block:clamp(5px,.65vh,8px) 4px;border-block-end:4px solid #f07c8b;
  margin-block-end:4px;
}
.context-title {display:flex;align-items:center;gap:.15rem .6rem;min-width:0}
#national-heading {flex:1 1 auto;text-decoration:none}
.context-title :is(#result-notice,#result-time) {flex:none}
@media(min-width:741px) and (max-width:1079px){
  .national-board>header {grid-template-columns:auto auto minmax(0,1fr);grid-template-rows:auto minmax(1.4rem,auto)}
  .context-title {display:contents}
  #national-heading {grid-column:1/-1;grid-row:1}
  #result-notice {grid-column:1;grid-row:2}
  #result-time {grid-column:2;grid-row:2}
  #connection {grid-column:3;grid-row:2}
}
@media(max-width:740px){
  .national-board>header {align-content:center}
  .context-title {display:contents}
  #national-heading {grid-column:1/-1;grid-row:1}
  #result-notice {grid-column:1;grid-row:2;justify-self:start}
  #result-time {grid-column:2;grid-row:2;text-align:end}
  #connection {grid-column:1/-1;grid-row:3;justify-self:end}
}
#result-notice {font-size:clamp(.76rem,.95vw,.95rem);line-height:1.25;padding:.15rem .5rem;border-radius:3px;background:#bdf4d9;color:#075439}
#result-notice[data-kind=withdrawn] {background:#fbd3d5;color:#7d2534}
#connection {font-size:.78rem;letter-spacing:0;font-weight:500;text-align:right}
h1 {min-width:0;color:var(--mint);font-size:clamp(18px,1.6vw,28px);font-weight:750;text-decoration:underline;text-decoration-color:var(--locality-underline);text-underline-offset:.15em;text-decoration-thickness:2px;overflow-wrap:anywhere}
.flag {display:inline-block;flex:none;width:1.45em;height:.94em;background:linear-gradient(to bottom,#ce1126 0 30%,#fff 30% 35%,#0c1c8c 35% 65%,#fff 65% 70%,#3a7728 70% 100%)}
.context {grid-column:1/-1;font-size:.8rem;color:var(--muted);padding:.12rem 0}
.coverage {flex-wrap:wrap;min-height:2.4rem;padding:.3rem .6rem;background:#101f30;border-left:2px solid #99b2c5;font-size:.92rem}
#status-badge {background:#e9f1f7;color:#183149;border:1px solid #aabfcf;border-radius:3px;padding:.08em .35em}
#status-badge {font-size:.88rem}
.race {display:grid;grid-template-columns:auto clamp(18.5rem,33vw,35rem) minmax(0,1fr);align-items:center;gap:clamp(6px,.8vw,16px);min-width:0;padding:0 .7rem;background:#272c32;border-bottom:2px solid #b9cad7;font-family:"Election Score Numbers","Arial Narrow",sans-serif}
/* The clock divider fills its row, including the band's vertical padding. */
.race-record {display:grid;align-self:stretch;align-content:center;border-inline-end:3px solid #acd0e1;padding:.22rem .6rem .22rem 0}
#broadcast-clock,.national-race-context {display:grid;line-height:1.08}
.race-record small {display:block;text-transform:uppercase;letter-spacing:.05em;font-size:clamp(9px,.74vw,13px)}
#broadcast-date,.national-race-context>span:not(.flag),#race-coverage {font:650 clamp(11px,.91vw,17px)/1.12 "Segoe UI",Arial,sans-serif}
#broadcast-time {font-variant-numeric:tabular-nums;font-size:clamp(18px,1.95vw,36px);white-space:nowrap}
.national-race-context {grid-template-columns:auto minmax(0,1fr);gap:1px .45rem;align-items:center}
.national-race-context>b {font:800 clamp(18px,1.9vw,37px)/1.06 "Segoe UI",Arial,sans-serif;white-space:nowrap}
.national-race-context .flag {grid-row:1/4;align-self:center;width:clamp(25px,3.2vw,66px);height:auto;aspect-ratio:3/2}
#national-turnout {font-size:1.18em;line-height:1.05;border-radius:3px;padding:0 .2em}
#race-coverage {color:#d0e1ee}
#ticker-holding {font-size:clamp(17px,2vw,32px)}

.broadcast-band {display:flex;align-items:center;gap:.65rem;padding:1px clamp(8px,1.1vw,18px);color:#f4fbff;font:750 clamp(15px,1.22vw,22px)/1.15 "Segoe UI",Arial,sans-serif}
.standings-band {background:#193d46;border-block-end:1px solid #69b4aa}
.broadcast-divider {background:#1e344a;border-block-end:1px solid #7895ac}
.broadcast-band strong {display:inline-flex;align-items:center;gap:.45em;white-space:nowrap}
.broadcast-band b {width:1.45em;text-align:center;font-weight:900;color:#142f36;background:#a9f5d7;line-height:1.02;font-size:1.1em;border-radius:1px}
.broadcast-divider b {color:#183149;background:#c9e4fc}
.divider-rule {flex:1;height:2px;background:linear-gradient(to right,#98b9c8,#456070)}
.focus-levels {font-weight:600;font-size:.88em;color:#d5e7f2}
.ticker-window {min-width:0;overflow:hidden}
.ticker-track,.ticker-list {display:flex;align-items:center}
.ticker-track {width:max-content}
.ticker-list {flex:none;margin:0;padding:0;list-style:none}
.ticker-list>li {flex:0 0 var(--ticker-slot);width:var(--ticker-slot)}
.ticker-still,.ticker-still .ticker-list,.ticker-still .ticker-list>li {width:100%}
.ticker-still .ticker-list>li {flex-basis:100%;padding-inline:0;border:0}
.ticker-still .ticker-repeat {display:none}
.ticker-list li {display:flex;align-items:center;gap:clamp(4px,.5vw,12px);min-width:0;min-height:clamp(60px,5.15vw,96px);font-size:clamp(18px,1.95vw,39px);line-height:1.05}
.ticker-portrait-frame {flex:none;display:block;overflow:hidden;width:calc(2 * var(--chart-portrait));aspect-ratio:1;border:1px solid #d6e0e8;border-radius:3px}
.ticker-portrait-frame img,#standings .candidate-portrait-frame img {display:block;width:100%;height:100%;object-fit:contain;object-position:center}
#standings .candidate-portrait-frame {flex:none;overflow:hidden;width:min(92cqh,var(--chart-portrait));height:min(92cqh,var(--chart-portrait))}
.ticker-identity,.ticker-result {display:inline-flex;align-items:baseline;gap:.18em;min-width:0}
.ticker-identity {flex-wrap:wrap}
.ticker-party,.ticker-share {font-size:.78em}
.ticker-result {font-variant-numeric:tabular-nums;white-space:nowrap}
.ticker-rank {font-size:1.12em;white-space:nowrap}
.ticker-list li[data-rank="1"] .ticker-rank {color:#163b33;background:#d9f5e8;border:1px solid #55ab89;border-radius:3px;padding:0 .12em}
.ticker-share {color:#edf5ff}
.project-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin:.28rem 0}
.project-stats>div,.panel {min-width:0;background:var(--panel);border:1px solid var(--edge);border-radius:3px}
.project-stats>div {border-top-width:3px;padding:.25rem .5rem}
.project-stats h2 {font-size:clamp(.73rem,1.05vw,1rem);text-transform:uppercase;color:#c7d7e4}
.project-stats h2 span {text-transform:none;font-size:.83em;font-weight:600}
.score-box {display:inline-block;border-radius:3px;color:#102c40;background:var(--info-highlight);padding:0 .32em;font-weight:800}
.score-box {font-size:clamp(1.35rem,2.15vw,2.2rem);line-height:1.1}
.turnout-box {display:inline-block;margin-top:.22rem;border:1px solid var(--turnout-line);border-radius:3px;padding:.08em .35em}
.submission-overview {display:flex;flex-wrap:wrap;gap:3px;text-align:center;line-height:1.16}
.submission-overview span {flex:1 1 4.7rem;min-width:0;padding:.15rem .23rem;background:#def4eb;color:#174b3b;border-radius:2px;font-size:clamp(.78rem,.86vw,1rem)}
.submission-overview span:last-child {background:#ffe6d5;color:#694b07}
#wider-coverage {background:#dce6ef;color:#29445a}
.submission-overview b {display:block;margin-bottom:3px;font-size:clamp(1.1rem,1.35vw,1.5rem);line-height:1.05;font-variant-numeric:tabular-nums}
.leader-card {--leader-size:18px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:2px}
.leader-card div {align-self:flex-end;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:2px 6px;max-width:100%}
#leader-caption {color:var(--muted);font-size:11px;font-weight:800;line-height:1.1}
#leader-arrow {font-size:1.4em;vertical-align:middle}
#scope-level,#leader {display:inline-block;max-width:100%;padding:1px 5px;border:1px solid #aebac7;border-radius:4px;background:#edf1f5;color:#304154;font:650 var(--leader-size)/1.05 "Election Score Numbers","Arial Narrow",Arial,sans-serif;overflow-wrap:anywhere}
#scope-level,#leader.observed-lead {background:var(--leader-paper);color:var(--leader-ink);border-color:var(--leader-edge)}
#scope-level {padding-inline:4px;border-radius:3px;font-weight:750}
@media(min-width:1700px) and (min-height:950px){.leader-card {--leader-size:22.5px}}
@media(min-width:1080px) and (max-height:760px){.leader-card {--leader-size:16.5px}}
.national-panels {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:clamp(8px,.85vw,16px);align-items:stretch}
.panel>h2 {padding:.48rem .8rem;border-bottom:1px solid var(--edge);font-size:clamp(.98rem,1.25vw,1.4rem)}
.map-panel,.project-standings {display:flex;flex-direction:column;min-width:0}
.map-stage {position:relative;display:grid;grid-template-rows:minmax(0,1fr) auto;align-items:stretch;flex:1;min-height:12rem;background:linear-gradient(#252a30,#30363d)}
#map {position:relative;min-width:0;min-height:0}
#map svg {display:block;position:absolute;inset:0;width:100%;height:100%}
#map svg {overflow:hidden}
#result-time {font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}
.shape {stroke:#fafcff;stroke-width:1;stroke-linejoin:round}
.focus-source {stroke:#fff;stroke-width:1;stroke-linejoin:round;pointer-events:none}
.flying-shape {stroke:white;stroke-width:1.1;stroke-linejoin:round;filter:drop-shadow(0 2px 2px #15232c);pointer-events:none}
.focus-marker,.flying-shape {opacity:1;fill-opacity:1}
.focus-plate {fill-opacity:.12;stroke:none}
.validation-spark {fill:#ffe596;stroke:#3c300f;stroke-width:1;paint-order:stroke}
.focus-lead,.focus-party {font:650 clamp(11px,1vw,17px) "Segoe UI",Arial,sans-serif;fill:white;stroke:#172938;stroke-width:2.2px;stroke-linejoin:round;paint-order:stroke}
.focus-party {font-weight:760;fill:#fff}
.council-member-lines {fill:none;stroke:#f7fbff;stroke-width:1px;pointer-events:none}
.council-member-labels {font-family:"Segoe UI",Arial,sans-serif;font-weight:750;fill:white;stroke:#132636;stroke-width:2.5px;stroke-linejoin:round;paint-order:stroke;pointer-events:none}
.council-member-labels text {vector-effect:non-scaling-stroke}
.public-map-labels,.focus-caption {pointer-events:none}
.public-map-labels text {font-family:"Segoe UI",Arial,sans-serif;font-weight:700;fill:#152c40;stroke:#f3f8fa;stroke-width:2.4px;stroke-linejoin:round;paint-order:stroke}
.public-map-labels polyline {fill:none;stroke:#486479;stroke-width:1.3px;vector-effect:non-scaling-stroke}
.focus-name {font:750 clamp(13px,1.35vw,24px) "Segoe UI",Arial,sans-serif;fill:white;stroke:#172938;stroke-width:3px;stroke-linejoin:round;paint-order:stroke;pointer-events:none}
.country {justify-self:end;display:flex;align-items:center;gap:.3rem;margin:0 .3rem .3rem;background:#192a37;border:1px solid var(--edge);padding:.12rem .3rem;color:var(--mint);font-weight:800;font-size:clamp(.85rem,1.35vw,1.4rem);}
#map-caption {min-width:0;text-align:end;overflow-wrap:anywhere;text-decoration:underline;text-decoration-color:var(--locality-underline);text-decoration-thickness:2px;text-underline-offset:.12rem}
#map-status,#holding {padding:.8rem;color:var(--muted)}
#map-status {align-self:center;text-align:center}
#map,#map-status {grid-area:1/1}
#map-area-key,.country {grid-area:2/1;align-self:center}
#map-area-key {justify-self:start;margin:0 .3rem .3rem;color:var(--ink);font-size:.83rem}
#map-area-key summary {cursor:pointer;width:max-content;padding:.16rem .4rem;border:1px solid var(--edge);border-radius:3px;background:#192a37;line-height:1.2}
#map-area-key summary:focus-visible {outline:2px solid var(--mint);outline-offset:2px}
#map-area-key[open] ul {
  position:absolute;z-index:2;inset-inline-start:.3rem;bottom:2.2rem;width:min(24rem,calc(100% - .6rem));
  max-height:calc(100% - 2.7rem);overflow:auto;overscroll-behavior:contain;list-style:none;
  padding:.28rem .55rem;border:1px solid var(--stripe);border-radius:3px;background:var(--panel);line-height:1.4;
}
#map-area-key li {padding:.14rem 0}
#map-area-key li + li {border-top:1px solid var(--edge)}
.map-stage:has(#map-area-key:not([hidden])) .country {max-width:calc(100% - 6rem)}
#map-legend {list-style:none;display:flex;justify-content:space-evenly;flex-wrap:wrap;gap:.16rem .4rem;padding:.26rem;border-top:1px solid var(--edge);font:700 clamp(11px,.88vw,16px)/1.2 "Election Score Numbers","Arial Narrow",sans-serif}
#map-legend .swatch {width:clamp(16px,1.45vw,24px);height:clamp(16px,1.45vw,24px)}
#map-legend li {display:flex;align-items:center;gap:3px;white-space:nowrap}
.swatch {display:inline-block;flex:none;width:.77em;height:.77em;border-radius:50%;border:1px solid #8c9baa}
#standings-heading {display:flex;align-items:baseline;flex-wrap:wrap;gap:.15rem .55rem;color:var(--muted)}
#standings-heading #chart-context {min-width:0;max-width:100%;margin-inline-start:auto;color:var(--mint);text-align:end;white-space:normal;overflow-wrap:break-word;text-decoration:underline;text-underline-offset:.18em;text-decoration-color:var(--locality-underline)}
#standings {flex:1;display:grid;grid-template-rows:repeat(var(--standing-count,1),minmax(47px,1fr));gap:2px;padding:2px}
#standings .candidate.candidate-separated[data-standing] {margin:0;height:100%;min-height:0;--candidate-frame-outline:#a7bbcc;--candidate-score-ink:#edf6ff}
.project-standings {min-height:calc(var(--standing-count,7) * 49px + 42px)}
/* Keep the current locality and its reporting status together below the map and chart. */
.area-board {
  position:relative;flex:none;display:grid;place-items:center;margin-top:.35rem;
  padding:.12rem .55rem;min-block-size:2rem;text-align:center;
}
.area-board > * {grid-area:1/1}
#area-status {
  max-width:100%;color:var(--ink);font-size:clamp(.94rem,1.1vw,1.2rem);
  font-weight:650;line-height:1.25;text-wrap:pretty;overflow-wrap:break-word;
}
.area-board:is([data-kind=new],[data-kind=updated]) {border-color:#568d7a}
#area-status:is([data-kind=new],[data-kind=updated]) {color:#bdf4d9}
#area-status[data-kind=withdrawn] {color:#ffd6da}
.area-board[data-kind=waiting] {background:#ffaf58;border-color:#d67a27}
.area-board[data-kind=waiting] #area-status {
  --locality-pulse-start:.65;color:#760e18;
  font:500 clamp(1.35rem,2vw,2.25rem)/1.18 "Segoe UI",Arial,sans-serif;
  letter-spacing:.035em;transform-origin:center;
}
@media (min-width:1080px) {
  :root {--chart-portrait:clamp(32px,calc(8dvh - 20px),78px)}
  body {min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
  main,.national-board {flex:1;display:flex;flex-direction:column}
  .national-panels {flex:1}
  .context {margin-inline-start:auto}
}
@media (min-width:1080px) and (max-height:800px) {
  main {padding:.35rem .7rem}
  .coverage {min-height:1.65rem;padding-block:.1rem}
  .race-record {padding-block:.17rem}
  .panel>h2 {padding:.25rem .65rem}
  .project-standings {min-height:calc(var(--standing-count,7) * 44px + 30px)}
  #standings {grid-template-rows:repeat(var(--standing-count,1),minmax(44px,1fr))}
  .area-board {margin-top:.25rem}
}
@media (min-width:1080px) and (max-height:740px) {
  .leader-card {display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-content:center;gap:1px 3px}
  .leader-card div {display:contents}
  .leader-card #leader-caption {align-self:center;justify-self:end}
  .leader-card #leader {grid-column:1/-1;justify-self:end}
  .coverage {min-height:1.35rem;line-height:1.1}
  .coverage #status-badge {line-height:1.05}
  .national-panels {gap:.35rem}
  .broadcast-band {font-size:14px;padding-block:0}
}
@media (min-width:1080px) and (max-height:700px) {
  .ticker-list li {min-height:57px}
  .project-standings {min-height:calc(var(--standing-count,7) * 40px + 28px)}
  #standings {grid-template-rows:repeat(var(--standing-count,1),minmax(40px,1fr))}
  main {padding-block:.18rem}
  #standings-heading {font-size:1rem}
  .context {padding:.08rem 0}
  .project-stats {margin:.15rem 0}
  .project-stats>div {padding:.1rem .4rem}
  .map-stage {min-height:10rem}
}
@media (max-width:1000px) {
  .national-panels {grid-template-columns:minmax(0,1.85fr) minmax(0,1fr)}
  #standings {grid-template-rows:repeat(var(--standing-count,1),minmax(50px,1fr))}
  .project-standings {min-height:calc(var(--standing-count,7) * 44px + 48px)}
}
@media (max-width:900px) {
  .national-panels {grid-template-columns:1fr}
  .map-stage {aspect-ratio:2.2}
  .project-standings {min-height:calc(var(--standing-count,7) * 54px + 40px)}
}
@media (max-width:740px) {
  /* Reserve the plot itself. The source, locality and crowded-area key
     occupy a separate row, including while a validated result appears. */
  .map-stage {aspect-ratio:auto;min-block-size:404px;grid-template-rows:minmax(340px,1fr) minmax(64px,auto)}
}
@media (max-width:740px) {
  .project-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
  .race {grid-template-columns:auto minmax(0,1fr);gap:.23rem .65rem;padding-inline:.5rem}
  .national-race-context {justify-self:stretch;text-align:end}
  .ticker-window {grid-column:1/-1;border-top:1px solid var(--edge);padding-top:.15rem}
}
@media(min-width:441px) and (max-width:740px) {
  .national-race-context {justify-self:end;inline-size:100%;max-inline-size:26rem}
}
@media(max-width:500px) {
  .broadcast-band {gap:.35rem;padding-inline:.35rem}
  .focus-levels {font-size:.78em}
  #broadcast-training-label {font-size:.8em;padding-inline:.25rem}
  .ticker-list li {gap:5px;min-height:55px;font-size:clamp(16px,5vw,24px)}
  .ticker-rank {max-width:3.4rem}
  .standings-band {flex-wrap:wrap}
  .ticker-list .swatch {width:.52em;height:.52em}
}
@media(min-width:1080px){
 .race{grid-template-columns:auto minmax(0,var(--race-context-track)) minmax(0,1fr);column-gap:var(--race-grid-gap)}
 .national-race-context>.national-race-lane{grid-column:1/-1;font-size:clamp(18px,1.6vw,30px)}
 .national-race-context>.flag{grid-row:2 / span 2;width:clamp(24px,2.3vw,42px)}
}
@media(min-width:741px) and (max-width:1079px){
 .race{grid-template-columns:auto minmax(0,1fr)}
 .race>.ticker-window{grid-column:1/-1}
 .national-race-context{max-width:25rem}
}
.race .ticker-window{container-type:inline-size}
.ticker-track:not(.ticker-still) .ticker-list>li{
 display:grid;grid-template-columns:auto auto minmax(0,1fr);
 grid-template-areas:"rank photo name" "swatch photo figures";
 align-content:center;gap:1px 4px;padding-block:2px;
 font-size:clamp(15px,2.6cqw,29px);
}
.ticker-candidate>.ticker-rank{grid-area:rank;justify-self:center}
.ticker-candidate>.swatch{grid-area:swatch;justify-self:center}
.ticker-candidate>.ticker-portrait-frame{grid-area:photo}
.ticker-candidate>.ticker-identity{grid-area:name;align-self:end;line-height:1.05}
.ticker-candidate>.ticker-result{grid-area:figures;align-self:start;flex-wrap:wrap}
.ticker-track:not(.ticker-still) .ticker-colon{display:none}
@container(max-width:570px){
 .ticker-track:not(.ticker-still) .ticker-list>li{
  grid-template-columns:auto minmax(0,1fr);grid-template-areas:"rank photo" "swatch photo" "name name" "figures figures";
 }
 .ticker-candidate>.ticker-portrait-frame{justify-self:center}
 .ticker-candidate>:is(.ticker-identity,.ticker-result){justify-content:center;text-align:center}
}
@media(max-width:440px) {
  .race {column-gap:.35rem;padding-inline:.35rem}
  .race-record {padding-inline-end:.25rem}
  .national-race-context>.national-race-lane {grid-column:1/-1}
  .national-race-context>.flag {grid-column:1;grid-row:2 / span 2}
  .national-race-context>span:not(.flag),.national-race-context>small {grid-column:2}
}
@container(max-width:405px) {
  #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-label {flex-direction:column;align-items:flex-start;line-height:1.12;gap:0}
  #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-short-name {white-space:normal;overflow:visible}
  #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-name {font-size:clamp(14px,32cqh,17px)}
  #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-number {flex-direction:row;align-items:center;gap:3px;font-size:clamp(19px,min(46cqh,6.2cqw),25px);line-height:1}
  #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-number small {line-height:1}
}
@container(width > 405px) {
  #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-number {font-size:clamp(21px,min(48cqh,6.6cqw),48px)}
  #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-number small {font-size:max(13px,.76em)}
  #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-label {align-items:center;gap:0 3px}
  #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-name {font-size:clamp(17px,min(36cqh,4.8cqw),27px)}
}

/* The score stays right aligned. Give each name the space left by its own score. */
#standings .candidate.candidate-separated[data-standing] .candidate-name {max-width:none;overflow:visible}

/* Reserve the portrait lane and the larger waiting message before the first
   published figures arrive. Content can grow for larger type and zoom. */
#national-race .ticker-window {min-block-size:calc(2 * var(--chart-portrait) + .4rem);align-content:center}
.area-board {min-block-size:calc(1.18 * clamp(1.35rem,2vw,2.25rem) + .5rem)}
@media (max-width:740px) {
  #national-race .ticker-window {min-block-size:calc(2 * var(--chart-portrait) + 1.4rem)}
  .national-board>header {min-block-size:6rem;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(2rem,auto) auto}
  .national-board>.coverage {min-block-size:7rem}
  .national-board>.project-stats {grid-auto-rows:minmax(5rem,auto)}
  .area-board {min-block-size:calc(2.36 * clamp(1.35rem,2vw,2.25rem) + .5rem)}
}

#standings .candidate.candidate-separated[data-standing] .candidate-label {flex:none;flex-wrap:nowrap;width:max-content;max-width:none;overflow:visible;transform-origin:left center;transform:scaleX(var(--candidate-label-fit,1))}

/* Broadcast name labels retain their party tint across all screen sizes. */
@supports (color:color-mix(in srgb,white,black)) {
  #standings .candidate-name {
    --candidate-label-start:color-mix(in srgb,var(--candidate-color) 18%,white);
    --candidate-label-end:color-mix(in srgb,var(--candidate-color) 21%,white);
  }
}
@container (min-width:420px) {
  #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-name {font-size:clamp(18px,min(40cqh,5.2cqw),30px)}
}
@container (max-height:44px) {
  #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-label {flex-direction:row;align-items:baseline;gap:3px}
  #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-short-name {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-number {flex-direction:row;align-items:center;gap:3px;font-size:clamp(18px,min(46cqh,6cqw),22px);line-height:1}
}

#map-legend {
 --key-symbol:clamp(20px,1.9vw,38px);
 flex:none;min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:thin;
 flex-flow:row nowrap;justify-content:safe space-between;align-items:center;
 gap:clamp(4px,.5vw,10px);min-block-size:calc(var(--key-symbol) + 8px);
 font-size:clamp(14px,1.25vw,25px);
}
#map-legend li {flex:none;position:relative}
#map-legend .swatch {width:var(--key-symbol);height:var(--key-symbol)}
#map-legend:focus-visible,#area-status:focus-visible {outline:2px solid var(--mint);outline-offset:-2px}
.area-board {
 --status-type:clamp(1.35rem,1.75vw,2.2rem);
 height:calc(2.36 * var(--status-type) + .5rem);min-block-size:0;
}
.area-board #area-status,.area-board[data-kind=waiting] #area-status {
 width:100%;max-height:2.36em;padding-inline:3px;overflow:auto;scrollbar-width:thin;line-height:1.18;
 font-size:var(--status-type);text-wrap:wrap;
}
.country .result-source {display:block;min-block-size:1.15em;line-height:1.15}
@media (min-width:901px) and (orientation:landscape) {
 #map-caption {font-size:clamp(21px,1.85vw,37px);line-height:1.1}
 .country .result-source {font-size:clamp(12px,1.03vw,20px)}
 .leader-card {--leader-size:clamp(21px,1.65vw,34px)}
 #leader-caption {font-size:clamp(13px,1.02vw,20px)}
 #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-name {
  font-size:clamp(19px,min(48cqh,5.9cqw),38px)
 }
 #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-number {
  font-size:clamp(23px,min(61cqh,7.8cqw),56px)
 }
 #standings.ranking .candidate.candidate-separated.candidate-separated[data-standing] .candidate-number small {font-size:max(15px,.75em)}
 .coverage {font-size:clamp(15px,1.2vw,24px)}
 #status-badge,.context {font-size:clamp(13px,1.01vw,20px)}
 .project-stats h2,#race-coverage,.national-race-context>span:not(.flag) {font-size:clamp(14px,1.1vw,22px)}
 #turnout,#total {font-size:clamp(27px,2.55vw,52px);line-height:1.05}
 .submission-overview b {font-size:clamp(20px,1.73vw,36px)}
}

@media (min-width:1024px) and (orientation:landscape) {
 :root {--chart-portrait:clamp(32px,calc(7.1dvh - 18px),68px)}
}
@media (min-width:1024px) and (max-width:1079px) and (orientation:landscape) {
 body {display:flex;min-height:100dvh;flex-direction:column}
 main,.national-board {display:flex;flex:1;flex-direction:column}
 main {padding:5px 10px}
 .national-panels {flex:1}
 .race {grid-template-columns:auto minmax(12rem,24%) minmax(0,1fr)}
 .race>.ticker-window {grid-column:auto}
 .national-race-context>.national-race-lane {grid-column:1/-1}
 .national-race-context>.flag {grid-row:2 / span 2}
 .project-stats .submission-overview {flex-wrap:nowrap}
 .project-standings {min-height:20rem}
 #standings {grid-template-rows:repeat(var(--standing-count,1),minmax(40px,1fr))}
}
@media (min-width:901px) and (orientation:landscape) {
 #national-race {box-sizing:border-box;block-size:clamp(90px,12.4dvh,140px)}
 .national-board>.project-stats {grid-auto-rows:minmax(clamp(94px,11.5dvh,128px),auto)}
}
@media (max-width:740px) {
 #national-race {grid-template-rows:6rem 7rem}
 .national-board>.project-stats {grid-auto-rows:minmax(6.4rem,auto)}
}
