/* ==========================================================================
   Yes for Kids in Oroville City Schools — Measure Q
   yesonqfororovillekids.com
   Palette derived from the campaign logo.
   ========================================================================== */

:root {
  /* Brand */
  --purple:        #5A2563;
  --purple-deep:   #3E1846;
  --purple-dark:   #2A0F31;
  --purple-mid:    #743A7E;
  --purple-tint:   #F4EEF6;
  --green:         #7EBD5A;
  --green-bright:  #8FD16A;
  --green-deep:    #4C7A34;   /* AA-compliant on white for small text */
  --green-tint:    #F0F7EA;

  --ink:           #241026;
  --body:          #433546;
  --muted:         #6E5F71;
  --line:          #E4DBE7;
  --white:         #FFFFFF;
  --shell:         #FBF9FC;

  /* Type */
  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --text: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(42, 15, 49, .07);
  --shadow:    0 10px 30px rgba(42, 15, 49, .10);
  --shadow-lg: 0 24px 60px rgba(42, 15, 49, .18);

  --header-h: 92px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
/* <picture> must fill its container so percentage heights on the inner
   <img> resolve against the intended box, not the picture element. */
.hero__media picture, .page-hero__media picture, .figure picture { width: 100%; height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  font-family: var(--text);
  font-size: clamp(1.0625rem, .35vw + 1rem, 1.1875rem);
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  color: var(--purple-deep);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.018em;
  text-wrap: balance;
}

h1, .h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2, .h2 { font-size: clamp(1.95rem, 3.9vw, 3.05rem); }
h3, .h3 { font-size: clamp(1.35rem, 1.7vw, 1.7rem); line-height: 1.15; }
h4      { font-size: 1.15rem; line-height: 1.25; }

p + p, p + ul, ul + p, p + h3, ul + h3 { margin-top: 1.1em; }
h2 + p, h2 + ul, h3 + p, h3 + ul { margin-top: .85em; }

a { color: var(--purple); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: .9rem;
}
.eyebrow--on-dark { color: var(--green-bright); }

.lede { font-size: 1.2em; line-height: 1.55; color: var(--ink); }

/* Headings default to purple, so any dark-ground section must restate white —
   otherwise a bare <h2> renders purple-on-purple. */
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4,
.section--purple h1, .section--purple h2, .section--purple h3, .section--purple h4,
.section--purple-grad h1, .section--purple-grad h2,
.section--purple-grad h3, .section--purple-grad h4,
.cta-band h1, .cta-band h2, .cta-band h3, .cta-band h4,
.page-hero h1, .page-hero h2, .hero h1 { color: var(--white); }

.on-dark p, .on-dark li { color: rgba(255,255,255,.90); }
.section--purple p, .section--purple li,
.section--purple-grad p, .section--purple-grad li { color: rgba(255,255,255,.90); }
.on-dark a,
.section--purple a:not(.btn), .section--purple-grad a:not(.btn),
.cta-band a:not(.btn), .page-hero a:not(.btn), .hero a:not(.btn) {
  color: var(--green-bright);
}
.on-dark a:hover,
.section--purple a:not(.btn):hover, .section--purple-grad a:not(.btn):hover,
.cta-band a:not(.btn):hover { color: #fff; }

mark, .hl {
  background: linear-gradient(transparent 58%, rgba(126,189,90,.55) 58%);
  color: inherit;
  padding: 0 .08em;
}

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

section { position: relative; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--purple { background: var(--purple-deep); color: #fff; overflow: hidden; }
.section--purple-grad { background: linear-gradient(160deg, var(--purple) 0%, var(--purple-deep) 55%, var(--purple-dark) 100%); color: #fff; overflow: hidden; }
.section--tint { background: var(--shell); }
.section--green-tint { background: var(--green-tint); }

.stack > * + * { margin-top: 1.15em; }
.center { text-align: center; }
.measure { max-width: 68ch; }
.center .measure { margin-inline: auto; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--white); color: var(--purple-deep);
  padding: .75rem 1.25rem; border-radius: 0 0 10px 10px;
  font-weight: 700; box-shadow: var(--shadow);
  transition: top .2s var(--ease);
}
.skip:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--purple :focus-visible,
.section--purple-grad :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--green-bright); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--purple-deep);
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 26px rgba(42,15,49,.34); }

.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  transition: min-height .35s var(--ease);
}
.site-header.is-stuck .header-bar { min-height: 74px; }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img {
  width: auto; height: 60px;
  border-radius: 3px;
  transition: height .35s var(--ease);
}
.site-header.is-stuck .brand img { height: 48px; }

/* --- Nav --- */
.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  color: rgba(255,255,255,.86);
  text-decoration: none;
  padding: .6rem .78rem;
  border-radius: 8px;
  position: relative;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav a::after {
  content: ''; position: absolute;
  left: .78rem; right: .78rem; bottom: .32rem; height: 2.5px;
  background: var(--green-bright); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: #fff; }

.nav .btn { margin-left: .5rem; }
.nav .btn::after { display: none; }

/* --- Mobile nav --- */
.nav-toggle {
  display: none;
  background: transparent; border: 2px solid rgba(255,255,255,.32);
  color: #fff; border-radius: 10px;
  padding: .55rem .8rem; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: .9rem;
  align-items: center; gap: .55rem;
}
.nav-toggle:hover { border-color: var(--green-bright); }
.nav-toggle .bars { display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: background .2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: #fff;
  transition: transform .3s var(--ease);
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--purple-deep);
    padding: 1rem var(--gutter) 2rem;
    border-top: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 22px 40px rgba(42,15,49,.4);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: transform .34s var(--ease), opacity .28s, visibility .28s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { font-size: 1.12rem; padding: .85rem .4rem; border-bottom: 1px solid rgba(255,255,255,.10); border-radius: 0; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--green-bright); }
  .nav .btn { margin: 1.1rem 0 0; justify-content: center; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #16220E;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: .005em;
  padding: .92rem 1.7rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: none; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 5px 16px rgba(94,150,64,.34);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .25s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--green-bright);
  transform: translateY(101%);
  transition: transform .38s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(94,150,64,.42); color: var(--btn-fg); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(-1px); }

.btn--purple { --btn-bg: var(--purple); --btn-fg: #fff; box-shadow: 0 5px 16px rgba(90,37,99,.32); }
.btn--purple::before { background: var(--purple-mid); }
.btn--purple:hover { box-shadow: 0 12px 26px rgba(90,37,99,.4); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: #fff;
  border: 2px solid rgba(255,255,255,.5);
  box-shadow: none;
}
.btn--ghost::before { background: rgba(255,255,255,.14); }
.btn--ghost:hover { border-color: var(--green-bright); box-shadow: none; }

.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--purple-deep);
  border: 2px solid var(--purple); box-shadow: none;
}
.btn--outline::before { background: var(--purple-tint); }
.btn--outline:hover { box-shadow: none; }

/* Inline arrow glyphs have no intrinsic size — constrain them to the text. */
.btn svg, .fake-btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }

.btn--lg { font-size: 1.14rem; padding: 1.08rem 2.15rem; }
.btn--sm { font-size: .92rem; padding: .62rem 1.15rem; }

.btn[aria-disabled="true"],
.btn--soon {
  --btn-bg: #CFC6D3; --btn-fg: #6A5C6E;
  box-shadow: none; cursor: default; pointer-events: none;
}
.btn--soon::before { display: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.center .btn-row, .btn-row--center { justify-content: center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  background: var(--purple-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: -8% 0 -8% 0; z-index: -2; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(102deg, rgba(42,15,49,.96) 0%, rgba(62,24,70,.90) 42%, rgba(62,24,70,.62) 68%, rgba(42,15,49,.55) 100%);
}
@media (max-width: 800px) {
  .hero::after { background: linear-gradient(180deg, rgba(42,15,49,.92) 0%, rgba(62,24,70,.88) 60%, rgba(42,15,49,.94) 100%); }
}

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 {
  color: #fff;
  font-size: clamp(2.15rem, 4.4vw, 3.5rem);
  text-shadow: 0 2px 24px rgba(20,6,24,.42);
}
.hero h1 .yes { color: var(--green-bright); }
.hero__sub { color: rgba(255,255,255,.93); font-size: clamp(1.1rem, 1.5vw, 1.32rem); max-width: 40ch; margin-top: 1.4rem; }
.hero .btn-row { margin-top: 2.1rem; }

.hero__logo {
  background: #fff; padding: 14px; border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.6deg);
  max-width: 430px; margin-left: auto;
}
/* The SVG's intrinsic size is small, so max-width alone would not stretch it
   to fill the card — set the width explicitly. */
.hero__logo img { width: 100%; height: auto; border-radius: 3px; }
@media (max-width: 900px) { .hero__logo { margin: 0 auto; max-width: 330px; } }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  z-index: 3; color: rgba(255,255,255,.66);
  font-family: var(--display); font-size: .72rem; font-weight: 700;
  letter-spacing: .19em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  text-decoration: none;
}
.scroll-cue:hover { color: #fff; }
.scroll-cue span.line { display: block; width: 1.5px; height: 34px; background: linear-gradient(var(--green-bright), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue span.line { animation: cue 2.1s var(--ease) infinite; transform-origin: top; }
}
@keyframes cue { 0%,100% { transform: scaleY(.35); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 800px) { .scroll-cue { display: none; } }

/* Page hero (interior pages) */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--purple-deep);
  padding-block: clamp(3.4rem, 8vw, 6rem);
}
.page-hero__media { position: absolute; inset: -10% 0; z-index: -2; will-change: transform; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(42,15,49,.95) 0%, rgba(62,24,70,.88) 55%, rgba(62,24,70,.70) 100%);
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.7rem); }
.page-hero p { color: rgba(255,255,255,.9); max-width: 62ch; margin-top: 1rem; font-size: 1.14em; }

/* ==========================================================================
   Tax banner — persistent "Without Increasing Taxes" message
   ========================================================================== */
.tax-banner {
  background: var(--green);
  color: #16220E;
  padding: 1.05rem 0;
  position: relative; z-index: 3;
  overflow: hidden;
}
.tax-banner__inner {
  display: flex; align-items: center; justify-content: center; gap: 1rem 1.4rem;
  flex-wrap: wrap; text-align: center;
}
.tax-banner p {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.02rem, 1.9vw, 1.42rem);
  letter-spacing: -.01em; margin: 0;
  text-transform: uppercase;
}
.tax-banner .rule { width: 40px; height: 3px; background: rgba(22,34,14,.35); border-radius: 2px; }
@media (max-width: 640px) { .tax-banner .rule { display: none; } }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Flex flow — a trailing partial row stays centred (used for the 5 project cards). */
.cardflow { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.25rem, 2.4vw, 2rem); }
.cardflow > * { flex: 1 1 270px; max-width: 350px; }

/* Improvement / icon cards */
.icard {
  background: #fff; border-radius: var(--radius-lg);
  padding: 2.1rem 1.6rem 1.9rem;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.icard::before {
  content: ''; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--purple));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.icard:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.icard:hover::before { transform: scaleX(1); }
.icard img { width: 92px; height: 92px; margin: 0 auto 1.15rem; transition: transform .45s var(--ease); }
.icard:hover img { transform: scale(1.09) rotate(-3deg); }
.icard h3 { font-size: 1.14rem; letter-spacing: -.01em; }

.section--purple .icard,
.section--purple-grad .icard {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
  backdrop-filter: blur(2px);
}
.section--purple .icard h3, .section--purple-grad .icard h3 { color: #fff; }
.section--purple .icard:hover, .section--purple-grad .icard:hover { background: rgba(255,255,255,.11); }

/* Action cards (Volunteer / Endorse / Lawn sign) */
.acard {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .3rem;
  background: #fff; border-radius: var(--radius-lg);
  padding: 2.4rem 1.7rem 2rem;
  text-decoration: none; color: inherit;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  height: 100%;
}
.acard img { width: 104px; height: 104px; margin-bottom: 1.1rem; transition: transform .45s var(--ease); }
.acard h3 { font-size: 1.28rem; }
.acard p { font-size: .99rem; color: var(--muted); margin-top: .45rem; }
.acard .fake-btn {
  margin-top: 1.35rem;
  font-family: var(--display); font-weight: 700; color: var(--purple);
  display: inline-flex; align-items: center; gap: .45rem;
  transition: gap .3s var(--ease), color .3s;
}
.acard:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.acard:hover img { transform: scale(1.08) translateY(-3px); }
.acard:hover .fake-btn { gap: .85rem; color: var(--green-deep); }

/* Safeguard / checklist cards */
.scard {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.scard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.scard h3 { font-size: 1.08rem; margin-bottom: .5rem; display: flex; gap: .7rem; align-items: flex-start; }
.scard p { font-size: 1rem; color: var(--muted); }
.section--purple .scard, .section--purple-grad .scard {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); box-shadow: none;
}
.section--purple .scard h3, .section--purple-grad .scard h3 { color: #fff; }
.section--purple .scard p, .section--purple-grad .scard p { color: rgba(255,255,255,.84); }

/* ==========================================================================
   Checklists
   ========================================================================== */
.checks { display: grid; gap: .95rem; }
.checks li {
  display: grid; grid-template-columns: 30px 1fr; gap: .95rem;
  align-items: start;
  font-size: 1.06em; line-height: 1.5;
}
.checks li::before {
  content: ''; width: 26px; height: 26px; margin-top: .12em;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat;
  flex-shrink: 0;
}
.checks--purple li::before { background-color: var(--purple); }

.bullets { display: grid; gap: .8rem; }
.bullets li { display: grid; grid-template-columns: 12px 1fr; gap: .9rem; align-items: start; font-size: 1.04em; }
.bullets li::before {
  content: ''; width: 10px; height: 10px; margin-top: .58em;
  background: var(--green); border-radius: 2px;
}
.on-dark .bullets li::before, .section--purple .bullets li::before { background: var(--green-bright); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.stat { text-align: center; position: relative; padding: .5rem 1rem; }
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px;
  background: rgba(255,255,255,.2);
}
@media (max-width: 700px) { .stat + .stat::before { display: none; } }
.stat__num {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.9rem, 6vw, 4.3rem);
  line-height: 1; color: var(--green-bright);
  letter-spacing: -.035em;
  display: flex; align-items: baseline; justify-content: center; gap: .04em;
}
.stat__label { margin-top: .8rem; font-size: 1.01rem; color: rgba(255,255,255,.88); line-height: 1.4; }
.stats--light .stat__num { color: var(--purple); }
.stats--light .stat__label { color: var(--body); }
.stats--light .stat + .stat::before { background: var(--line); }

/* ==========================================================================
   Split / feature blocks
   ========================================================================== */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--media-right .split__media { order: 2; }
@media (max-width: 860px) { .split--media-right .split__media { order: 0; } }

.split__media { position: relative; }
.figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 3 / 2; }

/* Decorative offset frame */
.figure-frame { position: relative; }
.figure-frame::before {
  content: ''; position: absolute; inset: 0;
  border: 3px solid var(--green);
  border-radius: var(--radius-lg);
  transform: translate(18px, 18px);
  z-index: -1;
}
.figure-frame--purple::before { border-color: var(--purple); }

/* ==========================================================================
   Watermark (the campaign "YES" kids art, echoing the print pieces)
   ========================================================================== */
.watermark {
  position: absolute; pointer-events: none; z-index: 0;
  opacity: .10;
  will-change: transform;
}
.watermark img { width: 100%; }
.watermark--right { right: -3%; top: 8%; width: min(34%, 400px); }
.watermark--left  { left: -5%; bottom: 2%; width: min(28%, 330px); }
@media (max-width: 1100px) { .watermark { display: none; } }
.section > .wrap { position: relative; z-index: 1; }

/* ==========================================================================
   Voting information
   ========================================================================== */
.vote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 1.35rem; }
.vote-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-left: 4px solid var(--green-bright);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.4rem;
  transition: transform .4s var(--ease), background .4s;
}
.vote-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.12); }
.vote-card__label {
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--green-bright); margin-bottom: .6rem;
}
.vote-card__value {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  color: #fff; line-height: 1.2;
  overflow-wrap: break-word;    /* break only when it must; <wbr> marks where */
}
.vote-card__value a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.vote-card p { font-size: .97rem; margin-top: .5rem; color: rgba(255,255,255,.82); }

/* Countdown */
.countdown { display: flex; justify-content: center; margin-top: 2.2rem; }
.countdown__unit {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 1.4rem 2.4rem; text-align: center;
}
.countdown__n {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(3rem, 6vw, 4.4rem); color: #fff;
  line-height: 1; letter-spacing: -.035em;
}
.countdown__l {
  font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--green-bright); margin-top: .6rem;
  font-weight: 700; font-family: var(--display);
}
.countdown__today {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: #fff; margin: 0;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { display: grid; gap: .9rem; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .35s var(--ease), border-color .35s;
}
.faq__item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem;
  padding: 1.35rem 1.5rem;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  color: var(--purple-deep); line-height: 1.3;
  transition: background .25s, color .25s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--purple-tint); }
.faq__item[open] .faq__q { color: var(--purple); background: var(--purple-tint); }
.faq__icon {
  flex-shrink: 0; width: 26px; height: 26px; margin-top: .12em;
  border-radius: 50%; background: var(--green); position: relative;
  transition: transform .38s var(--ease), background .3s;
}
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; inset: 50% 25%; height: 2.6px; margin-top: -1.3px;
  background: #fff; border-radius: 2px; transition: transform .38s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--purple); transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 1.5rem 1.6rem; }
.faq__a > *:first-child { margin-top: .25rem; }
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__a { animation: faqIn .42s var(--ease); }
}
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Embedded Google Forms
   ========================================================================== */
.form-embed {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  position: relative;
}
.form-embed__head {
  background: var(--purple-deep); color: #fff;
  padding: 1.15rem 1.6rem;
  display: flex; align-items: center; gap: .85rem; flex-wrap: wrap;
}
.form-embed__head h3 { color: #fff; font-size: 1.16rem; margin: 0; }
.form-embed__head img { width: 34px; height: 34px; }
.form-embed__frame { position: relative; }

.form-embed iframe {
  width: 100%; border: 0; display: block;
  /* Cross-origin embeds cannot be auto-sized, so this is generous enough that
     most of the campaign's forms fit without an inner scrollbar. */
  height: 1280px; background: #fff;
}
@media (max-width: 640px) { .form-embed iframe { height: 1520px; } }

/* --- Loading state ------------------------------------------------------
   Google Forms are a third-party embed and can take a moment. Cover the
   frame until the iframe fires `load`. Hidden without JS, because without
   JS the iframe is never mounted and the loader would sit there forever. */
.form-embed__loader {
  display: none;
  position: absolute; inset: 0; z-index: 2;
  background: #fff;
  flex-direction: column; align-items: center;
  padding: clamp(3.5rem, 14vh, 8rem) 1.5rem 0;
  gap: 1.15rem; text-align: center;
  transition: opacity .5s var(--ease), visibility .5s;
}
.js .form-embed__loader { display: flex; }
.form-embed.is-loaded .form-embed__loader { opacity: 0; visibility: hidden; }

.form-embed__loader p {
  font-family: var(--display); font-weight: 600;
  color: var(--muted); font-size: 1.02rem; margin: 0;
}
.form-embed__slow { display: none; font-size: .95rem !important; max-width: 34ch; }
.form-embed.is-slow .form-embed__slow { display: block; }

.spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid var(--purple-tint);
  border-top-color: var(--green);
  border-right-color: var(--green);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* A frozen ring would read as broken, so drop it and let the text carry it. */
@media (prefers-reduced-motion: reduce) {
  .spinner { display: none; }
}
.form-embed__fallback {
  padding: 1rem 1.6rem 1.4rem; font-size: .95rem; color: var(--muted);
  border-top: 1px solid var(--line); background: var(--shell);
}

/* ==========================================================================
   Endorsements
   ========================================================================== */
.endorse-group + .endorse-group { margin-top: 3rem; }
.endorse-group h3 {
  font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-deep); padding-bottom: .8rem; margin-bottom: 1.4rem;
  border-bottom: 2px solid var(--line);
}
.endorse-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: .85rem 2rem; }
.endorse-list li {
  padding: .55rem 0 .55rem 1.5rem; position: relative;
  font-size: 1.03rem; color: var(--ink);
}
.endorse-list li::before {
  content: ''; position: absolute; left: 0; top: 1.15em;
  width: 8px; height: 8px; background: var(--green); border-radius: 50%;
}
.endorse-list li span { display: block; font-size: .9rem; color: var(--muted); }

.placeholder-note {
  background: var(--green-tint);
  border: 1px dashed var(--green-deep);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  text-align: center;
}
.placeholder-note h3 { color: var(--green-deep); font-size: 1.22rem; }
.placeholder-note p { margin-top: .6rem; color: var(--body); }

/* ==========================================================================
   Key links
   ========================================================================== */
.linklist { display: grid; gap: 1.1rem; }
.linkrow {
  display: flex; align-items: center; gap: 1.3rem;
  padding: 1.6rem 1.7rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.linkrow::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--green); transform: scaleY(0); transform-origin: top;
  transition: transform .38s var(--ease);
}
.linkrow:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: transparent; }
.linkrow:hover::before { transform: scaleY(1); }
.linkrow__body { flex: 1; }
.linkrow h3 { font-size: 1.16rem; }
.linkrow p { font-size: .98rem; color: var(--muted); margin-top: .28rem; }
.linkrow__url { font-size: .88rem; color: var(--green-deep); margin-top: .4rem; word-break: break-all; font-weight: 600; }
.linkrow__arrow {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--purple-tint); color: var(--purple);
  display: grid; place-items: center;
  transition: background .3s, color .3s, transform .38s var(--ease);
}
.linkrow:hover .linkrow__arrow { background: var(--purple); color: #fff; transform: translateX(4px); }
.linkrow__arrow svg { width: 19px; height: 19px; }

/* ==========================================================================
   Callout / CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(140deg, var(--purple) 0%, var(--purple-deep) 60%, var(--purple-dark) 100%);
  color: #fff; position: relative; overflow: hidden; isolation: isolate;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }

.pullquote {
  border-left: 5px solid var(--green);
  padding: .3rem 0 .3rem 1.8rem;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.28rem, 2.4vw, 1.75rem);
  line-height: 1.32; color: var(--purple-deep);
  letter-spacing: -.015em;
}
.on-dark .pullquote, .section--purple .pullquote { color: #fff; border-color: var(--green-bright); }

.note {
  background: var(--purple-tint); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; font-size: 1rem;
  border-left: 4px solid var(--purple);
}
.note--green { background: var(--green-tint); border-left-color: var(--green-deep); }

/* ==========================================================================
   Footer  +  legally required disclaimer
   ========================================================================== */
.site-footer { background: var(--purple-dark); color: rgba(255,255,255,.76); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 2.5rem; padding-bottom: 3rem;
}
.footer-brand img { width: 210px; background: #fff; padding: 9px; border-radius: 8px; }
.footer-brand p { margin-top: 1.2rem; font-size: .97rem; max-width: 34ch; }
.site-footer h4 {
  color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 1.1rem; color: var(--green-bright);
}
.footer-links { display: grid; gap: .62rem; }
.footer-links a {
  color: rgba(255,255,255,.78); text-decoration: none; font-size: 1rem;
  transition: color .22s, padding-left .28s var(--ease);
}
.footer-links a:hover { color: var(--green-bright); padding-left: 6px; }

/* --- Disclaimer bar: required by California law on every page --- */
.disclaimer-bar {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 1.6rem 0 2.2rem;
}
.disclaimer-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.1rem 1.6rem; flex-wrap: wrap;
}
/* High-contrast box — white ground, dark purple text. Font size is set well
   above the 8-point statutory minimum (13px ≈ 9.75pt). Do not reduce. */
.disclaimer {
  background: #FFFFFF;
  color: #2A0F31;
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: .72rem 1.15rem;
  font-family: var(--text);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  margin: 0;
  flex: 1 1 auto;
  min-width: min(100%, 430px);
}
.disclaimer-bar__meta {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  font-size: .92rem;
}
.disclaimer-bar__meta a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); }
.disclaimer-bar__meta a:hover { color: var(--green-bright); text-decoration-color: var(--green-bright); }

/* ==========================================================================
   Prose (privacy policy)
   ========================================================================== */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.9rem; }
.prose p, .prose li { color: var(--body); }
.prose ul { margin-top: 1rem; display: grid; gap: .55rem; padding-left: 1.3rem; list-style: disc; }
.prose ul li::marker { color: var(--green-deep); }
.prose p + h2 { margin-top: 2.6rem; }

/* ==========================================================================
   Scroll animation system
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity .85s var(--ease),
    transform .95s var(--ease),
    filter .85s var(--ease);
  filter: blur(4px);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; filter: blur(0); }

.js .reveal--left  { transform: translateX(-38px); }
.js .reveal--right { transform: translateX(38px); }

/* On narrow screens the split columns are full width, so a horizontal offset
   would push past the viewport edge while the reveal is pending. Slide up
   instead. */
@media (max-width: 900px) {
  .js .reveal--left, .js .reveal--right { transform: translateY(28px); }
}
.js .reveal--scale { transform: scale(.94); }
.js .reveal--fade  { transform: none; filter: blur(6px); }

/* Stagger: children animate in sequence */
.js .stagger > * {
  opacity: 0; transform: translateY(26px);
  filter: blur(3px);
  transition: opacity .8s var(--ease), transform .85s var(--ease), filter .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 95ms);
}
.js .stagger.is-in > * { opacity: 1; transform: none; filter: blur(0); }

/* Line-by-line headline reveal */
.js .reveal-lines .line-inner {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--i, 0) * 105ms);
}
.reveal-lines .line { display: block; overflow: hidden; padding-bottom: .06em; }
.js .reveal-lines.is-in .line-inner { transform: none; }

/* Scroll progress bar */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 150;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  width: 0; transition: width .1s linear;
  pointer-events: none;
}

/* Reduced motion: show everything, no transforms */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stagger > *, .reveal-lines .line-inner {
    opacity: 1 !important; transform: none !important; filter: none !important;
    transition: none !important;
  }
  .hero__media, .page-hero__media, .watermark { transform: none !important; }
  .progress { display: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.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;
}
@media print {
  .site-header, .scroll-cue, .progress, .nav-toggle { display: none !important; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  body { color: #000; }
}
