.iv-nationwide { max-width: 1320px; padding-top: 40px; padding-bottom: 48px; }
.iv-nationwide > p { max-width: 840px; }
.iv-nationwide section { margin-top: 36px; }
.iv-nationwide [hidden] { display: none !important; }
.iv-nation-controls { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 16px; }
.iv-nation-controls label { display: grid; gap: 6px; min-width: 140px; font: 12px/1.5 'JetBrains Mono', monospace; }
.iv-nation-poll-control { flex: 1; }
.iv-nationwide select, .iv-nationwide button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--iv-rule); border-radius: 3px; background: var(--iv-page-bg); color: var(--iv-page-text); font: 12px/1.5 'JetBrains Mono', monospace; }
.iv-nationwide button { cursor: pointer; }
.iv-nationwide select { width: 100%; }
.iv-nationwide :is(button, select, svg, a):focus-visible { outline: 3px solid var(--iv-orange); outline-offset: 3px; }
.iv-nationwide button[aria-pressed="true"] { border-color: var(--iv-orange); background: var(--iv-orange); color: #171717; }
.iv-nation-map-tools { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; }
.iv-nation-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 12px/1.5 'JetBrains Mono', monospace; }
.iv-nation-legend span { display: inline-flex; align-items: center; gap: 7px; }
.iv-nation-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--iv-page-text); }
.iv-nation-zoom { display: flex; gap: 6px; }
.iv-nation-zoom button { min-width: 44px; }
.iv-nation-map { position: relative; margin: 14px 0 26px; height: 550px; }
.iv-nation-map :is(svg, canvas) { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.iv-nation-map canvas { z-index: 1; pointer-events: none; }
.iv-nation-map[aria-busy="true"] canvas { opacity: 0; }
.iv-nation-map svg { touch-action: pan-y; }
.iv-nation-map svg:focus:not(:focus-visible), .iv-nation-state:focus { outline: none; }
.iv-nation-state { fill: var(--iv-neutral-2); fill-opacity: .14; stroke: var(--iv-neutral); stroke-opacity: .55; stroke-width: .7; vector-effect: non-scaling-stroke; }
.iv-nation-state-populated { fill: var(--iv-neutral-2); fill-opacity: .28; cursor: pointer; }
.iv-nation-state[role="button"]:focus-visible { fill: var(--iv-orange); fill-opacity: .25; outline: none; stroke: var(--iv-orange); stroke-width: 2; }
.iv-nation-state { pointer-events: visiblePainted; }
.iv-nation-outline { fill: none; stroke: var(--iv-page-text); stroke-width: .8; vector-effect: non-scaling-stroke; pointer-events: none; }
.iv-nation-tooltip { position: fixed; z-index: 1000; max-width: min(260px, calc(100vw - 16px)); padding: 7px 12px; background: var(--brand_white); color: var(--brand_black); font: 12px/1.6 'JetBrains Mono', monospace; pointer-events: none; border: 1px solid var(--brand_black); border-radius: 3px; overflow-wrap: anywhere; }
.iv-nation-tooltip strong { display: block; font-weight: 600; }
.iv-nation-tooltip-meta { font-size: 11px; color: var(--iv-page-muted); }
.iv-nation-sources { list-style: none; margin: 0; padding: 0; }
.iv-nation-source { list-style: none; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--iv-rule); }
.iv-nation-source-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; }
.iv-nation-source-heading a { color: var(--iv-page-text); font: 500 15px/1.5 var(--iv-font-sans); text-decoration: underline; text-underline-offset: 3px; }
.iv-nation-respondents { color: var(--iv-page-muted); font: 12px/1.5 var(--iv-font-mono); white-space: nowrap; }
.iv-nation-candidates { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; font: 12px/1.5 var(--iv-font-mono); }
.iv-nation-candidate { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.iv-nation-candidate-name { min-width: 0; overflow-wrap: anywhere; }
.iv-nation-candidate .iv-nation-swatch { flex: 0 0 9px; width: 9px; height: 9px; }
.iv-nation-candidate [data-iv-candidate-percent] { white-space: nowrap; }
.iv-nation-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .iv-nationwide { padding-top: 26px; }
  .iv-nation-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .iv-nation-controls label { min-width: 0; }
  .iv-nation-poll-control { grid-column: 1 / -1; grid-row: 2; }
  .iv-nation-legend { font-size: 11px; gap: 6px 14px; }
  .iv-nation-candidates { gap: 8px 16px; font-size: 11px; }
}
