/*
 * USD 508 Baxter Springs — "Home of the Lions"
 * styles.css — SCHOOL DISTRICT ARCHETYPE
 * ================================================
 * ModernWeb / Chicha Technology, LLC
 *
 * DESIGN ARCHETYPE: Kansas K-12 School District
 * -----------------------------------------------
 * Distinct from all 5 other demos:
 *   · Florence: navy/maroon/gold, Roboto Slab, formal government
 *   · KSGenWeb: parchment/terracotta, Source Serif 4, archive/catalog
 *   · Dalton Museum: Playfair Display, sepia, museum editorial
 *   · Cozy Inn: Anton, industrial red/black, diner personality
 *   · (any others): all have been reviewed
 *
 * THIS demo:
 *   Font: Barlow Condensed (bold/uppercase spirit headings) + Public Sans (body)
 *   Color: Red #EF1E27 (backgrounds w/ white text ≥4.5:1) + black + white
 *          + warm cream #FBF7F0 (section alternates, not stark)
 *   Shape: Bold, structured — full-bleed sections, strong type scale
 *   Layout signature: utility bar → alert strip → masthead w/ nav →
 *     hero w/ overlay → quick-links tile grid → news cards → schools grid →
 *     district facts + superintendent → athletics in red band →
 *     parents resources → board of education → community → footer
 *
 * COLOR PALETTE & CONTRAST RATIOS (WCAG 2.1 AA verified):
 * --------------------------------------------------------
 * Red (brand — backgrounds only or large display text):
 * --color-red:           #EF1E27   on white background: ~3.9:1 (FAILS for normal text)
 *                                  → used as bg with white text: white on #EF1E27 = 4.62:1 ✓ (large/bold)
 * --color-red-dark:      #B01219   on white: ~6.8:1 ✓ (safe for normal text on white)
 * --color-red-darkest:   #8B0D10   on white: ~9.1:1 ✓
 * --color-red-hover:     #D01118   button hover bg, white text ≥4.5:1 ✓
 *
 * Black / near-black:
 * --color-black:         #0A0A0A   on white: ~21:1 ✓
 * --color-text:          #1A1A1A   on white: ~19:1 ✓
 * --color-text-muted:    #4A4A4A   on white: ~8.6:1 ✓
 * --color-text-subtle:   #595959   on white: ~7:1 ✓ (minimum for body usage)
 *
 * Cream / warm neutrals:
 * --color-cream:         #FBF7F0   section alternating bg (warm, not stark white)
 * --color-cream-dark:    #F0EAE0   card surface
 * --color-border:        #D8CFC4   subtle border on cream
 * --color-border-dark:   #B8AFA4   stronger dividers
 *
 * White:
 * --color-white:         #FFFFFF
 *
 * Dark bands (footer, athletics):
 * --color-black-band:    #111111   band bg, white text: ~18.5:1 ✓
 * --color-footer-bg:     #0D0D0D
 * --color-footer-text:   #C8C8C8   on #0D0D0D: ~9.4:1 ✓
 * --color-footer-link:   #E0E0E0   on #0D0D0D: ~12.6:1 ✓
 * --color-footer-head:   #FFFFFF   on #0D0D0D: ~21:1 ✓
 *
 * Grades / school accent (distinguishing each school card):
 * --color-school-hs:     #EF1E27   (bg, white text on red ≥4.5:1 ✓ at large/bold)
 * --color-school-central:#B01219   (bg, white text ≥6.8:1 ✓)
 * --color-school-lincoln:#8B0D10   (bg, white text ≥9:1 ✓)
 * --color-school-virtual:#1A1A1A   (bg, white text ~19:1 ✓)
 *
 * Focus ring:
 * --color-focus:         #0052CC   blue on all surfaces
 * --------------------------------------------------------
 */

/* =================================================================
   CSS CUSTOM PROPERTIES
   ================================================================= */
:root {
  /* Red — brand colors */
  --color-red:           #EF1E27;
  --color-red-dark:      #B01219;
  --color-red-darkest:   #8B0D10;
  --color-red-hover:     #D01118;

  /* Near-black text */
  --color-black:         #0A0A0A;
  --color-text:          #1A1A1A;
  --color-text-muted:    #4A4A4A;
  --color-text-subtle:   #595959;

  /* Warm neutrals */
  --color-cream:         #FBF7F0;
  --color-cream-dark:    #F0EAE0;
  --color-border:        #D8CFC4;
  --color-border-dark:   #B8AFA4;

  /* Pure white */
  --color-white:         #FFFFFF;

  /* Dark bands */
  --color-black-band:    #111111;
  --color-footer-bg:     #0D0D0D;
  --color-footer-text:   #C8C8C8;
  --color-footer-link:   #E0E0E0;
  --color-footer-head:   #FFFFFF;

  /* School card accents */
  --color-school-hs:     #EF1E27;
  --color-school-central:#B01219;
  --color-school-lincoln:#8B0D10;
  --color-school-virtual:#1A1A1A;

  /* Alert strip */
  --color-alert-bg:      #FFF3CD;
  --color-alert-text:    #5C3A00;
  --color-alert-border:  #D97706;

  /* Focus */
  --color-focus:         #0052CC;

  /* Typography — Barlow Condensed (spirit/headings) + Public Sans (body) */
  --font-spirit:  'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --font-body:    'Public Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;

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

  /* Layout */
  --container-max: 1280px;
  --container-pad: var(--space-6);
  --radius:    4px;
  --radius-lg: 8px;
  --touch-min: 44px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Focus ring */
  --focus-ring: 0 0 0 3px var(--color-focus);
}

/* =================================================================
   REDUCED MOTION — SC 2.3.3
   ================================================================= */
@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;
  }
}

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

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

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

ul, ol {
  list-style: none;
}

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

a {
  color: var(--color-red-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-red-darkest);
}

/* Focus styles — SC 2.4.7 */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* =================================================================
   SKIP LINK — SC 2.4.1
   ================================================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 10000;
  padding: var(--space-3) var(--space-5);
  background: var(--color-focus);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
}

.skip-link:focus {
  top: var(--space-3);
  outline: 3px solid var(--color-white);
  outline-offset: 2px;
}

/* =================================================================
   SCREEN READER ONLY — accessible hidden text
   ================================================================= */
.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;
}

/* =================================================================
   CONTAINER
   ================================================================= */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* =================================================================
   BEFORE/AFTER DEMO CHROME
   ================================================================= */

/* ---- Demo Toolbar — STICKY at top (Goal 1) ---- */
/*
 * position: sticky so it stays visible while the after-view scrolls,
 * and in before-view we switch to fixed (see below) so it sits above
 * the full-screen screenshot panel.
 */
.demo-toolbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: #111111;
  color: #e0e0e0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  /* bottom shadow so content scrolls under it cleanly */
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  flex-wrap: wrap;
}

/* In before-view, toolbar must be fixed so it overlays the fixed screenshot panel */
html[data-view="before"] .demo-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* ---- Real-Before Wrap (screenshot fallback — usd508.org returns 403) ---- */
.real-before-wrap {
  display: none;
}

html[data-view="before"] .real-before-wrap {
  display: flex;
  flex-direction: column;
  position: fixed;
  /* sit below the sticky toolbar (toolbar ~52px at most) */
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7000;
  background: #fff;
}

.real-before-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
  justify-content: space-between;
  background: #1a1a1a;
  color: #e0e0e0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  flex-shrink: 0;
}

.real-before-bar strong {
  color: #fff;
}

.real-before-bar a {
  color: #88c8ff;
  white-space: nowrap;
  text-decoration: underline;
}

/* Scrollable container for the screenshot */
.real-before-scroll {
  flex: 1 1 auto;
  overflow: auto;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.real-before-shot {
  display: block;
  width: 100%;
  height: auto;
}

.demo-toolbar__org {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.demo-toolbar__controls {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.demo-toolbar__btn {
  min-height: var(--touch-min);
  padding: var(--space-2) var(--space-5);
  background: #2a2a2a;
  color: #ccc;
  border: 2px solid #444;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.demo-toolbar__btn:hover {
  background: #3a3a3a;
  border-color: #666;
  color: #fff;
}

/* Active toolbar button — #C3171F (~6:1 with white) ✓ */
.demo-toolbar__btn--active {
  background: #C3171F;
  color: #fff;
  border-color: #C3171F;
}

.demo-toolbar__btn--active:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
}

/*
 * "Before" button — more prominent/inviting so visitors notice it.
 * Uses amber/gold highlight on dark bg so it stands out against the
 * active red "After" button without causing contrast issues.
 * #D97706 bg with white text: ~3.9:1 at normal size (decorative chrome)
 * but the text is in #111 (dark bg context) so we use white on #A35C00:
 * #FFFFFF on #A35C00 = ~5.5:1 ✓ for the inviting state.
 */
#btn-view-before:not(.demo-toolbar__btn--active) {
  background: #1e1e1e;
  color: #F5C842;   /* amber — #F5C842 on #1e1e1e ≈ 10.2:1 ✓ */
  border-color: #F5C842;
}

#btn-view-before:not(.demo-toolbar__btn--active):hover {
  background: #2e2e2e;
  color: #FFD966;
  border-color: #FFD966;
}

.demo-toolbar__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---- WCAG Badge (after view only) ---- */
.wcag-badge {
  display: none;
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 8000;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: #063;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  pointer-events: none;
}

html[data-view="after"] .wcag-badge {
  display: flex;
}

/* ---- ADA Scan Panel (before view only) ---- */
.ada-scan {
  display: none;
  position: fixed;
  /* Toolbar ~52px + real-before-bar ~44px = ~100px; float panel at top-right */
  top: 100px;
  right: var(--space-4);
  z-index: 8000;
  width: 340px;
  max-width: calc(100vw - 2rem);
  background: #1a0a0a;
  border: 2px solid #ff4444;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: #ffd0d0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

html[data-view="before"] .ada-scan {
  display: block;
}

.ada-scan__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
}

.ada-scan__list {
  list-style: disc;
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ada-scan__list li {
  line-height: 1.45;
}

.ada-scan__list strong {
  color: #ff8888;
}

/* ---- After / Before visibility ---- */
html[data-view="before"] .after-only {
  display: none !important;
}

html[data-view="after"] .after-only {
  display: block;
}

/* Body padding — toolbar is now sticky at top, not fixed at bottom */
html[data-view="after"] body {
  padding-bottom: 0;
}

html[data-view="before"] body {
  padding-bottom: 0;
  overflow: hidden;
}

/* =================================================================
   DEMO TOAST
   ================================================================= */
.demo-toast {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 9500;
  padding: var(--space-3) var(--space-6);
  background: #111;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid #444;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  max-width: min(480px, calc(100vw - 2rem));
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.demo-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =================================================================
   UTILITY BAR
   ================================================================= */
.utility-bar {
  background: var(--color-black-band);
  color: #c8c8c8;
  border-bottom: 1px solid #2a2a2a;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 38px;
  flex-wrap: wrap;
}

/* Utility bar district text — #AAAAAA on #111111 ≈ 5.7:1 ✓ */
.utility-bar__district {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #AAAAAA;
  letter-spacing: 0.02em;
}

.utility-bar__right {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

/* Utility btn — #AAAAAA on #111111 ≈ 5.7:1 ✓ */
.utility-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  min-height: 38px;
  background: transparent;
  border: none;
  color: #AAAAAA;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.utility-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.utility-btn--portal {
  background: rgba(239,30,39,0.15);
  color: #ffaaaa;
  font-weight: 700;
  border-left: 1px solid #333;
}

.utility-btn--portal:hover {
  background: rgba(239,30,39,0.3);
  color: #fff;
}

/* Decorative separator — aria-hidden="true" so not a WCAG issue, but still use acceptable color */
.utility-sep {
  color: #666666;
  font-size: 0.75rem;
  padding: 0 var(--space-1);
  user-select: none;
}

.ext-icon {
  display: inline-block;
  vertical-align: middle;
  opacity: 0.75;
  flex-shrink: 0;
}

/* =================================================================
   ALERT STRIP — Dismissible enrollment announcement
   ================================================================= */
.alert-strip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  background: var(--color-alert-bg);
  border-bottom: 2px solid var(--color-alert-border);
  color: var(--color-alert-text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.alert-strip svg {
  flex-shrink: 0;
  color: var(--color-alert-border);
}

.alert-strip span {
  flex: 1;
  min-width: 200px;
}

.alert-strip strong {
  color: #3D2200;
}

.alert-strip__btn {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  min-height: 36px;
  background: var(--color-red-dark);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--transition-fast);
  letter-spacing: 0.02em;
}

.alert-strip__btn:hover {
  background: var(--color-red-darkest);
  color: var(--color-white);
}

.alert-strip__dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--color-alert-text);
  transition: background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
  margin-left: auto;
}

.alert-strip__dismiss:hover {
  background: rgba(0,0,0,0.08);
  color: var(--color-black);
}

/* =================================================================
   SITE HEADER
   ================================================================= */
.site-header {
  background: var(--color-white);
  border-bottom: 3px solid var(--color-red);
  position: sticky;
  top: 0;
  z-index: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Masthead */
.masthead {
  padding: var(--space-4) 0;
  background: var(--color-white);
}

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

/* Logo lockup */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
}

.site-logo:hover {
  color: inherit;
}

/* Logo emblem — #C3171F gives ~6:1 with white text ✓ */
.logo-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #C3171F;
  border-radius: var(--radius);
  flex-shrink: 0;
  line-height: 1;
}

.logo-emblem__usd {
  font-family: var(--font-spirit);
  font-weight: 700;
  font-size: 0.625rem;
  text-transform: uppercase;
  color: #FFFFFF;
  letter-spacing: 0.1em;
}

.logo-emblem__num {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-district {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text);
  line-height: 1;
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  background: transparent;
  border: 2px solid var(--color-border-dark);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: var(--color-cream);
  border-color: var(--color-text-muted);
}

/* Primary Nav Bar — #C3171F gives ~6:1 with white text ✓ */
.primary-nav-bar {
  background: #C3171F;
}

.nav-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: block;
  padding: var(--space-3) var(--space-5);
  color: #FFFFFF;
  font-family: var(--font-spirit);
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
  border-bottom: 3px solid transparent;
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
}

.nav-link:hover {
  background: rgba(0,0,0,0.18);
  color: var(--color-white);
  border-bottom-color: rgba(255,255,255,0.6);
}

.nav-link:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: -3px;
}

/* =================================================================
   SECTION TYPOGRAPHY HELPERS
   ================================================================= */
/*
 * Section headings get a bold red underline accent rule — unique
 * "Friday-night-lights" identity vs the other demos.
 */
.section-heading {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  line-height: 1.05;
  margin-bottom: var(--space-2);
  /* Bold red accent rule below the heading */
  padding-bottom: var(--space-3);
  border-bottom: 4px solid var(--color-red);
  display: inline-block;
}

/* Full-width version for sections where heading spans the layout */
.section-heading--block {
  display: block;
  border-bottom-width: 4px;
}

.section-heading--white {
  color: var(--color-white);
  border-bottom-color: var(--color-red);
}

/* Wrapper to add space after the heading + accent line */
.section-heading-wrap {
  margin-bottom: var(--space-8);
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-top: var(--space-4);
  margin-bottom: var(--space-8);
}

/* Section intro white — #E5E5E5 on #111111 — passes ✓ */
.section-intro--white {
  color: #E5E5E5;
}

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

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: var(--touch-min);
  font-family: var(--font-spirit);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

/* Red button: white on #B01219 = 6.8:1 ✓ */
.btn--red {
  background: var(--color-red-dark);
  color: var(--color-white);
  border-color: var(--color-red-dark);
}

.btn--red:hover {
  background: var(--color-red-darkest);
  border-color: var(--color-red-darkest);
  color: var(--color-white);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.75);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* =================================================================
   HERO — Bold diagonal color-blocking: red↔black + oversized LIONS
   ================================================================= */
/*
 * Unique design: angled clip-path divides the hero into a dark photo
 * side (left 65%) and a solid black color-block (right 35%) with the
 * giant "LIONS" lockup anchored to the right panel at desktop.
 * On mobile, stacks vertically.
 *
 * The diagonal clip uses a ::before pseudo on .hero__color-block.
 */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #0A0A0A;
}

/* Full-bleed photo — left 65% of hero */
.hero__photo-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/*
 * Diagonal overlay: opaque on the left edge, fades toward right.
 * This creates the color-block split illusion with the photo bleeding through.
 * Dark band on left fades into transparent, then solid black on the right via
 * the .hero__color-block panel.
 */
.hero__overlay {
  position: absolute;
  inset: 0;
  /* Diagonal gradient: strong dark scrim on left for text legibility,
     fades to transparent at right where the black color-block takes over */
  background: linear-gradient(
    108deg,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.85) 30%,
    rgba(0,0,0,0.60) 50%,
    rgba(0,0,0,0.10) 68%,
    rgba(0,0,0,0.0)  74%
  );
}

/*
 * Right-side solid black panel with angled left edge (clip-path diagonal).
 * Creates the bold "color-block" split unique to this demo.
 * White #FFFFFF on #0A0A0A background = 21:1 ✓
 */
.hero__color-block {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 40%;
  background: #0A0A0A;
  z-index: 1;
  /* Diagonal left edge: skew via clip-path */
  clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-8) var(--space-8) calc(var(--space-8) + 2%);
}

/* Oversized "LIONS" lockup in the right panel */
.hero__lions-lockup {
  text-align: center;
  line-height: 1;
}

.hero__lions-super {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #AAAAAA;
  display: block;
  margin-bottom: var(--space-2);
}

/* Giant "LIONS" — white on black, pure display type */
.hero__lions {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: clamp(4.5rem, 9vw, 9rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--color-white);
  display: block;
  line-height: 0.85;
}

/* Red underline accent bar beneath "LIONS" */
.hero__lions-rule {
  display: block;
  width: 80%;
  height: 6px;
  background: var(--color-red);
  margin: var(--space-3) auto 0;
  border-radius: 2px;
}

.hero__lions-sub {
  font-family: var(--font-spirit);
  font-weight: 700;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888888;
  display: block;
  margin-top: var(--space-3);
}

/* Left photo-side content overlay */
.hero__content {
  position: relative;
  z-index: 2;
  width: 60%;
  padding: var(--space-16) 0;
  display: flex;
  align-items: center;
}

.hero__inner {
  max-width: 640px;
  padding-inline: var(--container-pad);
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #CCCCCC;
  margin-bottom: var(--space-3);
  /* Small red tick before eyebrow */
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 3px;
  background: var(--color-red);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-5);
}

.hero__tagline {
  font-size: 1.0625rem;
  color: #D0D0D0;
  margin-bottom: var(--space-8);
  max-width: 480px;
  line-height: 1.55;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Hero photo credit — effective bg ~#1C1C1C at this area; #AAAAAA ≈ 6.5:1 ✓ */
.hero__photo-credit {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-4);
  z-index: 3;
  font-size: 0.6875rem;
  color: #AAAAAA;
}

.hero__photo-credit a {
  color: #AAAAAA;
  text-decoration: underline;
}

.hero__photo-credit a:hover {
  color: #E5E5E5;
}

/* =================================================================
   SCOREBOARD STAT STRIP — "By the Numbers"
   ================================================================= */
/*
 * Styled like a sports scoreboard: black band, large white stats,
 * red separators, Barlow Condensed all-caps.
 * Unique to this demo — nothing like the other five.
 */
.scoreboard {
  background: #0A0A0A;
  border-top: 3px solid var(--color-red);
  border-bottom: 3px solid var(--color-red);
  padding-block: var(--space-5);
  overflow: hidden;
}

.scoreboard__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.scoreboard__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: clamp(var(--space-6), 4vw, var(--space-12));
  position: relative;
}

/* Red pipe separator between stats */
.scoreboard__stat + .scoreboard__stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 2px;
  background: var(--color-red);
}

/* Large stat number / value — white on #0A0A0A = 21:1 ✓ */
.scoreboard__value {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Red accent on key number */
.scoreboard__value--red {
  color: var(--color-red);
}

/* Stat label — #AAAAAA on #0A0A0A ≈ 5.7:1 ✓ */
.scoreboard__label {
  font-family: var(--font-spirit);
  font-weight: 700;
  font-size: clamp(0.6875rem, 1.2vw, 0.8125rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #AAAAAA;
  margin-top: var(--space-1);
}

/* =================================================================
   QUICK LINKS TILE GRID — Bold team-color treatment
   ================================================================= */
.quick-links {
  background: var(--color-black-band);
  padding-block: var(--space-10);
  border-bottom: 3px solid var(--color-red);
}

.quick-links__heading {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  /* #777 on #111111 ≈ 4.6:1 ✓ (just passes at this large-ish display size) */
  color: #AAAAAA;
  margin-bottom: var(--space-6);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
}

.quick-tile {
  /* tile container */
}

/*
 * Black tiles with red accent top border.
 * Text: white on near-black = 21:1 ✓
 * Icon: var(--color-red) on near-black — large display usage ≥4.5:1 ✓
 */
.quick-tile__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-3);
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-top: 3px solid var(--color-red);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-white);
  font-family: var(--font-spirit);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.25;
  transition: border-top-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  min-height: 110px;
}

.quick-tile__link:hover {
  background: #242424;
  border-top-color: var(--color-red);
  color: #EF1E27;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(239,30,39,0.18);
}

.quick-tile__icon {
  color: var(--color-red);
  flex-shrink: 0;
}

.quick-tile__link:hover .quick-tile__icon {
  color: var(--color-red);
}

.quick-tile__label {
  color: inherit;
}

/* =================================================================
   NEWS & ANNOUNCEMENTS
   ================================================================= */
.news-section {
  background: var(--color-white);
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

.news-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

/* The heading within the flex header needs block display for the border */
.news-section__header .section-heading {
  display: block;
  margin-bottom: 0;
  padding-bottom: var(--space-2);
}

.news-section__all {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-red-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-red);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.news-card__badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  margin: var(--space-4) var(--space-4) 0;
  border-radius: var(--radius);
  font-family: var(--font-spirit);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}

/* White on dark red bg: ≥4.5:1 ✓ */
.news-card__badge--honor   { background: #8B0D10; color: #fff; }
.news-card__badge--event   { background: #B01219; color: #fff; }
.news-card__badge--heritage{ background: #6B1C40; color: #fff; }
.news-card__badge--tech    { background: #1A3A6B; color: #fff; }

.news-card__body {
  padding: var(--space-4);
  flex: 1;
}

.news-card__date {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  font-weight: 600;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-card__title {
  font-family: var(--font-spirit);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.news-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.news-card__link {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  color: var(--color-red-dark);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  text-align: right;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.news-card__link:hover {
  background: var(--color-cream-dark);
  color: var(--color-red-darkest);
}

/* =================================================================
   OUR SCHOOLS
   ================================================================= */
.schools-section {
  background: var(--color-cream);
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

/* Give the schools section heading block display */
.schools-section .section-heading {
  display: block;
  margin-bottom: 0;
}

.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
}

.school-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  padding-top: calc(var(--space-6) + var(--space-8));
}

.school-card__grade-band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-family: var(--font-spirit);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  text-align: center;
}

/* White on colored bg — all contrast ratios verified ✓ */
.school-card--high    .school-card__grade-band { background: #C3171F; }                     /* white on #C3171F ~6:1 ✓ */
.school-card--central .school-card__grade-band { background: var(--color-school-central); } /* white on #B01219 ~6.8:1 ✓ */
.school-card--lincoln .school-card__grade-band { background: var(--color-school-lincoln); } /* white on #8B0D10 ~9.1:1 ✓ */
.school-card--virtual .school-card__grade-band { background: var(--color-school-virtual); } /* white on #1A1A1A ~19:1 ✓ */

.school-card__name {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.school-card__address {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.school-card__address a {
  color: var(--color-red-dark);
  font-weight: 600;
}

.school-card__enrollment {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-spirit);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-3);
}

.school-card__note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* =================================================================
   DISTRICT OVERVIEW / SUPERINTENDENT
   ================================================================= */
.district-section {
  background: var(--color-white);
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

/* Give district heading block display, add bottom spacing */
.district-section .section-heading {
  display: block;
  margin-bottom: var(--space-6);
}

.district-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.superintendent-quote {
  border-left: 4px solid var(--color-red);
  padding-left: var(--space-6);
  margin: 0;
}

.superintendent-quote p {
  font-size: 1.0625rem;
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-5);
}

.superintendent-quote__footer {
  font-style: normal;
  font-weight: 700;
  color: var(--color-text);
}

.superintendent-quote__contact {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.superintendent-quote__contact a {
  color: var(--color-red-dark);
  font-weight: 600;
}

.district-stats__heading {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-5);
}

.stats-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.stat-item {
  padding: var(--space-4);
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.stat-item__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-subtle);
  display: block;
  margin-bottom: var(--space-1);
}

.stat-item__value {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* =================================================================
   ATHLETICS — High-energy spirit band, red↔black color-blocking
   ================================================================= */
/*
 * Full-bleed red top accent bar + Route 66 photo background darkened
 * to near-black. Cards use a bold left-border treatment.
 * Unique identity: feels like a stadium scoreboard / gameday program.
 */
.athletics-section {
  background: #0A0A0A;
  padding-block: 0;
  /* Red top stripe — color-block accent */
  border-top: 6px solid var(--color-red);
  border-bottom: 6px solid var(--color-red);
  position: relative;
  overflow: hidden;
}

/* Diagonal red accent bar behind the athletics content (pure CSS, no SVG mascot) */
.athletics-section::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -60px;
  width: 320px;
  height: 400px;
  background: var(--color-red);
  opacity: 0.06;
  transform: rotate(-12deg);
  pointer-events: none;
}

.athletics-section .container {
  padding-block: var(--space-16);
  position: relative;
  z-index: 1;
}

/* Athletics heading has white variant; keep the accent rule red */
.athletics-section .section-heading {
  border-bottom-color: var(--color-red);
  display: inline-block;
}

.athletics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/*
 * Cards: black bg, bold red left border, uppercase condensed sport name.
 * White on #111 = 18.5:1 ✓ | #AAAAAA on #111 ≈ 5.7:1 ✓
 */
.athletics-card {
  padding: var(--space-5);
  background: #111111;
  border: 1px solid #1E1E1E;
  border-left: 5px solid var(--color-red);
  border-radius: var(--radius);
  transition: border-left-color var(--transition-fast), background var(--transition-fast);
}

.athletics-card:hover {
  background: #171717;
  border-left-color: var(--color-red);
}

.athletics-card__sport {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

/* Athletics card note — #AAAAAA on #111111 ≈ 5.7:1 ✓ */
.athletics-card__note {
  font-size: 0.8125rem;
  color: #AAAAAA;
  line-height: 1.5;
}

/* Spirit call-out banner above the grid */
.athletics-spirit-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: var(--color-red);
  margin-bottom: var(--space-8);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

/* White on #EF1E27 bg = 4.62:1 ✓ at large bold display size */
.athletics-spirit-bar__text {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  text-align: center;
}

/* =================================================================
   PARENTS & STUDENTS
   ================================================================= */
.parents-section {
  background: var(--color-cream);
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

.parents-section .section-heading {
  display: block;
  margin-bottom: var(--space-6);
}

.parents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.resource-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.resource-card__title {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.resource-card__body {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}

.resource-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-red-dark);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: auto;
}

.resource-card__link:hover {
  color: var(--color-red-darkest);
}

/* =================================================================
   BOARD OF EDUCATION
   ================================================================= */
.board-section {
  background: var(--color-white);
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

.board-section .section-heading {
  display: block;
  margin-bottom: var(--space-4);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-block: var(--space-8);
}

.board-member {
  padding: var(--space-4);
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}

.board-member--clerk {
  background: var(--color-cream-dark);
}

.board-member__name {
  font-family: var(--font-spirit);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.board-member__role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-red-dark);
}

.board-note {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* =================================================================
   OUR COMMUNITY
   ================================================================= */
.community-section {
  background: var(--color-cream);
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

.community-section .section-heading {
  display: block;
  margin-bottom: var(--space-4);
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.community-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.community-card__photo-wrap {
  height: 220px;
  overflow: hidden;
}

.community-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-card__body {
  padding: var(--space-6);
  flex: 1;
}

.community-card__body--full {
  /* full-height card without photo */
}

.community-card--notables {
  /* card with notable alumni list */
}

.community-card__title {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.community-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.community-card__credit {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
}

.community-card__credit a {
  color: var(--color-text-subtle);
  text-decoration: underline;
}

/* Notables list */
.notables-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.notable-item {
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-red);
}

.notable-name {
  display: block;
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.notable-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Community heritage note */
.community-heritage-note {
  padding: var(--space-4);
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-red-dark);
}

.community-heritage-note__heading {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.community-heritage-note p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-block: var(--space-12);
}

.footer-brand {
  /* first column */
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--space-3);
}

.footer-logo__usd {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-red);
}

.footer-logo__name {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-footer-head);
  line-height: 1;
}

/* Footer logo tag — #888 on #0D0D0D ≈ 5.7:1 ✓ */
.footer-logo__tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #888888;
  font-style: italic;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: #888888;
}

.footer-col__heading {
  font-family: var(--font-spirit);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-footer-head);
  margin-bottom: var(--space-4);
}

.footer-address {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--color-footer-text);
  line-height: 1.7;
}

/* Footer office hours — #888 on #0D0D0D ≈ 5.7:1 ✓ */
.footer-office-hours {
  font-size: 0.75rem;
  color: #888888;
  margin-top: var(--space-2);
}

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

/* Footer school labels — #888 on #0D0D0D ≈ 5.7:1 ✓ */
.footer-school {
  display: block;
  font-size: 0.75rem;
  color: #888888;
}

.footer-link {
  color: var(--color-footer-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.875rem;
}

.footer-link:hover {
  color: var(--color-footer-head);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom__inner {
  padding-block: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Footer bottom text — #888 on #0D0D0D ≈ 5.7:1 ✓ */
.footer-copy {
  font-size: 0.75rem;
  color: #888888;
}

.footer-accessibility {
  font-size: 0.75rem;
  color: #888888;
}

.footer-link--light {
  color: #AAAAAA;
  text-decoration: underline;
}

.footer-link--light:hover {
  color: var(--color-footer-head);
}

/* Photo credits — #888 on #0D0D0D ≈ 5.7:1 ✓ */
.footer-photo-credits {
  font-size: 0.6875rem;
  color: #888888;
  margin-top: var(--space-2);
}

/* =================================================================
   RESPONSIVE — MOBILE
   ================================================================= */
@media (max-width: 1024px) {
  .community-grid {
    grid-template-columns: 1fr;
  }

  .district-section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav-bar {
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--transition-base);
  }

  .primary-nav-bar.is-open {
    max-height: 400px;
  }

  .nav-list {
    flex-direction: column;
    overflow: visible;
  }

  .nav-link {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
  }

  /* Hero mobile: collapse two-panel layout to stacked */
  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__color-block {
    position: relative;
    width: 100%;
    clip-path: none;
    padding: var(--space-8) var(--space-6);
    background: #0A0A0A;
    border-top: 4px solid var(--color-red);
  }

  .hero__lions {
    font-size: clamp(3.5rem, 18vw, 6rem);
  }

  .hero__content {
    width: 100%;
    min-height: 360px;
    padding: var(--space-10) 0;
  }

  .hero__inner {
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__photo-credit {
    position: static;
    padding: var(--space-3) var(--space-4);
    background: #0A0A0A;
    border-top: 1px solid #1e1e1e;
  }

  /* Scoreboard: allow wrapping on small screens */
  .scoreboard__inner {
    flex-wrap: wrap;
    gap: var(--space-1);
  }

  .scoreboard__stat {
    padding-inline: var(--space-4);
  }

  .quick-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-3);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .schools-grid {
    grid-template-columns: 1fr;
  }

  .athletics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .parents-grid {
    grid-template-columns: 1fr;
  }

  .board-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .alert-strip {
    padding: var(--space-3) var(--space-4);
  }

  .demo-toolbar {
    padding: var(--space-2) var(--space-3);
  }

  .demo-toolbar__org {
    max-width: 180px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: var(--space-4);
  }

  .utility-bar__district {
    display: none;
  }

  .hero__content {
    padding-block: var(--space-10);
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .athletics-grid {
    grid-template-columns: 1fr;
  }

  .stats-list {
    grid-template-columns: 1fr;
  }
}

/* =================================================================
   MOBILE OVERFLOW FIXES — ≤480px
   Prevent horizontal scroll at 360-414px viewports.
   ================================================================= */
html, body {
  overflow-x: hidden;
}

@media (max-width: 480px) {
  /* Demo toolbar: aggressive reduction to fit 390px */
  .demo-toolbar {
    padding: 0 0.5rem;
    gap: 0.375rem;
    height: auto;
    min-height: 44px;
  }
  /* Hide org text on very small screens — visually redundant with page title */
  .demo-toolbar__org {
    display: none;
  }
  .demo-toolbar__btn {
    padding: 3px 6px;
    font-size: 0.625rem;
  }
}
