html { scroll-behavior:smooth; scroll-padding-top:115px; }
.iv-poll-page { --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-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:20px; 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:12px 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:30px 0 38px; }
.iv-poll-topics,.iv-poll-questions { display:flex; flex-wrap:wrap; gap:10px; }
.iv-poll-topics { padding-bottom:18px; border-bottom:1px solid var(--iv-rule,#d8d1c5); margin-bottom:18px; }
.iv-poll-page .iv-poll-choice { appearance:none; margin:0; padding:11px 15px; min-height:44px; max-width:100%; white-space:normal; text-align:left; font:inherit; font-size:.94rem; font-weight:500; line-height:1.4; 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:var(--iv-page-text,#242220); color:var(--iv-page-bg,#fcfaf5); border-color:var(--iv-page-text,#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:24px; }
.iv-poll-result h3 { font-size:clamp(1.2rem,2.2vw,1.65rem); margin-bottom:14px; }
.iv-poll-result > p { font-size:1rem; line-height:1.5; margin-bottom:14px; }
.iv-poll-result .iv-poll-values { margin-top:12px; }

.iv-poll-values-toggle { appearance:none; display:block; min-height:44px; padding:12px 0; color:var(--iv-page-text); background:none; border:0; font:inherit; 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; }
