/* ==========================================================================
   Fatima High School — Design System v1.0
   One file. Mobile first. Rules and reasons: see DESIGN-SYSTEM.md
   Sections: 1 Tokens · 2 Base · 3 Layout · 4 Type helpers · 5 Buttons
   6 Header and menu · 7 Hero · 8 Cards · 9 Photos · 10 Forms · 11 Alerts
   12 Content blocks · 13 Footer · 14 Utilities · 15 Reduced motion · 16 Print
   ========================================================================== */

/* 0. FONTS (self-hosted, latin subset; no request to Google) --------------- */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/hanken-grotesk-var.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/literata-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/literata-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 1. TOKENS --------------------------------------------------------------- */
:root {
  /* Brand colours: sampled from the school crest. Swap here to re-brand. */
  --blue-50: #EEF3FB;
  --blue-100: #D9E4F6;
  --blue-200: #B3C8EC;
  --blue-600: #1F4FA3;   /* main */
  --blue-700: #173D80;
  --blue-900: #0F2750;
  --yellow-50: #FFF8DC;
  --yellow-400: #F6C31C; /* accent: Apply Now only */
  --yellow-500: #E2AE00;
  --yellow-800: #7A5600;
  --red-50: #FDF0EE;
  --red-500: #D23A2C;    /* crest red: decoration only */
  --red-700: #B3261A;    /* error text */
  --green-50: #EDF6F0;
  --green-600: #23753F;  /* crest green: decoration only */
  --green-700: #1E6B3A;  /* success text */

  /* Neutrals */
  --white: #FFFFFF;
  --tint: #F3F6FB;       /* soft blue-grey (v1.1) */
  --line: #DFE3EA;
  --border: #7C869B;     /* form borders: 3.66:1 on white */
  --text-3: #667089;     /* placeholder, disabled */
  --text-2: #4F5A73;
  --ink: #16213A;

  /* Roles: components use these, not the raw colours above */
  --color-bg: var(--white);
  --color-bg-alt: var(--tint);
  --color-text: var(--ink);
  --color-text-muted: var(--text-2);
  --color-link: var(--blue-600);
  --color-link-hover: var(--blue-700);
  --color-primary: var(--blue-600);
  --color-primary-hover: var(--blue-700);
  --color-primary-active: var(--blue-900);
  --color-accent: var(--yellow-400);
  --color-accent-hover: var(--yellow-500);
  --color-on-accent: var(--ink);
  --color-focus: var(--blue-600);
  --color-success: var(--green-700);
  --color-error: var(--red-700);
  --color-warning: var(--yellow-800);
  --color-info: var(--blue-600);

  /* Type */
  --font-head: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;                          /* 13 */
  --fs-sm: 0.9375rem;                          /* 15 */
  --fs-base: 1.0625rem;                        /* 17 */
  --fs-md: 1.1875rem;                          /* 19 */
  --fs-lg: clamp(1.3125rem, 1.2rem + 0.5vw, 1.5rem);
  --fs-xl: clamp(1.5625rem, 1.4rem + 0.9vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.6rem + 1.6vw, 2.75rem);
  --fs-3xl: clamp(2.25rem, 1.7rem + 2.8vw, 3.75rem);
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-body: 1.6;
  --measure: 65ch;

  /* Space: 4px base */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --gutter: 1rem;
  --container: 75rem;       /* 1200 */
  --section-y: var(--sp-7);

  /* Shape */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --border-hair: 1px solid var(--line);
  --shadow-1: 0 1px 2px rgb(22 33 58 / 0.06);
  --shadow-2: 0 4px 12px rgb(22 33 58 / 0.08);
  --shadow-3: 0 12px 32px rgb(22 33 58 / 0.14);

  /* Motion */
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 320ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-page-out: 180ms;  /* page change: old page fades */
  --dur-page-in: 260ms;   /* page change: new page arrives */
  --dur-reveal: 600ms;    /* story photo swap */
  --rise: 28px;           /* scroll reveal distance */

  --header-h: 4.25rem;
  --tap: 3rem;              /* 48px minimum touch target */
}
@media (min-width: 48rem) { :root { --gutter: 1.5rem; --section-y: var(--sp-8); } }
@media (min-width: 64rem) { :root { --gutter: 2rem; --section-y: var(--sp-9); } }

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
p, ul, ol, dl, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--color-link-hover); text-decoration-thickness: 2px; }
a:active { color: var(--color-primary-active); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: var(--border-hair); margin: var(--sp-6) 0; }
::selection { background: var(--yellow-400); color: var(--ink); }

/* 3. LAYOUT --------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(46rem + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--color-bg-alt); }
.section--tight { padding-block: var(--sp-6); }
.section__head { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-6); max-width: 46rem; }
.section__head--row { max-width: none; }
@media (min-width: 48rem) {
  .section__head--row { grid-template-columns: 1fr auto; align-items: end; }
}

.grid { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .grid { gap: var(--sp-6); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--sidebar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
.stack > * + * { margin-top: var(--sp-4); }
.stack--sm > * + * { margin-top: var(--sp-2); }
.stack--lg > * + * { margin-top: var(--sp-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* The crest motif: four solid blocks. Use once per view, not on every box. */
.quarters {
  display: block; height: 4px; border: 0; margin: 0;
  background: linear-gradient(90deg, var(--blue-600) 0 25%, var(--yellow-400) 25% 50%, var(--red-500) 50% 75%, var(--green-600) 75% 100%);
}
.quarters--short { width: 4.5rem; border-radius: 2px; }

/* 4. TYPE HELPERS --------------------------------------------------------- */
.eyebrow { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-600); }
.lead { font-size: var(--fs-md); line-height: 1.55; color: var(--color-text-muted); max-width: var(--measure); }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--fs-sm); }
.measure { max-width: var(--measure); }
.h1 { font: 600 var(--fs-3xl)/var(--lh-tight) var(--font-head); letter-spacing: -0.01em; }
.h2 { font: 600 var(--fs-2xl)/var(--lh-tight) var(--font-head); letter-spacing: -0.01em; }
.h3 { font: 600 var(--fs-xl)/var(--lh-snug) var(--font-head); letter-spacing: -0.01em; }
.h4 { font: 600 var(--fs-lg)/var(--lh-snug) var(--font-head); letter-spacing: -0.01em; }

/* Long text from the school (story, principal's message) */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2, .prose h3 { margin-top: var(--sp-6); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--sp-2); }
.prose li::marker { color: var(--blue-600); font-weight: 700; }

/* 5. BUTTONS -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--tap); padding: 0.625rem 1.25rem;
  font-family: var(--font-body); font-size: var(--fs-base); font-weight: 700; line-height: 1.2;
  text-align: center; text-decoration: none; white-space: nowrap;
  color: var(--white); background: var(--color-primary);
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--color-primary-hover); color: var(--white); }
.btn:active { background: var(--color-primary-active); transform: scale(0.97); }

.btn--secondary { color: var(--blue-600); background: var(--white); border-color: var(--blue-600); }
.btn--secondary:hover { color: var(--blue-700); background: var(--blue-50); border-color: var(--blue-700); }
.btn--secondary:active { color: var(--blue-900); background: var(--blue-100); }

.btn--ghost { color: var(--blue-600); background: transparent; padding-inline: var(--sp-2); }
.btn--ghost:hover { color: var(--blue-700); background: var(--blue-50); }
.btn--ghost:active { color: var(--blue-900); background: var(--blue-100); }

/* Apply Now: the only yellow button. One per view. */
.btn--apply { color: var(--color-on-accent); background: var(--color-accent); }
.btn--apply:hover { color: var(--color-on-accent); background: var(--color-accent-hover); }
.btn--apply:active { color: var(--color-on-accent); background: var(--color-accent-hover); box-shadow: inset 0 2px 0 rgb(22 33 58 / 0.18); }
.btn--apply::after, .btn--arrow::after { content: "\2192"; font-weight: 400; transition: transform var(--dur) var(--ease); }
.btn--apply:hover::after, .btn--arrow:hover::after { transform: translateX(3px); }

.btn--sm { min-height: 2.5rem; padding: 0.375rem 0.875rem; font-size: var(--fs-sm); }
.btn--lg { min-height: 3.5rem; padding: 0.75rem 1.75rem; font-size: var(--fs-md); }
.btn--block { display: flex; width: 100%; }

.btn:disabled, .btn[aria-disabled="true"] {
  color: var(--text-3); background: #E6E9EF; border-color: transparent;
  cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none;
}
.btn:disabled::after, .btn[aria-disabled="true"]::after { transform: none; }

/* 6. HEADER AND MENU ------------------------------------------------------ */
.skip-link {
  position: absolute; left: var(--sp-3); top: -6rem; z-index: 100;
  padding: var(--sp-3) var(--sp-4); background: var(--ink); color: var(--white);
  font-weight: 700; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: var(--sp-3); color: var(--white); outline-color: var(--yellow-400); }

.announce { background: var(--blue-600); color: var(--white); font-size: var(--fs-sm); padding-block: var(--sp-2); text-align: center; }
.announce a { color: var(--white); font-weight: 700; display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; } /* v1.4: 44px tap height */
.announce a:hover { color: var(--yellow-400); }
.announce a:focus-visible { outline-color: var(--yellow-400); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: var(--border-hair); }
.site-header__bar { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--header-h); position: relative; }

.brand { display: flex; align-items: center; gap: var(--sp-3); margin-right: auto; color: var(--ink); text-decoration: none; min-height: var(--tap); }
.brand:hover { color: var(--blue-700); }
.brand__crest { width: 2.5rem; height: auto; flex: none; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; line-height: 1.15; letter-spacing: -0.01em; }
.brand__tag { display: block; font-family: var(--font-body); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-top: 2px; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: var(--tap); padding: 0 var(--sp-3);
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  font-size: var(--fs-sm); font-weight: 700; color: var(--ink); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.nav-toggle:hover { border-color: var(--blue-600); background: var(--blue-50); }
.nav-toggle:active { background: var(--blue-100); }
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block; width: 1.125rem; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform var(--dur) var(--ease), background-color var(--dur-fast) var(--ease);
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Small phones: keep the bar on one row. The label stays for screen readers. */
@media (max-width: 29.99rem) {
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-toggle { padding: 0 0.875rem; }
  .brand__tag { display: none; }
  .brand__name { font-size: 1rem; }
}
@media (max-width: 69.99rem) { .site-header__apply::after { display: none; } }

/* Mobile menu: a panel under the bar */
.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  background: var(--white); border-bottom: var(--border-hair); box-shadow: var(--shadow-3);
  padding: var(--sp-2) var(--gutter) var(--sp-5);
}
.site-nav.is-open { display: block; }
.site-nav__list, .site-nav__sub { list-style: none; margin: 0; padding: 0; }
.site-nav__item { border-bottom: var(--border-hair); }
.site-nav__link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  width: 100%; min-height: var(--tap); padding: var(--sp-3) var(--sp-1);
  background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-body); font-size: var(--fs-base); font-weight: 600; text-align: left;
  color: var(--ink); text-decoration: none;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.site-nav__link:hover { color: var(--blue-600); }
.site-nav__link:active { color: var(--blue-900); }
.site-nav__link[aria-current="page"], .site-nav__link.is-current { color: var(--blue-600); box-shadow: inset 3px 0 0 var(--yellow-400); padding-left: var(--sp-3); }
button.site-nav__link::after {
  content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin-right: var(--sp-2);
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--dur) var(--ease);
}
button.site-nav__link[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.site-nav__sub { display: none; padding: 0 0 var(--sp-3) var(--sp-4); }
button.site-nav__link[aria-expanded="true"] + .site-nav__sub { display: block; }
.site-nav__sublink {
  display: flex; align-items: center; min-height: 2.75rem; padding: var(--sp-2) var(--sp-3);
  color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; border-radius: var(--radius-sm);
}
.site-nav__sublink:hover { color: var(--blue-700); background: var(--blue-50); }
.site-nav__sublink:active { background: var(--blue-100); }
.site-nav__sublink[aria-current="page"] { color: var(--blue-600); font-weight: 700; }
.site-nav__extra { display: flex; flex-wrap: wrap; gap: var(--sp-3); padding-top: var(--sp-4); }

/* Desktop menu: one row. Switches at 70rem because seven items need the room. */
@media (min-width: 70rem) {
  .nav-toggle { display: none; }
  .brand { margin-right: 0; }
  .brand__crest { width: 2.875rem; }
  .brand__name { font-size: 1.1875rem; }
  .site-header__apply { order: 3; }
  .site-nav {
    display: block; position: static; flex: 1; max-height: none; overflow: visible;
    padding: 0; border: 0; box-shadow: none; background: transparent;
  }
  .site-nav__list { display: flex; justify-content: flex-end; gap: var(--sp-1); }
  .site-nav__item { position: relative; border: 0; }
  .site-nav__link { width: auto; padding: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); white-space: nowrap; }
  .site-nav__link:hover { background: var(--blue-50); }
  .site-nav__link[aria-current="page"], .site-nav__link.is-current { padding-left: var(--sp-3); box-shadow: inset 0 -3px 0 var(--yellow-400); }
  button.site-nav__link::after { width: 0.4rem; height: 0.4rem; margin-right: 0; }
  .site-nav__sub {
    position: absolute; left: 0; top: calc(100% + var(--sp-2)); min-width: 14rem; z-index: 60;
    padding: var(--sp-2); background: var(--white);
    border: var(--border-hair); border-top: 3px solid var(--blue-600); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-3);
  }
  .site-nav__extra { display: none; }
}

/* 7. HERO ----------------------------------------------------------------- */
/* Photo first. Words sit on a white panel, never on the photo: always AA. */
.hero { background: var(--color-bg-alt); padding-bottom: var(--sp-7); }
.hero__media { aspect-ratio: 4 / 3; max-height: 38rem; width: 100%; overflow: hidden; background: var(--blue-100); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__panel {
  position: relative; margin-top: calc(-1 * var(--sp-7)); max-width: 40rem;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); overflow: hidden;
}
.hero__body { display: grid; gap: var(--sp-4); padding: var(--sp-5); }
.hero__title { font-size: var(--fs-2xl); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); padding-top: var(--sp-2); }
@media (min-width: 48rem) {
  .hero__media { aspect-ratio: 16 / 8; }
  .hero__panel { margin-top: calc(-1 * var(--sp-9)); }
  .hero__body { padding: var(--sp-6); }
  .hero__title { font-size: var(--fs-3xl); }
}
@media (min-width: 80rem) { .hero__media { aspect-ratio: 16 / 6.5; } }

/* Page header for inside pages */
.page-header { background: var(--color-bg-alt); border-bottom: var(--border-hair); padding-block: var(--sp-6) var(--sp-7); }
.page-header > .container { display: grid; gap: var(--sp-3); }
.page-header__title { font-size: var(--fs-2xl); }

.breadcrumb { font-size: var(--fs-sm); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--text-3); }
.breadcrumb [aria-current="page"] { color: var(--text-2); }

/* 8. CARDS ---------------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: var(--border-hair); border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:has(.card__link):hover { border-color: var(--blue-200); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card:has(.card__link:active) { transform: none; box-shadow: var(--shadow-1); }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.card__media { aspect-ratio: 3 / 2; background: var(--blue-50); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.card:has(.card__link):hover .card__media img { transform: scale(1.03); }
.card__body { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5); flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.card__title { font-size: var(--fs-lg); line-height: var(--lh-snug); }
.card__text { font-size: var(--fs-sm); color: var(--text-2); }
.card__link { color: var(--ink); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:hover { color: var(--blue-600); }
.card__link:focus-visible { outline: none; }
.card__more { margin-top: auto; padding-top: var(--sp-2); font-size: var(--fs-sm); font-weight: 700; color: var(--blue-600); }
.card__more::after { content: " \2192"; }

/* Event card: date first, because parents scan for dates */
.card--event { flex-direction: row; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-4); }
.card--event .card__body { padding: 0; }
.date-chip { flex: none; width: 4rem; text-align: center; border: var(--border-hair); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.date-chip__month { display: block; padding: 2px 0; background: var(--yellow-400); color: var(--ink); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.date-chip__day { display: block; padding: var(--sp-1) 0 var(--sp-2); font: 600 1.625rem/1.1 var(--font-head); color: var(--ink); }

/* Class card: one crest colour on the top edge for each stage */
.card--class { border-top: 4px solid var(--blue-600); }
.card--class.card--yellow { border-top-color: var(--yellow-400); }
.card--class.card--red { border-top-color: var(--red-500); }
.card--class.card--green { border-top-color: var(--green-600); }
.card__facts { list-style: none; margin: var(--sp-2) 0 0; padding: 0; font-size: var(--fs-sm); }
.card__facts li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; border-top: var(--border-hair); }
.card__facts span:first-child { color: var(--text-2); }
.card__facts span:last-child { font-weight: 700; text-align: right; }

.tag { display: inline-flex; align-items: center; padding: 2px 0.625rem; font-size: var(--fs-xs); font-weight: 700; color: var(--blue-700); background: var(--blue-100); border-radius: var(--radius-pill); }
.tag--yellow { color: var(--ink); background: var(--yellow-400); }
.tag--green { color: var(--green-700); background: var(--green-50); }
.tag--red { color: var(--red-700); background: var(--red-50); }

/* 9. PHOTOS --------------------------------------------------------------- */
.photo { position: relative; overflow: hidden; background: var(--blue-50); border-radius: var(--radius); aspect-ratio: 3 / 2; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--16x9 { aspect-ratio: 16 / 9; }
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--1x1 { aspect-ratio: 1; }
.photo--3x4 { aspect-ratio: 3 / 4; }
/* Empty slot: shows what real photo is needed. Remove the class when the photo arrives. */
.photo--empty {
  display: grid; place-items: center; padding: var(--sp-4); text-align: center;
  background: var(--tint); border: 2px dashed var(--border);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-2);
}
.photo__caption, .photo-grid figcaption { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--text-2); }

.photo-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.photo-grid__item { margin: 0; }
.photo-grid__item--wide { grid-column: span 2; }
.photo-grid__item--wide .photo { aspect-ratio: 16 / 9; }
.photo-grid a { display: block; border-radius: var(--radius); }
.photo-grid a .photo img { transition: transform var(--dur-slow) var(--ease); }
.photo-grid a:hover .photo img { transform: scale(1.03); }
@media (min-width: 48rem) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); } }
@media (min-width: 64rem) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 10. FORMS --------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); max-width: 36rem; }
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--sp-2); }
.field__label { font-size: var(--fs-sm); font-weight: 700; }
.field__req { color: var(--red-700); }
.field__hint { font-size: var(--fs-sm); color: var(--text-2); }
.field__error { display: none; font-size: var(--fs-sm); font-weight: 700; color: var(--red-700); }
.field--error .field__error { display: block; }

.input, .select, .textarea {
  width: 100%; min-height: var(--tap); padding: 0.625rem 0.875rem;
  font-size: 1rem; line-height: 1.4; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  appearance: none;
}
.textarea { min-height: 8rem; resize: vertical; }
.select {
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.875rem) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: 3px solid var(--color-focus); outline-offset: 1px; border-color: var(--blue-600); border-radius: var(--radius);
}
.input:disabled, .select:disabled, .textarea:disabled { background: var(--tint); border-color: var(--line); color: var(--text-3); cursor: not-allowed; }
.field--error .input, .field--error .select, .field--error .textarea,
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red-700); border-width: 2px; background: var(--red-50); }
.field--success .input { border-color: var(--green-700); border-width: 2px; }

.check { display: flex; align-items: flex-start; gap: var(--sp-3); min-height: 2.75rem; padding-block: var(--sp-2); cursor: pointer; }
.check input {
  appearance: none; flex: none; width: 1.5rem; height: 1.5rem; margin: 1px 0 0;
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
  display: grid; place-content: center;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.check input[type="radio"] { border-radius: 50%; }
.check input::before { content: ""; width: 0.75rem; height: 0.75rem; transform: scale(0); transition: transform var(--dur-fast) var(--ease); background: var(--white); }
.check input[type="checkbox"]::before { clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); }
.check input[type="radio"]::before { border-radius: 50%; width: 0.625rem; height: 0.625rem; }
.check input:hover { border-color: var(--blue-600); }
.check input:checked { background: var(--blue-600); border-color: var(--blue-600); }
.check input:checked::before { transform: scale(1); }
.check input:disabled { background: var(--tint); border-color: var(--line); cursor: not-allowed; }
.check input:disabled + span { color: var(--text-3); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: var(--sp-2); font-size: var(--fs-sm); font-weight: 700; }

/* 11. ALERTS -------------------------------------------------------------- */
.alert {
  display: grid; gap: var(--sp-1); padding: var(--sp-4) var(--sp-5);
  background: var(--blue-50); border: 1px solid var(--blue-200); border-left: 4px solid var(--blue-600);
  border-radius: var(--radius-sm); color: var(--ink); font-size: var(--fs-sm);
}
.alert__title { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 700; line-height: 1.3; letter-spacing: 0; color: var(--blue-700); }
.alert--success { background: var(--green-50); border-color: #BFDDC9; border-left-color: var(--green-700); }
.alert--success .alert__title { color: var(--green-700); }
.alert--warning { background: var(--yellow-50); border-color: #EBD88A; border-left-color: var(--yellow-500); }
.alert--warning .alert__title { color: var(--yellow-800); }
.alert--error { background: var(--red-50); border-color: #F1C2BC; border-left-color: var(--red-700); }
.alert--error .alert__title { color: var(--red-700); }

/* 12. CONTENT BLOCKS ------------------------------------------------------ */
/* Stats bar */
/* Stats: one soft blue band, no boxes, so it reads differently from the task cards below (v1.1). */
.stats-band { background: var(--blue-50); border-block: 1px solid var(--blue-100); padding-block: var(--sp-6); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) 0; margin: 0; }
.stats__item { display: flex; flex-direction: column-reverse; gap: var(--sp-1); padding: 0 var(--sp-4); border-left: 3px solid var(--blue-600); }
.stats__item:nth-child(4n+2) { border-left-color: var(--yellow-400); }
.stats__item:nth-child(4n+3) { border-left-color: var(--green-600); }
.stats__item:nth-child(4n+4) { border-left-color: var(--red-500); }
@media (min-width: 48rem) { .stats-band { padding-block: var(--sp-7); } }
.stats__value { margin: 0; font: 600 var(--fs-2xl)/1 var(--font-head); color: var(--blue-600); }
.stats__label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats__item { padding: 0 var(--sp-5); } }

/* Steps: How to Apply */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--sp-5); }
.steps__item { counter-increment: step; position: relative; padding-left: 3.75rem; min-height: 2.75rem; }
.steps__item::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--blue-600); color: var(--white); font: 600 1.25rem/1 var(--font-head);
}
.steps__item:not(:last-child)::after { content: ""; position: absolute; left: calc(1.375rem - 1px); top: 3.125rem; bottom: calc(-1 * var(--sp-5) + 0.375rem); width: 2px; background: var(--line); }
.steps__title { font: 700 var(--fs-md)/1.3 var(--font-body); letter-spacing: 0; margin-bottom: var(--sp-1); }
.steps__text { color: var(--text-2); font-size: var(--fs-sm); max-width: var(--measure); }

/* Table: fees and dates */
.table-wrap { overflow-x: auto; border: var(--border-hair); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 0; } /* v1.5: both tables are 2 columns, they fit a phone */
.table caption { caption-side: top; text-align: left; padding: var(--sp-4); font-weight: 700; font-size: var(--fs-base); border-bottom: var(--border-hair); }
.table th, .table td { padding: var(--sp-3) var(--sp-4); text-align: left; vertical-align: top; border-bottom: var(--border-hair); }
.table thead th { background: var(--tint); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.table tbody th { font-weight: 700; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover > * { background: var(--blue-50); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Accordion: FAQ. Native details element, no JavaScript. */
.accordion { border-top: var(--border-hair); }
.accordion__item { border-bottom: var(--border-hair); }
.accordion__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 3.5rem; padding: var(--sp-4) var(--sp-1); cursor: pointer; list-style: none;
  font-weight: 700; font-size: var(--fs-base); color: var(--ink);
  transition: color var(--dur-fast) var(--ease);
}
.accordion__q::-webkit-details-marker { display: none; }
.accordion__q:hover { color: var(--blue-600); }
.accordion__q::after {
  content: ""; flex: none; width: 0.875rem; height: 0.875rem;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform var(--dur) var(--ease);
}
.accordion__item[open] > .accordion__q { color: var(--blue-600); }
.accordion__item[open] > .accordion__q::after { transform: rotate(45deg); }
.accordion__a { padding: 0 var(--sp-1) var(--sp-5); color: var(--text-2); max-width: var(--measure); }
.accordion__a > * + * { margin-top: var(--sp-3); }

/* Quote: principal's message, real testimonials only */
.quote { padding: var(--sp-5) 0 var(--sp-5) var(--sp-5); border-left: 4px solid var(--yellow-400); }
.quote__text { font: 400 italic var(--fs-lg)/1.45 var(--font-head); max-width: 40rem; }
.quote__by { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--text-2); }
.quote__by strong { display: block; color: var(--ink); }
.avatar { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; background: var(--blue-50); flex: none; }

/* Call to action band */
.cta-band { display: grid; gap: var(--sp-5); padding: var(--sp-6) var(--sp-5); background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-lg); }
.cta-band__title { font-size: var(--fs-xl); }
@media (min-width: 48rem) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: var(--sp-7); } }

/* Key facts list: contact details, dates */
.facts { display: grid; gap: 0; margin: 0; }
.facts__row { display: grid; gap: var(--sp-1); padding: var(--sp-3) 0; border-bottom: var(--border-hair); }
.facts__row dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.facts__row dd { margin: 0; font-weight: 600; }
@media (min-width: 40rem) { .facts__row { grid-template-columns: 10rem 1fr; align-items: baseline; } }

/* Pagination: news list */
.pagination { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 var(--sp-3);
  border: var(--border-hair); border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; color: var(--ink);
}
.pagination a:hover { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); }
.pagination [aria-current="page"] { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }

/* Task cards: "What do you need today?" on Home. Use with .card. */
.task .card__title { font-size: var(--fs-md); }
.task .card__text { color: var(--text-2); }
/* Soft crest tints, in crest order. The top edge carries the colour, as on class cards. */
.task { border-top: 3px solid var(--blue-600); background: var(--blue-50); box-shadow: var(--shadow-1); }
.task:nth-child(4n+2) { border-top-color: var(--yellow-400); background: var(--yellow-50); }
.task:nth-child(4n+3) { border-top-color: var(--green-600); background: var(--green-50); }
.task:nth-child(4n+4) { border-top-color: var(--red-500); background: var(--red-50); }

/* Photo story: Home "Life at Fatima". Phone: photo + label, one under the other.
   Desktop with JavaScript (.is-ready): the photo stays still on the left and changes
   as each label on the right scrolls past. Without JavaScript it stays a simple list. */
.story__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--sp-6); } /* v1.4: one column on phones */
@media (min-width: 40rem) { .story__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-4); } }
@media (min-width: 48rem) { .story__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); } }
.story__item figure { margin: 0; display: grid; gap: var(--sp-3); }
.story__label { display: flex; align-items: baseline; gap: var(--sp-3); font-family: var(--font-head); font-size: var(--fs-md); font-weight: 600; color: var(--ink); }
.story__cap { display: grid; gap: var(--sp-2); justify-items: start; }
.story__text { color: var(--text-2); font-size: var(--fs-sm); max-width: 34ch; }
.story__cta { margin-left: calc(-1 * var(--sp-2)); }
.story__n { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; color: var(--blue-600); font-variant-numeric: tabular-nums; }
.story__stage { display: none; }
@media (min-width: 64rem) {
  .story.is-ready { display: grid; grid-template-columns: 7fr 5fr; gap: var(--sp-8); align-items: start; }
  .story.is-ready .story__stage {
    display: block; position: sticky; top: calc(var(--header-h) + var(--sp-6));
    aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-50); box-shadow: var(--shadow-2);
  }
  .story__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
  .story__stage img.is-active { opacity: 1; z-index: 1; }
  .story.is-ready .story__list { grid-template-columns: 1fr; gap: 0; padding-block: 10vh 30vh; }
  .story.is-ready .story__item { min-height: 42vh; display: flex; align-items: center; }
  .story.is-ready .story__item .photo { display: none; }
  .story.is-ready .story__label { font-size: var(--fs-xl); color: var(--text-3); transition: color var(--dur) var(--ease); }
  .story.is-ready .story__item.is-active .story__label { color: var(--ink); }
  .story.is-ready .story__text { font-size: var(--fs-base); }
  .story.is-ready .story__text, .story.is-ready .story__cta { opacity: 0.45; transition: opacity var(--dur) var(--ease); }
  .story.is-ready .story__item.is-active .story__text, .story.is-ready .story__item.is-active .story__cta { opacity: 1; }
  .story.is-ready .story__cap { padding-left: 0; }
  .story.is-ready .story__item .story__label::before { content: ""; width: 0; height: 3px; align-self: center; background: var(--blue-600); transition: width var(--dur-slow) var(--ease); order: -1; }
  .story.is-ready .story__item.is-active .story__label::before { width: 2rem; }
}

/* Jump links: "On this page" list for long pages. Wraps, never scrolls sideways. */
.jumpnav { padding-block: var(--sp-4); border-bottom: var(--border-hair); background: var(--white); }
.jumpnav ul { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.jumpnav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--sp-4);
  border: var(--border-hair); border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; color: var(--blue-700);
}
.jumpnav a:hover { border-color: var(--blue-600); background: var(--blue-50); }

/* Filter buttons: Gallery. Hidden until JavaScript runs, so all photos show without it. */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.filters[hidden] { display: none; }
.filter {
  min-height: 2.75rem; padding: 0 var(--sp-4); font: 700 var(--fs-sm)/1 var(--font-body); color: var(--ink);
  background: var(--white); border: var(--border-hair); border-radius: var(--radius); cursor: pointer;
}
.filter:hover { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); }
.filter[aria-pressed="true"] { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.photo-grid__item[hidden] { display: none; }

/* 13. FOOTER -------------------------------------------------------------- */
.site-footer { background: var(--color-bg-alt); font-size: var(--fs-sm); }
.site-footer__main { display: grid; gap: var(--sp-6); padding-block: var(--sp-7); }
.site-footer__brand { display: grid; gap: var(--sp-3); justify-items: start; }
.site-footer__brand .brand__crest { width: 4.5rem; }
.site-footer__motto { font: 400 italic var(--fs-md)/1.3 var(--font-head); color: var(--ink); }
.site-footer__title { font: 700 var(--fs-xs)/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: var(--sp-3); }
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list a, .site-footer address a { display: inline-flex; align-items: center; min-height: 2.75rem; overflow-wrap: anywhere; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-footer__list a:hover, .site-footer address a:hover { color: var(--blue-600); text-decoration: underline; }
.site-footer address { font-style: normal; display: grid; gap: var(--sp-1); color: var(--text-2); }
.site-footer__base { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); justify-content: space-between; padding-block: var(--sp-4); border-top: var(--border-hair); color: var(--text-2); font-size: var(--fs-xs); }
.site-footer__base a { color: var(--text-2); }
.site-footer__base a:hover { color: var(--blue-700); }
@media (min-width: 48rem) { .site-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .site-footer__main { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* 14. UTILITIES ----------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--sp-4) !important; }
.mt-6 { margin-top: var(--sp-6) !important; }
.mt-7 { margin-top: var(--sp-7) !important; }
.hide-mobile { display: none; }
@media (min-width: 48rem) { .hide-mobile { display: revert; } .hide-desktop { display: none; } }

/* 14b. MOTION (v1.1) --------------------------------------------------------
   Calm, short, and only for people who have not asked for less motion.
   Every effect is an extra: content is fully visible without it. */
@media (prefers-reduced-motion: no-preference) {
  /* Page change: a soft crossfade. The header stays still. Chrome, Edge, Safari. */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: var(--dur-page-out) ease-in both vt-out; }
  ::view-transition-new(root) { animation: var(--dur-page-in) var(--ease) both vt-in; }

  /* FAQ boxes open and close smoothly (where the browser supports it). */
  :root { interpolate-size: allow-keywords; }
  .accordion__item::details-content {
    block-size: 0; overflow: hidden;
    transition: block-size var(--dur-slow) var(--ease), content-visibility var(--dur-slow) allow-discrete;
  }
  .accordion__item[open]::details-content { block-size: auto; }

  /* Menus slide down a little as they open. */
  .site-nav.is-open, button.site-nav__link[aria-expanded="true"] + .site-nav__sub { animation: var(--dur) var(--ease) both drop-in; }

  /* Links in the menu and footer: the underline slides up into place. */
  @media (hover: hover) {
    .site-footer__list a, .site-footer address a {
      text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.5em;
      transition: color var(--dur-fast) var(--ease), text-decoration-color var(--dur) var(--ease), text-underline-offset var(--dur) var(--ease);
    }
    .site-footer__list a:hover, .site-footer address a:hover { text-decoration-color: currentColor; text-underline-offset: 0.22em; }
    .card:has(.card__link):hover .card__media img, .photo-grid a:hover .photo img { transform: scale(1.04); }
  }

  /* Scroll motion. Browsers with scroll timelines use pure CSS. Others get the
     same look from a small script in js/main.js (.js-motion, .is-in, --py). */
  @supports (animation-timeline: view()) {
    .hero__media img { animation: hero-drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .page-header > .container > * { animation: rise var(--dur-page-in) var(--ease) both; }
    .page-header > .container > :nth-child(2) { animation-delay: 60ms; }
    .page-header > .container > :nth-child(3) { animation-delay: 120ms; }

    /* Rise into view. Items in a row arrive one after another. */
    .section__head, .card, .stats__item, .story__label, .steps__item, .facts__row, .quote, .cta-band,
    .accordion__item, .prose > *, .measure, .section .stack > * {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 5% cover 30%;
    }
    .grid > :nth-child(3n+2), .stats__item:nth-child(even), .story__item:nth-child(3n+2) .story__label { animation-range: entry 15% cover 36%; }
    .grid > :nth-child(3n+3), .story__item:nth-child(3n+3) .story__label { animation-range: entry 25% cover 42%; }
    .section__head .quarters--short { transform-origin: left; animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 35%; }

    /* Every photo: opens from the bottom, then drifts slower than the page (parallax). */
    .section .photo:not(.photo--empty), .card__media { animation: photo-open linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .section .photo:not(.photo--empty) img, .card__media img { animation: parallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
  @supports not (animation-timeline: view()) {
    .js-motion [data-rise] { opacity: 0; transform: translateY(var(--rise)); transition: opacity 600ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
    .js-motion [data-rise].is-in { opacity: 1; transform: none; }
    .js-motion .section .photo:not(.photo--empty) img, .js-motion .card__media img, .js-motion .hero__media img { transform: translateY(var(--py, 0)) scale(1.12); }
  }

  /* Story stage photo swap (desktop). */
  .story__stage img { transition: opacity var(--dur-reveal) var(--ease), transform calc(var(--dur-reveal) * 2) var(--ease), clip-path var(--dur-reveal) var(--ease); transform: scale(1.06); clip-path: inset(0 0 100% 0); }
  .story__stage img.is-active { transform: scale(1); clip-path: inset(0); }
  .story__stage img.was-active { opacity: 1; clip-path: inset(0); transform: scale(1); transition: none; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes hero-drift { from { transform: scale(1.08) translateY(-2%); } to { transform: scale(1.08) translateY(4%); } }
@keyframes rise { from { opacity: 0; transform: translateY(var(--rise)); } }
@keyframes photo-open { from { clip-path: inset(0 0 22% 0 round var(--radius)); } to { clip-path: inset(0 0 0 0 round var(--radius)); } }
@keyframes parallax { from { transform: translateY(-6%) scale(1.12); } to { transform: translateY(6%) scale(1.12); } }
@keyframes draw { from { transform: scaleX(0); } }

/* 14c. HOME v1.2: bolder pastels, shapes, folder cards, orbit ---------------
   Solid colours only. No glass, no gradients, no dark sections. Ink text on all. */
:root { --pastel-blue: #C9DAF4; --pastel-mustard: #F7DC86; --pastel-sage: #C6E2CF; --pastel-coral: #F5C9C0; }
.bold-band { position: relative; overflow: hidden; overflow: clip; isolation: isolate; } /* clip keeps sticky working */
.stats-band.bold-band { background: var(--pastel-blue); border: 0; padding-block: var(--sp-8); }
.bold-band--sage { background: var(--pastel-sage); }
.bold-band--coral { background: var(--pastel-coral); }
.bold-band--blue { background: var(--pastel-blue); }
/* Dark pastel band: dusty crest blue. Text and links go darker to keep contrast. */
.bold-band--deep { background: #9FB8E3; }
/* Dark pastels from the crest, used on alternate Home sections with white between. */
.stats-band.bold-band { background: #9FB8E3; }
.bold-band--mustard { background: #E8C96E; }
.bold-band--red { background: #7A1E19; } /* maroon: darker crest red */
.bold-band--deep .eyebrow, .bold-band--deep .btn--ghost, .bold-band--deep h2,
.bold-band--mustard .eyebrow, .bold-band--mustard h2, .bold-band--mustard .btn--secondary { color: var(--blue-900); }
.bold-band--deep.bold-band--red .eyebrow, .bold-band--deep.bold-band--red h2, .bold-band--deep.bold-band--red .btn--ghost { color: var(--white); }
.bold-band--red .btn--ghost:hover { background: rgb(255 255 255 / 0.15); color: var(--white); }
.bold-band--red .shape--ring { border-color: rgb(255 255 255 / 0.12); }
.bold-band--red .shape--quarter { opacity: 0.35; }
.bold-band--red .card:not(.folder) { background: rgb(255 255 255 / 0.92); }
.bold-band--mustard .measure, .bold-band--mustard p { color: var(--ink); }
.bold-band--mustard .btn--secondary { border-color: var(--blue-900); background: rgb(255 255 255 / 0.5); }
.bold-band--mustard .orbit__disc { background: var(--white); }
.bold-band--mustard .orbit::before { border-color: rgb(15 39 80 / 0.35); }
.bold-band--deep .btn--ghost:hover { background: rgb(255 255 255 / 0.4); }
.bold-band > .container { position: relative; z-index: 1; }
.shape { position: absolute; z-index: 0; pointer-events: none; }
.shape--ring { width: 22rem; height: 22rem; right: -7rem; top: -9rem; border: 2.5rem solid rgb(255 255 255 / 0.45); border-radius: 50%; }
.shape--quarter { width: 12rem; height: 12rem; left: -3rem; bottom: -6rem; background: var(--yellow-400); border-radius: 50%; opacity: 0.55; }
.shape--dot { width: 16rem; height: 16rem; left: -6rem; top: 30%; background: rgb(255 255 255 / 0.4); border-radius: 50%; }
.bold-band--coral .shape--ring { left: -8rem; right: auto; top: auto; bottom: -10rem; }
.stats-band.bold-band .stats__item { border-left-width: 4px; }
.stats-band.bold-band .stats__value { color: var(--blue-900); }
.stats-band.bold-band .stats__label { color: var(--ink); }
.bold-band .quote__text, .bold-band .stats__label { color: var(--ink); }
.bold-band .event, .bold-band .card { box-shadow: 0 6px 18px rgb(22 33 58 / 0.10); }

/* Glass folder cards (v1.2b, user decision: glass allowed on Home).
   Back: solid pastel folder with a tab. Middle: a paper sheet. Front: frosted glass panel.
   Hover: the glass front tips open and the paper slides up. */
.folder { --c: var(--pastel-blue); --deep: var(--blue-600); overflow: visible; margin-top: 1.5rem; border: 0; border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  background: var(--c); min-height: 11rem; perspective: 900px;
  box-shadow: 0 1px 0 rgb(22 33 58 / 0.06), 0 14px 28px -10px rgb(22 33 58 / 0.35); }
.folder::before { content: ""; position: absolute; left: 0; bottom: calc(100% - 1px); width: 46%; height: 1.4rem; background: var(--c); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.folder::after { content: ""; position: absolute; left: 10%; right: 10%; top: -0.6rem; height: 4.5rem; background: var(--white); border-radius: var(--radius); box-shadow: 0 2px 6px rgb(22 33 58 / 0.12); z-index: 0; }
.folder { --front: rgb(31 79 163 / 0.9); }
.folder .card__body { position: relative; z-index: 1; margin-top: 1.75rem; border-radius: var(--radius-lg);
  background: var(--front); border: 1px solid rgb(255 255 255 / 0.35);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 -4px 14px -6px rgb(22 33 58 / 0.18); transform-origin: bottom center; }
.folder .card__body::before { content: ""; position: absolute; inset: 0 0 55% 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0)); } /* gloss */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .folder .card__body { -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); }
}
.folder .card__title a, .folder .card__title a:hover { color: var(--white); }
.folder .card__text { color: rgb(255 255 255 / 0.9); }
.folder .card__body::after { content: "\2192"; position: absolute; right: var(--sp-5); bottom: var(--sp-4); color: var(--white); font-size: 1.25rem; transition: transform var(--dur) var(--ease); }
.card.folder:hover .card__body::after { transform: translateX(4px); }
.task.folder:nth-child(4n+1) { background: var(--c); }
.task.folder:nth-child(4n+2) { --c: var(--pastel-mustard); --front: rgb(122 86 0 / 0.9); background: var(--c); }
.task.folder:nth-child(4n+3) { --c: var(--pastel-sage); --front: rgb(30 107 58 / 0.9); background: var(--c); }
.task.folder:nth-child(4n+4) { --c: var(--pastel-coral); --front: rgb(179 38 26 / 0.9); background: var(--c); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .folder, .folder::after, .folder .card__body { transition: transform 420ms var(--ease), box-shadow 420ms var(--ease); }
  .card.folder:has(.card__link):hover { transform: translateY(-6px); box-shadow: 0 2px 0 rgb(22 33 58 / 0.06), 0 26px 40px -14px rgb(22 33 58 / 0.4); }
  .card.folder:hover::after { transform: translateY(-1.1rem) rotate(-2deg); }
  .card.folder:hover .card__body { transform: rotateX(-14deg); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 12px 24px -8px rgb(22 33 58 / 0.3); }
}

/* Subtle glass elsewhere on Home. */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header { background: rgb(255 255 255 / 0.78); -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5); }
  .stats-band.bold-band .stats__item { padding: var(--sp-4); border-radius: var(--radius-lg); background: rgb(255 255 255 / 0.35);
    border: 1px solid rgb(255 255 255 / 0.7); border-left: 4px solid var(--blue-600); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8), 0 8px 20px -10px rgb(22 33 58 / 0.3); }
  .stats-band.bold-band .stats { gap: var(--sp-3); }
  .stats-band.bold-band .stats__item:nth-child(4n+2) { border-left-color: var(--yellow-500); }
  .stats-band.bold-band .stats__item:nth-child(4n+3) { border-left-color: var(--green-600); }
  .stats-band.bold-band .stats__item:nth-child(4n+4) { border-left-color: var(--red-500); }
}
.orbit__disc { overflow: hidden; }
.orbit__disc::after { content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(180deg, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0)); border-radius: 50% 50% 0 0 / 100% 100% 0 0; } /* gloss */

/* Orbit: six round photos turn slowly around the crest. */
.orbit { --size: min(88vw, 30rem); position: relative; width: var(--size); aspect-ratio: 1; margin-inline: auto; }
.orbit::before { content: ""; position: absolute; inset: 12%; border: 2px dashed var(--blue-200); border-radius: 50%; }
.orbit__disc { position: absolute; inset: 30%; display: grid; place-items: center; background: var(--pastel-mustard); border-radius: 50%; box-shadow: 0 16px 32px -12px rgb(22 33 58 / 0.3); }
.orbit__crest { width: 58%; height: auto; }
.orbit__ring { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.orbit__ring li { position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; margin: -13% 0 0 -13%;
  transform: rotate(calc(var(--i) * 60deg)) translateY(calc(var(--size) * -0.38)) rotate(calc(var(--i) * -60deg)); }
.orbit__ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--white); box-shadow: 0 10px 22px -8px rgb(22 33 58 / 0.35); }
.orbit__ring li:nth-child(4n+1) img { border-color: var(--pastel-blue); }
.orbit__ring li:nth-child(4n+2) img { border-color: var(--pastel-mustard); }
.orbit__ring li:nth-child(4n+3) img { border-color: var(--pastel-sage); }
.orbit__ring li:nth-child(4n+4) img { border-color: var(--pastel-coral); }
@media (prefers-reduced-motion: no-preference) {
  .orbit__ring { animation: orbit-spin 60s linear infinite; }
  .orbit__ring img { animation: orbit-spin 60s linear infinite reverse; }
  .orbit:hover .orbit__ring, .orbit:hover .orbit__ring img { animation-play-state: paused; }
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* 14d. Glass cards everywhere (v1.2d, user decision). Folders keep their own style. */
.card:not(.folder) {
  background: rgb(255 255 255 / 0.72); border: 1px solid rgb(255 255 255 / 0.9); border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.95), 0 0 0 1px rgb(22 33 58 / 0.05), 0 2px 4px rgb(22 33 58 / 0.04), 0 18px 40px -16px rgb(22 33 58 / 0.32);
}
.card:not(.folder)::after { content: ""; position: absolute; inset: 0 0 60% 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.45), rgb(255 255 255 / 0)); z-index: 1; } /* gloss */
.card:not(.folder) .card__media { margin: 6px 6px 0; border-radius: calc(var(--radius-lg) - 4px); }
.card--class:not(.folder) { border-top: 4px solid var(--blue-600); }
.card--class.card--yellow { border-top-color: var(--yellow-400); }
.card--class.card--red { border-top-color: var(--red-500); }
.card--class.card--green { border-top-color: var(--green-600); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .card:not(.folder) { background: rgb(255 255 255 / 0.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); }
}
.section--tint .card:not(.folder), .bold-band .card:not(.folder) { background: rgb(255 255 255 / 0.55); }
.card:not(.folder):has(.card__link):hover { border-color: rgb(255 255 255 / 1); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(31 79 163 / 0.25), 0 22px 40px -14px rgb(22 33 58 / 0.35); }

/* 14e. Dark crest bands (v1.2h): Home alternates white with dark shades of the four folder colours.
   White text on the band. Cards on it are near-solid white with a soft shadow. */
.dark-band { position: relative; overflow: hidden; overflow: clip; isolation: isolate; color: var(--white); }
.dark-band > .container { position: relative; z-index: 1; }
.dark-band--blue, .stats-band.dark-band--blue { background: #1D3F7C; }
.dark-band--mustard { background: #7A5600; }
.dark-band--green { background: #1E5A35; }
.dark-band--red { background: #7A1E19; }
.dark-band h2, .dark-band .eyebrow, .dark-band > .container > .grid p, .dark-band .measure,
.dark-band .section__head .btn--ghost, .dark-band .stats__value, .dark-band .stats__label { color: var(--white); }
.dark-band .section__head .btn--ghost:hover { background: rgb(255 255 255 / 0.15); color: var(--white); }
.dark-band .btn--secondary { color: var(--white); border-color: var(--white); background: transparent; }
.dark-band .btn--secondary:hover { color: var(--ink); background: var(--white); }
.dark-band .shape--ring { border-color: rgb(255 255 255 / 0.1); }
.dark-band .shape--quarter { opacity: 0.3; }
.dark-band .card:not(.folder) { background: rgb(255 255 255 / 0.94); border-color: rgb(255 255 255 / 0.6);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.12), 0 22px 44px -18px rgb(0 0 0 / 0.5); }
.stats-band.bold-band.dark-band .stats__value, .stats-band.bold-band.dark-band .stats__label { color: var(--white); }
.dark-band > .container > .grid .card p, .dark-band > .container > .grid .card .card__text { color: var(--text-2); }
.dark-band .card .card__more { color: var(--blue-700); }
.dark-band .card, .dark-band .card time, .dark-band .card .card__meta { color: var(--ink); }
.stats-band.dark-band .stats__item { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.22); box-shadow: 0 14px 30px -16px rgb(0 0 0 / 0.5); }
.dark-band .orbit::before { border-color: rgb(255 255 255 / 0.4); }
.dark-band .orbit__disc { background: var(--white); }
.dark-band--red > .container.section { padding-block: var(--sp-8); }
.dark-band .cta-band { background: rgb(255 255 255 / 0.94); border: 0; box-shadow: 0 22px 44px -18px rgb(0 0 0 / 0.5); color: var(--ink); }
.dark-band .cta-band h2 { color: var(--ink); }
.dark-band .quarters--short { outline: 2px solid rgb(255 255 255 / 0.6); }

/* 14f. Life at Fatima (desktop): the band colour follows the photo, and the photo sits in the middle of the screen. */
@media (min-width: 64rem) {
  .story.is-ready .story__stage { aspect-ratio: auto; height: min(68vh, 34rem); top: calc((100vh - min(68vh, 34rem)) / 2 + var(--header-h) / 2); }
  .story.is-ready .story__label { color: var(--text-2); }
  section[data-tone] { transition: background-color 600ms var(--ease); }
  section[data-tone="0"] { background: var(--pastel-blue); }
  section[data-tone="1"] { background: var(--pastel-mustard); }
  section[data-tone="2"] { background: var(--pastel-sage); }
  section[data-tone="3"] { background: var(--pastel-coral); }
  section[data-tone] .story__text { color: var(--ink); }
  section[data-tone] .btn--ghost { color: var(--blue-900); }
  section[data-tone] .btn--ghost:hover { background: rgb(255 255 255 / 0.5); }
}


/* 14g. Home slider and inner page banners (v1.3) ----------------------------
   Home: 4 full-height photo slides that cross-fade. Inner pages: a photo banner.
   Dark scrim keeps white text at 4.5:1 or higher. */
.slider { position: relative; height: calc(100svh - var(--head-h, 4.5rem)); min-height: 32rem; overflow: clip; background: var(--blue-900, #0f2347); color: #fff; }
.slider__track, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease, ease), visibility 0s 1.2s; display: flex; align-items: flex-end; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease, ease), visibility 0s; z-index: 1; }
.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.slide.is-active .slide__img { animation: slide-zoom 9s linear both; }
@keyframes slide-zoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.slide::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to top, rgb(8 18 40 / 0.88) 0%, rgb(8 18 40 / 0.55) 40%, rgb(8 18 40 / 0.15) 75%),
  linear-gradient(to right, rgb(8 18 40 / 0.5), transparent 70%); }
.slide__body { position: relative; z-index: 2; display: grid; gap: var(--sp-4); padding-bottom: calc(var(--sp-9) + 2rem); max-width: 72rem; }
.slide__body .eyebrow { color: var(--yellow-400, #F6C31C); }
.slide__title { color: #fff; font: 600 clamp(2.6rem, 1.4rem + 6vw, 6rem)/1.02 var(--font-head); letter-spacing: -0.02em; max-width: 14ch; text-wrap: balance; }
.slide__text { color: rgb(255 255 255 / 0.92); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); max-width: 40ch; }
.slide.is-active .slide__body > * { animation: rise 900ms var(--ease, ease) both; }
.slide.is-active .slide__body > :nth-child(2) { animation-delay: 120ms; }
.slide.is-active .slide__body > :nth-child(3) { animation-delay: 240ms; }
.slide.is-active .slide__body > :nth-child(4) { animation-delay: 360ms; }
.btn--glass { background: rgb(255 255 255 / 0.14); color: #fff; border: 1px solid rgb(255 255 255 / 0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgb(255 255 255 / 0.26); color: #fff; }
.btn--brand { color: #fff; border: 0; box-shadow: 0 8px 24px rgb(0 0 0 / 0.3); }
.btn--brand:hover { color: #fff; filter: brightness(1.15); }
.btn--blue { background: #1D3F7C; } .btn--red { background: #7A1E19; } .btn--green { background: #1E5A35; }
.slider__controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: var(--sp-6); display: flex; align-items: center; gap: var(--sp-4); }
.slider__dots { display: flex; gap: var(--sp-2); }
.slider__dot { width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.slider__dot::before { content: ""; position: absolute; left: 0.25rem; right: 0.25rem; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgb(255 255 255 / 0.4); }
.slider__dot::after { content: ""; position: absolute; left: 0.25rem; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: #fff; width: 0; }
.slider__dot.is-active::after { width: calc(100% - 0.5rem); transition: width var(--slide-ms, 7000ms) linear; }
.slider.is-paused .slider__dot.is-active::after { transition: none; }
.slider__pause { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.5); background: rgb(255 255 255 / 0.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; display: grid; place-items: center; }
.slider__pause span { width: 10px; height: 12px; border-inline: 3px solid #fff; }
.slider.is-paused .slider__pause span { border: 0; border-left: 10px solid #fff; border-block: 6px solid transparent; width: 0; height: 0; margin-left: 3px; }

.page-banner { position: relative; overflow: clip; background: var(--blue-900, #0f2347); border-bottom: 0; min-height: clamp(20rem, 55svh, 34rem); display: flex; align-items: flex-end; padding-block: var(--sp-9) var(--sp-7); }
.page-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(8 18 40 / 0.88), rgb(8 18 40 / 0.35) 70%, rgb(8 18 40 / 0.2)); }
.page-banner > .container { position: relative; z-index: 1; width: 100%; }
.page-banner .page-header__title { color: #fff; font-size: clamp(2.4rem, 1.5rem + 4vw, 4.5rem); }
.page-banner .lead, .page-banner p { color: rgb(255 255 255 / 0.92); }
.page-banner .breadcrumb, .page-banner .breadcrumb a, .page-banner .breadcrumb span { color: rgb(255 255 255 / 0.9); }
@supports (animation-timeline: view()) {
  .page-banner__img { animation: hero-drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active { transition: none; }
  .slide.is-active .slide__img { animation: none; transform: none; }
}


/* 14h. Inner page dark bands (v1.3): same look as Home. Text on the band is white.
   White surfaces inside the band (cards, forms, tables, CTA) keep dark text. */
.inner-band :is(h2, h3, h4, p, li, span, strong, em, dt, dd, small, time, blockquote, figcaption, summary, th, td, label, cite, .muted, .eyebrow, a:not(.btn)) { color: var(--white); }
.inner-band a:not(.btn) { text-decoration-color: rgb(255 255 255 / 0.6); }
.inner-band :is(.card, .cta-band, form, table, .surface) :is(h2, h3, h4, p, li, span, strong, em, dt, dd, small, time, blockquote, figcaption, summary, th, td, label, cite, a:not(.btn)) { color: var(--ink); }
.inner-band :is(.card, .cta-band, form, table, .surface) :is(.muted, .card__text) { color: var(--text-2); }
.inner-band :is(.card, form, table) a:not(.btn) { color: var(--blue-700); }
.inner-band .btn--secondary, .inner-band .btn--ghost { color: var(--white); border-color: var(--white); background: transparent; }
.inner-band .btn--secondary:hover, .inner-band .btn--ghost:hover { color: var(--ink); background: var(--white); }
.inner-band :is(.card, form) .btn--secondary { color: var(--blue-700); border-color: var(--blue-700); }
.inner-band form:not(.card form), .inner-band table { background: rgb(255 255 255 / 0.96); border-radius: var(--radius-lg, 16px); box-shadow: 0 22px 44px -18px rgb(0 0 0 / 0.5); }
.inner-band form:not(.card form) { padding: var(--sp-6); }
.inner-band table { overflow: hidden; }
.inner-band hr, .inner-band .steps__item, .inner-band .facts__row { border-color: rgb(255 255 255 / 0.25); }


/* 14i. Brand colour cards (v1.3c): cards on a white section take the four dark crest colours in turn. */
.brand-cards > .card.card { border: 0; color: var(--white); position: relative;
  background-image: linear-gradient(160deg, rgb(255 255 255 / 0.18) 0%, rgb(255 255 255 / 0) 45%, rgb(0 0 0 / 0.22) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), inset 0 -2px 0 rgb(0 0 0 / 0.2), 0 4px 8px rgb(0 0 0 / 0.12), 0 24px 40px -16px rgb(0 0 0 / 0.5);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.brand-cards > .card.card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), inset 0 -2px 0 rgb(0 0 0 / 0.2), 0 6px 12px rgb(0 0 0 / 0.14), 0 32px 50px -18px rgb(0 0 0 / 0.55); }
.brand-cards > .card.card:nth-child(4n+1) { background-color: #1D3F7C; }
.brand-cards > .card.card:nth-child(4n+2) { background-color: #1E5A35; }
.brand-cards > .card.card:nth-child(4n+3) { background-color: #7A1E19; }
.brand-cards > .card.card:nth-child(4n+4) { background-color: #7A5600; }
.brand-cards > .card::after { opacity: 0.35; }
.dark-band > .container > .grid.brand-cards > .card.card :is(p, .card__text, h3, span) { color: var(--white); }
/* On a blue band, skip blue so the cards stand out. */
.brand-cards--on-blue > .card.card:nth-child(3n+1) { background-color: #1E5A35; }
.brand-cards--on-blue > .card.card:nth-child(3n+2) { background-color: #7A1E19; }
.brand-cards--on-blue > .card.card:nth-child(3n+3) { background-color: #7A5600; }
.brand-cards > .card.card :is(h2, h3, h4, p, span, strong, a:not(.btn), .muted, .card__text) { color: var(--white); }


/* 14j. Four-colour stroke under every title (v1.3d, user request). Section heads already have the span. */
main h2:not(:has(+ .quarters), .card h2, .folder h2, .slide__title)::after,
.page-banner .page-header__title::after {
  content: ""; display: block; width: 4.5rem; height: 4px; border-radius: 2px; margin-top: var(--sp-3);
  background: linear-gradient(90deg, var(--blue-600) 0 25%, var(--yellow-400) 25% 50%, var(--red-500) 50% 75%, var(--green-600) 75% 100%);
}
.dark-band h2::after, .page-banner .page-header__title::after, .dark-band .section__head .quarters--short { outline: 2px solid rgb(255 255 255 / 0.6); }
.dark-band .cta-band h2::after { outline: 0; }

/* 15. REDUCED MOTION ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .card:has(.card__link):hover, .btn:active { transform: none; }
  .card:has(.card__link):hover .card__media img, .photo-grid a:hover .photo img { transform: none; }
  .btn--apply:hover::after, .btn--arrow:hover::after { transform: none; }
}

/* 16. PRINT --------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .announce, .skip-link, .btn, .nav-toggle { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .section { padding-block: 1rem; }
  a { color: #000; }
  .accordion__item:not([open]) > .accordion__a { display: block; }
}

/* v1.4 tap targets: phone links in text and the footer credit get 44px height */
.cta-band a[href^="tel:"], .site-footer__base a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* v1.5 houses: four colour chips on Student Life */
.houses { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); max-width: 40rem; }
@media (min-width: 40rem) { .houses { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.houses__item { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line, #DCE3F0); border-radius: 10px; background: var(--white); font-weight: 700; color: var(--ink); }
.houses__item::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--h); }
.houses__item--blue { --h: var(--blue-600); }
.houses__item--green { --h: var(--green-600); }
.houses__item--red { --h: var(--red-700); }
.houses__item--yellow { --h: var(--yellow-500, #E8B10C); }
.table__also { display: block; margin-top: var(--sp-1); font-size: var(--fs-sm); color: var(--text-2); }

/* v1.7 subjects cards */
.subjects { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .subjects { grid-template-columns: repeat(2, 1fr); } }
.subjects__card { background: #fff; border: var(--border-hair); border-radius: var(--radius); padding: var(--sp-5); border-top: 4px solid var(--blue-600); }
.subjects__title { margin: 0 0 var(--sp-3); font-size: var(--fs-lg, 1.25rem); }
.subjects__label { margin: var(--sp-3) 0 var(--sp-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: var(--fs-sm); font-weight: 600; }
.chip--soft { background: var(--tint); color: var(--text-2); font-weight: 500; border: var(--border-hair); }

/* v1.8 icon cards */
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; margin-bottom: var(--sp-3); border-radius: 50%; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35); color: #fff; }

/* v1.9 taller inner banners: show more of the photo, keep subjects in frame */
.page-banner { min-height: clamp(22rem, 62vw, 48rem); }
@media (max-width: 47.99rem) { .page-banner { min-height: 26rem; } }
.page-banner__img { object-position: 50% 22%; }
.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; }

/* v2.1 admissions: key dates, key lines, checklists */
.keydates { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); margin: 0 0 var(--sp-6); }
.keydates__item { margin: 0; padding: var(--sp-3) var(--sp-4); background: var(--blue-50); border-left: 4px solid var(--blue-600); border-radius: var(--radius); display: grid; gap: 2px; }
.keydates__item span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.keydates__item strong { color: var(--blue-700); font-size: var(--fs-base); }
.steps__key { margin: 0 0 var(--sp-1); font-weight: 700; color: var(--blue-700); font-size: var(--fs-base); }
.steps--key .steps__title { font-size: var(--fs-lg, 1.2rem); }
.doclist { background: #fff; border: var(--border-hair); border-radius: var(--radius); padding: var(--sp-5); }
.doclist__title { display: flex; align-items: center; gap: var(--sp-3); margin: 0; font-size: var(--fs-md); }
.doclist__tag { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--blue-600); color: #fff; font-size: var(--fs-sm); flex: none; }
.doclist__note { margin: var(--sp-1) 0 var(--sp-3) calc(1.9rem + var(--sp-3)); color: var(--text-2); font-size: var(--fs-sm); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.25em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4FA3' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat; }

/* v2.2 FAQ on dark bands: white, bold, yellow underline; open item stays readable */
.dark-band .accordion__q { color: #fff; font-weight: 700; }
.dark-band .accordion__q:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow-400); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.dark-band .accordion__item[open] > .accordion__q { color: #fff; font-weight: 800; text-decoration: underline; text-decoration-color: var(--yellow-400); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.dark-band .accordion__item[open] > .accordion__q::after { color: var(--yellow-400); }

/* v2.4 contact map */
.mapbox__frame { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--tint); }

/* v2.6 eligibility box, notice list, bus routes */
.eligibility { display: flex; gap: var(--sp-4); align-items: flex-start; margin: 0 0 var(--sp-5); padding: var(--sp-4) var(--sp-5); background: var(--yellow-50); border: 1px solid #EBD88A; border-left: 6px solid var(--yellow-500); border-radius: var(--radius); color: #1a2238; max-width: 52rem; }
.eligibility p { margin: 0; }
.eligibility__title { font-weight: 800; color: var(--yellow-800); margin-bottom: var(--sp-1) !important; }
.eligibility__icon { flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--yellow-400); color: #1a2238; font-weight: 800; }
.doclist { color: #1a2238; }
.notice { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.notice > li { position: relative; padding-left: 1.75rem; }
.notice > li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--blue-600); }
.notice > li.notice__docs::before { display: none; }
.notice__docs ol { margin: 0; padding-left: 1.5rem; display: grid; gap: var(--sp-2); }
.bus-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .bus-grid { grid-template-columns: repeat(2, 1fr); } }
.bus { background: #fff; border: var(--border-hair); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); border-left: 4px solid var(--blue-600); color: #1a2238; }
.bus__title { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-3); font-size: var(--fs-md); }
.bus__tag { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 0.4rem; border-radius: 999px; background: var(--blue-600); color: #fff; font-size: var(--fs-sm); font-weight: 700; }
.dark-band .doclist, .dark-band .doclist li, .dark-band .doclist p, .dark-band .doclist .doclist__note { color: #1a2238; }
.dark-band .doclist .btn--secondary { color: var(--blue-700); }

/* v2.8 subject cards on dark bands: keep dark text on the white card */
.dark-band .subjects__card .subjects__title { color: #1a2238; }
.dark-band .subjects__card .subjects__label { color: var(--text-2); }
.dark-band .subjects__card .chip { color: var(--blue-700); background: var(--blue-50); }
.dark-band .subjects__card .chip--soft { color: var(--text-2); background: var(--tint); }
.dark-band .bus .bus__title, .dark-band .bus .chip { color: #1a2238; }
.dark-band .bus .chip { color: var(--blue-700); background: var(--blue-50); }

/* v2.9: table caption inside a white table on a dark band was white on white. */
.inner-band table caption, .dark-band table caption { color: var(--ink); }

/* v3.1: Management as round portraits, left to right, names below. */
.team { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; text-align: center; }
.team__photo { width: min(100%, 168px); aspect-ratio: 1; margin: 0 auto 0.875rem; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--yellow-400), 0 8px 20px rgba(0,0,0,.14); }
.team__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team__name { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.3; }
.team__role { margin: 0.25rem 0 0; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-700); }
.team__note { margin-top: 2rem; text-align: center; color: var(--text-2); }
.team__note strong { color: var(--blue-700); font-size: 1.25rem; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; } }
.dark-band .team__name { color: #fff; } .dark-band .team__role, .dark-band .team__note strong { color: var(--yellow-400); } .dark-band .team__note { color: #fff; }
/* v3.2 Principal: round photo with name and title */
.principal-card { margin: 0; align-self: start; text-align: center; }
.principal-card__photo { width: min(100%, 320px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; border: 6px solid var(--yellow-400); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.principal-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.principal-card figcaption { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .25rem; }
.principal-card__name { font-weight: 700; font-size: 1.25rem; color: var(--blue-700); }
.principal-card__role { color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; font-size: .875rem; }
.dark-band .principal-card__name { color: #fff; } .dark-band .principal-card__role { color: var(--yellow-400); }
@media (max-width: 900px) { .principal-card { order: -1; margin-bottom: 1.5rem; } .principal-card__photo { width: 220px; } }
/* v3.6 class cards: label above value */
.card--class .card__facts li { flex-direction: column; gap: .125rem; }
.card--class .card__facts span:first-child { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.card--class .card__facts span:last-child { text-align: left; }
.dark-band .alert, .dark-band .alert p, .dark-band .alert__title { color: var(--text-1, #16213a); }
/* v3.9 Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(10,16,32,.94); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(10,16,32,.94); }
.lightbox__fig { margin: 0; max-width: calc(100vw - 8rem); text-align: center; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto; border-radius: 8px; display: block; margin: 0 auto; }
.lightbox__cap { margin-top: .75rem; font-size: .95rem; color: #e6ebf5; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; width: 48px; height: 48px; font-size: 1.75rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox__close:hover, .lightbox__nav:hover, .lightbox__close:focus-visible, .lightbox__nav:focus-visible { background: var(--yellow-400); color: #16213a; outline: none; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav[hidden] { display: none; }
html.lightbox-open { overflow: hidden; }
@media (max-width: 600px) { .lightbox__fig { max-width: 100vw; padding: 0 .5rem; } .lightbox__nav { top: auto; bottom: 1rem; transform: none; } }
.photo-grid__item a { cursor: zoom-in; }
