/* ============================================================
   2026 Voter Guide — styles. Built on the design tokens in
   /styles.css (navy, gold, Fraunces/Inter). Static, no JS.
   ============================================================ */

.vg { padding: clamp(1.25rem, 4vw, 2.75rem) 0 clamp(2rem, 6vw, 3.5rem); }
.vg-wrap { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }

/* Breadcrumbs */
.vg-crumbs { font-size: 0.85rem; color: var(--ink-muted); margin: 0 0 0.9rem; }
.vg-crumbs a { color: var(--navy); }
.vg-crumbs .sep { color: var(--ink-muted); padding: 0 0.35rem; }

/* Tab-style sub-nav (real links, one per page) */
.vg-subnav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.5rem;
  border-bottom: 2px solid var(--rule); padding-bottom: 0.6rem; }
.vg-subnav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--navy);
  padding: 0.4rem 0.85rem; border-radius: 7px; }
.vg-subnav a:hover { background: var(--soft-gray); }
.vg-subnav a[aria-current="page"] { background: var(--navy); color: #fff; }

/* Page header block */
.vg-eyebrow { font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.72rem; color: var(--gold-deep); }
.vg h1 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); margin: 0.35rem 0 0.4rem; line-height: 1.08; }
.vg-sub { color: var(--ink-soft); font-size: 1.1rem; margin: 0 0 0.5rem; }
.vg-updated { font-size: 0.82rem; color: var(--ink-muted); margin: 0 0 1.5rem; }

/* Plain-language summary callout (AI + humans) */
.vg-summary { background: var(--soft-gray); border-left: 4px solid var(--gold); border-radius: 8px;
  padding: 1rem 1.25rem; margin: 0 0 2rem; font-size: 1.02rem; color: var(--ink); }
.vg-summary p { margin: 0 0 0.5rem; }
.vg-summary p:last-child { margin: 0; }

/* Intro prose */
.vg-intro p { color: var(--ink); max-width: 68ch; margin: 0 0 1rem; }

/* Key dates */
.vg-dates { display: grid; gap: 0.5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.vg-dates li { display: flex; flex-wrap: wrap; gap: 0.1rem 0.75rem; padding: 0.65rem 0.9rem;
  background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--gold); border-radius: 8px; }
.vg-dates .d-label { font-weight: 700; color: var(--navy-deep); }
.vg-dates .d-val { color: var(--ink-soft); }

/* Section headings */
.vg-section { margin: 2.5rem 0; }
.vg-section > h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); border-bottom: 2px solid var(--gold);
  padding-bottom: 0.3rem; margin: 0 0 1.25rem; }
.vg-race > h2 { font-family: var(--font-display); color: var(--navy-deep); }

/* Grade badges */
.vg-badge { display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
  color: #fff; border-radius: 999px; line-height: 1.1; text-align: center; }
.vg-badge-lg { font-family: var(--font-display); font-size: clamp(1.1rem, 3vw, 1.6rem);
  min-width: 2.4em; padding: 0.3em 0.55em; }
.vg-badge-sm { font-size: 0.8rem; padding: 0.15em 0.55em; }
.g-A { background: #1E7A46; } .g-B { background: #0E7C86; } .g-C { background: #B4690E; }
.g-D { background: #C2410C; } .g-F { background: #B42318; } .g-NA { background: #6B7280; }
.vg-grade-na { color: var(--ink-muted); font-style: italic; font-weight: 600; }

/* Candidate card */
.vg-candidate { background: var(--white); border: 1px solid var(--rule); border-radius: 12px;
  padding: clamp(1.1rem, 3vw, 1.75rem); margin: 0 0 1.5rem; box-shadow: var(--shadow-sm);
  scroll-margin-top: 1rem; }
.vg-cand-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.vg-cand-head h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0; flex: 1 1 12rem; }
.vg-cand-meta { color: var(--ink-soft); font-size: 0.92rem; margin: 0.45rem 0 0; }
.vg-cand-meta .vg-grade-plain { font-weight: 700; color: var(--ink); }
.vg-cand-summary { margin: 0.95rem 0 1rem; color: var(--ink); }
.vg-basis { font-size: 0.82rem; color: var(--ink-muted); margin: 0.85rem 0 0; }

/* Area table (reflows to stacked blocks on phones — no horizontal scroll) */
.vg-areas { width: 100%; border-collapse: collapse; margin: 0.25rem 0 0; font-size: 0.95rem; }
.vg-areas th, .vg-areas td { text-align: left; vertical-align: top; padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--rule); }
.vg-areas thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-muted); border-bottom: 2px solid var(--rule); }
.vg-areas th[scope="row"] { font-weight: 700; color: var(--navy-deep); width: 11rem; }
.vg-areas td.vg-why { color: var(--ink-soft); }
.vg-areas td.vg-gradecell { white-space: nowrap; }
@media (max-width: 640px) {
  .vg-areas thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vg-areas, .vg-areas tbody, .vg-areas tr, .vg-areas th, .vg-areas td { display: block; }
  .vg-areas tr { border: 1px solid var(--rule); border-radius: 8px; padding: 0.65rem 0.85rem;
    margin: 0 0 0.75rem; }
  .vg-areas th[scope="row"] { width: auto; font-size: 1.02rem; padding: 0 0 0.25rem; border: none; }
  .vg-areas td { border: none; padding: 0.2rem 0; }
  .vg-areas td.vg-gradecell::before { content: "Grade: "; font-weight: 700; color: var(--ink); }
  .vg-areas td.vg-why::before { content: "Why: "; font-weight: 700; color: var(--ink); display: block; }
}

/* Proposition card — badge visually separate from the explanation */
.vg-prop { background: var(--white); border: 1px solid var(--rule); border-radius: 12px;
  padding: clamp(1.1rem, 3vw, 1.75rem); margin: 0 0 1.5rem; box-shadow: var(--shadow-sm);
  scroll-margin-top: 1rem; }
.vg-prop h3 { font-size: clamp(1.2rem, 3vw, 1.55rem); margin: 0 0 0.8rem; }
.vg-take-row { display: flex; align-items: center; gap: 0.6rem 0.9rem; flex-wrap: wrap;
  margin: 0 0 1.1rem; padding: 0.8rem 0.95rem; background: var(--soft-gray); border-radius: 10px; }
.vg-take { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 800;
  font-size: 1.15rem; color: #fff; padding: 0.35em 0.95em; border-radius: 999px; }
.take-For { background: #1E7A46; } .take-Against { background: #B42318; } .take-No { background: #6B7280; }
.vg-take-note { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); font-weight: 700; }
.vg-stakes { font-weight: 700; font-size: 0.82rem; padding: 0.25em 0.65em; border-radius: 999px; }
.stakes-High { background: #FBE4E1; color: #B42318; }
.stakes-Medium { background: #FAEED6; color: #8A5A0B; }
.stakes-Low { background: var(--light-gray); color: var(--ink-soft); }
.vg-field { margin: 0 0 0.85rem; }
.vg-field:last-child { margin-bottom: 0; }
.vg-field .lbl { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 800; color: var(--gold-deep); margin: 0 0 0.2rem; }
.vg-field p { margin: 0; color: var(--ink); }

/* Hub quick-reference tables */
.vg-table { width: 100%; border-collapse: collapse; margin: 0.25rem 0 2rem; font-size: 0.95rem; }
.vg-table caption { text-align: left; font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; color: var(--navy-deep); margin: 0 0 0.6rem; }
.vg-table th, .vg-table td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--rule);
  vertical-align: top; }
.vg-table thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-muted); border-bottom: 2px solid var(--rule); }
.vg-table a { color: var(--navy); font-weight: 600; text-decoration: none; }
.vg-table a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .vg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vg-table, .vg-table tbody, .vg-table tr, .vg-table td { display: block; }
  .vg-table tr { border: 1px solid var(--rule); border-radius: 8px; padding: 0.55rem 0.8rem; margin: 0 0 0.6rem; }
  .vg-table td { border: none; padding: 0.15rem 0; }
  .vg-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
  .vg-table td.vg-nolabel::before { content: ""; }
}

/* Links to the three detail pages (hub) */
.vg-cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
  margin: 1.25rem 0 2rem; }
.vg-cards3 a { display: block; padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--rule);
  border-top: 3px solid var(--gold); border-radius: 10px; text-decoration: none; color: var(--navy-deep);
  box-shadow: var(--shadow-sm); }
.vg-cards3 a:hover { box-shadow: var(--shadow-md); }
.vg-cards3 strong { display: block; font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 0.2rem; }
.vg-cards3 span { color: var(--ink-soft); font-size: 0.9rem; }

/* Area definitions */
.vg-defs dt { font-weight: 700; color: var(--navy-deep); margin-top: 0.7rem; }
.vg-defs dd { margin: 0.1rem 0 0; color: var(--ink-soft); }

/* Download + official-text links */
.vg-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0 0; }

/* How to vote + registration CTA + mail ballot */
.vg-cta { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--gold);
  border-radius: 10px; padding: clamp(1.25rem, 3.5vw, 1.75rem); box-shadow: var(--shadow-sm);
  margin: 0 0 1.5rem; }
.vg-cta h3 { font-family: var(--font-display); color: var(--navy-deep); margin: 0 0 0.3rem;
  font-size: clamp(1.15rem, 2.8vw, 1.4rem); }
.vg-cta p { color: var(--ink-soft); margin: 0 0 0.9rem; max-width: 60ch; }
.vg-cta .btn { margin-top: 0.1rem; }
.vg-cta .url { font-size: 0.85rem; color: var(--ink-muted); margin: 0.9rem 0 0; }
.vg-howto h3 { font-family: var(--font-display); color: var(--navy-deep); margin: 1.4rem 0 0.4rem;
  font-size: clamp(1.1rem, 2.6vw, 1.35rem); }
.vg-howto ol { margin: 0.5rem 0 0.5rem 1.2rem; padding: 0; }
.vg-howto ol li { margin: 0 0 0.6rem; color: var(--ink); }
.vg-howto p { color: var(--ink); max-width: 68ch; }
.vg-mail { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: clamp(1rem, 3vw, 1.5rem); }
.vg-mail ul { margin: 0.4rem 0 0.75rem 1.15rem; }
.vg-mail li { margin: 0 0 0.35rem; color: var(--ink); }
.vg-county-links { display: flex; flex-wrap: wrap; gap: 0.6rem 0.75rem; margin-top: 0.75rem; }
.vg-note { font-size: 0.88rem; color: var(--ink-muted); margin: 0.75rem 0 0; }

/* Hub: key dates as a 2x2 grid of cards (stacked on mobile) */
.vg-datecards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 0 0 0.6rem; }
.vg-datecard { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.vg-datecard .dc-label { font-family: var(--font-body); font-weight: 700; color: var(--navy-deep);
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; }
.vg-datecard .dc-date { color: var(--ink); font-size: 1.02rem; }
@media (max-width: 640px) { .vg-datecards { grid-template-columns: 1fr; } }

/* Hub: jump-link button row */
.vg-jump { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 2rem; }

/* Hub: how-to-vote checklist */
.vg-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.vg-checklist li { position: relative; padding-left: 1.8rem; color: var(--ink); max-width: 68ch; }
.vg-checklist li::before { content: "\2713"; position: absolute; left: 0; top: -0.05rem;
  font-weight: 800; color: var(--gold-deep); }
.vg-checklist .btn { margin-top: 0.5rem; }

/* Hub: about this guide (small print) */
.vg-about { border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.vg-about h2 { font-size: 1.1rem; }
.vg-about p { font-size: 0.9rem; color: var(--ink-muted); max-width: 72ch; }
.vg-downloads { margin-top: 0.75rem; }

/* Print: drop nav/footer so the hub prints as a clean reference */
@media print {
  .site-header, .site-footer, .vg-subnav, .vg-crumbs, .nav-toggle, .vg-print-hide { display: none !important; }
  body { background: #fff; }
  .vg { padding: 0; }
  .vg-candidate, .vg-prop, .vg-cards3 a, .vg-dates li, .vg-datecard { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .vg-jump { display: none !important; }
  a { color: inherit; text-decoration: none; }
  .vg-badge, .vg-take { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
