/* Endorsement marquee - "New" badge anchored to avatar (used on home + endorsements) */
.endorsements-marquee-item.is-new { position: relative; }
.endorsements-marquee-item.is-new::after {
  content: 'NEW';
  position: absolute;
  top: 2px;
  left: 32px;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--pop);
  padding: 2px 5px;
  border-radius: 100px;
  line-height: 1.3;
  box-shadow: 0 0 0 2px var(--navy);
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-gutter: stable; }

:root {
  --navy:       #152B44;
  --navy-light: #1E3A56;
  --blue:       #3D8FD4;
  --blue-light: #6DB4E8;
  --sky:        #E8F2FA;
  --pop:        #E8942E;
  --pop-hover:  #D07E1A;
  --white:      #FFFFFF;
  --gray-50:    #F8FAFB;
  --gray-100:   #F0F3F5;
  --gray-200:   #DDE3E8;
  --gray-600:   #5A6A78;
  --gray-800:   #2B3A48;
  --text:       #1A2B3C;
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max-w:      1140px;
  --section-py:  100px;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility primitives */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 0; left: 0; background: var(--navy); color: var(--white); padding: 10px 16px; font-weight: 700; text-decoration: none; z-index: 10000; transform: translateY(-120%); transition: transform 0.15s ease; }
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--pop); outline-offset: 2px; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
main { scroll-margin-top: 120px; }
main:focus:not(:focus-visible) { outline: none; }
@keyframes skipFlash { 0%, 55% { outline: 3px solid var(--blue); outline-offset: -3px; } 100% { outline: 3px solid transparent; outline-offset: -3px; } }
main.skip-flash { animation: skipFlash 900ms ease-out; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* Section labels & headings */
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section-heading { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 800; line-height: 1.15; color: var(--navy); margin-bottom: 20px; }

/* Page hero shared base (about, endorsements, media, priorities, privacy-policy, san-diego-election-guide-2026, volunteer). Per-page overrides for text-align, .page-hero-content sizing, h1 font-size, and p color stay inline. */
.page-hero { position: relative; padding: var(--header-h, 118px) 0 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1a4a6e 100%); overflow: hidden; }
.page-hero-pattern { position: absolute; inset: 0; pointer-events: none; opacity: 0.06; background-image: url("../images/swoosh-pattern.svg"); background-size: 600px 420px; background-repeat: repeat; }
.page-hero-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 20px; padding: 6px 14px; border: 1px solid rgba(109,180,232,0.3); border-radius: 100px; }
.page-hero h1 .highlight { color: var(--pop); }

/* Form base (contact, volunteer, jack-and-joel). Input padding, focus shadow opacity, error patterns, and textarea min-height stay inline per page. */
.form-group { margin-bottom: 20px; }
.form-group label:not(.checkbox-item) { display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-top: 14px; margin-bottom: 6px; }
.form-group label > span:not([class]) { display: block; margin-top: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ohnohoney { position: absolute; left: -9999px; }

/* Cover photo + split-grid layout (used by budget-petition, yimby-walk; reusable for any photo-led action page) */
.cover-photo { max-width: 1040px; margin: 0 auto 40px; border-radius: 16px; overflow: hidden; aspect-ratio: 21 / 9; background: var(--navy); box-shadow: 0 10px 30px rgba(21,43,68,0.15); }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; max-width: 1040px; margin: 0 auto; }
.info-card { background: var(--navy); color: var(--white); border-radius: 12px; padding: 36px 32px; position: relative; overflow: hidden; }
.info-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--pop); }
.info-card-eyebrow { font-size: 0.75rem; color: var(--blue-light); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.info-card-lead { font-family: var(--font-display); font-weight: 800; font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.015em; color: var(--white); margin-bottom: 20px; }
.info-card-lead .accent { color: var(--pop); }
.info-card-body { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.9); }
.info-card-body strong { color: var(--white); font-weight: 700; }
.info-card-byline { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); }
.info-card-byline .ph { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.2); background-size: 120%; background-position: center 28%; background-repeat: no-repeat; }
.info-card-byline .who strong { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1rem; display: block; line-height: 1.2; }
.info-card-byline .who span { color: rgba(255,255,255,0.65); font-size: 0.8125rem; }
.form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 32px; box-shadow: 0 1px 3px rgba(21,43,68,0.04); }
.form-card h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; letter-spacing: -0.01em; }
.form-card h2 em { font-style: italic; color: var(--pop); }
.form-card .fh-sub { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 22px; }
.form-card .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg { margin-bottom: 12px; }
.fg label { display: block; font-size: 0.75rem; color: var(--gray-600); margin-bottom: 5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.fg label .req { color: var(--pop); margin-left: 2px; }
.fg .field-err { color: #B23B3B; font-size: 0.8125rem; margin: 6px 0 0; line-height: 1.4; }
.fg.has-err input:not([type="checkbox"]):not([type="radio"]), .fg.has-err select, .fg.has-err textarea { border-color: #B23B3B; box-shadow: 0 0 0 3px rgba(178,59,59,0.12); }
.fg input:not([type="checkbox"]):not([type="radio"]), .fg select, .fg textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--gray-200); border-radius: 6px; font-family: inherit; font-size: 1rem; background: var(--white); color: var(--gray-800); transition: border-color 0.15s; }
.fg textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.fg input:not([type="checkbox"]):not([type="radio"]):focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,143,212,0.15); }
.form-group input:not([type="checkbox"]):not([type="radio"]):focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,143,212,0.15); }

/* Shared form error styles */
.field-error { display: none; color: #B23B3B; font-size: 0.8125rem; margin-top: 6px; line-height: 1.4; }
.field-error:not(:empty) { display: block; }
.form-group input:not([type="checkbox"]):not([type="radio"])[aria-invalid="true"], .form-group textarea[aria-invalid="true"], .form-group select[aria-invalid="true"] { border-color: #B23B3B; box-shadow: 0 0 0 3px rgba(178,59,59,0.12); }
.form-error-banner { background: #FEF1F1; border: 1px solid #F3C9C9; color: #8A2E2E; padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9375rem; }
.form-error-banner[hidden] { display: none; }
.submit { width: 100%; padding: 14px; background: var(--pop); color: var(--white); border: none; border-radius: 6px; font-family: inherit; font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; margin-top: 8px; transition: background 0.15s, transform 0.15s, box-shadow 0.15s; }
.submit:hover { background: var(--pop-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,148,46,0.35); }
.submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
@media (max-width: 900px) { .split-grid { grid-template-columns: 1fr; gap: 24px; max-width: 560px; } }
@media (max-width: 600px) { .form-card { padding: 24px 20px; } .form-card .form-row, .timeline-signup-panel .form-row { grid-template-columns: 1fr; gap: 0; } }

/* Timeline signup panel (events) */
.timeline-row { display: block; }
.timeline-row + .timeline-row { margin-top: 0; }
.timeline-row.has-open-panel { margin-bottom: 28px; }
.timeline-signup-panel { max-height: 0; overflow: hidden; transition: max-height 0.35s ease-out; background: var(--white); border-radius: 12px; border: 1px solid var(--gray-200); }
.timeline-signup-panel.open { margin-top: 12px; }
.timeline-signup-panel-inner { position: relative; padding: 28px 28px 28px; }
.timeline-signup-panel h4 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; letter-spacing: -0.01em; padding-right: 44px; }
.timeline-signup-panel .panel-sub { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 20px; }
.timeline-signup-panel .panel-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--gray-200); border-radius: 50%; color: var(--gray-600); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.timeline-signup-panel .panel-close:hover { border-color: var(--navy); color: var(--navy); background: var(--gray-100); }
.timeline-signup-panel .panel-close svg { width: 16px; height: 16px; }
.timeline-signup-panel .signup-success { text-align: center; padding: 24px 0 8px; }
.timeline-signup-panel .signup-success svg { width: 48px; height: 48px; color: var(--pop); margin-bottom: 12px; }
.timeline-signup-panel .signup-success h4 { font-size: 1.375rem; margin-bottom: 6px; padding: 0; }
.timeline-signup-panel .signup-success p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.6; }
@media (max-width: 600px) { .timeline-signup-panel-inner { padding: 24px 20px; } }

/* Full-card success state (yimby-walk) - matches .form-success on volunteer/contact/jack-and-joel */
.form-card .signup-success { text-align: center; padding: 48px 0; }
.form-card .signup-success svg { width: 64px; height: 64px; color: var(--blue); margin: 0 auto 20px; }
.form-card .signup-success h4 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; letter-spacing: -0.01em; }
.form-card .signup-success p { font-size: 1.0625rem; color: var(--gray-600); max-width: 440px; margin: 0 auto; line-height: 1.7; }

/* Date checklist (events inline signup, yimby-walk) - matches .checkbox-item style on contact.html */
.date-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; border: 0; padding: 0; background: transparent; margin: 0; }
.date-checklist legend { padding: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-600); }
.date-checklist label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--gray-200); border-radius: 8px; background: var(--white); cursor: pointer; transition: border-color 0.15s, background 0.15s; margin: 0; font-weight: 400; text-transform: none; letter-spacing: 0; min-height: 0; }
.date-checklist label:hover { border-color: var(--blue-light); background: var(--sky); }
.date-checklist label.checked { border-color: var(--navy); background: var(--sky); }
.date-checklist input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; min-width: 18px; border: 2px solid var(--gray-200); border-radius: 4px; cursor: pointer; position: relative; flex-shrink: 0; margin: 0; transition: background 0.12s, border-color 0.12s; }
.date-checklist input[type="checkbox"]:checked { background: var(--navy); border-color: var(--navy); }
.date-checklist input[type="checkbox"]:checked::after { content: ''; position: absolute; left: 4px; top: 1px; width: 6px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.date-checklist .ck-text { display: flex; flex-direction: column; gap: 0; line-height: 1.2; min-width: 0; }
.date-checklist .ck-date { font-size: 0.8125rem; font-weight: 700; color: var(--navy); letter-spacing: 0.01em; }
.date-checklist .ck-name { font-size: 0.75rem; color: var(--gray-600); font-weight: 500; }
.date-checklist label.checked .ck-name { color: var(--gray-800); }

/* FAQ accordion (contact, events, volunteer). Pages override .faq-section background per-page. */
.faq-section { padding: var(--section-py) 0; }
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-header p { font-size: 1.0625rem; color: var(--gray-600); max-width: 540px; margin: 16px auto 0; line-height: 1.7; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; transition: border-color 0.2s; }
.faq-item:hover { border-color: var(--blue); }
.faq-item:has(.faq-question:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.faq-question:focus-visible { outline: none; }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; background: none; border: none; width: 100%; text-align: left; font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--navy); gap: 16px; }
.faq-question svg { flex-shrink: 0; transition: transform 0.3s; color: var(--blue); }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.9375rem; color: var(--gray-600); line-height: 1.75; }
.faq-answer-inner ul { margin: 8px 0; padding-left: 20px; }
.faq-answer-inner li { margin-bottom: 4px; }

/* Policy / legal pages (privacy-policy, accessibility) */
.policy-section { padding: var(--section-py) 0; }
.policy-content { max-width: 760px; margin: 0 auto; }
.policy-content h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 48px 0 16px; line-height: 1.3; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 28px 0 8px; }
.policy-content p { font-size: 0.9375rem; line-height: 1.75; color: var(--gray-600); margin-bottom: 16px; }
.policy-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.policy-content li { font-size: 0.9375rem; line-height: 1.75; color: var(--gray-600); margin-bottom: 8px; }
.policy-content a { color: var(--blue); font-weight: 600; }
.policy-content a:hover { text-decoration: underline; }
.policy-divider { border: none; border-top: 1px solid var(--gray-200); margin: 48px 0; }

/* Lightbox (events, media) */
.lightbox { display: none; position: fixed; inset: 0; z-index: 2000; background: #000; align-items: center; justify-content: center; padding: 40px; }
.lightbox.active { display: flex; }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.1); }
.lightbox-content { max-width: 90vw; max-height: 80vh; text-align: center; }
.lightbox-content img { max-width: 100%; max-height: 70vh; border-radius: 8px; object-fit: contain; }
.lightbox-info { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 20px; }
.lightbox-caption { font-size: 0.9375rem; color: rgba(255,255,255,0.7); }
.lightbox-download { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pop); transition: color 0.2s; }
.lightbox-download:hover { color: var(--pop-hover); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--white); font-size: 2.5rem; cursor: pointer; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s; }
.lightbox-nav:hover { background: rgba(255,255,255,0.1); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
@media (max-width: 600px) { .lightbox-nav { display: none; } }

/* Photo gallery (events, media) */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.photo-card { position: relative; border-radius: 12px; overflow: hidden; background: var(--gray-100); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.photo-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.photo-card img { width: 100%; height: 280px; object-fit: cover; display: block; }
.photo-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(21,43,68,0.85) 0%, transparent 50%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; opacity: 0; transition: opacity 0.25s; }
.photo-card:hover .photo-card-overlay { opacity: 1; }
.photo-card-caption { font-size: 0.8125rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.photo-card-download { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue-light); transition: color 0.2s; }
.photo-card-download:hover { color: var(--white); }
@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-card img { height: 240px; }
  .photo-card-overlay { opacity: 1; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .photo-card img { height: 260px; }
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Endorsement Banner */
.endorsement-banner {
  background: var(--pop);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.endorsement-banner a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.endorsement-banner a:hover { color: var(--white); text-decoration-thickness: 2px; }

/* Alert Banner */
.alert-banner {
  display: block;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.15s ease;
}
.alert-banner:hover { background: var(--navy-light); color: var(--white); }
.alert-banner.red { background: #C1272D; }
.alert-banner.red:hover { background: #A61F24; }
.alert-banner .arrow { margin-left: 6px; display: inline-block; transition: transform 0.15s ease; }
.alert-banner:hover .arrow { transform: translateX(3px); }
.alert-banner .underline { text-decoration: underline; text-underline-offset: 2px; }
.alert-banner .badge {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-right: 9px;
  vertical-align: middle;
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .alert-banner { font-size: 0.8125rem; padding: 8px 16px; line-height: 1.4; }
  .alert-banner .badge { font-size: 0.625rem; padding: 2px 7px; margin-right: 7px; }
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* High enough to clear Leaflet's panes (700) and its control container
     (1000) which positions zoom buttons absolute. Our modals reach ~1000
     but they cover the whole viewport so visually they win regardless. */
  z-index: 1500;
  background: #FFFFFF;
  border-bottom: 1px solid var(--gray-200);
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--gray-200); }

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.logo { display: block; height: 52px; }
.logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  height: 100%;
}
.nav-links a {
  display: flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  padding: 0 16px;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px;
  bottom: -1px; height: 4px;
  background: var(--pop);
  border-radius: 2px 2px 0 0;
}

.nav-cta {
  color: var(--white);
  padding: 12px 28px;
  white-space: nowrap;
}
.nav-cta:hover { color: var(--white); }

/* Mobile-only nav links (Home) - hidden on desktop, shown in drawer */
.nav-links a.nav-mobile-only { display: none; }

/* Vote group in the mobile drawer - tinted panel that visually couples the two voting links.
   Hidden on desktop; the @media block below toggles it on when the drawer is open. */
.nav-vote-group { display: none; }

/* Vote dropdown - desktop only (hidden in the mobile drawer; see @media block below) */
.nav-dd { position: relative; display: flex; height: 100%; }
.nav-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  padding: 0 16px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.nav-dd-trigger:hover { color: var(--navy); }
.nav-dd[data-open="true"] .nav-dd-trigger { color: var(--navy); }
.nav-dd-trigger.active { color: var(--navy); }
.nav-dd-trigger.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px;
  bottom: -1px; height: 4px;
  background: var(--pop);
  border-radius: 2px 2px 0 0;
}
.nav-dd-caret { width: 11px; height: 11px; transition: transform 0.2s; flex-shrink: 0; }
.nav-dd[data-open="true"] .nav-dd-caret { transform: rotate(180deg); }

.nav-dd-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 252px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(21,43,68,0.14);
  padding: 6px;
  display: none;
  z-index: 60;
  margin-top: 6px;
}
.nav-dd[data-open="true"] .nav-dd-menu { display: block; }
.nav-dd-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.nav-dd-menu a:hover,
.nav-dd-menu a:focus-visible { background: var(--sky); color: var(--navy); }
.nav-dd-menu a[aria-current="page"] { background: var(--sky); color: var(--navy); }
.nav-dd-menu .s {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--gray-600);
  margin-top: 2px;
  letter-spacing: 0;
  text-transform: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-pop {
  background: var(--pop);
  color: var(--white);
  padding: 12px 28px;
  white-space: nowrap;
}
.btn-pop:hover { background: var(--pop-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,148,46,0.35); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  padding: 14px 32px;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  padding: 14px 32px;
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(21,43,68,0.3); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all 0.3s;
}

/* Footer Signup */
.footer-signup { display: flex; gap: 10px; max-width: 520px; width: 100%; }
.footer-signup input { flex: 1; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; background: rgba(255,255,255,0.08); font-family: var(--font-body); font-size: 0.875rem; color: var(--white); }
.footer-signup input::placeholder { color: rgba(255,255,255,0.4); }
.footer-signup input:focus { outline: none; border-color: var(--blue-light); }
.footer-signup .btn { flex-shrink: 0; padding: 10px 20px; font-size: 0.8125rem; }
.footer-signup-msg { max-width: 520px; width: 100%; font-size: 0.8125rem; margin-top: 8px; text-align: center; }
.footer-signup-msg.success { color: #6ee7b7; }
.footer-signup-msg.error { color: #fca5a5; }
.footer-signup input.input-error { border-color: #fca5a5; }

/* Footer */
.site-footer { background: #0F2236; padding: 48px 0 32px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer-logo img { height: 56px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--white); transition: background 0.2s; }
.footer-social a:hover { background: rgba(255,255,255,0.2); }
.footer-legal { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-align: center; line-height: 1.6; }
.footer-legal a { text-decoration: underline; }

/* Responsive - header/nav/banner collapse */
@media (max-width: 960px) {
  :root { --section-py: 72px; }
  .endorsement-banner { font-size: 0.75rem; padding: 8px 16px; }
  .header-inner { grid-template-columns: 1fr auto auto; gap: 12px; }
  .logo { grid-column: 1; }
  .nav-cta { grid-column: 2; justify-self: end; }
  .menu-toggle { grid-column: 3; justify-self: end; display: flex; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; height: auto; background: var(--white); padding: 24px; gap: 0; border-top: 1px solid var(--gray-200); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .nav-links.open a { padding: 14px 4px; }
  .nav-links.open a.active::after { display: none; }
  .nav-links.open a.nav-mobile-only { display: flex; }
  /* Vote dropdown collapses on mobile - the menu items render inside .nav-vote-group instead */
  .nav-dd { display: none; }
  .nav-links.open .nav-vote-group {
    display: flex;
    flex-direction: column;
    background: var(--sky);
    border-radius: 10px;
    margin: 20px 0 0;
    padding: 14px 14px 6px;
    order: 1;
  }
  .nav-links.open .nav-vote-group::before {
    content: 'Voter Information';
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blue);
    padding: 0 4px 6px;
  }
  .nav-links.open .nav-vote-group a { padding: 12px 4px; }
  .btn-pop.nav-cta { padding: 8px 14px; font-size: 0.75rem; letter-spacing: 0.04em; border-radius: 5px; }
}
@media (max-width: 600px) {
  .btn-pop.nav-cta { padding: 7px 11px; font-size: 0.6875rem; letter-spacing: 0.03em; }
  .header-inner { gap: 8px; }
  .logo, .logo img { height: 44px; }
}

/* Responsive - footer signup stacks */
@media (max-width: 600px) {
  .footer-signup { flex-direction: column; }
}

/* Live "Happening Now" badge - reusable across status pills (.ti-status, .feature-walk-badge, etc.) */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pop); box-shadow: 0 0 0 4px rgba(232,148,46,0.3); animation: livePulse 2s ease-in-out infinite; flex: 0 0 auto; }
@keyframes livePulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%      { opacity: 0.6; transform: scale(1.15); }
}
.ti-status.live { background: rgba(15,34,54,0.85); color: var(--white); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ti-status.live::before { display: none; }
.feature-walk-badge.live { background: rgba(15,34,54,0.85); color: var(--white); }

/* Voting plan wizard.
   Split layout: live "your plan" card on the left, current question
   card on the right. Collapses to single column under 900px. The
   plan output replaces the wizard once generated.
 */

/* Body padding so content sits below the fixed site header. */
.vp-body { padding-top: var(--header-h, 76px); background: var(--gray-50); min-height: 100vh; }
/* Force [hidden] to win over our display: flex / grid rules below. */
.vp-body [hidden] { display: none !important; }

/* Welcome screen (pre-wizard). */
.vp-welcome { max-width: 720px; margin: 0 auto; padding: 64px 24px; text-align: center; }
.vp-welcome-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.vp-welcome h1 { font-family: var(--font-display); font-size: clamp(2.25rem, 4.5vw, 3rem); font-weight: 800; color: var(--navy); line-height: 1.1; margin-bottom: 18px; letter-spacing: -0.02em; }
.vp-welcome h1 .accent { color: var(--pop); }
.vp-welcome p { font-size: 1.0625rem; color: var(--gray-600); max-width: 560px; margin: 0 auto 28px; line-height: 1.7; }
.vp-welcome p strong { color: var(--navy); }
.vp-welcome-meta { display: inline-flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: center; margin-bottom: 28px; font-size: 0.8125rem; color: var(--gray-600); }
.vp-welcome-meta span { display: inline-flex; align-items: center; gap: 6px; }
.vp-welcome-meta span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pop); }
.vp-welcome-cta { background: var(--pop); color: var(--white); border: none; padding: 16px 36px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; min-height: 52px; transition: background 0.15s, transform 0.15s, box-shadow 0.15s; }
.vp-welcome-cta:hover { background: var(--pop-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,148,46,0.35); }
/* Plan-name field on the welcome screen. */
.vp-plan-name-field { max-width: 360px; margin: 0 0 24px; }
.vp-plan-name-label { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 8px; }
.vp-plan-name-input { width: 100%; max-width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200); border-radius: 8px; font-family: inherit; font-size: 0.9375rem; color: var(--navy); background: var(--white); text-align: left; transition: border-color 0.15s, box-shadow 0.15s; }
.vp-plan-name-input::placeholder { color: #98a2b0; font-weight: 400; text-align: left; }
.vp-plan-name-input:hover { border-color: #c8d0d8; }
.vp-plan-name-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,143,212,0.18); }
.vp-resume { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 16px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 999px; font-size: 0.875rem; color: var(--navy); cursor: pointer; font-family: inherit; }
.vp-resume:hover { border-color: var(--blue); }

/* Two-column wizard layout. Width matches the site container so the
   wizard runs from logo to donate button on desktop. */
.vp-split { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 32px; max-width: var(--max-w); margin: 0 auto; padding: 28px 24px 80px; align-items: start; }

/* Left column - live "your plan" card (sticky on desktop) */
.vp-live { position: sticky; top: calc(var(--header-h, 76px) + 16px); background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 22px 24px 18px; box-shadow: 0 1px 3px rgba(21,43,68,0.06); }
.vp-live-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.vp-live-title { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 4px; }
.vp-live-sub { font-size: 0.8125rem; color: var(--gray-600); margin-bottom: 18px; line-height: 1.5; }

/* Each row in the live plan. States: empty, current (pulsing), filled. */
.vp-live-rows { display: flex; flex-direction: column; border-top: 1px solid var(--gray-100); }
.vp-live-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--gray-100); cursor: pointer; transition: padding 0.15s; }
.vp-live-row:hover { padding-left: 4px; }
.vp-live-row:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.vp-live-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--gray-200); display: flex; align-items: center; justify-content: center; }
.vp-live-row.filled .vp-live-icon { border: none; background: var(--pop); color: var(--white); }
.vp-live-row.filled .vp-live-icon::after { content: '\2713'; font-size: 0.75rem; font-weight: 700; }
.vp-live-row.current .vp-live-icon { border: 1.5px solid var(--pop); background: var(--white); }
.vp-live-row.current .vp-live-icon::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pop); animation: vpPulse 1.6s infinite; }
@keyframes vpPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.7); } }
@media (prefers-reduced-motion: reduce) { .vp-live-row.current .vp-live-icon::after { animation: none; } }
.vp-live-key { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); flex-shrink: 0; min-width: 78px; }
.vp-live-row.filled .vp-live-key { color: var(--navy); }
.vp-live-val { font-size: 0.8125rem; font-weight: 600; color: var(--gray-600); margin-left: auto; text-align: right; line-height: 1.4; }
.vp-live-row.filled .vp-live-val { color: var(--navy); }
.vp-live-row.current .vp-live-val { color: var(--pop-hover); font-style: italic; }
.vp-live-row.empty .vp-live-val { color: #C9D2DA; }

/* Greeting at top of the live card once we know the voter's name. */
.vp-live-greeting { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1.15; margin-bottom: 4px; }

/* Progress bar at the bottom of the live card. */
.vp-live-progress { height: 4px; background: var(--gray-100); border-radius: 999px; overflow: hidden; margin-top: 16px; }
.vp-live-progress-fill { height: 100%; background: var(--pop); transition: width 0.4s ease; }
.vp-live-progress-label { font-size: 0.75rem; color: var(--gray-600); margin-top: 8px; text-align: center; font-weight: 500; }

/* Conflict-warning chip inside the live card. Soft amber, not alarming. */
.vp-conflict { margin-top: 14px; padding: 10px 12px; background: #FFF7EC; border: 1px solid rgba(232,148,46,0.4); border-radius: 8px; font-size: 0.8125rem; color: #7A4E14; line-height: 1.5; display: flex; gap: 8px; align-items: flex-start; }
.vp-conflict strong { color: var(--pop-hover); }
.vp-conflict::before { content: '!'; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--pop); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; }

/* Right column - question card */
.vp-qcard { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 32px 36px; box-shadow: 0 1px 3px rgba(21,43,68,0.04); animation: vpFade 240ms ease-out; }
@keyframes vpFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vp-qcard { animation: none; } }
.vp-qcard-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.vp-qcard-eyebrow .step-pill { background: var(--sky); color: var(--navy); padding: 3px 10px; border-radius: 999px; }
.vp-qcard h1 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 1.875rem); font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 8px; text-wrap: balance; }
.vp-qcard h1 .accent { color: var(--pop); }
.vp-qcard .lede { color: var(--gray-600); font-size: 0.9375rem; line-height: 1.65; margin-bottom: 22px; }
.vp-qcard .lede strong { color: var(--navy); }

/* "Why we ask" callout - same pattern across all questions. */
.vp-why { margin-top: 12px; margin-bottom: 18px; }
.vp-why-body { padding: 12px 14px; background: var(--sky); border-radius: 8px; font-size: 0.8125rem; color: var(--gray-800); line-height: 1.6; }
.vp-why-body a { color: var(--blue); text-decoration: underline; }
.vp-why-label { font-family: 'Playfair Display', Georgia, serif; font-size: 1.0625rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; }

/* Answer chip variants:
   .vp-answers (default) - column of stacked options
   .vp-answers.row       - horizontal pill row (Yes/No/Don't know)
   .vp-answers.grid3     - 3-column grid for districts (D1-D9)            */
.vp-answers { display: flex; flex-direction: column; gap: 10px; }
.vp-answers.row { flex-direction: row; flex-wrap: wrap; }
.vp-answers.row .vp-ans { flex: 1; min-width: 100px; text-align: center; }
.vp-answers.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: none; }
.vp-answers.grid3 .vp-ans { text-align: center; padding: 18px 12px; font-size: 1rem; }

.vp-ans { background: var(--white); color: var(--navy); border: 1.5px solid var(--gray-200); border-radius: 12px; padding: 14px 18px; font-size: 0.9375rem; font-weight: 600; cursor: pointer; font-family: inherit; text-align: left; transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.08s; line-height: 1.4; position: relative; }
/* Hover styles guarded by (hover: hover) so iOS Safari doesn't latch the
   filled-navy hover look onto whatever button sits where the user just
   tapped Continue - that's what made RAVBM look "pre-selected" on Q3. */
@media (hover: hover) and (pointer: fine) {
  .vp-ans:hover:not(:disabled) { border-color: var(--navy); background: var(--navy); color: var(--white); }
  .vp-ans:hover:not(:disabled) .vp-ans-sub { color: rgba(255,255,255,0.85); }
}
.vp-ans:active { transform: scale(0.99); }
.vp-ans:disabled { opacity: 0.45; cursor: not-allowed; }
.vp-ans:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.vp-ans-sub { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--gray-600); margin-top: 4px; line-height: 1.5; }

/* Toggle answers (pre-form): the orange checkmark in the corner from option A. */
.vp-ans.toggle { padding-right: 50px; }
.vp-ans.toggle[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.vp-ans.toggle[aria-pressed="true"] .vp-ans-sub { color: rgba(255,255,255,0.85); }
.vp-ans.toggle[aria-pressed="true"]::after { content: '\2713'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; background: var(--pop); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 700; }

/* Single-pick chips (Q1 Yes/No, Q2 districts, Q3 methods, Q5 research):
   show the previously-chosen option as selected when the voter revisits.
   Same look as the toggle's "on" state for consistency. */
.vp-ans.selected { background: var(--navy); color: var(--white); border-color: var(--navy); }
.vp-ans.selected .vp-ans-sub { color: rgba(255,255,255,0.85); }
.vp-ans.selected:hover:not(:disabled) { background: var(--navy-light); border-color: var(--navy-light); }

/* Pre-form group headings ("Where will you be?" / "Anything else?"). */
.vp-preform-group-heading { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); margin: 22px 0 10px; }
.vp-preform-group-heading:first-of-type { margin-top: 8px; }

/* Language-picker dropdown that appears under the help group. */
.vp-language-dropdown-wrap { margin-top: 14px; }
.vp-language-dropdown-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-600); margin-bottom: 8px; font-weight: 700; }

/* Inputs (date, text). */
.vp-input { width: 100%; max-width: 380px; padding: 14px 18px; border: 1.5px solid var(--gray-200); border-radius: 12px; font-family: inherit; font-size: 1rem; color: var(--navy); background: var(--white); }
.vp-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,143,212,0.15); }
.vp-input-help { font-size: 0.8125rem; color: var(--gray-600); margin-top: 8px; }
.vp-input-error { font-size: 0.875rem; color: #B23B3B; margin-top: 8px; font-weight: 600; display: none; }
.vp-input-error.show { display: block; }

/* Action row at bottom of each question. */
.vp-actions-row { display: flex; gap: 12px; margin-top: 24px; align-items: center; flex-wrap: wrap; }
.vp-next-btn { background: var(--pop); color: var(--white); border: none; padding: 14px 28px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 0.9375rem; cursor: pointer; min-height: 48px; transition: background 0.15s, transform 0.15s; }
.vp-next-btn:hover { background: var(--pop-hover); transform: translateY(-1px); }
.vp-next-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.vp-skip-btn { background: none; border: none; color: var(--gray-600); padding: 12px 8px; cursor: pointer; font-family: inherit; font-size: 0.875rem; font-weight: 500; }
.vp-skip-btn:hover { color: var(--navy); text-decoration: underline; }

/* Bottom row under the qcard: Back / Save & exit / Start over.
   Styled as outlined pill buttons so they read as actions, not text links. */
.vp-bottom-nav { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.vp-bottom-nav button {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--navy);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  min-height: 36px;
}
.vp-bottom-nav button:hover:not(:disabled) { border-color: var(--navy); background: var(--gray-50); }
.vp-bottom-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
/* Start over is a soft-destructive action - same shape, muted color until
   you hover so it doesn't compete with Back / Save & exit. */
.vp-bottom-nav #vpStartOver { color: var(--gray-600); }
.vp-bottom-nav #vpStartOver:hover:not(:disabled) { border-color: #B23B3B; color: #B23B3B; background: #FEF1F1; }

/* Plan output (replaces the split layout once generated) */
.vp-plan-stage { max-width: var(--max-w); margin: 0 auto; padding: 32px 24px 80px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.vp-plan-main { min-width: 0; }

/* The bookmark card is the hero of the plan output. */
.vp-bookmark { background: var(--white); border: 2px solid var(--pop); border-radius: 16px; padding: 24px 28px; margin-bottom: 28px; }
.vp-bookmark-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pop-hover); margin-bottom: 6px; }
.vp-bookmark h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); margin-bottom: 8px; letter-spacing: -0.01em; }
.vp-bookmark p { color: var(--gray-600); font-size: 0.9375rem; line-height: 1.6; }
.vp-bookmark-url-wrap { position: relative; display: flex; align-items: stretch; background: var(--sky); border-radius: 8px; margin: 14px 0 14px; overflow: hidden; }
.vp-bookmark-url { flex: 1; min-width: 0; font-family: 'SF Mono', Menlo, Consolas, monospace; color: var(--navy); padding: 12px 14px; font-size: 0.875rem; word-break: break-all; user-select: all; }
.vp-bookmark-copy { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; align-self: stretch; background: var(--navy); color: var(--white); border: none; padding: 0 14px; font-weight: 600; font-size: 0.8125rem; cursor: pointer; font-family: inherit; }
.vp-bookmark-copy:hover { background: var(--navy-light); }
.vp-bookmark-copy svg { flex: 0 0 auto; }
.vp-bookmark-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vp-bookmark-actions button { display: inline-flex; align-items: center; gap: 6px; }
.vp-bookmark-actions button { background: var(--navy); color: var(--white); border: none; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.875rem; cursor: pointer; font-family: inherit; }
.vp-bookmark-actions button.secondary { background: var(--white); color: var(--navy); border: 1px solid var(--gray-200); }
.vp-bookmark-actions button:hover { background: var(--navy-light); }
.vp-bookmark-actions button.secondary:hover { background: var(--sky); border-color: var(--blue); }

.vp-plan-greeting { margin-bottom: 24px; }
.vp-plan-greeting h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; line-height: 1.15; letter-spacing: -0.01em; }
.vp-plan-greeting p { color: var(--gray-600); font-size: 1rem; line-height: 1.6; }
.vp-plan-greeting strong { color: var(--navy); }

/* Anchor block - shows the voter's "right before I vote" moment. */
.vp-anchor-block { background: var(--sky); border-radius: 12px; padding: 18px 22px; margin-bottom: 24px; font-family: var(--font-display); font-size: 1.0625rem; color: var(--navy); font-style: italic; line-height: 1.5; }

/* Accessibility / language resource cards on the plan output. Stacks of
   small cards with the relevant Registrar phone numbers and links. */
.vp-resource-blocks { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.vp-resource-block { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 22px 26px; }
.vp-resource-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.vp-resource-block h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); margin-bottom: 6px; line-height: 1.25; }
.vp-resource-block p { color: var(--gray-800); font-size: 0.9375rem; line-height: 1.6; margin-bottom: 12px; }
.vp-resource-block ul { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.vp-resource-block li { font-size: 0.875rem; line-height: 1.55; color: var(--gray-800); padding-left: 22px; position: relative; }
.vp-resource-block li::before { content: '•'; position: absolute; left: 6px; color: var(--pop); font-weight: 700; }
.vp-resource-block li strong { color: var(--navy); }
.vp-resource-block a { color: var(--blue); text-decoration: underline; font-weight: 600; }
.vp-resource-footer-link { font-size: 0.8125rem; }

/* Task checklist. */
.vp-task-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.vp-task { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 16px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; transition: opacity 0.2s, background 0.2s; }
.vp-task:hover { background: var(--gray-50); }
.vp-task.done { opacity: 0.55; }
.vp-task.done .vp-task-label { text-decoration: line-through; }
.vp-task input[type="checkbox"] { width: 22px; height: 22px; cursor: pointer; accent-color: var(--pop); margin: 3px 0 0; }
.vp-task-body { min-width: 0; }
.vp-task-label { font-weight: 600; color: var(--navy); font-size: 0.9375rem; line-height: 1.4; cursor: pointer; }
.vp-task-meta { font-size: 0.8125rem; color: var(--gray-600); margin-top: 2px; }
.vp-task-meta a { color: var(--blue); font-weight: 600; }
.vp-task-meta a:hover { text-decoration: underline; }
.vp-task-due { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.vp-task-due input[type="date"] { padding: 6px 10px; border: 1px solid var(--gray-200); border-radius: 6px; font-family: inherit; font-size: 0.8125rem; color: var(--navy); background: var(--white); }
.vp-task-due-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); }
.vp-task-due-print { display: none; }

/* Custom (voter-added) tasks - small remove control on the right edge. */
.vp-task.is-custom { grid-template-columns: auto 1fr auto auto; }
.vp-task-remove { background: transparent; border: 0; color: var(--gray-600); cursor: pointer; padding: 6px; border-radius: 6px; line-height: 0; }
.vp-task-remove:hover { color: var(--pop-hover); background: var(--gray-50); }
.vp-task-custom-tag { display: inline-block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-left: 8px; vertical-align: middle; }

/* Add-a-task form - lives below the task list. Toggles between a button
   and an inline form. */
.vp-add-task { margin-bottom: 28px; }
.vp-add-task-btn { background: var(--white); border: 1.5px dashed var(--gray-200); color: var(--navy); padding: 14px 18px; border-radius: 12px; font-family: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.vp-add-task-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--sky); }
.vp-add-task-btn::before { content: '+'; font-size: 1.25rem; font-weight: 700; line-height: 1; }
.vp-add-task-form { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 16px 20px; display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: end; }
.vp-add-task-form label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); display: block; margin-bottom: 4px; }
.vp-add-task-form input[type="text"] { width: 100%; padding: 8px 10px; border: 1px solid var(--gray-200); border-radius: 6px; font-family: inherit; font-size: 0.9375rem; color: var(--navy); }
.vp-add-task-form input[type="date"] { padding: 8px 10px; border: 1px solid var(--gray-200); border-radius: 6px; font-family: inherit; font-size: 0.875rem; color: var(--navy); background: var(--white); }
.vp-add-task-form button { padding: 8px 14px; border-radius: 6px; font-family: inherit; font-weight: 700; font-size: 0.875rem; cursor: pointer; border: 0; }
.vp-add-task-form .vp-add-task-save { background: var(--pop); color: var(--white); }
.vp-add-task-form .vp-add-task-save:hover { background: var(--pop-hover); }
.vp-add-task-form .vp-add-task-cancel { background: var(--gray-50); color: var(--navy); border: 1px solid var(--gray-200); }
.vp-add-task-form .vp-add-task-cancel:hover { background: var(--gray-200); }
@media (max-width: 700px) {
  .vp-add-task-form { grid-template-columns: 1fr 1fr; }
  .vp-add-task-form .vp-add-task-label-field { grid-column: 1 / -1; }
}

/* Plan side rail (bookmark + summary on desktop). On mobile it stacks. */
.vp-plan-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h, 76px) + 16px); }
.vp-plan-rail .vp-bookmark { margin-bottom: 0; }

/* Share + actions block. */
.vp-share { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 22px 24px; margin-bottom: 22px; }
.vp-share h3 { font-family: var(--font-display); font-size: 1.125rem; color: var(--navy); margin-bottom: 4px; }
.vp-share p { color: var(--gray-600); font-size: 0.875rem; margin-bottom: 14px; }
.vp-share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.vp-share-buttons a { padding: 8px 14px; background: var(--sky); color: var(--navy); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; border: 1px solid transparent; }
.vp-share-buttons a:hover { border-color: var(--blue); }

.vp-plan-footer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vp-plan-footer-actions button { background: var(--white); border: 1px solid var(--gray-200); color: var(--navy); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.875rem; cursor: pointer; font-family: inherit; }
.vp-plan-footer-actions button:hover { border-color: var(--navy); }
.vp-plan-footer-actions .primary { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* FPPC line at the bottom of the plan. */
.vp-fppc { font-size: 0.75rem; color: var(--gray-600); text-align: center; margin-top: 22px; line-height: 1.6; }

/* Locations map (used both on the plan and as a standalone tool) */
.vp-map-section { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; overflow: hidden; margin-bottom: 28px; }
.vp-map-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--gray-100); }
.vp-map-header h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); margin-bottom: 4px; }
.vp-map-header p { color: var(--gray-600); font-size: 0.875rem; line-height: 1.5; }
.vp-map-filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 24px; border-bottom: 1px solid var(--gray-100); background: var(--gray-50); }
.vp-map-filter { background: var(--white); border: 1px solid var(--gray-200); color: var(--navy); padding: 6px 14px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.vp-map-filter[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.vp-map-filter:hover:not([aria-pressed="true"]) { border-color: var(--blue); }
.vp-map-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 480px; }
#vpMap { width: 100%; height: 100%; min-height: 480px; }
.vp-map-list { max-height: 600px; overflow-y: auto; border-left: 1px solid var(--gray-100); }
.vp-map-item { padding: 14px 18px; border-bottom: 1px solid var(--gray-100); cursor: pointer; transition: background 0.15s; }
.vp-map-item:hover, .vp-map-item.active { background: var(--sky); }
.vp-map-item-name { font-weight: 600; color: var(--navy); font-size: 0.9375rem; line-height: 1.3; margin-bottom: 4px; }
.vp-map-item-addr { color: var(--gray-600); font-size: 0.8125rem; line-height: 1.4; }
.vp-map-item-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.vp-map-tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.vp-map-tag.dropbox { background: var(--sky); color: var(--blue); }
.vp-map-tag.center { background: rgba(232,148,46,0.18); color: var(--pop-hover); }
.vp-map-tag.early { background: var(--gray-100); color: var(--navy); }
.vp-map-empty { padding: 40px 20px; text-align: center; color: var(--gray-600); font-size: 0.9375rem; }
/* Leaflet controls (zoom, attribution) default to z-index 1000, which would
   render over our fixed site header (z 900). Drop them below the header. */
.vp-map-section .leaflet-top,
.vp-map-section .leaflet-bottom,
.vp-standalone-stage .leaflet-top,
.vp-standalone-stage .leaflet-bottom,
.vp-mini-map .leaflet-top,
.vp-mini-map .leaflet-bottom { z-index: 600; }
/* Legend below the map header. Shows the same dot colors as the markers. */
.vp-map-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 0.75rem; color: var(--gray-600); }
.vp-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.vp-map-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.vp-map-legend .dot-dropbox { background: var(--blue); }
.vp-map-legend .dot-center { background: var(--pop); }
.vp-map-legend .dot-early { background: var(--navy); }
.vp-map-legend .dot-final { background: var(--pop); }
/* Source / last-updated line under the legend. Quiet but verifiable. */
.vp-map-source { font-size: 0.75rem; color: var(--gray-600); margin-top: 12px; line-height: 1.5; padding-top: 10px; border-top: 1px dashed var(--gray-200); }
.vp-map-source a { color: var(--blue); text-decoration: underline; font-weight: 600; }
.vp-map-source strong { color: var(--navy); font-weight: 700; }
/* Hours line in the map list. */
.vp-map-item-hours { color: var(--gray-600); font-size: 0.75rem; line-height: 1.4; margin-top: 4px; font-weight: 500; }
/* "Use this location" pill in the list row. */
.vp-map-item-pick { margin-top: 8px; background: var(--pop); color: var(--white); border: none; padding: 6px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.vp-map-item-pick:hover { background: var(--pop-hover); }
/* Selected-row state: subtle navy halo + persistent highlight. */
.vp-map-item.chosen { background: #FFF7EC; box-shadow: inset 3px 0 0 var(--pop); }
.vp-map-item.chosen .vp-map-item-pick { background: var(--gray-200); color: var(--navy); }
.vp-map-item.chosen .vp-map-item-pick:hover { background: var(--gray-200); }

/* Modal (used for military thank-you popups) */
.vp-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(15,34,54,0.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: vpModalFade 200ms ease-out; }
@keyframes vpModalFade { from { opacity: 0; } to { opacity: 1; } }
.vp-modal-card { background: var(--white); border-radius: 16px; max-width: 540px; width: 100%; padding: 36px 36px 32px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: vpModalRise 240ms cubic-bezier(.2,.8,.2,1); }
@keyframes vpModalRise { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vp-modal, .vp-modal-card { animation: none; } }
.vp-modal-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pop); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.vp-modal-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pop); }
.vp-modal h2 { font-family: var(--font-display); font-size: 1.625rem; color: var(--navy); margin-bottom: 12px; line-height: 1.2; letter-spacing: -0.01em; }
.vp-modal p { color: var(--gray-800); font-size: 0.9375rem; line-height: 1.7; margin-bottom: 12px; }
.vp-modal .signoff { font-family: 'Caveat', cursive; font-size: 1.5rem; font-weight: 700; color: var(--pop); margin-top: 16px; transform: rotate(-1.5deg); display: inline-block; }
.vp-modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.vp-modal-actions button { background: var(--navy); color: var(--white); border: none; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; cursor: pointer; font-family: inherit; }
.vp-modal-actions button:hover { background: var(--navy-light); }

/* Locator note (City of San Diego only) */
.vp-locator-note { background: var(--sky); border: 1px solid rgba(61,143,212,0.25); border-radius: 8px; padding: 10px 14px; font-size: 0.8125rem; color: var(--navy); margin-top: 14px; line-height: 1.5; }
.vp-locator-note a { color: var(--blue); text-decoration: underline; font-weight: 600; }
.ext-icon { width: 0.85em; height: 0.85em; margin-left: 3px; vertical-align: -1px; opacity: 0.7; flex-shrink: 0; }
a:hover .ext-icon, a:focus-visible .ext-icon { opacity: 1; }

/* Toast (transient feedback) */
.vp-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: var(--white); padding: 12px 22px; border-radius: 999px; font-size: 0.875rem; font-weight: 600; z-index: 1100; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.vp-toast.show { opacity: 1; }

/* The "Plan" toggle is mobile-only - on desktop the .vp-live sidebar already
   shows progress, so we don't need a duplicate control inside the qcard. */
.vp-qcard-plan-btn { display: none; }
.vp-qcard-plan-panel { display: none; }

/* Mobile - hide the standalone live-plan sidebar; expose progress
   through a "Plan" button on the eyebrow that reveals an in-card panel. */
@media (max-width: 900px) {
  .vp-split { grid-template-columns: 1fr; padding: 16px 16px 60px; gap: 16px; }
  .vp-live { display: none; }
  .vp-qcard { padding: 24px 22px; }
  .vp-qcard h1 { font-size: 1.375rem; }
  .vp-plan-stage { grid-template-columns: 1fr; padding: 16px 16px 60px; }
  .vp-plan-rail { position: relative; top: auto; }
  .vp-map-grid { grid-template-columns: 1fr; }
  .vp-map-list { max-height: 320px; border-left: none; border-top: 1px solid var(--gray-100); }
  #vpMap { min-height: 320px; }

  /* Eyebrow: pill on the left, section name in the middle (truncates if
     long), Plan button pushed to the right. Single-line layout. */
  .vp-qcard-eyebrow { flex-wrap: nowrap; gap: 8px; }
  .vp-qcard-eyebrow .step-pill { flex-shrink: 0; }
  .vp-qcard-eyebrow-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .vp-qcard-plan-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    margin-left: auto;
    padding: 4px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--gray-600);
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .vp-qcard-plan-btn:hover { background: var(--gray-50); border-color: var(--blue); color: var(--blue); }
  .vp-qcard-plan-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
  .vp-qcard-plan-btn-chev { transition: transform 0.2s; font-size: 0.75rem; }
  .vp-qcard-plan-btn[aria-expanded="true"] {
    background: var(--sky);
    border-color: var(--sky);
    color: var(--blue);
  }
  .vp-qcard-plan-btn[aria-expanded="true"] .vp-qcard-plan-btn-chev { transform: rotate(180deg); }

  /* The in-card plan panel revealed by the Plan button. */
  .vp-qcard-plan-panel {
    display: block;
    margin: 12px 0 18px;
    padding: 4px 0 16px;
    border-bottom: 1px solid var(--gray-100);
  }
  .vp-qcard-plan-panel[hidden] { display: none; }
}
@media (max-width: 600px) {
  .vp-welcome { padding: 40px 20px 32px; }
  .vp-bookmark, .vp-qcard { padding: 22px 20px; }
  .vp-modal-card { padding: 28px 24px 24px; }
  .vp-modal h2 { font-size: 1.375rem; }
  .vp-task { grid-template-columns: auto 1fr; padding: 14px 16px; }
  .vp-task-due { grid-column: 2; align-items: flex-start; flex-direction: row; gap: 8px; align-items: center; margin-top: 4px; }
  .vp-answers.row { flex-direction: column; }
  .vp-answers.row .vp-ans { flex: 1 1 100%; }
}

/* Inline mini-map disclosure on Q3 (method picker).
   Lets the voter peek at nearby drop boxes / vote centers before
   committing to a method. Collapsed by default to keep the wizard tidy. */
.vp-mini-map { margin-top: 18px; border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; background: var(--white); }
.vp-mini-map-toggle { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--gray-50); border: none; cursor: pointer; font-family: inherit; font-size: 0.875rem; font-weight: 600; color: var(--navy); text-align: left; }
.vp-mini-map-toggle:hover { background: var(--sky); }
.vp-mini-map-toggle .vp-mini-map-icon { width: 20px; height: 20px; border-radius: 50%; background: var(--sky); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }
.vp-mini-map-toggle .vp-mini-map-chev { margin-left: auto; transition: transform 0.2s; color: var(--gray-600); font-size: 0.75rem; }
.vp-mini-map[open] .vp-mini-map-toggle .vp-mini-map-chev { transform: rotate(180deg); }
.vp-mini-map-body { display: none; padding: 0; }
.vp-mini-map[open] .vp-mini-map-body { display: block; }
.vp-mini-map-canvas { width: 100%; height: 280px; }
.vp-mini-map-hint { font-size: 0.75rem; color: var(--gray-600); padding: 10px 16px; background: var(--gray-50); border-top: 1px solid var(--gray-100); }

/* Web Share / Add-to-bookmarks button on the plan output.
   Uses navigator.share where supported (mobile + Chrome desktop) - the
   sheet that opens includes "Add Bookmark" on iOS/Android. Fallback shows
   the Cmd+D / Ctrl+D hint. Styled like the other bookmark-card buttons. */
/* Voter-resources tab bar - shared across the voter resources pages
   so the user can flip back to the Voter Guide from inside the planner. */
.vt-tabs-wrap { background: var(--sky); border-bottom: 1px solid var(--gray-200); box-shadow: 0 1px 3px rgba(21,43,68,0.04); }
.vt-tabs { display: flex; max-width: var(--max-w, 1140px); margin: 0 auto; padding: 0 24px; gap: 0; align-items: stretch; }
.vt-tab { flex: 1 1 0; min-width: 0; background: transparent; border: 0; color: var(--gray-600); padding: 18px 26px 16px; font-family: var(--font-body); cursor: pointer; border-bottom: 3px solid transparent; transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s; display: flex; align-items: center; gap: 14px; text-align: left; text-decoration: none; }
.vt-tab:hover { color: var(--navy); background: var(--gray-50); }
.vt-tab[aria-current="page"] { color: var(--navy); border-bottom-color: var(--pop); background: var(--white); box-shadow: 0 -1px 0 rgba(232,148,46,0.18) inset, 0 2px 6px -2px rgba(21,43,68,0.08); }
.vt-tab[aria-current="page"]:hover { background: var(--white); }
.vt-tab-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--sky); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s, color 0.15s; }
.vt-tab[aria-current="page"] .vt-tab-icon { background: rgba(232,148,46,0.15); color: var(--pop-hover); }
.vt-tab-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.vt-tab-title { font-size: 1rem; font-weight: 800; color: inherit; }
.vt-tab-sub { font-size: 0.75rem; font-weight: 500; color: var(--gray-600); margin-top: 2px; }
.vt-tab[aria-current="page"] .vt-tab-sub { color: var(--pop-hover); font-weight: 600; }
@media (max-width: 600px) {
  .vt-tabs { padding: 0 12px; }
  .vt-tab { min-width: 0; padding: 14px 12px; flex: 1 1 0; gap: 10px; }
  .vt-tab-icon { width: 32px; height: 32px; }
  .vt-tab-sub { display: none; }
}

/* Q1 "I don't know" help block - bordered box matching the q2 locator note */
.vp-q1-dunno-help { display: flex; gap: 12px; align-items: flex-start; background: var(--sky); border: 1px solid rgba(61,143,212,0.25); border-radius: 8px; padding: 12px 14px; font-size: 0.875rem; color: var(--navy); margin-top: 14px; line-height: 1.5; }
.vp-q1-dunno-help .vp-q1-dunno-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(61,143,212,0.18); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.vp-q1-dunno-help a { color: var(--blue); text-decoration: underline; font-weight: 600; }

/* Voting-day date picker - stop it from blowing through the viewport on
   mobile and from looking comically wide on desktop. */
input.vp-input[type="date"] { max-width: 220px; box-sizing: border-box; }

/* Mail-by-mail registration deadline indicator (shown only when registered=false) */
.vp-mail-deadline { margin-top: 10px; padding: 10px 12px; background: #FFF7EC; border: 1px solid rgba(232,148,46,0.4); border-radius: 8px; font-size: 0.8125rem; color: #7A4E14; line-height: 1.5; display: flex; gap: 8px; align-items: flex-start; }
.vp-mail-deadline strong { color: var(--pop-hover); }
.vp-mail-deadline::before { content: '!'; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--pop); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; }

/* Late-opening location flag - shown on map list items that open AFTER
   the voter's chosen voting day. */
.vp-map-item.late { opacity: 0.78; }
.vp-map-late-flag { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 8px; background: #FFF7EC; border: 1px solid rgba(232,148,46,0.45); border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; color: var(--pop-hover); text-transform: uppercase; }

.vp-bookmark-actions .vp-bookmark-this { background: var(--pop); }
.vp-bookmark-actions .vp-bookmark-this:hover { background: var(--pop-hover); }
.vp-bookmark-shortcut { display: none; font-size: 0.75rem; color: var(--gray-600); margin-top: 10px; line-height: 1.5; }
.vp-bookmark-shortcut kbd { font-family: 'SF Mono', Menlo, Consolas, monospace; padding: 1px 6px; border: 1px solid var(--gray-200); border-radius: 4px; background: var(--white); font-size: 0.7rem; }
.vp-bookmark-shortcut.show { display: block; }

/* Standalone-map page mode (?map=1).
   Renders the locations map full-bleed with a slim header. Used by the
   footer "Find a drop box or vote center" link. */
.vp-standalone-stage { max-width: var(--max-w); margin: 0 auto; padding: 28px 24px 80px; }
.vp-standalone-stage > h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; line-height: 1.15; letter-spacing: -0.01em; }
.vp-standalone-stage > p { color: var(--gray-600); font-size: 1rem; line-height: 1.6; margin-bottom: 24px; max-width: 640px; }
.vp-standalone-stage > p a { color: var(--blue); text-decoration: underline; font-weight: 600; }

/* PRINT STYLES
   When the voter prints their plan we want the artifact, not the chrome:
   - Drop the alert banner, donate button, mobile menu, footer signup
   - Keep the logo so it's clearly a Josh Coyne campaign artifact
   - Drop interactive UI on the plan (share, edit, start-over, map)
   - Keep the bookmark URL, greeting, anchor, tasks, FPPC line
*/
@media print {
  /* Reset color/background */
  body, .vp-body { background: #FFF !important; color: #000 !important; padding-top: 0 !important; }
  
  /* Header: keep only the logo, drop everything else (e.g., drop shadow, banner, etc.) */
  .alert-banner, .nav-links, .nav-cta, .menu-toggle { display: none !important; }
  .site-header { position: static !important; border-bottom: 1px solid #888 !important; padding: 12px 0 !important; }
  .site-header .header-inner { display: block !important; padding: 0 12px !important; text-align: left !important; }
  .logo img { height: 44px !important; }
  /* Footer: minimal legal line (we have to keep this), drop signup and social icons. */
  .footer-signup, .footer-signup-msg, .footer-social { display: none !important; }
  .site-footer { background: transparent !important; padding: 18px 0 !important; }
  .footer-inner { display: block !important; padding: 0 12px !important; }
  .footer-logo { display: none !important; }
  .footer-legal { color: #555 !important; text-align: left !important; font-size: 0.7rem !important; }
  .footer-legal a { color: #555 !important; }
  /* Wizard / interactive bits: hide entirely, only the plan output prints. */
  #vpWelcome, #vpWizard, .vp-bottom-nav, .vp-share, .vp-plan-footer-actions,
  .vp-bookmark-actions, .vp-bookmark-shortcut, .vp-bookmark-copy, .vp-map-section,
  .skip-link, .vp-toast, #vpModalRoot, .vp-resume { display: none !important; }
  /* Plan output collapses to a single column for clean paper layout. */
  .vp-plan-stage { display: block !important; padding: 24px 12px !important; max-width: none !important; }
  .vp-bookmark { background: transparent !important; border: 1px solid #888 !important; padding: 14px 18px !important; margin-bottom: 18px !important; page-break-inside: avoid; box-shadow: none !important; }
  .vp-bookmark h2 { color: #000 !important; font-size: 1.125rem !important; }
  .vp-bookmark-url-wrap { background: transparent !important; border: 1px solid #ccc !important; border-radius: 4px !important; }
  .vp-bookmark-url { background: transparent !important; padding: 8px 10px !important; }
  .vp-task { background: transparent !important; border: 1px solid #888 !important; page-break-inside: avoid; padding: 10px 14px !important; }
  .vp-task input[type="checkbox"] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .vp-task-due { align-items: flex-end !important; text-align: right !important; flex-direction: column !important; }
  .vp-task-due input[type="date"] { display: none !important; }
  .vp-task-due-print { display: block !important; font-size: 0.875rem !important; color: #000 !important; }
  .vp-anchor-block { background: transparent !important; border-left: 3px solid #000 !important; padding-left: 14px !important; border-radius: 0 !important; }
  /* No body scroll, keep it linear. */
  .vp-plan-rail { position: static !important; }
  /* Hide URL hints next to links (browsers add them). Up to user agent. */
  a[href]::after { content: '' !important; }
}

/* Phase variants - election-week copy that switches itself at SD-local midnight and 8 p.m. on June 2. The data-phase head script on each page picks the state; these rules reveal the matching variant. pv-open covers Monday + Election Day (everything but after-close). Default with no script shows Monday. The html[data-phase] rules outrank page-level descendant selectors so a variant inside a styled block still toggles cleanly. */
.pv-monday, .pv-open { display: contents; }
.pv-eday, .pv-close { display: none; }
html[data-phase="election-day"] .pv-monday,
html[data-phase="after-close"]  .pv-monday,
html[data-phase="after-close"]  .pv-open { display: none; }
html[data-phase="election-day"] .pv-eday,
html[data-phase="after-close"]  .pv-close { display: contents; }
