/* =========================================================
   SVMS Meals — site stylesheet
   ---------------------------------------------------------
   1. Tokens
   2. Base
   3. Layout helpers
   4. Header & navigation
   5. Buttons, labels, notices
   6. Homepage
   7. Interior pages
   8. Petition pages & signature form
   9. Legal pages
   10. Footer
   11. Responsive
   ========================================================= */

/* 1. Tokens ------------------------------------------------ */
:root {
  --ink: #1c1b1f;          /* primary text                   */
  --ink-2: #47454c;        /* secondary text                 */
  --ink-3: #706d75;        /* tertiary text, captions        */
  --paper: #ffffff;        /* page background                */
  --paper-2: #fdf3f3;      /* alternate section background   */
  --sheet: #ffffff;        /* raised surfaces (form panel)   */
  --rule: #efe4e4;         /* hairlines                      */
  --rule-strong: #dcc8c8;
  --red: #d7141c;          /* brand red (matches the logo)   */
  --red-deep: #a80f16;     /* red for small text, hovers     */
  --red-dark: #7a0b10;     /* darkest red: footer, Round 3   */
  --red-soft: #f7c5c7;     /* light red: review periods      */
  --on-red: #ffe3e4;       /* muted text on red surfaces     */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: 32px;
  --header-h: 72px;
}

/* 2. Base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "opsz" 72;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.01em; font-variation-settings: "opsz" 36; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red-deep); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

::selection { background: var(--red-soft); color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -100px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 100; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* 3. Layout helpers --------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section--alt { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--alt + .section { border-top: 0; }
.section--tight { padding: 64px 0; }

/* Section heading: label column on the left, heading + intro on the right */
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 48px;
  margin-bottom: 56px;
}
.section-head .label { padding-top: 0.55em; }
.section-head h2 { max-width: 18ch; }
.section-head .intro { grid-column: 2; margin-top: 18px; max-width: 62ch; color: var(--ink-2); font-size: 1.125rem; }

.label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.label--muted { color: var(--ink-3); }

.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink-2); max-width: 54ch; }

/* 4. Header & navigation ---------------------------------- */
.topbar {
  background: var(--red);
  color: var(--on-red);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar a { color: #fff; }
.topbar .status-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; margin-right: 8px; vertical-align: 1px;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(140%) blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; object-fit: cover; border-radius: 50%; border: 1px solid var(--rule-strong); background: #fff; }
.brand-name {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 650; letter-spacing: -0.02em;
  line-height: 1; font-variation-settings: "opsz" 48;
}
.brand-name em { font-style: italic; font-weight: 500; color: var(--red); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; text-decoration: none;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-2);
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.nav .btn { padding: 10px 18px; font-size: 0.875rem; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--ink); color: var(--ink);
  font: 600 0.875rem/1 var(--sans);
  padding: 10px 14px; cursor: pointer; gap: 10px; align-items: center;
}
.nav-toggle-bars { position: relative; width: 16px; height: 10px; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .2s;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }

/* 5. Buttons, labels, notices ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  border: 2px solid var(--red);
  background: var(--red); color: #fff;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn--accent { background: var(--red); border-color: var(--red); color: #fff; }
.btn--accent:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--ghost { background: transparent; color: var(--red-deep); }
.btn--ghost:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--red);
  text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font: 700 0.6875rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 9px; border: 1px solid currentColor; color: var(--ink-2); white-space: nowrap;
}
.tag--closed::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* Closed-petition banner */
.closed-banner {
  background: var(--red-deep); color: #fff;
}
.closed-banner .wrap {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding-top: 20px; padding-bottom: 20px;
}
.closed-banner .badge {
  font: 700 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  background: #fff; color: var(--red-deep); padding: 8px 10px;
}
.closed-banner p { margin: 0; font-size: 1.0625rem; }
.closed-banner strong { font-weight: 700; }
.closed-banner a { color: #fff; font-weight: 600; white-space: nowrap; }

/* Inline notice used inside content */
.notice {
  border-left: 4px solid var(--red);
  background: var(--paper-2);
  padding: 18px 22px;
  font-size: 0.9875rem;
  color: var(--ink-2);
}
.notice strong { color: var(--ink); }

/* 6. Homepage --------------------------------------------- */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.hero .label { margin-bottom: 26px; display: block; }
.hero h1 {
  font-size: clamp(2.75rem, 5.6vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
  font-weight: 600;
}
.hero h1 .line { display: block; }
.hero h1 em { font-style: italic; font-weight: 450; color: var(--red); }
.hero .lead { margin-top: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }

/* Status board */
.board { border: 2px solid var(--red); background: var(--sheet); }
.board-head {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--red); color: #fff;
  padding: 12px 18px; font: 700 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
}
.board-head span:last-child { color: var(--on-red); }
.board dl { margin: 0; }
.board-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
  padding: 16px 18px; border-top: 1px solid var(--rule);
}
.board-row:first-child { border-top: 0; }
.board dt { font-size: 0.875rem; color: var(--ink-3); }
.board dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.board-row--feature dd { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.board-foot { border-top: 1px solid var(--rule); padding: 14px 18px; font-size: 0.8125rem; color: var(--ink-3); }

/* Overview: purpose + steps */
.overview-grid { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 48px; }
.overview-grid .col-text { font-size: 1.125rem; color: var(--ink-2); }
.overview-grid .col-text p:first-child { color: var(--ink); font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; letter-spacing: -0.01em; font-variation-settings: "opsz" 36; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; padding: 20px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--serif); font-size: 1.125rem; font-weight: 600; color: var(--red);
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; }
.steps p { color: var(--ink-2); font-size: 0.9875rem; margin: 0; }

/* Petition index (list rows, not cards) */
.petition-index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.petition-index li { border-bottom: 1px solid var(--rule-strong); }
.petition-index a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1.1fr) minmax(0, 1.4fr) auto 32px;
  gap: 32px; align-items: center;
  padding: 28px 8px;
  text-decoration: none; color: var(--ink);
  transition: background .15s, padding .15s;
}
.petition-index a:hover { background: var(--sheet); color: var(--ink); }
.petition-index .num {
  font-family: var(--serif); font-size: 2.75rem; font-weight: 500; line-height: 1;
  color: var(--red); font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 144;
}
.petition-index h3 { font-size: 1.625rem; }
.petition-index p { margin: 0; color: var(--ink-2); font-size: 0.9875rem; }
.petition-index .go { font-size: 1.375rem; transition: transform .15s; justify-self: end; }
.petition-index a:hover .go { transform: translateX(4px); color: var(--red); }

/* Timeline */
.track { margin-bottom: 40px; }
.track-bar { display: flex; height: 56px; border: 2px solid var(--ink); background: var(--sheet); }
.track-seg { position: relative; border-left: 1px solid var(--ink); }
.track-seg:first-child { border-left: 0; }
.track-seg--round { background: var(--red); }
.track-seg--round.r3 { background: var(--red-dark); }
.track-seg--review { background: var(--red-soft); }
.track-seg--gap {
  background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(215,20,28,.18) 6px 7px);
}
.track-seg span {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 0 12px;
  color: #fff; font: 700 0.75rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; overflow: hidden;
}
.track-seg--review span, .track-seg--gap span { color: var(--ink); justify-content: center; padding: 0 2px; }
.track-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.track-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; font-size: 0.875rem; color: var(--ink-2); }
.track-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 1px solid var(--ink); }

.schedule { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.schedule th, .schedule td { text-align: left; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--rule-strong); vertical-align: top; }
.schedule thead th { font: 700 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); border-bottom: 2px solid var(--ink); padding-top: 0; }
.schedule tbody th { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; width: 26%; }
.schedule td.dates { font-weight: 600; width: 34%; }
.schedule td.note { color: var(--ink-2); font-size: 0.9375rem; }
.schedule tr.is-review th { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink-2); padding-left: 24px; }
.schedule tr.is-break td, .schedule tr.is-break th { color: var(--ink-3); font-style: italic; font-size: 0.9375rem; padding-top: 12px; padding-bottom: 12px; font-family: var(--sans); font-weight: 400; }
.swatch { display: inline-block; width: 10px; height: 10px; margin-right: 10px; vertical-align: 1px; border: 1px solid var(--ink); }
.swatch--round { background: var(--red); }
.swatch--r3 { background: var(--red-dark); }
.swatch--review { background: var(--red-soft); }

/* Eligibility columns */
.eligibility { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.eligibility > div { padding: 32px 32px 8px 0; }
.eligibility > div + div { padding-left: 32px; border-left: 1px solid var(--rule-strong); }
.eligibility h3 { margin-bottom: 12px; }
.eligibility p { color: var(--ink-2); font-size: 0.9875rem; }
.eligibility ul { list-style: none; margin: 20px 0 0; padding: 0; font-size: 0.9375rem; }
.eligibility li { padding: 9px 0; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; }
.eligibility li span { color: var(--ink-3); font-size: 0.8125rem; }
.eligibility .list-label { margin-top: 24px; display: block; }

/* Results table */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ink); background: var(--sheet); }
.results > div { padding: 28px; }
.results > div + div { border-left: 1px solid var(--rule-strong); }
.results .round { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; margin-bottom: 4px; }
.results .when { font-size: 0.875rem; color: var(--ink-3); margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.results .verdict { font-weight: 700; display: flex; gap: 10px; align-items: baseline; }
.results .verdict::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--red); transform: translateY(-1px); }
.results .verdict.no::before { background: transparent; border: 2px solid var(--ink-3); }
.results p.detail { margin-top: 8px; font-size: 0.9375rem; color: var(--ink-2); }

/* Closing call to action */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.cta-band h2 { max-width: 20ch; }
.cta-band p { margin-top: 14px; font-size: 1.125rem; color: var(--on-red); max-width: 52ch; }
.cta-band .btn { background: #fff; color: var(--red-deep); border-color: #fff; }
.cta-band .btn:hover { background: var(--red-dark); color: #fff; border-color: var(--red-dark); }

/* 7. Interior pages --------------------------------------- */
.page-head { padding: 72px 0 64px; border-bottom: 1px solid var(--rule); }
.page-head .label { display: block; margin-bottom: 20px; }
.page-head h1 { max-width: 16ch; }
.page-head .lead { margin-top: 24px; }

.crumbs { font-size: 0.875rem; color: var(--ink-3); margin-bottom: 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule-strong); }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink); }

.prose { max-width: 68ch; color: var(--ink-2); font-size: 1.0625rem; }
.prose h2 { font-size: 1.75rem; color: var(--ink); margin: 2.2em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); margin: 1.8em 0 0.5em; font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--red); }
.prose strong { color: var(--ink); }

/* Two-column content block: sticky label left, content right */
.split { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.split + .split { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--rule); }
.split > .label { padding-top: 0.6em; }
.split h2 { margin-bottom: 20px; max-width: 20ch; }

/* Numbered list of purposes (About) */
.purpose-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.purpose-list li { padding: 28px 32px 28px 0; border-bottom: 1px solid var(--rule-strong); }
.purpose-list li:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--rule-strong); }
.purpose-list .n { font-family: var(--serif); color: var(--red); font-size: 1.125rem; font-weight: 600; display: block; margin-bottom: 10px; }
.purpose-list h3 { margin-bottom: 8px; }
.purpose-list p { color: var(--ink-2); font-size: 0.9875rem; margin: 0; }

.statement {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.3;
  letter-spacing: -0.015em; font-weight: 500; max-width: 30ch; font-variation-settings: "opsz" 72;
}
.statement em { color: var(--red); }

.callout-dark { background: var(--red); color: #fff; padding: 40px; }
.callout-dark h3 { margin-bottom: 12px; }
.callout-dark p { color: var(--on-red); }
.callout-dark a { color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.contact-grid > div { padding: 32px 32px 32px 0; }
.contact-grid > div + div { padding-left: 32px; border-left: 1px solid var(--rule-strong); }
.contact-grid h3 { margin-bottom: 10px; }
.contact-grid p { color: var(--ink-2); font-size: 0.9875rem; }
.contact-grid--four { grid-template-columns: repeat(2, 1fr); }
.contact-grid--four > div,
.contact-grid--four > div + div { padding: 32px 32px 32px 0; border-left: 0; border-bottom: 1px solid var(--rule-strong); }
.contact-grid--four > div:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--rule-strong); }
.contact-email {
  display: inline-block; margin-top: 16px; overflow-wrap: anywhere;
  font-weight: 600; font-size: 1.0625rem; color: var(--red-deep);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em;
}
.contact-email:hover { color: var(--red); }
.sig-done .edit-note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule-strong); font-size: 0.9375rem; overflow-wrap: anywhere; }
.sig-done .edit-note a { color: var(--red-deep); font-weight: 600; }

.placeholder {
  display: inline-block; margin-top: 16px;
  font: 500 0.875rem/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace;
  padding: 10px 12px; border: 1px dashed var(--rule-strong); background: var(--sheet); color: var(--ink-3);
}

/* Petitions overview page — larger rows */
.petition-index--full a { grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.5fr) auto 32px; padding: 36px 8px; }

/* 8. Petition pages & signature form ---------------------- */
.petition-head { padding: 64px 0 56px; border-bottom: 1px solid var(--rule); }
.petition-head-grid { display: grid; grid-template-columns: auto 1fr; gap: 0 40px; align-items: start; }
.petition-head .big-num {
  font-family: var(--serif); font-size: clamp(4.5rem, 10vw, 8.5rem); line-height: 0.85; font-weight: 500;
  color: var(--red); font-variation-settings: "opsz" 144; letter-spacing: -0.04em;
}
.petition-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 18px; }
.petition-head h1 { max-width: 14ch; }
.petition-head .lead { margin-top: 20px; }

.petition-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 72px; align-items: start; padding-top: 72px; padding-bottom: 96px; }
.jump-link { display: inline-block; margin-top: 24px; }
.petition-body section + section { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--rule); }
.petition-body section.pager-wrap { border-top: 0; padding-top: 0; }
.petition-body h2 { font-size: 1.75rem; margin-bottom: 16px; }
.petition-body .prose { max-width: none; }

.who-list { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--rule-strong); }
.who-list li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-strong); font-size: 0.9875rem; }
.who-list strong { color: var(--ink); }
.who-list span { color: var(--ink-2); }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.pager a { display: block; padding: 28px 0; text-decoration: none; }
.pager a + a { text-align: right; border-left: 1px solid var(--rule-strong); padding-left: 24px; }
.pager .label { display: block; margin-bottom: 8px; }
.pager .t { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; }
.pager a:hover .t { color: var(--red-deep); }

/* Signature panel */
.sig-panel { position: sticky; top: calc(var(--header-h) + 24px); background: var(--sheet); border: 2px solid var(--red); }
.sig-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--rule-strong); }
.sig-panel-head h2 { font-size: 1.375rem; }
.sig-panel-head .tag { color: var(--red-deep); }
.sig-preview-note { margin: 0; padding: 14px 24px; background: var(--paper-2); border-bottom: 1px solid var(--rule-strong); font-size: 0.875rem; color: var(--ink-2); }
.sig-preview-note strong { color: var(--ink); }

.sig-form { padding: 24px; }
.field { margin-bottom: 20px; }
.field[hidden] { display: none; }
.field > label, .field > .field-label, fieldset.field > legend {
  display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 7px; color: var(--ink); padding: 0;
}
.req, .opt { font-weight: 500; font-size: 0.8125rem; margin-left: 6px; }
.req { color: var(--red-deep); }
.opt { color: var(--ink-3); }
.hint { font-size: 0.8125rem; color: var(--ink-3); margin-top: 6px; line-height: 1.45; }

fieldset.field { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }

.sig-form input[type="text"],
.sig-form input[type="email"],
.sig-form input[type="tel"],
.sig-form select,
.sig-form textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.sig-form textarea { min-height: 110px; resize: vertical; }
.sig-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; cursor: pointer;
}
.sig-form input:hover, .sig-form select:hover, .sig-form textarea:hover { border-color: var(--ink-3); }
.sig-form input:focus, .sig-form select:focus, .sig-form textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(215, 20, 28, .18);
}
.sig-form input.is-invalid { border-color: var(--red); }
.field-error { font-size: 0.8125rem; color: var(--red-deep); margin-top: 6px; }
.field-error[hidden] { display: none; }

.field--type select { font-weight: 600; border: 2px solid var(--red); }

/* Segmented grade control */
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule-strong); background: #fff; }
.segmented label { position: relative; cursor: pointer; }
.segmented label + label { border-left: 1px solid var(--rule-strong); }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 12px 8px; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); transition: background .15s, color .15s; }
.segmented input:checked + span { background: var(--red); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: -3px; }

/* Checkbox rows */
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.9375rem; cursor: pointer; padding: 6px 0; }
.check input {
  -webkit-appearance: none; appearance: none; margin: 1px 0 0; width: 20px; height: 20px;
  border: 1.5px solid var(--ink); background: #fff; cursor: pointer; display: grid; place-content: center;
}
.check input::after {
  content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px); opacity: 0;
}
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.check .this { font-size: 0.75rem; color: var(--ink-3); margin-left: 6px; }

.petition-checks { border: 1px solid var(--rule-strong); background: #fff; padding: 8px 14px; }
.petition-checks .check + .check { border-top: 1px solid var(--rule); }
.petition-checks .check { padding: 10px 0; }

.consent { border-top: 1px solid var(--rule-strong); padding-top: 20px; margin: 4px 0 20px; }
.consent .check strong { font-weight: 600; }
.consent-text {
  margin: 8px 0 0 34px; padding: 12px 14px;
  background: var(--paper); border-left: 2px solid var(--rule-strong);
  font-family: var(--serif); font-size: 0.8125rem; line-height: 1.55; color: var(--ink-2);
  font-variation-settings: "opsz" 14;
}
.consent .hint { margin-left: 34px; }

.agree { border-top: 1px solid var(--rule-strong); padding-top: 20px; margin-top: 4px; }
.agree a { font-weight: 600; }

.type-reveal { border-top: 1px dashed var(--rule-strong); padding-top: 20px; margin-top: 4px; }
.type-reveal[hidden] { display: none; }
.type-empty { font-size: 0.875rem; color: var(--ink-3); padding: 16px; border: 1px dashed var(--rule-strong); text-align: center; margin-bottom: 20px; }
.type-empty[hidden] { display: none; }

/* Readiness meter */
.readiness { margin: 24px 0 16px; }
.readiness-top { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--ink-2); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.readiness-top strong { color: var(--ink); }
.readiness-bar { height: 6px; background: var(--paper-2); border: 1px solid var(--rule-strong); }
.readiness-bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .25s ease; }
.readiness-msg { font-size: 0.875rem; color: var(--ink-2); margin-top: 10px; min-height: 1.45em; }
.readiness.is-complete .readiness-msg { color: var(--red-dark); font-weight: 600; }

.submit-row button[disabled] {
  width: 100%; justify-content: center;
  background: var(--paper-2); color: var(--ink-3); border: 2px dashed var(--rule-strong); cursor: not-allowed;
}
.submit-row button[disabled]:hover { background: var(--paper-2); color: var(--ink-3); }
.submit-row .hint { text-align: center; margin-top: 10px; }
.submit-row .btn { width: 100%; justify-content: center; }
.submit-row .btn.is-busy { opacity: .75; cursor: progress; }

/* Open-round states (Round 1 build) */
.tag--open { background: var(--red); border-color: var(--red); color: #fff; }
.tag--open::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.form-error {
  margin: 0 0 14px; padding: 12px 14px; font-size: 0.9375rem; line-height: 1.45;
  background: var(--paper-2); border-left: 4px solid var(--red); color: var(--red-deep); font-weight: 600;
}
.form-error[hidden] { display: none; }

.check.is-signed { cursor: not-allowed; color: var(--ink-3); }
.check.is-signed input { border-color: var(--rule-strong); background: var(--paper-2); cursor: not-allowed; }
.signed-tag {
  display: inline-block; margin-left: 8px; padding: 2px 6px; vertical-align: 1px;
  font: 700 0.625rem/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red-deep); border: 1px solid var(--red-soft); background: var(--paper-2);
}

.sig-done { padding: 28px 24px 32px; }
.sig-done:focus { outline: none; }
.sig-done .label { display: block; margin-bottom: 14px; }
.sig-done h3 { font-size: 1.75rem; margin-bottom: 12px; }
.sig-done p { color: var(--ink-2); font-size: 0.9875rem; }
.sig-done ul { list-style: none; margin: 14px 0 20px; padding: 0; border-top: 1px solid var(--rule-strong); }
.sig-done li { padding: 10px 0; border-bottom: 1px solid var(--rule-strong); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.sig-done li::before { content: "\2713"; color: var(--red); font-weight: 700; }
.sig-done .btn { margin-top: 24px; }
.demo-note {
  margin-top: 20px; padding: 12px 14px; font-size: 0.8125rem; line-height: 1.5;
  border: 1px dashed var(--red); background: var(--paper-2); color: var(--red-deep);
}
.lock { width: 14px; height: 14px; }

/* 9. Legal pages ------------------------------------------ */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; padding: 64px 0 96px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.875rem; }
.toc .label { display: block; margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--rule); }
.toc a { display: grid; grid-template-columns: 28px 1fr; padding: 8px 0; text-decoration: none; color: var(--ink-2); }
.toc a::before { content: counter(toc); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--red-deep); }

.legal { max-width: 72ch; counter-reset: sec; }
.legal > section { counter-increment: sec; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--rule); }
.legal > section:first-of-type { margin-top: 32px; }
.legal h2 { font-size: 1.5rem; margin-bottom: 16px; display: grid; grid-template-columns: 44px 1fr; }
.legal h2::before { content: counter(sec) "."; color: var(--red); font-variant-numeric: tabular-nums; }
.legal h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 24px 0 8px; letter-spacing: 0; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.35em; }
.legal li::marker { color: var(--red); }
.legal strong { color: var(--ink); }
.legal .doc-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.875rem; color: var(--ink-3); padding-bottom: 20px; border-bottom: 2px solid var(--ink); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 8px 0 16px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule-strong); }
.data-table thead th { font: 700 0.6875rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 2px solid var(--ink); }
.data-table td { color: var(--ink-2); }
.data-table td:first-child { color: var(--ink); font-weight: 600; width: 34%; }

/* 10. Footer ---------------------------------------------- */
.site-footer { background: var(--red-dark); color: var(--on-red); font-size: 0.9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red-soft); text-decoration: underline; }
.footer-main { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name em { color: var(--red-soft); }
.footer-brand .brand-mark { border-color: transparent; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-col h2 {
  font: 700 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: #f0a6a9; margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col p { margin-bottom: 10px; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.16); }
.footer-disclaimer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding-top: 24px; padding-bottom: 28px; font-size: 0.8125rem; color: #f0b8ba; }
.footer-disclaimer p { margin: 0; max-width: 90ch; }

/* 11. Responsive ------------------------------------------ */
@media (max-width: 1040px) {
  .nav { gap: 12px; }
  .nav a { padding: 8px 8px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .board { max-width: 560px; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .overview-grid > .label { grid-column: 1 / -1; }
  .petition-index a, .petition-index--full a { grid-template-columns: 72px minmax(0, 1fr) auto 28px; }
  .petition-index p { grid-column: 2 / 3; grid-row: 2; }
  .petition-index .tag { grid-row: 1; }
  .petition-layout { grid-template-columns: 1fr; gap: 56px; }
  .sig-panel { position: static; max-width: 620px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--red);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--rule); }
  .nav a { padding: 16px 0; font-size: 1.0625rem; border-bottom: 0; }
  .nav a[aria-current="page"] { color: var(--red-deep); border-bottom: 0; }
  .nav .btn { margin-top: 20px; justify-content: center; padding: 15px; font-size: 1rem; }

  .section { padding: 72px 0; }
  .section-head, .split { grid-template-columns: 1fr; gap: 14px; }
  .section-head .intro { grid-column: 1; }
  .section-head { margin-bottom: 40px; }
  .split + .split { margin-top: 56px; padding-top: 56px; }
  .eligibility, .contact-grid { grid-template-columns: 1fr; }
  .eligibility > div, .eligibility > div + div,
  .contact-grid > div, .contact-grid > div + div { padding: 28px 0; border-left: 0; }
  .eligibility > div + div, .contact-grid > div + div { border-top: 1px solid var(--rule-strong); }
  .contact-grid--four { grid-template-columns: 1fr; }
  .contact-grid--four > div, .contact-grid--four > div:nth-child(even) { padding: 28px 0; border-left: 0; border-bottom: 0; }
  .results { grid-template-columns: 1fr; }
  .results > div + div { border-left: 0; border-top: 1px solid var(--rule-strong); }
  .purpose-list { grid-template-columns: 1fr; }
  .purpose-list li, .purpose-list li:nth-child(even) { padding: 24px 0; border-left: 0; }
  .cta-band .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; padding-bottom: 56px; }
  .closed-banner .wrap { grid-template-columns: auto 1fr; }
  .closed-banner .wrap > a { grid-column: 2; }
  .legal-layout { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .toc { position: static; }
  .topbar .wrap > span:last-child { display: none; }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.3rem; }
  .hero { padding: 56px 0 64px; }
  .hero .lead { font-size: 1.125rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .overview-grid { grid-template-columns: 1fr; gap: 32px; }
  .petition-index a, .petition-index--full a { grid-template-columns: 52px minmax(0, 1fr) 20px; gap: 6px 14px; padding: 22px 0; }
  .petition-index .num { font-size: 2rem; grid-row: span 3; }
  .petition-index h3 { font-size: 1.375rem; grid-column: 2; }
  .petition-index p { grid-column: 2; grid-row: auto; }
  .petition-index .tag { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 6px; }
  .petition-index .go { grid-column: 3; grid-row: 1; }
  .track-bar { height: 40px; }
  .track-seg span { display: none; }
  .schedule thead { display: none; }
  .schedule, .schedule tbody, .schedule tr, .schedule th, .schedule td { display: block; width: auto !important; }
  .schedule tr { padding: 18px 0; border-bottom: 1px solid var(--rule-strong); }
  .schedule th, .schedule td { border: 0; padding: 2px 0; }
  .schedule tr.is-review th { padding-left: 0; }
  .schedule tr.is-break { padding: 12px 0; }
  .petition-head-grid { grid-template-columns: 1fr; gap: 16px; }
  .petition-layout { padding-top: 48px; padding-bottom: 72px; }
  .who-list li { grid-template-columns: 1fr; gap: 2px; }
  .sig-form { padding: 20px 16px; }
  .sig-panel-head, .sig-preview-note { padding-left: 16px; padding-right: 16px; }
  .pager { grid-template-columns: 1fr; }
  .pager a + a { text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-strong); }
  .page-head { padding: 48px 0 44px; }
  .callout-dark { padding: 28px 20px; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
  .footer-disclaimer .wrap { grid-template-columns: 1fr; }
  .data-table td:first-child { width: 42%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .site-header, .site-footer, .closed-banner, .sig-panel, .toc, .cta-band { display: none !important; }
  body { background: #fff; }
  .legal-layout { display: block; }
}
