/* ==========================================================================
   Trustee Medina — Design System
   Colors committed in brief. Typography: Manrope (headings) + Source Sans 3 (body).
   Mobile-first. Bilingual. WCAG AA minimum.
   ========================================================================== */

/* --- Design Tokens -------------------------------------------------------- */
:root {
  /* Brand colors */
  --c-green:        oklch(40% 0.08 155);   /* #2D6A4F deep forest green */
  --c-green-mid:    oklch(50% 0.09 155);   /* #40916C success/wins */
  --c-green-light:  oklch(92% 0.04 155);   /* tinted surface */
  --c-gold:         oklch(82% 0.12 80);    /* #E9C46A farmworker gold */
  --c-gold-dark:    oklch(68% 0.12 75);    /* deeper gold for text use */
  --c-red:          oklch(36% 0.18 25);    /* #C1121F error/blocked */
  --c-amber:        oklch(72% 0.14 65);    /* active fights */

  /* Neutrals — tinted slightly toward green */
  --c-bg:           oklch(98% 0.004 155);  /* #FAFAFA near-white */
  --c-surface:      oklch(96% 0.006 155);  /* card surface */
  --c-border:       oklch(88% 0.008 155);  /* dividers */
  --c-ink:          oklch(14% 0.006 155);  /* #1A1A1A near-black */
  --c-ink-muted:    oklch(38% 0.008 155);  /* secondary text — verified 4.5:1+ on bg */
  --c-ink-faint:    oklch(55% 0.006 155);  /* captions — large text only */

  /* Typography */
  --font-head:      'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-body:      'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, sans-serif;

  /* Type scale (fluid, 1.25 ratio) */
  --text-xs:   clamp(0.75rem,  1.5vw,  0.875rem);
  --text-sm:   clamp(0.875rem, 1.8vw,  1rem);
  --text-base: clamp(1rem,     2vw,    1.125rem);
  --text-lg:   clamp(1.125rem, 2.5vw,  1.25rem);
  --text-xl:   clamp(1.25rem,  3vw,    1.5rem);
  --text-2xl:  clamp(1.5rem,   3.5vw,  2rem);
  --text-3xl:  clamp(2rem,     4.5vw,  2.75rem);
  --text-4xl:  clamp(2.5rem,   6vw,    3.75rem);
  --text-hero: clamp(2.75rem,  7vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii — one system: subtle rounding */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-pill: 9999px;

  /* Shadows — tinted toward green */
  --shadow-sm: 0 1px 3px oklch(40% 0.08 155 / 0.10);
  --shadow-md: 0 4px 16px oklch(40% 0.08 155 / 0.12);
  --shadow-lg: 0 12px 40px oklch(40% 0.08 155 / 0.15);

  /* Transitions — Emil Kowalski: ease-out for enters, under 300ms */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --duration-fast: 160ms;
  --duration-mid:  220ms;
  --duration-slow: 320ms;

  /* Layout */
  --container: min(1280px, 100% - 2 * var(--space-6));
  --container-prose: min(72ch, 100%);
  --nav-height: 68px;
}

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

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--c-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover { color: oklch(from var(--c-green) calc(l - 0.08) c h); }
a:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  text-wrap: balance;
}

p { max-width: var(--container-prose); text-wrap: pretty; }

ul, ol { padding-left: var(--space-6); }

strong { font-weight: 700; }

/* --- Layout Utilities ----------------------------------------------------- */
.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-16);
}

.section--lg {
  padding-block: var(--space-20);
}

/* --- Navigation ----------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-green);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px oklch(0% 0 0 / 0.2);
}

.nav-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--text-lg);
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.nav-logo small {
  font-size: var(--text-xs);
  font-weight: 500;
  color: oklch(from var(--c-gold) l c h / 0.9);
  letter-spacing: 0.02em;
}

.nav-logo:hover { color: var(--c-gold); }
.nav-logo:focus-visible { outline-color: var(--c-gold); }

.nav-links {
  display: none;
  list-style: none;
  padding: 0;
  gap: var(--space-1);
}

@media (min-width: 900px) {
  .nav-links { display: flex; align-items: center; }
}

.nav-links a {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: oklch(97% 0.008 155);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--r-sm);
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.nav-links a:hover {
  background: oklch(from var(--c-green) calc(l + 0.08) c h);
  color: white;
}

.nav-links a.nav-cta {
  background: var(--c-gold);
  color: var(--c-ink);
  padding: var(--space-2) var(--space-4);
}

.nav-links a.nav-cta:hover {
  background: oklch(from var(--c-gold) calc(l - 0.06) c h);
  color: var(--c-ink);
}

/* Mobile menu toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--r-sm);
  transition: background var(--duration-fast) var(--ease-out);
}

.nav-toggle:hover { background: oklch(from var(--c-green) calc(l + 0.08) c h); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform var(--duration-mid) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  z-index: 99;
  background: var(--c-green);
  overflow-y: auto;
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
}

.nav-mobile.is-open {
  display: flex;
}

@media (min-width: 900px) {
  .nav-mobile { display: none !important; }
}

.nav-mobile a {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-md);
  transition: background var(--duration-fast) var(--ease-out);
}

.nav-mobile a:hover { background: oklch(from var(--c-green) calc(l + 0.08) c h); }

.nav-mobile a.nav-cta {
  background: var(--c-gold);
  color: var(--c-ink);
  text-align: center;
  margin-top: var(--space-4);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--c-green);
  color: white;
  border-color: var(--c-green);
}

.btn-primary:hover {
  background: oklch(from var(--c-green) calc(l - 0.06) c h);
  border-color: oklch(from var(--c-green) calc(l - 0.06) c h);
  color: white;
}

.btn-gold {
  background: var(--c-gold);
  color: var(--c-ink);
  border-color: var(--c-gold);
}

.btn-gold:hover {
  background: oklch(from var(--c-gold) calc(l - 0.08) c h);
  border-color: oklch(from var(--c-gold) calc(l - 0.08) c h);
  color: var(--c-ink);
}

.btn-outline {
  background: transparent;
  color: var(--c-green);
  border-color: var(--c-green);
}

.btn-outline:hover {
  background: var(--c-green);
  color: white;
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: oklch(100% 0 0 / 0.5);
}

.btn-outline-white:hover {
  background: oklch(100% 0 0 / 0.12);
  border-color: white;
  color: white;
}

.btn-lg {
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--r-md);
}

.btn-sm {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  background: var(--c-green);
  color: white;
  padding-block: var(--space-16) var(--space-20);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 100% 0%,
    oklch(from var(--c-gold) l c h / 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  width: var(--container);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: var(--text-hero);
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  max-width: 18ch;
}

.hero-sub {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: oklch(97% 0.006 155);
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

.hero-sub-es {
  font-size: var(--text-base);
  color: oklch(90% 0.006 155);
  margin-top: var(--space-3);
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* --- Section headers ------------------------------------------------------ */
.section-head {
  margin-bottom: var(--space-10);
}

.section-head h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.section-head .section-sub {
  font-size: var(--text-lg);
  color: var(--c-ink-muted);
  max-width: 52ch;
}

.section-head .section-sub-es {
  font-size: var(--text-base);
  color: var(--c-ink-faint);
  font-style: italic;
  margin-top: var(--space-2);
}

/* --- Wins cards ----------------------------------------------------------- */
.wins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.win-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--duration-mid) var(--ease-out),
              transform var(--duration-mid) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .win-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
}

.win-card-icon {
  width: 48px;
  height: 48px;
  background: var(--c-green-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-green);
  flex-shrink: 0;
}

.win-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--c-ink);
}

/* --- Priorities list ------------------------------------------------------ */
.priorities-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
}

.priority-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5) var(--space-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  border-left: 4px solid var(--c-green);
}

.priority-item p { max-width: none; }

.priority-num {
  font-family: var(--font-head);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--c-border);
  line-height: 1;
  flex-shrink: 0;
  width: 2ch;
  text-align: right;
}

.priority-body h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.priority-body p {
  font-size: var(--text-sm);
  color: var(--c-ink-muted);
}

/* --- Green banner sections ------------------------------------------------ */
.section-green {
  background: var(--c-green);
  color: white;
}

.section-green h2,
.section-green h3 {
  color: white;
}

.section-green .section-sub { color: oklch(92% 0.006 155); }

/* --- Newsletter / Substack strip ------------------------------------------ */
.newsletter-strip {
  background: var(--c-ink);
  padding-block: var(--space-10);
}

.newsletter-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

@media (min-width: 680px) {
  .newsletter-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.newsletter-text h3 {
  font-size: var(--text-xl);
  color: white;
  margin-bottom: var(--space-1);
}

.newsletter-text p {
  font-size: var(--text-sm);
  color: oklch(75% 0.006 155);
}

/* --- Social bar ----------------------------------------------------------- */
.social-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: oklch(85% 0.006 155);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border: 1px solid oklch(100% 0 0 / 0.15);
  border-radius: var(--r-pill);
  transition: border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.social-link:hover {
  color: white;
  border-color: oklch(100% 0 0 / 0.4);
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: oklch(10% 0.006 155);
  color: oklch(75% 0.006 155);
  padding-block: var(--space-12) var(--space-8);
}

.footer-grid {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand .footer-logo {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 800;
  color: white;
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--space-3);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: oklch(65% 0.006 155);
}

.footer-nav h4 {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 700;
  color: oklch(85% 0.006 155);
  margin-bottom: var(--space-3);
  letter-spacing: 0.04em;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: oklch(65% 0.006 155);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-nav a:hover { color: white; }

.footer-bottom {
  width: var(--container);
  margin-inline: auto;
  padding-top: var(--space-6);
  border-top: 1px solid oklch(100% 0 0 / 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: oklch(45% 0.006 155);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* --- In Office: Status sections ------------------------------------------ */
.status-section {
  margin-bottom: var(--space-10);
}

.status-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--c-border);
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--win    { background: var(--c-green-mid); }
.status-dot--fight  { background: var(--c-amber); }
.status-dot--blocked { background: var(--c-red); }

.status-header h2 { font-size: var(--text-2xl); }

.status-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.status-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--c-border);
}

.status-item:last-child { border-bottom: none; }

.status-item-bar {
  width: 4px;
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 24px;
}

.status-item-bar--win    { background: var(--c-green-mid); }
.status-item-bar--fight  { background: var(--c-amber); }
.status-item-bar--blocked { background: var(--c-red); }

.status-item-body strong {
  display: block;
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.status-item-body p {
  font-size: var(--text-sm);
  color: var(--c-ink-muted);
  max-width: none;
}

/* --- Vote tracker callout ------------------------------------------------- */
.callout {
  background: var(--c-green-light);
  border: 1px solid oklch(from var(--c-green) l c h / 0.2);
  border-radius: var(--r-lg);
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .callout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.callout p {
  font-size: var(--text-base);
  color: var(--c-ink);
  max-width: 52ch;
}

/* --- Values columns (About page) ------------------------------------------ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

.value-item {
  padding: var(--space-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  border-top: 4px solid var(--c-green);
}

.value-item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--c-green);
}

.value-item p {
  font-size: var(--text-sm);
  color: var(--c-ink-muted);
  max-width: none;
}

/* --- FAQ ------------------------------------------------------------------ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

details.faq-item {
  border-bottom: 1px solid var(--c-border);
}

details.faq-item:last-child { border-bottom: none; }

details.faq-item summary {
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 700;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: background var(--duration-fast) var(--ease-out);
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--c-green);
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-out);
}

details[open].faq-item summary::after { transform: rotate(45deg); }

details.faq-item summary:hover { background: var(--c-surface); }

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-base);
  color: var(--c-ink-muted);
  line-height: 1.65;
}

/* --- Endorsements --------------------------------------------------------- */
.endorsements-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.endorsement-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-green);
  background: var(--c-green-light);
  border: 1px solid oklch(from var(--c-green) l c h / 0.2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-pill);
}

/* --- Schools list (Area III) ---------------------------------------------- */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.schools-county {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.schools-county-head {
  background: var(--c-green);
  color: white;
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-3) var(--space-5);
  letter-spacing: 0.04em;
}

.schools-county ul {
  list-style: none;
  padding: var(--space-2) 0;
  margin: 0;
}

.schools-county li {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.schools-county li:last-child { border-bottom: none; }

.schools-county li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green-mid);
  flex-shrink: 0;
}

/* --- Data figures (Area III) ---------------------------------------------- */
.data-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.data-fig {
  padding: var(--space-5) var(--space-6);
  background: var(--c-green);
  border-radius: var(--r-lg);
  color: white;
}

.data-fig-number {
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--c-gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.data-fig-label {
  font-size: var(--text-sm);
  color: oklch(90% 0.006 155);
  line-height: 1.4;
}

/* --- Contact form / WPForms overrides ------------------------------------- */
.wpforms-container {
  max-width: 680px;
}

.wpforms-field {
  margin-bottom: var(--space-4) !important;
}

.wpforms-field label {
  font-family: var(--font-head) !important;
  font-size: var(--text-sm) !important;
  font-weight: 700 !important;
  color: var(--c-ink) !important;
  margin-bottom: var(--space-2) !important;
  display: block;
}

.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select {
  font-family: var(--font-body) !important;
  font-size: var(--text-base) !important;
  color: var(--c-ink) !important;
  background: white !important;
  border: 1.5px solid var(--c-border) !important;
  border-radius: var(--r-md) !important;
  padding: var(--space-3) var(--space-4) !important;
  width: 100% !important;
  line-height: 1.5 !important;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out) !important;
}

.wpforms-field input:focus,
.wpforms-field textarea:focus,
.wpforms-field select:focus {
  outline: none !important;
  border-color: var(--c-green) !important;
  box-shadow: 0 0 0 3px oklch(from var(--c-green) l c h / 0.15) !important;
}

.wpforms-field input::placeholder,
.wpforms-field textarea::placeholder {
  color: oklch(55% 0.006 155) !important;
}

.wpforms-field textarea {
  min-height: 140px !important;
  resize: vertical !important;
}

.wpforms-submit-container .wpforms-submit {
  font-family: var(--font-head) !important;
  font-size: var(--text-base) !important;
  font-weight: 700 !important;
  background: var(--c-green) !important;
  color: white !important;
  border: 2px solid var(--c-green) !important;
  border-radius: var(--r-md) !important;
  padding: var(--space-3) var(--space-8) !important;
  cursor: pointer !important;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out) !important;
}

.wpforms-submit-container .wpforms-submit:hover {
  background: oklch(from var(--c-green) calc(l - 0.06) c h) !important;
}

.wpforms-submit-container .wpforms-submit:active {
  transform: scale(0.97) !important;
}

.wpforms-field-radio .wpforms-field-label-inline {
  font-family: var(--font-body) !important;
  font-size: var(--text-base) !important;
  color: var(--c-ink) !important;
}

/* --- Contact info block --------------------------------------------------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}

.contact-info-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.contact-info-icon {
  width: 20px;
  color: var(--c-green);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-info-item dt {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--c-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
}

.contact-info-item dd {
  font-size: var(--text-sm);
  color: var(--c-ink);
}

/* --- YouTube embed grid --------------------------------------------------- */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}

/* --- News feed (RSS Aggregator overrides) ---------------------------------- */
.rssg-ctx { width: 100%; }

.rssg-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--c-border);
}

.rssg-item:last-child { border-bottom: none; }

.rssg-item a {
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
}

.rssg-item a:hover { color: var(--c-green); }

.rssg-desc { display: none; }

/* --- Chatbot widget ------------------------------------------------------- */
#tm-chatbot-btn {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 200;
  background: var(--c-green);
  color: white;
  border: none;
  border-radius: var(--r-pill);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-lg);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

#tm-chatbot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px oklch(40% 0.08 155 / 0.25);
  background: oklch(from var(--c-green) calc(l - 0.04) c h);
}

#tm-chatbot-btn:active { transform: scale(0.97) translateY(0); }

#tm-chatbot-panel {
  position: fixed;
  bottom: calc(var(--space-6) + 56px + var(--space-3));
  right: var(--space-6);
  z-index: 200;
  width: min(400px, calc(100vw - 2 * var(--space-6)));
  height: 500px;
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--duration-mid) var(--ease-out),
              opacity var(--duration-mid) var(--ease-out);
}

#tm-chatbot-panel.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-header {
  background: var(--c-green);
  color: white;
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.chatbot-title {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 700;
}

.chatbot-close {
  background: none;
  border: none;
  color: oklch(90% 0 0);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: var(--r-sm);
  font-size: var(--text-lg);
  line-height: 1;
  transition: color var(--duration-fast) var(--ease-out);
}

.chatbot-close:hover { color: white; }

.chatbot-disclaimer {
  font-size: var(--text-xs);
  color: var(--c-ink-muted);
  background: oklch(98% 0.002 155);
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--c-border);
  line-height: 1.4;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  scroll-behavior: smooth;
}

.chat-msg {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.chat-msg--user {
  background: var(--c-green);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: var(--r-sm);
}

.chat-msg--assistant {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-ink);
  align-self: flex-start;
  border-bottom-left-radius: var(--r-sm);
}

.chat-msg--loading {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  align-self: flex-start;
  padding: var(--space-3) var(--space-5);
}

.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  background: var(--c-ink-faint);
  border-radius: 50%;
  animation: typing 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.30s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(1); opacity: 0.5; }
  40% { transform: scale(1.2); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-typing span { animation: none; opacity: 0.7; }
}

.chatbot-input-area {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--c-border);
  background: white;
}

.chatbot-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--space-2) var(--space-3);
  resize: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--c-green);
}

.chatbot-send {
  background: var(--c-green);
  color: white;
  border: none;
  border-radius: var(--r-md);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.chatbot-send:hover { background: oklch(from var(--c-green) calc(l - 0.06) c h); }
.chatbot-send:active { transform: scale(0.95); }
.chatbot-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Scroll reveal -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Bilingual text toggle ------------------------------------------------ */
.bilingual-toggle {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.bilingual-toggle button {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border: none;
  background: transparent;
  color: var(--c-ink-muted);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.bilingual-toggle button.active {
  background: var(--c-green);
  color: white;
}

/* --- Page hero (interior pages) ------------------------------------------- */
.page-hero {
  background: var(--c-green);
  padding-block: var(--space-12) var(--space-10);
  color: white;
}

.page-hero-inner {
  width: var(--container);
  margin-inline: auto;
}

.page-hero h1 {
  font-size: var(--text-4xl);
  color: white;
  margin-bottom: var(--space-3);
}

.page-hero .page-hero-sub {
  font-size: var(--text-lg);
  color: oklch(90% 0.006 155);
  max-width: 52ch;
}

.page-hero .page-hero-sub-es {
  font-size: var(--text-base);
  color: oklch(78% 0.006 155);
  font-style: italic;
  margin-top: var(--space-2);
}

/* --- Map embed ------------------------------------------------------------ */
.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  aspect-ratio: 16/9;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Utilities ------------------------------------------------------------ */
.text-green   { color: var(--c-green); }
.text-gold    { color: var(--c-gold-dark); }
.text-muted   { color: var(--c-ink-muted); }
.text-small   { font-size: var(--text-sm); }
.text-center  { text-align: center; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.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;
}

/* ==========================================================================
   PLATFORM GRID
   ========================================================================== */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 560px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
}

.platform-card {
  padding: var(--space-6);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.platform-card:hover {
  border-color: var(--c-green-mid);
  box-shadow: var(--shadow-sm);
}

.platform-card-num {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--c-green-mid);
  letter-spacing: 0.05em;
}

.platform-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.3;
}

.platform-card p {
  font-size: var(--text-sm);
  color: var(--c-ink-muted);
  line-height: 1.6;
  flex: 1;
}

/* ==========================================================================
   VOTE TRACKER TABLE
   ========================================================================== */
.vote-summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.vote-summary-card {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--r-lg);
  border: 1px solid transparent;
}

.vote-summary-card--yes {
  background: oklch(92% 0.05 155);
  border-color: oklch(80% 0.07 155);
}

.vote-summary-card--no {
  background: oklch(94% 0.04 25);
  border-color: oklch(82% 0.08 25);
}

.vote-summary-card--blocked {
  background: oklch(94% 0.04 65);
  border-color: oklch(82% 0.08 65);
}

.vote-summary-num {
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.vote-summary-label {
  font-size: var(--text-sm);
  color: var(--c-ink-muted);
  line-height: 1.4;
}

.vote-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  -webkit-overflow-scrolling: touch;
}

.vote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 760px;
}

.vote-table thead {
  background: var(--c-ink);
  color: white;
}

.vote-table thead th {
  padding: var(--space-3) var(--space-3);
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.vote-table thead th.vt-col-resolution {
  text-align: left;
  min-width: 220px;
  padding-left: var(--space-4);
}

.vote-table thead th.vt-col-medina {
  background: var(--c-green);
}

.vote-table tbody tr {
  border-bottom: 1px solid var(--c-border);
}

.vote-table tbody tr:last-child { border-bottom: none; }

.vote-table tbody tr:nth-child(even) {
  background: var(--c-surface);
}

.vt-col-resolution {
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  color: var(--c-ink);
  text-align: left;
  line-height: 1.4;
}

.vt-col-date {
  padding: var(--space-3);
  white-space: nowrap;
  color: var(--c-ink-muted);
  text-align: center;
  font-size: var(--text-xs);
}

.vt-cell {
  padding: var(--space-2) var(--space-3);
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.vt-cell--medina {
  background: oklch(95% 0.03 155);
}

.vt-yes  { color: oklch(35% 0.12 155); }
.vt-no   { color: oklch(36% 0.18 25); }
.vt-unknown { color: var(--c-ink-faint); }

.vt-result {
  padding: var(--space-2) var(--space-3);
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.vt-result--passed  { color: oklch(35% 0.12 155); }
.vt-result--rejected { color: oklch(36% 0.18 25); }

/* ==========================================================================
   NEWS PAGE
   ========================================================================== */
.news-source-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--c-border);
}

.news-source-badge {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}

.news-source-badge--substack {
  background: oklch(40% 0.08 155);
  color: white;
}

.news-source-badge--news {
  background: var(--c-ink);
  color: white;
}

.news-source-name {
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--c-ink);
}

.news-source-link {
  margin-left: auto;
  font-size: var(--text-sm);
  color: var(--c-green-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.news-item:last-child { border-bottom: none; }

.news-item-source-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.news-item-outlet {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--c-green-mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-item-title {
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
  line-height: 1.3;
  transition: color var(--duration-fast) var(--ease-out);
}

.news-item-title:hover { color: var(--c-green-mid); }

.news-item-excerpt {
  font-size: var(--text-sm);
  color: var(--c-ink-muted);
  line-height: 1.6;
  max-width: 70ch;
}

.news-item-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.news-item-meta time {
  font-size: var(--text-xs);
  color: var(--c-ink-faint);
}

/* ==========================================================================
   CONTACT FORMS
   ========================================================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  gap: var(--space-4);
}

.form-row--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-ink);
}

.form-label span {
  color: var(--c-green-mid);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--c-ink);
  background: white;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--c-ink-faint);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--c-green-mid);
  box-shadow: 0 0 0 3px oklch(50% 0.09 155 / 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-status {
  padding: var(--space-4);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  line-height: 1.5;
  font-weight: 500;
}

.form-status--success {
  background: oklch(92% 0.05 155);
  color: oklch(28% 0.1 155);
  border: 1px solid oklch(80% 0.07 155);
}

.form-status--error {
  background: oklch(94% 0.05 25);
  color: oklch(30% 0.15 25);
  border: 1px solid oklch(82% 0.1 25);
}

/* ==========================================================================
   STUDENT BILL OF RIGHTS
   ========================================================================== */
.rights-list {
  list-style: none;
  counter-reset: rights-counter;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.rights-item {
  counter-increment: rights-counter;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-4);
  align-items: start;
}

.rights-item::before {
  content: counter(rights-counter);
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--c-green-mid);
  background: oklch(92% 0.05 155);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.rights-item-body strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: var(--space-1);
}

.rights-item-body p {
  font-size: var(--text-sm);
  color: var(--c-ink-muted);
  line-height: 1.6;
}
