/* ==========================================================================
   FIRST BAPTIST ACADEMY — School Site Design System
   Naples, Florida · Serving Christ. Shaping Minds. Sending Leaders.
   Brand: Maroon #610C13 · Silver #D1D3D3 · Brass #A9813C
   Shares tokens + brand fonts with the FBA Lions Athletics build.
   ========================================================================== */

/* ---------- Brand fonts (licensed, self-hosted) ---------- */
@font-face {
  font-family: 'Freshman';
  src: url('../assets/fonts/freshman.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Octin Sports';
  src: url('../assets/fonts/octin-sports.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
  /* The home hero's type ground: the maroon pulled most of the way to
     black, so the turf fades into it instead of meeting an edge. Used
     nowhere else -- it is a hero surface, not a brand colour. */
  --hero-ground: #160507;
  /* Maroon ramp.

     THE BASE IS READ OFF THE LOGO FILES, not off a brand sheet. Mark,
     22 Sep 2026: "i need all of the maroons on the website to match it needs
     to be matching the logo files."

     Sampled every *-maroon.png in assets/logos/ -- fulllion, lionhead,
     lockup, primary, seal, wordmark. All six are #610C13 across 79-88% of
     their non-white pixels. The site had #610D13, one step brighter in the
     green channel: invisible on a screen, and not the same number.

     Anything that is meant to BE the brand maroon uses --maroon or the
     rgb(97,12,19) form of it. The steps around it are shades for gradients,
     hovers and dark bands, and are not the brand colour.

     NOTE, worth settling: FBA's documented maroon is #610D13. The logo files
     say #610C13. One of the two drifted and this now follows the logos. */
  --maroon-950: #210507;
  --maroon-900: #370709;
  --maroon-800: #4A0A0F;
  --maroon:     #610C13;
  --maroon-600: #7C1119;
  --maroon-500: #9B1A24;
  --maroon-400: #B93A44;
  --maroon-200: #D9DDE3;
  --maroon-50:  #F6F7F9;

  /* Brass — the academic accent that separates school from athletics */
  --brass-700: #6E5321;
  --brass:     #A9813C;
  --brass-400: #C9A462;
  --brass-100: #F3E9D6;

  --silver:     #D1D3D3;
  --silver-200: #E4E5E5;
  --silver-500: #83898A;

  /* Warm neutrals */
  --ink:      #14161A;
  --ink-700:  #3A3F47;
  --ink-500:  #666D78;
  --ink-400:  #8A919B;

  --paper:    #FFFFFF;
  --paper-2:  #F7F8FA;
  --paper-3:  #EDEFF3;
  --line:     #E2E5EA;

  /* Type */
  --font-display: 'Freshman', 'Arial Black', Impact, sans-serif;
  --font-label:   'Octin Sports', 'Arial Narrow', sans-serif;
  /* HEADING SERIF — Newsreader, 17 Aug 2026. Mark's pick.
     Was Fraunces. At small sizes Fraunces looks ordinary, which is why it
     survived a first review; at headline size its optical-size axis sharpens
     the letterforms and it ties "ff" into a single hooked glyph, so a word like
     "offer" reads wrong. Mark spotted it on the home page headline.

     TWO ALTERNATIVES, one line each:
       * Keep Fraunces and untie the ligature — restore the old stack and add
         `font-variant-ligatures: none` to the heading rule below.
       * Source Serif 4, if a cooler and more neutral face is wanted. */
  --font-serif:   'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body:    'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI',
                  Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Shape + depth */
  --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(18,20,24,.05), 0 2px 8px rgba(18,20,24,.05);
  --shadow-2: 0 2px 8px rgba(18,20,24,.06), 0 14px 34px rgba(18,20,24,.09);
  --shadow-3: 0 10px 24px rgba(18,20,24,.09), 0 36px 72px rgba(18,20,24,.16);

  --wrap: 1320px;
  --nav-h: 74px;
  --bar-h: 38px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon-500); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .5em;
}
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
strong { color: var(--ink); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--maroon); color: #fff; }

/* Links inside running text are underlined, not colour-only */
p a, li a, .prose a, .faq-body a, .callout a, .notice a, dd a, .quote a,
.footer-contact a, .utilbar-left a { text-decoration: underline; }
.btn, .textlink, .chip, .card a, .division, .brand, .nav-link,
.dropdown a, .drawer-flat, .acc-panel a, .footer-col a, .skip-link,
.hero-scroll, .footer-social a, .crumbs a { text-decoration: none; }
.footer-col a:hover, .crumbs a:hover { text-decoration: underline; }

/* Callout heading — styled like a heading without breaking heading order */
.callout-title {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem;
  color: var(--ink); margin: 0 0 .4rem; line-height: 1.25;
}
.infocard .callout-title { font-size: 1.15rem; }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-mid { width: min(100% - 2.5rem, 1000px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.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;
}
.skip-link {
  position: fixed; left: 1rem; top: -120px; z-index: 2000;
  background: var(--maroon); color: #fff; padding: .8rem 1.3rem;
  border-radius: 0 0 var(--r) var(--r); font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.eyebrow {
  font-family: var(--font-label);
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--brass-700); margin: 0 0 .9rem; font-weight: 400;
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--brass); flex: none;
}
.section--dark .eyebrow, .phero .eyebrow, .hero .eyebrow, .ctaband .eyebrow { color: var(--brass-400); }
.section--dark .eyebrow::before, .phero .eyebrow::before, .hero .eyebrow::before { background: var(--brass-400); }
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--brass-400); }
.eyebrow--light::before { background: var(--brass-400); }
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .01em; line-height: .95; font-weight: 400;
}
.h-xl { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.h-lg { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.h-md { font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--ink-700); }
.muted { color: var(--ink-500); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mb-0 { margin-bottom: 0; }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.75rem, 5vw, 4.25rem) 0; }
.section--paper2 { background: var(--paper-2); }
.section--paper3 { background: var(--paper-3); }
.section--dark {
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(169,129,60,.22), transparent 60%),
    linear-gradient(160deg, var(--maroon-900), var(--maroon-950) 70%);
  color: rgba(255,255,255,.82);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lede, .section--dark p { color: rgba(255,255,255,.8); }
.section--dark strong, .section--dark b { color: #fff; }
.ctaband strong, .phero strong, .hero strong { color: #fff; }
.section--dark a:not(.btn):not(.textlink):not(.chip) { color: var(--brass-400); }
.section--dark .btn { color: var(--btn-fg); }
.section--dark .textlink { color: var(--brass-400); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }

.rule {
  width: 54px; height: 3px; background: var(--brass); border: 0; margin: 0 0 1.5rem;
}
.rule--center { margin-inline: auto; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  --btn-bg: var(--maroon); --btn-fg: #fff; --btn-bd: var(--maroon);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.55rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  font-weight: 650; font-size: .96rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* SAFETY NET FOR INLINE ICONS.
   An <svg viewBox="0 0 24 24"> with no width or height attribute defaults to
   100% of its container. Every icon on this site relies on a CSS rule for its
   size, so a markup block whose class never got a rule renders its icons at
   full page width. That happened on car-line.html: one list, one missing
   class, an arrow the height of the screen.

   This is deliberately the lowest specificity in the file (element selectors
   only), so every ".something svg" rule above and below still wins. It only
   catches icons nothing else sized. */
a > svg, li > svg, p > svg, strong > svg, span > svg {
  width: 1em; height: 1em;
}
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--maroon); --btn-bd: rgba(97,12,19,.32); }
.btn--ghost:hover { --btn-bg: var(--maroon-50); --btn-bd: var(--maroon); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--maroon); --btn-bd: #fff; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.btn--outline-light:hover { --btn-bg: rgba(255,255,255,.12); --btn-bd: #fff; }
.btn--brass { --btn-bg: var(--brass); --btn-fg: #21160a; --btn-bd: var(--brass); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.04rem; }
.btn--sm { padding: .55rem 1.05rem; font-size: .86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row--center { justify-content: center; }

.textlink {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 650; text-decoration: none; color: var(--maroon);
}
.textlink svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.textlink:hover svg { transform: translateX(4px); }

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.utilbar {
  background: var(--maroon-950); color: rgba(255,255,255,.78);
  font-size: .8rem; height: var(--bar-h);
  display: flex; align-items: center;
}
.utilbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.utilbar a { color: rgba(255,255,255,.78); text-decoration: none; }
.utilbar a:hover { color: #fff; }
.utilbar-left { display: flex; align-items: center; gap: 1.4rem; }
.utilbar-right { display: flex; align-items: center; gap: 1.1rem; }
.utilbar-right svg { width: 16px; height: 16px; }
.utilbar-phone { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 900px) { .utilbar { display: none; } }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-1); }
/* EIGHT top-level items, since Fine Arts came out of Student Life.
   The gap and the .nav-link padding below were both loosened for seven and had
   to come back in for eight. Measured before touching anything: 17px of total
   free space on the row, and "Fine Arts" needs about 89px.
   The horizontal nav only exists above 1280px and .wrap caps at 1320px, so the
   row is 1280-1320px wide at EVERY desktop size — 1440 is no roomier than 1320.
   That is why this is not in a media query: there is no width at which the old
   spacing fits eight items, so a breakpoint would only have hidden the problem
   at one end. Tightening it here instead of raising the hamburger breakpoint
   keeps the full menu on a 1366 laptop, which is most of them.
   Measured after: 28px free at 1281-1440, no horizontal overflow at 1600 /
   1440 / 1366 / 1320 / 1281, hamburger from 1280 down. DO NOT add a ninth item
   without measuring again — there is nothing left to give. */
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display); font-size: 1.02rem; letter-spacing: .015em;
  text-transform: uppercase; color: var(--maroon);
}
.brand-sub {
  font-family: var(--font-label); font-size: .6rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-500);
}
@media (max-width: 520px) {
  .brand img { height: 38px; }
  .brand { gap: .55rem; }
  .brand-name { font-size: .78rem; max-width: 8.5em; line-height: 1.15; }
  .brand-sub { display: none; }
  .nav { gap: .6rem; }
  .nav-cta { gap: .4rem; }
  .nav-cta .btn { padding: .5rem .85rem; font-size: .82rem; }
}

.nav-list {
  display: flex; align-items: center; gap: 0;
  list-style: none; margin: 0; padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .28rem;
  padding: .65rem .4rem; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 600; color: var(--ink-700);
  text-decoration: none; white-space: nowrap;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--maroon); background: var(--maroon-50); }
.nav-link[aria-current="page"] { color: var(--maroon); }
.nav-link[aria-current="page"]::after {
  content: ''; position: absolute; left: .4rem; right: .4rem; bottom: .3rem;
  height: 2px; background: var(--brass); border-radius: 2px;
}
.nav-caret { width: 13px; height: 13px; opacity: .55; transition: transform .2s var(--ease); }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); opacity: 1; }
.nav-item { padding-bottom: 2px; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 268px; padding: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  list-style: none; margin: 0;
}
/* Invisible bridge across the gap so the pointer can travel from the nav link
   down into the menu without the menu closing underneath it. */
.dropdown::before {
  content: ''; position: absolute; left: -12px; right: -12px; top: -18px; height: 20px;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-item.is-open > .nav-link { color: var(--maroon); background: var(--maroon-50); }
.nav-item.is-open .nav-caret { transform: rotate(180deg); opacity: 1; }
.dropdown li { margin: 0; }
.dropdown a {
  display: grid; gap: .1rem; padding: .6rem .8rem; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink-700); font-size: .92rem;
}
.dropdown a:hover { background: var(--maroon-50); color: var(--maroon); }
.dropdown a strong { display: block; font-weight: 650; color: inherit; font-size: .94rem; }
.dropdown a span { font-size: .78rem; color: var(--ink-400); line-height: 1.35; }
.dropdown a:hover span { color: var(--maroon-500); }
.dropdown-sep { height: 1px; background: var(--line); margin: .45rem .5rem; }

.nav-cta { display: flex; align-items: center; gap: .5rem; flex: none; }
/* The header pair only. Measured with the real seal and Freshman loaded: at
   1281px the bar was 27px over. Keep in step with .sch-cta .btn in
   site/athletics/css/site.css. */
.nav-cta .btn { padding: .55rem .9rem; }

@media (max-width: 1280px) { .nav-list { display: none; } }
@media (max-width: 640px) { .nav-cta .btn--apply { display: none; } }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; cursor: pointer; color: var(--maroon);
}
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1280px) { .nav-toggle { display: inline-flex; } }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(26,21,18,.45); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 90vw);
  background: #fff; padding: 1.25rem 1.25rem 3rem;
  overflow-y: auto; transform: translateX(100%);
  transition: transform .3s var(--ease-out);
  display: flex; flex-direction: column; gap: .35rem;
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer-close {
  width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--maroon);
}
.drawer-close svg { width: 20px; height: 20px; }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: .85rem .25rem; background: none; border: 0; border-bottom: 1px solid var(--line);
  font-size: 1.02rem; font-weight: 650; color: var(--ink); cursor: pointer; text-align: left;
}
.acc-btn svg { width: 16px; height: 16px; opacity: .5; transition: transform .2s var(--ease); }
.acc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc-btn[aria-expanded="true"] { color: var(--maroon); }
.acc-panel { display: none; padding: .3rem 0 .7rem .25rem; }
.acc-panel.is-open { display: block; }
.acc-panel a {
  display: block; padding: .5rem .6rem; border-radius: var(--r-sm);
  color: var(--ink-700); text-decoration: none; font-size: .94rem;
}
.acc-panel a:hover { background: var(--maroon-50); color: var(--maroon); }
.drawer-flat {
  display: block; padding: .85rem .25rem; border-bottom: 1px solid var(--line);
  font-size: 1.02rem; font-weight: 650; color: var(--ink); text-decoration: none;
}
.drawer-cta { display: grid; gap: .6rem; margin-top: 1.5rem; }
.drawer-meta { margin-top: 1.75rem; font-size: .88rem; color: var(--ink-500); display: grid; gap: .35rem; }
.drawer-meta a { color: var(--maroon); text-decoration: none; }

/* ---------- Athletics mega dropdown ---------- */
.dropdown--mega {
  width: min(760px, calc(100vw - 3rem));
  padding: 0; overflow: hidden;
}
.nav-item--mega { position: static; }
.nav-item--mega .dropdown--mega { left: 50%; transform: translateX(-50%) translateY(-6px); }
.nav-item--mega:hover .dropdown--mega,
.nav-item--mega:focus-within .dropdown--mega,
.nav-item--mega.is-open .dropdown--mega { transform: translateX(-50%) translateY(0); }

.mega-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  padding: 1.4rem 1.4rem 1.2rem;
}

/* The way into the athletics site, at the top of the athletics menu rather
   than fourteen sports below it. 2 Sep 2026. */
.mega-home {
  display: block; text-decoration: none; padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line); background: var(--paper-2);
}
.mega-home strong {
  display: block; color: var(--maroon); font-size: 1rem; line-height: 1.3;
}
.mega-home span { display: block; color: var(--ink-500); font-size: .84rem; margin-top: .15rem; }
.mega-home:hover { background: #fff; }
.mega-home:hover strong { text-decoration: underline; }

.mega-col + .mega-col { border-left: 1px solid var(--line); padding-left: 1.1rem; }
.mega-col { padding-right: 1.1rem; }
.mega-col h3 {
  font-family: var(--font-label); font-size: .68rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brass-700); margin: 0 0 .7rem;
}
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.mega-col li { margin: 0; }
.mega-col a {
  display: block; padding: .42rem .55rem; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink-700);
}
.mega-col a:hover { background: var(--maroon-50); color: var(--maroon); }
.mega-col a strong { display: block; font-weight: 650; font-size: .93rem; color: inherit; line-height: 1.25; }
.mega-col a span { font-size: .74rem; color: var(--ink-400); }
.mega-col a:hover span { color: var(--maroon-500); }
.mega-col a em { font-style: normal; color: var(--brass-700); }
.mega-col a em::before { content: ' · '; color: var(--ink-400); }

.mega-foot { background: var(--paper-2); border-top: 1px solid var(--line); padding: 1rem 1.4rem 1.2rem; }
.mega-foot-title {
  font-family: var(--font-label); font-size: .66rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-400); margin: 0 0 .6rem;
}
.mega-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.mega-links a {
  display: flex; align-items: center; gap: .45rem;
  padding: .45rem .55rem; border-radius: var(--r-sm);
  font-size: .85rem; font-weight: 600; color: var(--ink-700); text-decoration: none;
}
.mega-links a:hover { background: #fff; color: var(--maroon); box-shadow: var(--shadow-1); }
.mega-links svg { width: 16px; height: 16px; color: var(--brass-700); flex: none; }
.mega-links a:hover svg { color: var(--maroon); }
@media (max-width: 1300px) { .dropdown--mega { width: min(680px, calc(100vw - 3rem)); } }

/* Drawer sub-headings for the athletics accordion */
.acc-head {
  font-family: var(--font-label); font-size: .64rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-400);
  margin: .8rem 0 .3rem .6rem;
}
.acc-head:first-child { margin-top: .2rem; }
.acc-panel a .acc-sx { color: var(--ink-400); font-size: .78rem; margin-left: .45rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
/* A TWO ZONE HERO, ANCHORED TO THE PHOTOGRAPH.

   Mark, 26 Oct: "i want to keep the kids faces in the picture."

   The first attempt sized the photo band as a percentage of the hero, and that
   is the bug he caught on a wide window. The hero's height is driven by the
   VIEWPORT; the image's rendered height is driven by its WIDTH. On a 1940px
   window the frame renders 1102px tall while the band was still only 602px, so
   "object-position: center top" threw 500px off the bottom -- which is where
   the students are. Their legs went, the ground came up over them, and the
   headline landed across their faces.

   The band is sized by aspect-ratio now. A box of 2200/930 against a frame of
   2200x1250 shows the top 74.4% of it at EVERY width, because both the box and
   the rendered image scale with the same number. Measured on the file itself,
   the last row with any student in it is 887 of 1250, 70.96% down. 74.4% clears
   it at any size, with about 2% of frame height of turf under their shoes.

   padding-top carries the same ratio. Percentage padding resolves against the
   containing block's WIDTH, so 42.3% is exactly the band's height whatever the
   window does, and the copy always begins underneath the photograph rather than
   on top of anyone.

   This also retires the separate phone rule. It existed to stop a narrow screen
   cropping the end students off, and an aspect-ratio band cannot do that: the
   crop is always vertical, always off the bottom, always turf. */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  padding: 42.3% 0 clamp(2.5rem, 4vw, 3.5rem);
  color: #fff; overflow: hidden;
  background: var(--hero-ground);
}
.hero-media {
  position: absolute; inset: 0 0 auto 0; z-index: -2;
  width: 100%; aspect-ratio: 2200 / 930; height: auto;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  /* The frame is a dusk shot and measures 75/255 before any of this. A gentle
     lift makes it read as a photograph rather than a dark surface, short of
     the plastic look a heavier hand gives. */
  filter: saturate(1.16) brightness(1.12) contrast(1.04);
}

/* The fade belongs to the BAND, not the hero, so its percentages mean the same
   thing at every width. It starts below their feet at 95.4% and only has the
   last stretch of turf to work with, which is the point: it reads as the ground
   darkening at their shoes rather than a long empty gradient. */
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(22,5,7,0)   0%,
    rgba(22,5,7,0)   86%,
    rgba(22,5,7,.18) 92%,
    rgba(22,5,7,.70) 97%,
    var(--hero-ground) 100%);
}
.hero-inner { max-width: 780px; }
.hero h1 {
  color: #fff; margin-bottom: 1rem;
  font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero .lede { color: rgba(255,255,255,.9); max-width: 620px; font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
.hero .eyebrow { color: var(--brass-400); }
.hero .eyebrow::before { background: var(--brass-400); }
.hero-tagline {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(.82rem, 1.5vw, 1.05rem); letter-spacing: .12em;
  color: var(--brass-400); margin-bottom: 1.1rem;
}
/* NOT CENTRED ON THE VIEWPORT.
   It used to be left:50% with a translate, which sounds right and is not: the
   hero copy is left aligned inside a centred wrap, so the viewport's centre
   falls on the buttons rather than beside them. On a wide window "Explore"
   landed on top of "Apply for 2026-27". Centring something on the viewport
   only avoids the content when the content is centred too.

   Pinned to the right edge instead, where the copy column never reaches: the
   lede stops at 620px and the button row well before that, so the two cannot
   meet at any width. Below 720px the indicator is hidden anyway. */
.hero-scroll {
  position: absolute;
  bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  left: auto;
  color: rgba(255,255,255,.6); display: grid; place-items: center; gap: .4rem;
  font-family: var(--font-label); font-size: .66rem; letter-spacing: .22em;
  text-transform: uppercase; text-decoration: none;
}
.hero-scroll:hover { color: rgba(255,255,255,.85); }
.hero-scroll svg { width: 18px; height: 18px; animation: bob 2.2s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll svg { animation: none; } }
@media (max-width: 720px) { .hero-scroll { display: none; } }


/* Page hero (interior) */
.phero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(150deg, var(--maroon-900), var(--maroon-950));
}
.phero-media { position: absolute; inset: 0; z-index: -2; }
.phero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.phero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(33,5,7,.9) 0%, rgba(33,5,7,.66) 55%, rgba(33,5,7,.42) 100%);
}
.phero--plain::after { background: none; }
.phero h1 { color: #fff; max-width: 16ch; margin-bottom: .8rem; }
.phero .lede { color: rgba(255,255,255,.85); max-width: 62ch; margin-bottom: 0; }
.phero .btn-row { margin-top: 1.8rem; }

.crumbs {
  font-size: .82rem; color: rgba(255,255,255,.62); margin-bottom: 1.2rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
}
.crumbs a { color: rgba(255,255,255,.78); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs svg { width: 13px; height: 13px; opacity: .5; }

/* ==========================================================================
   QUICK ACTION STRIP
   ========================================================================== */
/* THE BAND UNDER THE HERO IS NOT THE BRAND MAROON, ON PURPOSE.
   Mark, 22 Sep 2026: "that light maroon banner on home page that says apply
   now and schedule tour... that is a red we dont use."

   It was --maroon, and --maroon is read straight off the logo files, so this
   band and the lion seal up in the header were the same pixel value. The hex
   was never wrong. The context was: this is the only large field of
   full-strength maroon on the page, sitting between a near-black utility bar
   and white, and at that size a colour drawn for a mark reads hot.

   So the slab goes down the ramp to --maroon-900 and the brand maroon keeps
   the marks, the buttons and the type, which is where it was always meant to
   live. Mark picked this step from four rendered side by side.

   Hover now LIGHTENS rather than darkens -- --maroon-800 is a step up from
   this, not down -- which is the right direction against a dark band. */
.quickstrip { background: var(--maroon-900); color: #fff; position: relative; z-index: 5; }
.quickstrip-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1240px) { .quickstrip-grid { grid-template-columns: repeat(3, 1fr); }
  .quickstrip a:nth-child(3) { border-right: 0; }
  .quickstrip a:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.14); } }
.quickstrip a {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.5rem 1.4rem; color: #fff; text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.14);
  transition: background-color .2s var(--ease);
}
.quickstrip a:last-child { border-right: 0; }
/* One more step up the ramp, 23 Sep 2026 -- Mark: "have the hover go a step
   lighter instead". So a hovered cell is the brand maroon itself: the band
   sits quiet at --maroon-900 and the colour off the logo files is what
   arrives under the cursor. It is the same value he called too hot as a
   96px slab, which it is not as one fifth of a row, only while you point at
   it. */
.quickstrip a:hover { background: var(--maroon); color: #fff; }
.quickstrip strong { display: block; font-size: .98rem; font-weight: 650; color: #fff; }
.quickstrip span { font-size: .8rem; color: rgba(255,255,255,.66); }
@media (max-width: 820px) { .quickstrip-grid { grid-template-columns: repeat(2, 1fr); }
  .quickstrip a { border-bottom: 1px solid rgba(255,255,255,.14); }
  .quickstrip a:nth-child(2n) { border-right: 0; } }
@media (max-width: 460px) { .quickstrip-grid { grid-template-columns: 1fr; }
  .quickstrip a { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); } }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.stat { background: #fff; padding: 2rem 1.4rem; text-align: center; }
/* Four stats: 4 across when the box is 760px or wider, otherwise 2 by 2. */
.stats--4 { grid-template-columns: repeat(auto-fit, minmax(max(calc(25% - 1px), min(calc(50% - 1px), calc((760px - 100%) * 999))), 1fr)); }
.section--dark .stats { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.14); }
.section--dark .stat { background: transparent; }
.stat-num {
  font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.9rem);
  color: var(--maroon); line-height: 1; margin-bottom: .5rem;
  font-variant-numeric: tabular-nums;
}
.section--dark .stat-num { color: var(--brass-400); }
.stat-label {
  font-family: var(--font-label); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-500);
}
.section--dark .stat-label { color: rgba(255,255,255,.7); }

/* ==========================================================================
   CARDS + GRIDS
   ========================================================================== */
.grid { display: grid; gap: clamp(1.1rem, 2vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--maroon-200); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card--link:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 1.5rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.card-body p { color: var(--ink-500); font-size: .96rem; }
.card-body .textlink { margin-top: auto; padding-top: .6rem; }
.card-tag {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(33,5,7,.82); backdrop-filter: blur(6px); color: #fff;
  font-family: var(--font-label); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; padding: .38rem .8rem; border-radius: var(--r-pill);
}
.card a.stretch::after { content: ''; position: absolute; inset: 0; }
.card { position: relative; }

/* Division cards — the "find your school" picker */
.division {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-lg); min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.75rem; color: #fff; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.division:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); color: #fff; }
.division img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s var(--ease);
}
.division:hover img { transform: scale(1.06); }
.division::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(33,5,7,.12) 0%, rgba(33,5,7,.55) 38%, rgba(33,5,7,.96) 78%),
    linear-gradient(180deg, transparent 30%, rgba(33,5,7,.55) 100%);
}
.division-grade, .division h3, .division p, .division-go { text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.division-grade {
  font-family: var(--font-label); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brass-400); margin-bottom: .4rem;
}
.division h3 { color: #fff; font-size: 1.55rem; margin-bottom: .35rem; }
.division p { color: rgba(255,255,255,.78); font-size: .92rem; margin: 0; }
.division-go {
  margin-top: 1rem; display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 650; font-size: .92rem; color: var(--brass-400);
}
.division-go svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.division:hover .division-go svg { transform: translateX(4px); }

/* ==========================================================================
   SPLIT / FEATURE
   ========================================================================== */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split--reverse .split-media { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
}
.split-media { position: relative; }
.split-media img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media--tall img { aspect-ratio: 3/4; }
.split-badge {
  position: absolute; right: -18px; bottom: -18px;
  background: var(--maroon); color: #fff; border-radius: var(--r);
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow-2); max-width: 210px;
}
.split-badge .stat-num { color: var(--brass-400); font-size: 2rem; margin-bottom: .2rem; }
.split-badge .stat-label { color: rgba(255,255,255,.75); }
@media (max-width: 880px) { .split-badge { right: 12px; bottom: -14px; } }
.split-body h2 { margin-bottom: 1rem; }

/* Framed image treatment */
.framed { position: relative; }
.framed::before {
  content: ''; position: absolute; inset: -14px -14px 14px 14px;
  border: 2px solid var(--brass); border-radius: var(--r-lg); z-index: -1;
}

/* ==========================================================================
   FEATURE LIST / PILLARS
   ========================================================================== */
.pillars { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pillar { padding: 1.6rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.pillar h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.pillar p { font-size: .93rem; color: var(--ink-500); margin: 0; }
.section--dark .pillar { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.section--dark .pillar p { color: rgba(255,255,255,.72); }

/* ==========================================================================
   ADMISSIONS TIMELINE
   ========================================================================== */
.timeline { display: grid; gap: 0; counter-reset: step; }
.tl-step {
  display: grid; grid-template-columns: 76px 1fr; gap: 1.5rem;
  padding-bottom: 2.2rem; position: relative;
}
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before {
  content: ''; position: absolute; left: 37px; top: 60px; bottom: -6px;
  width: 2px; background: linear-gradient(180deg, var(--brass-400), var(--line));
}
.tl-step:last-child::before { display: none; }
.tl-num {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--maroon); color: #fff;
  font-family: var(--font-display); font-size: 1.7rem; line-height: 1;
  box-shadow: 0 0 0 8px var(--maroon-50);
}
.tl-body h3 { font-size: 1.28rem; margin-bottom: .4rem; padding-top: .9rem; }
.tl-body p { color: var(--ink-500); margin-bottom: .7rem; }
.tl-body p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .tl-step { grid-template-columns: 56px 1fr; gap: 1rem; }
  .tl-num { width: 56px; height: 56px; font-size: 1.25rem; box-shadow: 0 0 0 5px var(--maroon-50); }
  .tl-step::before { left: 27px; top: 46px; }
  .tl-body h3 { padding-top: .35rem; }
}

/* ==========================================================================
   TABLES
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 420px; }

/* On a phone the 420px floor pushed the whole Amount column outside the
   scroller — a fee table that showed every fee and not one price, and the
   tuition table with the figures hanging off the right edge. The column of
   numbers is the entire point of these tables, so below 560px the floor comes
   off and the label column wraps instead. Nothing changes above that width. */
@media (max-width: 560px) {
  table.data { min-width: 0; font-size: .9rem; }
  table.data th, table.data td { padding: .7rem .8rem; }
  /* The figure itself must never break across two lines. */
  table.data td.num, table.data th.num { white-space: nowrap; }
}
table.data caption {
  text-align: left; padding: 1.1rem 1.3rem .3rem; font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 600; color: var(--ink);
}
table.data th, table.data td { padding: .85rem 1.3rem; text-align: left; }
table.data thead th {
  font-family: var(--font-label); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-500); font-weight: 400;
  border-bottom: 1px solid var(--line); background: var(--paper-2);
}
table.data tbody tr + tr td { border-top: 1px solid var(--line); }
table.data tbody tr:hover td { background: var(--maroon-50); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); }
table.data th.num { text-align: right; }
table.data tfoot td { border-top: 2px solid var(--line); font-size: .86rem; color: var(--ink-500); }

/* ==========================================================================
   ACCORDION (FAQ)
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem .4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  font-family: var(--font-serif); font-size: 1.12rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 13px; height: 13px;
  border-right: 2px solid var(--maroon); border-bottom: 2px solid var(--maroon);
  transform: rotate(45deg) translateY(-3px); transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--maroon); }
.faq-body { padding: 0 .4rem 1.4rem; color: var(--ink-500); }
.faq-body p:last-child, .faq-body ul:last-child { margin-bottom: 0; }

/* ==========================================================================
   PEOPLE
   ========================================================================== */
.people { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.person { text-align: left; }

/* A centred leaders block. The inline max-width already sizes the grid to the
   number of people; this is what actually puts it in the middle of the wrap,
   and centres each card's name, role and email under its photograph. Without
   the auto margins a 460px grid just sits against the left edge of a 1240px
   wrap and reads as a mistake. */
.people--center { margin-inline: auto; }
.people--center .person { text-align: center; }
.people--center .person .email { display: inline-block; }
.person-photo {
  aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden;
  background: var(--paper-3); margin-bottom: .9rem; position: relative;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .5s var(--ease); }
.person:hover .person-photo img { transform: scale(1.04); }
.person h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.person .role {
  font-family: var(--font-label); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brass-700); line-height: 1.4;
}
.section--dark .person .role { color: var(--brass-400); }
.person .email { display: block; margin-top: .35rem; font-size: .84rem; word-break: break-word; }

/* ==========================================================================
   QUOTE
   ========================================================================== */
.quote {
  position: relative; padding: clamp(2rem, 4vw, 3rem) 0 0;
  font-family: var(--font-serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.45; color: var(--ink); font-weight: 500; letter-spacing: -.01em;
}
.quote::before {
  content: '\201C'; display: block; font-size: 4.5rem; line-height: .6;
  color: var(--brass-400); margin-bottom: .4rem;
}
.section--dark .quote { color: #fff; }
.quote-attr {
  margin-top: 1.4rem; font-family: var(--font-label); font-size: .76rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-500);
}
.section--dark .quote-attr { color: var(--brass-400); }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 180px;
}
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--r); background: var(--paper-3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
@media (max-width: 560px) { .gallery .g-wide { grid-column: span 1; } .gallery { grid-auto-rows: 150px; } }

/* Logo wall */
.logowall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.5rem 2rem; align-items: center;
}
.logowall img {
  max-height: 62px; width: auto; margin-inline: auto;
  filter: grayscale(1); opacity: .55; transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.logowall img:hover { filter: grayscale(0); opacity: 1; }

/* Marquee for college logos */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: slide 60s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 58px; width: auto; filter: grayscale(1); opacity: .6; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   CALLOUTS
   ========================================================================== */
.callout {
  border-left: 4px solid var(--brass); background: var(--brass-100);
  padding: 1.2rem 1.4rem; border-radius: 0 var(--r) var(--r) 0; margin: 1.8rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--maroon { border-left-color: var(--maroon); background: var(--maroon-50); }
.callout h4 { font-size: 1.05rem; margin-bottom: .4rem; }

.notice {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; margin-bottom: 1.2rem;
}
.notice svg { width: 21px; height: 21px; color: var(--brass); flex: none; margin-top: .2rem; }
.notice p:last-child { margin-bottom: 0; }

/* Contact / info cards */
.infocard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem;
}
.infocard h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.infocard p { font-size: .95rem; margin-bottom: .5rem; }
.infocard a { font-weight: 600; text-decoration: none; }
.infocard a:hover { text-decoration: underline; }
/* An infocard on a dark section was a white slab with white text in it, so
   the heading and the name vanished and only the brass phone number showed.
   Mark caught it on the code of ethics page, 23 Sep 2026. .pillar already had
   this override; .infocard never got one. Same treatment, so the two card
   types behave identically wherever they sit: the card becomes glass over the
   maroon instead of a hole punched in it. */
.section--dark .infocard,
.ctaband .infocard,
.phero .infocard,
.hero .infocard { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }

/* Definition list */
.dl { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.dl-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: .9rem 1.3rem; }
.dl-row + .dl-row { border-top: 1px solid var(--line); }
.dl-row dt { color: var(--ink-700); margin: 0; }
.dl-row dd { margin: 0; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Prose block for long content */
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.9rem; }
.prose ul { padding-left: 1.15em; }
.prose li::marker { color: var(--brass); }

/* Tabs / chips */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .95rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff;
  font-size: .86rem; font-weight: 600; color: var(--ink-700); text-decoration: none;
}
.chip:hover { border-color: var(--maroon); color: var(--maroon); background: var(--maroon-50); }
.chip svg { width: 15px; height: 15px; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.ctaband {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0; color: #fff; text-align: center;
}
.ctaband img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ctaband::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(97,12,19,.94), rgba(33,5,7,.94));
}
.ctaband h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 3rem); margin-bottom: .8rem; }
.ctaband p { color: rgba(255,255,255,.82); max-width: 58ch; margin-inline: auto; }
.ctaband .btn-row { margin-top: 1.9rem; justify-content: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--maroon-950); color: rgba(255,255,255,.66); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand img { height: 78px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .92rem; color: rgba(255,255,255,.6); max-width: 34ch; }
.footer-col h2 {
  font-family: var(--font-label); font-size: .74rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brass-400); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col li { margin: 0; }
.footer-col a { color: rgba(255,255,255,.66); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: .6rem; font-size: .92rem; }
.footer-contact a { color: rgba(255,255,255,.66); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.8);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.footer-social a:hover { background: var(--brass); border-color: var(--brass); color: #21160a; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 1.4rem 0 2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; font-size: .84rem; color: rgba(255,255,255,.68);
}
.footer-bottom a { color: rgba(255,255,255,.78); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }
.footer-verse {
  font-family: var(--font-serif); font-style: italic; font-size: .95rem;
  color: rgba(255,255,255,.5); text-align: center; padding: 0 0 1.5rem;
}

/* ==========================================================================
   FORMS
   The school site had no form styling until the alumni directory needed one
   (3 Oct 2026). The athletics site has its own `.f` block, but it is built for
   a dark panel and uses light-on-dark colours throughout, so reusing it here
   would have meant overriding most of it. This is the light-ground equivalent,
   in the same token language as .infocard and .btn.
   ========================================================================== */
.fform { max-width: 760px; }
.fform .frow { display: grid; gap: 1rem 1.2rem; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.fform .frow--one { grid-template-columns: 1fr; }
@media (max-width: 640px) { .fform .frow { grid-template-columns: 1fr; } }

.fform label { display: block; font-weight: 650; color: var(--ink); font-size: .93rem; margin: 0 0 .35rem; }
.fform .req { color: var(--maroon-500); margin-left: .15rem; }
.fform .fhelp { font-size: .85rem; color: var(--ink-500); margin: .3rem 0 0; }

.fform input[type=text], .fform input[type=email], .fform input[type=tel], .fform textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .68rem .8rem; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.fform textarea { min-height: 7rem; resize: vertical; }
.fform input:focus-visible, .fform textarea:focus-visible {
  outline: none; border-color: var(--maroon-400);
  box-shadow: 0 0 0 3px rgba(185,58,68,.16);
}
.fform input:user-invalid { border-color: var(--maroon-500); }

/* Checkboxes read as a list of commitments, so they get room rather than
   being crammed onto one line. */
.fform .fchecks { display: grid; gap: .6rem; margin: .2rem 0 0; }
.fform .fcheck { display: grid; grid-template-columns: 1.15rem 1fr; gap: .65rem; align-items: start; }
.fform .fcheck input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--maroon); }
/* .fcheck IS a <label>, so it picks up the 650 above and the description ends
   up as bold as its own heading, which erases the hierarchy. Reset the weight
   on the description and let the <b> carry it. */
.fform .fcheck { font-weight: 400; }
.fform .fcheck span { font-size: .95rem; color: var(--ink-700); font-weight: 400; line-height: 1.45; }
.fform .fcheck b { display: block; color: var(--ink); font-weight: 650; margin-bottom: .1rem; }

/* The honeypot. Off-screen rather than display:none, because some bots skip
   anything that is not rendered, and hidden from assistive tech so nobody is
   ever asked to fill it in. */
.fform .fpot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fform .fnote { margin: 1.4rem 0 0; padding: .9rem 1rem; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--paper-2); font-size: .92rem; }
.fform .fnote[data-state="ok"] { border-color: #BFE3C8; background: #F2FBF4; color: #1B5E2A; }
.fform .fnote[data-state="bad"] { border-color: #F0C5C5; background: #FDF4F4; color: #8A1B22; }
.fform button[disabled] { opacity: .55; cursor: progress; }

/* The platform mark in a social card's eyebrow. The eyebrow is a small
   letter-spaced label, so the icon has to sit on the text baseline rather than
   on the line box, or it rides high and the row looks broken. */
.soc-ico { width: 1.05em; height: 1.05em; vertical-align: -.17em; margin-right: .42em; }
.eyebrow .soc-ico { color: var(--maroon-500); }
.section--dark .eyebrow .soc-ico, .phero .eyebrow .soc-ico { color: var(--brass-400); }

/* ==========================================================================
   MOTION — reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal[data-d="1"].is-in { transition-delay: .08s; }
.reveal[data-d="2"].is-in { transition-delay: .16s; }
.reveal[data-d="3"].is-in { transition-delay: .24s; }
.reveal[data-d="4"].is-in { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .site-header, .utilbar, .site-footer, .quickstrip, .ctaband, .hero-scroll, .drawer { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .phero { background: none; color: #000; padding: 0 0 1rem; }
  .phero h1, .phero .lede { color: #000; }
  .phero::after, .phero-media { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ==========================================================================
   FBA INSIDER — document lists, section cards, first-week list, calendar embed
   ========================================================================== */
.doc-list { display: grid; gap: .5rem; }
.doc {
  display: flex; align-items: center; gap: .9rem;
  padding: .95rem 1.1rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; color: var(--ink-700);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.doc:hover { border-color: var(--maroon-200); transform: translateX(3px); box-shadow: var(--shadow-1); }
.doc-ic {
  width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--maroon-50); color: var(--maroon);
}
.doc-ic svg { width: 19px; height: 19px; }
.doc-body { flex: 1; display: grid; gap: .1rem; min-width: 0; }
.doc-body strong { font-weight: 650; color: var(--ink); font-size: .98rem; line-height: 1.3; }
.doc-body span { font-size: .86rem; color: var(--ink-500); }
.doc:hover .doc-body strong { color: var(--maroon); }
.doc-ext { flex: none; color: var(--ink-400); }
.doc-ext svg { width: 16px; height: 16px; }
.doc:hover .doc-ext { color: var(--maroon); }

/* Insider section blocks */
.ins-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.ins-ic {
  width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--maroon); color: #fff;
}
.ins-ic svg { width: 23px; height: 23px; }
.ins-head h2 { margin: 0; }

.ins-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ins-card {
  display: grid; gap: .3rem; align-content: start;
  padding: 1.1rem 1.2rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.section--paper2 .ins-card { background: #fff; }
.ins-card:hover { border-color: var(--maroon-200); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.ins-title {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  font-weight: 650; color: var(--ink); font-size: 1rem; line-height: 1.3;
}
.ins-title svg { width: 15px; height: 15px; flex: none; color: var(--brass-700); transition: transform .2s var(--ease); }
.ins-card:hover .ins-title { color: var(--maroon); }
.ins-card:hover .ins-title svg { color: var(--maroon); transform: translateX(3px); }
.ins-blurb { font-size: .88rem; color: var(--ink-500); line-height: 1.5; }

/* First-week checklist */
.firstweek { counter-reset: fw; list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.firstweek li {
  counter-increment: fw; position: relative; padding-left: 3rem;
  color: rgba(255,255,255,.86); font-size: 1rem; margin: 0;
}
.firstweek li::before {
  content: counter(fw); position: absolute; left: 0; top: -.1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brass); color: #21160a;
  font-family: var(--font-display); font-size: 1rem;
}
.firstweek a { color: var(--brass-400); }
.firstweek strong { color: #fff; }

/* Google Calendar embed */
.cal-embed {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-1);
}
.cal-embed iframe { display: block; width: 100%; }
@media (max-width: 700px) { .cal-embed iframe { height: 560px; } }

/* Code of Ethics */
.ethics-head { display: flex; align-items: baseline; gap: .9rem; margin-bottom: .4rem; }
.ethics-num {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--brass); line-height: 1;
}
.ethics-head h2 { margin: 0; }
.ethics-list { counter-reset: eth; list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.ethics-list li {
  counter-increment: eth; position: relative; padding-left: 2.4rem;
  color: var(--ink-700); margin: 0;
}
.ethics-list li::before {
  content: counter(eth); position: absolute; left: 0; top: .15rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-3); color: var(--maroon);
  font-family: var(--font-label); font-size: .72rem;
}
.section--paper2 .ethics-list li::before { background: #fff; }

/* ==========================================================================
   DRESS CODE — do / don't item grids
   ========================================================================== */
.dc-heading {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-label); font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase; margin: 2.2rem 0 1.1rem;
}
.dc-heading svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; flex: none; }
.dc-heading--yes { color: #1E7A4B; }
.dc-heading--yes svg { background: #E6F4EC; }
.dc-heading--no { color: #A3232F; }
.dc-heading--no svg { background: #FBEAEC; }

.dc-grid {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}
.dc-item {
  position: relative; display: grid; gap: .2rem; justify-items: center; text-align: center;
  padding: 1.1rem .8rem 1rem; border-radius: var(--r);
  border: 1px solid var(--line); background: #fff;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.dc-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.dc-item--yes { border-color: #CBE6D7; background: #FBFDFC; }
.dc-item--no  { border-color: #F0D4D7; background: #FEFAFA; }

.dc-mark {
  position: absolute; top: .55rem; right: .55rem;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
}
.dc-mark svg { width: 13px; height: 13px; stroke-width: 3; }
.dc-item--yes .dc-mark { background: #1E7A4B; }
.dc-item--no  .dc-mark { background: #A3232F; }

.dc-art { display: block; width: 100%; }
.dc-art .gm { width: 96px; height: 96px; margin: 0 auto .4rem; display: block; }
.dc-item--no .dc-art { opacity: .92; }

.dc-label { font-weight: 650; color: var(--ink); font-size: .95rem; line-height: 1.25; }
.dc-note { font-size: .8rem; color: var(--ink-500); line-height: 1.4; }

.dc-rules {
  margin-top: 2.2rem; padding: 1.5rem 1.6rem;
  background: var(--maroon-50); border-left: 4px solid var(--maroon);
  border-radius: 0 var(--r) var(--r) 0;
}
.section--paper2 .dc-rules { background: #fff; }
.dc-rules h3 { font-size: 1.1rem; margin-bottom: .7rem; }
.dc-rules ul { margin-bottom: 1.1rem; padding-left: 1.15em; }
.dc-rules li { color: var(--ink-700); }
.dc-rules li::marker { color: var(--maroon); }

.dc-vendors { display: grid; gap: .8rem; max-width: 820px; margin-inline: auto; }
.dc-vendor {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; border-radius: var(--r);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  text-decoration: none; color: rgba(255,255,255,.82);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.dc-vendor:hover { background: rgba(255,255,255,.12); transform: translateX(3px); color: #fff; }
.dc-vendor > span { flex: 1; display: grid; gap: .15rem; }
.dc-vendor strong { color: #fff; font-size: 1.02rem; }
.dc-vendor span span { font-size: .89rem; color: rgba(255,255,255,.74); }
.dc-vendor > svg { width: 17px; height: 17px; flex: none; color: var(--brass-400); }

@media (max-width: 520px) {
  .dc-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .dc-art .gm { width: 76px; height: 76px; }
  .dc-note { display: none; }
}

/* ==========================================================================
   DINING — app store badges and the menu phone mock
   ========================================================================== */
.app-badges { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.app-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .6rem 1.1rem .6rem .95rem;
  background: #fff; color: var(--maroon); border-radius: 12px;
  text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.app-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: var(--maroon); }
.app-badge svg { width: 26px; height: 26px; flex: none; }
.app-badge span { display: grid; line-height: 1.15; text-align: left; }
.app-badge .ab-1 { font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.app-badge .ab-2 { font-family: var(--font-serif); font-size: 1.02rem; font-weight: 600; color: var(--ink); }

/* A suggestion of the app screen — decorative, not a real screenshot */
.menu-phone {
  width: min(240px, 70%); margin-inline: auto; aspect-ratio: 9/17.5;
  background: #14100E; border-radius: 30px; padding: 11px;
  box-shadow: 0 24px 60px rgba(0,0,0,.42), inset 0 0 0 2px rgba(255,255,255,.14);
}
.mp-screen {
  height: 100%; border-radius: 21px; background: var(--paper-2);
  padding: 1.5rem 1rem 1rem; display: grid; align-content: start; gap: .5rem;
}
.mp-brand {
  font-family: var(--font-label); font-size: .58rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brass-700);
}
.mp-school {
  font-family: var(--font-serif); font-size: .95rem; font-weight: 600;
  color: var(--ink); line-height: 1.2; margin-bottom: .3rem;
}
.mp-day {
  font-family: var(--font-label); font-size: .55rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--maroon); margin-top: .5rem;
}
.mp-row { height: 9px; border-radius: 5px; background: var(--paper-3); }
.mp-row--short { width: 62%; }
@media (max-width: 880px) { .menu-phone { width: min(210px, 60%); margin-top: 1.5rem; } }

/* ==========================================================================
   SCHEDULE A TOUR
   ========================================================================== */
.booker {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-1);
}
.booker-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.2rem; background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.booker-live {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-label); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--maroon);
}
.booker-live svg { width: 16px; height: 16px; }
.booker-live::after {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #1E7A4B;
  box-shadow: 0 0 0 0 rgba(30,122,75,.6); animation: bk-pulse 2.4s ease-out infinite;
}
@keyframes bk-pulse {
  0% { box-shadow: 0 0 0 0 rgba(30,122,75,.55); }
  70% { box-shadow: 0 0 0 7px rgba(30,122,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(30,122,75,0); }
}
@media (prefers-reduced-motion: reduce) { .booker-live::after { animation: none; } }
.booker-frame iframe { display: block; width: 100%; min-height: 720px; }
.booker-fallback { padding: 3rem 1.5rem; text-align: center; }
.booker-fallback h3 { font-size: 1.3rem; }
.booker-fallback p { color: var(--ink-500); max-width: 46ch; margin-inline: auto; }
.booker-fallback .btn { margin-top: 1.2rem; }
.booker-fallback-note { padding: 2rem; text-align: center; }
@media (max-width: 700px) { .booker-frame iframe { min-height: 640px; } }

/* ---- What happens: numbered step cards ---- */
.tour-steps {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  counter-reset: ts;
}
.tour-step {
  position: relative; padding: 2.4rem 1.3rem 1.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
}
.ts-n {
  position: absolute; top: -14px; left: 1.3rem;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--maroon); color: #fff;
  font-family: var(--font-display); font-size: 1rem;
}
.ts-ic { display: block; color: var(--brass-700); margin-bottom: .7rem; }
.ts-ic svg { width: 26px; height: 26px; }
.tour-step h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.tour-step p { font-size: .92rem; color: var(--ink-500); margin: 0; }

/* ---- Division tabs ---- */
.tour-tabs-wrap {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff;
}
.tour-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.tour-tab {
  display: grid; gap: .1rem; padding: 1rem .9rem;
  background: none; border: 0; border-right: 1px solid var(--line);
  cursor: pointer; text-align: left; font-family: var(--font-body);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.tour-tab:last-child { border-right: 0; }
.tour-tab strong { font-weight: 650; font-size: .98rem; color: var(--ink-700); }
.tour-tab span {
  font-family: var(--font-label); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-400);
}
.tour-tab:hover { background: var(--maroon-50); }
.tour-tab[aria-selected="true"] {
  background: #fff; box-shadow: inset 0 3px 0 var(--maroon);
}
.tour-tab[aria-selected="true"] strong { color: var(--maroon); }
.tour-tab[aria-selected="true"] span { color: var(--brass-700); }
@media (max-width: 700px) {
  .tour-tabs { grid-template-columns: repeat(2, 1fr); }
  .tour-tab:nth-child(2) { border-right: 0; }
  .tour-tab:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.tour-panel { padding: 1.8rem; }
.tour-panel h3 { font-size: 1.2rem; margin-bottom: 1.1rem; }
.tour-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.tour-list li { display: flex; align-items: flex-start; gap: .7rem; margin: 0; color: var(--ink-700); }
.tour-list svg {
  width: 20px; height: 20px; flex: none; margin-top: .15rem; padding: 3px;
  border-radius: 50%; background: #E6F4EC; color: #1E7A4B; stroke-width: 3;
}
.booker-help {
  margin: .8rem 0 0; font-size: .88rem; color: var(--ink-500); text-align: center;
}
.booker-help a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; }
.booker-help svg { width: 14px; height: 14px; }


/* ===========================================================================
   HANDBOOK LAYOUT
   Written for this site rather than copied from the athletics stylesheet.

   The first attempt scraped every `.hb-` rule out of the athletics CSS with a
   regex, which silently pulled a rule out of its `@media print` block:
       .site-header, .site-footer, .hb-toc, .btn { display:none !important }
   That shipped as an unconditional rule and hid the header, the footer and
   every button on all 72 pages. It was caught because the handbook's search box
   would not accept typing in a browser test — "element is not visible" — which
   is a good reminder that a scraper that cannot see @media context has no
   business editing a stylesheet.
   =========================================================================== */
.hb-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2.6rem;
  align-items: start;
}
/* A grid item's min-width is auto, so one long contents entry can push the
   column wider than the screen and scroll the whole page sideways. */
.hb-layout > * { min-width: 0; }

.hb-toc {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  max-height: calc(100vh - var(--nav-h) - 3rem);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem 1.05rem 1.15rem;
  background: var(--paper);
}
.hb-toc h2 {
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-500); margin: 1rem 0 .5rem;
}
.hb-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: hb; }
.hb-toc li { counter-increment: hb; }
.hb-toc a {
  display: block; padding: .4rem .1rem;
  font-size: .92rem; line-height: 1.35;
  color: var(--ink-700); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.hb-toc li:last-child a { border-bottom: 0; }
.hb-toc a::before {
  content: counter(hb) ". "; color: var(--brass); font-variant-numeric: tabular-nums;
}
.hb-toc a:hover { color: var(--maroon); }

/* ---- nested contents: chapter, then every sub-section under it ---- */
.hb-ch > a { font-weight: 600; }
.hb-sub {
  list-style: none; margin: 0 0 .2rem; padding: 0 0 0 .1rem;
  max-height: 0; overflow: hidden;
  transition: max-height .28s var(--ease);
}
/* Only the chapter you are reading opens. All 113 sub-sections at once is a
   directory, not a contents list. */
.hb-ch.is-open > .hb-sub { max-height: 220vh; }
.hb-sub li { counter-increment: none; }
.hb-sub a {
  border-bottom: 0; padding: .26rem 0 .26rem .75rem;
  font-size: .84rem; line-height: 1.3; color: var(--ink-500);
  border-left: 2px solid var(--line);
}
.hb-sub a::before { content: none; }
.hb-sub a:hover { color: var(--maroon); border-left-color: var(--brass); }

/* ---- where you are ---- */
.hb-toc a.is-current { color: var(--maroon); font-weight: 700; }
.hb-sub a.is-current {
  border-left-color: var(--maroon);
  background: var(--paper-2);
}
@media (prefers-reduced-motion: reduce) { .hb-sub { transition: none } }

.hb-search { display: flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .45rem .8rem; color: var(--ink-500); background: var(--paper);
}
.hb-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font: inherit; font-size: .92rem; color: var(--ink);
}
.hb-search input::-webkit-search-cancel-button { display: none; }

.hb-section { scroll-margin-top: calc(var(--nav-h) + 1.5rem); margin-bottom: 3rem; }
.hb-section > h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15;
  padding-bottom: .6rem; margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--maroon);
}
.hb-section h3 {
  font-size: 1.05rem; margin: 1.8rem 0 .5rem; color: var(--maroon);
}
/* READABILITY.
   A policy handbook is read to find one answer, not front to back, so the job
   is scanning: a comfortable measure, lists that look like lists, and tables
   that stayed tables. Light throughout — the athletics handbook runs dark
   because athletics does; this is the school voice. */
.hb-section p,
.hb-section ul,
.hb-section ol { max-width: 68ch; }          /* ~11 words a line */
.hb-section p { margin-bottom: 1.05rem; line-height: 1.65; }
.hb-section > p.lede {
  font-size: 1.12rem; line-height: 1.55; color: var(--ink-700);
  padding-left: 1rem; border-left: 3px solid var(--brass);
  margin-bottom: 1.6rem;
}
.hb-section ul, .hb-section ol { padding-left: 1.15rem; margin-bottom: 1.3rem; }
.hb-section li { margin-bottom: .55rem; line-height: 1.6; padding-left: .2rem; }
.hb-section ul { list-style: none; padding-left: 0; }
.hb-section ul > li { position: relative; padding-left: 1.35rem; }
.hb-section ul > li::before {
  content: ""; position: absolute; left: .25rem; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--maroon);
}
.hb-section .table-wrap { max-width: 100%; margin: 0 0 1.6rem; overflow-x: auto; }
.hb-section table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hb-section table.data th {
  text-align: left; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-500); font-weight: 700;
  padding: .55rem .8rem; border-bottom: 2px solid var(--maroon);
}
.hb-section table.data td {
  padding: .6rem .8rem; border-bottom: 1px solid var(--line);
  vertical-align: top; line-height: 1.55;
}
.hb-section table.data tr:nth-child(even) td { background: var(--paper-2); }
.hb-section h3 + p, .hb-section h3 + ul { margin-top: 0; }
.hb-section[hidden] { display: none; }

@media (max-width: 900px) {
  .hb-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .hb-toc { position: static; max-height: none; }
}

@media print {
  .hb-toc, .hb-section > h2 + p .btn { display: none; }
  .hb-section { page-break-inside: avoid; margin-bottom: 1.5rem; }
  .hb-section[hidden] { display: block !important; }
}

/* ==========================================================================
   RESOURCES MEGA MENU — three audience columns, 3 Oct 2026.
   Built alongside .mega (the athletics one) rather than on top of it: that one
   is a list of rooms, this one is three doors with a few shortcuts under each,
   and sharing a stylesheet between them would have meant overriding most of it.
   ========================================================================== */
/* .dropdown--mega sets padding:0 and overflow:hidden for the athletics
   panel, whose columns run edge to edge. These columns need gutters. */
.megaR { padding: .9rem; }
.megaR-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  grid-template-rows: auto auto auto; }
/* Subgrid, so the three headings share one row and the shortcut lists under
   them start on the same line. "For Prospective Families" wraps to two lines
   and the other two do not, which used to push its first shortcut 25px below
   its neighbours'. A min-height cannot fix that; it only sets a floor, and the
   tallest heading was already over it. Browsers without subgrid ignore the
   declaration and get the old ragged behaviour, which is survivable. */
.megaR-col { padding: 0 1rem; display: grid; grid-row: span 3;
  grid-template-rows: subgrid; align-content: start; }
.megaR-col + .megaR-col { border-left: 1px solid var(--line); }

/* The heading is a LINK, and has to read as one. It gets the arrow, the
   hover and the weight; the rows beneath it are deliberately quieter so the
   general door stays the most prominent thing in its column. */
.megaR-head {
  display: grid; grid-row: span 2; grid-template-rows: subgrid;
  text-decoration: none; padding: .6rem .6rem .55rem;
  border-radius: var(--r-sm); margin-bottom: .3rem;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: .95rem; letter-spacing: .01em; color: var(--maroon);
  transition: background .15s var(--ease);
  /* No min-height. The subgrid on .megaR-col does the aligning now. */
}
.megaR-name { align-self: start; }
.megaR-blurb {
  display: block; margin-top: .15rem; line-height: 1.35; align-self: start;
  font-family: var(--font-body); text-transform: none; letter-spacing: 0;
  font-size: .82rem; font-weight: 400; color: var(--ink-500);
}
.megaR-go { width: 15px; height: 15px; margin-left: .35rem; vertical-align: -.15em;
  opacity: 0; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.megaR-head:hover { background: var(--maroon-50); }
.megaR-head:hover .megaR-go { opacity: .75; transform: translateX(3px); }

.megaR-rows { display: grid; gap: .05rem; }
.megaR-rows a {
  display: block; text-decoration: none; padding: .42rem .6rem;
  border-radius: var(--r-sm); transition: background .15s var(--ease);
}
.megaR-rows a:hover { background: var(--paper-2); }
.megaR-rows strong { display: block; color: var(--ink); font-weight: 600; font-size: .9rem; }
.megaR-rows span { display: block; color: var(--ink-500); font-size: .8rem; margin-top: .05rem; }

@media (max-width: 1100px) {
  .megaR-grid { grid-template-columns: 1fr 1fr; }
  .megaR-col:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .5rem; }
}

/* Grade-band chooser on Lower School and Upper School, 3 Oct 2026.
   This IS the chooser, not a shortcut above one: the photograph and the
   one-line description that used to sit in a separate card section below live
   in here, so the page asks the question once. */
.bandbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .bandbtns { grid-template-columns: 1fr; } }
.bandbtn {
  display: grid; grid-template-columns: 96px 1fr 22px; align-items: center; gap: 1.1rem;
  padding: 1rem 1.2rem 1rem 1rem; border-radius: var(--r-lg); text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: border-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.bandbtn:hover { border-color: var(--maroon-400); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.bandbtn__pic { display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--paper-3); }
.bandbtn__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bandbtn__txt { min-width: 0; }
.bandbtn__n {
  display: block; font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.3rem; color: var(--maroon); line-height: 1.1;
}
.bandbtn__g {
  display: block; margin-top: .2rem;
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em;
  font-size: .7rem; color: var(--ink-400);
}
.bandbtn__b { display: block; margin-top: .45rem; font-size: .9rem; color: var(--ink-700); line-height: 1.45; }
.bandbtn__go { width: 22px; height: 22px; color: var(--maroon-400); transition: transform .16s var(--ease); }
.bandbtn:hover .bandbtn__go { transform: translateX(4px); }

/* ===========================================================================
   THE TWO SCHOOLS, on the Academics page
   Mark, 20 Oct 2026: "I want it to really look like there are two schools."
   Each block is one school: its own header with grade band, principal and a
   way in, then the two learning environments it holds. The block has a real
   edge so the eye reads two containers first and four cards second -- the
   previous flat row of four read as four schools, which is what it said.
   =========================================================================== */
.schoolblock {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  margin-bottom: 1.75rem;
}
.schoolblock:last-child { margin-bottom: 0; }
.schoolblock__head {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
@media (max-width: 860px) {
  .schoolblock__head { grid-template-columns: 1fr; align-items: start; }
}
.schoolblock__id h3 { margin: .1rem 0 .2rem; }
.schoolblock__id h3 a { color: inherit; text-decoration: none; }
.schoolblock__id h3 a:hover { color: var(--maroon); }
.schoolblock__who { margin: 0; font-size: .9rem; color: var(--ink-500); }
.schoolblock__blurb { margin: 0; color: var(--ink-700); }
.schoolblock__lbl {
  margin: 0 0 .9rem; font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400);
}

/* ===========================================================================
   DIVISION RESOURCE CARDS, and the car line placeholders
   Mark, 20 Oct 2026. Both new on the same day; they share a grid so a parent
   moving between a division page and the car line page sees one system.
   =========================================================================== */
.rescards, .carlines {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.rescard {
  display: block; padding: 1.25rem 1.35rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); color: inherit; text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.rescard:hover { border-color: var(--maroon); transform: translateY(-2px); }
.rescard h3 {
  margin: 0 0 .35rem; font-size: 1.02rem;
  display: flex; align-items: center; gap: .4rem;
}
.rescard__ic { width: 1em; height: 1em; flex: none; color: var(--maroon); }
.rescard p { margin: 0; font-size: .92rem; color: var(--ink-700); }

/* The car line map slot. It is a PLACEHOLDER and it says so in words, because
   a grey box that only looks unfinished is the thing a parent screenshots and
   then drives by on the first morning. */
.carline {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); overflow: hidden;
}
.carline__map {
  aspect-ratio: 16/10; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem;
  background: repeating-linear-gradient(45deg,
    var(--paper-2) 0 12px, var(--paper-3) 12px 24px);
  border-bottom: 1px solid var(--line);
}
.carline__badge {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; background: var(--maroon);
  padding: .2rem .55rem; border-radius: var(--r-pill);
}
.carline__soon { font-size: .9rem; color: var(--ink-500); }
.carline__txt { padding: 1.1rem 1.25rem 1.35rem; }
.carline__txt h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.carline__grades {
  margin: 0 0 .5rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400);
}
.carline__txt p:last-child { margin: 0; font-size: .92rem; color: var(--ink-700); }

/* A real map in the slot, rather than the placeholder hatch. Clickable, and it
   keeps its own aspect so a portrait map is not cropped to a landscape box. */
.carline__map--real {
  display: block; aspect-ratio: auto; background: var(--paper-2);
  padding: 0; cursor: zoom-in;
}
.carline__map--real img { display: block; width: 100%; height: auto; }
.carline__when {
  margin: 0 0 .2rem; font-size: .84rem; font-weight: 700;
  color: var(--maroon);
}
.carline__txt .carline__when + p:not(.carline__when) { margin-top: .6rem; }


/* The heading row for the band. `section-head--row` is an ATHLETICS class and
   does not exist on this side of the repo, so without this the "Full schedule"
   button dropped under the h2 and read like a mistake. Defined here rather
   than reaching across to the athletics stylesheet, which this page does not
   load. */
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem 1.5rem; flex-wrap: wrap;
  /* .section-head is capped at 720px so a column of prose stays readable.
     A heading WITH A CONTROL ON THE RIGHT has to span the content instead,
     or the control lands in the middle of the page looking misplaced. */
  max-width: none; }
.section-head--row > div { flex: 1 1 18rem; max-width: 720px; }

/* THIS WEEK AT FBA — the home page band that knows what day it is.
   A list, not cards: seven rows of four facts read faster than seven boxes,
   and it collapses to two lines a row on a phone without reflowing into
   something that needs a horizontal scroll. */
.weeklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
  background: var(--line, #e4dedd); border: 1px solid var(--line, #e4dedd);
  border-radius: 8px; overflow: hidden; }
.wk { display: grid; align-items: baseline; gap: .25rem 1.2rem; background: #fff;
  padding: .72rem 1rem;
  grid-template-columns: 8.5rem minmax(10rem, 1fr) minmax(8rem, 1fr) auto; }
.wk-day { font-weight: 700; font-variant-numeric: tabular-nums; }
.wk-what strong { font-weight: 600; }
.wk-lvl { color: #6f6866; font-size: .86rem; margin-left: .45rem; }
.wk-opp { color: #3a3030; }
.wk-time { font-variant-numeric: tabular-nums; color: #6f6866; text-align: right; }
.wk-time em { font-style: normal; color: #8a1f1f; font-weight: 600; }
@media (max-width: 760px) {
  .wk { grid-template-columns: 1fr auto; row-gap: .15rem; }
  .wk-day { grid-column: 1; }
  .wk-time { grid-column: 2; grid-row: 1; }
  .wk-what, .wk-opp { grid-column: 1 / -1; }
}

/* The Athletics menu is two links now, Overview and Home (Mark, 7 Nov 2026),
   not the fourteen-sport grid this panel was sized for.
   :not(.megaR) matters. Resources is a .dropdown--mega too and it does NOT
   contain a .mega-grid, so without that it was caught by this rule and squeezed
   from 760px to 360px: three columns of 88px, every heading wrapped, and the
   third column off the right edge. Mark, 15 Nov 2026. */
.dropdown--mega:not(.megaR):not(:has(.mega-grid)) { width: 360px; min-width: 0; }
