/* =========================================================
   TEEN PARENTING NAVIGATORS — TPN
   Design tokens locked from Web Designer UX spec (2026-04-24)
   Palette extracted from logo. WCAG 2.1 AA verified.
   ========================================================= */

/* -------- 1. RESET + BASE -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }

/* -------- 2. TOKENS -------- */
:root {
  /* Brand palette (extracted from TPN logo) */
  --tpn-blue: #2841C7;
  --tpn-blue-deep: #1A2D8F;
  --tpn-blue-ink: #0F1A4D;
  --tpn-yellow: #FFCB1F;
  --tpn-yellow-soft: #FFE490;
  --tpn-cream: #FBF7EE;
  --tpn-sage: #6B8E7F;

  /* Ink / text */
  --ink: #0F1A4D;
  --ink-soft: #475080;
  --ink-muted: #7C84A8;

  /* Surfaces */
  --surface: #FFFFFF;
  --surface-cream: #FBF7EE;
  --surface-blue: #2841C7;

  /* Status */
  --success: #3B8E5C;
  --error: #C8364B;

  /* Borders + shadows */
  --border: #E5E1D6;
  --border-strong: #C7BFAB;
  --shadow-sm: 0 2px 8px rgba(15, 26, 77, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 26, 77, 0.10);
  --shadow-lg: 0 16px 48px rgba(15, 26, 77, 0.14);

  /* Spacing (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Typography */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container-prose: 680px;
  --container: 1120px;
  --container-wide: 1280px;
  --gutter: 20px;
  --nav-height: 72px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 48px; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
}

/* -------- 3. TYPOGRAPHY -------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
  margin: 0 0 var(--space-4);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; color: var(--ink-soft); }
p { margin: 0 0 var(--space-4); max-width: var(--container-prose); }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); }
.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tpn-blue); margin-bottom: var(--space-3); }
.eyebrow.on-blue { color: var(--tpn-yellow); }
small, .meta { font-size: 0.85rem; color: var(--ink-muted); }
a { color: var(--tpn-blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--tpn-blue-deep); }
.stat-num { font-family: var(--font-display); font-weight: 700; font-variation-settings: "opsz" 144; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; color: var(--tpn-yellow); }
.text-balance { text-wrap: balance; }

/* -------- 4. LAYOUT -------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }
.container-prose { width: 100%; max-width: var(--container-prose); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-12); }
@media (min-width: 768px) { .section { padding-block: var(--space-16); } }
.section--tight { padding-block: var(--space-10); }
@media (min-width: 768px) { .section--tight { padding-block: var(--space-12); } }
.section--cream { background: var(--surface-cream); }
.section--blue { background: var(--surface-blue); color: white; }
.section--blue h1, .section--blue h2, .section--blue h3, .section--blue h4 { color: white; }
.section--blue .lede { color: rgba(255,255,255,0.85); }

/* -------- 5. NAV -------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-height);
  background: white;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 200ms ease;
}
.nav.is-scrolled { box-shadow: 0 2px 12px rgba(15, 26, 77, 0.06); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav__logo { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.nav__logo img { height: 44px; width: auto; }
.nav__logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.01em; line-height: 1; }
.nav__logo-text span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-6);
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 1200px) { .nav__links { gap: var(--space-7, 28px); } }
.nav__links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  padding-block: var(--space-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--tpn-blue); }
.nav__links a.is-active { border-color: var(--tpn-yellow); color: var(--tpn-blue-deep); }
.nav__cta { display: flex; align-items: center; gap: var(--space-3); }
.nav__hamburger {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform 200ms ease, opacity 200ms ease; }
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__hamburger { display: none; }
}
.nav__drawer {
  position: fixed; inset: var(--nav-height) 0 0 0;
  background: white;
  padding: var(--space-8) var(--gutter);
  transform: translateX(100%);
  transition: transform 240ms ease;
  z-index: 49;
  overflow-y: auto;
}
.nav__drawer.is-open { transform: translateX(0); }
.nav__drawer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.nav__drawer a { display: flex; align-items: center; min-height: 56px; font-size: 1.15rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border); }
.nav__drawer .btn--donate { margin-top: var(--space-6); width: 100%; justify-content: center; }
.nav__drawer-meta { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border); color: var(--ink-soft); font-size: 0.95rem; }
@media (min-width: 1024px) { .nav__drawer { display: none; } }

/* -------- 6. BUTTONS -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; min-height: 48px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, transform 100ms ease, box-shadow 150ms ease;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--tpn-blue); color: white; }
.btn--primary:hover { background: var(--tpn-blue-deep); color: white; }
.btn--donate { background: var(--tpn-yellow); color: var(--tpn-blue-ink); padding: 12px 22px; min-height: 44px; font-size: 0.95rem; }
.btn--donate:hover { background: var(--tpn-yellow-soft); color: var(--tpn-blue-ink); box-shadow: inset 0 0 0 2px var(--tpn-blue-ink); }
.btn--secondary { background: transparent; color: var(--tpn-blue); border-color: var(--tpn-blue); }
.btn--secondary:hover { background: var(--tpn-blue); color: white; }
.btn--ghost-on-blue { background: transparent; color: white; border-color: rgba(255,255,255,0.5); }
.btn--ghost-on-blue:hover { background: rgba(255,255,255,0.12); border-color: white; }
.btn--small { padding: 8px 16px; min-height: 36px; font-size: 0.9rem; }
.btn--full { width: 100%; }
:focus-visible { outline: 3px solid var(--tpn-yellow); outline-offset: 2px; border-radius: 4px; }

/* -------- 7. CARDS -------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
@media (min-width: 768px) { .card { padding: var(--space-6); } }
.card--hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card--cream { background: var(--surface-cream); }
.card--blue { background: var(--tpn-blue); color: white; border-color: var(--tpn-blue-deep); }
.card--blue h2, .card--blue h3 { color: white; }
.card--sage-tint { background: rgba(107, 142, 127, 0.06); border-color: rgba(107, 142, 127, 0.18); }
.card--media { padding: 0; overflow: hidden; }
.card--media .card__media { aspect-ratio: 16/9; overflow: hidden; background: var(--tpn-cream); }
.card--media .card__media img { width: 100%; height: 100%; object-fit: cover; }
.card--media .card__body { padding: var(--space-6); }
@media (min-width: 768px) { .card--media .card__body { padding: var(--space-8); } }
.card__pill {
  display: inline-flex;
  background: var(--tpn-yellow); color: var(--tpn-blue-ink);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}
.card__pill--sage { background: rgba(107, 142, 127, 0.18); color: var(--tpn-sage); }
.card__pill--muted { background: var(--surface-cream); color: var(--ink-soft); }

/* -------- 8. HERO -------- */
.hero {
  position: relative;
  background: var(--tpn-blue);
  color: white;
  padding-block: var(--space-16) var(--space-12);
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding-block: var(--space-24) var(--space-20); min-height: 88vh; display: flex; align-items: center; }
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 22%, rgba(255, 203, 31, 0.22), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(26, 45, 143, 0.55), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: var(--space-10); }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--space-16); } }
.hero__copy h1 { color: white; max-width: 16ch; text-wrap: balance; }
@media (min-width: 1024px) { .hero__copy h1 { max-width: 22ch; } }
.hero__sub { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: rgba(255,255,255,0.92); max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero__trust { margin-top: var(--space-10); padding-top: var(--space-5); border-top: 1px solid rgba(255, 203, 31, 0.55); font-size: 0.95rem; color: rgba(255,255,255,0.88); letter-spacing: 0.02em; }
.hero__trust strong { color: var(--tpn-yellow); font-weight: 700; }
.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero__visual::before {
  content: ""; position: absolute;
  width: min(620px, 110%); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 203, 31, 0.85) 0%, rgba(255, 203, 31, 0.55) 45%, rgba(255, 203, 31, 0) 72%);
  border-radius: 50%;
  z-index: 0;
}
.hero__visual img {
  position: relative; z-index: 1;
  max-width: min(560px, 100%);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.32)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
}
@media (max-width: 1023px) {
  .hero__visual { padding-block: var(--space-4); }
  .hero__visual img { max-width: min(360px, 78%); }
  .hero__visual::before { width: min(420px, 95%); }
}
.page-header { background: var(--tpn-blue); color: white; padding-block: var(--space-12); position: relative; min-height: 280px; display: flex; align-items: center; overflow: hidden; }
.page-header::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(255, 203, 31, 0.14), transparent 50%); pointer-events: none; }
.page-header h1 { color: white; margin: 0; text-wrap: balance; max-width: 18ch; }
.page-header p { color: rgba(255,255,255,0.88); margin-top: var(--space-3); max-width: 640px; }
.page-header .container { position: relative; z-index: 2; }

/* IMAGE-BACKED PAGE HEADER (Rhythm-deck pattern: photo + heavy color wash on text side fading to reveal photo) */
.page-header--image { padding-block: var(--space-16); min-height: 380px; }
.page-header--image .ph__bg { position: absolute; inset: 0; z-index: 0; }
.page-header--image .ph__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) brightness(0.88); }
/* Default: fade right (text on left, image revealed on right) */
.page-header--image .ph__bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    100deg,
    var(--tpn-blue-ink) 0%,
    rgba(15, 26, 77, 0.96) 25%,
    rgba(40, 65, 199, 0.86) 45%,
    rgba(40, 65, 199, 0.62) 65%,
    rgba(40, 65, 199, 0.32) 85%,
    rgba(40, 65, 199, 0.12) 100%
  );
}
@media (max-width: 767px) {
  .page-header--image .ph__bg::after {
    background: linear-gradient(
      180deg,
      rgba(15, 26, 77, 0.92) 0%,
      rgba(40, 65, 199, 0.78) 50%,
      rgba(40, 65, 199, 0.52) 100%
    );
  }
}
/* Variant: fade left (image on left, text on right) */
.page-header--image-left .ph__bg::after {
  background: linear-gradient(
    260deg,
    var(--tpn-blue-ink) 0%,
    rgba(15, 26, 77, 0.96) 25%,
    rgba(40, 65, 199, 0.86) 45%,
    rgba(40, 65, 199, 0.62) 65%,
    rgba(40, 65, 199, 0.32) 85%,
    rgba(40, 65, 199, 0.12) 100%
  );
}
/* Variant: fade up (image at bottom, text at top) */
.page-header--image-up .ph__bg::after {
  background: linear-gradient(
    180deg,
    rgba(15, 26, 77, 0.92) 0%,
    rgba(40, 65, 199, 0.65) 60%,
    rgba(40, 65, 199, 0.25) 100%
  );
}
.page-header--image .eyebrow.on-blue { color: var(--tpn-yellow); }

/* -------- 9. IMPACT RIBBON (signature animated marquee) -------- */
.ribbon {
  background: var(--tpn-blue-deep);
  color: var(--tpn-yellow);
  padding-block: var(--space-5);
  overflow: hidden;
  border-block: 1px solid rgba(255, 203, 31, 0.2);
}
.ribbon__track {
  display: flex; gap: var(--space-12);
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  letter-spacing: -0.005em;
}
.ribbon__track span { display: inline-flex; align-items: center; gap: var(--space-3); }
.ribbon__track .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tpn-yellow); display: inline-block; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ribbon:hover .ribbon__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ribbon__track { animation: none; flex-wrap: wrap; white-space: normal; justify-content: center; }
}

/* -------- 10. STATS GRID -------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); gap: var(--space-8); } }
.stat { text-align: center; padding: var(--space-4); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-variation-settings: "opsz" 144; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.03em; color: var(--tpn-blue); }
.section--blue .stat__num { color: var(--tpn-yellow); }
.stat__label { display: block; margin-top: var(--space-3); font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.02em; }
.section--blue .stat__label { color: rgba(255,255,255,0.85); }

/* -------- 11. GRIDS -------- */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); } }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); } }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); } }

/* -------- 12. PROGRAM CARDS -------- */
.program {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex; flex-direction: column;
  gap: var(--space-3);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
@media (min-width: 768px) { .program { padding: var(--space-6); gap: var(--space-4); } }
.program:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.program__icon {
  width: 76px; height: 76px;
  background: var(--tpn-yellow-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--tpn-blue-deep);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255, 203, 31, 0.28);
}
.program__icon svg { width: 40px; height: 40px; stroke-width: 1.8; }
.program__title { font-size: 1.35rem; line-height: 1.2; margin: 0; }
.program__desc { color: var(--ink-soft); margin: 0; }
.program__more {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600; color: var(--tpn-blue);
  cursor: pointer;
  margin-top: auto;
  padding: var(--space-2) 0;
}
.program__more::after { content: "+"; font-size: 1.4em; line-height: 1; transition: transform 200ms ease; }
.program[aria-expanded="true"] .program__more::after { transform: rotate(45deg); }
.program__details {
  display: none;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  margin-top: var(--space-2);
}
.program[aria-expanded="true"] .program__details { display: block; }

/* -------- 13. BOARD GRID -------- */
.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
}
.board__card {
  text-align: left;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.board__photo {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--tpn-cream);
  filter: contrast(1.04) saturate(0.94) brightness(1.01);
  transition: filter 200ms ease;
}
.board__card:hover .board__photo { filter: contrast(1.06) saturate(1) brightness(1.02); }
.board__name { font-size: 1.2rem; font-weight: 600; margin: 0; color: var(--ink); }
.board__title { font-size: 0.85rem; font-weight: 700; color: var(--tpn-blue); letter-spacing: 0.06em; text-transform: uppercase; margin: 0; }
.board__bio { font-size: 0.95rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* -------- 14. FORMS -------- */
.form { display: flex; flex-direction: column; gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.field__label .req { color: var(--error); margin-left: 4px; }
.field__helper { font-size: 0.85rem; color: var(--ink-muted); }
.field__error { display: none; font-size: 0.85rem; color: var(--error); }
.field.is-error .field__error { display: block; }
.field.is-error input, .field.is-error textarea, .field.is-error select { border-color: var(--error); }
.input, .textarea, .select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: white;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem; line-height: 1.4;
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.textarea { min-height: 140px; padding: 12px 16px; resize: vertical; height: auto; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--tpn-blue); box-shadow: 0 0 0 4px rgba(40, 65, 199, 0.18); }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230F1A4D' d='M6 8L0 0h12z'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field-row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.checkbox { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.checkbox input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--tpn-blue); }
.honeypot { position: absolute; left: -9999px; }

/* -------- 15. FOOTER -------- */
.footer {
  background: var(--tpn-blue-ink);
  color: rgba(255,255,255,0.78);
  padding-block: var(--space-12) var(--space-6);
  font-size: 0.92rem;
  position: relative;
  overflow: hidden;
}
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--tpn-yellow), var(--tpn-blue), var(--tpn-yellow)); }
.footer h4 { color: var(--tpn-yellow); font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--space-3); }
.footer a { color: white; text-decoration: none; transition: color 150ms ease; }
.footer a:hover { color: var(--tpn-yellow); }
.footer__top { display: grid; gap: var(--space-8); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-10); } }
.footer__brand img { height: 56px; width: auto; margin-bottom: var(--space-3); filter: brightness(1.05); }
.footer__brand .tagline { color: var(--tpn-yellow); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; margin: 0 0 var(--space-3); }
.footer__brand p { color: rgba(255,255,255,0.72); max-width: 320px; font-size: 0.88rem; line-height: 1.55; margin: 0; }
.footer__brand p + p { margin-top: var(--space-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer ul a { font-size: 0.95rem; }
.footer__bottom { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid rgba(255, 203, 31, 0.18); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: center; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.footer__bottom a { color: rgba(255,255,255,0.7); }
.footer__bottom a:hover { color: var(--tpn-yellow); }
.footer__powered { display: inline-flex; align-items: center; gap: var(--space-2); font-style: italic; }
.footer__powered::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--tpn-yellow); border-radius: 50%; }
.footer__admin { font-size: 0.8rem; color: rgba(255,255,255,0.4); transition: color 150ms ease; }
.footer__admin:hover { color: var(--tpn-yellow); }

/* -------- 16. MISC + UTILITIES -------- */
.skip-link { position: absolute; left: -9999px; top: var(--space-2); padding: var(--space-3) var(--space-4); background: var(--tpn-yellow); color: var(--tpn-blue-ink); font-weight: 600; border-radius: var(--radius-sm); }
.skip-link:focus { left: var(--space-3); z-index: 1000; }
.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; }
.divider { height: 1px; background: var(--border); border: 0; margin: var(--space-12) 0; }
.divider-on-blue { height: 1px; background: rgba(255, 203, 31, 0.3); border: 0; margin: var(--space-12) 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-4); }
.mt-4 { margin-top: var(--space-8); }
.mt-6 { margin-top: var(--space-12); }
.mb-0 { margin-bottom: 0; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* -------- 17. ACCORDION (FAQ) -------- */
.accordion { display: flex; flex-direction: column; gap: var(--space-3); }
.accordion__item { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.accordion__button { width: 100%; text-align: left; padding: var(--space-5); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); font-weight: 600; font-size: 1.05rem; color: var(--ink); transition: background 150ms ease; }
.accordion__button:hover { background: var(--surface-cream); }
.accordion__button::after { content: ""; width: 28px; height: 28px; flex-shrink: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232841C7' stroke-width='2.5' stroke-linecap='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>"); background-repeat: no-repeat; background-position: center; transition: transform 200ms ease; }
.accordion__item[aria-expanded="true"] .accordion__button::after { transform: rotate(45deg); }
.accordion__panel { display: none; padding: 0 var(--space-5) var(--space-5); color: var(--ink-soft); }
.accordion__item[aria-expanded="true"] .accordion__panel { display: block; }

/* -------- 18. STEPS LIST -------- */
.steps { display: grid; gap: var(--space-6); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; padding: var(--space-5); background: var(--surface-cream); border-radius: var(--radius-md); position: relative; }
.step::before { content: "0" counter(step); display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--tpn-blue); margin-bottom: var(--space-2); }
.step h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.step p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* -------- 19. EVENT CARDS -------- */
.event { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.event__date { padding: var(--space-4); background: var(--tpn-blue); color: white; text-align: center; }
.event__date .month { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tpn-yellow); }
.event__date .day { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; line-height: 1; }
.event__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.event__title { font-size: 1.2rem; margin: 0; }
.event__meta { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.event__cta { margin-top: auto; padding-top: var(--space-3); }

/* -------- 20. EMPTY / NOTICE -------- */
.notice { padding: var(--space-6); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--surface-cream); text-align: center; color: var(--ink-soft); }

/* -------- 21. DONATE PANEL -------- */
.donate {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 203, 31, 0.22) 0%, transparent 55%),
    linear-gradient(135deg, var(--tpn-blue) 0%, var(--tpn-blue-deep) 60%, var(--tpn-blue-ink) 100%);
  color: white;
  padding: var(--space-12);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 203, 31, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 24px 64px rgba(15, 26, 77, 0.28);
}
.donate::before {
  content: ""; position: absolute; top: -120px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255, 203, 31, 0.32), transparent 70%);
  pointer-events: none;
}
.donate h2, .donate h3 { color: white; }
.donate__amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-block: var(--space-6); position: relative; }
@media (min-width: 720px) { .donate__amounts { grid-template-columns: repeat(5, 1fr); } }
.donate__amount {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 203, 31, 0.42);
  color: white;
  padding: var(--space-4) var(--space-2);
  border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 100ms ease, box-shadow 180ms ease;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.donate__amount:hover { background: rgba(255, 203, 31, 0.14); border-color: var(--tpn-yellow); }
.donate__amount:active { transform: translateY(1px); }
.donate__amount.is-active {
  background: var(--tpn-yellow); color: var(--tpn-blue-ink); border-color: var(--tpn-yellow);
  box-shadow:
    inset 0 0 0 2px var(--tpn-blue-ink),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 6px 16px rgba(255, 203, 31, 0.32);
  transform: translateY(-1px);
}
.donate__impact { font-size: 1rem; color: rgba(255, 255, 255, 0.92); margin-block: var(--space-4) var(--space-6); min-height: 28px; font-weight: 500; position: relative; }
.donate__legal { font-size: 0.8rem; color: rgba(255, 255, 255, 0.72); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid rgba(255, 203, 31, 0.22); position: relative; }
.donate .btn--donate { position: relative; }

/* -------- 21b. IMAGE-LED HERO (Get Involved) -------- */
.hero--image { position: relative; min-height: auto; padding-block: var(--space-16); background: var(--tpn-blue); overflow: hidden; }
@media (min-width: 768px) { .hero--image { padding-block: var(--space-20); min-height: 60vh; } }
.hero--image .hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero--image .hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95); }
.hero--image .hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) brightness(0.88); }
.hero--image .hero__bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    100deg,
    var(--tpn-blue-ink) 0%,
    rgba(15, 26, 77, 0.96) 28%,
    rgba(40, 65, 199, 0.84) 50%,
    rgba(40, 65, 199, 0.55) 72%,
    rgba(40, 65, 199, 0.22) 95%,
    rgba(40, 65, 199, 0.08) 100%
  );
}
@media (max-width: 767px) {
  .hero--image .hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(15, 26, 77, 0.94) 0%,
      rgba(40, 65, 199, 0.82) 55%,
      rgba(40, 65, 199, 0.55) 100%
    );
  }
}
.hero--image .container { position: relative; z-index: 1; }
.hero--image .hero__copy { max-width: 540px; }

/* -------- 21c. FEATURE BLOCK (image + text 2-col) -------- */
.feature { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 880px) { .feature { grid-template-columns: 1fr 1fr; gap: var(--space-16); } }
.feature--reverse { direction: rtl; }
.feature--reverse > * { direction: ltr; }
.feature__media { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius-lg); background: var(--tpn-cream); }
.feature__media--wide { aspect-ratio: 16/9; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(15, 26, 77, 0.06); border-radius: inherit; }
.feature__decor { position: absolute; bottom: -16px; right: -16px; width: 120px; height: 120px; background: var(--tpn-yellow); border-radius: 50%; z-index: -1; }
.feature__copy h2 { margin-bottom: var(--space-4); }
.feature__copy h2:first-child { margin-top: 0; }

/* -------- 21d. PARTNERS MARQUEE -------- */
.partners-strip { background: var(--surface-cream); padding-block: var(--space-8); overflow: hidden; border-block: 1px solid var(--border); }
.partners-strip__title { text-align: center; font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-5); }
.partners-marquee { display: flex; gap: var(--space-12); align-items: center; animation: marquee 32s linear infinite; white-space: nowrap; }
.partners-marquee:hover { animation-play-state: paused; }
.partners-marquee span { display: inline-flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--ink-soft); white-space: nowrap; }
.partners-marquee .badge { display: inline-flex; padding: 4px 12px; background: var(--tpn-blue); color: white; font-family: var(--font-body); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--radius-pill); }
@media (prefers-reduced-motion: reduce) { .partners-marquee { animation: none; flex-wrap: wrap; justify-content: center; white-space: normal; } }

/* -------- 21e. COMPACT BOARD GRID -------- */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6); }
.board__card { display: flex; flex-direction: column; gap: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); transition: transform 200ms ease, box-shadow 200ms ease; }
.board__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.board__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); background: var(--tpn-cream); filter: contrast(1.04) saturate(0.94) brightness(1.01); }
.board__name { font-size: 1.05rem; font-weight: 600; margin: 0; color: var(--ink); line-height: 1.2; }
.board__title { font-size: 0.72rem; font-weight: 700; color: var(--tpn-blue); letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.board__bio-preview { font-size: 0.88rem; color: var(--ink-soft); margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.board__more { background: none; border: 0; padding: 0; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; color: var(--tpn-blue); cursor: pointer; text-align: left; margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; }
.board__more:hover { color: var(--tpn-blue-deep); text-decoration: underline; }
.board__more::after { content: "→"; transition: transform 150ms ease; }
.board__more:hover::after { transform: translateX(2px); }

/* -------- 21f. INLINE STATS (single line) -------- */
.stats--inline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid rgba(255, 203, 31, 0.3); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 720px) { .stats--inline { grid-template-columns: repeat(6, 1fr); } }
.stats--inline .stat { padding: var(--space-5) var(--space-3); text-align: center; border-right: 1px solid rgba(255, 203, 31, 0.18); border-bottom: 1px solid rgba(255, 203, 31, 0.18); }
@media (min-width: 720px) { .stats--inline .stat { border-bottom: 0; } }
.stats--inline .stat:last-child, .stats--inline .stat:nth-child(2):nth-last-child(1) { border-right: 0; }
@media (max-width: 719px) { .stats--inline .stat:nth-child(2n) { border-right: 0; } }
.stats--inline .stat__num { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.stats--inline .stat__label { font-size: 0.75rem; margin-top: 4px; }

/* -------- 21g. BOARD MODAL -------- */
.board-modal { position: fixed; inset: 0; background: rgba(15, 26, 77, 0.7); z-index: 100; display: none; align-items: center; justify-content: center; padding: var(--space-6); overflow-y: auto; }
.board-modal.is-open { display: flex; }
.board-modal__card { background: white; border-radius: var(--radius-lg); padding: var(--space-8); max-width: 640px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; }
.board-modal__close { position: absolute; top: var(--space-3); right: var(--space-3); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-cream); font-size: 1.2rem; color: var(--ink); }
.board-modal__close:hover { background: var(--tpn-yellow-soft); }
.board-modal__photo { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin-bottom: var(--space-4); }
.board-modal__photo[data-placeholder="true"] { background: var(--tpn-yellow); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 3rem; color: var(--tpn-blue-ink); }

/* -------- 22. ADMIN PANEL -------- */
.admin-shell { min-height: 100vh; background: var(--surface-cream); }
.admin-nav { background: var(--tpn-blue-ink); color: white; padding: var(--space-4) var(--gutter); display: flex; justify-content: space-between; align-items: center; }
.admin-nav__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: white; }
.admin-nav__title span { display: inline-block; margin-left: var(--space-3); padding: 2px 8px; background: var(--tpn-yellow); color: var(--tpn-blue-ink); font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--radius-sm); vertical-align: middle; }
.admin-content { padding: var(--space-8) var(--gutter); max-width: 1200px; margin-inline: auto; }
.admin-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-6); }
.admin-card h2 { font-size: 1.5rem; margin-bottom: var(--space-4); display: flex; align-items: center; gap: var(--space-3); }
.admin-card h2 .count { font-family: var(--font-body); font-size: 0.85rem; padding: 2px 10px; background: var(--tpn-yellow-soft); color: var(--tpn-blue-ink); border-radius: var(--radius-pill); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.admin-table th, .admin-table td { padding: var(--space-3); text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); background: var(--surface-cream); }
.admin-table tr:hover td { background: rgba(40, 65, 199, 0.03); }
.admin-quick { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-bottom: var(--space-8); }
@media (min-width: 720px) { .admin-quick { grid-template-columns: repeat(3, 1fr); } }
.admin-quick a { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); text-decoration: none; color: var(--ink); transition: transform 200ms ease, box-shadow 200ms ease; }
.admin-quick a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--tpn-blue); }
.admin-quick .icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--tpn-yellow-soft); display: flex; align-items: center; justify-content: center; color: var(--tpn-blue); font-size: 1.5rem; margin-bottom: var(--space-3); }
.admin-quick h3 { font-size: 1.05rem; margin: 0 0 4px; }
.admin-quick p { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--tpn-blue); padding: var(--space-6); }
.login-card { background: white; border-radius: var(--radius-lg); padding: var(--space-12) var(--space-10); max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: 1.75rem; }
.login-card .field { margin-bottom: var(--space-4); }

/* -------- 23. PRINT -------- */
@media print {
  .nav, .footer, .ribbon, .btn, .nav__drawer { display: none !important; }
  body { color: black; background: white; }
}

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