/* =========================================================================
   St. John's School, Anchal — theme stylesheet
   Identity: maroon + gold, orange for primary actions, campus photography.
   Type: Plus Jakarta Sans (headings), Inter (body).
   ========================================================================= */

:root {
  --maroon: #800000;
  --maroon-deep: #5a0000;
  --maroon-ink: #3a0a0a;
  --gold: #c79a1b;
  --gold-soft: #e8cf86;
  --gold-pale: #f6eed6;
  --orange: #ff6700;
  --orange-deep: #d95500;
  --navy: #000f1d;
  --ink: #1f1a1a;
  --text: #3a3535;
  --muted: #6f6767;
  --line: #e6dfd6;
  --paper: #ffffff;
  --paper-warm: #f8f4ec;
  --paper-warm-2: #f1eadc;

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --fs-hero: clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 2.2vw, 3.2rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --fs-h4: 1.15rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 5vw + 24px, 112px);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 18px 40px -24px rgba(58, 10, 10, 0.35);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset & base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2em; }
figure { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--maroon); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: var(--radius); }
.skip-link:focus { top: 8px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1440px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--warm { background: var(--paper-warm); }
.section--maroon { background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 60%, #8f0a0a 100%); color: #fff; }
.section--maroon h2, .section--maroon h3, .section--maroon h4 { color: #fff; }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--gold { background: var(--gold-pale); }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1;
  padding: .95em 1.5em; border-radius: var(--radius); text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }
.btn--secondary { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.btn--secondary:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn--ghost:hover { background: var(--maroon); color: #fff; }
.btn--light { background: #fff; color: var(--maroon); border-color: #fff; }
.btn--light:hover { background: var(--gold-pale); border-color: var(--gold-pale); color: var(--maroon-deep); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: #fff; color: var(--maroon); }
.btn--small { padding: .7em 1.1em; font-size: .85rem; }

/* ---------- Header ------------------------------------------------------- */
.site-header { position: relative; z-index: 50; }
.topbar { background: var(--gold); color: #2a1a00; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar__contact { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.topbar__contact a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.topbar__contact a:hover { color: var(--maroon-deep); }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.social a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: inherit; text-decoration: none; font-size: .85rem; transition: background-color .2s; }
.social--top a:hover { background: rgba(0,0,0,.12); }
@media (max-width: 760px) { .topbar__contact li:first-child { display: none; } .topbar__right .social { display: none; } }
/* The tagline is dropped from the bar entirely: the menu is long and the two
   collided on every desktop width. It still appears in the top bar and footer. */
.brand__sub { display: none; }

.masthead { background: #fff; position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--line); transition: box-shadow .25s var(--ease); }
.is-scrolled .masthead { box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; max-width: 1700px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand__crest { width: 60px; height: 60px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--maroon); letter-spacing: -0.01em; white-space: nowrap; }
.brand__sub { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.masthead__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.nav { flex: 1; min-width: 0; display: flex; justify-content: flex-end; }
@media (min-width: 1401px) { .nav__list > li.menu-item-home, .nav__list > li.current-menu-item.menu-item-object-page:first-child { display: none; } }
/* The menu is long, so the bar stays compact across desktop sizes rather than
   letting the list overflow leftwards under the school name. */
@media (min-width: 1401px) {
  .masthead__inner { gap: 20px; }
  .nav__list > li > a { padding: 10px 5px; font-size: .79rem; }
  .nav__list .menu-item-has-children > a::after { margin-left: 5px; width: 5px; height: 5px; }
  .brand__crest { width: 50px; height: 50px; }
  .brand { gap: 10px; }
  .brand__name { font-size: 1.05rem; }
}

.nav__list, .nav__list ul { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; gap: 0; align-items: center; flex-wrap: nowrap; }
.nav__list > li { position: relative; }
.nav__list > li > a { display: block; padding: 10px 7px; font-family: var(--font-head); font-weight: 600; font-size: .84rem; white-space: nowrap; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.nav__list > li > a:hover, .nav__list > li.current-menu-item > a, .nav__list > li.current-menu-ancestor > a, .nav__list > li.current_page_parent > a { color: var(--maroon); background: var(--gold-pale); }
.nav__list .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav__sub-toggle { display: none; }
.nav__list .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.nav__list .sub-menu .sub-menu { top: -9px; left: 100%; border-top: 1px solid var(--line); }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu, .nav__list li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__list .sub-menu a { display: block; padding: 9px 12px; color: var(--ink); text-decoration: none; font-size: .92rem; border-radius: 4px; }
.nav__list .sub-menu a:hover { background: var(--paper-warm); color: var(--maroon); }
.nav__list .sub-menu .menu-item-has-children > a::after { transform: translateY(0) rotate(-45deg); float: right; margin-top: 8px; }
/* The album list grows as the office adds events, so it stays inside the screen. */
.nav__list .menu-item-albums > .sub-menu { max-width: 320px; max-height: min(60vh, 420px); overflow-y: auto; overscroll-behavior: contain; }
.nav__list .menu-item-albums > .sub-menu a { line-height: 1.35; }
.nav__mobile-extra { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 8px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1400px) {
  .brand__sub { display: none; }
  .nav-toggle { display: flex; }
  .masthead__cta { display: none; }
  .nav { display: block; flex: none; position: fixed; inset: 0 0 0 auto; width: min(400px, 88vw); background: #fff; transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; padding: 96px 24px 32px; z-index: 55; box-shadow: -20px 0 60px -30px rgba(0,0,0,.5); }
  .nav-open .nav { transform: translateX(0); }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .nav__list > li > a { flex: 1; padding: 14px 4px; font-size: 1.05rem; }
  .nav__list .menu-item-has-children > a::after { display: none; }
  .nav__sub-toggle { display: inline-flex; width: 44px; height: 44px; border: 0; background: transparent; position: relative; cursor: pointer; }
  .nav__sub-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--maroon); border-bottom: 2px solid var(--maroon); transform: translate(-50%, -70%) rotate(45deg); transition: transform .2s; }
  .is-open > .nav__sub-toggle::after { transform: translate(-50%, -30%) rotate(-135deg); }
  .nav__list .sub-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--gold); border-radius: 0; padding: 0 0 8px 12px; width: 100%; min-width: 0; }
  .nav__list li.is-open > .sub-menu { display: block; }
  .nav__list .sub-menu .sub-menu { border-left-color: var(--line); }
  .nav__mobile-extra { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
}

.ticker { background: var(--maroon); color: #fff; font-size: .9rem; --ticker-duration: 40s; }
.ticker--slow { --ticker-speed-factor: 1.6; }
.ticker--fast { --ticker-speed-factor: .6; }
.ticker__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 40px; }
.ticker__label { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); white-space: nowrap; font-family: var(--font-head); padding-right: 16px; border-right: 1px solid rgba(255,255,255,.25); }
.ticker__viewport { overflow: hidden; min-width: 0; mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.ticker__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; width: max-content; animation: ticker-scroll var(--ticker-duration) linear infinite; will-change: transform; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track, .ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; white-space: nowrap; padding-right: 48px; position: relative; }
.ticker__item::after { content: ""; position: absolute; right: 22px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); transform: translateY(-50%); }
.ticker__item a, .ticker__item span { color: #fff; text-decoration: none; }
.ticker__item a:hover { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.ticker__item--highlight a, .ticker__item--highlight span { color: var(--gold-soft); font-weight: 600; }
.ticker__pause { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; }
.ticker__pause:hover { background: rgba(255,255,255,.12); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; flex-wrap: wrap; width: auto; } .ticker__viewport { mask-image: none; } .ticker__pause { display: none; } .ticker__item { white-space: normal; padding: 4px 24px 4px 0; } .ticker__item::after { display: none; } }
@media (max-width: 640px) { .ticker__label span, .ticker__label { font-size: .8rem; } }

/* ---------- Hero band (inner pages) --------------------------------------- */
.hero { position: relative; background: var(--maroon-ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: var(--hero-image) center/cover no-repeat; z-index: -2; }
.hero.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(58,10,10,.92) 0%, rgba(58,10,10,.75) 45%, rgba(58,10,10,.25) 100%); z-index: -1; }
.hero__inner { padding-block: clamp(56px, 8vw, 120px); }
.hero--sm .hero__inner { padding-block: clamp(40px, 5vw, 72px); }
.hero__sash { max-width: 720px; padding-left: 26px; border-left: 4px solid var(--gold); }
.hero__title { color: #fff; font-size: var(--fs-h1); margin-bottom: .4em; }
.hero__text { font-size: 1.15rem; line-height: 1.55; color: rgba(255,255,255,.88); max-width: 60ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.crumbs { font-size: .85rem; color: var(--gold-soft); margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.crumbs a { color: var(--gold-soft); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- Section head ------------------------------------------------- */
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__kicker { font-family: var(--font-head); font-weight: 600; color: var(--maroon); margin: 0 0 10px; font-size: .95rem; display: flex; align-items: center; gap: 12px; }
.section-head__kicker::before { content: ""; width: 34px; height: 3px; background: var(--gold); border-radius: 2px; flex: none; }
.section-head--center .section-head__kicker { justify-content: center; }
.section-head__title { margin-bottom: .45em; }
.section-head__text { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.section-head--center .section-head__text { margin-inline: auto; }
.section-head--light .section-head__title { color: #fff; }
.section-head--light .section-head__kicker { color: var(--gold-soft); }
.section-head--light .section-head__text { color: rgba(255,255,255,.85); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; flex-wrap: wrap; }
.section-head--row > div { max-width: 720px; }

/* ---------- Grids -------------------------------------------------------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--wide-left { grid-template-columns: 1.2fr .8fr; }
.split--wide-right { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 900px) { .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; } }

/* ---------- Components --------------------------------------------------- */
.feature { display: block; padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: inherit; position: relative; transition: border-color .2s, transform .25s var(--ease); }
.feature::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 3px; background: var(--gold); border-radius: 3px 3px 0 0; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
a.feature:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
a.feature:hover::after { transform: scaleX(1); }
.feature__icon { width: 52px; height: 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-pale); color: var(--maroon); font-size: 1.25rem; margin-bottom: 18px; }
.feature__title { font-size: 1.15rem; margin-bottom: .4em; }
.feature__text { color: var(--muted); font-size: .98rem; margin: 0; }
.feature--plain { border: 0; padding: 0; background: transparent; }
.feature--plain::after { display: none; }
.feature--row { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; row-gap: 4px; align-items: start; }
.feature--row .feature__icon { margin: 0; grid-row: 1 / span 2; }
.feature--row .feature__title, .feature--row .feature__text { grid-column: 2; }
.feature--row .feature__title { margin: 6px 0 0; }
.feature--dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.feature--dark .feature__title { color: #fff; }
.feature--dark .feature__text { color: rgba(255,255,255,.8); }
.feature--dark .feature__icon { background: rgba(255,255,255,.12); color: var(--gold-soft); }
.feature--gold { background: var(--gold); border-color: var(--gold); color: #2a1a00; }
.feature--gold .feature__title { color: #2a1a00; }
.feature--gold .feature__text { color: rgba(42,26,0,.85); }
.feature--gold .feature__icon { background: rgba(255,255,255,.35); color: var(--maroon-deep); }
.feature--maroon { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.feature--maroon .feature__title { color: #fff; }
.feature--maroon .feature__text { color: rgba(255,255,255,.85); }
.feature--maroon .feature__icon { background: rgba(255,255,255,.12); color: var(--gold-soft); }

.pcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-warm-2); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.pcard__meta { font-size: .82rem; color: var(--maroon); font-weight: 600; }
.pcard__title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); line-height: 1.25; }
.pcard__text { color: var(--muted); font-size: .96rem; }
.pcard__more { margin-top: auto; padding-top: 8px; color: var(--maroon); font-weight: 600; font-size: .92rem; }
.pcard--overlay { position: relative; aspect-ratio: 3 / 4; border: 0; color: #fff; }
.pcard--overlay .pcard__media { position: absolute; inset: 0; aspect-ratio: auto; }
.pcard--overlay .pcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(58,10,10,.9) 100%); }
.pcard--overlay .pcard__body { position: relative; margin-top: auto; z-index: 1; }
.pcard--overlay .pcard__title, .pcard--overlay .pcard__text { color: #fff; }
.pcard--overlay .pcard__meta, .pcard--overlay .pcard__more { color: var(--gold-soft); }

.stat { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 2px; }
.stat__number { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 2rem + 1.8vw, 3.6rem); line-height: 1; color: var(--gold-soft); letter-spacing: -0.02em; }
.stat__suffix { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--gold); }
.stat__label { flex-basis: 100%; margin-top: 8px; font-size: .95rem; color: rgba(255,255,255,.85); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 640px) { .stats-row { grid-template-columns: 1fr; } }
.stats-row--light .stat__number { color: var(--maroon); }
.stats-row--light .stat__label { color: var(--muted); }

.accordion { display: grid; gap: 10px; }
.accordion__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.accordion__item[open] { border-color: var(--gold); }
.accordion__summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__icon { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--maroon); position: relative; flex: none; }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--maroon); transform: translate(-50%,-50%); transition: transform .2s; }
.accordion__icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.accordion__item[open] .accordion__icon::after { transform: translate(-50%,-50%) rotate(0); }
.accordion__body { padding: 0 22px 20px; color: var(--muted); }

.video { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
.video__poster { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(58,10,10,.55)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; cursor: pointer; font-family: var(--font-head); font-weight: 600; }
.video__play i { width: 78px; height: 78px; border-radius: 50%; background: var(--orange); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; padding-left: 4px; box-shadow: 0 0 0 12px rgba(255,103,0,.25); transition: transform .3s var(--ease); }
.video__play:hover i { transform: scale(1.06); }
.video__player { width: 100%; height: 100%; object-fit: cover; border: 0; }
iframe.video__player { position: absolute; inset: 0; }
.video.is-playing .video__poster, .video.is-playing .video__play { display: none; }

.quote { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 30px 26px; }
.quote::before { content: "“"; position: absolute; top: 10px; right: 22px; font-family: var(--font-head); font-size: 5rem; line-height: 1; color: var(--gold-pale); }
.quote__text { font-size: 1.05rem; color: var(--text); margin-bottom: 20px; position: relative; }
.quote__who { display: flex; align-items: center; gap: 12px; }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--maroon); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; }
.quote__name { font-family: var(--font-head); font-weight: 700; color: var(--ink); display: block; line-height: 1.2; }
.quote__role { font-size: .85rem; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--gold); flex: none; margin-top: 4px; font-size: .85rem; }
.checklist--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .checklist--2 { grid-template-columns: 1fr; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(step); width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: #2a1a00; font-family: var(--font-head); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.steps h3 { color: #fff; font-size: 1.1rem; margin-bottom: .2em; }
.steps p { color: rgba(255,255,255,.82); margin: 0; }

.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 6px; }
.tile { position: relative; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: #fff; text-decoration: none; overflow: hidden; border-radius: var(--radius); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,15,29,0) 20%, rgba(0,15,29,.85) 100%); z-index: -1; }
.tile:hover img { transform: scale(1.05); }
.tile h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.tile span { color: var(--gold-soft); font-weight: 600; font-size: .9rem; }
.tile--maroon { background: var(--maroon); grid-row: span 1; }
.tile--maroon::after { display: none; }
.tile--maroon p { color: rgba(255,255,255,.88); margin: 0 0 16px; }
.tile--maroon h3 { font-size: 1.5rem; }
@media (max-width: 640px) { .tile-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 14px; }
.form--2 { grid-template-columns: 1fr 1fr; }
.form .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form--2 { grid-template-columns: 1fr; } }
.form label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-family: var(--font-head); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .newsletter__form input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus, .newsletter__form input:focus { border-color: var(--maroon); outline: 2px solid rgba(128,0,0,.2); outline-offset: 0; }
.form textarea { min-height: 130px; resize: vertical; }
.form-notice { padding: 14px 18px; border-radius: var(--radius); font-weight: 500; }
.form-notice--ok { background: #e9f6ec; color: #17603a; }
.form-notice--error { background: #fdecea; color: #a5261e; }

/* ---------- Application for admission ------------------------------------- */
.adm-form { gap: 26px; }
.adm-fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 22px clamp(16px, 3vw, 26px) 26px; margin: 0; min-width: 0; }
.adm-fieldset > legend { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--maroon); padding: 0 10px; margin-left: -4px; }
.adm-fieldset > p { font-size: .95rem; color: var(--muted); margin: 0; }
.adm-form .req { color: var(--maroon); font-weight: 700; }
.field-hint { display: block; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.club-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; }
.club-card h3 { font-size: 1.06rem; color: var(--maroon); margin: 0 0 8px; }
.club-card p { margin: 0; font-size: .94rem; color: var(--muted); }

/* ---------- School Parliament and house leaders --------------------------- */
.parliament-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.parliament-card { background: #fff; border: 1px solid var(--line); border-bottom: 4px solid var(--maroon); border-radius: var(--radius-lg); padding: 22px; text-align: center; }
.parliament-card__photo { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; object-position: center 22%; margin: 0 auto 14px; display: block; border: 3px solid var(--gold-pale); }
.parliament-card__role { display: block; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); font-family: var(--font-head); font-weight: 600; }
.parliament-card h3 { font-size: 1.1rem; margin: 6px 0 0; }
.parliament-photo { margin: 36px 0 0; }
.parliament-photo img { width: 100%; border-radius: var(--radius-lg); display: block; }
.parliament-photo figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); text-align: center; }

.house-leaders { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.house-leader { display: flex; align-items: center; gap: 11px; }
.house-leader__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-pale); color: var(--maroon); font-family: var(--font-head); font-weight: 600; font-size: 1rem; flex: none; }
.house-leader strong { display: block; font-family: var(--font-head); font-size: .95rem; line-height: 1.2; }
.house-leader__role { display: block; font-size: .83rem; color: var(--muted); }
.house-leader--pending .house-leader__avatar { border: 1px dashed var(--gold); background: transparent; }
.house-leader--pending strong { color: var(--muted); font-weight: 500; }

/* ---------- Board results ------------------------------------------------- */
.topper-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); gap: 20px; justify-content: center; }
.topper { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius-lg); padding: 26px 22px; text-align: center; }
.topper__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center 20%; margin: 0 auto 14px; display: block; }
.topper__photo--initial { display: grid; place-items: center; background: var(--maroon); color: #fff; font-family: var(--font-head); font-size: 2.2rem; font-weight: 600; }
.topper__title { display: block; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); font-family: var(--font-head); font-weight: 600; }
.topper h3 { font-size: 1.22rem; margin: 6px 0 10px; }
.topper__score { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--maroon); margin: 0; line-height: 1.1; }
.topper__score span { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); margin-top: 4px; }
.topper__stream { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }

.result-group { margin-top: 44px; }
.result-group__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.result-group__head h3 { font-size: 1.15rem; color: var(--maroon); margin: 0; }
.result-group__count { display: inline-block; min-width: 26px; padding: 2px 9px; border-radius: 999px; background: var(--gold-pale); color: var(--maroon); font-size: .85rem; font-weight: 600; }
.result-group__head p { margin: 0; font-size: .92rem; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.result-card { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.result-card__photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; }
.result-card__photo--initial { display: grid; place-items: center; background: var(--gold-pale); color: var(--maroon); font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; border: 1px dashed var(--gold); }
.result-card strong { display: block; font-family: var(--font-head); font-size: .95rem; line-height: 1.25; color: var(--ink); }
.result-card__pct { display: block; font-size: .87rem; color: var(--maroon); font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.result-card--pending { border-style: dashed; }
.result-card--pending strong, .result-card--pending .result-card__pct { color: var(--muted); font-weight: 500; }

/* ---------- Our process --------------------------------------------------- */
/* Named plan-* because .stage is already the home page's class-stage strip. */
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.plan-stage { display: grid; grid-template-columns: 250px 1fr; gap: 32px; padding: 30px 0; border-top: 1px solid var(--line); }
.plan-stage:last-child { border-bottom: 1px solid var(--line); }
.plan-stage__label h3 { font-size: 1.32rem; margin: 0 0 4px; color: var(--maroon); }
.plan-stage__label span { font-size: .9rem; color: var(--muted); }
.plan-stage__aim { font-size: 1.12rem; font-family: var(--font-head); font-weight: 600; color: var(--ink); margin: 0; }
.plan-stage__body .checklist { margin-top: 14px; }
@media (max-width: 760px) { .plan-stage { grid-template-columns: 1fr; gap: 12px; } }

.value-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.value-chip { padding: 12px 26px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1rem; background: rgba(255,255,255,.07); }

.focus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.focus-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.focus-item i { color: var(--gold); margin-top: 3px; }
.focus-item span { font-family: var(--font-head); font-weight: 600; font-size: .97rem; }
@media (max-width: 620px) { .focus-grid { grid-template-columns: 1fr; } }

/* Magazine pages shown whole, so they are not cropped square. */
.gallery--sheets { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.gallery--sheets a { aspect-ratio: 16 / 10; }
.gallery--sheets img { object-fit: contain; background: var(--paper-warm); }

/* ---------- About: messages, council, heritage ---------------------------- */
.msg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.msg-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; }
.msg-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.msg-card__photo { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; object-position: center 22%; flex: none; border: 2px solid var(--gold); }
.msg-card__head strong { display: block; font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); }
.msg-card__role { display: block; font-size: .87rem; color: var(--maroon); font-weight: 500; }
.msg-card__title { font-size: 1.18rem; color: var(--maroon); margin: 0 0 12px; }
.msg-card p { margin: 0 0 12px; font-size: .97rem; }
.msg-card__closing { color: var(--muted); border-left: 3px solid var(--gold); padding-left: 14px; margin-top: auto; }
@media (max-width: 800px) { .msg-grid { grid-template-columns: 1fr; } }

.council-heading { font-size: 1.05rem; color: var(--maroon); margin: 34px 0 16px; }
.council-heading:first-of-type { margin-top: 8px; }
.council-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.council-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.council-card__photo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: center 22%; flex: none; }
.council-card__photo--initial { display: grid; place-items: center; background: var(--gold-pale); color: var(--maroon); font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; border: 1px dashed var(--gold); }
.council-card strong { display: block; font-family: var(--font-head); font-size: .97rem; color: var(--ink); line-height: 1.25; }
.council-card__role { display: block; font-size: .84rem; color: var(--muted); margin-top: 2px; }
.council-card__phone { display: inline-block; font-size: .84rem; color: var(--maroon); margin-top: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .council-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .council-grid { grid-template-columns: 1fr; } }

.heritage-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-align: center; padding-bottom: 24px; }
.heritage-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 18%; display: block; }
.heritage-card__role { display: block; margin-top: 18px; font-size: .82rem; letter-spacing: .04em; color: var(--gold); font-family: var(--font-head); font-weight: 600; }
.heritage-card h3 { font-size: 1.1rem; margin: 6px 18px 8px; }
.heritage-card p { margin: 0 20px; font-size: .93rem; color: var(--muted); }

/* Who wrote the post, shown under the article. */
.author-card { display: flex; gap: 18px; align-items: flex-start; margin-top: 44px; padding: 22px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-lg); background: var(--paper-warm); }
.author-card__photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; }
.author-card__photo--initial { display: grid; place-items: center; background: var(--maroon); color: #fff; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; }
.author-card strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.author-card__role { display: block; font-size: .9rem; color: var(--maroon); font-weight: 500; margin-top: 2px; }
.author-card p { margin: 10px 0 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 560px) { .author-card { flex-direction: column; gap: 12px; } }

.form-download { background: var(--gold-pale); border: 1px solid var(--gold); border-radius: var(--radius); padding: 13px 16px; font-size: .95rem; margin-bottom: 4px; }
.form-download a { font-weight: 600; color: var(--maroon); }
.form-download i { margin-right: 6px; }
.adm-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: .95rem; font-weight: 500; }
.adm-consent input { margin-top: 3px; accent-color: var(--maroon); width: 18px; height: 18px; flex: none; }

/* The class grid keeps the stages of the printed form: K.G., Primary, Middle,
   Secondary, Senior Secondary. */
.choice-grid { display: grid; gap: 16px; }
.choice-grid__stage { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: center; }
.choice-grid__label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--muted); }
.choice-grid__row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-grid__input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-grid__chip { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); cursor: pointer; transition: background-color .18s, color .18s, border-color .18s; margin: 0; }
.choice-grid__chip:hover { border-color: var(--maroon); color: var(--maroon); }
.choice-grid__input:checked + .choice-grid__chip { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.choice-grid__input:focus-visible + .choice-grid__chip { outline: 2px solid var(--maroon); outline-offset: 2px; }
@media (max-width: 560px) {
  .choice-grid__stage { grid-template-columns: 1fr; gap: 6px; }
}

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox-open { overflow: hidden; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }

.tabs__list { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tabs__list [role=tab] { border: 0; background: transparent; padding: 12px 18px; font-family: var(--font-head); font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs__list [role=tab][aria-selected=true] { color: var(--maroon); border-bottom-color: var(--gold); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--maroon); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) td { background: var(--paper-warm); }
.table td:not(:first-child) { font-variant-numeric: tabular-nums; }

/* ---------- Home ---------------------------------------------------------- */
.home-hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; color: #fff; overflow: hidden; isolation: isolate; background: #0d0d0d; }
.home-hero__media { position: absolute; inset: 0; z-index: -2; }
.home-hero__media img, .home-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.home-hero__media video { position: absolute; inset: 0; }
/* Light neutral scrim: just enough to hold white text, deeper at the foot
   where the headline and buttons sit. */
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.22) 40%, rgba(0,0,0,.72) 100%); }
.home-hero__inner { padding-block: clamp(80px, 12vw, 160px) clamp(56px, 6vw, 90px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; }
.home-hero__sash { border-left: 5px solid var(--gold); padding-left: clamp(18px, 3vw, 32px); }
.home-hero__kicker { color: var(--gold-soft); font-family: var(--font-head); font-weight: 600; margin: 0 0 18px; font-size: .95rem; }
.home-hero__title { font-size: var(--fs-hero); color: #fff; margin-bottom: .5em; line-height: 1.02; letter-spacing: -0.02em; }
.home-hero__text { font-size: 1.2rem; max-width: 52ch; color: rgba(255,255,255,.9); }
.home-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.home-hero__aside { display: grid; gap: 10px; }
.home-hero__aside a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; transition: background-color .2s; }
.home-hero__aside a:hover { background: rgba(255,255,255,.18); }
.home-hero__aside strong { font-family: var(--font-head); display: block; }
.home-hero__aside small { color: var(--gold-soft); }
.home-hero__aside i { color: var(--gold-soft); }
@media (max-width: 900px) { .home-hero__inner { grid-template-columns: 1fr; } .home-hero { min-height: 0; } }

.pillars { background: var(--navy); color: #fff; }
.pillars__inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillars a { padding: 34px 28px; text-decoration: none; color: #fff; border-left: 1px solid rgba(255,255,255,.12); transition: background-color .25s; }
.pillars a:first-child { border-left: 0; }
.pillars a:hover { background: rgba(255,255,255,.05); }
.pillars h3 { color: var(--gold-soft); font-size: 1.1rem; margin-bottom: .4em; }
.pillars p { margin: 0; color: rgba(255,255,255,.78); font-size: .95rem; }
@media (max-width: 900px) { .pillars__inner { grid-template-columns: 1fr; } .pillars a { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); } }

.cal-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(12px, 3vw, 32px); overflow-x: auto; }
.cal-wrap .sp-ecw { min-width: 640px; }

.about-band__image { position: relative; }
.about-band__image img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about-band__badge { position: absolute; left: -18px; bottom: 32px; background: var(--gold); color: #2a1a00; padding: 18px 22px; border-radius: var(--radius); font-family: var(--font-head); box-shadow: var(--shadow); }
.about-band__badge strong { display: block; font-size: 2rem; line-height: 1; }
.about-band__badge span { font-size: .85rem; font-weight: 600; }
@media (max-width: 900px) { .about-band__badge { left: 16px; } }

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .highlights { grid-template-columns: 1fr; } }

.stage-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stage { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; text-decoration: none; isolation: isolate; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(58,10,10,0) 35%, rgba(58,10,10,.92) 100%); z-index: -1; }
.stage:hover img { transform: scale(1.06); }
.stage small { color: var(--gold-soft); font-weight: 600; font-size: .8rem; }
.stage h3 { color: #fff; font-size: 1.15rem; margin: 4px 0 0; }
@media (max-width: 1000px) { .stage-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .stage-strip { grid-template-columns: repeat(2, 1fr); } }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.values img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.values__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.values__list li { display: grid; grid-template-columns: 10px 1fr; gap: 16px; align-items: start; color: rgba(255,255,255,.9); }
.values__list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-top: 8px; }
.values__list strong { color: #fff; display: block; font-family: var(--font-head); }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

.cta-band { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,15,29,.92), rgba(0,15,29,.55)); z-index: -1; }
.cta-band__inner { padding-block: clamp(64px, 8vw, 120px); max-width: 640px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); font-size: 1.1rem; }

/* ---------- Blog ---------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta { display: flex; gap: 14px; font-size: .84rem; color: var(--muted); }
.post-card__cat { color: var(--maroon); font-weight: 600; }
.post-card__title { font-size: 1.2rem; margin: 0; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--maroon); }
.post-card__excerpt { color: var(--muted); font-size: .96rem; margin: 0; }
.post-card__more { margin-top: auto; color: var(--maroon); font-weight: 600; text-decoration: none; font-size: .92rem; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); padding: 0 10px; }
.pagination .current { background: var(--maroon); color: #fff; border-color: var(--maroon); }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } }
.article__hero img { border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 32px; }
.article__meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.article__meta strong { color: var(--maroon); }
.entry { font-size: 1.08rem; line-height: 1.75; }
.entry > * + * { margin-top: 1.2em; }
.entry h2, .entry h3 { margin-top: 1.8em; }
.entry img { border-radius: var(--radius); }
.entry blockquote { border-left: 4px solid var(--gold); margin: 1.5em 0; padding: 8px 24px; color: var(--ink); font-family: var(--font-head); font-size: 1.15rem; }
.entry table { width: 100%; border-collapse: collapse; }
.entry td, .entry th { border: 1px solid var(--line); padding: 10px 12px; }
.entry .wp-block-image figcaption { color: var(--muted); font-size: .88rem; text-align: center; }
.article__share { display: flex; gap: 10px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.article__share a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--paper-warm); color: var(--maroon); text-decoration: none; }
.article__share a:hover { background: var(--maroon); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.post-nav a:hover { border-color: var(--gold); }
.post-nav small { color: var(--muted); display: block; margin-bottom: 4px; }
.post-nav .next { text-align: right; }
.sidebar { display: grid; gap: 32px; align-content: start; }
.widget h3 { font-size: 1.05rem; padding-bottom: 10px; border-bottom: 2px solid var(--gold); margin-bottom: 16px; }
.widget__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.widget__list a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.widget__list img { width: 72px; height: 56px; object-fit: cover; border-radius: 4px; }
.widget__list span { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.widget__list small { display: block; color: var(--muted); font-weight: 400; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.widget--maroon { background: var(--maroon); color: #fff; padding: 26px; border-radius: var(--radius-lg); }
.widget--maroon h3 { color: #fff; border-bottom-color: var(--gold); }
.widget--maroon p { color: rgba(255,255,255,.85); font-size: .95rem; }

/* ---------- Newsletter & footer ------------------------------------------ */
.newsletter { background: var(--paper-warm); border-top: 1px solid var(--line); }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-block: 40px; }
.newsletter__title { font-size: 1.5rem; margin-bottom: .3em; }
.newsletter__copy p { color: var(--muted); margin: 0; }
.newsletter__form { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 10px; }
@media (max-width: 900px) { .newsletter__inner { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .newsletter__form { grid-template-columns: 1fr; } }

.footer { background: var(--maroon-ink); color: rgba(255,255,255,.82); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 64px 48px; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }
.brand--footer .brand__name, .brand--footer .brand__sub { color: #fff; }
.brand--footer .brand__sub { color: var(--gold-soft); }
.footer__about p { margin: 18px 0; font-size: .95rem; }
.social--footer a { background: rgba(255,255,255,.08); color: #fff; }
.social--footer a:hover { background: var(--gold); color: #2a1a00; }
.footer__heading { color: #fff; font-size: 1.05rem; margin-bottom: 18px; padding-bottom: 12px; position: relative; }
.footer__heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--gold); }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__links a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .95rem; }
.footer__links a:hover { color: var(--gold-soft); }
.footer__contact address { font-style: normal; display: grid; gap: 12px; }
.footer__contact p { display: grid; grid-template-columns: 20px 1fr; gap: 12px; margin: 0; font-size: .95rem; align-items: start; }
.footer__contact i { color: var(--gold); margin-top: 5px; }
.footer__contact a { color: inherit; text-decoration: none; }
.footer__contact a:hover { color: var(--gold-soft); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: #fff; }
.footer__bottom .sep { margin: 0 8px; opacity: .5; }

/* ---------- Generic page content ----------------------------------------- */
.page-content { max-width: 800px; }
.page-content .entry img { max-width: 100%; }

/* ---------- Plugin integration overrides ---------------------------------- */
/* Forminator */
.forminator-custom-form .forminator-button-submit, .forminator-ui .forminator-button-submit { background: var(--orange) !important; border-color: var(--orange) !important; font-family: var(--font-head) !important; font-weight: 700 !important; border-radius: var(--radius) !important; }
.forminator-custom-form .forminator-button-submit:hover { background: var(--orange-deep) !important; }
.forminator-ui .forminator-input, .forminator-ui .forminator-textarea, .forminator-ui .forminator-select .forminator-select__control, .forminator-ui .forminator-select2 { border-color: var(--line) !important; border-radius: var(--radius) !important; }
.forminator-ui .forminator-label { font-family: var(--font-head) !important; color: var(--ink) !important; }
/* School Portal public shortcodes */
/* Album pages: the plugin draws its own full-bleed banner and repeats the title;
   the theme hero already covers that, so hide it and undo the 100vw breakout. */
.sp-ga-banner { display: none !important; }
.sp-ga-outer { width: auto !important; margin-left: 0 !important; }
.sp-ga { max-width: none !important; padding: 0 0 8px !important; }
.sp-ga-section-label { color: var(--maroon) !important; margin-bottom: 18px !important; }
.sp-ga-section-label + .sp-ga-grid, .sp-ga-section-label + .sp-ga-videos { margin-bottom: 40px; }
.sp-ga-section-label { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.sp-ga-item img { border-radius: var(--radius); }
.sp-ga-date { font-family: var(--font-head); }
/* Album videos: two per row on desktop, one on narrow screens. */
.sp-ga-videos { grid-template-columns: repeat(2, 1fr) !important; gap: clamp(16px, 2vw, 28px) !important; }
.sp-ga-video-wrap { border-radius: var(--radius-lg) !important; }
@media (max-width: 760px) { .sp-ga-videos { grid-template-columns: 1fr !important; } }

.sp-tcdl .sp-tcdl-bar { background: var(--maroon) !important; color: #fff !important; border-radius: var(--radius) var(--radius) 0 0; font-family: var(--font-head); font-weight: 700; }
.sp-tcdl label { color: var(--maroon) !important; }
.sp-tcdl input[type=text], .sp-tcdl input[type=date] { border-bottom-color: var(--gold) !important; }
.sp-tcdl button { background: var(--orange) !important; border-radius: var(--radius) !important; font-family: var(--font-head); }
.sp-tcdl button:hover { background: var(--orange-deep) !important; }
.sp-sg-outer { width: auto !important; margin-left: 0 !important; }
.sp-sg { padding-left: 0 !important; padding-right: 0 !important; }
.sp-sg-title, .sp-sc-title { font-family: var(--font-head); }
.sp-sc-card { border-radius: var(--radius-lg) !important; }
.sp-ecw .sp-ecw-navgroup button, .sp-ecw .sp-ecw-today { font-family: var(--font-body); }
/* The Events Calendar */
.tribe-common .tribe-common-c-btn, .tribe-events .tribe-events-c-ical__link { background: var(--maroon) !important; color: #fff !important; }
.tribe-common .tribe-common-h1, .tribe-common .tribe-common-h2, .tribe-common .tribe-common-h3 { font-family: var(--font-head) !important; }
.tribe-common a { color: var(--maroon); }
.tribe-events-single { padding-block: 40px; }

/* ---------- Disclosure pages ---------------------------------------------- */
.disclosure { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .disclosure { grid-template-columns: 1fr; } }
.disclosure__nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.disclosure__nav a { display: block; padding: 10px 14px; border-left: 3px solid var(--line); color: var(--ink); text-decoration: none; font-size: .95rem; }
.disclosure__nav a:hover { border-left-color: var(--gold); color: var(--maroon); }
.disclosure__nav a.is-active { border-left-color: var(--maroon); color: var(--maroon); font-weight: 600; background: var(--paper-warm); }
.disclosure__body > * + * { margin-top: 28px; }
.disclosure__body h2 { font-size: 1.6rem; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.disclosure__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.disclosure__body h3 { font-size: 1.15rem; color: var(--maroon); margin-top: 32px; }
.disclosure__body h3 + .table-wrap { margin-top: 12px; }
.note { background: var(--gold-pale); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; }
.note h3 { margin: 0 0 10px; color: var(--ink); font-size: 1.05rem; }
.note ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: .96rem; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.figures div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.figures strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--maroon); line-height: 1.1; }
.figures span { font-size: .85rem; color: var(--muted); }
.figures small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.doc { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.doc:hover { border-color: var(--gold); transform: translateY(-2px); }
.docs--rich { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.docs--rich .doc { align-items: start; }
.docs--rich .doc strong { margin-bottom: 4px; }
.doc__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gold-pale); color: var(--maroon); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.doc strong { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.3; }
.doc span { color: var(--muted); font-size: .85rem; }
.doc em { display: block; color: var(--maroon); font-style: normal; font-weight: 600; font-size: .85rem; margin-top: 4px; }
.disclosure__foot { color: var(--muted); font-size: .92rem; }

/* ---------- Utilities ----------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }
.mt-6 { margin-top: 48px; }
.text-center { text-align: center; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lead { font-size: 1.15rem; color: var(--text); }
.muted { color: var(--muted); }
.rounded { border-radius: var(--radius-lg); }
.cover { width: 100%; height: 100%; object-fit: cover; }

.quote__avatar--img { object-fit: cover; }
.circular { display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.circular__date { font-family: var(--font-head); font-weight: 700; color: var(--maroon); line-height: 1.2; }
.circular__date small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.circular__cat { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--maroon); background: var(--gold-pale); padding: 2px 10px; border-radius: 12px; margin-bottom: 6px; }
.circular h3 { font-size: 1.1rem; margin: 0 0 6px; }
.circular p { color: var(--muted); margin: 0; font-size: .96rem; }
@media (max-width: 640px) { .circular { grid-template-columns: 1fr; } }

.staff-card__initial { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; width: 100%; border-radius: var(--radius-lg); background: var(--gold-pale); color: var(--maroon); font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; margin-bottom: 14px; }
.grid--4 .staff-card__initial, .grid--4 .staff-card__photo { aspect-ratio: 4 / 3; font-size: 2rem; }

/* ---------- Staff cards (handbook layout) ---------------------------------- */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); }
@media (max-width: 1100px) { .staff-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .staff-grid { grid-template-columns: 1fr; } }
.staff-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px 24px; display: flex; flex-direction: column; }
.staff-card__photo { aspect-ratio: 3 / 4; border-radius: var(--radius); object-fit: cover; width: 100%; margin-bottom: 16px; background: var(--paper-warm-2); }
.staff-card__roles { font-family: var(--font-head); font-weight: 600; font-size: .82rem; line-height: 1.45; color: var(--maroon); margin: 0 0 6px; }
.staff-card__name { font-size: 1.15rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.staff-card__role { color: var(--muted); font-size: .92rem; margin: 0; }
.staff-card__bio { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }
.staff-dept { margin-top: 52px; }
.staff-dept:first-of-type { margin-top: 0; }
.staff-dept__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; padding-bottom: 10px; border-bottom: 2px solid var(--gold-pale); }
.staff-dept__head h3 { margin: 0; font-size: 1.35rem; color: var(--maroon); }
.staff-dept__count { font-size: .85rem; color: var(--muted); }
.roles-table td:first-child { width: 46%; font-weight: 500; }

/* Hero background film: cover the banner whatever its ratio, never interactive. */
.home-hero__video { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.home-hero__video.is-ready { opacity: 1; }
/* Sized in JavaScript from the banner's own box, always an exact 16:9 so the
   picture is never stretched. No CSS scaling, which would soften it. */
.home-hero__video iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 0; pointer-events: none; display: block; }
@media (max-width: 760px) { .home-hero__video { display: none; } }

/* CBSE staff disclosure table: indented sub-rows for the PGT/TGT/PRT split. */
.cbse-staff td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.cbse-staff tr.is-sub td:first-child { padding-left: 38px; position: relative; }
.cbse-staff tr.is-sub td:first-child::before { content: ""; position: absolute; left: 22px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); transform: translateY(-50%); }
.cbse-staff tr.is-sub td { background: var(--paper-warm) !important; font-size: .95rem; }
.cbse-staff td:last-child { font-size: .88rem; white-space: nowrap; }

/* A section head whose title is allowed the full column width, so a long
   heading stays on one line; the supporting line keeps a readable measure. */
.section-head--wide { max-width: none; }
.section-head--wide .section-head__title { text-wrap: balance; }
@media (min-width: 1100px) { .section-head--wide .section-head__title { white-space: nowrap; } }
.section-head--wide .section-head__text { max-width: 62ch; }

/* ---------- Department jump links ------------------------------------------ */
.subject-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.subject-nav__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.subject-nav__chip span { font-weight: 500; font-size: .78rem; color: var(--muted); }
.subject-nav__chip:hover { border-color: var(--gold); background: var(--gold-pale); color: var(--maroon); }
.subject-nav__chip:hover span { color: var(--maroon); }
.subject-nav__chip.is-active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.subject-nav__chip.is-active span { color: var(--gold-soft); }

/* Clear the sticky masthead when a jump link lands on a department. */
.staff-dept { scroll-margin-top: 104px; }
.infra-block { scroll-margin-top: 104px; margin-bottom: 34px; }
.infra-block > h3 { margin-bottom: 14px; }
/* Two-column label and value tables read better with the label column fixed. */
.infra-block .table tbody td:first-child { width: 58%; }
.infra-block .table thead + tbody td:first-child { width: auto; }

@media (max-width: 760px) {
  /* One swipeable row on phones, so the list never pushes the staff far down. */
  .subject-nav {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    padding-bottom: 6px; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .subject-nav::-webkit-scrollbar { display: none; }
  .subject-nav__chip { scroll-snap-align: start; font-size: .84rem; padding: 8px 14px; }
  .staff-dept { scroll-margin-top: 88px; }
  .infra-block { scroll-margin-top: 88px; }
}
