/* ============================================================
   Sandeep Goel for Regional Councillor — Wards 3 & 4
   Brand tokens sourced from the campaign literature (navy/red/gold)
   ============================================================ */

:root {
  --navy: #1b2a52;
  --navy-deep: #101c38;
  --navy-tint: #eef1f8;
  --gold: #FFB000;
  --gold-deep: #CC8C00;
  --ward4-fill: #d9a8c4;
  --ward3-fill: #b7c3e3;
  --white: #ffffff;
  --ink: #1b2337;
  --ink-soft: #4d5567;
  --line: #e2e5ee;
  --surface: #f7f8fc;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(16, 28, 56, 0.08), 0 1px 1px rgba(16, 28, 56, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 28, 56, 0.12), 0 2px 6px rgba(16, 28, 56, 0.08);
  --shadow-gold: 0 8px 20px rgba(212, 164, 18, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --space-1: 12px;
  --space-2: 24px;
  --space-3: 36px;
  --space-4: 48px;
  --space-5: 72px;
  --space-6: 96px;
  --space-7: 120px;

  --container: 1200px;
  --nav-h: 70px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); overflow-x: hidden; width: 100%; touch-action: manipulation; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}
p { margin: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-2); }
section { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 2px solid transparent;
  box-shadow: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-deep); box-shadow: var(--shadow-gold); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); box-shadow: none; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-deep); box-shadow: var(--shadow-gold); }
.btn-outline-gold { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy-deep); box-shadow: var(--shadow-gold); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Eyebrow / section headers ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--navy-tint);
  color: var(--navy);
}
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }
.bar-navy { background: var(--navy); color: var(--white); }
.bar-navy .section-head p { color: rgba(255,255,255,0.78); }

.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: var(--navy);
  transition: box-shadow 0.3s ease;
}
.site-nav.is-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.site-nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.nav-wordmark {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.7vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--white);
  text-transform: none;
  white-space: nowrap;
}

.header-social { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Shared social icon component — ring-pop hover, used in header, mobile menu, and footer */
.social-icon {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,0.9);
  overflow: visible;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.social-icon a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: inherit; flex-shrink: 0; }
.social-icon svg, .social-icon img {
  width: 18px; height: 18px;
  display: block;
  flex-shrink: 0;
}
.social-icon::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.social-icon:hover, .social-icon:focus-visible { background-color: var(--navy); color: var(--white); }
.social-icon:hover::before, .social-icon:focus-visible::before { opacity: 1; transform: scale(1); }

.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a:not(.nav-cta) {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.nav-links a:not(.nav-cta):hover, .nav-links a:not(.nav-cta):focus-visible { background-color: var(--white); color: var(--navy); }
/* Fixed header bar is height-constrained (--nav-h), so its CTA runs smaller than the hero's;
   scoped to .site-nav so the mobile-menu's Get Involved (same .nav-cta class) keeps the base .btn size */
.site-nav .nav-cta.btn { padding: 8px 20px; font-size: 13px; }
.nav-toggle {
  display: none;
  flex-shrink: 0;
  background: none; border: none; color: var(--white);
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 8px;
  align-items: center; justify-content: center;
}
.nav-wordmark { flex-shrink: 0; }
.nav-toggle:focus-visible { outline: 2px solid var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta-mobile { display: none; }
@media (max-width: 720px) {
  .nav-cta-mobile { display: inline-flex; }
}
@media (max-width: 400px) {
  .site-nav .container { padding: 0 12px; }
  .nav-actions { gap: 6px; }
  .site-nav .nav-cta-mobile.btn { padding: 6px 10px; font-size: 10px; letter-spacing: 0.01em; }
  .nav-toggle { width: 40px; height: 40px; min-width: 40px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(242,194,48,0.28), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(242,194,48,0.14), transparent 50%),
    linear-gradient(160deg, #1b2a52 0%, #101c38 60%, #0b1428 100%);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,16,32,0.75) 0%, rgba(10,16,32,0.15) 45%, rgba(10,16,32,0.55) 100%);
}
.hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative; z-index: 1;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  color: var(--white);
  max-width: 760px;
  min-width: 0;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.1rem, 9vw, 4.5rem);
  color: var(--white);
  overflow-wrap: break-word;
}
.hero h1 .accent-gold { color: var(--gold); }
.hero-subhead {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-secondary-tagline {
  margin-top: 14px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  font-style: italic;
}
.hero-secondary-tagline strong { color: var(--white); font-style: normal; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta .btn {
  padding: 15px 32px;
  font-size: 1rem;
}
.hero-scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 1; color: rgba(255,255,255,0.7);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Countdown ---------- */
.countdown-band {
  background: var(--gold);
  background-image: linear-gradient(120deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--navy-deep);
  padding: 22px 0;
}
.countdown-band .container {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 20px 32px;
}
.countdown-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.countdown-timer { display: flex; gap: 18px; }
.countdown-timer .unit { text-align: center; min-width: 56px; }
.countdown-timer .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
}
.countdown-timer .unit-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- Bio ---------- */
.bio-section { padding: var(--space-6) 0; }
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: var(--space-5);
  align-items: start;
}
.bio-text .eyebrow { margin-bottom: 16px; }
.bio-text h2 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); margin-bottom: 22px; }
.bio-text p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.05rem; }
.bio-text p:last-child { margin-bottom: 0; }
.bio-text .btn { margin-top: var(--space-2); white-space: normal; text-align: center; }

.bio-more { margin: 4px 0 var(--space-2); }
.bio-more-track {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.bio-more[open] .bio-more-track { grid-template-rows: 1fr; }
.bio-more-inner { overflow: hidden; min-height: 0; }
.bio-more-inner p:first-child { margin-top: 0; }

.bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
  padding: 4px 0;
  transition: gap 0.2s ease;
}
.bio-toggle::-webkit-details-marker { display: none; }
.bio-toggle:hover { gap: 12px; }
.bio-toggle-open { display: none; }
.bio-more[open] .bio-toggle-closed { display: none; }
.bio-more[open] .bio-toggle-open { display: inline; }
.bio-toggle-arrow { transition: transform 0.25s ease; flex-shrink: 0; }
.bio-more[open] .bio-toggle-arrow { transform: rotate(180deg); }

.bio-tagline { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em; margin-top: 8px !important; }

/* ---------- Short-frame (vertical video embed) ---------- */
.short-frame { width: 100%; max-width: 560px; margin: 0 auto; }
@media (min-width: 981px) {
  /* Lines the card's top edge up with the headline instead of the eyebrow pill,
     now that .bio-grid is align-items: start. Only applies in the two-column
     layout — once .bio-grid stacks to one column at <=980px, the card sits
     below the text and this offset has nothing to align with, so it would
     just read as a stray gap. */
  .short-frame { margin: 44px auto 0; }
}

.short-visual { position: relative; }
.short-shadow {
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: var(--gold);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.short-mat {
  position: relative;
  z-index: 1;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md), 0 30px 60px rgba(16, 28, 56, 0.25);
}
.short-embed {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-deep);
}
.short-embed .placeholder-media { background: var(--navy-deep); }
.short-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 980px) {
  .short-shadow { inset: 10px -10px -10px 10px; }
  .short-mat { padding: 10px; }
}

/* ---------- Placeholder media ---------- */
.placeholder-media {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 12px, rgba(255,255,255,0.0) 12px 24px), linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: rgba(255,255,255,0.55);
  flex-direction: column; gap: 10px;
  text-align: center; padding: 20px;
}
.placeholder-media__play {
  display: flex; align-items: center; justify-content: center;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
}
.placeholder-media span { font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Commitment strip ---------- */
.commitment-section { padding: var(--space-4) 0; background: var(--navy); color: var(--white); }
.commitment-section .section-head { margin-bottom: 40px; }
.commitment-section h2 { font-size: clamp(1.9rem, 4.5vw, 3.4rem); }
.commitment-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}
.commitment-item { text-align: center; }
.commitment-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: var(--gold);
}
.commitment-icon svg { width: 22px; height: 22px; }
.commitment-item p { font-size: 0.95rem; color: rgba(255,255,255,0.85); }

/* ---------- Priorities (lead + support) ---------- */
.issues-section { padding: var(--space-6) 0; background: var(--surface); }

.priorities-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  align-items: stretch;
}

.priority-featured {
  position: relative;
  background: var(--gold);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  align-self: stretch;
  height: 100%;
}
.priority-featured-watermark {
  position: absolute;
  top: -0.25em;
  right: -0.1em;
  font-family: var(--font-display);
  font-size: 16rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(16, 28, 56, 0.12);
  pointer-events: none;
  user-select: none;
}
.priority-featured-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.priority-featured-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.priority-featured-content .issue-icon { margin-bottom: 16px; }
.priority-featured-content h3 { font-size: 1.6rem; text-transform: none; letter-spacing: 0; color: var(--navy-deep); margin-bottom: 12px; line-height: 1.2; }
.priority-featured-content p { color: var(--navy); font-size: 1rem; max-width: 40ch; margin-bottom: 0; }
.priority-featured-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy-deep); font-weight: 600;
  margin-top: auto;
  padding-top: 24px;
  align-self: flex-start;
  transition: gap 0.2s ease;
}
.priority-featured-link:hover { gap: 12px; }

.priorities-compact {
  display: flex;
  flex-direction: column;
  padding-top: 40px; /* matches .priority-featured's 40px top padding, line 497,
                         so "02" lines up with "01"'s label instead of sitting above it */
}
.priority-compact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-top: 2px solid var(--navy);
}
.priority-compact-item:first-child { border-top: none; padding-top: 0; }
.priority-compact-num {
  flex-shrink: 0;
  width: 56px;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1;
}
.priority-compact-body h4 { font-size: 1.1rem; text-transform: none; letter-spacing: 0; color: var(--navy-deep); margin-bottom: 8px; }
.priority-compact-body p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.priorities-support {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.support-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-top: 2px solid var(--navy);
}
.support-item:first-child { border-top: none; padding-top: 0; }

.priorities-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-top: 48px;
}
.priorities-cta-banner h3 { color: var(--white); font-size: 1.4rem; text-transform: none; letter-spacing: 0; margin-bottom: 6px; }
.priorities-cta-banner p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin: 0; }
.priorities-cta-arrow {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.priorities-cta-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); transform: translateX(4px); }

@media (max-width: 560px) {
  .priorities-cta-banner { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---------- Election info ---------- */
.election-section { padding: 0; }
.election-band { background: var(--navy-deep); color: var(--white); padding: var(--space-5) 0; }
.election-cta { margin-top: 32px; }
.election-cta .btn { padding: 15px 32px; font-size: 1rem; font-weight: 600; }
.election-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.election-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 26px;
}
.election-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.election-card-head .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(242,194,48,0.15); color: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.election-card-head .ico svg { width: 20px; height: 20px; }
.election-card-head h3 { font-size: 1rem; letter-spacing: 0.04em; color: var(--white); }
.election-card ul li { color: rgba(255,255,255,0.82); font-size: 0.92rem; padding: 5px 0; border-top: 1px dashed rgba(255,255,255,0.14); }
.election-card ul li:first-child { border-top: none; padding-top: 0; }
.election-card ul li strong { color: var(--gold); display: block; font-family: var(--font-display); letter-spacing: 0.02em; font-size: 0.95rem; }
.election-card-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.14);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
}
.election-card-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.election-card-note a:hover { color: var(--white); }

/* ---------- Voting locations ---------- */
.map-section { padding: var(--space-6) 0; }

.vote-hint[hidden], .vote-notice[hidden] { display: none !important; }

/* Tab toggle: two halves of one segmented control, same 10px radius as .btn */
.vote-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-width: 420px;
  margin-bottom: var(--space-2);
  padding: 6px;
  background: var(--navy-tint);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.vote-tab {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.vote-tab:hover { color: var(--navy); }
.vote-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.vote-tab.is-active {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.vote-tab.is-active:hover { background: var(--navy-deep); box-shadow: var(--shadow-md); }

.map-layout {
  display: grid;
  /* minmax(0, 1fr) rather than 1fr: the map canvas carries an explicit pixel width,
     and an auto-min track grows to it instead of letting the map shrink. */
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--space-4);
  align-items: start;
}

/* Advance-tab note and Election Day banner both span the full layout so they
   sit directly under the tabs and above the map at every width. */
.vote-hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 70ch;
}
.vote-notice {
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 0;
  padding: 22px 26px;
  background: var(--navy);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: var(--white);
}
.vote-notice-mark {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}
.vote-notice-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.vote-notice-body h3 { font-size: 1.05rem; color: var(--white); }
.vote-notice-body p { font-size: 0.9rem; color: rgba(255,255,255,0.86); line-height: 1.6; }
.vote-notice-body .btn { white-space: normal; text-align: center; }

.map-card {
  position: relative;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
#ward-map { width: 100%; height: 560px; background: var(--navy-tint); }

.map-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  pointer-events: none;
  display: flex; flex-direction: column;
  background: rgba(16, 28, 56, 0.82);
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 3px solid var(--gold);
  color: var(--white);
  font-family: var(--font-display);
  line-height: 1.15;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
}
.map-badge-line { letter-spacing: 0.02em; }
.map-badge-first { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.map-badge-last { font-size: 1.05rem; text-transform: uppercase; }
.map-boundary-badge {
  position: absolute; bottom: 16px; left: 16px; z-index: 2;
  pointer-events: none;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.map-reset-btn {
  width: 29px; height: 29px;
  font-size: 1rem;
  line-height: 1;
  color: var(--navy);
  background: var(--white);
  border: none;
  cursor: pointer;
}
.map-reset-btn:hover { color: var(--gold-deep); }

/* ---------- Map pins ---------- */
.vote-pin {
  /* Must stay "absolute": maplibre-gl.css gives .maplibregl-marker position:absolute
     at the same specificity as this rule, and this stylesheet loads after it, so a
     "relative" here would win and drop every marker into normal flow. Absolute also
     still makes this the containing block for .vote-pin-acc. */
  position: absolute;
  z-index: 1;
  width: 27px; height: 27px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.72rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.vote-pin:hover { transform: scale(1.16); box-shadow: var(--shadow-md); z-index: 3; }
.vote-pin:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; z-index: 3; }
.vote-pin-badge { pointer-events: none; }

/* Residents-only locations read as hollow so a general voter does not mistake
   one for a poll they can use. */
.vote-pin.is-restricted {
  background: var(--white);
  color: var(--navy);
  border: 2px dashed var(--navy);
}
.vote-pin.is-restricted:hover { background: var(--navy-tint); }

.vote-pin-acc {
  position: absolute;
  top: -3px; right: -3px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  pointer-events: none;
}

.vote-pin.is-selected {
  background: var(--gold);
  color: var(--navy-deep);
  border: 2px solid var(--navy-deep);
  border-style: solid;
  transform: scale(1.28);
  box-shadow: var(--shadow-gold);
  z-index: 4;
}
.vote-pin.is-selected .vote-pin-acc { border-color: var(--navy-deep); background: var(--white); }

.vote-you-pin {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--navy), var(--shadow-sm);
}

/* ---------- Right column ---------- */
.map-checker {
  background: transparent;
  padding: 0;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.lookup-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-2);
}
.lookup-form { display: flex; flex-direction: column; gap: 10px; }
.lookup-form label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.lookup-row { display: flex; gap: 8px; }
.lookup-row input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px;
  border: none; background: var(--surface); font-family: var(--font-body); font-size: 16px;
}
.lookup-row input:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,82,0.12); }
.lookup-row button { flex-shrink: 0; padding: 12px 18px; }
.lookup-result {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  display: none;
}
.lookup-result.show { display: block; margin-top: 14px; }
.lookup-result.status-in { background: rgba(242,194,48,0.14); border: 1px solid rgba(212,164,18,0.4); color: var(--navy); }
.lookup-result.status-out { background: var(--navy-tint); border: 1px solid var(--line); color: var(--ink-soft); }
.lookup-result.status-error { background: #fff4e5; border: 1px solid #f0c37f; color: #8a5a00; }
.lookup-result-text { margin: 0; }
.lookup-privacy { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Info panel ---------- */
.vote-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  min-height: 168px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.vote-panel-empty { display: flex; flex-direction: column; gap: 6px; }
.vote-panel-empty h3 { font-size: 1.15rem; color: var(--navy); }
.vote-panel-count { font-size: 0.82rem; font-weight: 600; color: var(--gold-deep); }
.vote-panel-hint { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }

.vote-panel.has-location { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.vote-panel-head { display: flex; align-items: center; gap: 8px; width: 100%; flex-wrap: wrap; }
.vote-panel-tag {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.vote-panel-ward {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.vote-panel-back {
  margin-left: auto;
  border: none;
  background: transparent;
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.vote-panel-back:hover { color: var(--navy); background: var(--navy-tint); }
.vote-panel-back:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.vote-panel-name { font-size: 1.1rem; color: var(--navy); }
.vote-panel-address { font-size: 0.9rem; color: var(--ink-soft); }
.vote-panel-schedule { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.vote-panel-schedule li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.vote-panel-schedule li:last-child { border-bottom: none; padding-bottom: 0; }
.vote-panel-schedule strong { color: var(--ink); font-weight: 600; }
.vote-panel-schedule span { color: var(--ink-soft); white-space: nowrap; }
.vote-panel-flag {
  width: 100%;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.vote-panel-flag.is-restricted { background: var(--navy-tint); border: 1px dashed var(--navy); color: var(--navy); }
.vote-panel-flag.is-accessible { background: rgba(242,194,48,0.14); border: 1px solid rgba(212,164,18,0.4); color: var(--navy); }
.vote-panel-directions { margin-top: 2px; }

/* ---------- Legend ---------- */
.map-legend { display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; color: var(--ink-soft); }
.map-legend .row { display: flex; align-items: center; gap: 10px; }
.legend-swatch { width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0; }
.legend-swatch.legend-line { height: 4px; border-radius: 2px; background: var(--gold); }
.legend-swatch.legend-pin { border-radius: 50%; background: var(--navy); border: 2px solid var(--white); box-shadow: var(--shadow-sm); }
.legend-swatch.legend-pin.is-restricted { background: var(--white); border: 2px dashed var(--navy); box-shadow: none; }
.legend-swatch.legend-pin.is-accessible { background: var(--navy); border: 2px solid var(--gold); box-shadow: 0 0 0 2px rgba(255,176,0,0.35); }
.legend-swatch.legend-you { border-radius: 50%; background: var(--gold); border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--navy); }
.map-attribution { font-size: 0.72rem; color: var(--ink-soft); padding-top: 6px; border-top: 1px solid var(--line); }

/* ---------- Gallery marquee ---------- */
.gallery-band {
  position: relative;
  padding: var(--space-4) 0;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  --who-h: 16rem;
}
@media (min-width: 768px) {
  .gallery-band { --who-h: 18rem; }
}
.gallery-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(27, 42, 82, 0.85), rgba(27, 42, 82, 0.85)), url("../images/gallery-band-bg.jpg");
  background-size: cover;
  background-position: center;
}
.gallery-band-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 32px;
}
.gallery-band-head h2 { margin: 0; color: var(--white); }
.gallery-band-head .eyebrow { background: none; color: var(--gold); padding: 0; margin: 0; }

.marquee-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4% 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4% 96%, transparent);
  border-radius: var(--radius-sm);
}
.marquee--row1 { z-index: 1; }
.marquee--row2 { z-index: 2; margin-top: calc(var(--who-h) * -0.35); }
.marquee:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.marquee-track {
  width: max-content;
  padding: 28px 0;
  display: flex;
  align-items: flex-start;
  animation-name: gallery-marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
.marquee-track--row1 { animation-duration: 100s; }
.marquee-track--row2 { animation-duration: 70s; animation-direction: reverse; }
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }
}
.marquee-track.is-offscreen { animation-play-state: paused; }

.marquee-card {
  background: var(--white);
  border-radius: 3px;
  flex: none;
  margin-right: 28px;
  padding: 12px;
  position: relative;
  box-shadow: var(--shadow-gold);
  transform: rotate(var(--card-rotate, 0deg));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.marquee-card:hover { z-index: 3; transform: rotate(0) translateY(-6px) scale(1.02); }

.who-photo { height: var(--who-h); margin: 0; border-radius: 2px; position: relative; overflow: hidden; }
.who-photo--wide { aspect-ratio: 3 / 2; }
.who-photo--tall { aspect-ratio: 4 / 5; }
.who-photo picture { display: block; width: 100%; height: 100%; }
.who-photo-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

@keyframes gallery-marquee {
  0% { transform: translate(0); }
  to { transform: translate(-50%); }
}

@media (max-width: 560px) {
  .gallery-band-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee--row2 { margin-top: 0; }
  .marquee-track { animation: none; }
  .marquee-card { transition: none; transform: none; }
  .marquee-card[aria-hidden="true"] { display: none; }
}

/* ---------- Follow along (reserved) ---------- */
.follow-section { padding: var(--space-6) 0; background: var(--navy-tint); }
.follow-section .eyebrow { background: var(--white); }
.follow-embed {
  min-height: 220px;
}
.follow-cta {
  text-align: center;
  margin-top: 24px;
}

/* ---------- Get involved / contact ---------- */
.involve-section { padding: var(--space-6) 0; background: var(--white); border-top: 1px solid var(--line); }
.task-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}
.task-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.task-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.task-card.is-selected { border-color: var(--gold); background: rgba(242,194,48,0.08); box-shadow: var(--shadow-gold); }
.task-card:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.task-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy-tint); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.task-card.is-selected .task-icon { background: var(--gold); color: var(--navy-deep); }
.task-icon svg { width: 24px; height: 24px; }
.task-card h4 { font-size: 0.98rem; text-transform: none; letter-spacing: 0; margin-bottom: 6px; color: var(--navy); }
.task-card p { font-size: 0.85rem; color: var(--ink-soft); }
.task-check {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; margin-top: 10px; opacity: 0; transition: opacity 0.2s ease;
}
.task-card.is-selected .task-check { opacity: 1; }

.involve-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.signup-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.signup-form h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 6px; }
.signup-form .hint { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 24px; }
.selected-tasks-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; min-height: 0; }
.selected-tasks-list .chip {
  background: var(--navy-tint); color: var(--navy);
  font-size: 0.78rem; padding: 6px 12px; border-radius: 999px;
  display: flex; align-items: center; gap: 6px;
}
.selected-tasks-list.is-empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field label .req { color: var(--gold-deep); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  padding: 13px 14px; border-radius: 10px;
  border: none; background: var(--surface); font-family: var(--font-body); font-size: 16px;
}
.field input:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,82,0.12); }
.field-note { font-size: 0.78rem; color: var(--ink-soft); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.checkbox-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold-deep); }
.checkbox-row label { font-size: 0.9rem; }
.postal-field { max-width: 220px; }
.form-msg { margin-top: 16px; font-size: 0.88rem; display: none; }
.form-msg.show { display: block; }

.contact-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-panel h3 { font-size: 1.2rem; margin-bottom: 22px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-list a, .contact-list .item { display: flex; align-items: center; gap: 14px; font-size: 0.95rem; color: rgba(255,255,255,0.9); }
.contact-list .ico {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.contact-list .ico svg { width: 18px; height: 18px; }
.contact-panel .thankyou { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); font-style: italic; color: var(--gold); font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 0 0 var(--space-3); }
.footer-accent-bar { height: 4px; background: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: var(--space-4);
  padding: var(--space-5) 0 var(--space-4);
}
.footer-col p { margin: var(--space-1) 0; font-size: 0.9rem; line-height: 1.6; }
.footer-col a { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.85); margin-top: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-col-center { align-items: flex-start; }
.footer-col-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-social-row { display: flex; gap: 12px; }
.footer-privacy {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 2px solid var(--gold);
  margin-bottom: 12px;
}
.footer-col-legal p { color: rgba(255,255,255,0.6); margin: 0; }
.footer-divider { height: 1px; background: rgba(255,255,255,0.12); margin-top: 8px; }
.footer-bottom-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: var(--space-2); font-size: 0.8rem; }

/* ---------- Section dividers ---------- */
.leaf-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 40px; color: var(--gold-deep); }
.leaf-divider::before, .leaf-divider::after { content: ""; height: 2px; width: 60px; background: currentColor; opacity: 0.3; }
.leaf-divider .leaf-emoji { font-size: 1.2rem; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 90;
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  background: var(--navy-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  overflow-y: auto;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; color: var(--white); letter-spacing: 0.04em; }
.mobile-menu .btn-primary { color: var(--navy-deep); }
.mobile-menu .btn-outline-gold { color: var(--gold); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .bio-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .commitment-grid { grid-template-columns: repeat(3, 1fr); }
  .priorities-row { grid-template-columns: 1fr; }
  .priorities-compact { padding-top: 0; }
  .priority-featured-watermark { font-size: 10rem; }
  .election-grid { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: minmax(0, 1fr); }
  #ward-map { height: 420px; }
  .task-cards { grid-template-columns: repeat(2, 1fr); }
  .involve-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .commitment-grid { grid-template-columns: repeat(2, 1fr); }
  .commitment-item:nth-child(5) { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr; }
  .task-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; }
  .priority-featured-watermark { font-size: 7rem; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(1.7rem, 10vw, 7.5rem); }
  .hero-eyebrow {
    white-space: normal;
    text-align: center;
    font-size: 0.65rem;
    padding: 7px 14px;
    letter-spacing: 0.1em;
  }
  .countdown-timer { gap: 12px; }
  .countdown-timer .unit { min-width: 44px; }
  .countdown-timer .num { font-size: 1.3rem; }
  .bio-section, .issues-section, .map-section, .gallery-band, .involve-section, .follow-section, .commitment-section, .election-band { padding: var(--space-4) 0; }
  .signup-form { padding: 24px; }
  .contact-panel { padding: 26px; }
  .task-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---------- Social icon link override (must win over .footer-col a and .nav-links a) ---------- */
.header-social .social-icon a,
.mobile-menu .social-icon a,
.footer-social-row .social-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  font-size: inherit;
  color: inherit;
}
.header-social .social-icon a:hover,
.mobile-menu .social-icon a:hover,
.footer-social-row .social-icon a:hover {
  color: inherit;
  background: none;
}

/* ---------- Post-submit thank-you overlay ---------- */
.thankyou-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  overflow-y: auto;
}
.thankyou-overlay.is-visible {
  display: flex;
  animation: thankyouFadeIn 0.35s ease-out;
}
@keyframes thankyouFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.thankyou-content {
  text-align: center;
  max-width: 480px;
  width: 100%;
  animation: thankyouPop 0.5s cubic-bezier(.2,1.4,.4,1);
}
@keyframes thankyouPop {
  0% { transform: scale(0.85) translateY(16px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.thankyou-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
}
.thankyou-close:hover { background: rgba(255,255,255,0.15); }
.thankyou-badge {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: thankyouBadgePop 0.6s 0.15s both cubic-bezier(.2,1.6,.4,1);
}
@keyframes thankyouBadgePop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.thankyou-content h2 {
  color: var(--white);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.thankyou-name { color: var(--gold); }
.thankyou-sub {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 32px;
}
.thankyou-share-label {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.thankyou-share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.thankyou-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.thankyou-share-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.18); }
.thankyou-share-copy {
  width: auto;
  padding: 0 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
}
.thankyou-dismiss {
  background: var(--gold);
  color: var(--navy-deep);
  border: none;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.thankyou-dismiss:hover { filter: brightness(1.08); }
@media (max-width: 480px) {
  .thankyou-share-row { gap: 10px; }
}

/* ---------- Legal / Privacy page ---------- */
.legal-page { padding: calc(var(--nav-h) + var(--space-5)) 0 var(--space-6); }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content .eyebrow { margin-bottom: 16px; }
.legal-content h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 16px; text-transform: none; }
.legal-intro { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 8px; }
.legal-meta { color: var(--ink-soft); font-size: 0.88rem; padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); margin-bottom: var(--space-3); }
.legal-content h2 { font-size: 1.3rem; text-transform: none; letter-spacing: 0; color: var(--navy); margin-top: var(--space-3); margin-bottom: 14px; }
.legal-content p { color: var(--ink-soft); margin-bottom: 14px; line-height: 1.7; }
.legal-content ul { margin-bottom: 14px; }
.legal-content ul li { color: var(--ink-soft); padding: 6px 0; line-height: 1.6; }
.legal-content ul li strong { color: var(--ink); }
.legal-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--gold-deep); }

/* ---------- Voting locations: responsive ---------- */
@media (max-width: 980px) {
  .map-layout { gap: var(--space-3); }
}

@media (max-width: 720px) {
  #ward-map { height: 380px; }
  .vote-tabs { max-width: none; }
}

@media (max-width: 560px) {
  #ward-map { height: 340px; }
  .map-layout { gap: var(--space-2); }
  .vote-tabs { gap: 4px; padding: 5px; border-radius: 12px; }
  .vote-tab { padding: 10px 6px; font-size: 0.78rem; letter-spacing: 0.02em; }
  .vote-notice { padding: 18px; gap: 14px; }
  .vote-notice-mark { width: 30px; height: 30px; font-size: 1.1rem; }
  .vote-notice-body h3 { font-size: 0.98rem; }
  .vote-notice-body .btn { width: 100%; justify-content: center; }
  .vote-panel { padding: 18px; }
  .vote-panel-schedule li { font-size: 0.82rem; }
}
