/* =====================================================
   IOWA VOTER GUIDE — SHARED STYLES
   Cool Prairie palette · Playfair Display + Inter
   ===================================================== */

/* FORCE LIGHT COLOR SCHEME (prevents OS dark mode override) */
:root {
  color-scheme: light;
  --bg-primary: #F2F0E8;
  --bg-secondary: #F8F6EE;
  --bg-card: #FFFFFF;
  --text-primary: #1A1F1A;
  --text-secondary: #4F5350;
  --text-tertiary: #807F7A;
  --accent-pine: #3A5440;
  --accent-pine-dark: #2A3F2F;
  --accent-wheat: #9B7A3F;
  --border: #C5C1B0;
  --border-soft: #DBD8C9;
  --party-r: #C62828;
  --party-d: #1565C0;
  --shadow-subtle: 0 1px 3px rgba(26, 31, 26, 0.04);
  --shadow-card: 0 2px 8px rgba(26, 31, 26, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
    --bg-primary: #F2F0E8;
    --bg-secondary: #F8F6EE;
    --bg-card: #FFFFFF;
    --text-primary: #1A1F1A;
    --text-secondary: #4F5350;
    --text-tertiary: #807F7A;
    --accent-pine: #3A5440;
    --accent-pine-dark: #2A3F2F;
    --accent-wheat: #9B7A3F;
    --border: #C5C1B0;
    --border-soft: #DBD8C9;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #F2F0E8; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary) !important;
  background: var(--bg-primary) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--text-primary); }
a { color: var(--accent-pine); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-pine-dark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--accent-pine); color: var(--bg-secondary);
  padding: 0.75rem 1rem; z-index: 200; text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { top: 0; }

/* =====================================================
   TOP NAVIGATION
   ===================================================== */
.top-nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-subtle);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none; white-space: nowrap;
}
.nav-brand:hover { color: var(--accent-pine); }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links li { position: relative; }
.nav-links a, .nav-links .nav-button {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  background: none; border: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
  display: inline-block;
}
.nav-links a:hover, .nav-links .nav-button:hover {
  background: var(--bg-primary); color: var(--accent-pine);
}
.nav-links a.active {
  color: var(--accent-pine); background: var(--bg-primary);
}
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 200px;
  box-shadow: var(--shadow-card);
  padding: 0.4rem 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  margin-top: 4px;
  list-style: none;
}
.nav-links li:hover .dropdown,
.nav-links li:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 0.5rem 1rem;
  border-radius: 0; font-size: 0.9rem;
}
.dropdown a:hover { background: var(--bg-primary); }

.mobile-toggle {
  display: none;
  background: none; border: none;
  padding: 0.5rem; cursor: pointer;
  color: var(--text-primary);
}
.mobile-toggle svg { width: 24px; height: 24px; display: block; }

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem 0 0.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li {
    width: 100%;
    border-top: 1px solid var(--border-soft);
  }
  .nav-links li:first-child { border-top: none; }
  .nav-links a, .nav-links .nav-button {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-links .nav-button::after {
    content: '▾';
    font-size: 0.75rem;
    margin-left: 0.5rem;
    transition: transform 0.2s;
  }
  .nav-links .nav-button[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none; border: none;
    background: var(--bg-primary);
    padding: 0;
    margin: 0;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .dropdown.open { max-height: 500px; }
  .dropdown a {
    padding: 0.7rem 1.5rem 0.7rem 2.5rem;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-soft);
  }
  .mobile-toggle { display: block; }
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-soft);
}
.breadcrumb {
  font-size: 0.85rem; color: var(--text-tertiary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase; font-weight: 500;
}
.breadcrumb a { color: var(--text-tertiary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-pine); }
.page-title { margin-bottom: 0.5rem; }
.page-subtitle {
  font-size: 1.15rem; color: var(--text-secondary);
  margin: 0; max-width: 720px;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.section:last-of-type { border-bottom: none; }
.section-title { margin-bottom: 1.25rem; }
.section-intro {
  max-width: 760px; color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.office-summary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
}
.office-summary p:last-child { margin-bottom: 0; }
.office-summary strong { color: var(--text-primary); }

.race-context {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.context-stat {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-pine);
  padding: 0.85rem 1rem;
  border-radius: 4px;
}
.context-stat-label {
  font-size: 0.78rem; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 500; margin-bottom: 0.25rem;
}
.context-stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem; color: var(--text-primary);
  font-weight: 600;
}

/* =====================================================
   QUIZ CTA
   ===================================================== */
.quiz-cta {
  background: var(--accent-pine);
  color: var(--bg-secondary);
  padding: 2rem 1.75rem;
  border-radius: 8px;
  text-align: center;
  margin: 2rem 0;
}
.quiz-cta h2 { color: var(--bg-secondary); margin-bottom: 0.5rem; }
.quiz-cta p {
  color: rgba(248, 246, 238, 0.92);
  margin: 0 auto 1.25rem; max-width: 560px;
}
.quiz-button {
  display: inline-block;
  background: var(--bg-secondary);
  color: var(--accent-pine-dark);
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.15s, transform 0.1s;
}
.quiz-button:hover { background: #FFFFFF; transform: translateY(-1px); }
.quiz-button:active { transform: translateY(0); }

/* =====================================================
   CANDIDATE CARDS
   ===================================================== */
.candidates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.candidate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-subtle);
  display: grid;
  grid-template-rows: auto auto auto auto auto auto;
  overflow: hidden;
}
.candidate-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}
.candidate-photo-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--text-tertiary);
}
.candidate-photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.candidate-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem; font-weight: 600;
  margin: 0 0 0.2rem; line-height: 1.2;
}
.party-label { font-weight: 600; font-family: 'Inter', sans-serif; }
.party-label.r { color: var(--party-r); }
.party-label.d { color: var(--party-d); }
.party-label.i { color: var(--text-tertiary); }
.candidate-role {
  font-size: 0.9rem; color: var(--text-secondary); margin: 0;
}

.candidate-subsection {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-soft);
}
.candidate-subsection:last-child { border-bottom: none; }

.subsection-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--accent-pine);
  margin-bottom: 0.6rem;
  display: block;
}
.candidate-subsection p,
.candidate-subsection li {
  font-size: 0.95rem; line-height: 1.55;
  margin: 0 0 0.5rem;
}
.candidate-subsection p:last-child,
.candidate-subsection li:last-child { margin-bottom: 0; }
.candidate-subsection ul { margin: 0; padding-left: 1.1rem; }
.candidate-subsection li { margin-bottom: 0.35rem; }

.candidate-subsection.opponent-issues {
  background: var(--bg-secondary);
  border-top: 2px solid var(--accent-wheat);
}
.candidate-subsection.opponent-issues .subsection-label {
  color: var(--accent-wheat);
}

.position-item {
  margin-bottom: 0.85rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border-soft);
}
.position-item:last-child { margin-bottom: 0; }
.position-topic {
  font-weight: 600; font-size: 0.93rem;
  color: var(--text-primary); margin-bottom: 0.2rem;
}
.position-text {
  font-size: 0.92rem; color: var(--text-secondary);
  margin: 0;
}
.candidate-link {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.88rem; color: var(--accent-pine);
  font-weight: 500;
}

@media (max-width: 800px) {
  .candidates-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* =====================================================
   ALSO ON THE BALLOT
   ===================================================== */
.also-on-ballot {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-wheat);
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  margin-top: 1.5rem;
}
.also-on-ballot h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.also-on-ballot p {
  font-size: 0.95rem; color: var(--text-secondary); margin: 0;
}

/* =====================================================
   SHARE
   ===================================================== */
.share-section {
  padding: 2rem 0; text-align: center;
  border-bottom: 1px solid var(--border-soft);
}
.share-section h3 {
  font-size: 1rem; font-family: 'Inter', sans-serif;
  font-weight: 600; margin-bottom: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.share-buttons {
  display: flex; gap: 0.65rem;
  justify-content: center; flex-wrap: wrap;
}
.share-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.share-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-pine);
  color: var(--accent-pine);
}
.share-btn svg { width: 16px; height: 16px; }

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer-content {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.88rem; color: var(--text-tertiary);
}
.footer-content a {
  color: var(--text-secondary); text-decoration: none;
  margin: 0 0.5rem;
}
.footer-content a:hover { color: var(--accent-pine); }

.tf-v1-popup { z-index: 9999 !important; }

.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;
}

/* =====================================================
   HOME PAGE SPECIFIC
   ===================================================== */
.hero {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-soft);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: var(--accent-pine);
  color: var(--bg-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: background-color 0.15s, transform 0.1s;
}
.btn-primary:hover {
  background: var(--accent-pine-dark);
  color: var(--bg-secondary);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent-pine);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent-pine);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: background-color 0.15s;
}
.btn-secondary:hover {
  background: var(--accent-pine);
  color: var(--bg-secondary);
}

/* Updates bubble */
.updates-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}
.updates-bubble h3 {
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-wheat);
  margin-bottom: 0.75rem;
}
.updates-list {
  list-style: none; margin: 0; padding: 0;
}
.updates-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.updates-list li:last-child { border-bottom: none; }
.updates-list .update-date {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 0.15rem;
}

/* Countdown widget */
.countdown {
  display: flex; gap: 0.5rem;
  align-items: baseline;
  margin-top: 1rem;
}
.countdown-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-pine);
  line-height: 1;
}
.countdown-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Race directory grid */
.races-section { padding: 3rem 0; }
.races-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.race-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: block;
}
.race-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-pine);
  color: var(--text-primary);
}
.race-card-office {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}
.race-card-candidates {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.race-card-meta {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.race-card.quiz-race {
  border-left: 3px solid var(--accent-pine);
}
.race-card.quiz-race .race-card-meta {
  color: var(--accent-pine);
}

.race-group-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-pine);
  margin: 2rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.race-group-title:first-of-type { margin-top: 0; }

/* Voter resources strip */
.voter-resources {
  background: var(--bg-secondary);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
}
.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
}
.resource-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}
.resource-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}
.resource-card-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent-pine);
  font-size: 0.85rem;
  font-weight: 500;
}

/* District map (for U.S. House pages) */
.district-snapshot {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.district-snapshot svg { flex-shrink: 0; }
.district-snapshot-text { flex: 1; }
.district-snapshot-text h3 {
  margin-bottom: 0.5rem;
}
.district-snapshot-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}
@media (max-width: 600px) {
  .district-snapshot { flex-direction: column; align-items: flex-start; }
}

/* Find your district page */
.lookup-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-subtle);
}
.lookup-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.lookup-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.lookup-form input:focus {
  outline: none;
  border-color: var(--accent-pine);
  background: var(--bg-card);
}
.lookup-result {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-pine);
  padding: 1.5rem;
  border-radius: 4px;
  margin-top: 1.5rem;
  display: none;
}
.lookup-result.active { display: block; }
.lookup-result h3 {
  margin-bottom: 0.75rem;
}
.lookup-result-races {
  list-style: none; margin: 0.75rem 0 0; padding: 0;
}
.lookup-result-races li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}
.lookup-result-races li:last-child { border-bottom: none; }
.lookup-result-races a {
  color: var(--accent-pine);
  text-decoration: none;
  font-weight: 500;
}
.lookup-result-races a:hover { text-decoration: underline; }

/* Iowa map container */
.iowa-map-container {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.iowa-map-container svg {
  max-width: 100%;
  height: auto;
}
.map-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.legend-item {
  display: flex; align-items: center; gap: 0.4rem;
}
.legend-swatch {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

/* Election Day banner */
.election-banner {
  background: var(--accent-pine-dark);
  color: var(--bg-secondary);
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  display: none; /* JS will activate on Nov 3, 2026 */
}
.election-banner.active { display: block; }

/* About page */
.about-content {
  max-width: 760px;
  margin: 0 auto;
}
.about-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.about-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
}
.contact-card a {
  display: inline-block;
  margin-right: 1rem;
}
