/* ==========================================================================
   Venus Star High School Athletics: design system
   ========================================================================== */

/* 1. Tokens ================================================================ */
:root {
  --navy: #00142b;
  --navy-deep: #00152f;
  --blue: #233b8f;
  --blue-hover: #16286a;
  --ink: #1b1d22;
  --text: #55565c;
  --grey: #f2f0f0;
  --sky-bg: #e0ebf7;
  --gold: #c9a24b;
  --gold-hover: #b78f38;
  --gold-pale: #ecdfc0;
  --sky: #5ab4f2;
  --rule: #d5d7dc;
  --white: #fff;

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans:
    "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;

  --container: none; /* full width: sections span the viewport, the gutter keeps content off the edge */
  --gutter: clamp(
    1.25rem,
    2.5vw,
    3rem
  ); /* about 46px each side at 1860px wide */
  --section: clamp(3rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
}

/* 2. Base ================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 4.5rem; /* keeps anchor targets clear of the sticky nav */
}

/* Our typography and resets apply only inside our own areas (main content, athletics bar, footer),
   so they cannot change the school's header, menu or cookie panel. :where() keeps specificity at zero. */
:where(main, .ath-nav, .site-footer) {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
}
.ath-nav,
.site-footer {
  background: none;
}

:where(main, .ath-nav, .site-footer) img {
  display: block;
  max-width: 100%;
  height: auto;
}
:where(main) img {
  background: #dfe6f0;
}
:where(main, .ath-nav, .site-footer)
  :is(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset) {
  margin: 0;
}
:where(main, .ath-nav, .site-footer) :is(ul, ol) {
  padding: 0;
  list-style: none;
}
:where(main, .site-footer) a {
  color: var(--blue);
}
:where(main, .ath-nav, .site-footer) :is(button, input, select, textarea) {
  font: inherit;
  color: inherit;
}
:where(main, .ath-nav, .site-footer) button {
  cursor: pointer;
}

:where(main, .ath-nav, .site-footer) :focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.ath-nav :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--sky);
}

.container {
  width: 100%;
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius);
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0.75rem;
}

/* Type */
.display,
.h1,
.h2,
.h3,
.h4,
.serif {
  font-family: var(--font-serif);
  font-weight: 200;
}
.display {
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.h1 {
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--blue);
}
.h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.65rem);
  line-height: 1.25;
  color: var(--blue);
}
.h4 {
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--navy);
}
.lead {
  max-width: 60rem;
  line-height: 1.65;
}
/* Outside the heroes only: hero text sizes come from the school's own stylesheet */
.lead:not(
  :is(
      .hero-image,
      .hero-split,
      .hero-centre,
      .hero-light,
      .band-hero,
      .ath-hero
    )
    .lead
) {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
}
.prose p + p {
  margin-top: 1.2em;
}
.prose {
  font-size: 1.0625rem;
  line-height: 1.8;
}
.muted {
  color: var(--text);
}
.on-dark {
  color: rgba(255, 255, 255, 0.88);
}
.on-dark .field label {
  color: var(--white);
}
.on-dark a:not(.btn):not(.panel):not(.card) {
  color: var(--white);
}
.on-dark .h2,
.on-dark .h3,
.on-dark .h4,
.on-dark h1,
.on-dark h2,
.on-dark h3 {
  color: var(--white);
}

/* 3. Athletics navigation ================================================== */
/* The school's own header (logo, Academics, News, Admissions, Search, Menu) is styled by styles.css.
   This bar holds the athletics links. It is hidden while the hero is on screen and fixed to the top of
   the window once the hero has scrolled away (js/main.js toggles .is-stuck). It appears instantly, no animation. */
.ath-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0, 21, 47, 0.22);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
}
.ath-nav.is-stuck {
  display: block;
}
.ath-nav :focus-visible {
  outline-color: var(--sky);
}
.ath-nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.3rem;
}
.ath-nav__panel {
  flex: 1;
}
.ath-nav__list {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ath-nav__item {
  position: relative;
}

.ath-nav__trigger,
.ath-nav__link,
.ath-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 0;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
.ath-nav__trigger.is-current .ath-nav__label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35rem;
}
.ath-nav__link:hover,
.ath-nav__trigger:hover .ath-nav__label {
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}
.ath-nav__trigger .icon--chev {
  color: var(--sky);
  transition: transform 0.2s;
}
.ath-nav__item.is-open .icon--chev {
  transform: rotate(180deg);
}
.ath-nav__toggle {
  display: none;
}

.ath-nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 18rem;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: 0 10px 28px rgba(0, 21, 47, 0.28);
}
.ath-nav__item.is-open > .ath-nav__sub {
  display: block;
}
.ath-nav__sub a {
  display: block;
  padding: 0.7rem 1.1rem;
  color: var(--navy);
  font-size: 0.95rem;
  text-decoration: none;
}
.ath-nav__sub a:hover {
  background: #eef1f6;
  text-decoration: underline;
}
.ath-nav__sub a[aria-current="page"] {
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--gold);
}
.ath-nav__sub :focus-visible {
  outline-color: var(--blue);
  outline-offset: -3px;
}

@media (hover: hover) and (min-width: 52.0625rem) {
  .ath-nav__item:hover > .ath-nav__sub {
    display: block;
  }
  .ath-nav__item:hover .icon--chev {
    transform: rotate(180deg);
  }
}

@media (max-width: 52rem) {
  .ath-nav {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
  } /* a long open menu scrolls inside the bar */
  .ath-nav__inner {
    flex-wrap: wrap;
    row-gap: 0;
  }
  .ath-nav__toggle {
    display: inline-flex;
  }
  .ath-nav__panel {
    flex: 1 0 100%;
    display: none;
    padding-bottom: 0.75rem;
  }
  .ath-nav__panel.is-open {
    display: block;
  }
  .ath-nav__list {
    flex-direction: column;
    gap: 0;
  }
  .ath-nav__item {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
  .ath-nav__trigger,
  .ath-nav__link {
    width: 100%;
    justify-content: space-between;
    padding-block: 1rem;
  }
  .ath-nav__sub {
    position: static;
    min-width: 0;
    padding: 0 0 0.5rem;
    background: transparent;
    border-top: 0;
    box-shadow: none;
  }
  .ath-nav__sub a {
    padding: 0.65rem 0 0.65rem 1rem;
    color: var(--white);
  }
  .ath-nav__sub a:hover {
    background: transparent;
  }
  .ath-nav__sub a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--gold);
  }
  .ath-nav__sub :focus-visible {
    outline-color: var(--sky);
  }
}

/* The school's own sub-nav bar is replaced by the athletics bar on these pages */
.subnav {
  display: none !important;
}

/* 4. Footer ================================================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  font-size: 0.95rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-underline-offset: 0.25rem;
  overflow-wrap: anywhere;
}
.site-footer a:hover {
  color: var(--white);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.footer__logo {
  display: inline-block;
}
.footer__logo img {
  width: auto;
  max-width: 100%;
  max-height: 6rem;
  border-radius: var(--radius);
  background: var(--white);
}
.footer__brand p {
  margin-top: 1rem;
  max-width: 26ch;
  line-height: 1.6;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem 1.5rem;
}
.footer__heading {
  margin: 0 0 0.9rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
}
.footer__col li + li {
  margin-top: 0.5rem;
}
.footer__connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.footer__connect .footer__heading {
  margin: 0;
}
.footer__social {
  display: flex;
  gap: 0.6rem;
}
.footer__social-link {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.site-footer .footer__social-link {
  color: var(--white);
}
.site-footer .footer__social-link:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.footer__office {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 0 0 0 auto;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
}
.footer__legal {
  display: flex;
  gap: 1.25rem;
}
@media (max-width: 48rem) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer__office {
    margin-left: 0;
  }
}

/* 5. Buttons and links ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}
/* Outside the heroes only */
.btn:not(
  :is(
      .hero-image,
      .hero-split,
      .hero-centre,
      .hero-light,
      .band-hero,
      .ath-hero
    )
    .btn
) {
  font-size: 1.02rem;
}
.btn .icon {
  transition: transform 0.2s;
}
.btn:hover .icon {
  transform: translateX(4px);
}
.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--gold:hover {
  background: var(--gold-hover);
}
.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover {
  background: var(--blue-hover);
}
.btn--light {
  background: var(--white);
  color: var(--ink);
}
.btn--light:hover {
  background: #f1ede3;
}
.btn--outline {
  border-color: currentColor;
  color: var(--blue);
}
.btn--outline:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}
.link-arrow span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px
    no-repeat;
  transition: background-size 0.25s;
}
.link-arrow:hover span,
.link-arrow:focus-visible span {
  background-size: 100% 1px;
}
.link-arrow .icon {
  transition: transform 0.2s;
}
.link-arrow:hover .icon {
  transform: translateX(4px);
}
.on-dark .link-arrow {
  color: var(--white);
}

/* 6. Layout ================================================================ */
.section {
  padding-block: var(--section);
}
.section--tight {
  padding-block: clamp(2rem, 4.5vw, 3.5rem);
}
.section--grey {
  background-color: var(--grey);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' fill='none' stroke='white' stroke-width='14' stroke-opacity='.7' stroke-linejoin='round'><circle cx='400' cy='400' r='385'/><circle cx='400' cy='400' r='335'/><path d='M400 150l62 160h168l-136 100 52 170-146-104-146 104 52-170-136-100h168z'/></svg>");
  background-repeat: no-repeat;
  background-position: right -6rem center;
  background-size: min(90vw, 60rem);
}
.section--blue {
  background: var(--sky-bg);
}
.section--navy {
  background: var(--navy);
}
.section--white {
  background: var(--white);
}

.row-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.25rem clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.row-split + .row-split {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
@media (max-width: 56rem) {
  .row-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.section-head .lead {
  margin-top: 1rem;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: var(--gap);
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 68rem) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 56rem) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 38rem) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Breadcrumb */
.crumbs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.6rem;
  padding-block: 0.6rem;
}
.crumbs a {
  color: inherit;
  text-underline-offset: 0.25rem;
}
.crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.6rem;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg) scale(0.9);
}
.crumbs [aria-current] {
  opacity: 0.85;
}
.crumbs--light {
  border-bottom-color: var(--rule);
  color: var(--ink);
}

/* 7. Hero variants ========================================================= */
/* a) Navy band: breadcrumb, large title left, short description right */
.band-hero {
  background: var(--navy);
  color: var(--white);
}
.band-hero__body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(2.5rem, 7vw, 5.5rem);
}
.band-hero__body p {
  max-width: 36ch;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 56rem) {
  .band-hero__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .band-hero__body p {
    margin-top: 0;
    max-width: 52ch;
  }
}

/* b) Image hero: full-bleed photo under a navy gradient */
.hero-image {
  position: relative;
  isolation: isolate;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}
.hero-image > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--navy-deep);
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(0, 21, 47, 0.92) 0%,
    rgba(0, 21, 47, 0.72) 48%,
    rgba(0, 21, 47, 0.35) 100%
  );
}
.hero-image__inner {
  padding-block: clamp(3rem, 9vw, 7.5rem);
}
.hero-image__inner > * {
  max-width: 46rem;
}
.hero-image h1 {
  margin-top: clamp(1.5rem, 5vw, 3rem);
}
.hero-image .lead {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero-image .btn-row {
  margin-top: 2rem;
}
.hero-image--overlap {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

/* c) Split hero: light text panel beside a large image */
.hero-split {
  background: var(--grey);
}
.hero-split__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: stretch;
}
.hero-split__text {
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4.5rem)
    clamp(2.5rem, 7vw, 5.5rem) 0;
}
.hero-split__text h1 {
  margin-block: clamp(1.25rem, 3vw, 2rem) 1.25rem;
  color: var(--navy);
}
.hero-split__media {
  position: relative;
  min-height: 22rem;
}
.hero-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-split__media::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: clamp(5rem, 14vw, 10rem);
  height: clamp(5rem, 14vw, 10rem);
  background: var(--gold);
}
@media (max-width: 56rem) {
  .hero-split__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-split__text {
    padding-right: 0;
  }
  .hero-split__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin-inline: calc(var(--gutter) * -1);
  }
}

/* d) Centred ceremonial hero */
.hero-centre {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero-centre .crumbs {
  position: relative;
  text-align: left;
}
.hero-centre__body {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(5rem, 11vw, 9rem);
}
.hero-centre__body .lead {
  max-width: 40rem;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-centre__stars .icon:nth-child(2) {
  width: 2rem;
  height: 2rem;
  margin-top: -0.3rem;
}


/* Hero content is white by default. The two light-background heroes (.hero-split, .hero-light)
   keep dark text, because white text would disappear on their pale backgrounds. */
:is(.band-hero, .hero-image, .hero-centre, .ath-hero__slide)
  :is(h1, h2, h3, p, li, cite, .lead) {
  color: var(--white);
}

/* The school's header sits on top of the page. Each hero starts at the very top of the page and keeps its
   own content clear of the header, so the hero background runs underneath the logo and links.
   js/main.js sets --ath-header-h to the header's height (0 if the header is part of the normal page flow). */
.band-hero,
.hero-image,
.hero-split,
.hero-centre,
.hero-light {
  padding-top: var(--ath-header-h, 0px);
}

/* 8. Components ============================================================ */
/* Related links */
.related__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
.related__title {
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--blue);
}
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 0.25rem clamp(1.5rem, 4vw, 4rem);
}
.related__inner--two .related-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.related-link {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 0.25rem;
  border-bottom: 1px solid rgba(35, 59, 143, 0.2);
  color: var(--blue);
  text-decoration: none;
  transition:
    background-color 0.2s,
    padding 0.2s;
}
.related-link__num {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text);
}
.related-link__title {
  display: block;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.3;
}
.related-link__desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}
.related-link .icon {
  width: 1.6rem;
  height: 1.6rem;
  transition: transform 0.2s;
}
a.related-link:hover {
  padding-left: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
}
a.related-link:hover .icon {
  transform: translateX(4px);
}
a.related-link:hover .related-link__title {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}
.related-link__here {
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.is-current .related-link {
  color: var(--navy);
}
@media (max-width: 30rem) {
  .related-link {
    grid-template-columns: 1.75rem minmax(0, 1fr) auto;
    gap: 0.6rem;
  }
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.card__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 2;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
a.card:hover .card__media img {
  transform: scale(1.05);
}
.card__title {
  margin: 1.25rem 0 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--blue);
}
.card__title span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px
    no-repeat;
  transition: background-size 0.25s;
}
a.card:hover .card__title span,
a.card:focus-visible .card__title span {
  background-size: 100% 1px;
}
.card__text {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.6;
}
.card__meta {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--text);
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
}
.panel--grey {
  background: var(--grey);
  border-color: transparent;
}
.panel--navy {
  background: var(--navy);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.88);
}
.panel--navy h2,
.panel--navy h3 {
  color: var(--white);
}
.panel--gold {
  background: var(--gold);
  border-color: transparent;
  color: var(--navy);
}
.panel h3 {
  margin-bottom: 0.6rem;
}
a.panel {
  display: block;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
a.panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 33, 71, 0.12);
  border-color: var(--blue);
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--sky-bg);
  color: var(--blue);
}
.icon-badge .icon {
  width: 1.6rem;
  height: 1.6rem;
}
.panel--navy .icon-badge {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold);
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.stat {
  padding-top: 1rem;
  border-top: 2px solid var(--gold);
}
.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 1.6rem + 4vw, 4.5rem);
  line-height: 1;
  color: var(--blue);
}
.stat__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.98rem;
  line-height: 1.45;
}
.on-dark .stat__num,
.panel--navy .stat__num {
  color: var(--gold);
}
.stat-strip {
  position: relative;
  z-index: 2;
  margin-top: calc(clamp(2.5rem, 6vw, 4.5rem) * -1);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 33, 71, 0.16);
}

/* Numbered steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.step {
  counter-increment: step;
  position: relative;
  padding-top: 3.5rem;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold);
}
.step::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 4rem;
  right: 0;
  height: 1px;
  background: var(--rule);
}
.step:last-child::after {
  display: none;
}
.step h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--blue);
}
.on-dark .step h3 {
  color: var(--white);
}
.on-dark .step::after {
  background: rgba(255, 255, 255, 0.25);
}
@media (max-width: 56rem) {
  .step::after {
    display: none;
  }
}

/* Tabs */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}
.tab {
  position: relative;
  padding: 0.85rem 1.25rem;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
}
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: transparent;
  transition: background-color 0.2s;
}
.tab:hover {
  color: var(--blue);
}
.tab[aria-selected="true"] {
  color: var(--navy);
}
.tab[aria-selected="true"]::after {
  background: var(--gold);
}
.tabs__panel > * + * {
  margin-top: 1rem;
}
.check-list li {
  position: relative;
  padding-left: 1.9rem;
}
.check-list li + li {
  margin-top: 0.6rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.45em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--gold-hover);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Accordion */
.accordion details {
  border-bottom: 1px solid var(--rule);
}
.accordion details:first-child {
  border-top: 1px solid var(--rule);
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary::after {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.35rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.accordion details[open] summary::after {
  transform: rotate(-135deg);
}
.accordion summary:hover {
  color: var(--blue-hover);
}
.accordion details > div {
  padding: 0 0.25rem 1.4rem;
  max-width: 52rem;
}

/* Pull quote */
.quote {
  position: relative;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
}
.quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
  color: var(--navy);
}
.quote cite {
  display: block;
  margin-top: 1.1rem;
  font-size: 0.95rem;
  font-style: normal;
  color: var(--text);
}
.on-dark .quote p {
  color: var(--white);
}
.on-dark .quote cite {
  color: rgba(255, 255, 255, 0.8);
}

/* Tags and chips */
.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  background: var(--sky-bg);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.5;
}
.tag--gold {
  background: var(--gold-pale);
}
.tag--blue {
  background: var(--sky);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.chip:hover {
  border-color: var(--blue);
}
.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* Forms */
.form {
  display: grid;
  gap: 1.1rem;
}
.form--cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form .full {
  grid-column: 1 / -1;
}
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--white);
  border: 1.5px solid #9aa3b2;
  border-radius: var(--radius);
  color: var(--ink);
}
.field textarea {
  min-height: 8rem;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(35, 59, 143, 0.25);
  outline-offset: 0;
}
@media (max-width: 38rem) {
  .form--cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Schedule rows */
.schedule {
  border-top: 1px solid var(--rule);
}
.schedule__row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem 0.25rem;
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.2s;
}
.schedule__row:hover {
  background: var(--grey);
}
.schedule__when {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--blue);
}
.schedule__when small {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text);
}
.schedule__title {
  font-weight: 700;
  color: var(--ink);
}
.schedule__desc {
  font-size: 0.95rem;
  line-height: 1.5;
}
@media (max-width: 40rem) {
  .schedule__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Photo mosaic */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.mosaic figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.mosaic figure:hover img {
  transform: scale(1.05);
}
.mosaic .m-a {
  grid-column: span 7;
  aspect-ratio: 4 / 3;
}
.mosaic .m-b {
  grid-column: span 5;
  aspect-ratio: 4 / 4.2;
}
.mosaic .m-c {
  grid-column: span 4;
  aspect-ratio: 1;
}
.mosaic .m-d {
  grid-column: span 4;
  aspect-ratio: 1;
}
.mosaic .m-e {
  grid-column: span 4;
  aspect-ratio: 1;
}
@media (max-width: 40rem) {
  .mosaic > figure {
    grid-column: 1 / -1 !important;
    aspect-ratio: 4 / 3 !important;
  }
}

/* On-this-page side navigation */
.side-layout {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.side-nav {
  position: sticky;
  top: 5rem;
}
.side-nav h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--navy);
}
.side-nav a {
  display: block;
  padding: 0.55rem 0 0.55rem 0.9rem;
  border-left: 2px solid var(--rule);
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.side-nav a:hover {
  border-left-color: var(--gold);
  color: var(--blue);
}
@media (max-width: 56rem) {
  .side-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .side-nav {
    position: static;
  }
  .side-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .side-nav a {
    padding: 0.45rem 0.9rem;
    border: 1.5px solid var(--rule);
    border-radius: 4px;
  }
}

/* 9. Page specific ========================================================= */
/* Home carousel */
.ath-hero {
  /* the top padding includes the school's header height, so the carousel starts below the header */
  padding-top: calc(var(--ath-header-h, 0px) + clamp(1rem, 2.6vw, 1.75rem));
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}
.ath-hero__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.ath-hero__track {
  display: flex;
  transition: transform 0.5s ease;
}
.ath-hero__slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.94fr) minmax(0, 1fr);
  background: #211d1c;
  color: var(--white);
}
.ath-hero__media {
  min-height: 0;
  overflow: hidden;
}
.ath-hero__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1134 / 573;
  object-fit: cover;
}
.ath-hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.6rem);
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 2.5rem);
}
.ath-hero__text {
  line-height: 1.55;
}
.ath-hero__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
}
.ath-hero__arrows {
  display: flex;
  gap: 0.5rem;
  margin-left: clamp(0rem, 4vw, 3rem);
}
.arrow-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3.2rem;
  padding: 0;
  background: var(--gold);
  border: 0;
  border-radius: var(--radius);
  color: var(--navy);
  transition: background-color 0.15s;
}
.arrow-btn:hover:not(:disabled) {
  background: var(--gold-hover);
}
.arrow-btn:disabled {
  background: var(--gold-pale);
  color: #8795ab;
  cursor: default;
}
.arrow-btn .icon {
  width: 1.3rem;
  height: 1.3rem;
}
.ath-hero__dots {
  display: flex;
  gap: 0.8rem;
  margin-right: clamp(0.5rem, 3vw, 1.5rem);
}
.dot {
  position: relative;
  width: 0.9rem;
  height: 0.9rem;
  padding: 0;
  background: #ccc;
  border: 0;
  border-radius: 50%;
}
.dot::after {
  content: "";
  position: absolute;
  inset: -0.5rem;
}
.dot[aria-current="true"] {
  background: #333;
}
@media (max-width: 47.5rem) {
  .ath-hero__slide {
    grid-template-columns: minmax(0, 1fr);
  }
  .ath-hero__media img {
    aspect-ratio: 16 / 10;
  }
  .ath-hero__arrows {
    margin-left: 0;
  }
}

/* Key information */
.key-info__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  margin: 1rem 0 clamp(2rem, 5vw, 3.25rem);
  font-size: 1.1rem;
}
.key-info__links li + li::before {
  content: "|";
  margin-right: 1rem;
  color: var(--text);
}
@media (max-width: 35rem) {
  .key-info__links li + li::before {
    display: none;
  }
  .key-info__links {
    gap: 0.5rem 1.25rem;
  }
}
.contact-card {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
}
.contact-card dt {
  font-weight: 700;
  color: var(--navy);
}
.contact-card dd {
  overflow-wrap: anywhere;
}

/* Section links grid (Pages in this section) */
.section-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.75rem) clamp(1.5rem, 4vw, 4rem);
}
.section-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
}
.section-links a .icon {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--blue);
  transition: transform 0.2s;
}
.section-links a:hover span {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}
.section-links a:hover .icon {
  transform: translateX(4px);
}
@media (max-width: 56rem) {
  .section-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 34rem) {
  .section-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Glance */
.glance {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.glance__list {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}
.glance__list li {
  display: grid;
  grid-template-columns: minmax(4.5rem, 6.5rem) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.glance__num {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1;
  color: var(--gold);
}
.glance__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
@media (max-width: 56rem) {
  .glance {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Teams directory */
.directory-tools {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 33, 71, 0.1);
  margin-top: calc(clamp(1.5rem, 4vw, 3rem) * -1);
  position: relative;
  z-index: 2;
}
.directory-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
}
.directory-search .field {
  flex: 1 1 18rem;
}
.directory-count {
  font-size: 0.95rem;
  padding-bottom: 0.85rem;
}
.az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.az-nav a,
.az-nav span {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.az-nav a {
  background: var(--sky-bg);
  color: var(--navy);
  transition:
    background-color 0.15s,
    color 0.15s;
}
.az-nav a:hover {
  background: var(--navy);
  color: var(--white);
}
.az-nav span {
  color: #a3a8b3;
}
.letter-group {
  display: grid;
  grid-template-columns: minmax(3.5rem, 7rem) minmax(0, 1fr);
  gap: 1rem clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}
.letter-group__letter {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  line-height: 0.9;
  color: var(--blue);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: var(--gap);
}
.team-card {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.team-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 33, 71, 0.12);
}
.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}
.team-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--blue);
}
.team-card p {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.team-card .tag {
  margin-top: 0.5rem;
}
.featured-team {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
}
/* The photo has its own fixed height, so a large photo can no longer make the whole box tall */
.featured-team img {
  display: block;
  width: 100%;
  height: clamp(12rem, 17vw, 16rem);
  object-fit: cover;
}
.featured-team__body {
  padding: clamp(1.1rem, 2.2vw, 1.75rem) clamp(1.25rem, 3vw, 2.5rem);
  align-self: center;
}
.featured-team h3 {
  margin-block: 0.5rem 0.6rem;
  color: var(--white);
}
.featured-team__body p + p,
.featured-team__body .mt-1 {
  margin-top: 0.6rem;
}
@media (max-width: 52rem) {
  .featured-team {
    grid-template-columns: minmax(0, 1fr);
  }
  .featured-team img {
    height: clamp(9rem, 38vw, 13rem);
  }
  .letter-group {
    grid-template-columns: minmax(0, 1fr);
  }
  .letter-group__letter {
    font-size: 3rem;
  }
}
@media (max-width: 26rem) {
  .team-card {
    grid-template-columns: 5rem minmax(0, 1fr);
  }
}
.empty-state {
  padding: 2rem;
  text-align: center;
  background: var(--grey);
  border-radius: var(--radius-lg);
}

/* Awards */
.award-feature {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  margin-top: calc(clamp(3rem, 8vw, 6rem) * -1);
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 21, 47, 0.25);
}

@media (max-width: 52rem) {
  .award-feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .award-feature img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}
.award-card {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 8px 22px rgba(0, 33, 71, 0.08);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.award-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 33, 71, 0.14);
}

.award-card h3 {
  margin-bottom: 0.5rem;
}

/* Partners */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.logo-tile {
  display: grid;
  place-items: center;
  gap: 0.6rem;
  min-height: 11rem;
  padding: 1.5rem 1rem;
  background: var(--white);
  text-align: center;
  color: var(--navy);
  text-decoration: none;
  transition: background-color 0.2s;
}
.logo-tile:hover {
  background: var(--sky-bg);
}
.logo-tile__mark {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}
.logo-tile:nth-child(3n) .logo-tile__mark {
  background: var(--blue);
}
.logo-tile:nth-child(4n) .logo-tile__mark {
  background: var(--gold);
  color: var(--navy);
}
.logo-tile strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.2;
}
.logo-tile small {
  font-size: 0.82rem;
  color: var(--text);
}
@media (max-width: 62rem) {
  .logo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 30rem) {
  .logo-tile {
    min-height: 9.5rem;
    padding-inline: 0.5rem;
  }
}

/* Association */
.org-chart {
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.org-chart__row {
  display: grid;
  gap: 1rem;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.org-node {
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-align: center;
}
.org-node strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
}
.org-node span {
  font-size: 0.9rem;
}
.org-node--top {
  width: min(100%, 22rem);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}
.org-node--top strong {
  color: var(--white);
}
.org-chart__line {
  width: 2px;
  height: 1.5rem;
  background: var(--rule);
}
.emblem {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 22rem;
  margin-inline: auto;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--gold);
  position: relative;
}
.emblem::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}
.emblem .icon {
  width: 42%;
  height: 42%;
}
.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
}
.member-list li {
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--navy);
}
.member-list li small {
  display: block;
  font-weight: 400;
  color: var(--text);
}

/* Performance */
.pillar {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  transition:
    background-color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.pillar:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.pillar__num {
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
}
.pillar h3 {
  margin-bottom: 0.6rem;
  color: var(--white);
}
.pillar .icon-badge {
  background: rgba(201, 162, 75, 0.18);
  color: var(--gold);
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.5rem;
}
.week-day {
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
}
.week-day strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
}
.week-day span {
  font-size: 0.9rem;
  line-height: 1.4;
  display: block;
  margin-top: 0.25rem;
}

.week-day--match {
  border-top-color: var(--blue);
}

/* Beyond the classroom */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
}
.story + .story {
  margin-top: clamp(2.5rem, 7vw, 5.5rem);
}
.story--flip .story__media {
  order: 2;
}
.story__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
}
.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.story:hover .story__media img {
  transform: scale(1.04);
}
.story__body .h2 {
  margin-block: 0.6rem 1rem;
}
@media (max-width: 52rem) {
  .story {
    grid-template-columns: minmax(0, 1fr);
  }
  .story--flip .story__media {
    order: 0;
  }
}
.big-word {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 1.5rem + 11vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.45);
}

/* 10. Utilities ============================================================ */
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.center {
  text-align: center;
}
.maxw {
  max-width: 46rem;
}

@media (min-width: 120rem) {
  html {
    font-size: 112.5%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

#directory {
  padding-top: 0;
}
.hero-light .mosaic {
  margin-bottom: 0;
}

/* ==========================================================================
   All heroes use the dark blue background (append at the very end of the stylesheet)
   .band-hero, .hero-image and .hero-centre are already dark blue. This brings the three light ones
   (.hero-split, .hero-light and the /sport carousel section .ath-hero) in line, so the area behind the
   school's header is dark blue on every page.
   ========================================================================== */
.hero-split,
.hero-light,
.ath-hero {
  background: var(--navy);
}

/* White text on the dark blue */
:is(.hero-split, .hero-light, .ath-hero) :is(h1, h2, h3, p, li, cite, .lead) {
  color: var(--white);
}

.crumbs--light {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Buttons and links that were made for a light background */
:is(.hero-split, .hero-light) .btn--navy {
  background: var(--gold);
  color: var(--navy);
}
:is(.hero-split, .hero-light) .btn--navy:hover {
  background: var(--gold-hover);
}
:is(.hero-split, .hero-light) .btn--outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}
:is(.hero-split, .hero-light) .btn--outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
:is(.hero-split, .hero-light) .link-arrow {
  color: var(--white);
}

/* Carousel dots need to show on dark blue */
.ath-hero .dot {
  background: rgba(255, 255, 255, 0.4);
}
.ath-hero .dot[aria-current="true"] {
  background: var(--white);
}

/* ==========================================================================
   Hero titles and hero text (keep this block at the very end of the stylesheet)
   The school's own stylesheet sizes every h1 and paragraph itself, so these selectors are more
   specific and the font-size carries !important. To go back to the school's sizes, delete this block.
   ========================================================================== */

/* Title: font, weight and wrapping */
main :is(.band-hero, .hero-image, .hero-split, .hero-centre, .hero-light) h1:is(.display, .h1) {
  font-family: var(--font-serif);
  font-weight: 400;
  overflow-wrap: break-word;
}

/* Title size: most pages (about 52px on a large screen, 32px on a phone) */
main :is(.band-hero, .hero-image, .hero-centre, .hero-light) h1.display {
  font-size: clamp(2rem, 0.9rem + 3.2vw, 3.25rem) !important;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* Title size: Support for Student Athletes (about 46px on a large screen, 30px on a phone) */
main .hero-split h1.h1 {
  font-size: clamp(1.9rem, 0.9rem + 2.8vw, 2.9rem) !important;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* The short paragraph beside or under the title */
main .band-hero__body p,
main :is(.hero-image, .hero-centre, .hero-light, .hero-split) .lead,
main .ath-hero__text {
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.15rem) !important;
  line-height: 1.6;
}

/* Figures strip: four numbers in a row, split by thin lines */
.stat-strip {
  padding: clamp(1.25rem, 2.6vw, 2rem) clamp(1.25rem, 3vw, 2.5rem);
}

.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.figure {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.25rem clamp(1rem, 2.5vw, 2.25rem);
  border-left: 1px solid var(--rule);
}

.figure:first-child {
  padding-left: 0;
  border-left: 0;
}

/* The number: one baseline across the row, nudged left so its edge lines up with the text under it */
.figure__num {
  display: block;
  margin-left: -0.04em;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 1.5rem + 2.8vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
  font-variant-numeric: lining-nums;
}

.figure__plus {
  margin-left: 0.04em;
  font-size: 0.6em;
  vertical-align: 0.35em;
  color: var(--gold-hover);
}

.figure__text {
  max-width: 25ch;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
}

/* Two by two on tablets and phones */
@media (max-width: 62rem) {
  .figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.25rem;
  }
  .figure:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .figure:nth-child(n + 3) {
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
  }
  .figure:nth-child(3) {
    border-left: 0;
  }
}

/* Small screens: one figure per row, stacked as blocks */
@media (max-width: 40rem) {
  .figures {
    display: block;
  }
  .figure {
    max-width: none;
  }
  .figure__text {
    max-width: none;
  }
  .figure,
  .figure:nth-child(n) {
    padding-left: 0;
    border-left: 0;
  }
  .figure:nth-child(n + 2) {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
  }
}

/* Banner heroes (Teams, Inter-School Sports Association, Team Support) use the deeper blue,
   so the school's header buttons (Academics, News, Admissions, Search, Menu) stand out against it */
.band-hero {
  background: var(--navy-deep);
}

/* Partners hero: text left, photo pair right */
.hero-light {
  background: var(--navy-deep);
}

.hero-light__body--media {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 4.25rem);
}

/* Short gold rule above the title */
.hero-light__body--media > div:first-child::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  background: var(--gold);
  border-radius: 2px;
}

.hero-light__body--media h1 {
  margin-top: 0;
}

.hero-light__body--media .lead {
  max-width: 34rem;
  margin-top: 1.1rem;
}

.hero-light__body--media .btn-row {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
}

/* Single photo with a gold block tucked behind it */
.hero-light__media {
  position: relative;
  display: block;
  padding-bottom: 1rem;
}

.hero-light__media::before {
  content: "";
  position: absolute;
  left: -1rem;
  bottom: 0;
  z-index: 0;
  width: 42%;
  height: 48%;
  background: var(--gold);
  border-radius: var(--radius-lg);
}

.hero-light__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: clamp(17rem, 30vw, 30rem);
  margin-top: 0;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Tablet and phone: text on top, photo underneath, full width */
@media (max-width: 62rem) {
  .hero-light__body--media {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2rem;
  }
  .hero-light__media {
    padding-bottom: 0.75rem;
  }
  .hero-light__media img {
    height: clamp(14rem, 50vw, 26rem);
  }
}

@media (max-width: 36rem) {
  .hero-light__media::before {
    left: -0.5rem;
  }
  .hero-light__body--media .btn-row .btn {
    flex: 1 1 100%;
  }
}

/* Figures sitting straight on the pale blue band: space above, and dividers in a bluer line so they show */
.figures--on-tint {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.figures--on-tint .figure {
  border-color: rgba(35, 59, 143, 0.25);
}

/* Partner network: stacked blocks on small screens */
@media (max-width: 40rem) {
  .logo-wall {
    display: block;
  }

  .logo-wall li + li {
    border-top: 1px solid var(--rule);
  }

  .logo-tile {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "mark title"
      "mark note";
    align-items: center;
    justify-items: start;
    column-gap: 1rem;
    row-gap: 0.1rem;
    min-height: 0;
    padding: 1rem 1.1rem;
    text-align: left;
  }

  .logo-tile__mark {
    grid-area: mark;
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  .logo-tile strong {
    grid-area: title;
  }

  .logo-tile small {
    grid-area: note;
  }
}

/* Footer on small screens: two tidy columns, one even gap between links, no wasted space */
@media (max-width: 40rem) {
  .site-footer {
    padding-top: 1.75rem;
  }

  .footer__top {
    gap: 1.25rem;
  }

  /* Logo: smaller, with the line of text tucked under it */
  .footer__logo img,
  .footer-brand img {
    width: auto;
    max-height: 4rem;
  }

  .footer__brand p {
    max-width: none;
    margin-top: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  /* Two columns on every phone, with equal row and column gaps */
  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
  }

  .footer__heading {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    line-height: 1.25;
  }

  /* One even gap between links: the spacing comes from padding only */
  .footer__col li + li {
    margin-top: 0;
  }

  .footer__col a {
    display: block;
    padding-block: 0.3rem;
    line-height: 1.35;
  }

  .footer__connect,
  .footer-connect {
    gap: 0.75rem 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .footer__office {
    flex-direction: column;
    gap: 0.1rem;
    margin-left: 0;
  }

  .footer__bottom,
  .footer-bottom {
    gap: 0.5rem 1rem;
    margin-top: 1.25rem;
    padding-block: 1rem;
  }
}

/* Very narrow phones (under 300px): links go into one column */
@media (max-width: 18.75rem) {
  .footer__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}

/* Footer headings in bold, so they read differently from the links under them */
.footer__heading,
.footer-connect h3,
.footer-col h3 {
  font-weight: 700;
}