/* ==========================================================================
   Kumdan Jungang Christian School Inc.
   Colours are taken from the school seal: royal blue, orange, green, sky.
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */

:root {
  /* brand — sampled from the school seal, used for graphics */
  --brand-blue:   #003080;
  --brand-orange: #f08030;
  --brand-green:  #6faf40;
  --brand-sky:    #0090c0;

  /* ink variants — darkened so text and buttons clear WCAG AA */
  --blue-ink:   #002a6e;
  --orange-ink: #a34a08;
  --green-ink:  #3c7519;
  --sky-ink:    #06607f;

  /* tints */
  --blue-050:   #eef3fc;
  --blue-100:   #dbe5f6;
  --orange-050: #fdf1e6;
  --green-050:  #eef6e7;

  /* neutrals */
  --ink:     #14181f;
  --body:    #39414f;
  --muted:   #626c7d;
  --line:    #e2e7ef;
  --surface: #f6f8fc;
  --paper:   #ffffff;

  /* semantic */
  --bg:          var(--paper);
  --bg-sunken:   var(--surface);
  --fg:          var(--ink);
  --fg-body:     var(--body);
  --fg-muted:    var(--muted);
  --border:      var(--line);
  --card-bg:     var(--paper);
  --card-shadow: 0 1px 2px rgb(20 24 31 / .05), 0 8px 24px -12px rgb(20 24 31 / .16);
  --link:        var(--blue-ink);

  /* type */
  --font-head: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* space — 8px scale */
  --s1: .5rem;  --s2: 1rem;   --s3: 1.5rem; --s4: 2rem;
  --s5: 3rem;   --s6: 4rem;   --s7: 6rem;   --s8: 8rem;

  --radius: 12px;
  --radius-lg: 20px;
  --wrap: 1200px;
  --header-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f5fa;  --body: #ccd4e0;  --muted: #98a3b4;
    --line: #2a3240; --surface: #141a24; --paper: #0d1218;
    --blue-050: #101c33; --blue-100: #16264a;
    --orange-050: #2a1d10; --green-050: #16220f;
    --bg: var(--paper); --bg-sunken: var(--surface);
    --fg: var(--ink); --fg-body: var(--body); --fg-muted: var(--muted);
    --border: var(--line); --card-bg: #141a24;
    --card-shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -12px rgb(0 0 0 / .7);
    --link: #8fb6f5;
    --blue-ink: #4d84e0;
    --orange-ink: #f0a468;
    --green-ink: #9ad06e;
  }
}

:root[data-theme="dark"] {
  --ink: #f2f5fa;  --body: #ccd4e0;  --muted: #98a3b4;
  --line: #2a3240; --surface: #141a24; --paper: #0d1218;
  --blue-050: #101c33; --blue-100: #16264a;
  --orange-050: #2a1d10; --green-050: #16220f;
  --bg: var(--paper); --bg-sunken: var(--surface);
  --fg: var(--ink); --fg-body: var(--body); --fg-muted: var(--muted);
  --border: var(--line); --card-bg: #141a24;
  --card-shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -12px rgb(0 0 0 / .7);
  --link: #8fb6f5;
  --blue-ink: #4d84e0;
  --orange-ink: #f0a468;
  --green-ink: #9ad06e;
}

/* --- reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* --- typography ----------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--fg);
  line-height: 1.15;
  margin: 0 0 var(--s2);
  font-weight: 600;
  letter-spacing: -.012em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
h4 { font-size: 1.08rem; font-family: var(--font-body); font-weight: 650; }
p  { margin: 0 0 var(--s2); }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin: 0 0 var(--s1);
}
.eyebrow--blue  { color: var(--blue-ink); }
.eyebrow--green { color: var(--green-ink); }
.lede { font-size: 1.16rem; color: var(--fg-body); }
.muted { color: var(--fg-muted); }

/* --- layout --------------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.section { padding-block: clamp(3rem, 1.5rem + 6vw, 6rem); }
.section--sunken { background: var(--bg-sunken); }
.section--tint   { background: var(--blue-050); }

.section-head { max-width: 62ch; margin-bottom: var(--s4); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--s3); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* --- skip link ------------------------------------------------------------ */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand-blue); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* --- top bar -------------------------------------------------------------- */

.topbar {
  background: var(--brand-blue);
  color: #d8e4fb;
  font-size: .85rem;
}
.topbar__inner {
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3);
  align-items: center; justify-content: space-between;
  padding-block: .5rem;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
@media (max-width: 640px) { .topbar { display: none; } }

/* --- header --------------------------------------------------------------- */

.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; gap: var(--s2);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.brand__name {
  font-family: var(--font-head); font-weight: 600;
  color: var(--fg); font-size: 1.02rem; line-height: 1.2;
  letter-spacing: -.01em;
}
.brand__sub { display: block; font-family: var(--font-body); font-size: .72rem;
  font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-muted); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  display: block; padding: .55rem .8rem; border-radius: 8px;
  color: var(--fg); text-decoration: none; font-weight: 550; font-size: .97rem;
}
.nav a:hover { background: var(--blue-050); color: var(--blue-ink); }
.nav a[aria-current="page"] { color: var(--blue-ink); background: var(--blue-050); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--card-bg); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--fg); border-radius: 2px;
  content: ""; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .header__inner { gap: .5rem; }
  .nav {
    position: fixed; inset: calc(var(--header-h)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: var(--s1) 1.25rem var(--s3);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .85rem .75rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav .btn { margin-top: var(--s2); text-align: center; border-bottom: 0; }
  .brand__name { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.4rem;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
/* The logo orange carries dark text rather than white: #f08030 with white is
   2.4:1 and fails AA, with --ink it is 6.6:1 and keeps the brand colour exact. */
.btn--primary { background: var(--brand-orange); color: #14181f; }
.btn--primary:hover { background: #e2701d; color: #14181f; }
.btn--blue { background: var(--brand-blue); color: #fff; }
.btn--blue:hover { background: #001f5a; color: #fff; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--blue-ink); color: var(--blue-ink); }
.btn--onlight { background: #fff; color: var(--brand-blue); }
.btn--onlight:hover { background: var(--blue-050); color: var(--brand-blue); }
.btn--outline-light { border-color: rgb(255 255 255 / .55); color: #fff; }
.btn--outline-light:hover { background: rgb(255 255 255 / .14); color: #fff; }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--brand-sky);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- hero ----------------------------------------------------------------- */

.hero { position: relative; background: var(--brand-blue); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgb(0 42 110 / .94) 0%, rgb(0 48 128 / .82) 42%, rgb(0 48 128 / .48) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 2rem + 8vw, 7.5rem); }
.hero__body { max-width: 42rem; }
.hero h1 { color: #fff; margin-bottom: var(--s2); }
.hero__tag {
  font-size: clamp(1.02rem, .95rem + .5vw, 1.25rem);
  color: #d5e2fa; margin-bottom: var(--s3); max-width: 34rem;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 650; letter-spacing: .11em; text-transform: uppercase;
  color: #ffd9b8; margin-bottom: var(--s2);
}
.hero__eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand-orange); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); }

/* page hero for inner pages */
.pagehero { background: var(--brand-blue); color: #fff; padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.pagehero h1 { color: #fff; margin-bottom: .5rem; }
.pagehero p { color: #cfdefa; max-width: 52ch; margin: 0; }
.crumb { font-size: .85rem; color: #a9c2ee; margin-bottom: var(--s2); }
.crumb a { color: #dbe7fb; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* --- facts strip ---------------------------------------------------------- */

.facts { background: var(--bg-sunken); border-bottom: 1px solid var(--border); }
.facts__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--s2); padding-block: var(--s4);
}
.fact { text-align: center; padding-inline: var(--s1); }
.fact dt { font-size: .82rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-muted); }
.fact dd {
  margin: .35rem 0 0; font-family: var(--font-head);
  font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); font-weight: 600; color: var(--brand-blue);
  line-height: 1.15;
}
:root[data-theme="dark"] .fact dd, :root:not([data-theme="light"]) .fact dd { color: var(--fg); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .fact dd { color: var(--brand-blue); } }

/* --- cards ---------------------------------------------------------------- */

.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--card-shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.card__media { aspect-ratio: 4 / 3; background: var(--bg-sunken); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--s3); display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card__body > :last-child { margin-top: auto; }
.card__link { font-weight: 600; text-decoration: none; color: var(--link); }
.card__link:hover { text-decoration: underline; }
.card__link::after { content: " \2192"; }

.card--program .card__body { gap: .75rem; }
.card__tag {
  align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px;
}
.tag--blue   { background: var(--blue-050);   color: var(--blue-ink); }
.tag--orange { background: var(--orange-050); color: var(--orange-ink); }
.tag--green  { background: var(--green-050);  color: var(--green-ink); }

/* --- values --------------------------------------------------------------- */

.value { padding: var(--s3); border-radius: var(--radius); background: var(--card-bg); border: 1px solid var(--border); }
.value__mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: var(--s2); }
.value__mark svg { width: 22px; height: 22px; }
.value__mark b { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; }
.mark--blue   { background: var(--blue-050);   color: var(--blue-ink); }
.mark--orange { background: var(--orange-050); color: var(--orange-ink); }
.mark--green  { background: var(--green-050);  color: var(--green-ink); }
.mark--sky    { background: #e6f4fa;           color: var(--sky-ink); }
:root[data-theme="dark"] .mark--sky { background: #0f2630; }
.value h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 650; margin-bottom: .35rem; }
.value p { font-size: .96rem; color: var(--fg-muted); margin: 0; }

/* --- split (image + text) ------------------------------------------------- */

.split { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__stack { display: grid; gap: var(--s2); }
.split__stack img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* --- quote band ----------------------------------------------------------- */

.verse { background: var(--brand-blue); color: #fff; text-align: center; }
.verse blockquote {
  margin: 0; font-family: var(--font-head);
  font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2.1rem); line-height: 1.35; color: #fff;
}
.verse cite {
  display: block; margin-top: var(--s2); font-style: normal; font-family: var(--font-body);
  font-size: .82rem; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; color: #ffd9b8;
}

/* --- CTA band ------------------------------------------------------------- */

.cta { background: var(--blue-050); }
.cta__inner {
  display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between;
  padding: clamp(2rem, 1.2rem + 3vw, 3.5rem); border-radius: var(--radius-lg);
  background: var(--brand-blue); color: #fff;
}
.cta__inner h2 { color: #fff; margin-bottom: .5rem; }
.cta__inner p { color: #cfdefa; margin: 0; max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); }

/* --- timeline ------------------------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.timeline li { position: relative; padding: 0 0 var(--s3) var(--s4); }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--brand-orange); border: 3px solid var(--bg);
}
.timeline b { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--fg); }
.timeline span { color: var(--fg-muted); font-size: .97rem; }

/* --- prose ---------------------------------------------------------------- */

.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--s5); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s4); }
.prose ul, .prose ol { margin: 0 0 var(--s2); padding-left: 1.35rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--orange-ink); }

.panel {
  background: var(--card-bg); border: 1px solid var(--border);
  border-left: 4px solid var(--brand-orange);
  border-radius: var(--radius); padding: var(--s3);
}
.panel--blue  { border-left-color: var(--brand-blue); }
.panel--green { border-left-color: var(--brand-green); }
.panel h3 { margin-top: 0; }

/* --- details / requirements ----------------------------------------------- */

details.acc {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card-bg); margin-bottom: var(--s2); overflow: hidden;
}
details.acc > summary {
  cursor: pointer; padding: var(--s2) var(--s3); font-weight: 650; color: var(--fg);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  min-height: 44px;
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after {
  content: "+"; font-size: 1.4rem; line-height: 1; color: var(--orange-ink); flex: none;
}
details.acc[open] > summary::after { content: "\2212"; }
details.acc[open] > summary { border-bottom: 1px solid var(--border); }
.acc__body { padding: var(--s3); }
.acc__body > :last-child { margin-bottom: 0; }

/* --- gallery -------------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s3); }
.filters button {
  min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card-bg); color: var(--fg-body);
  font-weight: 600; font-size: .92rem; cursor: pointer;
}
.filters button:hover { border-color: var(--blue-ink); color: var(--blue-ink); }
.filters button[aria-pressed="true"] { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s2); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-sunken); border: 1px solid var(--border); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: .7rem var(--s2); font-size: .88rem; color: var(--fg-muted); }
.gallery [hidden] { display: none; }

/* --- staff ---------------------------------------------------------------- */

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s2); }
.person {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card-bg); padding: var(--s3); text-align: center;
}
.person__avatar {
  width: 76px; height: 76px; margin: 0 auto var(--s2); border-radius: 50%;
  background: var(--blue-050); color: var(--blue-ink);
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 600;
}
.person b { display: block; color: var(--fg); }
.person span { font-size: .9rem; color: var(--fg-muted); }

/* --- contact -------------------------------------------------------------- */

.contact-grid { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }

.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.detail-list li { display: flex; gap: var(--s2); }
.detail-list svg { width: 22px; height: 22px; flex: none; color: var(--orange-ink); margin-top: 3px; }
.detail-list b { display: block; color: var(--fg); }
.detail-list a { color: var(--link); }

.field { display: grid; gap: .35rem; margin-bottom: var(--s2); }
.field label { font-weight: 600; font-size: .93rem; color: var(--fg); }
.field input, .field select, .field textarea {
  padding: .7rem .85rem; min-height: 44px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--fg);
}
.field textarea { min-height: 130px; resize: vertical; }

.map-frame {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-sunken); aspect-ratio: 16 / 10;
  display: grid; place-items: center; text-align: center; padding: var(--s3);
}

/* --- footer --------------------------------------------------------------- */

.footer { background: #001f5a; color: #b9cbe9; padding-block: var(--s5) var(--s3); }
.footer__grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer h2 { font-family: var(--font-body); font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #ffd9b8; margin-bottom: var(--s2); }
.footer a { color: #dce7f8; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
/* the page-level muted grey is only 2.95:1 on the footer navy */
.footer .muted { color: #a3bbdf; }
.footer__brand { display: flex; gap: .85rem; align-items: flex-start; }
.footer__brand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; flex: none; }
.footer__brand strong { color: #fff; font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; display: block; }
.footer__brand span { font-size: .88rem; }
.footer__bottom {
  margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid rgb(255 255 255 / .14);
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); justify-content: space-between;
  font-size: .87rem;
}

/* --- reveal --------------------------------------------------------------- */

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

/* --- utilities ------------------------------------------------------------ */

.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;
}
.stack-sm > * + * { margin-top: var(--s1); }
.center { text-align: center; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--border); }
th { font-weight: 650; color: var(--fg); }

/* breadcrumb links are inline in a sentence; pad them to a comfortable tap size */
.crumb a { display: inline-block; padding-block: .25rem; }

/* headings focused programmatically for screen-reader announcement should not
   paint a focus ring for mouse users */
[tabindex="-1"]:focus { outline: none; }

/* the Enroll now CTA lives inside the nav but must keep its button styling
   even when it points at the page you are already on */
.nav a.btn[aria-current="page"] { background: var(--brand-orange); color: #14181f; }
