/* ==========================================================================
   NEW LIFE CHRISTIAN ACADEMY — Home of the Mighty Eagles
   Design system: "Crest & Marquee"
   Colors are lifted directly from the school crest. The letterboard marquee
   and the campus directory are the two signature elements.
   ========================================================================== */

:root {
  /* --- Crest palette (sampled from assets/nlca-logo.png) --- */
  --navy-950: #050f2c;
  --navy-900: #0a1a4a;
  --navy-800: #12265f;
  --navy-700: #1b3477;
  --royal-500: #1553c4;
  --royal-300: #6c9cf2;
  --gold-600: #d19a1a;
  --gold-500: #f0b829;
  --gold-400: #f8cf5c;
  --gold-100: #fdf1cf;

  /* --- Surfaces --- */
  --paper: #f1f5fc;
  --paper-2: #e6edf9;
  --white: #ffffff;
  --line: #dbe4f4;
  --line-dark: rgba(255, 255, 255, 0.14);

  /* --- Ink --- */
  --ink: #0d1424;
  --ink-soft: #4d566e;
  --ink-faint: #8891a8;
  --ink-invert: #ffffff;
  --ink-invert-soft: #c3cee6;

  /* --- Functional only. Never decorative. --- */
  --open: #12a06b;      /* open / verified / seats available */
  --alert: #c2372b;     /* misconduct reporting, urgent notices */

  /* --- Type --- */
  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Geometry --- */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --wrap: 1180px;
  --shadow-sm: 0 2px 6px rgba(10, 26, 74, 0.06);
  --shadow: 0 14px 34px -16px rgba(10, 26, 74, 0.32);
  --shadow-lg: 0 30px 60px -24px rgba(10, 26, 74, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--royal-500); text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0 0 0.45em;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.65rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
h4 { font-size: 1.02rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold-500); color: var(--navy-950);
  padding: 12px 20px; font-weight: 700; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Small parts
   ========================================================================== */

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.on-navy .eyebrow { color: var(--gold-400); }

/* Gold swash under a heading — the crest's ribbon, reduced to a rule. */
.swash { position: relative; padding-bottom: 18px; margin-bottom: 22px; }
.swash::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 66px; height: 5px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
}
.swash.center { text-align: center; }
.swash.center::after { left: 50%; transform: translateX(-50%); }

.pill {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--gold-100); color: var(--gold-600);
  margin-bottom: 14px;
}
.pill.royal { background: #e3ecfd; color: var(--royal-500); }
.pill.navy { background: var(--navy-900); color: var(--gold-400); }
.pill.ghost { background: rgba(255, 255, 255, 0.1); color: var(--gold-400); }

.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
}
.status::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--open); box-shadow: 0 0 0 3px rgba(18, 160, 107, 0.18);
}
.status.closed::before { background: var(--ink-faint); box-shadow: 0 0 0 3px rgba(136, 145, 168, 0.18); }
.on-navy .status { color: var(--ink-invert-soft); }

.todo {
  display: inline-block;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; vertical-align: middle;
  background: #fdeceb; color: var(--alert);
  border: 1px dashed rgba(194, 55, 43, 0.45);
  padding: 1px 7px; border-radius: var(--r-sm);
  margin-left: 6px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body);
  font-size: 0.97rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: var(--r-pill);
  border: 2px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold-500); color: var(--navy-950);
  box-shadow: 0 10px 24px -10px rgba(240, 184, 41, 0.9);
}
.btn-gold:hover { background: var(--gold-400); box-shadow: 0 16px 32px -12px rgba(240, 184, 41, 1); }

.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent; color: var(--navy-900); border-color: var(--line);
}
.btn-outline:hover { border-color: var(--navy-900); background: var(--white); }

.on-navy .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.on-navy .btn-outline:hover { border-color: var(--gold-400); background: rgba(255, 255, 255, 0.06); color: var(--gold-400); }

.btn-alert { background: var(--alert); color: var(--white); }
.btn-alert:hover { background: #a32c22; }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* ==========================================================================
   Top bar + navigation
   ========================================================================== */

.topbar {
  background: var(--navy-950);
  color: var(--ink-invert-soft);
  font-size: 0.83rem;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap;
}
.topbar a { color: var(--gold-400); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar-safety { display: inline-flex; align-items: center; gap: 8px; }
.topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; }

.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex; align-items: center; gap: 18px;
  padding-top: 12px; padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.02rem; color: var(--navy-900); letter-spacing: -0.02em;
}
.brand-text span {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--gold-600);
}

.nav-only-mobile { display: none; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 13px; border-radius: var(--r-sm);
  font-size: 0.93rem; font-weight: 600; color: var(--navy-800);
  text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--paper-2); }
.nav-links a.active { color: var(--royal-500); background: #e9f0fe; }

.nav-toggle {
  display: none; background: var(--navy-900); color: var(--white);
  border: 0; border-radius: var(--r-sm); width: 44px; height: 44px;
  font-size: 1.2rem; cursor: pointer;
}

@media (max-width: 940px) {
  .nav-toggle { display: block; order: 3; }
  .nav-links {
    order: 4; flex-basis: 100%; flex-direction: column;
    gap: 2px; padding: 8px 0 4px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { order: 2; }
}
@media (max-width: 520px) {
  .nav-cta { display: none; }
  .nav-only-mobile { display: block; }
  .nav-only-mobile a { color: var(--royal-500); }
  .topbar-contact { gap: 12px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(21, 83, 196, 0.55), transparent 60%),
    linear-gradient(165deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--white);
  padding: 84px 0 96px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero-crest {
  position: absolute; right: -110px; top: 50%;
  transform: translateY(-50%);
  width: 620px; opacity: 0.07; pointer-events: none;
  filter: grayscale(1) brightness(2.4);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero h1 em {
  font-style: normal; color: var(--gold-400);
  display: inline-block;
}
.hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--ink-invert-soft);
  max-width: 54ch; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px; background: var(--line-dark);
  border: 1px solid var(--line-dark); border-radius: var(--r);
  overflow: hidden;
}
.hero-facts div {
  background: rgba(5, 15, 44, 0.55);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-facts strong {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--gold-400); letter-spacing: -0.02em; line-height: 1.1;
}
.hero-facts span { font-size: 0.82rem; color: var(--ink-invert-soft); }

@media (max-width: 700px) {
  .hero { padding: 56px 0 64px; }
  .hero-crest { width: 420px; right: -160px; opacity: 0.05; }
}

/* ==========================================================================
   SIGNATURE — the marquee letterboard
   The sign out front of the school, rebuilt in HTML. Announcements live in
   one array in js/main.js so the office edits them in a single place.
   ========================================================================== */

.marquee {
  background: var(--gold-500);
  padding: 20px 0;
}
.marquee .wrap {
  display: flex; align-items: center; gap: 20px;
}
.marquee-board {
  flex: 1;
  background:
    repeating-linear-gradient(
      180deg,
      var(--navy-950) 0px, var(--navy-950) 34px,
      rgba(255, 255, 255, 0.09) 34px, rgba(255, 255, 255, 0.09) 35px
    );
  border: 5px solid var(--navy-800);
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), var(--shadow);
  padding: 16px 22px;
  min-height: 68px;
  display: flex; align-items: center;
}
.marquee-slot {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-400);
  line-height: 1.35;
  transition: opacity 0.4s ease;
}
.marquee-slot.fade { opacity: 0; }
.marquee-label {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy-950);
  writing-mode: vertical-rl; transform: rotate(180deg);
  align-self: stretch; display: flex; align-items: center; justify-content: center;
}
@media (max-width: 700px) {
  .marquee-label { display: none; }
  .marquee-board { padding: 14px 16px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.band { padding: 88px 0; }
.band-tight { padding: 56px 0; }
.band-paper { background: var(--paper); }
.band-white { background: var(--white); }
.band-navy {
  background:
    radial-gradient(900px 400px at 12% 0%, rgba(21, 83, 196, 0.42), transparent 62%),
    var(--navy-900);
  color: var(--ink-invert-soft);
}
.band-navy h1, .band-navy h2, .band-navy h3, .band-navy h4 { color: var(--white); }
.band-navy a { color: var(--gold-400); }

.band-gold { background: linear-gradient(160deg, var(--gold-100), #fff8e6); }

.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }
.band-navy .section-head p { color: var(--ink-invert-soft); }

@media (max-width: 700px) { .band { padding: 56px 0; } }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.band-navy .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-dark);
  backdrop-filter: blur(4px);
}
.band-navy .card p { color: var(--ink-invert-soft); }

.card-icon {
  width: 50px; height: 50px; border-radius: var(--r);
  background: var(--gold-100); color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}
.band-navy .card-icon { background: rgba(240, 184, 41, 0.14); color: var(--gold-400); }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative; padding-left: 30px; margin-bottom: 12px;
  color: var(--ink-soft); font-size: 0.97rem;
}
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-100); color: var(--gold-600);
  font-size: 0.68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.band-navy .ticks li { color: var(--ink-invert-soft); }
.band-navy .ticks li::before { background: rgba(240, 184, 41, 0.18); color: var(--gold-400); }

/* --- Grade / program cards --- */
.grade-card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.grade-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-500); }
.grade-card .grade-tag {
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 700;
  color: var(--gold-500); letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 10px;
}
.grade-card h3 { margin-bottom: 6px; }
.grade-card p { color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 14px; }

/* --- People / faculty --- */
.person { text-align: center; }
.person-photo {
  aspect-ratio: 1 / 1; border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--paper-2), var(--white));
  border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 0.82rem; font-weight: 600;
  margin-bottom: 14px; overflow: hidden;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h4 { margin-bottom: 2px; }
.person p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   SIGNATURE — Campus directory
   ========================================================================== */

.dir-controls {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-bottom: 32px;
}
.dir-search {
  flex: 1; min-width: 240px; position: relative;
}
.dir-search input {
  width: 100%; padding: 14px 18px 14px 46px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--white); font-family: var(--font-body); font-size: 0.97rem;
  color: var(--ink);
}
.dir-search::before {
  content: "⌕"; position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%); color: var(--ink-faint); font-size: 1.2rem;
}
.dir-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.dir-chip {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--white);
  color: var(--ink-soft); cursor: pointer;
  transition: all 0.15s ease;
}
.dir-chip:hover { border-color: var(--navy-900); color: var(--navy-900); }
.dir-chip.active { background: var(--navy-900); border-color: var(--navy-900); color: var(--gold-400); }

.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }

.dir-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px;
  border-left: 5px solid var(--gold-500);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dir-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dir-card[data-dept="academics"] { border-left-color: var(--royal-500); }
.dir-card[data-dept="care"] { border-left-color: var(--open); }
.dir-card[data-dept="safety"] { border-left-color: var(--alert); }
.dir-card[data-dept="office"] { border-left-color: var(--navy-900); }

.dir-card .dir-dept {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px;
}
.dir-card h4 { margin-bottom: 4px; }
.dir-card .dir-role { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 14px; }
.dir-card .dir-meta {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.85rem; color: var(--ink-soft);
  padding-top: 14px; border-top: 1px solid var(--line);
}
.dir-card .dir-meta a { font-weight: 600; text-decoration: none; }
.dir-card .dir-meta a:hover { text-decoration: underline; }

.dir-empty {
  grid-column: 1 / -1; text-align: center; padding: 48px 24px;
  color: var(--ink-soft); background: var(--white);
  border: 1px dashed var(--line); border-radius: var(--r);
}

/* ==========================================================================
   Payments
   ========================================================================== */

.pay-card {
  position: relative;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pay-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pay-card.featured {
  border: 2px solid var(--gold-500);
  box-shadow: var(--shadow);
}
.pay-card.featured::before {
  content: attr(data-badge);
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold-500); color: var(--navy-950);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 14px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.pay-price {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.6rem; color: var(--navy-900);
  letter-spacing: -0.035em; line-height: 1; margin: 6px 0 4px;
}
.pay-price small {
  display: block; font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 600; color: var(--ink-faint);
  letter-spacing: 0; margin-top: 8px;
}
.pay-card .ticks { margin: 18px 0 24px; }
.pay-card .btn { margin-top: auto; }

.pay-note {
  font-size: 0.85rem; color: var(--ink-soft);
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--royal-500);
  border-radius: var(--r-sm); padding: 14px 18px;
}

.subhead {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
}
.subhead::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.band-navy .subhead { color: var(--gold-400); }
.band-navy .subhead::after { background: var(--line-dark); }

/* --- Donate amounts --- */
.amount-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.amount-btn {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 12px 20px; border-radius: var(--r);
  border: 2px solid var(--line); background: var(--white);
  color: var(--navy-900); cursor: pointer; transition: all 0.15s ease;
}
.amount-btn:hover { border-color: var(--gold-500); }
.amount-btn.active {
  background: var(--navy-900); border-color: var(--navy-900); color: var(--gold-400);
}
.amount-custom {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--line); border-radius: var(--r);
  padding: 4px 4px 4px 16px; background: var(--white);
  font-weight: 700; color: var(--ink-faint);
}
.amount-custom input {
  flex: 1; border: 0; padding: 10px 6px; font-size: 1rem;
  font-family: var(--font-body); background: transparent; color: var(--ink);
}
.amount-custom input:focus { outline: none; }

/* ==========================================================================
   Forms
   ========================================================================== */

.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 0.83rem; font-weight: 700;
  color: var(--navy-800); margin-bottom: 7px;
}
.band-navy .field label { color: var(--ink-invert-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 0.97rem;
  background: var(--white); color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--royal-500);
  box-shadow: 0 0 0 3px rgba(21, 83, 196, 0.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-help { font-size: 0.8rem; color: var(--ink-faint); margin-top: 6px; }

.form-status {
  font-size: 0.88rem; font-weight: 600; margin-top: 14px; min-height: 20px;
  color: var(--ink-soft);
}
.form-status.ok { color: var(--open); }
.form-status.err { color: var(--alert); }

/* ==========================================================================
   Callouts
   ========================================================================== */

.callout {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--shadow-sm);
}
.callout-body { flex: 1; min-width: 260px; }
.callout h3 { margin-bottom: 6px; }
.callout p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.callout-alert { border-left: 5px solid var(--alert); }

.cta-strip {
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(21, 83, 196, 0.5), transparent 60%),
    var(--navy-900);
  border-radius: var(--r-lg);
  padding: 48px; color: var(--ink-invert-soft);
  display: flex; gap: 30px; align-items: center; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-strip h2 { color: var(--white); margin-bottom: 8px; }
.cta-strip > div:first-child { flex: 1; min-width: 280px; }
.cta-strip p { margin: 0; }
@media (max-width: 700px) { .cta-strip { padding: 32px 24px; } }

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: var(--navy-950); color: var(--ink-invert-soft);
  padding: 64px 0 28px; font-size: 0.92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { width: 62px; height: 62px; object-fit: contain; margin-bottom: 14px; }
.footer-brand strong {
  display: block; font-family: var(--font-display); font-size: 1.15rem;
  color: var(--white); margin-bottom: 8px; letter-spacing: -0.02em;
}
.footer-brand p { color: var(--ink-invert-soft); max-width: 300px; font-size: 0.9rem; }

footer h4 {
  color: var(--gold-400); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px;
  font-family: var(--font-body);
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 9px; }
footer a { color: var(--ink-invert-soft); text-decoration: none; }
footer a:hover { color: var(--gold-400); }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-top: 24px;
  font-size: 0.82rem; color: var(--ink-faint);
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 15, 44, 0.7);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--r-lg);
  padding: 34px; max-width: 460px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal h3 { margin-bottom: 10px; }
.modal p { color: var(--ink-soft); font-size: 0.94rem; }
.modal .btn { margin-top: 20px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   STAFF DASHBOARD (admin.html)
   Same crest palette, but built for reading rows rather than persuading
   parents. Denser type, flatter surfaces, no decoration.
   ========================================================================== */

.admin-gate {
  min-height: 72vh;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(21, 83, 196, 0.5), transparent 62%),
    var(--navy-900);
}
.admin-gate .card { max-width: 400px; width: 100%; }
.admin-gate img { width: 60px; height: 60px; object-fit: contain; margin: 0 auto 18px; }

.admin-bar {
  background: var(--navy-900); color: var(--ink-invert-soft);
  padding: 14px 0;
}
.admin-bar .wrap {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.admin-bar strong {
  font-family: var(--font-display); color: var(--white);
  font-size: 1.05rem; margin-right: auto;
}
.admin-who { font-size: 0.85rem; }

.tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.tab {
  font-family: var(--font-body); font-size: 0.93rem; font-weight: 600;
  padding: 13px 18px; border: 0; background: none; cursor: pointer;
  color: var(--ink-soft); border-bottom: 3px solid transparent;
  margin-bottom: -1px; display: inline-flex; align-items: center; gap: 9px;
}
.tab:hover { color: var(--navy-900); }
.tab.active { color: var(--navy-900); border-bottom-color: var(--gold-500); }
.tab .tab-count {
  background: var(--paper-2); color: var(--ink-soft);
  font-size: 0.72rem; font-weight: 700;
  padding: 2px 8px; border-radius: var(--r-pill);
}
.tab.active .tab-count { background: var(--navy-900); color: var(--gold-400); }
.tab .tab-count.hot { background: var(--alert); color: var(--white); }

.panel { display: none; }
.panel.active { display: block; }

.toolbar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-bottom: 18px;
}
.toolbar input[type="search"] {
  flex: 1; min-width: 220px;
  padding: 11px 16px; border: 1px solid var(--line);
  border-radius: var(--r-pill); font-family: var(--font-body);
  font-size: 0.92rem; background: var(--white); color: var(--ink);
}

.tally {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.tally div {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px;
}
.tally strong {
  display: block; font-family: var(--font-display); font-size: 1.6rem;
  color: var(--navy-900); letter-spacing: -0.03em; line-height: 1.2;
}
.tally span { font-size: 0.78rem; color: var(--ink-faint); }

.table-wrap {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); overflow-x: auto;
}
table.data { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.data th {
  text-align: left; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint);
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  white-space: nowrap; background: var(--paper);
}
table.data td {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  color: var(--ink-soft); vertical-align: top;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fafcff; }
table.data td strong { color: var(--ink); font-weight: 600; }
table.data .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .when { color: var(--ink-faint); white-space: nowrap; font-size: 0.82rem; }
table.data .wrap-text { min-width: 260px; white-space: pre-wrap; }

.tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r-pill); white-space: nowrap;
}
.tag-new { background: var(--gold-100); color: var(--gold-600); }
.tag-ok { background: #dff5eb; color: var(--open); }
.tag-bad { background: #fdeceb; color: var(--alert); }
.tag-mute { background: var(--paper-2); color: var(--ink-soft); }

select.row-select {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  padding: 6px 10px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--white); color: var(--ink);
  cursor: pointer;
}

.empty-state {
  padding: 56px 24px; text-align: center; color: var(--ink-soft);
}
.empty-state strong { display: block; color: var(--navy-900); font-size: 1.05rem; margin-bottom: 6px; }

/* ==========================================================================
   Tuition — weekly / monthly switch and the fee tables
   The flyer prices everything two ways, so the page does too.
   ========================================================================== */

.seg {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-pill); margin-bottom: 30px;
}
.seg button {
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 700;
  padding: 10px 24px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg button:hover { color: var(--navy-900); }
.seg button.active { background: var(--navy-900); color: var(--gold-400); }

.fee-list {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.fee-row {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.fee-row:last-child { border-bottom: 0; }
.fee-row .fee-name { flex: 1; min-width: 180px; }
.fee-row .fee-name strong { display: block; color: var(--ink); font-weight: 700; }
.fee-row .fee-name span { font-size: 0.85rem; color: var(--ink-faint); }
.fee-row .fee-amount {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: var(--navy-900); letter-spacing: -0.03em; white-space: nowrap;
}
.fee-row .fee-amount small {
  display: block; font-family: var(--font-body); font-size: 0.75rem;
  font-weight: 600; color: var(--ink-faint); letter-spacing: 0;
}
.fee-row .btn { flex-shrink: 0; }

.rate-hours {
  font-size: 0.82rem; font-weight: 600; color: var(--royal-500);
  background: #e9f0fe; display: inline-block;
  padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 12px;
}

.free-badge {
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem;
  color: var(--open); letter-spacing: -0.03em; line-height: 1; margin: 6px 0 4px;
}

.policy-list { list-style: none; margin: 0; padding: 0; counter-reset: policy; }
.policy-list li {
  position: relative; padding-left: 40px; margin-bottom: 16px;
  color: var(--ink-soft); font-size: 0.95rem;
}
.policy-list li:last-child { margin-bottom: 0; }
.policy-list li::before {
  counter-increment: policy; content: counter(policy);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-400);
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.band-navy .policy-list li { color: var(--ink-invert-soft); }
.band-navy .policy-list li::before { background: var(--gold-500); color: var(--navy-950); }
