/* =============================================================
   S. THOMAS' PREPARATORY SCHOOL — Proposed theme
   Bright, modern Anglican school on the sea.
   Palette: navy #273C8F · light blue #1AA7DF · white
   Type: Fraunces (display) + Inter (body)
============================================================= */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Brand (canonical, from logo artwork) */
  --navy:        #273C8F;
  --navy-deep:   #1B2A66;
  --sky:         #1AA7DF;
  --sky-deep:    #1389BC;

  /* Tints & neutrals */
  --sky-pale:    #EAF6FC;   /* section backgrounds */
  --sky-wash:    #F4FAFE;
  --ink:         #1B2440;   /* body text */
  --muted:       #5B6B86;   /* secondary text */
  --line:        #D6E6F2;   /* hairline borders */
  --white:       #FFFFFF;
  --live:        #C62828;   /* on-air red, for text/fills on light ground (5.6:1 on white) */
  --live-dot:    #FF4D4F;   /* the pulsing dot — a graphic, so 3:1 on navy is enough */

  /* Effects */
  --shadow-sm: 0 2px 10px rgba(27,42,102,.08);
  --shadow-md: 0 10px 30px rgba(27,42,102,.12);
  --shadow-lg: 0 22px 60px rgba(27,42,102,.18);

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Metrics */
  --nav-h:    78px;
  --topbar-h: 40px;
  --ease:     cubic-bezier(.4, 0, .2, 1);
  --r-sm: 6px;  --r-md: 12px;  --r-lg: 20px;  --r-pill: 999px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--white);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
/* The UA's [hidden] rule loses to any author display rule (.btn-live, .eyebrow …),
   so state toggled with el.hidden needs this to actually hide. */
[hidden] { display: none !important; }

/* ---------- UTILITIES ---------- */
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 96px 0; }
.section-sm { padding: 60px 0; }
.bg-pale   { background: var(--sky-pale); }
.bg-navy   { background: var(--navy); color: var(--white); }

.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sky-deep);
  margin-bottom: 14px;
}
.bg-navy .eyebrow { color: var(--sky); }

.rule { display: block; width: 56px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--navy), var(--sky)); margin-bottom: 18px; }

/* Flag tricolour motif — a mini "flag" (navy / light-blue / white bands),
   true to the school flag (equal thirds). Used as the heading accent. */
.flag-bands { display: flex; flex-direction: column; width: 44px; height: 27px;
  border-radius: 3px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.flag-bands span { flex: 1; }
.flag-bands span:nth-child(1) { background: var(--navy); }
.flag-bands span:nth-child(2) { background: var(--sky); }
.flag-bands span:nth-child(3) { background: #fff; }
.flag-bands.center { margin-left: auto; margin-right: auto; }
.bg-navy .flag-bands, .page-banner .flag-bands, .hero .flag-bands { border-color: rgba(255,255,255,.45); }

/* Full-width tricolour trim (footer top, banner bottom) */
.flag-trim { display: flex; height: 5px; width: 100%; }
.flag-trim i { flex: 1; }
.flag-trim i:nth-child(1) { background: var(--navy); }
.flag-trim i:nth-child(2) { background: var(--sky); }
.flag-trim i:nth-child(3) { background: #fff; }

.h-display {
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  line-height: 1.12; letter-spacing: -.005em;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-optical-sizing: auto;
}
.bg-navy .h-display { color: var(--white); }

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.075rem; margin-top: 14px; }
.bg-navy .section-head p { color: rgba(255,255,255,.78); }

.italic-accent { font-style: italic; color: var(--sky-deep); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 28px; border-radius: var(--r-pill);
  font-size: .94rem; font-weight: 600; letter-spacing: .01em;
  border: 2px solid transparent; transition: all .22s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--sky); color: var(--white); border-color: var(--sky); }
.btn-primary:hover { background: var(--sky-deep); border-color: var(--sky-deep);
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,167,223,.34); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- TOP UTILITY BAR ---------- */
.topbar {
  height: var(--topbar-h); background: var(--navy-deep); color: rgba(255,255,255,.82);
  font-size: .8rem; display: flex; align-items: center;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { transition: color .2s; } .topbar a:hover { color: #fff; }
.topbar .tb-left, .topbar .tb-right { display: flex; align-items: center; gap: 22px; }
.topbar i { color: var(--sky); margin-right: 6px; }
.tb-fees { background: var(--sky); color: #fff; padding: 4px 14px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .76rem; }
.tb-fees:hover { background: var(--sky-deep); color: #fff; }
.tb-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: .04em; }
.tb-live i { font-size: .5rem; color: #ff4d4f; animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background .25s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
/* Anchor targets sit clear of the sticky header when jumped to (#music-performing-arts,
   #headmaster, #captain and the rest). */
:where(section, h2, h3)[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
.header > .container { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 50px; width: auto; }
.brand-text strong { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--navy); display: block; line-height: 1.1; }
.brand-text span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a, .nav-item > a { font-size: .92rem; font-weight: 500; color: var(--ink); padding: 6px 0; position: relative; transition: color .2s; display: inline-flex; align-items: center; }
.nav > a::after, .nav-item > a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--sky); transition: width .25s var(--ease); }
.nav > a:hover, .nav-item > a:hover { color: var(--navy); }
.nav > a:hover::after, .nav-item:hover > a::after { width: 100%; }
.nav .btn { padding: 10px 22px; }
.nav .btn::after { display: none; }

/* Dropdowns */
.nav-item { position: relative; }
.nav-item > a i { font-size: .62rem; margin-left: 6px; transition: transform .22s var(--ease); }
.nav-item:hover > a i { transform: rotate(180deg); }
.nav-item.has-sub::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 20px; }
.dropdown {
  position: absolute; top: calc(100% + 16px); left: -10px; min-width: 232px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 8px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .22s var(--ease);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 14px; border-radius: var(--r-sm); font-size: .9rem;
  font-weight: 500; color: var(--ink); white-space: nowrap; }
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--sky-pale); color: var(--navy); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: calc(100vh - var(--nav-h) - var(--topbar-h)); display: flex; align-items: center;
  color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(27,42,102,.86) 0%, rgba(27,42,102,.55) 45%, rgba(26,167,223,.20) 100%); }
.hero-inner { padding: 80px 0; max-width: 760px; }
/* Admissions-open announcement pill (shown only when Admissions = Open — D27).
   Solid sky fill so it stands out against the hero photo. */
.hero-badge { display: none; align-items: center; gap: 10px; margin-bottom: 24px;
  background: var(--sky); border: 0; color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: .9rem; font-weight: 700; letter-spacing: .01em; text-shadow: none;
  box-shadow: 0 8px 22px rgba(26,167,223,.45); transition: transform .2s, box-shadow .2s; }
body.adm-open .hero-badge { display: inline-flex; }   /* shown only when Admissions = Open */
.hero-badge:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(26,167,223,.55); }
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #34e27e;
  box-shadow: 0 0 0 0 rgba(52,226,126,.85); animation: badgePulse 1.8s infinite; }
.hero-badge i { font-size: .75rem; opacity: .95; }
@keyframes badgePulse { 0% { box-shadow: 0 0 0 0 rgba(52,226,126,.8); } 70% { box-shadow: 0 0 0 8px rgba(52,226,126,0); } 100% { box-shadow: 0 0 0 0 rgba(52,226,126,0); } }
.hero-inner .eyebrow, .hero-inner h1, .hero-inner .lead { text-shadow: 0 1px 14px rgba(11,21,58,.45); }
.hero .eyebrow { color: #fff; letter-spacing: .14em; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05; letter-spacing: -.015em; margin-bottom: 22px; font-optical-sizing: auto; }
.hero h1 em { font-style: italic; color: var(--sky); }
.hero .lead { font-size: 1.2rem; line-height: 1.6; color: rgba(255,255,255,.9); max-width: 600px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-motto { position: absolute; bottom: 28px; right: 32px; font-family: var(--serif);
  font-style: italic; font-size: 1.05rem; color: rgba(255,255,255,.72); }
.hero-place { position: absolute; bottom: 30px; left: 32px; font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72);
  text-shadow: 0 1px 10px rgba(10,16,40,.5); }

/* ---------- STATS BAND ---------- */
.stats { background: var(--navy); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 52px 24px; }
.stat { text-align: center; color: #fff; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: -12px; top: 10%; height: 80%; width: 1px; background: rgba(255,255,255,.18); }
.stat .n { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--sky); line-height: 1; }
.stat .l { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-top: 10px; }

/* ---------- WELCOME / MESSAGE ---------- */
.welcome .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.welcome .copy p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.welcome .sig { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--navy); }
.welcome .sig small { display: block; font-family: var(--sans); font-style: normal; font-size: .82rem; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }
.welcome .media { position: relative; }
.welcome .media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.welcome .media .badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--sky); color: #fff;
  padding: 18px 24px; border-radius: var(--r-md); box-shadow: var(--shadow-md); text-align: center;
}
.welcome .media .badge b { font-family: var(--serif); font-size: 1.7rem; display: block; line-height: 1; }
.welcome .media .badge span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- NEWS ---------- */
.news-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; flex-wrap: wrap; gap: 16px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .thumb img { transform: scale(1.06); }
.card .tag { position: absolute; top: 14px; left: 14px; background: var(--navy); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card .date { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.card .date i { color: var(--sky); margin-right: 6px; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--navy); line-height: 1.25; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .94rem; flex: 1; }
.card .more { margin-top: 16px; font-weight: 600; font-size: .9rem; color: var(--sky-deep); display: inline-flex; align-items: center; gap: 6px; }
.card .more i { transition: transform .2s; } .card:hover .more i { transform: translateX(4px); }

/* ---------- GALLERY ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.g-item { overflow: hidden; border-radius: var(--r-md); position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.g-item:hover img { transform: scale(1.08); }
.g-item.wide { grid-column: span 2; } .g-item.tall { grid-row: span 2; }
.g-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(27,42,102,.45)); opacity: 0; transition: opacity .3s; }
.g-item:hover::after { opacity: 1; }

/* ---------- QUOTE BAND ---------- */
.quote-band { position: relative; color: #fff; text-align: center; overflow: hidden; }
.quote-band .bg { position: absolute; inset: 0; z-index: -2; }
.quote-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(27,42,102,.8); }
.quote-band .container { padding: 110px 24px; }
.quote-band blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.4; max-width: 880px; margin: 0 auto 22px; }
.quote-band cite { font-style: normal; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }

/* Feature band — full-bleed photo + overlaid heading/text/CTA (e.g. home School heritage) */
.feature-band { position: relative; color: #fff; overflow: hidden; }
.feature-band .bg { position: absolute; inset: 0; z-index: -2; }
.feature-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.feature-band::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(27,42,102,.92) 0%, rgba(27,42,102,.74) 52%, rgba(27,42,102,.42) 100%); }
.feature-band .container { padding: 92px 24px; }
.feature-inner { max-width: 600px; }
.feature-band h2 { color: #fff; margin: 10px 0 16px; }
.feature-band p { color: rgba(255,255,255,.9); font-size: 1.08rem; line-height: 1.65; margin-bottom: 28px; }

/* Admissions open/closed visibility (toggle: body.adm-open) */
.adm-notice { display: none; }                 /* the open-only Admission Notice */
body.adm-open .adm-notice { display: block; }
body.adm-open .adm-closed-note { display: none; } /* hide the "not open" note when open */
/* Admission Notice card */
.adm-notice-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--sky);
  border-radius: var(--r-lg); padding: 32px 34px; box-shadow: var(--shadow-md); max-width: 760px; }
.adm-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--sky-pale);
  color: var(--sky-deep); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.adm-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: #34e27e;
  box-shadow: 0 0 0 0 rgba(52,226,126,.8); animation: badgePulse 1.8s infinite; }
.adm-notice-card h2 { font-family: var(--serif); color: var(--navy); font-size: 1.7rem; margin-bottom: 16px; }
.adm-notice-body p { color: var(--ink); line-height: 1.7; margin-bottom: 12px; }
.adm-notice-body .muted { color: var(--muted); font-size: .92rem; font-style: italic; }
.adm-notice-card .btn { margin-top: 8px; }
/* Polished how-to-apply steps */
.steps { counter-reset: step; list-style: none; margin: 8px 0 0; padding: 0; }
.steps li { position: relative; padding: 0 0 14px 42px; color: var(--muted); line-height: 1.6; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; background: var(--sky-pale); color: var(--sky-deep);
  font-family: var(--sans); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }

/* Photo-card placeholder — tinted panel + icon, until a real photo is supplied */
.pillar-img.ph { display: grid; place-items: center; background: var(--sky-pale); color: var(--sky-deep); }
.pillar-img.ph i { font-size: 2.4rem; opacity: .55; }

/* Gallery card — clickable cover opens the lightbox */
.gallery-card .pillar-img { cursor: pointer; border: 0; padding: 0; margin: 0; width: 100%; display: block;
  position: relative; font: inherit; color: inherit; }
.welcome .media[data-gallery] { cursor: pointer; }
.gal-badge { position: absolute; bottom: 10px; right: 10px; background: rgba(11,21,58,.78); color: #fff;
  font-size: .75rem; padding: 4px 9px; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center;
  background: rgba(11,21,58,.93); padding: 40px; }
.lightbox.open { display: flex; }
.lb-figure { margin: 0; max-width: min(1000px, 92vw); text-align: center; }
.lb-img { max-width: 100%; max-height: 76vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lb-cap { display: block; color: #fff; margin-top: 16px; }
.lb-title { font-family: var(--serif); font-size: 1.4rem; display: block; }
.lb-text { color: rgba(255,255,255,.82); font-size: .95rem; display: block; max-width: 680px; margin: 6px auto 0; }
.lb-count { color: var(--sky); font-size: .78rem; letter-spacing: .12em; display: block; margin-top: 10px; }
.lb-close { position: absolute; top: 18px; right: 26px; background: none; border: 0; color: #fff; font-size: 2.4rem;
  line-height: 1; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0;
  color: #fff; font-size: 1.5rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lb-nav:hover { background: var(--sky); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
@media (max-width: 600px) { .lb-nav { width: 42px; height: 42px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* ---------- SPORT CARDS + STORY MODAL (sports.html) ----------
   Each card shows the sport and a one-liner; its full history & achievements sit in
   .sport-story inside the same card. With JS on, .sport-story is hidden and the card's
   button opens it in the .sport-modal overlay; with JS off it just renders in the card. */
.sport-card, .archive-card { position: relative; padding-bottom: 26px; }
.sport-card > .ic, .archive-card > .ic { margin: 26px 24px 16px; }
.sport-card h3, .archive-card h3 { margin: 0 24px 8px; }
.sport-card > p, .archive-card > p { margin: 0 24px; }
.sport-more, .archive-more { margin: 14px 24px 0; align-self: flex-start; background: none; border: 0; padding: 0;
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--sky-deep); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; }
.sport-more i, .archive-more i { font-size: .75rem; transition: transform .25s var(--ease); }
.sport-card:hover .sport-more i, .archive-card:hover .archive-more i { transform: translateX(4px); }
/* Stretched hit area — the whole card is clickable, but the button stays the real control. */
.sport-more::after, .archive-more::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-lg); }
.sport-card:focus-within, .archive-card:focus-within { box-shadow: var(--shadow-md); }
.sport-more:focus-visible::after, .archive-more:focus-visible::after { outline: 2px solid var(--sky-deep); outline-offset: 3px; }
.sport-story { margin: 16px 24px 0; color: var(--muted); font-size: .92rem; }
.sport-story p { margin-bottom: 12px; }
.sport-story p:last-child { margin-bottom: 0; }
.sport-story strong { color: var(--navy); }
.js .sport-card .sport-story { display: none; }
html:not(.js) .sport-more { display: none; }  /* no JS = no modal, so no dead control */

/* Modal */
.sport-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center;
  justify-content: center; background: rgba(11,21,58,.72); padding: 32px 20px; }
.sport-modal.open { display: flex; }
.sm-panel { position: relative; background: #fff; border-radius: var(--r-lg); width: min(720px, 100%);
  max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(11,21,58,.4); }
.sm-head { display: flex; align-items: center; gap: 16px; padding: 26px 60px 20px 30px; border-bottom: 1px solid var(--line); }
.sm-head .ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--sky-pale); color: var(--sky-deep); font-size: 1.1rem; }
.sm-head h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.5rem; margin: 0; }
.sm-head .sm-eyebrow { display: block; font-family: var(--sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sky-deep); margin-bottom: 4px; }
.sm-body { padding: 24px 30px 28px; overflow-y: auto; color: var(--muted); }
.sm-body p { margin-bottom: 14px; line-height: 1.7; }
.sm-body p:last-child { margin-bottom: 0; }
.sm-body strong { color: var(--navy); }
.sm-body .sport-story { margin: 0; font-size: 1rem; }
.sm-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 22px; }
.sm-photos button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: none; cursor: pointer; aspect-ratio: 4/3; }
.sm-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Archive shelf — list of individual issue/edition links inside the sm-body */
.shelf-note { margin-bottom: 18px; }
.shelf-list { list-style: none; margin: 0; padding: 0; }
.shelf-list li { border-bottom: 1px solid var(--line); }
.shelf-list li:last-child { border-bottom: 0; }
.shelf-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 2px; color: var(--navy); font-weight: 600; text-decoration: none; }
.shelf-list a:hover { color: var(--sky-deep); }
.shelf-list a i { font-size: .8rem; color: var(--muted); flex-shrink: 0; }
.sm-close { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 1.2rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; }
.sm-close:hover { background: var(--sky-pale); }
.sm-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 30px; border-top: 1px solid var(--line); background: var(--sky-pale); }
.sm-foot button { background: none; border: 0; font: inherit; font-size: .85rem; font-weight: 600;
  color: var(--sky-deep); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.sm-foot button[disabled] { opacity: .35; cursor: default; }
@media (max-width: 600px) {
  /* Bottom sheet on phones — sized to its content, capped so the page stays visible behind. */
  .sport-modal { padding: 0; align-items: flex-end; }
  .sm-panel { width: 100%; max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .sm-head { padding: 22px 56px 18px 20px; }
  .sm-body, .sm-foot { padding-left: 20px; padding-right: 20px; }
}

/* ---------- ARCHIVE SHELVES (archives.html, clubs.html) ----------
   A card that owns a collection of flipbooks holds the list inline in
   .shelf-list. With JS on the list is hidden and .shelf-open lifts it into the
   shared .shelf-modal overlay; with JS off the links simply render in the card,
   so every flipbook stays reachable. Same progressive-enhancement deal as
   .sport-story above. */
.shelf-card { position: relative; padding-bottom: 26px; }
.shelf-open { margin-top: 14px; align-self: flex-start; background: none; border: 0; padding: 0;
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--sky-deep); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; }
.shelf-open i { font-size: .75rem; transition: transform .25s var(--ease); }
.shelf-card:hover .shelf-open i { transform: translateX(4px); }
.shelf-count { background: var(--sky-pale); border-radius: 999px; padding: 2px 9px;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
/* Stretched hit area — the whole card is clickable, the button stays the control. */
.shelf-open::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-lg); }
.shelf-card:focus-within { box-shadow: var(--shadow-md); }
.shelf-open:focus-visible::after { outline: 2px solid var(--sky-deep); outline-offset: 3px; }
/* Match the gutters .pillar already gives the siblings after its icon. */
.pillar > .ic ~ .shelf-open, .pillar > .ic ~ .shelf-list { margin-left: 24px; margin-right: 24px; }
/* Archives page — two collections read better as halves than as thirds. */
.archive-tiles { margin-top: 48px; }
.archive-tiles .pillar { max-width: calc((100% - 24px) / 2); }
@media (max-width: 600px) { .archive-tiles .pillar { max-width: 100%; } }
.archive-note { text-align: center; margin-top: 36px; }
.archive-note p:last-child { margin-bottom: 0; }
.js .shelf-card .shelf-list { display: none; }
html:not(.js) .shelf-open { display: none; }  /* no JS = no modal, so no dead control */

/* The list itself — in the card (no JS) and cloned into the modal (JS). */
.shelf-list { list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.shelf-list.is-years { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.shelf-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--navy); text-decoration: none; font-size: .9rem; font-weight: 500; line-height: 1.35; }
.shelf-list a:hover { border-color: var(--sky-deep); background: var(--sky-pale); color: var(--sky-deep); }
.shelf-list a i { flex-shrink: 0; font-size: .7rem; opacity: .5; }
.shelf-list a:hover i { opacity: 1; }
.shelf-list.is-years a { justify-content: center; font-variant-numeric: tabular-nums; }
.shelf-list.is-years a i { display: none; }

/* Modal — same chrome as the sport modal, minus the prev/next footer. */
.shelf-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center;
  justify-content: center; background: rgba(11,21,58,.72); padding: 32px 20px; }
.shelf-modal.open { display: flex; }
.shelf-modal .sm-panel { width: min(780px, 100%); }
.shelf-modal .sm-body { padding-top: 22px; }
.shelf-modal .shelf-list { margin: 0; }
.shelf-note { margin: 0 0 18px; font-size: .88rem; color: var(--muted); }
@media (max-width: 600px) {
  .shelf-modal { padding: 0; align-items: flex-end; }
  .shelf-modal .sm-panel { width: 100%; max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}

/* ---------- ADMISSIONS CTA ---------- */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 60%, var(--sky-deep) 130%); color: #fff; }
.cta .container { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 64px 24px; flex-wrap: wrap; }
.cta h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.2; }
.cta p { color: rgba(255,255,255,.8); margin-top: 10px; max-width: 520px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 0 0 0; font-size: .92rem; }
.footer > .container { padding-top: 56px; }
.footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
/* The footer reuses the header's .brand class, which is a flex row — the crest and
   the motto need to stack, not sit side by side. */
.footer .brand { display: block; text-align: center; }
.footer .brand img {
  --crest-h: 160px;
  height: var(--crest-h);
  /* crest.png is a square canvas with the art centred (471px of transparent padding
     each side), so centring the element centres the art — no nudge needed. But it
     also carries 293/2083 = 14.1% of its height as empty canvas *below* the art,
     which reads as a gap nobody asked for; pull that back so the space under the
     crest is the ~10px this actually sets. */
  margin: 0 auto calc(10px - var(--crest-h) * 0.141);
}
.footer .brand p { line-height: 1.7; }
/* Sits directly under the crest now that the description is gone, and matches the
   other footer items — same sans face, not the serif italic used elsewhere. */
.footer .motto { font-family: var(--sans); font-style: normal; color: #fff;
  font-size: .95rem; line-height: 1.4; margin-top: 0; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer li { margin-bottom: 10px; } .footer a:hover { color: #fff; }
.footer .contact li { display: flex; gap: 10px; } .footer .contact i { color: var(--sky); margin-top: 4px; }
.footer .socials { display: flex; gap: 12px; margin-top: 18px; }
.footer .socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .2s; }
.footer .socials a:hover { background: var(--sky); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .82rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- SCROLL TO TOP ---------- */
.to-top { position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--sky); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); z-index: 60; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--sky-deep); }

/* ---------- REVEAL (enhancement only — visible by default) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- MOBILE NAV ---------- */
.mobile-nav { position: fixed; inset: var(--nav-h) 0 0; background: var(--white); z-index: 49;
  transform: translateX(100%); transition: transform .3s var(--ease); padding: 28px 24px; overflow-y: auto; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav > a, .m-toggle { display: block; width: 100%; text-align: left; padding: 16px 4px;
  font-size: 1.1rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.m-toggle { display: flex; align-items: center; justify-content: space-between; }
.m-toggle i { font-size: .8rem; color: var(--sky-deep); transition: transform .22s var(--ease); }
.m-toggle.open i { transform: rotate(180deg); }
.m-sub { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.m-sub a { display: block; padding: 12px 4px 12px 20px; font-size: .98rem; color: var(--muted);
  border-bottom: 1px solid var(--line); }
.m-sub a:hover { color: var(--navy); }
.mobile-nav .btn { display: flex; width: 100%; justify-content: center; text-align: center;
  padding: 15px 20px; margin-top: 22px; border-bottom: 0; }
.mobile-nav .btn-primary { color: var(--white); }
.mobile-nav .btn::after { display: none; }
.m-utility { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px;
  padding-top: 22px; border-top: 1px solid var(--line); }
.m-utility a { font-size: .95rem; font-weight: 500; color: var(--ink); }
.m-utility a:hover { color: var(--navy); }
.m-utility .tb-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: .04em; }
.m-utility .tb-live i { font-size: .5rem; color: #ff4d4f; }
.m-utility .tb-fees { background: var(--sky); color: #fff; padding: 8px 18px; border-radius: var(--r-pill); font-weight: 600; }
.m-utility .tb-fees:hover { background: var(--sky-deep); color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .topbar .tb-left span { display: none; }   /* drop email, keep the bar slim */
  .welcome .grid { grid-template-columns: 1fr; gap: 48px; }
  .welcome .media { max-width: 440px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  /* Links are too cramped on phones (they live in the mobile menu) — hide them but keep the
     full-height blank blue bar (--topbar-h) so the header isn't flush to the top edge. */
  .topbar .tb-left, .topbar .tb-right { display: none; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .stat + .stat::before { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .footer .grid { grid-template-columns: 1fr; }
  .hero-motto, .hero-place { display: none; }
  .section { padding: 68px 0; }
}

/* =============================================================
   ACTIVE NAV
============================================================= */
.nav > a.active, .nav-item > a.active { color: var(--navy); }
.nav > a.active::after, .nav-item > a.active::after { width: 100%; }
.mobile-nav > a.active { color: var(--navy); }

/* =============================================================
   INNER PAGE BANNER
============================================================= */
.page-banner { position: relative; isolation: isolate; background: var(--navy); color: #fff; overflow: hidden;
  min-height: clamp(300px, 40vh, 460px); display: grid; align-content: center; }
.page-banner .bg { position: absolute; inset: 0; z-index: -2; }
/* object-position biased downward: landscape school photos keep the sky up top, so favour the
   buildings/people band rather than cropping to the sky on wide desktop banners */
.page-banner .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
/* .pb-top / .pb-mid: crop higher up the photo than the default (sky/rooflines, or the middle
   band) — pair with .pb-strong when the crop is sky-heavy */
.page-banner.pb-top .bg img { object-position: center 22%; }
.page-banner.pb-mid .bg img { object-position: center 50%; }
.page-banner::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(18,28,68,.74) 0%, rgba(18,28,68,.44) 52%, rgba(26,167,223,.14) 100%); }
/* Stronger, full-width scrim for banners over bright/sky-heavy photos (keeps white text legible) */
.page-banner.pb-strong::before {
  background: linear-gradient(100deg, rgba(18,28,68,.86) 0%, rgba(18,28,68,.66) 50%, rgba(18,28,68,.44) 100%); }
.page-banner .container { padding: 48px 24px; text-shadow: 0 1px 10px rgba(10,16,40,.5); }
.page-banner .crumb { font-size: .82rem; letter-spacing: .02em; color: rgba(255,255,255,.72); margin-bottom: 14px; }
.page-banner .crumb a:hover { color: #fff; }
.page-banner .crumb i { font-size: .6rem; margin: 0 8px; opacity: .6; }
.page-banner .eyebrow { color: var(--sky); }
.page-banner h1 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em;
  font-size: clamp(2rem, 4.6vw, 3.25rem); }
.page-banner p { margin-top: 14px; max-width: 640px; color: rgba(255,255,255,.85); font-size: 1.05rem; }
.page-banner .flag-trim { position: absolute; left: 0; right: 0; bottom: 0; }

/* =============================================================
   PROSE / CONTENT
============================================================= */
.prose { max-width: 780px; }
.prose.center { margin: 0 auto; }
.prose p { color: #41506b; margin-bottom: 18px; font-size: 1.05rem; line-height: 1.8; }
.prose h2 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.7rem; margin: 36px 0 14px; }
.prose h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.3rem; margin: 28px 0 10px; }
.prose ul { margin: 0 0 18px 0; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 12px; color: #41506b; line-height: 1.7; }
.prose ul li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; top: 2px; color: var(--sky); font-size: .9rem; }
.prose blockquote { border-left: 3px solid var(--sky); padding: 6px 0 6px 22px; margin: 22px 0;
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--navy); }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.aside-card { background: var(--sky-pale); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.aside-card h4 { font-family: var(--serif); color: var(--navy); font-size: 1.15rem; margin-bottom: 12px; }
.aside-card ul li { margin-bottom: 10px; }
.aside-card a { color: var(--sky-deep); font-weight: 500; }
.aside-card a:hover { color: var(--navy); }

/* Legal documents (Privacy Policy, Terms of Use) — long-form, numbered, scannable. */
.legal-doc h2 { font-size: 1.4rem; margin: 40px 0 12px; scroll-margin-top: 120px; }
.legal-doc p, .legal-doc li { font-size: 1rem; }
.legal-updated { display: inline-flex; align-items: center; gap: 9px; background: var(--sky-pale);
  border-radius: 999px; padding: 8px 18px; font-size: .88rem !important; color: var(--sky-deep);
  margin-bottom: 24px !important; }
.legal-updated i { color: var(--sky-deep); }
.legal-toc { background: var(--sky-pale); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 28px; margin: 30px 0 8px; }
.legal-toc b { display: block; font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: 1.1rem; margin-bottom: 12px; }
.legal-toc ol { list-style: decimal; margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.legal-toc li::marker { color: var(--sky-deep); font-size: .85rem; }
.legal-toc li { margin-bottom: 8px; font-size: .93rem; color: var(--muted); break-inside: avoid; }
.legal-toc a { color: var(--sky-deep); }
.legal-toc a:hover { color: var(--navy); text-decoration: underline; }
.legal-doc blockquote { font-family: var(--sans); font-style: normal; font-size: 1rem;
  line-height: 1.8; color: #41506b; }
.legal-doc ul.dont li::before { content: '\f05e'; color: var(--muted); }  /* prohibition list — ban icon, not a tick */
@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
  .legal-updated { display: block; border-radius: 12px; }
}

/* Data tables — e.g. the period timetables in General Rules "Daily Routine". */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 22px; }
.legal-doc p.timetable-caption, .prose p.timetable-caption {
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: 1.15rem; margin: 26px 0 10px !important; }
.legal-doc table, .prose table {
  width: 100%; border-collapse: collapse; font-size: .95rem;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.legal-doc thead th, .prose thead th {
  background: var(--sky-pale); color: var(--navy); text-align: left;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 11px 16px; }
.legal-doc tbody th, .legal-doc tbody td,
.prose tbody th, .prose tbody td {
  padding: 10px 16px; border-top: 1px solid var(--line); color: #41506b;
  vertical-align: baseline; font-size: .95rem; }
.legal-doc tbody th, .prose tbody th {
  font-weight: 600; color: var(--navy); white-space: nowrap; text-align: left; }
.legal-doc tbody tr.is-break, .prose tbody tr.is-break { background: var(--sky-wash); }
.legal-doc tbody tr.is-break th, .prose tbody tr.is-break th { font-style: italic; font-weight: 500; }

/* Privacy notice under a data-collecting form (Contact enquiry). */
.privacy-consent { font-size: .84rem; line-height: 1.6; color: var(--muted); margin: 4px 0 18px; }
.privacy-consent a { color: var(--sky-deep); font-weight: 500; text-decoration: underline; }
.privacy-consent a:hover { color: var(--navy); }

/* Tables in prose (General Rules timetables; anything an editor adds in wp-admin).
   Scrolls inside its own wrapper on narrow screens so the page never scrolls sideways. */
.prose .table-wrap { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; min-width: 320px; font-size: .95rem; }
.prose table th, .prose table td { border: 1px solid var(--line); padding: 9px 14px; text-align: left; }
.prose table thead th { background: var(--sky-pale); color: var(--navy); font-weight: 600;
  font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.prose table tbody th { font-weight: 500; color: var(--navy); white-space: nowrap; }
.prose table tbody tr:nth-child(even) td, .prose table tbody tr:nth-child(even) th { background: #fbfcfe; }
.prose table td { color: #41506b; font-variant-numeric: tabular-nums; }
/* The interval row — a break in the day, not a lesson. */
.prose table tr.is-break th, .prose table tr.is-break td { background: var(--sky-pale) !important;
  color: var(--sky-deep); font-weight: 600; }
.timetable-caption { font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: 1.08rem; margin: 26px 0 10px; }
@media (max-width: 640px) {
  /* Let a 3-column timetable fit a phone rather than sit in a scroller. */
  .prose table { min-width: 0; font-size: .86rem; }
  .prose table th, .prose table td { padding: 8px 9px; }
  .prose table thead th { font-size: .72rem; letter-spacing: .02em; }
}

/* Rules accordion (General Rules) — a long reference document collapsed to one
   screen of headings. Structure is built by initRulesAccordion() from the h2s,
   so nothing here depends on the WordPress body carrying accordion markup. */
.rules-accordion .rule-section { border-bottom: 1px solid var(--line); }
.rules-accordion .rule-section:first-of-type { border-top: 1px solid var(--line); }
.rules-accordion h2.rule-head { margin: 0; font-size: 1.25rem; scroll-margin-top: 100px; }
.rules-accordion .rule-toggle { width: 100%; display: flex; align-items: center; gap: 14px;
  background: none; border: 0; padding: 20px 4px; cursor: pointer; text-align: left;
  font: inherit; color: var(--navy); transition: color .18s var(--ease); }
.rules-accordion .rule-toggle:hover { color: var(--sky-deep); }
.rules-accordion .rule-toggle:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 3px; }
.rules-accordion .rule-chev { margin-left: auto; font-size: .8rem; color: var(--sky-deep);
  transition: transform .22s var(--ease); }
.rules-accordion .rule-section.is-open .rule-chev { transform: rotate(180deg); }
.rules-accordion .rule-section.is-open .rule-toggle { color: var(--sky-deep); }
.rules-accordion .rule-body { padding: 2px 4px 26px; }
.rules-accordion .rule-body > :first-child { margin-top: 0; }
.rules-accordion .rule-body > :last-child { margin-bottom: 0; }
.rules-accordion .rule-body h3:first-child { margin-top: 0; }
/* Nothing is hidden on paper — a printed rulebook needs every section. */
@media print {
  .rules-accordion .rule-body[hidden] { display: block !important; }
  .rules-accordion .rule-chev { display: none; }
}

/* =============================================================
   HEADMASTER LINE (History — 7 portrait cards, Founder + 1st-6th)
   Flex + centred wrap so the last row of an odd count (7 = 4+3)
   centres instead of hanging left, matching .pillars.
============================================================= */
.hm-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.hm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; text-align: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  flex: 0 0 calc((100% - 3 * 22px) / 4); }
.hm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
/* The portraits are a standardised set — same 4:5 frame, same head-and-shoulders
   crop — so the box matches the source and nothing is cut off. */
.hm-card .hm-photo { aspect-ratio: 4/5; overflow: hidden; background: var(--sky-pale); }
.hm-card .hm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  transition: transform .5s var(--ease); }
.hm-card:hover .hm-photo img { transform: scale(1.05); }
.hm-card .hm-body { padding: 16px 14px 20px; }
.hm-card .hm-role { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sky-deep); margin-bottom: 7px; }
.hm-card h3 { font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: 1.02rem; line-height: 1.3; margin: 0 0 6px; }
.hm-card .hm-years { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
/* The founder opens the line, and the sitting head closes it — both marked. */
.hm-card.is-founder { border-top: 3px solid var(--navy); }
.hm-card.is-current { border-top: 3px solid var(--sky-deep); }
.hm-card.is-current .hm-years { color: var(--sky-deep); font-weight: 600; }
.hm-note { text-align: center; margin-top: 28px; }
@media (max-width: 980px) { .hm-card { flex-basis: calc((100% - 2 * 22px) / 3); } }
@media (max-width: 700px)  { .hm-card { flex-basis: calc((100% - 22px) / 2); } }
/* Stay 2-up on phones — 7 full-width cards would be a ~3,800px column. */
@media (max-width: 360px)  { .hm-card { flex-basis: 100%; } }

/* =============================================================
   PROFILE / MESSAGE (Headmaster, Captain — full)
============================================================= */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.profile .photo { position: sticky; top: 110px; }
.profile .photo img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.profile .photo .name { margin-top: 18px; }
.profile .photo .name b { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); display: block; }
.profile .photo .name span { font-size: .85rem; color: var(--muted); }
.profile .photo .name small { display: block; font-size: .78rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.profile > div:not(.photo) p { text-align: justify; hyphens: auto; hyphenate-limit-chars: 9 4 4; }

/* =============================================================
   HOME — MESSAGES ROW (Headmaster + Captain teaser)
============================================================= */
.messages { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.msg-card { display: flex; gap: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.msg-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.msg-card img { width: 110px; height: 138px; object-fit: cover; border-radius: var(--r-md); flex-shrink: 0; background: var(--sky-pale); }
.msg-card .role { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-deep); font-weight: 700; }
.msg-card h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.2rem; margin: 6px 0 10px; }
.msg-card p { color: var(--muted); font-size: .95rem; }
.msg-card .name { margin-top: 12px; font-family: var(--serif); font-style: italic; color: var(--navy); }
.msg-card .more { margin-top: 10px; font-weight: 600; font-size: .88rem; color: var(--sky-deep); display: inline-flex; gap: 6px; align-items: center; }

/* =============================================================
   PILLARS — "What we offer"
============================================================= */
.pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); display: flex; flex-direction: column;
  text-decoration: none; color: inherit; flex: 1 1 280px; max-width: calc((100% - 48px) / 3); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar-img { aspect-ratio: 16/10; overflow: hidden; }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pillar:hover .pillar-img img { transform: scale(1.06); }
.pillar-body { padding: 22px 24px 26px; }
.pillar h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.25rem; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: .92rem; }
/* Icon variant of .pillar (no .pillar-img / .pillar-body wrapper) — pads its own children. */
.pillar > .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sky-pale); color: var(--sky-deep); font-size: 1.2rem; margin: 26px 24px 16px; }
.pillar > .ic ~ h3, .pillar > .ic ~ .grade-band, .pillar > .ic ~ p { margin-left: 24px; margin-right: 24px; }
.pillar > .ic ~ p:last-child { margin-bottom: 28px; }
.pillar .grade-band { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sky-deep); background: var(--sky-pale); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 4px 10px; margin-bottom: 12px; }

/* =============================================================
   HOUSE SYSTEM
============================================================= */
.house-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.house-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--hc, var(--navy));
  border-radius: var(--r-lg); padding: 30px 22px; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.house-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.house-card img { height: 116px; width: auto; margin: 0 auto 18px; object-fit: contain; }
.house-card h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.3rem; }
.house-card .named { font-size: .86rem; color: var(--muted); margin-top: 8px; line-height: 1.55; }
.house-card .motto { margin-top: 14px; font-family: var(--serif); font-style: italic; color: var(--hc, var(--navy)); }
.house-card .chip { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: .76rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.house-card .chip::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--hc, var(--navy)); }

/* =============================================================
   LYRICS (song / hymn)
============================================================= */
.lyrics { columns: 2; column-gap: 56px; max-width: 860px; margin: 0 auto; }
.verse { break-inside: avoid; margin-bottom: 28px; }
.verse h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-deep); margin-bottom: 8px; }
.verse p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; color: var(--navy); }
.verse.chorus p { font-style: italic; color: var(--sky-deep); }
.lyrics-credit { max-width: 860px; margin: 32px auto 0; text-align: center; font-size: .92rem; font-style: italic; color: var(--muted); }

/* =============================================================
   CREST / FLAG PAGE — rendered flag
============================================================= */
.flag-figure { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.flag-vis { position: relative; aspect-ratio: 5/3; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; border: 1px solid var(--line); }
.flag-vis .band { flex: 1; display: grid; place-items: center; }
.flag-vis .band.navy { background: var(--navy); }
.flag-vis .band.sky { background: var(--sky); }
.flag-vis .band.white { background: #fff; }
.flag-vis .crest { position: absolute; inset: 0; display: grid; place-items: center; }
.flag-vis .crest img { max-height: 80%; max-width: 58%; width: auto; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.28)); }
.swatch-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.swatch { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; width: 132px; }
.swatch .c { height: 64px; }
.swatch .m { padding: 10px 12px; font-size: .78rem; }
.swatch .m b { display: block; color: var(--navy); }
.swatch .m span { color: var(--muted); }

/* =============================================================
   NEWS — single article
============================================================= */
.article { max-width: 800px; margin: 0 auto; }
.article .meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.article .meta .tag { background: var(--navy); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); }
.article .hero-img { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow-md); }
.article .hero-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* =============================================================
   CONTACT
============================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--r-md);
  font-family: var(--sans); font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(26,167,223,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.info-list li { display: flex; gap: 14px; margin-bottom: 20px; }
.info-list .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--sky-pale); color: var(--sky-deep);
  display: grid; place-items: center; flex-shrink: 0; }
.info-list b { display: block; color: var(--navy); font-size: .95rem; }
.info-list span { color: var(--muted); font-size: .92rem; }
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 26px; height: 280px;
  background: var(--sky-pale); display: grid; place-items: center; color: var(--muted); }

/* Staff directory — one box per person */
.staff-directory { max-width: 1040px; margin: 0 auto; }
.staff-group + .staff-group { margin-top: 40px; }
.staff-group h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--navy);
  margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--sky); }
.staff-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.staff-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.staff-card .role { font-weight: 700; font-size: .95rem; color: var(--navy); line-height: 1.3; }
.staff-card .name { margin-top: 3px; font-size: .88rem; color: var(--muted); }
.staff-card .lines { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line);
  display: grid; gap: 7px; }
.staff-card .lines span, .staff-card .lines a { display: flex; align-items: center; gap: 9px;
  font-size: .86rem; color: var(--ink); text-decoration: none; word-break: break-word; }
.staff-card .lines a { color: var(--sky-deep); }
.staff-card .lines a:hover { text-decoration: underline; }
.staff-card .lines i { width: 15px; flex-shrink: 0; text-align: center; color: var(--muted); font-size: .8rem; }

/* =============================================================
   RESPONSIVE — inner pages
============================================================= */
@media (max-width: 980px) {
  .content-grid { grid-template-columns: 1fr; gap: 36px; }
  .profile { grid-template-columns: 1fr; gap: 28px; }
  .profile .photo { position: static; max-width: 320px; }
  .messages { grid-template-columns: 1fr; }
  .pillar { max-width: calc((100% - 24px) / 2); }
  .house-grid { grid-template-columns: repeat(2, 1fr); }
  .flag-figure { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .lyrics { columns: 1; }
  .pillar { max-width: 100%; }
  .house-grid { grid-template-columns: 1fr; }
  .msg-card { flex-direction: column; }
  .msg-card img { width: 120px; }
}

/* ---------- LIVE PAGE — stream stage ---------- */
.live-stage { max-width: 900px; margin: 0 auto; aspect-ratio: 16/9; background: var(--sky-pale);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; }
.live-stage iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
.live-stage .muted i { margin-right: 8px; }

/* ---------- LIVE: the on-air button, offline notice, channel videos (D37) ---------- */
/* "Streaming Live" appears in the nav beside Admissions only while the school's
   channel is on air. Same pill metrics as Admissions, but navy — sky is already
   the Admissions CTA — with the red pulsing dot carrying the live signal. */
.btn-live { position: relative; background: var(--navy); border-color: var(--navy); font-size: .88rem; }
/* .nav > a sets the nav's ink colour at a higher specificity than a bare .btn class,
   so the label needs the same weight or it renders navy-on-navy and vanishes. */
.nav > a.btn-live, .nav > a.btn-live:hover, .mobile-nav > a.btn-live { color: var(--white); }
.nav > a.btn-live { padding: 10px 20px; }
/* A second pill is more than the nav has room for at laptop widths, so the row closes
   up while a stream is on. Nav labels must not wrap, or the chevrons break away from
   their words; below 1360px the button sheds "Streaming" to buy back the width. */
.nav > a, .nav-item > a, .brand-text strong { white-space: nowrap; }
.nav:has(.btn-live) { gap: 16px; }
.nav:has(.btn-live) > a, .nav:has(.btn-live) .nav-item > a { font-size: .86rem; }
/* Only the desktop nav is short of room — the mobile menu's full-width pill keeps
   the whole label. */
@media (max-width: 1360px) { .nav .btn-live-label > span { display: none; } }
.btn-live:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white);
  transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-live > i { font-size: .72rem; color: var(--live-dot); animation: live-pulse 1.2s ease-in-out infinite; }
.nav > a.btn-live::after { display: none; }  /* the nav underline doesn't belong on a pill */

/* What is streaming, on hover — keeps the stream title out of the header's width */
.btn-live-tip { position: absolute; top: calc(100% + 12px); right: 0; z-index: 60;
  width: max-content; max-width: 280px; padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-size: .8rem; font-weight: 500; line-height: 1.45;
  text-align: left; white-space: normal; letter-spacing: 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; }
.btn-live-tip::before { content: ""; position: absolute; bottom: 100%; right: 26px;
  border: 6px solid transparent; border-bottom-color: var(--ink); }
.btn-live:hover .btn-live-tip, .btn-live:focus-visible .btn-live-tip {
  opacity: 1; visibility: visible; transform: none; }
@media (hover: none) { .btn-live-tip { display: none; } }  /* nothing to hover on touch */

/* Live-page eyebrow while streaming */
.eyebrow-live { color: var(--live); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow-live i { font-size: .45rem; animation: live-pulse 1.6s ease-in-out infinite; }

/* Between events the page says so briefly, then hands over to the video grid */
.live-offline { max-width: 660px; margin: 0 auto; text-align: center; padding: 26px 28px;
  background: var(--sky-wash); border: 1px dashed var(--line); border-radius: var(--r-md); }
.live-offline i { margin-right: 10px; color: var(--sky); }
.live-alt { margin-top: 18px; font-size: .9rem; }
.live-alt a { color: var(--muted); }
.live-alt a:hover { color: var(--navy); }

/* Channel videos */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.video-card { display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-thumb { position: relative; display: block; aspect-ratio: 16/9; background: var(--sky-pale); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Play button, drawn in CSS so it needs no icon font or asset */
.video-thumb::after { content: ""; position: absolute; inset: 0; margin: auto; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%; background: rgba(20, 20, 20, .62);
  transition: background .2s var(--ease); }
.video-thumb::before { content: ""; position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 0; height: 0; transform: translateX(3px);
  border-left: 17px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.video-card:hover .video-thumb::after { background: var(--live); }
.video-meta { display: block; padding: 16px 18px 18px; }
.video-title { display: block; font-weight: 600; color: var(--ink); line-height: 1.35; }
.video-date { display: block; margin-top: 6px; font-size: .8rem; color: var(--muted); }

@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-live i, .btn-live > i, .eyebrow-live i { animation: none; }
}


/* -------------------------------------------------------------------------
 * News & Gallery — cards that link out to the school's Facebook (D38)
 *
 * The two listings are the same object: a photo, a category, a date, a line or
 * two, and a link to the post. They share these styles; what differs is only
 * how the pills work — News loads real category archives, Gallery filters the
 * cards in the browser (its albums have no pages of their own).
 * ---------------------------------------------------------------------- */

.news-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.news-filters .btn { padding: 8px 18px; }
.news-filters button.btn { cursor: pointer; font-family: inherit; }

/* Two lines then ellipsis — one long description must not stretch its card and
   leave the whole row ragged. */
.card .desc, .album-card .desc { display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }

/* A news card whose destination is Facebook: the whole card is clickable, like
   an album card. There's still exactly one anchor — this only stretches its hit
   area over the card, so screen readers and the status bar see one clear link. */
.card-fb { position: relative; }
.card-fb .more::after { content: ""; position: absolute; inset: 0; }

/* Gallery — album cards link out to Facebook */
.album-card { display: block; color: inherit; text-decoration: none; position: relative; }
.album-card .pillar-img { position: relative; }
.album-card .pillar-body h3 { margin: 0 0 4px; }
.album-card .pillar-body .muted { margin: 0; font-size: .9rem; }
.album-card .pillar-body .date { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.album-card .pillar-body .date i { color: var(--sky); margin-right: 6px; }
.album-card .pillar-img .tag { position: absolute; top: 14px; left: 14px; z-index: 1;
  background: var(--navy); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); }

/* Client-side category filtering (Gallery) */
.is-filtered-out { display: none !important; }
.album-empty { width: 100%; text-align: center; padding: 30px 0; }


/* -------------------------------------------------------------------------
 * WordPress-only additions (no prototype equivalent)
 * ---------------------------------------------------------------------- */

/* Lyrics pages — the listen button above the verses */
.lyrics-listen { text-align: center; margin-bottom: 40px; }

/* Crest, Motto & Flag — the symbol sections (inline styles in the prototype) */
.symbol { max-width: 680px; margin: 0 auto; text-align: center; }
.symbol p { color: var(--muted); }
.symbol.is-crest { max-width: 580px; }
.symbol.is-crest img { width: 58%; max-width: 240px; height: auto; margin: 0 auto 22px; }
.symbol.is-flag img { display: block; width: 100%; max-width: 460px; margin: 0 auto;
  border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.symbol.is-flag p { max-width: 560px; margin: 24px auto 0; }
.symbol.is-motto blockquote { border: none; font-size: 1.9rem; text-align: center; padding: 0; margin: 0 0 14px; }
.symbol figure { margin: 30px auto 0; max-width: 680px; }
.symbol figure img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.symbol figcaption { color: var(--muted); font-size: .85rem; margin-top: 10px; }
.symbol-cta { text-align: center; max-width: 560px; margin: 0 auto; }
.symbol-cta h2 { font-size: 1.35rem; }
.symbol-cta p { color: var(--muted); }

/* Contact page — column headings, socials row, honeypot, form feedback */
.contact-h { font-size: 1.7rem; margin-bottom: 24px; }
.contact-socials { display: flex; gap: 12px; margin-top: 8px; }
.contact-socials a { width: 42px; height: 42px; border-radius: 50%; background: var(--sky-pale);
  color: var(--sky-deep); display: grid; place-items: center; }
.map-embed a { display: grid; place-items: center; width: 100%; height: 100%; color: inherit; }
.stps-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 14px; }
.form-note.is-ok { color: var(--sky-deep); }
.form-note.is-error { color: #C0392B; }

/* Archives — collection tiles + closing note (inline styles in the prototype) */

/* ---------- COMING SOON — standalone placeholder front page (Site Settings > Global) ---------- */
.coming-soon { margin: 0; background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--sky-deep) 130%); }
.cs-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 24px; color: #fff; }
.cs-crest { width: 96px; height: auto; margin-bottom: 28px; filter: drop-shadow(0 8px 22px rgba(0,0,0,.25)); }
.cs-eyebrow { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 18px; }
.cs-screen h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.25;
  max-width: 760px; margin: 0 0 22px; }
.cs-school { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin: 0 0 10px; }
.cs-tagline { color: rgba(255,255,255,.78); font-size: 1rem; max-width: 480px; margin: 0; }
@media (max-width: 600px) { .cs-crest { width: 76px; margin-bottom: 22px; } }
