/* =====================================================
   California Triathlon — Main Stylesheet
   Static site v2.0
   Sections:
     1.  CSS Custom Properties
     2.  Reset & Base
     3.  Typography
     4.  Layout & Containers
     5.  Buttons & Links
     6.  Forms
     7.  Announcement Bar
     8.  Navigation
     9.  Hero
    10.  Stats Bar
    11.  Section Scaffolding
    12.  Race Cards
    13.  Feature / Pillar Cards
    14.  Sponsor (Optimism) Section
    15.  Community Callouts
    16.  News Grid & Article Cards
    17.  Article Page
    18.  Email Signup
    19.  Tables
    20.  Events Page
    21.  About Page
    22.  Training / Generic Content Pages
    23.  Partners Page
    24.  Breadcrumb
    25.  Footer
    26.  Utility Classes
    27.  Animations
    28.  Media Queries
   ===================================================== */

/* ---- 1. CSS CUSTOM PROPERTIES ---- */
:root {
  /* Brand colors */
  --blue:         #00529b;
  --blue-dark:    #003b70;
  --blue-light:   #1ebef0;
  --blue-lighter: #e8f4fd;
  --yellow:       #f0cc01;
  --yellow-bright:#ffde17;
  --yellow-dark:  #c9a900;
  --navy:         #0a1628;
  --navy-deep:    #050e1a;

  /* Neutral palette */
  --text:         #1a2332;
  --text-muted:   #5a6878;
  --text-light:   #9ca3af;
  --surface:      #ffffff;
  --surface-alt:  #f0f5fb;
  --surface-mid:  #e4ecf5;
  --border:       #d8e3ef;

  /* Typography */
  --font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container:     1200px;
  --container-pad: clamp(1rem, 5vw, 2rem);
  --nav-height:    68px;

  /* Spacing */
  --s1:  0.25rem;  --s2: 0.5rem;   --s3: 0.75rem;
  --s4:  1rem;     --s5: 1.25rem;  --s6: 1.5rem;
  --s8:  2rem;     --s10: 2.5rem;  --s12: 3rem;
  --s16: 4rem;     --s20: 5rem;    --s24: 6rem;

  /* Radius */
  --r-sm:   4px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm:   0 1px 4px rgba(0,0,0,.07);
  --sh-md:   0 4px 16px rgba(0,0,0,.09);
  --sh-lg:   0 10px 40px rgba(0,0,0,.11);
  --sh-xl:   0 20px 60px rgba(0,0,0,.15);
  --sh-blue: 0 4px 20px rgba(0,82,155,.3);
  --sh-card: 0 2px 8px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);

  /* Transitions */
  --t-fast: 140ms ease;
  --t-base: 240ms ease;
  --t-slow: 380ms ease;
}


/* ---- 2. RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--blue-dark); }

ul { list-style: none; }

table { border-collapse: collapse; width: 100%; }

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


/* ---- 3. TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem);   font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

.display-xl {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.display-lg {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
}

p { margin-bottom: var(--s4); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-muted);
}

strong { font-weight: 600; }

blockquote {
  border-left: 4px solid var(--blue-light);
  padding: var(--s4) var(--s6);
  margin: var(--s6) 0;
  background: var(--surface-alt);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
}


/* ---- 4. LAYOUT & CONTAINERS ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow { max-width: 820px; }
.container--wide   { max-width: 1400px; }

.section {
  padding-block: var(--s16);
}
.section--sm  { padding-block: var(--s10); }
.section--lg  { padding-block: var(--s24); }
.section--alt { background: var(--surface-alt); }
.section--dark {
  background: var(--navy);
  color: var(--surface);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--surface); }

.grid {
  display: grid;
  gap: var(--s6);
}
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.gap-4 { gap: var(--s4); }
.gap-6 { gap: var(--s6); }


/* ---- 5. BUTTONS & LINKS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.7em 1.6em;
  border: 2px solid transparent;
  border-radius: var(--r-full);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast),
              box-shadow var(--t-fast), transform var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}
.btn--primary:hover {
  background: var(--yellow-bright);
  border-color: var(--yellow-bright);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(240,204,1,.45);
}

.btn--blue {
  background: var(--blue);
  color: var(--surface);
  border-color: var(--blue);
}
.btn--blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--surface);
  box-shadow: var(--sh-blue);
}

.btn--outline {
  background: transparent;
  color: var(--surface);
  border-color: rgba(255,255,255,.65);
}
.btn--outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--surface);
  color: var(--surface);
}

.btn--outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline-blue:hover {
  background: var(--blue);
  color: var(--surface);
}

.btn--sm  { font-size: 0.82rem; padding: 0.55em 1.2em; }
.btn--lg  { font-size: 1.1rem;  padding: 0.85em 2em; }
.btn--xl  { font-size: 1.2rem;  padding: 1em 2.4em; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  align-items: center;
}

.link-arrow {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}
.link-arrow::after {
  content: '→';
  transition: transform var(--t-fast);
}
.link-arrow:hover::after { transform: translateX(4px); }


/* ---- 6. FORMS ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-input {
  padding: 0.75em 1em;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--t-fast);
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--blue-light);
}

.email-form {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
}
.email-form .form-input {
  flex: 1;
  min-width: 220px;
}


/* ---- 7. ANNOUNCEMENT BAR ---- */
.announce-bar {
  background: var(--navy);
  color: rgba(255,255,255,.9);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem var(--container-pad);
  text-align: center;
  position: relative;
  letter-spacing: 0.03em;
}
.announce-bar a {
  color: var(--yellow);
  font-weight: 700;
  text-decoration: none;
}
.announce-bar a:hover { color: var(--yellow-bright); text-decoration: underline; }

.announce-bar .announce-star {
  color: var(--yellow);
  margin-inline: var(--s2);
}

.announce-bar__close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: var(--s1);
  transition: color var(--t-fast);
}
.announce-bar__close:hover { color: var(--surface); }

.announce-bar.hidden { display: none; }


/* ---- 7b. COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  background: var(--navy);
  color: rgba(255,255,255,.92);
  border-top: 3px solid var(--yellow);
  box-shadow: 0 -8px 32px rgba(0,0,0,.18);
  padding: var(--s4) 0;
  transform: translateY(0);
  transition: transform var(--t-base), opacity var(--t-base);
}
.cookie-banner--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
}
.cookie-banner__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 52rem;
}
.cookie-banner__text a {
  color: var(--yellow);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__text a:hover { color: var(--yellow-bright); }
.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: var(--s3);
}
.cookie-banner .btn--outline {
  color: var(--surface);
  border-color: rgba(255,255,255,.45);
}
.cookie-banner .btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--surface);
  color: var(--surface);
}


/* ---- 8. NAVIGATION ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--t-base);
}
.site-nav.scrolled { box-shadow: var(--sh-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--s4);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--blue);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark svg { width: 24px; height: 24px; fill: var(--surface); }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-text span:first-child {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}
.nav-logo-text span:last-child {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s2);
  list-style: none;
}
.nav-links > li { position: relative; }

.nav-links > li > a,
.nav-links > li > .nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--s1);
  padding: var(--s2) var(--s3);
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: background var(--t-fast), color var(--t-fast);
  text-decoration: none;
}
.nav-links > li > a:hover,
.nav-links > li > a[aria-current="page"],
.nav-links > li > .nav-dropdown-toggle:hover,
.nav-links > li > .nav-dropdown-toggle:focus-visible {
  background: var(--surface-alt);
  color: var(--blue);
}

/* Dropdown caret */
.nav-caret {
  font-size: 0.65em;
  opacity: 0.6;
  transition: transform var(--t-fast);
}
.nav-links > li:hover .nav-caret { transform: rotate(180deg); }

/* Dropdown menu */
.nav-dropdown {
  position: absolute;
  top: calc(100% + var(--s2));
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--s3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-base), visibility var(--t-base), transform var(--t-base);
  list-style: none;
  z-index: 100;
}
.nav-dropdown li a {
  display: block;
  padding: var(--s3) var(--s4);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: background var(--t-fast), color var(--t-fast);
  text-decoration: none;
}
.nav-dropdown li a:hover {
  background: var(--surface-alt);
  color: var(--blue);
}
.nav-dropdown-heading {
  padding: var(--s2) var(--s4) var(--s1);
  margin-top: var(--s2);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}
.nav-dropdown > .nav-dropdown-heading:first-child {
  margin-top: 0;
}
.nav-dropdown--training {
  min-width: 240px;
}
.nav-dropdown--races {
  min-width: 240px;
  overflow: visible;
}
.nav-flyout {
  position: relative;
}
.nav-flyout-label {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-flyout-label:hover,
.nav-flyout:focus-within > .nav-flyout-label {
  background: var(--surface-alt);
  color: var(--blue);
}
.nav-flyout-menu {
  position: absolute;
  top: 0;
  left: calc(100% - 2px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  list-style: none;
  opacity: 0;
  padding: var(--s3);
  transform: translateX(-8px);
  transition: opacity var(--t-base), visibility var(--t-base), transform var(--t-base);
  visibility: hidden;
}
.nav-flyout:hover > .nav-flyout-menu,
.nav-flyout:focus-within > .nav-flyout-menu {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}
.nav-links > li:hover .nav-dropdown,
.nav-links > li:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Register CTA in nav */
.nav-cta { margin-left: var(--s2); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s2);
  border-radius: var(--r-sm);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: var(--r-full);
  transition: all var(--t-base);
}
.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 nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--surface);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.nav-mobile.open {
  display: flex;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.nav-mobile-links {
  list-style: none;
  padding: var(--s4) var(--container-pad);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}
.nav-mobile-links a,
.nav-mobile-links .nav-mobile-label {
  display: block;
  padding: var(--s3) var(--s4);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.nav-mobile-links a:hover { background: var(--surface-alt); color: var(--blue); }
.nav-mobile-links .nav-mobile-sub {
  padding-left: var(--s4);
  border-left: 2px solid var(--border);
  margin-top: var(--s1);
  margin-left: var(--s4);
}
.nav-mobile-links .nav-mobile-sub a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--s2) var(--s4);
}
.nav-mobile-links .nav-mobile-sub .nav-mobile-label {
  padding: var(--s3) var(--s4) var(--s1);
  margin-top: var(--s2);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-mobile-links .nav-mobile-sub > li:first-child .nav-mobile-label {
  margin-top: 0;
}
.nav-mobile-accordion-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: var(--s2) var(--s4);
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-mobile-accordion-toggle:hover,
.nav-mobile-accordion-toggle[aria-expanded="true"] {
  background: var(--surface-alt);
  color: var(--blue);
}
.nav-mobile-accordion-toggle span {
  transition: transform var(--t-fast);
}
.nav-mobile-accordion-toggle[aria-expanded="true"] span {
  transform: rotate(180deg);
}
.nav-mobile-accordion-panel {
  list-style: none;
  margin-left: var(--s4);
  padding-left: var(--s3);
  border-left: 2px solid var(--border);
}
.nav-mobile-links .nav-mobile-accordion-panel a {
  font-size: 0.86rem;
  font-weight: 500;
  padding: var(--s2) var(--s4);
}
.nav-mobile-cta {
  padding: var(--s4) var(--container-pad) var(--s6);
}


/* ---- 9. HERO ---- */
.hero {
  animation: heroZoom 18s ease-in-out infinite alternate;
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(
      155deg,
      rgba(0, 15, 50, 0.78) 0%,
      rgba(0, 50, 120, 0.68) 45%,
      rgba(0, 82, 155, 0.55) 75%,
      rgba(30, 190, 240, 0.20) 100%
    ),
    url('/assets/img/hero.jpg') center 30% / cover no-repeat,
    linear-gradient(135deg, #001e4d 0%, #00529b 100%);
  color: var(--surface);
}

@keyframes heroZoom {
  from {
    background-size: 100%;
  }
  to {
    background-size: 110%;
  }
}

/* Abstract wave shape at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--surface);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--s20);
  max-width: 720px;
}

.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--surface);

  margin-top: var(--s6);
  margin-bottom: var(--s5);

  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  background: rgba(240,204,1,.15);
  border: 1px solid rgba(240,204,1,.35);
  color: var(--yellow);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: var(--s2) var(--s4);
  border-radius: var(--r-full);
  margin-bottom: var(--s6);
}

.hero-title {
  color: var(--surface);
  margin-bottom: var(--s4);
  max-width: 760px;
  line-height: 0.9;
}

.hero-title em {
  font-style: normal;
  color: var(--yellow);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.92);
  max-width: 520px;
  margin-bottom: var(--s6);
  font-weight: 400;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0,0,0,.20);
}



.hero-next-race {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s5);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-full);
  font-size: 0.88rem;
  color: var(--yellow-bright);
  margin-top: var(--s6);
}

.hero-next-race strong {
  color: var(--yellow-bright);
  font-weight: 700;
}
.hero-next-race .divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.3);
}

/* Photo credit / image overlay text */
.hero-with-image {
  background-size: cover;
  background-position: center;
}


/* ---- 10. STATS BAR ---- */
.stats-bar {
  background: var(--blue);
  color: var(--surface);
  padding-block: var(--s8);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
  text-align: center;
}

.stat-item {}
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--s1);
  display: block;
}


/* ---- 11. SECTION SCAFFOLDING ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--s12);
}
.section-header.left { text-align: left; }
.section-header .eyebrow { margin-bottom: var(--s3); display: block; }
.section-header h2 { margin-bottom: var(--s4); }
.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-inline: auto;
}
.section-header.left p { margin-inline: 0; }

.section-footer {
  text-align: center;
  margin-top: var(--s10);
}


/* ---- 12. RACE CARDS ---- */
.race-cards { }

.race-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-card);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
}
.race-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.race-card-header {
  background: var(--blue);
  padding: var(--s4) var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.race-card-date {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--surface);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.race-card-region {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-full);
}

.race-card-body {
  padding: var(--s5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.race-card-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--s2);
  line-height: 1.1;
}
.race-card-location {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: var(--s3);
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
}
.race-card-location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: var(--text-muted);
}
.race-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--s4);
  flex: 1;
  line-height: 1.5;
}
.race-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s4);
}
.race-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  background: var(--blue-lighter);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.race-badge--yellow {
  background: rgba(240,204,1,.15);
  color: var(--yellow-dark);
}
.race-badge--green {
  background: rgba(16,185,129,.1);
  color: #047857;
}

.race-card-footer {
  padding: var(--s4) var(--s5);
  border-top: 1px solid var(--border-light);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.race-card-time {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}


/* ---- 13. FEATURE / PILLAR CARDS ---- */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--s6);
}

@media (min-width: 1200px) {
  .feature-cards--six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--s4);
  }

  .feature-cards--six .feature-card {
    padding: var(--s5);
  }

  .feature-cards--six .feature-card-icon {
    width: 74px;
    height: 74px;
    margin-bottom: var(--s3);
    font-size: 1.5rem;
  }

  .feature-cards--six .feature-card-highlight {
    font-size: 1.05rem;
  }

  .feature-cards--six .feature-card-title {
    font-size: 0.95rem;
  }

  .feature-cards--six .feature-card-body {
    font-size: 0.86rem;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8);
  text-align: center;
  box-shadow: var(--sh-card);
  transition: transform var(--t-base), box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
}

.feature-card-icon {
  width: 64px;
  height: 64px;
  background: var(--blue-lighter);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s5);
  font-size: 1.8rem;
}

.feature-card-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--s3);
  letter-spacing: 0.04em;
}

.feature-card-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.feature-card-highlight {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: var(--s2);
}

.feature-card-highlight--spacer {
  visibility: hidden;
}

.feature-cards--six .feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-cards--six .feature-card-icon {
  background: transparent;
  border-radius: 0;
}

.feature-cards--six .feature-card-highlight {
  min-height: 2.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s2);
  line-height: 1.25;
  color: var(--blue-dark);
}

.feature-cards--six .feature-card-title {
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s3);
  line-height: 1.2;
}

.feature-cards--six .feature-card-body {
  margin: 0;
}

.community-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.community-card {
  flex: 1 1 300px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
}

.community-card .btn {
  align-self: center;
  margin-top: auto;
}

.community-cta-actions {
  justify-content: center;
}


/* ---- 14. KIT PROMO SECTION ---- */
.kit-promo-section {
  background: var(--surface-alt);
  padding-block: var(--s10);
}

.kit-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--navy);
  box-shadow: var(--sh-xl);
}

.kit-promo-image {
  min-height: 320px;
  background: var(--blue-dark);
}

.kit-promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kit-promo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(30,190,240,.22), transparent 42%),
    linear-gradient(135deg, var(--blue-dark), var(--navy));
  color: var(--surface);
}

.kit-promo-content .eyebrow {
  color: var(--yellow);
  margin-bottom: var(--s3);
}

.kit-promo-content h2 {
  color: var(--surface);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--s4);
}

.kit-promo-content p {
  max-width: 520px;
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: var(--s6);
}

.kit-promo-actions .btn--outline {
  color: var(--surface);
  border-color: rgba(255,255,255,.65);
}

.kit-promo-actions .btn--outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--surface);
}


/* ---- 15. SPONSOR (OPTIMISM) SECTION ---- */
.sponsor-section {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  padding-block: var(--s24);
  text-align: center;
}

/* Cosmic gradient layers */
.sponsor-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 82, 155, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(30, 190, 240, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(240, 204, 1, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Star field via box-shadow pattern */
.sponsor-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at  8%  7%, rgba(255,255,255,.75) 0%, transparent 100%),
    radial-gradient(1px   1px   at 17% 22%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 28%  3%, rgba(255,255,255,.8)  0%, transparent 100%),
    radial-gradient(1px   1px   at 38% 45%, rgba(255,255,255,.5)  0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 47% 12%, rgba(255,255,255,.7)  0%, transparent 100%),
    radial-gradient(1px   1px   at 55% 35%, rgba(255,255,255,.6)  0%, transparent 100%),
    radial-gradient(2px   2px   at 63% 58%, rgba(255,255,255,.4)  0%, transparent 100%),
    radial-gradient(1px   1px   at 73%  8%, rgba(255,255,255,.85) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 82% 28%, rgba(255,255,255,.65) 0%, transparent 100%),
    radial-gradient(1px   1px   at 91% 18%, rgba(255,255,255,.7)  0%, transparent 100%),
    radial-gradient(1px   1px   at  3% 55%, rgba(255,255,255,.5)  0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 12% 72%, rgba(255,255,255,.8)  0%, transparent 100%),
    radial-gradient(1px   1px   at 24% 88%, rgba(255,255,255,.6)  0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 36% 65%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(1px   1px   at 50% 92%, rgba(255,255,255,.75) 0%, transparent 100%),
    radial-gradient(2px   2px   at 60% 78%, rgba(255,255,255,.45) 0%, transparent 100%),
    radial-gradient(1px   1px   at 70% 62%, rgba(255,255,255,.6)  0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 83%, rgba(255,255,255,.8)  0%, transparent 100%),
    radial-gradient(1px   1px   at 94% 95%, rgba(255,255,255,.5)  0%, transparent 100%),
    radial-gradient(1px   1px   at  5% 38%, rgba(255,255,255,.65) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 44% 78%, rgba(255,255,255,.4)  0%, transparent 100%),
    radial-gradient(1px   1px   at 87% 48%, rgba(255,255,255,.7)  0%, transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}

.sponsor-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
}

.sponsor-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  border: 1px solid rgba(240,204,1,.4);
  color: var(--yellow);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: var(--s2) var(--s5);
  border-radius: var(--r-full);
  margin-bottom: var(--s8);
  background: rgba(240,204,1,.08);
}

.sponsor-wordmark {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--surface);
  line-height: 0.9;
  margin-bottom: var(--s5);
}
.sponsor-wordmark em {
  font-style: normal;
  color: #ffffff;
}

.sponsor-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #ffffff;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: var(--s6);
  font-style: italic;
}

.sponsor-desc {
  font-size: 1rem;
  color: #ffffff;
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--s8);
  line-height: 1.65;
}

.sponsor-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffc586, transparent);
  margin: var(--s8) auto;
}

/* Home sponsor / partner logo strip */
.home-partners-section {
  background:
    linear-gradient(180deg, rgba(240,245,251,.72), rgba(255,255,255,1));
  padding-block: var(--s8);
}

.home-partners-strip {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 2fr) minmax(180px, 1fr);
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  overflow: hidden;
}

.home-partner-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  min-height: 210px;
  padding: var(--s6);
  text-align: center;
}

.home-partner-group + .home-partner-group {
  border-left: 1px solid var(--border);
}

.home-partner-heading {
  color: var(--blue);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  line-height: 1;
}

.home-partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s6) var(--s8);
  width: 100%;
}

.home-partner-logos--single {
  flex-wrap: nowrap;
}

.home-partner-logo {
  width: auto;
  max-width: min(180px, 42vw);
  max-height: 48px;
  object-fit: contain;
}

.home-partner-logo--title {
  max-width: min(230px, 56vw);
  max-height: 58px;
}

.home-partner-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.home-partner-wordmark--starbucks {
  color: #00704a;
}

.home-partner-wordmark--google {
  color: #4285f4;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-transform: none;
}

.home-partner-group--community {
  gap: var(--s3);
  background:
    radial-gradient(circle at 50% 38%, rgba(0,82,155,.06), transparent 46%),
    var(--surface);
}

.home-community-partner-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-lighter);
  color: var(--blue);
}

.home-community-partner-icon svg {
  width: 40px;
  height: 40px;
}

.home-community-partner-title {
  color: var(--blue);
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: none;
  margin-top: var(--s1);
}

.home-community-partner-copy {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  max-width: 240px;
  margin: 0;
}

.home-community-partner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  min-width: min(100%, 170px);
  border: 2px solid var(--blue);
  border-radius: var(--r-full);
  padding: var(--s2) var(--s4);
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.home-community-partner-link:hover {
  background: var(--blue);
  color: var(--surface);
}


/* ---- 16. COMMUNITY CALLOUTS ---- */
.community-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--s6);
}

.community-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--sh-card);
  transition: transform var(--t-base), box-shadow var(--t-base);
  text-decoration: none;
}
.community-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-xl);
}
.community-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--t-slow);
}
.community-card:hover .community-card-bg {
  transform: scale(1.04);
}

/* Gradient overlays for each card */
.community-card--kids .community-card-bg {
  background: linear-gradient(135deg, #003b70 0%, #00529b 50%, #1ebef0 100%);
}
.community-card--vogo .community-card-bg {
  background: linear-gradient(135deg, #1a1a3e 0%, #003b70 50%, #00529b 100%);
}
.community-card--clinics .community-card-bg {
  background: linear-gradient(135deg, #0a2040 0%, #00529b 60%, #1ebef0 100%);
}

.community-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.4) 50%,
    transparent 100%
  );
}

.community-card-content {
  position: relative;
  z-index: 1;
  padding: var(--s6);
  color: var(--surface);
}
.community-card-content .eyebrow { color: var(--yellow); margin-bottom: var(--s2); display: block; }
.community-card-content h3 {
  color: var(--surface);
  font-size: 1.5rem;
  margin-bottom: var(--s2);
}
.community-card-content p {
  font-size: 0.88rem;
  color: rgba(255,255,255,.8);
  margin-bottom: var(--s4);
}
.community-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--yellow);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.community-card-link::after {
  content: '→';
  transition: transform var(--t-fast);
}
.community-card:hover .community-card-link::after { transform: translateX(4px); }


/* ---- 17. NEWS GRID & ARTICLE CARDS ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: var(--s6);
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-card);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  color: var(--text);
}

.news-card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--surface-mid) 0%, var(--border) 100%);
  overflow: hidden;
  position: relative;
}
.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Placeholder gradient when no image */
.news-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #003b70 0%, #1ebef0 100%);
  opacity: 0.15;
}

.news-card-body {
  padding: var(--s5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s3);
}

.news-tag {
  background: var(--blue-lighter);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.news-tag--recap   { background: rgba(16,185,129,.1);   color: #047857; }
.news-tag--update  { background: rgba(240,204,1,.15);   color: #7a6600; }
.news-tag--feature { background: rgba(139,92,246,.1);   color: #5b21b6; }

.news-date {
  font-size: 0.78rem;
  color: var(--text-light);
}

.news-card-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--s3);
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: var(--s4);
}

.news-card-footer {
  border-top: 1px solid var(--border);
  padding-top: var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pagination {
  margin-top: var(--s8);
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color var(--t-base), color var(--t-base), background var(--t-base);
}

a.pagination-link:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-lighter);
}

.pagination-link--current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  cursor: default;
}

.pagination-link--disabled {
  opacity: 0.45;
  cursor: default;
}

.pagination-link--prev,
.pagination-link--next {
  min-width: auto;
  padding-inline: 1rem;
}


/* ---- 17b. INSTAGRAM GRID ---- */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: var(--s6);
}

.ig-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-card);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
}

.ig-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  color: var(--text);
}

.ig-card-image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--surface-mid) 0%, var(--border) 100%);
  overflow: hidden;
  position: relative;
}

.ig-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #003b70 0%, #1ebef0 100%);
  opacity: 0.15;
}

.ig-card-body {
  padding: var(--s5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ig-card-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}


/* ---- 17. ARTICLE PAGE ---- */
.article-header {
  background: var(--blue);
  color: var(--surface);
  padding: var(--s8) 0 var(--s10);
  text-align: center;
}
.article-header .eyebrow { color: rgba(255,255,255,.7); margin-bottom: var(--s4); display: block; }
.article-header h1 {
  color: var(--surface);
  max-width: 980px;
  margin: 0 auto var(--s4);
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.article-header .article-meta {
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

.article-body {
  padding: var(--s12) 0;
}

.article-body > .container {
  max-width: 980px;
}

.article-body h2 { margin: var(--s8) 0 var(--s4); font-size: 1.7rem; }
.article-body h3 { margin: var(--s6) 0 var(--s3); font-size: 1.35rem; }
.article-body p  { margin-bottom: var(--s5); font-size: 1.05rem; line-height: 1.7; }
.article-body ul,
.article-body ol { padding-left: var(--s6); margin-bottom: var(--s5); }
.article-body li { margin-bottom: var(--s2); font-size: 1.05rem; line-height: 1.65; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body img {
  width: 100%;
  border-radius: var(--r-lg);
  margin-block: var(--s6);
}

.article-featured-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--r-xl);
  margin-bottom: var(--s8);
  box-shadow: var(--sh-xl);
}

.article-image-placeholder {
  min-height: clamp(220px, 36vw, 420px);
  background:
    linear-gradient(135deg, rgba(0,82,155,.82), rgba(30,190,240,.78)),
    radial-gradient(circle at 20% 20%, rgba(240,204,1,.32), transparent 34%);
}

.article-featured-image--contain {
  height: auto;
  max-height: none;
  object-fit: contain;
}

.article-featured-figure {
  margin: var(--s6) 0 var(--s8);
}

.article-featured-figure .article-featured-image {
  margin: 0;
}

.article-featured-figure figcaption {
  margin-top: var(--s2);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: right;
}

.article-chart-figure {
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
}

.article-chart-figure--portrait {
  max-width: 680px;
  margin-inline: auto;
}

.article-chart-figure .article-chart-image {
  border-radius: var(--r-md);
  box-shadow: none;
}

.article-chart-figure figcaption {
  padding-inline: var(--s1);
}


/* ---- 18. EMAIL SIGNUP ---- */
.email-section {
  background: var(--blue);
  color: var(--surface);
  padding-block: var(--s16);
  text-align: center;
}
.email-section h2 { color: var(--surface); margin-bottom: var(--s3); }
.email-section p  { color: rgba(255,255,255,.8); margin-bottom: var(--s8); font-size: 1.1rem; }

.email-signup-form {
  display: flex;
  gap: var(--s3);
  max-width: 500px;
  margin-inline: auto;
  flex-wrap: wrap;
}
.email-signup-form .form-input {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
  color: var(--surface);
}
.email-signup-form .form-input::placeholder { color: rgba(255,255,255,.55); }
.email-signup-form .form-input:focus { border-color: var(--yellow); }

.email-privacy {
  font-size: 0.78rem;
  color: rgba(255,255,255,.45);
  margin-top: var(--s4);
}


/* ---- 19. TABLES ---- */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  font-size: 0.9rem;
}
.data-table th {
  text-align: left;
  padding: var(--s3) var(--s4);
  background: var(--surface-alt);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-alt); }

.table-wrap--funding {
  max-width: 760px;
  margin: var(--s6) 0 var(--s8);
}

.data-table--funding .funding-amount-col {
  width: 11rem;
}

.data-table--funding th[colspan] {
  background: var(--blue-lighter);
  color: var(--text);
}

.data-table--funding td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.table-wrap--responsive {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.table-scroll-hint {
  display: none;
  margin-bottom: var(--s3);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.sortable-table th {
  background: var(--surface-alt);
  line-height: 1.25;
  white-space: normal;
}

.sortable-table th[data-sort] {
  cursor: pointer;
  user-select: none;
}

.sortable-table th[data-sort] button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  width: 100%;
  min-width: 100%;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-align: center;
  text-transform: inherit;
}

.sortable-table th[data-sort] button span {
  min-width: 0;
  max-width: 8.5em;
  white-space: normal;
}

.sortable-table th[data-sort] button::after {
  content: '↕';
  color: var(--blue);
  flex-shrink: 0;
  font-size: 0.78rem;
  line-height: 1;
  opacity: 0.7;
}

.sortable-table th[aria-sort="ascending"] button::after { content: '↑'; opacity: 1; }
.sortable-table th[aria-sort="descending"] button::after { content: '↓'; opacity: 1; }

.sortable-table td,
.sortable-table th {
  min-width: 92px;
  text-align: center;
}

.sortable-table td:first-child,
.sortable-table th:first-child {
  min-width: 170px;
  text-align: left;
}

.sortable-table td:first-child a {
  font-weight: 600;
}

.course-guide-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: var(--s8);
  align-items: center;
}

.course-guide-image {
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  overflow: hidden;
}

.course-guide-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.course-guide-note {
  background: var(--blue-lighter);
  border-left: 4px solid var(--blue-light);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--blue-dark);
  padding: var(--s4) var(--s5);
  font-size: 0.95rem;
}


/* ---- 20. EVENTS PAGE ---- */
.events-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-bottom: var(--s8);
}
.filter-btn {
  padding: 0.4em 1.1em;
  border: 2px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--surface);
}

.month-group { margin-bottom: var(--s12); }
.month-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  padding-bottom: var(--s3);
  margin-bottom: var(--s5);
}

.events-list-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--s5);
  align-items: center;
  padding: var(--s5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  margin-bottom: var(--s4);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.events-list-item:hover {
  transform: translateX(3px);
  box-shadow: var(--sh-md);
}

.event-date-block {
  text-align: center;
  background: var(--blue);
  color: var(--surface);
  border-radius: var(--r-md);
  padding: var(--s3);
  flex-shrink: 0;
}
.event-date-month {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}
.event-date-day {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--yellow);
}

.event-list-info h3 {
  font-size: 1.15rem;
  margin-bottom: var(--s1);
}
.event-list-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}


/* ---- 21. ABOUT PAGE ---- */
.mission-banner {
  background: var(--blue);
  color: var(--surface);
  padding: var(--s5) 0;
  text-align: center;
}
.mission-banner p {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255,255,255,.9);
  margin: 0;
}
.mission-banner strong { color: var(--yellow); }

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: var(--s5);
}
.leader-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s6) var(--s5);
  text-align: center;
  box-shadow: var(--sh-card);
}
.leader-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  background: var(--blue);
  margin: 0 auto var(--s4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--surface);
  overflow: hidden;
}
.leader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.leader-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: var(--s1);
}
.leader-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ---- 22. TRAINING / GENERIC CONTENT PAGES ---- */
.page-hero {
  background: var(--blue);
  color: var(--surface);
  padding: var(--s10) 0 var(--s12);
}
.page-hero .eyebrow { color: rgba(255,255,255,.65); display: block; margin-bottom: var(--s3); }
.page-hero h1 { color: var(--surface); max-width: 680px; }
.page-hero p {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 580px;
  margin-top: var(--s4);
}
.page-hero p a {
  color: var(--yellow-bright);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-hero p a:hover {
  color: var(--surface);
}

.content-section {
  max-width: 860px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--s4);
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.checklist-item::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--blue);
  color: var(--surface);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 1px;
}

.numbered-list {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.numbered-item {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.numbered-item-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--surface);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
}
.numbered-item-body h4 { margin-bottom: var(--s1); font-size: 1rem; }
.numbered-item-body p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.report-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s6);
}
.report-lightbox[hidden] { display: none; }
.report-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 26, 0.82);
}
.report-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1000px);
  max-height: calc(100vh - var(--s12));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
}
.report-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--border);
}
.report-lightbox__title {
  margin: 0;
  font-size: 1.2rem;
}
.report-lightbox__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.report-lightbox__close:hover {
  background: var(--blue);
  color: var(--surface);
}
.report-lightbox__body {
  min-height: 0;
  overflow: auto;
  padding: var(--s4);
  background: var(--surface-alt);
}
.report-lightbox__image {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  margin-inline: auto;
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
}
.report-lightbox__open-link {
  padding: var(--s3) var(--s5) var(--s4);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}


/* ---- 23. PARTNERS PAGE ---- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: var(--s5);
}
.partner-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s6);
  text-align: center;
  background: var(--surface);
  box-shadow: var(--sh-card);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.partner-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.partner-logo-area {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s4);
}
.partner-logo-area img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(20%);
}
.partner-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--s2);
}
.partner-deal {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ---- 24. BREADCRUMB ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-block: var(--s4);
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep {
  color: var(--border);
  font-size: 0.75rem;
}

.page-hero .breadcrumb,
.article-header .breadcrumb {
  color: rgba(255,255,255,.95);
  padding: 0 0 var(--s6);
}

.page-hero .breadcrumb a,
.article-header .breadcrumb a {
  color: rgba(255,255,255,.95);
}

.page-hero .breadcrumb a:hover,
.article-header .breadcrumb a:hover {
  color: var(--yellow-bright);
}

.page-hero .breadcrumb-sep,
.article-header .breadcrumb-sep {
  color: rgba(255,255,255,.65);
}


/* ---- 25. FOOTER ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding-top: var(--s12);
  padding-bottom: var(--s8);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(360px, 420px) max-content max-content;
  justify-content: space-between;
  gap: var(--s8);
  margin-bottom: var(--s8);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: var(--s6);
}
.footer-brand-body {
  flex: 1;
  min-width: 0;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex: 0 0 auto;
  text-decoration: none;
}
.footer-logo-mark {
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo-mark svg { width: 26px; height: 26px; fill: var(--surface); }
.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.footer-logo-text span:first-child {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--surface);
}
.footer-logo-text span:last-child {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

.footer-mission {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: var(--s5);
}

.footer-brand-contact {
  margin-bottom: var(--s5);
}

.footer-brand-contact h4 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--surface);
  margin-bottom: var(--s4);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}
.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.social-link:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
  background: rgba(30,190,240,.1);
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--surface);
  margin-bottom: var(--s5);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.footer-col a {
  color: rgba(255,255,255,.6);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--surface); }

.footer-address {
  font-size: 0.88rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin-bottom: var(--s4);
}
.footer-address strong { color: rgba(255,255,255,.8); }

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: rgba(255,255,255,.6);
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: var(--s2);
}
.footer-contact-link:hover { color: var(--surface); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--s6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
  font-size: 0.8rem;
  color: rgba(255,255,255,.35);
}
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: var(--s6);
  padding-top: var(--s5);
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255,255,255,.42);
}
.footer-legal p {
  max-width: 980px;
}
.footer-legal p + p {
  margin-top: var(--s3);
}
.footer-bottom a {
  color: rgba(255,255,255,.35);
  text-decoration: none;
}
.footer-bottom a:hover { color: rgba(255,255,255,.7); }
.footer-bottom-links {
  display: flex;
  gap: var(--s5);
}


/* ---- 26. UTILITY CLASSES ---- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-blue   { color: var(--blue); }
.text-yellow { color: var(--yellow-dark); }
.text-muted  { color: var(--text-muted); }
.text-white  { color: var(--surface); }

.bg-blue     { background: var(--blue); }
.bg-navy     { background: var(--navy); }
.bg-alt      { background: var(--surface-alt); }
.bg-yellow   { background: var(--yellow); }

.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: var(--s4); }
.mb-6  { margin-bottom: var(--s6); }
.mb-8  { margin-bottom: var(--s8); }
.mb-12 { margin-bottom: var(--s12); }
.mt-4  { margin-top: var(--s4); }
.mt-6  { margin-top: var(--s6); }
.mt-8  { margin-top: var(--s8); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: var(--s8);
}

.alert {
  padding: var(--s4) var(--s5);
  border-radius: var(--r-md);
  font-size: 0.92rem;
  margin-bottom: var(--s5);
}
.alert--info  { background: var(--blue-lighter); color: var(--blue-dark); border-left: 4px solid var(--blue-light); }
.alert--warn  { background: rgba(240,204,1,.12); color: #7a5f00; border-left: 4px solid var(--yellow); }
.alert--green { background: rgba(16,185,129,.1); color: #065f46; border-left: 4px solid #10b981; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill--blue   { background: var(--blue-lighter); color: var(--blue); }
.pill--yellow { background: rgba(240,204,1,.15); color: var(--yellow-dark); }


/* ---- 27. ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}

.animate-up {
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}
.animate-up--delay-1 { animation-delay: 0.1s; }
.animate-up--delay-2 { animation-delay: 0.2s; }
.animate-up--delay-3 { animation-delay: 0.3s; }
.animate-up--delay-4 { animation-delay: 0.4s; }


/* ---- 28. MEDIA QUERIES ---- */

/* Large screens */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-mobile  { display: none !important; }
  .nav-links   { display: flex; }
}

/* Medium and below */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-toggle { display: flex; }

  .kit-promo {
    grid-template-columns: 1fr;
  }

  .kit-promo-image {
    min-height: 280px;
  }

  .course-guide-intro {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Tablet */
@media (max-width: 767px) {
  :root {
    --nav-height: 60px;
  }

  .table-scroll-hint {
    display: block;
  }

  .sortable-table {
    font-size: 0.82rem;
  }

  .sortable-table th,
  .sortable-table td {
    min-width: 88px;
    padding: var(--s2) var(--s3);
  }

  .sortable-table td:first-child,
  .sortable-table th:first-child {
    min-width: 160px;
  }

  .hero { min-height: 480px; }
  .hero::after { height: 48px; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s5);
  }

  .feature-cards {
    grid-template-columns: 1fr 1fr;
  }

  .kit-promo-section {
    padding-block: var(--s8);
  }

  .kit-promo-content {
    padding: var(--s8);
  }

  .home-partners-strip {
    grid-template-columns: 1fr;
  }

  .home-partner-group {
    min-height: 180px;
    padding: var(--s6);
  }

  .home-partner-group + .home-partner-group {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s8);
  }
  .footer-brand {
    flex-direction: column;
    gap: var(--s4);
  }

  .events-list-item {
    grid-template-columns: 64px 1fr;
  }
  .events-list-item .btn { display: none; }

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

/* Mobile */
@media (max-width: 479px) {
  .display-xl { font-size: 3rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); }

  .feature-cards { grid-template-columns: 1fr; }

  .kit-promo-image {
    min-height: 220px;
  }

  .kit-promo-content {
    padding: var(--s6);
  }

  .kit-promo-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .kit-promo-actions .btn {
    justify-content: center;
    white-space: normal;
  }

  .home-partners-section {
    padding-block: var(--s8);
  }

  .home-partner-logos {
    gap: var(--s5);
  }

  .home-partner-logo {
    max-height: 44px;
  }

  .home-partner-logo--title {
    max-height: 52px;
  }

  .home-partner-wordmark {
    min-height: 48px;
  }

  .email-signup-form {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--s4);
  }

  .events-list-item {
    grid-template-columns: 56px 1fr;
    gap: var(--s4);
  }

  .article-header .article-meta {
    gap: var(--s3);
  }
}

/* ---- 27b. LOGO IMAGE ---- */
.nav-logo-img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  display: block;
}

.footer-logo-img {
  height: 64px;
  width: auto;
  border-radius: 10px;
  display: block;
}

/* Print */
@media (max-width: 767px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-banner__actions {
    justify-content: center;
  }
}

@media print {
  .site-nav, .site-footer, .announce-bar, .cookie-banner { display: none; }
  .hero { min-height: unset; background: white; color: black; }
}


/* ---- 28. ARTICLE EXTENSIONS ---- */
.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
  border-radius: var(--r-full);
  margin-bottom: var(--s4);
}
.tag--recap   { background: rgba(16,185,129,.15);  color: #047857; }
.tag--season  { background: rgba(245,158,11,.15);  color: #92400e; }
.tag--feature { background: rgba(139,92,246,.15);  color: #5b21b6; }
.tag--skills  { background: rgba(59,130,246,.15);  color: #1d4ed8; }

.article-meta-sep { color: rgba(255,255,255,.35); }

.article-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: var(--s6);
  font-weight: 500;
}

.article-body blockquote {
  border-left: 4px solid var(--blue);
  margin: var(--s6) 0;
  padding: var(--s4) var(--s6);
  background: var(--surface-alt);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.article-body blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text);
}

.article-links {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-top: var(--s8);
}

.article-cta {
  background: var(--surface-alt);
  border-radius: var(--r-xl);
  padding: var(--s8);
  margin-top: var(--s10);
  text-align: center;
  border: 1px solid var(--border);
}
.article-cta p { margin-bottom: var(--s4); color: var(--text-muted); }


/* ---- 29. FAQ PAGE ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s5) var(--s6);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  gap: var(--s4);
  color: var(--text);
  transition: background var(--t-fast);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  flex-shrink: 0;
  color: var(--blue);
  transition: transform var(--t-fast);
}
details[open] .faq-question::after {
  content: '−';
}
.faq-question:hover { background: var(--surface-alt); }
details[open] .faq-question { background: var(--surface-alt); }

.faq-answer {
  padding: 0 var(--s6) var(--s6);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.faq-answer p  { margin-bottom: var(--s3); }
.faq-answer ul { padding-left: var(--s5); }
.faq-answer li { margin-bottom: var(--s2); list-style: disc; }
.faq-answer p:last-child,
.faq-answer ul:last-child { margin-bottom: 0; }


/* ---- 30. PROSE (privacy, long-form text) ---- */
.prose h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin: var(--s10) 0 var(--s4);
  color: var(--text);
}
.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: var(--s6) 0 var(--s3);
  color: var(--text);
}
.prose p  { margin-bottom: var(--s5); line-height: 1.7; }
.prose ul { padding-left: var(--s6); margin-bottom: var(--s5); }
.prose li { margin-bottom: var(--s2); list-style: disc; line-height: 1.65; }
.prose address { margin-top: var(--s4); line-height: 1.8; }
