html { scroll-behavior:smooth; scroll-padding-top:115px; }
.iv-poll-page { --iv-poll-i:#8753a5; --iv-poll-d:#3061c3; --iv-poll-r:#b14146; --iv-poll-positive:#267862; --iv-poll-positive-soft:#83b7a6; --iv-poll-r-soft:#d99a9e; --iv-poll-neutral:#65615c; --iv-poll-track:#bcb5aa; background:var(--iv-page-bg,#fcfaf5); color:var(--iv-page-text,#242220); font-family:var(--iv-font-sans,'IBM Plex Sans',sans-serif); }
:root[data-theme="dark"] .iv-poll-page { --iv-poll-i:#c49bdd; --iv-poll-d:#89a8e6; --iv-poll-r:#ed9296; --iv-poll-positive:#86c5ad; --iv-poll-positive-soft:#b7ddce; --iv-poll-r-soft:#f4c2c5; --iv-poll-neutral:#b4b0a8; --iv-poll-track:#66615d; }
.iv-poll-page *, .iv-poll-page *::before, .iv-poll-page *::after { box-sizing:border-box; }
.iv-poll-page > .iv-global-banner .iv-header-logo img { content:var(--iv-poll-logo-light); }
:root[data-theme="dark"] .iv-poll-page > .iv-global-banner .iv-header-logo img { content:var(--iv-poll-logo-dark); }
.iv-poll-shell { width:min(1320px,calc(100% - 64px)); margin-inline:auto; }
.iv-poll-hero { padding:60px 0 48px; }
.iv-poll-hero h1 { max-width:1180px; margin:0; font-size:clamp(3rem,6.7vw,6.5rem); font-weight:600; line-height:.99; letter-spacing:-.05em; text-wrap:balance; }
.iv-poll-dek { max-width:870px; font-size:clamp(1.1rem,1.7vw,1.4rem); line-height:1.6; margin:30px 0; color:var(--iv-page-muted,#65615c); }
.iv-poll-facts { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin:34px 0 0; border-top:1px solid var(--iv-rule,#d8d1c5); padding-top:24px; }
.iv-poll-facts dt { font-size:.88rem; color:var(--iv-page-muted,#65615c); margin-bottom:8px; }
.iv-poll-facts dd { margin:0; font-size:1rem; font-family:var(--iv-font-mono,'JetBrains Mono',monospace); }
.iv-poll-nav { border-block:1px solid var(--iv-rule,#d8d1c5); }
.iv-poll-nav.is-stuck { border-top:0; }
.iv-poll-nav-badge { display:none; flex:0 0 auto; align-items:center; align-self:center; white-space:nowrap; padding-left:10px; border-left:3px solid var(--iv-orange,#d9602c); color:var(--iv-page-text,#242220); font-family:var(--iv-font-mono,'JetBrains Mono',monospace); font-size:14px; font-weight:700; line-height:1; }
.iv-poll-nav.is-stuck .iv-poll-nav-badge { display:inline-flex; }
.iv-poll-nav > div { display:flex; flex-wrap:wrap; gap:12px 28px; padding-block:18px; }
.iv-poll-nav a { color:var(--iv-page-muted,#65615c); text-decoration:none; font-family:var(--iv-font-sans,'IBM Plex Sans',sans-serif); font-size:12px; font-weight:600; }
.iv-poll-nav a:hover { color:var(--iv-orange); text-decoration:none; }
.iv-poll-story { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:clamp(32px,6vw,88px); padding-block:60px; border-bottom:1px solid var(--iv-rule,#d8d1c5); align-items:center; }
.iv-poll-result > p,.iv-poll-methodology p { font-size:1.1rem; line-height:1.7; color:var(--iv-page-muted,#65615c); margin:0 0 20px; }
.iv-poll-figure { margin:0; min-width:0; }
.iv-poll-chart { display:block; width:100%; height:auto; overflow:visible; }
.iv-poll-chart:empty { display:none; }
.iv-poll-chart text { font-family:var(--iv-font-mono,'JetBrains Mono',monospace); fill:var(--iv-page-text,#242220); }
.iv-poll-chart .iv-poll-mark { animation:iv-poll-reveal 900ms cubic-bezier(.16,1,.3,1) both; animation-delay:var(--delay,0ms); }
@keyframes iv-poll-reveal { from { opacity:0; } to { opacity:var(--mark-opacity,1); } }
.iv-poll-values { margin-top:10px; border-top:1px solid var(--iv-rule,#d8d1c5); }
.iv-poll-table-wrap { max-width:100%; overflow:auto; }
.iv-poll-values table { width:100%; border-collapse:collapse; font-size:.9rem; }
.iv-poll-values th,.iv-poll-values td { text-align:left; vertical-align:top; padding:7px 8px; border-bottom:1px solid var(--iv-rule,#d8d1c5); }
.iv-poll-values th:first-child { padding-left:0; }
.iv-poll-values td { font-family:var(--iv-font-mono,'JetBrains Mono',monospace); }
.iv-poll-values th { font-weight:500; }
.iv-poll-figure .iv-poll-source { font-size:.83rem; line-height:1.6; color:var(--iv-page-muted,#65615c); margin-top:12px; }
.iv-poll-explorer { padding-block:60px; border-bottom:1px solid var(--iv-rule,#d8d1c5); }
.iv-poll-explorer > p { max-width:800px; }
.iv-poll-picker { max-width:100%; margin:18px 0 10px; }
.iv-poll-topics,.iv-poll-questions { display:flex; flex-wrap:wrap; gap:6px; }
.iv-poll-topics { padding-bottom:12px; border-bottom:1px solid var(--iv-rule,#d8d1c5); margin-bottom:12px; }
.iv-poll-page .iv-poll-choice { appearance:none; margin:0; padding:8px 11px; min-height:40px; max-width:100%; white-space:normal; text-align:left; font:500 12px/1.4 var(--iv-font-mono,'JetBrains Mono',monospace); color:var(--iv-page-text,#242220); background:transparent; border:1px solid var(--iv-poll-track,#bcb5aa); border-radius:0; cursor:pointer; }
.iv-poll-page .iv-poll-choice:hover { border-color:var(--iv-page-text,#242220); }
.iv-poll-page .iv-poll-choice[aria-pressed="true"] { background:#242220; color:#fcfaf5; border-color:#242220; }
.iv-poll-questions[hidden] { display:none; }
.iv-poll-result { max-width:860px; margin-top:36px; }
.iv-poll-result h3 { font-size:clamp(1.4rem,3vw,2rem); letter-spacing:-.02em; line-height:1.2; font-weight:500; margin:0 0 20px; }
.iv-poll-result[hidden],.iv-poll-picker[hidden] { display:none; }
.iv-poll-methodology { padding-block:60px; }
.iv-poll-methodology p { max-width:900px; }
.iv-poll-visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (max-width:700px) {
 html { scroll-padding-top:90px; }
 .iv-poll-shell { width:calc(100% - 36px); }
 .iv-poll-hero { padding-top:38px; }
 .iv-poll-hero h1 { font-size:clamp(2.7rem,10.4vw,4rem); }
 .iv-poll-facts { grid-template-columns:1fr 1fr; gap:24px 18px; }
 .iv-poll-facts dd { font-size:.88rem; }
 .iv-poll-story { grid-template-columns:1fr; gap:24px; padding-block:40px; }
 .iv-poll-nav > div { gap:14px 20px; }
 .iv-poll-explorer,.iv-poll-methodology { padding-block:40px; }
 .iv-poll-methodology p { font-size:1.04rem; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .iv-poll-chart .iv-poll-mark { animation:none; } }

/* Reveal charts when they enter the viewport, as on the Wisconsin follow-up. */
.iv-poll-chart.iv-poll-pending { visibility:hidden; }
.iv-poll-chart.iv-poll-pending * { animation-play-state:paused !important; }
.iv-poll-chart .iv-poll-fade { animation:iv-poll-reveal 900ms cubic-bezier(.16,1,.3,1) both; animation-delay:var(--delay,0ms); }
.iv-poll-chart .iv-poll-pop { transform-box:fill-box; transform-origin:center; animation:iv-poll-pop 500ms cubic-bezier(.2,.7,.3,1) both; animation-delay:var(--delay,0ms); }
.iv-poll-chart .iv-poll-draw { stroke-dasharray:1; stroke-dashoffset:1; animation:iv-poll-draw 900ms cubic-bezier(.16,1,.3,1) both; animation-delay:var(--delay,0ms); }
@keyframes iv-poll-pop { from { opacity:0; transform:scale(.3); } to { opacity:1; transform:scale(1); } }
@keyframes iv-poll-draw { to { stroke-dashoffset:0; } }
.iv-poll-chart.iv-poll-static * { animation:none !important; stroke-dashoffset:0; }
@media (prefers-reduced-motion:reduce) { .iv-poll-chart.iv-poll-pending { visibility:visible; } .iv-poll-chart * { animation:none !important; stroke-dashoffset:0; } }

/* Keep each story's heading with its own section, below the shared banner. */
.iv-poll-story { align-items:start; }
.iv-poll-result > h3 { position:sticky; top:var(--iv-poll-sticky-edge,100px); z-index:2; background:var(--iv-page-bg,#fcfaf5); padding-block:12px; }
@media (max-width:700px) {
 .iv-poll-story { display:block; }
 .iv-poll-story .iv-poll-figure { margin-top:24px; }
}

.iv-poll-analysis { padding-block:60px; border-bottom:1px solid var(--iv-rule,#d8d1c5); }
.iv-poll-analysis h2 { position:sticky; top:var(--iv-poll-sticky-edge,100px); z-index:2; padding-block:12px; margin:0 0 24px; background:var(--iv-page-bg,#fcfaf5); }
.iv-poll-analysis-note { border-left:3px solid var(--iv-author-color,var(--iv-page-muted)); padding-left:18px; }
.iv-poll-analysis-note + .iv-poll-analysis-note { margin-top:36px; }
.iv-poll-analysis h3 { margin:0 0 12px; font-size:clamp(1.4rem,3vw,2rem); font-weight:500; letter-spacing:-.02em; }
.iv-poll-analysis p { max-width:900px; margin:0 0 20px; font-size:1.1rem; line-height:1.7; color:var(--iv-page-muted,#65615c); }
.iv-poll-analysis .iv-poll-analysis-author { font-size:1rem; font-weight:600; color:var(--iv-author-color,var(--iv-page-muted)); text-transform:none; }
.iv-poll-analysis .iv-poll-analysis-source { font-size:.83rem; line-height:1.6; }
@media(max-width:700px) { .iv-poll-analysis { padding-block:40px; } }

.iv-poll-nav { position:sticky; top:var(--iv-poll-header-height,90px); z-index:10; background:var(--iv-page-bg,#fcfaf5); }
.iv-poll-nav > div { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; padding-block:14px; }
.iv-poll-nav a { flex:0 0 auto; white-space:nowrap; }
html { scroll-padding-top:calc(var(--iv-poll-sticky-top,112px) + 12px); }

.iv-poll-nav-sentinel { height:1px; margin-bottom:-1px; pointer-events:none; }
@media(max-width:700px) {
 .iv-poll-nav:not(.is-stuck) > div { flex-wrap:wrap; overflow-x:visible; }
 .iv-poll-nav.is-stuck > div { flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; }
}

/* The spacer compensates in the same style update as the sticky row contracts. */
.iv-poll-nav-spacer { height:0; pointer-events:none; }
.iv-poll-nav.is-stuck + .iv-poll-nav-spacer { height:var(--iv-poll-nav-extra-height,0px); }

/* Dense results keep readable type while avoiding oversized chart canvases. */
.iv-poll-result { max-width:760px; margin-top:12px; }
.iv-poll-result h3 { font-size:clamp(1.2rem,2.2vw,1.65rem); margin-bottom:8px; padding-block:6px; }
.iv-poll-result > p { font-size:1rem; line-height:1.5; margin-bottom:14px; }
.iv-poll-result > .iv-poll-base { font:11px/1.5 var(--iv-font-mono); margin-bottom:12px; }
.iv-poll-result .iv-poll-values { margin-top:12px; }

.iv-poll-values-toggle { appearance:none; display:block; min-height:36px; padding:6px 0; color:var(--iv-page-text); background:none; border:0; font:500 12px/1.5 var(--iv-font-mono,'JetBrains Mono',monospace); cursor:pointer; text-align:left; }
.iv-poll-values-toggle::after { content:' +'; }
.iv-poll-values-toggle[aria-expanded="true"]::after { content:' -'; }
.iv-poll-values-toggle[hidden], .iv-poll-table-wrap[hidden] { display:none; }
.iv-poll-page a, .iv-poll-page button { text-decoration:none; }
.iv-poll-values-toggle:hover { color:var(--iv-orange); }
.iv-poll-result .iv-poll-chart { max-width:660px; }
.iv-poll-source { font-size:.83rem; line-height:1.6; color:var(--iv-page-muted); }
.iv-poll-analysis > .iv-section-heading { position:sticky; top:var(--iv-poll-sticky-edge); background:var(--iv-page-bg); z-index:2; padding-block:12px; }
.iv-poll-analysis > .iv-section-heading h2 { position:static; padding:0; margin:0; }
.iv-poll-nav a, .iv-poll-choice, .iv-poll-values-toggle { font-family:var(--iv-font-mono,'JetBrains Mono',monospace); }

.iv-poll-analysis-note[data-author="chaz-nuttycombe"] { --iv-author-color:var(--iv-author-chaz-nuttycombe); }

/* Pin only the story title; the narrative remains in normal document flow. */
.iv-poll-story > .iv-poll-figure { grid-column:2; grid-row:1 / span 2; }
@media(min-width:701px) { .iv-poll-story { row-gap:0; grid-template-rows:auto 1fr; } }

.iv-poll-story > h2 { position:sticky; top:var(--iv-poll-sticky-edge,100px); z-index:2; width:100%; background:var(--iv-page-bg); padding-block:12px; grid-column:1; grid-row:1; align-self:start; }
.iv-poll-story > p { grid-column:1; grid-row:2; align-self:start; }

.iv-response-map-section { padding-block:40px; border-bottom:1px solid var(--iv-rule); }
.iv-response-map-section #iv-poll-map { max-width:980px; margin-inline:auto; }
.iv-response-map-section button { min-height:44px; padding:9px 12px; border:1px solid var(--iv-rule); background:transparent; color:var(--iv-page-text); font:12px/1.5 var(--iv-font-mono); cursor:pointer; }
.iv-response-map-section button[aria-pressed="true"] { background:var(--iv-page-text); color:var(--iv-page-bg); }
.iv-response-map-section #iv-map-menu { z-index:12; }
.iv-response-map-section [hidden] { display:none; }

.iv-poll-analysis p { overflow-wrap:anywhere; }

.iv-poll-companion { max-width:870px; margin:0; font-size:1.05rem; line-height:1.6; }

.iv-poll-analysis-note[data-author="mary-radcliffe"] { --iv-author-color:var(--iv-author-mary-radcliffe); }

/* Keep the response map and controls consistent with the existing live page. */
.iv-response-map-section #iv-poll-map svg { display:block; width:100%; height:auto; max-height:540px; touch-action:auto; }
.iv-response-map-section #iv-poll-map { min-height:260px; }
.iv-response-map-section .iv-precinct { fill:var(--iv-poll-track); fill-opacity:.35; stroke:var(--iv-poll-neutral); stroke-width:.5; vector-effect:non-scaling-stroke; }
.iv-response-map-section .iv-district { fill:none; stroke:var(--iv-page-text); stroke-width:1.3; pointer-events:none; vector-effect:non-scaling-stroke; }
.iv-response-map-section .iv-map-menu-anchor { position:relative; z-index:5; margin:14px 0; }
.iv-response-map-section .iv-map-menu { position:absolute; top:calc(100% + 8px); left:0; width:min(440px,100%); padding:14px; background:var(--iv-page-bg); color:var(--iv-page-text); border:1px solid var(--iv-rule); }
.iv-response-map-section .iv-map-menu-group + .iv-map-menu-group { margin-top:12px; padding-top:10px; border-top:1px solid var(--iv-rule); }
.iv-response-map-section .iv-map-menu-group h3 { margin:0; font:500 14px/1.5 var(--iv-font-mono); }
.iv-response-map-section .iv-poll-controls { display:flex; flex-wrap:wrap; gap:4px; margin:7px 0 0; }
.iv-response-map-section .iv-poll-swatch { display:inline-block; width:20px; border-top:3px solid; margin-right:6px; vertical-align:middle; }
.iv-response-map-section .iv-map-menu-toggle[aria-expanded="true"] { background:var(--iv-page-text); color:var(--iv-page-bg); }
.iv-response-map-section .iv-poll-response-dot { opacity:1; transform-box:fill-box; transform-origin:center; transition:opacity .24s ease,transform .24s ease; }
.iv-response-map-section .iv-poll-response-dot.iv-poll-dot-entering { animation:iv-poll-dot-enter .3s ease-out both; animation-delay:var(--iv-poll-dot-delay,0ms); }
.iv-response-map-section .iv-poll-response-dot.iv-poll-dot-exiting { opacity:0; transform:scale(.3); }
@keyframes iv-poll-dot-enter { from { opacity:0; transform:scale(.3); } to { opacity:1; transform:scale(1); } }
@media(prefers-reduced-motion:reduce) { .iv-response-map-section .iv-poll-response-dot { transition:none; animation:none; } }

.iv-poll-page { --iv-poll-i:#8753a5; }
:root[data-theme="dark"] .iv-poll-page { --iv-poll-i:#c49bdd; --iv-poll-i:#c5a6d1; }
.iv-response-map-section .iv-county { fill:var(--iv-poll-track); fill-opacity:.35; stroke:var(--iv-poll-neutral); stroke-width:.7; vector-effect:non-scaling-stroke; }

/* Legislative response-map embed */
.iv-poll-response-map { padding-block:60px; border-bottom:1px solid var(--iv-rule,#d8d1c5); }
.iv-poll-map-content { min-width:0; }
.iv-poll-map-content > .iv-poll-map-filter-label { margin:18px 0 10px; color:var(--iv-page-muted); font-size:.9rem; font-weight:600; }
.iv-poll-map-content > .iv-poll-map-filter-label:first-child { margin-top:0; }
.iv-poll-map-controls { display:flex; flex-wrap:wrap; gap:10px; }
.iv-poll-map-controls .iv-poll-choice { display:inline-flex; align-items:center; gap:8px; min-height:42px; }
.iv-poll-map-swatch { display:inline-block; width:16px; height:3px; flex:none; }
.iv-poll-map-percent { font-family:var(--iv-font-mono); font-size:.8rem; }
.iv-poll-map-figure { margin:28px 0 0; }
.iv-poll-map-viewport { height:440px; width:100%; position:relative; }
.iv-poll-map-viewport svg { display:block; width:100%; height:100%; touch-action:pan-y; cursor:grab; }
.iv-poll-map-viewport svg:active { cursor:grabbing; }
.iv-poll-map-outline { fill:var(--iv-page-bg); stroke:none; }
.iv-poll-map-municipality { fill:var(--iv-page-muted); fill-opacity:.06; stroke:var(--iv-rule); stroke-width:.8px; vector-effect:non-scaling-stroke; }
.iv-poll-map-municipality:focus { outline:none;   }
.iv-poll-map-border { fill:none; stroke:var(--iv-page-text); stroke-width:1.25px; vector-effect:non-scaling-stroke; pointer-events:none; }
.iv-poll-map-dot { stroke:var(--iv-page-bg); stroke-width:.5px; vector-effect:non-scaling-stroke; cursor:default; }
.iv-poll-map-controls .iv-poll-choice:disabled { opacity:.4; cursor:default; }
.iv-poll-map-controls [aria-pressed="true"] { color:var(--iv-page-bg); background:var(--iv-page-text); border-color:var(--iv-page-text); }
.iv-poll-map-tooltip { position:fixed; z-index:40; max-width:min(280px,calc(100vw - 16px)); background:var(--iv-page-bg); color:var(--iv-page-text); border:1px solid var(--iv-rule); padding:10px 12px; font-family:var(--iv-font-sans); font-size:13px; line-height:1.5; pointer-events:none; }
.iv-poll-map-tooltip strong { display:block; font-weight:600; }
@media(max-width:700px) {
 .iv-poll-response-map { padding-block:40px; }
 .iv-poll-map-content { margin-top:24px; }
 .iv-poll-map-controls { gap:8px; }
 .iv-poll-map-controls .iv-poll-choice { font-size:12px; padding:10px 12px; }
 .iv-poll-map-viewport { height:460px; }
 .iv-poll-map-figure { margin-top:22px; }
}
@media(prefers-reduced-motion:reduce) { .iv-poll-response-map * { transition:none!important; animation:none!important; } }

.iv-poll-map-viewport[data-reveal="pending"] .iv-poll-map-dot { opacity:0; }
.iv-poll-map-viewport[data-reveal="playing"] .iv-poll-map-dot { animation:iv-poll-map-reveal 650ms ease-out both; animation-delay:var(--map-delay,0ms); }
@keyframes iv-poll-map-reveal { from { opacity:0; } to { opacity:1; } }
@media(prefers-reduced-motion:reduce) { .iv-poll-map-viewport[data-reveal] .iv-poll-map-dot { opacity:1; animation:none!important; } }
.iv-poll-response-map { display:block; }
.iv-poll-response-map .iv-poll-map-content { margin-top:28px; }
.iv-poll-response-map .iv-poll-map-viewport { height:560px; }
@media(max-width:700px) { .iv-poll-response-map .iv-poll-map-viewport { height:460px; } }

.iv-poll-wave-context { padding-block:40px; border-bottom:1px solid var(--iv-rule); }

/* Source-owned Virginia briefing additions. */
.iv-poll-page { --iv-poll-d-soft:#87a6d6; }
:root[data-theme="dark"] .iv-poll-page { --iv-poll-d-soft:#b8caeb; }
.iv-poll-base { font:12px/1.5 var(--iv-font-mono); color:var(--iv-page-muted); }
.iv-poll-result { max-width:1040px; }
.iv-poll-data-matrix table { min-width:560px; }
.iv-poll-data-matrix th:first-child { min-width:165px; }
.iv-poll-data-matrix td { white-space:nowrap; }
.iv-poll-data-matrix table { width:100%; border-collapse:collapse; font-size:13px; }
.iv-poll-data-matrix th,.iv-poll-data-matrix td { text-align:left; vertical-align:top; padding:8px 10px; border-bottom:1px solid var(--iv-rule); font-weight:400; }
.iv-poll-data-matrix th { font-weight:600; }
.iv-poll-data-matrix thead th { border-bottom:1px solid var(--iv-page-text); }
.iv-poll-data-matrix td { font-family:var(--iv-font-mono); }
.iv-poll-source-contributions table { min-width:0; table-layout:fixed; }
.iv-poll-data-matrix.iv-poll-source-contributions th:first-child { position:static; width:56%; min-width:0; padding-left:0; }
.iv-poll-source-contributions th:not(:first-child) { width:22%; }
.iv-poll-source-contributions th,.iv-poll-source-contributions td { white-space:normal; overflow-wrap:normal; }
.iv-poll-data-matrix th:first-child, .iv-poll-matrix th:first-child { position:sticky; left:0; background:var(--iv-page-bg); z-index:1; }
.iv-poll-matrix table { min-width:570px; border-spacing:5px; border-collapse:separate; }
.iv-poll-matrix td { text-align:center; padding:16px 10px; font-weight:600; border:0; }
.iv-poll-matrix th { font-size:13px; }
.iv-poll-matrix th small { display:block; font:11px/1.5 var(--iv-font-mono); color:var(--iv-page-muted); }
.iv-poll-matrix .iv-poll-same-answer { box-shadow:inset 0 0 0 2px var(--iv-page-text); }
.iv-poll-source { font-size:13px; line-height:1.6; color:var(--iv-page-muted); margin:18px 0 0; }
.iv-poll-story .iv-poll-source { grid-column:2; }
.iv-scenarios { padding-block:48px; border-bottom:1px solid var(--iv-rule); }
.iv-scenario-controls { display:flex; flex-wrap:wrap; align-items:start; gap:12px 18px; margin:26px 0 18px; }
.iv-scenario-controls[hidden],.iv-scenario-panel[hidden] { display:none; }
.iv-scenario-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; flex:1; }
.iv-scenario-choices .iv-poll-choice { text-align:center; }
.iv-poll-page .iv-scenario-choices .iv-poll-choice[aria-pressed="true"] { background:#242220; border-color:#242220; color:#fcfaf5; }
.iv-scenario-reading { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:24px; align-items:center; }
.iv-scenario-reading h3 { margin:0; font:600 clamp(1.15rem,2vw,1.6rem)/1.3 var(--iv-font-sans); }
.iv-scenario-reading > p:last-child { margin:8px 0 0; font:12px/1.65 var(--iv-font-mono); color:var(--iv-page-muted); }
.iv-scenario-seats { grid-column:2; grid-row:1 / span 2; display:flex; gap:24px; margin:0; font:600 clamp(1.5rem,3vw,2.8rem)/1.2 var(--iv-font-mono); }
.iv-scenario-seats span:first-child { color:var(--iv-poll-d); }
.iv-scenario-seats span:last-child { color:var(--iv-poll-r); }
.iv-scenario-svg { display:block; width:100%; height:auto; max-width:1040px; margin:12px auto 0; overflow:visible; }
.iv-scenario-map-label { font:600 22px/1.2 var(--iv-font-mono); fill:var(--iv-page-text); paint-order:stroke; stroke:var(--iv-page-bg); stroke-width:3px; stroke-linejoin:round; pointer-events:none; }
.iv-scenario-map-number { font-size:20px; font-weight:500; }
.iv-scenario-map-value { font-size:25px; font-weight:700; }
.iv-scenario-label-leader { fill:none; stroke:var(--iv-page-text); stroke-width:1px; vector-effect:non-scaling-stroke; pointer-events:none; }
.iv-scenario-values-table table { table-layout:fixed; font-size:13px; line-height:1.5; }
.iv-scenario-values-table th:first-child { width:30%; }
.iv-scenario-values-table th:nth-child(2) { width:42%; }
.iv-scenario-values-table th:last-child { width:28%; }
.iv-scenario-values-table th:last-child,.iv-scenario-values-table td:last-child { text-align:right; padding-right:0; font-variant-numeric:tabular-nums; }
.iv-scenario-values-table tbody th { font-family:var(--iv-font-mono); }
.iv-scenario-values-table tbody td { font-weight:600; }
.iv-scenario-values-table [data-scenario-party="d"] td { color:var(--iv-poll-d); }
.iv-scenario-values-table [data-scenario-party="r"] td { color:var(--iv-poll-r); }
.iv-scenario-inset-label { font:14px var(--iv-font-mono); fill:var(--iv-page-muted); }
.iv-scenario-district { cursor:default; transition:fill 450ms ease; }
.iv-scenario-district:hover { stroke:var(--iv-page-text); }
.iv-scenario-legend { display:flex; flex-wrap:wrap; gap:12px 24px; margin:18px 0 0; font:12px/1.5 var(--iv-font-mono); }
.iv-scenario-legend span { display:flex; gap:8px; align-items:center; }
.iv-scenario-legend i { width:20px; height:3px; background:var(--iv-poll-r); }
.iv-scenario-legend .iv-scenario-dem { background:var(--iv-poll-d); }
.iv-scenario-tooltip { position:fixed; z-index:50; max-width:calc(100vw - 16px); padding:12px; color:var(--iv-page-bg); background:var(--iv-page-text); font:13px/1.5 var(--iv-font-mono); pointer-events:none; }
@media(max-width:700px) {
 .iv-scenarios { padding-block:36px; }
 .iv-scenario-controls { gap:10px; }
 .iv-scenario-choices { flex-basis:100%; gap:6px; }
 .iv-scenario-choices .iv-poll-choice { font-size:11px; padding:10px 7px; }
 .iv-scenario-reading { column-gap:10px; }
 .iv-scenario-reading > p:last-child { font-size:10px; }
 .iv-scenario-seats { gap:10px; font-size:22px; }
 .iv-scenario-map-number { font-size:28px; }
 .iv-scenario-map-value { font-size:32px; }
 .iv-scenario-inset-label { font-size:28px; }
 .iv-scenario-map-label { stroke-width:3px; }
 .iv-scenario-legend { font-size:10px; gap:10px 15px; }
 .iv-poll-data-matrix table { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { .iv-scenario-district { transition:none; } }
