:root {
  --forest: #0d3b2e;
  --forest-2: #145241;
  --mint: #dff4e8;
  --cream: #f4f0e5;
  --paper: #fffdf7;
  --ink: #18221e;
  --muted: #657069;
  --gold: #eab44f;
  --line: rgba(24, 34, 30, .16);
  --shadow: 0 24px 70px rgba(11, 42, 33, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 10px 14px; background: white; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 clamp(22px, 5vw, 76px); background: rgba(244, 240, 229, .9); border-bottom: 1px solid rgba(13, 59, 46, .1); backdrop-filter: blur(16px); }
.brand { display: flex; gap: 12px; align-items: center; color: var(--forest); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--cream); background: var(--forest); border-radius: 50%; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.brand strong, .brand small { display: block; }
.brand strong { line-height: 1.15; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { color: #385047; font-size: 14px; font-weight: 700; text-decoration: none; }
.language { min-width: 42px; height: 34px; padding: 0 13px; color: var(--forest); background: transparent; border: 1px solid rgba(13,59,46,.25); border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 900; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(370px, .82fr); gap: clamp(48px, 8vw, 116px); align-items: center; min-height: 660px; padding: clamp(70px, 9vw, 130px) clamp(24px, 7vw, 110px); overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -12vw; top: -10vw; width: 46vw; height: 46vw; border: 1px solid rgba(13,59,46,.1); border-radius: 50%; box-shadow: 0 0 0 80px rgba(13,59,46,.025), 0 0 0 160px rgba(13,59,46,.02); pointer-events: none; }
.hero-copy, .election-card { position: relative; z-index: 1; }
.eyebrow, .kicker { color: var(--forest-2); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow > span:first-child { width: 26px; height: 3px; background: var(--gold); border-radius: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 810px; margin: 20px 0 22px; color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px, 7vw, 96px); font-weight: 500; letter-spacing: -.055em; line-height: .95; }
.hero-lede { max-width: 650px; color: #43534c; font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border-radius: 9px; font-size: 14px; font-weight: 850; text-decoration: none; }
.button.primary { color: white; background: var(--forest); box-shadow: 0 10px 25px rgba(13,59,46,.2); }
.button.secondary { color: var(--forest); border: 1px solid rgba(13,59,46,.22); background: rgba(255,255,255,.35); }
.button:hover, .source-link:hover, nav a:hover { opacity: .76; }

.election-card { padding: 28px; background: var(--paper); border: 1px solid rgba(13,59,46,.12); border-radius: 24px; box-shadow: var(--shadow); }
.date-block { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: end; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.date-block strong { color: var(--forest); font-size: 14px; letter-spacing: .25em; }
.date-block span { grid-row: 1 / 3; grid-column: 2; color: var(--forest); font-family: Georgia, serif; font-size: 72px; line-height: .78; }
.date-block small { color: var(--muted); font-weight: 800; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 8px 0 18px; }
.fact-grid div { padding: 18px 12px 14px 0; border-bottom: 1px solid var(--line); }
.fact-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.fact-grid div:nth-child(even) { padding-left: 18px; }
.fact-grid span, .fact-grid strong { display: block; }
.fact-grid span { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.fact-grid strong { margin-top: 4px; color: var(--forest); font-size: 15px; }
.status-note { display: flex; gap: 11px; padding: 14px; background: #fff6dc; border-radius: 12px; }
.status-dot { flex: none; width: 9px; height: 9px; margin-top: 7px; background: #c58100; border-radius: 50%; box-shadow: 0 0 0 5px rgba(197,129,0,.12); }
.status-note p { margin: 0; color: #5f4a1f; font-size: 12px; line-height: 1.55; }
.source-link { display: inline-block; margin-top: 18px; color: var(--forest); font-size: 12px; font-weight: 850; }

.district-guide { position: relative; z-index: 1; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: clamp(28px, 5vw, 70px); margin-top: 40px; padding-top: 54px; border-top: 1px solid rgba(13,59,46,.16); scroll-margin-top: 96px; }
.map-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.map-heading h2 { margin: 6px 0 0; color: var(--forest); font-family: Georgia, serif; font-size: clamp(30px, 4vw, 46px); font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.map-heading a { flex: none; color: var(--forest); font-size: 11px; font-weight: 850; }
.map-frame { position: relative; display: block; aspect-ratio: 637 / 538; overflow: hidden; background: #e9e4d7; border: 1px solid rgba(13,59,46,.16); border-radius: 18px; box-shadow: var(--shadow); }
.map-frame img { position: absolute; top: 50%; left: 50%; height: 118.4%; max-width: none; transform: translate(-50%, -50%) rotate(-90deg); }
.map-frame span { position: absolute; right: 14px; bottom: 14px; padding: 8px 11px; color: white; background: rgba(13,59,46,.88); border-radius: 999px; font-size: 10px; font-weight: 850; }
.map-caution { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.district-cards { display: grid; gap: 9px; }
.district-cards article { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px; background: rgba(255,255,255,.55); border: 1px solid rgba(13,59,46,.12); border-radius: 13px; }
.district-number { display: grid; place-items: center; width: 42px; height: 42px; color: #102c24; border-radius: 50%; font-family: Georgia, serif; font-size: 21px; font-weight: 700; }
.district-number.d2 { background: #45b4ca; }
.district-number.d4 { background: #746d99; color: white; }
.district-number.d5 { background: #d2b27b; }
.district-cards strong { display: block; color: var(--forest); font-size: 12px; }
.district-cards p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.cycle-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.measure-card { margin-top: 22px; padding: 22px; color: white; background: var(--forest); border-radius: 16px; }
.measure-card .kicker { color: #9dd8bb; }
.measure-card h3 { margin: 7px 0 10px; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.measure-card p, .measure-card li { color: #c2d5cc; font-size: 11px; line-height: 1.55; }
.measure-card ul { padding-left: 18px; margin: 12px 0; }
.measure-card li + li { margin-top: 6px; }
.measure-card a { color: var(--gold); font-size: 11px; font-weight: 850; }

.council-section { padding: 108px clamp(24px, 7vw, 110px) 120px; background: var(--paper); border-top: 1px solid var(--line); }
.council-profile-grid .profile-card { background: #f3f5ef; }
.profiles-section { padding: 108px clamp(24px, 7vw, 110px) 120px; background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 520px); gap: 50px; align-items: end; margin-bottom: 42px; }
.section-heading h2 { margin: 7px 0 0; color: var(--forest); font-family: Georgia, serif; font-size: clamp(40px, 5.4vw, 70px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.section-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.toolbar { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 16px 0 22px; border-top: 1px solid var(--line); }
.search-box { display: flex; align-items: center; gap: 8px; min-width: min(390px, 100%); padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.search-box input { width: 100%; height: 46px; color: var(--ink); border: 0; outline: 0; background: transparent; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { min-height: 38px; padding: 0 14px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 800; }
.filter.active { color: var(--forest); background: var(--mint); }
.profile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.profile-card { position: relative; display: flex; flex-direction: column; min-height: 354px; padding: 20px; overflow: hidden; background: #f3f5ef; border: 1px solid transparent; border-radius: 16px; transition: transform .2s ease, border-color .2s ease; }
.profile-card:hover { transform: translateY(-4px); border-color: rgba(13,59,46,.22); }
.initials { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 30px; color: var(--forest); background: var(--mint); border-radius: 50%; font-family: Georgia, serif; font-size: 20px; }
.profile-card:nth-child(2n) .initials { background: #f7e7bf; }
.card-status { position: absolute; top: 20px; right: 18px; max-width: 96px; color: var(--muted); font-size: 9px; font-weight: 900; line-height: 1.35; letter-spacing: .09em; text-align: right; text-transform: uppercase; }
.profile-card h3 { margin-bottom: 4px; color: var(--forest); font-family: Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.05; }
.role { color: var(--forest-2); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.summary { margin: 14px 0 20px; color: #55635d; font-size: 13px; line-height: 1.55; }
.card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.card-meta span, .card-meta strong { display: block; }
.card-meta span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.card-meta strong { margin-top: 2px; color: var(--ink); font-size: 12px; }
.card-link { display: inline-block; margin-top: 16px; color: var(--forest); font-size: 11px; font-weight: 850; }
.card-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.research-button { align-self: flex-start; padding: 0; background: transparent; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.empty-state { padding: 30px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 14px; }

.civic-report { margin-top: 70px; padding: clamp(24px, 4vw, 48px); background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.report-intro { display: grid; grid-template-columns: 1fr minmax(280px, 520px); gap: 40px; align-items: end; }
.report-intro h3 { margin: 6px 0 0; color: var(--forest); font-family: Georgia, serif; font-size: clamp(32px, 4vw, 50px); font-weight: 500; letter-spacing: -.03em; }
.report-intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.city-score { display: grid; grid-template-columns: 1.5fr auto auto 2fr; gap: 20px; align-items: center; margin: 34px 0 20px; padding: 22px; color: white; background: var(--forest); border-radius: 16px; }
.city-score > span { font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.city-score strong { color: var(--gold); font-family: Georgia, serif; font-size: 36px; font-weight: 500; }
.city-score strong small { font-size: 14px; }
.city-score em { padding: 7px 10px; color: var(--forest); background: var(--gold); border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 900; }
.city-score p { margin: 0; color: #c1d4cc; font-size: 11px; line-height: 1.55; }
.table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.report-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 12px; }
.report-table caption { padding: 14px 16px; color: var(--forest); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-align: left; text-transform: uppercase; background: #eef2eb; }
.report-table th, .report-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.report-table th { color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; background: #fafbf8; }
.report-table tbody tr:last-child td { border-bottom: 0; }
.rating { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.rating.positive { color: #0d5e43; background: #d9f4e7; }
.rating.improving { color: #765314; background: #fff0bf; }
.rating.concern { color: #8d3030; background: #ffe0dc; }
.table-person { color: var(--forest); font-weight: 850; text-underline-offset: 3px; }
.report-sources { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 20px; color: var(--muted); font-size: 11px; }
.report-sources a { color: var(--forest); font-weight: 800; }
.pond-record { margin-top: 24px; padding: clamp(24px, 4vw, 48px); color: white; background: #102c24; border-radius: 24px; }
.light-report h3 { color: white; }
.light-report .kicker { color: #99d5b8; }
.light-report p { color: #b3c9c0; }
.pond-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 34px 0 22px; }
.pond-facts div { padding: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.pond-facts span, .pond-facts strong { display: block; }
.pond-facts span { color: #9eb7ad; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.pond-facts strong { margin-top: 7px; color: var(--gold); font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.dark-table { border-color: rgba(255,255,255,.13); }
.dark-table .report-table caption, .dark-table .report-table th { color: #bdd0c8; background: rgba(255,255,255,.06); }
.dark-table .report-table th, .dark-table .report-table td { border-color: rgba(255,255,255,.11); }
.dark-table .table-person { color: var(--gold); }
.pond-links { color: #aac1b7; }
.pond-links a { color: white; }

.compare-panel { margin-top: 80px; padding: clamp(26px, 4vw, 48px); color: white; background: var(--forest); border-radius: 24px; }
.compare-head { display: grid; grid-template-columns: 1fr minmax(240px, 410px); gap: 40px; align-items: end; }
.compare-panel .kicker { color: #9dd8bb; }
.compare-head h3 { margin: 5px 0 0; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 48px); font-weight: 500; letter-spacing: -.03em; }
.compare-head p { margin: 0; color: #bad1c7; font-size: 13px; }
.compare-controls { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; margin: 36px 0 24px; }
.compare-controls label > span { display: block; margin-bottom: 7px; color: #a8c9ba; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.compare-controls select { width: 100%; min-height: 49px; padding: 0 14px; color: white; background: #164d3e; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; }
.versus { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 5px; color: var(--gold); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; font-size: 10px; font-weight: 900; }
.comparison { overflow-x: auto; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; }
.compare-row { display: grid; grid-template-columns: minmax(120px,.7fr) 1fr 1fr; border-bottom: 1px solid rgba(255,255,255,.1); }
.compare-row:last-child { border-bottom: 0; }
.compare-row > div { padding: 13px 16px; font-size: 13px; }
.compare-row > div + div { border-left: 1px solid rgba(255,255,255,.1); }
.compare-label { color: #9bbcaf; font-size: 9px !important; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.compare-name { color: var(--gold); font-family: Georgia, serif; font-size: 18px !important; }

.history-section { padding: 110px clamp(24px, 7vw, 110px); color: white; background: #102c24; }
.section-heading.light h2 { color: white; }
.section-heading.light .kicker { color: #99d5b8; }
.section-heading.light p { color: #acc2b8; }
.timeline { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 50px; border-top: 1px solid rgba(255,255,255,.18); }
.timeline-item { position: relative; padding: 28px 18px 34px 0; }
.timeline-item::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 6px rgba(234,180,79,.12); }
.timeline-item time { color: var(--gold); font-family: Georgia, serif; font-size: 26px; }
.timeline-item strong { display: block; margin: 8px 0 7px; font-size: 13px; }
.timeline-item p { margin: 0; color: #9eb7ad; font-size: 11px; line-height: 1.55; }
.source-drawer { display: grid; grid-template-columns: .7fr 2fr; gap: 60px; margin-top: 70px; padding-top: 50px; border-top: 1px solid rgba(255,255,255,.16); }
.source-drawer .kicker { color: #99d5b8; }
.source-drawer h3 { margin: 6px 0 0; font-family: Georgia, serif; font-size: 36px; font-weight: 500; }
.source-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.source-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; min-height: 62px; padding: 0 14px; text-decoration: none; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; }
.source-list a:hover { background: rgba(255,255,255,.1); }
.source-list span { color: var(--gold); font-size: 10px; }
.source-list strong { font-size: 12px; }
.source-list small { color: #8ba99d; font-size: 9px; }
footer { display: flex; justify-content: space-between; gap: 30px; padding: 28px clamp(24px, 7vw, 110px); color: #98aa9f; background: #0a211b; font-size: 11px; }
footer p { margin: 0; }
footer a { color: white; font-weight: 750; text-decoration: none; }

.candidate-dialog { width: min(880px, calc(100vw - 28px)); max-height: min(850px, calc(100vh - 28px)); padding: clamp(24px, 5vw, 52px); color: var(--ink); background: var(--paper); border: 0; border-radius: 24px; box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.candidate-dialog::backdrop { background: rgba(5,24,18,.72); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; z-index: 2; top: 0; float: right; min-width: 68px; min-height: 36px; color: var(--forest); background: var(--mint); border: 0; border-radius: 999px; cursor: pointer; font-size: 11px; font-weight: 850; }
.dialog-heading { padding-right: 78px; }
.district-chip { display: inline-flex; padding: 5px 9px; color: var(--forest); background: var(--mint); border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dialog-heading h3 { margin: 14px 0 8px; color: var(--forest); font-family: Georgia, serif; font-size: clamp(36px, 6vw, 58px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.dialog-heading p { max-width: 690px; color: var(--muted); }
.research-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0; }
.research-overview div { padding: 18px; background: #f1f3ed; border-radius: 12px; }
.research-overview div:last-child { grid-column: 1 / -1; }
.research-overview span { color: var(--forest-2); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.research-overview p { margin: 7px 0 0; color: #46574f; font-size: 13px; line-height: 1.6; }
.research-group { margin-top: 26px; }
.research-group h4 { margin: 0 0 10px; color: var(--forest); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.research-source { display: grid; grid-template-columns: minmax(190px,.8fr) 1.2fr; gap: 18px; padding: 14px 0; text-decoration: none; border-top: 1px solid var(--line); }
.research-source:hover strong { text-decoration: underline; }
.research-source strong { color: var(--forest); font-size: 13px; }
.research-source span { color: var(--muted); font-size: 12px; }
.source-policy { margin: 30px 0 0; padding: 14px; color: #6e6246; background: #fff6dc; border-radius: 10px; font-size: 11px; }
.score-banner { display: flex; gap: 14px; align-items: center; margin: 24px 0; padding: 16px 18px; color: white; background: var(--forest); border-radius: 12px; }
.score-banner span { margin-right: auto; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.score-banner strong { color: var(--gold); font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.score-banner em { padding: 5px 8px; color: var(--forest); background: var(--gold); border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 900; }
.aquatic-profile { margin: 28px 0; padding: 20px; color: white; background: #102c24; border-radius: 14px; }
.aquatic-profile .kicker { color: #99d5b8; }
.aquatic-profile h4 { margin: 6px 0 10px; color: white; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.aquatic-profile > p { color: #bfd0c9; font-size: 12px; line-height: 1.65; }
.mini-votes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.mini-votes span { padding: 10px; color: #9eb7ad; background: rgba(255,255,255,.06); border-radius: 8px; font-size: 9px; text-transform: uppercase; }
.mini-votes strong { display: block; margin-top: 5px; color: var(--gold); font-size: 11px; text-transform: none; }
.legal-note { margin-bottom: 0; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.12); font-size: 10px !important; }

@media (max-width: 1120px) {
  .profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 10px; }
}
@media (max-width: 860px) {
  nav a { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .election-card { max-width: 620px; }
  .district-guide { grid-template-columns: 1fr; }
  .section-heading, .compare-head, .source-drawer, .report-intro { grid-template-columns: 1fr; gap: 18px; }
  .city-score { grid-template-columns: 1fr auto auto; }
  .city-score p { grid-column: 1 / -1; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .topbar { min-height: 68px; }
  .brand small { display: none; }
  h1 { font-size: 51px; }
  .hero { min-height: auto; padding-top: 62px; }
  .election-card { padding: 20px; border-radius: 18px; }
  .map-heading { align-items: flex-start; flex-direction: column; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { min-height: 315px; }
  .city-score { grid-template-columns: 1fr auto; }
  .city-score em { grid-column: 2; }
  .city-score p { grid-column: 1 / -1; }
  .pond-facts, .mini-votes { grid-template-columns: 1fr; }
  .compare-controls { grid-template-columns: 1fr; }
  .versus { display: none; }
  .compare-row { grid-template-columns: 105px minmax(150px,1fr) minmax(150px,1fr); }
  .timeline { grid-template-columns: 1fr 1fr; }
  .source-list { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
  .candidate-dialog { padding: 22px; border-radius: 16px; }
  .research-overview, .research-source { grid-template-columns: 1fr; }
  .research-overview div:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
