:root {
  --ink: #10120f;
  --panel: #171916;
  --panel-2: #1d201b;
  --paper: #f1efe7;
  --acid: #d7ff45;
  --orange: #ff6a3d;
  --violet: #8b78ff;
  --yellow: #ffcf4a;
  --muted: #a4a598;
  --line: rgba(241, 239, 231, 0.15);
  --radius: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 76px;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at 42% 12%, rgba(215,255,69,.06), transparent 27%), radial-gradient(circle at 90% 40%, rgba(139,120,255,.05), transparent 23%);
}
.noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}
a { color: inherit; }
button, select { font: inherit; }
.wide-shell { width: min(1520px, calc(100% - 40px)); margin-inline: auto; }
.section-index { color: var(--acid); font: 700 11px/1 ui-monospace, SFMono-Regular, monospace; letter-spacing: .12em; }

.site-header {
  min-height: 74px;
  width: min(1600px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; letter-spacing: -.035em; }
.brand b { color: var(--acid); }
.brand small { color: var(--muted); font: 600 10px/1 ui-monospace, monospace; letter-spacing: .12em; }
.brand-mark { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid var(--paper); border-radius: 50%; font: 700 10px/1 ui-monospace, monospace; transform: rotate(-8deg); }
.header-center { display: flex; align-items: center; gap: 11px; min-width: 248px; justify-content: center; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.header-center strong { color: var(--paper); font: 700 17px/1 ui-monospace, monospace; letter-spacing: -.04em; }
.header-center i { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); animation: header-pulse 1.5s infinite; }
@keyframes header-pulse { 50% { box-shadow: 0 0 0 7px rgba(215,255,69,0); } 0% { box-shadow: 0 0 0 0 rgba(215,255,69,.2); } }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.live-pill i { width: 6px; height: 6px; background: var(--acid); border-radius: 50%; }
.utility-action { min-height: 33px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; color: var(--paper); background: transparent; cursor: pointer; font-size: 10px; font-weight: 750; }
.utility-action:hover, .utility-action:focus-visible { color: var(--ink); background: var(--paper); outline: none; }
.utility-action:disabled { opacity: .55; cursor: wait; }
.install-action { color: var(--acid); border-color: rgba(215,255,69,.45); }
.source-link { color: var(--ink); background: var(--acid); border-radius: 999px; padding: 9px 12px; text-decoration: none; font-size: 11px; font-weight: 800; }

.command-center { padding: 28px 0 18px; display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(380px, .8fr); gap: 16px; align-items: stretch; }
.map-column { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.stage-heading { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.map-mode-badge { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 13px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.map-mode-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); }
.map-mode-badge.demo { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.map-mode-badge.demo i { background: var(--ink); }

.map-stage { min-height: 850px; position: relative; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(241,239,231,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(241,239,231,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent 96%); }
#brazilMap { width: min(98%, 960px); max-height: 810px; position: relative; z-index: 1; overflow: visible; }
.map-state { stroke: var(--ink); stroke-width: 2.3; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .45s ease, opacity .2s ease, transform .2s ease; transform-box: fill-box; transform-origin: center; }
.map-state:hover, .map-state:focus { opacity: .86; stroke: var(--paper); stroke-width: 3; outline: none; transform: translateY(-2px); }
.map-state.selected { stroke: var(--acid); stroke-width: 4; filter: drop-shadow(0 0 9px rgba(215,255,69,.35)); }
.map-pulse { fill: none; stroke: var(--acid); stroke-width: 3; pointer-events: none; transform-box: fill-box; transform-origin: center; animation: map-ripple .8s ease-out both; }
@keyframes map-ripple { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.5); } }
.map-label { fill: var(--paper); font: 700 11px/1 ui-monospace, monospace; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(16,18,15,.5); stroke-width: 2px; }
.map-tooltip { position: absolute; z-index: 4; min-width: 190px; padding: 13px 14px; border-radius: 12px; color: var(--ink); background: var(--paper); box-shadow: 0 18px 50px rgba(0,0,0,.35); font-size: 12px; pointer-events: none; opacity: 0; transform: translateY(7px); transition: .15s ease; }
.map-tooltip.show { opacity: 1; transform: none; }
.map-tooltip b { display: block; margin-bottom: 8px; font: 600 18px/1.1 Georgia, serif; }
.map-tooltip span { display: flex; justify-content: space-between; gap: 16px; color: #66685f; line-height: 1.65; }
.map-tooltip strong { color: var(--ink); }
.map-loading { position: absolute; z-index: 3; top: 18px; left: 18px; display: flex; align-items: center; gap: 8px; color: var(--muted); font: 10px/1 ui-monospace, monospace; }
.map-loading span { width: 8px; height: 8px; border: 2px solid #45483f; border-top-color: var(--acid); border-radius: 50%; animation: spin .8s linear infinite; }
.map-loading.done { opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-hint { position: absolute; top: 18px; right: 18px; color: #6f7168; font-size: 10px; }
.map-legend { position: absolute; z-index: 2; left: 20px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: 10px; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; }
.map-legend .legend-empty { background: #30332d; border: 1px solid #4b4e46; }
.map-legend b { font-weight: 500; }

.results-rail { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.rail-head { min-height: 86px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.rail-head h2 { margin: 7px 0 0; font: 400 31px/1 Georgia, serif; letter-spacing: -.04em; }
.region-picker { display: grid; gap: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.region-picker select { width: 160px; color: var(--paper); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 30px 10px 11px; outline: none; }
.progress-box { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 14px; background: var(--panel-2); border-radius: 13px; padding: 14px; }
.progress-copy strong { display: block; color: var(--acid); font: 700 25px/1 ui-monospace, monospace; letter-spacing: -.06em; }
.progress-copy span, .progress-detail { color: var(--muted); font-size: 9px; }
.progress-track { height: 7px; background: #2d302a; border-radius: 99px; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--acid); border-radius: inherit; transition: width .7s ease; }
.progress-detail { grid-column: 1 / -1; }

.candidate-grid { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.candidate-card { width: 100%; min-width: 0; min-height: 150px; padding: 15px; border-radius: 14px; display: grid; grid-template-columns: minmax(0, 58%) minmax(112px, 42%); grid-template-rows: auto 1fr; gap: 10px 0; color: var(--ink); position: relative; overflow: hidden; }
.candidate-card::after { content: attr(data-number); position: absolute; right: -7px; bottom: -23px; font: 700 112px/.8 Georgia, serif; color: rgba(16,18,15,.07); pointer-events: none; }
.candidate-a { background: var(--orange); }
.candidate-b { background: var(--violet); }
.candidate-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; grid-column: 1 / -1; z-index: 1; }
.candidate-number { border: 1px solid rgba(16,18,15,.35); border-radius: 999px; padding: 5px 7px; font: 700 13px/1 ui-monospace, monospace; }
.candidate-party { max-width: 72%; text-align: right; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.candidate-label { display: block; margin-bottom: 4px; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.candidate-card > div:nth-child(2) { min-width: 0; }
.candidate-card h3 { position: relative; z-index: 1; margin: 0; max-width: 100%; overflow-wrap: normal; word-break: normal; font: 500 clamp(21px, 1.55vw, 28px)/.92 Georgia, serif; letter-spacing: -.045em; }
.vote-row { min-width: 0; align-self: end; text-align: right; z-index: 1; white-space: nowrap; }
.vote-row strong { display: block; font: 700 clamp(25px, 2.1vw, 36px)/1 ui-monospace, monospace; letter-spacing: -.08em; font-variant-numeric: tabular-nums; }
.vote-row span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 8px; font-weight: 800; }
.skeleton-card { filter: saturate(.25); }
.share-bar { padding: 1px 0; }
.share-segments { display: flex; gap: 3px; height: 7px; }
.share-segments span { min-width: 2px; border-radius: 999px; transition: width .7s ease; }
.share-legend { display: flex; gap: 13px; margin-top: 7px; color: var(--muted); font-size: 8px; }
.share-legend span { display: flex; align-items: center; gap: 5px; }
.share-legend i { width: 6px; height: 6px; border-radius: 50%; }

.rail-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.rail-metrics article { min-height: 81px; display: flex; flex-direction: column; padding: 11px; border: 1px solid var(--line); border-radius: 11px; }
.rail-metrics span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.rail-metrics strong { margin-top: auto; font: 650 17px/1 ui-monospace, monospace; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.rail-metrics small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.rail-metrics .rail-status { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.rail-metrics .rail-status span, .rail-metrics .rail-status small { color: rgba(16,18,15,.62); }
.rail-timing { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.rail-timing > div { min-height: 70px; display: flex; flex-direction: column; justify-content: space-between; padding: 10px; border-radius: 10px; background: var(--panel-2); }
.rail-timing span, .rail-timing small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.rail-timing strong { font: 650 13px/1 ui-monospace, monospace; }

.demo-compact { margin-top: auto; padding: 13px; border-radius: 13px; background: var(--acid); color: var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.demo-kicker { font: 800 8px/1 ui-monospace, monospace; letter-spacing: .1em; }
.demo-compact p { margin: 5px 0 0; font-size: 10px; }
.demo-primary { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 9px; background: var(--ink); color: var(--paper); padding: 11px 12px; cursor: pointer; font-size: 10px; font-weight: 750; }
.demo-primary span { color: var(--acid); }
.demo-controls { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 5px; }
.demo-controls button { border: 1px solid rgba(16,18,15,.28); border-radius: 8px; background: transparent; padding: 8px 5px; color: var(--ink); cursor: pointer; font-size: 8px; font-weight: 750; }
.demo-controls button:last-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.demo-progress { grid-column: 1 / -1; }
.demo-progress > div:first-child { display: flex; justify-content: space-between; font-size: 8px; }
.demo-track { height: 5px; margin-top: 7px; background: rgba(16,18,15,.16); border-radius: 99px; overflow: hidden; }
.demo-track span { display: block; width: 0; height: 100%; background: var(--ink); transition: width .35s ease; }

.news-ticker { min-height: 68px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; margin-top: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.news-ticker-brand { min-width: 112px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 18px; background: #c00; color: #fff; text-decoration: none; }
.news-ticker-brand strong { font: 900 21px/1 Arial, sans-serif; letter-spacing: -.08em; }
.news-ticker-brand span { font: 800 9px/1 ui-monospace, monospace; letter-spacing: .09em; }
.news-ticker-window { min-width: 0; display: flex; align-items: center; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.news-ticker-track { width: max-content; display: flex; align-items: center; animation: ticker-scroll 72s linear infinite; will-change: transform; }
.news-ticker-window:hover .news-ticker-track, .news-ticker-window:focus-within .news-ticker-track { animation-play-state: paused; }
.news-ticker-group { flex: 0 0 auto; display: flex; align-items: center; }
.news-ticker-item { display: inline-flex; align-items: center; gap: 20px; padding: 0 26px; color: var(--paper); text-decoration: none; font: 650 13px/1.25 ui-sans-serif, sans-serif; white-space: nowrap; }
.news-ticker-item::after { content: ""; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--acid); }
.news-ticker-item:hover { color: var(--acid); }
.news-ticker-loading { display: flex; align-items: center; gap: 10px; padding: 0 28px; color: var(--muted); font: 700 10px/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.news-ticker-loading i { width: 7px; height: 7px; border-radius: 50%; background: #c00; animation: header-pulse 1.5s infinite; }
.news-ticker-more { display: grid; place-items: center; padding: 0 18px; border-left: 1px solid var(--line); color: var(--muted); text-decoration: none; font: 700 9px/1 ui-monospace, monospace; text-transform: uppercase; white-space: nowrap; }
.news-ticker-more:hover { color: var(--acid); }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

.store-feature { min-height: 510px; display: grid; grid-template-columns: 1fr 510px; align-items: center; gap: 60px; padding: 38px 60px; border-radius: 24px; background: var(--paper); color: var(--ink); }
.store-copy h2 { margin: 20px 0; font: 400 clamp(60px, 8vw, 118px)/.83 Georgia, serif; letter-spacing: -.07em; }
.store-copy .section-index { color: #6b6d63; }
.store-copy p { max-width: 600px; color: #5c5e56; font-size: 17px; line-height: 1.55; }
.store-copy a { display: inline-block; margin-top: 22px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; text-decoration: none; font-size: 12px; font-weight: 750; }
.store-widget { min-height: 446px; display: grid; place-items: center; background: var(--ink); border-radius: 20px; overflow: hidden; }
.store-widget iframe { display: block; max-width: 100%; border: 0; }
.store-feature.widget-only { min-height: 494px; display: grid; grid-template-columns: 1fr; place-items: center; gap: 0; padding: 32px 0; background: transparent; }
.store-feature.widget-only .store-widget { width: 430px; min-height: 430px; border: 1px solid var(--line); }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1fr) 478px; border-bottom: 1px solid var(--line); margin-top: 0; }
.history-panel { min-width: 0; padding: 60px 48px 58px 0; border-right: 1px solid var(--line); }
.panel-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.panel-head h2, .method-panel h2 { margin: 12px 0 0; font: 400 clamp(32px, 4vw, 50px)/1 Georgia, serif; letter-spacing: -.04em; }
.quiet-label { color: var(--muted); font: 9px/1 ui-monospace, monospace; text-transform: uppercase; }
.chart-wrap { margin-top: 42px; padding: 12px; background: var(--panel); border-radius: 16px; }
#historyChart { width: 100%; display: block; }
.chart-grid line { stroke: rgba(241,239,231,.1); stroke-dasharray: 4 6; }
.chart-empty text { fill: #75766d; font-size: 13px; }
.chart-path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.history-widget { padding: 60px 0 58px 48px; display: grid; place-items: center; }
.history-widget .store-widget { width: 430px; min-height: 430px; border: 1px solid var(--line); }
.number-changing { animation: number-arrival .7s ease both; }
@keyframes number-arrival {
  0% { color: var(--acid); text-shadow: 0 0 18px rgba(215,255,69,.36); }
  100% { color: inherit; text-shadow: none; }
}
.method-panel { padding: 60px 0 58px 48px; }
.method-panel p { color: #c3c3b9; font-size: 15px; line-height: 1.6; }
.method-panel > div { display: grid; grid-template-columns: 64px 1fr; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.method-panel b { color: var(--acid); font: 700 20px/1 ui-monospace, monospace; }
.method-panel div span { color: var(--muted); font-size: 11px; }
.method-panel a { display: inline-block; margin-top: 28px; border-bottom: 1px solid var(--paper); padding-bottom: 4px; text-decoration: none; font-size: 11px; }
.lower-grid.history-only { display: block; }
.lower-grid.history-only .history-panel { padding-right: 0; border-right: 0; }

.footer { position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%); min-height: 68px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 28px; padding-inline: 16px; border-top: 1px solid var(--line); background: rgba(16,18,15,.9); box-shadow: 0 -14px 36px rgba(0,0,0,.22); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.footer > span { font-size: 12px; font-weight: 850; }
.footer > a { color: var(--acid); text-decoration: none; font: 700 12px/1 ui-monospace, monospace; }
.footer p { color: var(--muted); font-size: 10px; }
.toast { position: fixed; z-index: 30; right: 20px; bottom: 20px; max-width: 360px; padding: 13px 16px; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 15px 50px rgba(0,0,0,.35); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .command-center { grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr); }
  .map-stage { min-height: 760px; }
  .site-header { grid-template-columns: 1fr auto; }
  .header-center { order: 3; grid-column: 1 / -1; min-height: 34px; border-top: 1px solid var(--line); }
  .store-feature { grid-template-columns: 1fr 460px; padding-inline: 38px; }
  .store-feature.widget-only { grid-template-columns: 1fr; padding-inline: 0; }
}

@media (max-width: 880px) {
  .wide-shell { width: min(1520px, calc(100% - 24px)); }
  .command-center { grid-template-columns: 1fr; }
  .map-stage { min-height: 700px; }
  #brazilMap { width: min(98%, 820px); max-height: 660px; }
  .results-rail { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .rail-head, .progress-box, .share-bar, .rail-timing, .demo-compact { grid-column: 1 / -1; }
  .candidate-grid { grid-template-columns: 1fr 1fr; grid-column: 1 / -1; }
  .rail-metrics { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .store-feature { grid-template-columns: 1fr; padding: 44px 30px; }
  .store-feature.widget-only { padding: 32px 0; }
  .store-widget { width: min(100%, 510px); justify-self: center; }
  .lower-grid { grid-template-columns: 1fr; }
  .history-panel { padding-right: 0; border-right: 0; }
  .history-widget { padding: 44px 0; border-top: 1px solid var(--line); }
  .method-panel { padding-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  html, body { max-width: 100%; overflow-x: clip; }
  body { padding-bottom: 72px; }
  .wide-shell, .site-header { width: calc(100% - 24px); margin-inline: 12px; }
  .site-header { grid-template-columns: 1fr auto; }
  .brand small, .live-pill { display: none; }
  .header-actions { gap: 6px; }
  .utility-action { width: 34px; padding-inline: 0; overflow: hidden; white-space: nowrap; font-size: 0; }
  .share-action span { display: none; }
  .share-action { font-size: 14px; }
  .install-action::before { content: "↓"; font-size: 14px; }
  .header-center { min-width: 0; justify-content: space-between; }
  .stage-heading { min-height: 92px; align-items: start; flex-direction: column; justify-content: center; gap: 14px; }
  .command-center, .map-column, .map-stage, .results-rail, .lower-grid, .history-panel, .history-widget, .chart-wrap { min-width: 0; max-width: 100%; }
  .map-stage { min-height: 560px; }
  .map-hint { display: none; }
  .map-legend { max-width: 88%; }
  .results-rail { display: flex; }
  .candidate-grid { grid-template-columns: 1fr; }
  .candidate-card { width: 100%; min-height: 145px; grid-template-columns: minmax(0, 1fr) 116px; }
  .candidate-card h3 { font-size: 26px; }
  .candidate-party { max-width: 64%; overflow-wrap: anywhere; }
  .share-legend { flex-wrap: wrap; }
  .news-ticker { min-height: 62px; grid-template-columns: auto minmax(0, 1fr); }
  .news-ticker-brand { min-width: 86px; padding-inline: 12px; }
  .news-ticker-brand strong { font-size: 18px; }
  .news-ticker-brand span, .news-ticker-more { display: none; }
  .news-ticker-item { padding-inline: 18px; font-size: 12px; }
  .rail-metrics { grid-template-columns: 1fr 1fr; }
  .store-feature { padding: 36px 18px; }
  .store-feature.widget-only { padding: 24px 0; }
  .store-copy h2 { font-size: 72px; }
  .store-widget { min-height: 0; }
  .history-widget .store-widget { width: 100%; max-width: 430px; }
  .store-feature.widget-only .store-widget { width: min(430px, 100%); }
  .store-widget iframe { width: 100%; height: 430px; }
  #historyChart { max-width: 100%; }
  .panel-head { align-items: start; flex-direction: column; }
  .footer { left: 12px; right: 12px; width: auto; margin: 0; transform: none; min-height: 64px; grid-template-columns: 1fr auto; gap: 14px; padding: 0 12px; }
  .footer p { display: none; }
  .toast { left: 12px; right: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .news-ticker-window { overflow-x: auto; mask-image: none; }
  .news-ticker-track { animation: none !important; }
  .news-ticker-group[aria-hidden="true"] { display: none; }
}
