/* votewood.ca — Shared Design System */

/* Self-hosted fonts — eliminates 2 DNS lookups + 1 CSS request vs Google Fonts */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/roboto-variable.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #1D919E;
  --teal-dark: #166d78;
  --teal-deep: #0e4a50;
  --yellow: #FFEB3B;
  --white: #FFFFFF;
  --card-bg: #ffffff;
  --card-text: #14140D;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --green: #2e7d32;
  --amber: #e65100;
  --red: #c62828;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Roboto', -apple-system, sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--teal-dark);
  color: var(--white);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--yellow); }

/* Links inside white cards — teal with underline for visibility */
.card a:not(.cta-btn):not(.video-card):not(.topic-card),
.chart-card a,
.chart-notes a,
.chart-notes-links a,
.card-links a,
.card-meta a,
.data-table a,
.grant-table a {
  color: #0e8a9a !important;
  font-weight: 700;
  text-decoration: none !important;
  border-bottom: 2px solid rgba(14,138,154,0.25) !important;
  padding-bottom: 1px;
  transition: border-color 0.15s, color 0.15s;
}
.card a:not(.cta-btn):not(.video-card):not(.topic-card):hover,
.chart-card a:hover,
.chart-notes a:hover,
.card-links a:hover,
.data-table a:hover,
.grant-table a:hover {
  color: #0a6e7a !important;
  border-bottom-color: #0a6e7a !important;
}
.card a:not(.cta-btn):not(.video-card):not(.topic-card):visited,
.chart-card a:visited,
.chart-notes a:visited,
.card-links a:visited,
.data-table a:visited,
.grant-table a:visited {
  color: #0e4a50 !important;
  border-bottom-color: rgba(14,74,80,0.2) !important;
}
/* Source cards on dark backgrounds keep yellow */
.source-card a { color: var(--yellow) !important; text-decoration-color: rgba(255,235,59,0.35) !important; }
.source-card a:visited { color: #ddd07a !important; }
.source-card a:hover { text-decoration-color: var(--yellow) !important; }

/* Header */
.header {
  background: var(--teal-deep);
  border-bottom: 2px solid var(--yellow);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.header a { color: var(--yellow); text-decoration: none; font-weight: 700; }
.header-right { font-weight: 700; letter-spacing: 1px; }
.header-name { font-weight: 900; letter-spacing: 1.5px; font-size: 14px; }
.header-contact { font-size: 12px; opacity: 0.7; }
.header-contact a { color: var(--yellow); text-decoration: none; }

/* Split hero — photo left, text right on desktop; stacked on mobile */
.hero-split {
  display: flex; min-height: 420px;
}
.hero-photo {
  width: 50%; object-fit: cover; display: block;
}
.hero {
  text-align: center;
  padding: 56px 32px 48px;
  background: linear-gradient(180deg, var(--teal-deep) 0%, var(--teal-dark) 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
/* When inside split, hero takes remaining 50% */
.hero-split .hero { width: 50%; text-align: left; align-items: flex-start; }
/* Homepage has no photo — full-width hero */
.hero-no-photo {
  padding-top: 72px; padding-bottom: 56px;
  text-align: center; align-items: center;
}
@media (max-width: 768px) {
  .hero-split { flex-direction: column; min-height: auto; }
  .hero-photo { width: 100%; height: 280px; }
  .hero-split .hero { width: 100%; text-align: left; align-items: flex-start; }
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5.5vw, 48px); font-weight: 400;
  margin-bottom: 24px; line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero-sub {
  max-width: 480px; margin: 0 auto 36px; font-size: 17px;
  opacity: 0.85; line-height: 1.8;
  letter-spacing: 0.01em;
  text-align: left;
  text-wrap: pretty;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px; padding: 10px 24px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px;
}

/* Sections */
.section {
  padding: 56px 24px; max-width: 920px; margin: 0 auto;
}
.section-alt {
  background: rgba(0,0,0,0.08);
}
.section-title {
  font-family: var(--serif);
  font-size: 30px; font-weight: 400; color: var(--yellow);
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 32px;
  max-width: 520px; line-height: 1.7; text-wrap: pretty;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.card-full { grid-column: 1 / -1; }

/* Cards */
.card {
  background: var(--card-bg); color: var(--card-text);
  border-radius: var(--radius); padding: 28px 28px 24px;
  box-shadow: var(--shadow); position: relative;
  border-left: 4px solid var(--teal);
  transition: box-shadow 0.2s;
  font-size: 15px; line-height: 1.7;
  text-wrap: pretty;
}
.card:hover { box-shadow: 0 6px 32px rgba(0,0,0,0.15); }
.card p { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 8px 0 12px 18px; }
.card li { margin-bottom: 6px; line-height: 1.6; }

/* Accent colors */
.card-accent-green { border-left-color: var(--green); }
.card-accent-amber { border-left-color: var(--amber); }
.card-accent-red   { border-left-color: var(--red); }
.card-accent-yellow { border-left-color: var(--yellow); }
.card-accent-default { border-left-color: #ddd; }

/* Card label */
.card-label {
  font-size: 12px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1.5px; color: #999; margin-bottom: 16px;
}

/* Card hero stat */
.card-hero {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.card-hero-value {
  font-family: var(--serif); font-size: 52px; color: var(--teal-dark);
  line-height: 1;
}
.card-hero-rank {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  min-width: 52px; height: 52px;
  border-radius: 50%; font-size: 14px; font-weight: 900;
  line-height: 1.1; text-align: center;
}
.rank-green { background: #e8f5e9; color: var(--green); }
.rank-amber { background: #fff3e0; color: var(--amber); }
.rank-red   { background: #ffebee; color: var(--red); }

.card-hero-context {
  font-size: 14px; color: #888; font-style: italic; margin-bottom: 20px;
}

/* Card title */
.card-title {
  font-family: var(--serif); font-size: 22px; color: var(--teal-deep);
  margin-bottom: 12px; line-height: 1.25;
}

/* Card detail text */
.card-detail {
  font-size: 15px; color: #555; margin-bottom: 6px; line-height: 1.7;
  text-wrap: pretty;
}

/* Card meta / source */
.card-meta {
  font-size: 13px; color: #999; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid #eee;
}

/* Stat row (used for inline stats in cards) */
.stat-row {
  display: flex; flex-wrap: wrap; gap: 24px; margin: 16px 0;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--serif); font-size: 28px; color: var(--teal-dark);
  line-height: 1;
}
.stat-label {
  font-size: 11px; color: #888; text-transform: uppercase;
  letter-spacing: 1px; margin-top: 4px;
}

/* Pill badges */
.pill {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 12px;
  font-size: 12px; font-weight: 700; margin-right: 6px; margin-bottom: 4px;
}
.pill-teal { background: #e0f2f3; color: var(--teal-dark); }
.pill-green { background: #e8f5e9; color: var(--green); }
.pill-amber { background: #fff3e0; color: var(--amber); }
.pill-red { background: #ffebee; color: var(--red); }
.pill-grey { background: #f5f5f5; color: #757575; }

/* Data tables */
.data-table {
  width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0;
}
.data-table th {
  text-align: left; font-size: 12px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 1px; color: #bbb;
  padding: 8px 10px; border-bottom: 1px solid #e8e8e8;
}
.data-table th:last-child { text-align: right; }
.data-table td {
  padding: 8px 10px; border-bottom: 1px solid #f4f4f4; color: #555;
}
.data-table td:last-child {
  text-align: right; font-variant-numeric: tabular-nums; font-weight: 700;
  color: #444;
}
.data-table tr.highlight td {
  color: var(--teal-dark); font-weight: 900; background: #f0fafb;
}

/* Ranked table */
.rank-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.rank-table th {
  text-align: left; font-size: 12px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 1px; color: #bbb;
  padding: 8px 10px; border-bottom: 1px solid #e8e8e8;
}
.rank-table th:last-child { text-align: right; }
.rank-table td {
  padding: 7px 8px; border-bottom: 1px solid #f4f4f4; color: #666;
}
.rank-table td:first-child {
  width: 28px; color: #ccc; font-size: 11px; text-align: center; font-weight: 700;
}
.rank-table td:last-child {
  text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: #444;
}
.rank-table tr.rank-highlight td {
  color: var(--teal-dark); font-weight: 900; background: #f0fafb;
}
.rank-table tr.rank-highlight td:first-child {
  border-left: 3px solid var(--teal); color: var(--teal);
}
.rank-table tr.rank-row { cursor: pointer; transition: background 0.15s; }
.rank-table tr.rank-row:hover td { background: #f8f8f8; }
.rank-table tr.rank-highlight.rank-row:hover td { background: #e4f3f5; }
.rank-table td.rank-arrow {
  width: 20px; padding: 7px 4px; color: #ccc; font-size: 9px;
  text-align: center; user-select: none;
}
.rank-table tr.rank-highlight td.rank-arrow { color: var(--teal); }
.rank-detail { display: none; }
.rank-detail.open { display: table-row; }
.rank-detail td {
  padding: 10px 12px 14px 40px;
  font-size: 11px; color: #888; line-height: 1.7;
  border-bottom: 1px solid #eee; background: #fafafa;
}
.rank-highlight + .rank-detail td { background: #f0fafb; }

/* Chart cards */
.chart-card {
  background: var(--card-bg); color: var(--card-text);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border-left: 4px solid var(--teal);
}
.chart-card-label {
  font-size: 12px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1.5px; color: #999; margin-bottom: 4px;
}
.chart-card-hero {
  font-family: var(--serif); font-size: clamp(20px, 4vw, 28px); color: var(--teal-dark);
  margin-bottom: 4px; line-height: 1.2;
}
.chart-card-trend {
  font-size: 12px; font-weight: 700; margin-bottom: 16px;
}
.trend-up { color: var(--red); }
.trend-down-good { color: var(--green); }
.trend-up-good { color: var(--green); }
.trend-down { color: var(--red); }
.trend-flat { color: #999; }
.chart-svg { width: 100%; height: 180px; display: block; }
.chart-legend {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 12px; font-size: 13px; color: #888;
}
.chart-legend-item { display: flex; align-items: center; gap: 6px; }
.chart-legend-swatch {
  width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0;
}
.chart-source {
  font-size: 13px; color: #bbb; margin-top: 12px;
  padding-top: 10px; border-top: 1px solid #f0f0f0;
}

/* Chart annotations */
.chart-notes {
  margin-top: 16px; padding: 16px 18px;
  background: #f7fbfb; border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0; font-size: 14px; color: #555; text-wrap: pretty;
  line-height: 1.75; letter-spacing: 0.01em;
}
.chart-notes strong { color: var(--teal-dark); }
.chart-notes-links {
  margin-top: 10px; padding-top: 8px; border-top: 1px solid #e8eeee;
  font-size: 13px;
}
.chart-notes-links a {
  color: var(--teal); text-decoration: none; margin-right: 12px;
  display: inline-block; margin-bottom: 4px;
}
.chart-notes-links a:hover { text-decoration: underline; }
.chart-notes-links .link-source {
  color: #bbb; font-size: 10px; font-style: italic;
}
.chart-notes .note-year {
  display: inline-block; background: var(--teal); color: white;
  font-size: 10px; font-weight: 900; padding: 1px 6px;
  border-radius: 3px; margin-right: 4px; vertical-align: 1px;
}

/* Narrative */
.narrative {
  background: var(--teal-deep);
  border-top: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  padding: 72px 24px; text-align: center;
}
.narrative h2 {
  font-family: var(--serif);
  color: var(--yellow); font-size: clamp(24px, 4vw, 34px);
  font-weight: 400; margin-bottom: 28px; letter-spacing: -0.01em;
}
.narrative p {
  max-width: 480px; margin: 0 auto 18px;
  font-size: 16px; opacity: 0.85; line-height: 1.85;
  text-align: left;
  text-wrap: pretty;
}
.cta-btn {
  display: inline-block; margin-top: 28px; padding: 16px 40px;
  background: var(--yellow); color: var(--teal-deep);
  font-weight: 900; font-size: 15px; text-decoration: none;
  border-radius: 8px; letter-spacing: 0.5px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

/* Source card */
.source-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 28px; color: rgba(255,255,255,0.7);
  font-size: 14px; line-height: 1.8; text-wrap: pretty;
}
.source-card strong { color: rgba(255,255,255,0.9); }

/* Footer */
.footer {
  background: var(--teal-deep); padding: 32px 24px;
  text-align: center; font-size: 12px; opacity: 0.6; line-height: 1.8;
}

/* Stale state */
.card-stale-msg {
  text-align: center; font-size: 12px; color: #aaa;
  background: #f5f5f5; padding: 12px; border-radius: 8px; margin-top: 12px;
}

/* Homepage topic grid */
.topics { padding: 64px 24px; max-width: 1060px; margin: 0 auto; }
.topics-intro { text-align: center; margin-bottom: 48px; }
.topics-intro h2 {
  font-family: var(--serif); font-size: 28px; color: var(--yellow);
  font-weight: 400; margin-bottom: 12px;
}
.topics-intro p {
  max-width: 480px; margin: 0 auto; font-size: 15px;
  opacity: 0.7; line-height: 1.7; text-wrap: pretty;
}
.topic-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.topic-card {
  background: #ffffff; color: #14140D; border-radius: var(--radius);
  padding: 28px 24px 24px; box-shadow: var(--shadow);
  text-decoration: none; display: block; position: relative;
  border-left: 4px solid var(--teal); transition: transform 0.15s, box-shadow 0.2s;
}
.topic-card:hover {
  transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.topic-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.topic-name {
  font-family: var(--serif); font-size: 20px; color: var(--teal-deep);
  margin-bottom: 6px; line-height: 1.2;
}
.topic-stat {
  font-family: var(--serif); font-size: 32px; color: var(--teal);
  margin-bottom: 8px; line-height: 1;
}
.topic-desc {
  font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 18px;
}
.topic-arrow {
  font-size: 13px; font-weight: 900; color: var(--teal);
  letter-spacing: 0.5px; text-transform: uppercase; font-size: 11px;
}

/* Video embeds */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.video-card {
  display: block; text-decoration: none; color: var(--card-text);
  border-radius: 10px; overflow: hidden; background: #f8f8f8;
  transition: transform 0.15s, box-shadow 0.2s;
}
.video-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.15); }
.video-card-thumb {
  position: relative; width: 100%; padding-bottom: 56.25%;
  background: #111; overflow: hidden;
}
.video-card-thumb img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.video-card-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 34px; background: rgba(255,0,0,0.85);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.video-card-play::after {
  content: ''; border-left: 14px solid white; border-top: 8px solid transparent;
  border-bottom: 8px solid transparent; margin-left: 3px;
}
.video-card-info { padding: 12px 14px; }
.video-card-title {
  font-size: 13px; font-weight: 700; color: #222; line-height: 1.4;
  margin-bottom: 4px;
}
.video-card-meta { font-size: 11px; color: #999; }

/* Council quote cards */
.quote-card {
  background: var(--card-bg); color: var(--card-text);
  border-radius: var(--radius); padding: 28px 28px 20px;
  box-shadow: var(--shadow); border-left: 4px solid var(--yellow);
  position: relative;
}
.quote-card::before {
  content: '\201C'; font-family: var(--serif); font-size: 64px;
  color: rgba(29,145,158,0.12); position: absolute; top: 8px; left: 16px;
  line-height: 1;
}
.quote-text {
  font-size: 17px; color: #333; line-height: 1.8;
  font-style: italic; padding-left: 12px; margin-bottom: 18px;
  text-wrap: pretty;
  letter-spacing: 0.01em;
}
.quote-source {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.quote-attribution {
  font-size: 13px; color: #999; font-style: normal;
}
.quote-watch {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--teal) !important;
  text-decoration: none !important; border-bottom: none !important;
  background: #e0f2f3; padding: 5px 14px; border-radius: 20px;
  transition: background 0.15s;
}
.quote-watch:hover { background: #c8eaed; }
.quote-watch::before {
  content: ''; width: 0; height: 0;
  border-left: 8px solid var(--teal); border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.quote-label {
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--teal); margin-bottom: 12px;
}

/* Sticky vote bar — bottom of every page */
.vote-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--teal-deep); border-top: 2px solid var(--yellow);
  padding: 10px 24px;
  display: flex; justify-content: center; align-items: center; gap: 16px;
  font-size: 13px; letter-spacing: 0.3px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.vote-bar-date {
  font-family: var(--serif); font-size: 15px; color: var(--yellow);
}
.vote-bar-msg { opacity: 0.85; }
.vote-bar-cta {
  background: var(--yellow); color: var(--teal-deep);
  padding: 6px 16px; border-radius: 4px; text-decoration: none;
  font-weight: 900; font-size: 12px; letter-spacing: 0.5px;
  transition: transform 0.15s;
  white-space: nowrap;
}
.vote-bar-cta:hover { transform: translateY(-1px); }

/* Election CTA section (homepage) */
.election-cta {
  background: var(--teal-deep);
  padding: 80px 24px; text-align: center;
  border-top: 2px solid var(--yellow);
}
.election-date {
  font-family: var(--serif); font-size: clamp(32px, 6vw, 52px);
  color: var(--yellow); font-weight: 400; margin-bottom: 24px;
  letter-spacing: 1px;
}
.election-headline {
  font-family: var(--serif); font-size: clamp(24px, 4vw, 36px);
  font-weight: 400; margin-bottom: 28px; line-height: 1.2;
}
.election-body {
  max-width: 480px; margin: 0 auto 12px; font-size: 16px;
  opacity: 0.85; line-height: 1.8;
  text-align: left;
  text-wrap: pretty;
}
.election-emphasis {
  font-size: 17px; font-weight: 700; opacity: 1; margin-top: 20px;
}

/* Body padding to account for sticky bar */
body { padding-bottom: 52px; }

/* About Sean section (homepage) */
.about-sean {
  padding: 64px 24px;
  background: rgba(0,0,0,0.12);
}
.about-sean-inner {
  max-width: 780px !important; margin: 0 auto;
  display: flex !important; gap: 36px; align-items: flex-start;
}
.about-sean-photo {
  width: 280px; height: auto; border-radius: 12px;
  object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--yellow);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.about-sean-text h2 {
  font-family: var(--serif); font-size: 32px;
  color: var(--yellow); font-weight: 400; margin-bottom: 4px;
}
.about-sean-role {
  font-size: 14px; color: rgba(255,255,255,0.6);
  margin-bottom: 16px; font-weight: 700;
  letter-spacing: 0.3px;
}
.about-sean-text p {
  font-size: 15px; opacity: 0.85; line-height: 1.8;
  margin-bottom: 12px; text-wrap: pretty;
}
.about-sean-why {
  font-style: italic; opacity: 0.95 !important;
  border-left: 3px solid var(--yellow);
  padding-left: 16px; margin-top: 16px !important;
}
@media (max-width: 640px) {
  .about-sean-inner {
    flex-direction: column; align-items: center; text-align: center;
  }
  .about-sean-photo { width: 100%; max-width: 320px; height: auto; }
  .about-sean-why { border-left: none; padding-left: 0; border-top: 3px solid var(--yellow); padding-top: 16px; }
}

/* About section (homepage) */
.about { padding: 64px 24px; max-width: 720px; margin: 0 auto; text-align: left; }
.about h2 {
  font-family: var(--serif); font-size: 28px; color: var(--yellow);
  font-weight: 400; margin-bottom: 20px;
}
.about p { font-size: 15px; opacity: 0.8; line-height: 1.8; margin-bottom: 16px; text-wrap: pretty; }
.about-contact { margin-top: 24px; font-size: 15px; }
.about-contact a { color: var(--yellow); text-decoration: none; font-weight: 700; }

/* Timeline (parks page) */
.timeline-item {
  display: flex; gap: 12px; margin-bottom: 14px;
  font-size: 13px; color: #555; line-height: 1.5;
}

/* Responsive */
@media (max-width: 640px) {
  .header { flex-direction: column; gap: 4px; text-align: center; }
  .hero { padding: 48px 20px 40px; }
  .hero h1 { font-size: 28px; line-height: 1.25; }
  .hero-sub { font-size: 16px; }
  .section { padding: 40px 16px; }
  .section-title { font-size: 24px; }
  .card { padding: 20px; font-size: 16px; }
  .card-title { font-size: 20px; }
  .card-hero-value { font-size: 40px; }
  .card-hero-rank { min-width: 44px; height: 44px; font-size: 13px; }
  .card-grid { grid-template-columns: 1fr; }
  .rank-table { font-size: 13px; }
  .rank-table td, .rank-table th { padding: 7px 8px; }
  .chart-card { padding: 20px 16px; }
  .chart-card-label { font-size: 11px; letter-spacing: 1px; }
  .chart-card-trend { font-size: 13px; }
  .chart-svg { height: 160px; }
  .chart-notes { font-size: 14px; padding: 14px 16px; }
  .chart-notes-links { font-size: 12px; }
  .chart-legend { font-size: 12px; gap: 10px; }
  .chart-source { font-size: 12px; }
  .topics { padding: 48px 16px; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-stat { font-size: 28px; }
  .topic-desc { font-size: 15px; }
  .stat-row { gap: 16px; }
  .stat-value { font-size: 24px; }
  .narrative { padding: 56px 20px; }
  .narrative p { font-size: 16px; }
  .about { padding: 48px 16px; }
  .quote-text { font-size: 16px; padding-left: 8px; }
  .quote-card { padding: 22px 20px 18px; }
  .vote-bar { flex-direction: column; gap: 6px; padding: 8px 16px; font-size: 13px; }
  .vote-bar-date { font-size: 14px; }
  body { padding-bottom: 72px; }
  .election-cta { padding: 56px 20px; }
  .election-body { font-size: 16px; }
}
