/* ============================================================
   IMCG I-8/3  —  main stylesheet (QUAD: warm / contemporary)
   Tokens live in tokens.css (loaded first). This file is the
   reset, base typography, and all components.
   ============================================================ */

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }

body {
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
a { color: var(--link-color); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--c-teal); outline-offset: 3px; border-radius: var(--r-sm); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--c-forest);
}
h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); font-weight: 700; }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p  { margin-bottom: var(--space-5); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
em { font-style: italic; }

/* ── Containers ─────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w-wide); margin-inline: auto; padding-inline: var(--space-6); }
.container--narrow { max-width: var(--max-w-narrow); }
.container--prose  { max-width: var(--max-w-prose); }
.container--wide   { max-width: var(--max-w-full); }

/* ── Sections ───────────────────────────────────────────── */
.section { padding-block: var(--space-20); }
.section--sm { padding-block: var(--space-12); }
.section--lg { padding-block: var(--space-32); }
.section--mint   { background: var(--bg-mint); }
.section--white  { background: var(--c-white); }
.section--forest { background: var(--c-forest); color: var(--c-cream); }
.section--forest h2, .section--forest h3, .section--forest h4 { color: var(--c-cream); }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-teal-dark);
  margin-bottom: var(--space-4);
}
.section--forest .section-label { color: var(--c-mint); }

.section-header { margin-bottom: var(--space-12); }
.section-header--centered { text-align: center; }
.section-header p { font-size: var(--text-lg); color: var(--text-muted); margin-top: var(--space-3); max-width: 56ch; }
.section-header--centered p { margin-inline: auto; }
.section--forest .section-header p { color: var(--c-mint-tint); }

/* Section header with a trailing action (e.g. "All news") */
.section-header--split { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); }
.section-header--split p { margin-top: var(--space-2); }

/* ── Wave dividers ──────────────────────────────────────── */
.wave { display: block; width: 100%; overflow: hidden; line-height: 0; margin-bottom: -1px; }
.wave svg { display: block; width: 100%; height: auto; }

/* ── Flowing announcement banner (non-dismissible) ──────── */
/* Seamless marquee (content-length & viewport agnostic).
   - Two identical groups are direct flex children of the banner.
   - Each group is `min-width: 100%`, so ONE group always fills the viewport —
     you never see two copies at once and it never blanks.
   - The gap BETWEEN groups equals the gap WITHIN a group (--banner-gap), so the
     spacing is uniform everywhere.
   - Each group animates translateX(calc(-100% - gap)); -100% is one group's own
     width, and `- gap` accounts for the seam, so group B lands exactly where
     group A started — a jump-free loop. */
.announcement-banner {
  --banner-gap: var(--space-12);
  display: flex;
  overflow: hidden;
  gap: var(--banner-gap);
  background: var(--c-forest);
  color: var(--c-cream);
  font-size: var(--text-sm);
}
.announcement-banner__group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--banner-gap);
  min-width: 100%;
  padding-block: var(--space-2);
  will-change: transform;
  animation: banner-marquee 28s linear infinite;
}
.announcement-banner:hover .announcement-banner__group { animation-play-state: paused; }
.announcement-banner__item {
  display: inline-flex; align-items: center; gap: var(--space-3);
  white-space: nowrap; flex-shrink: 0;
  color: var(--c-cream); text-decoration: none;
}
.announcement-banner__item:hover .announcement-banner__cue { text-decoration: underline; }
.announcement-banner__dot { width: 8px; height: 8px; background: var(--c-mint); border-radius: 50%; flex-shrink: 0; }
.announcement-banner strong { font-weight: 700; color: var(--c-cream); }
.announcement-banner__cue { color: var(--c-mint); font-weight: 700; flex-shrink: 0; }
@keyframes banner-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - var(--banner-gap))); }
}

/* ── Header / nav ───────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 244, 225, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  padding-block: var(--space-3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  max-width: var(--max-w-full); margin-inline: auto; padding-inline: var(--space-6);
}
.site-logo { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--c-forest); flex-shrink: 0; }
.logo-badge {
  width: 46px; height: 46px; background: var(--c-forest); border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-badge svg { width: 26px; height: 26px; color: var(--c-mint); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: var(--font-body); font-weight: 800; font-size: var(--text-base); color: var(--c-forest); letter-spacing: -0.01em; }
.logo-tagline { font-size: 0.65rem; font-weight: 600; color: var(--text-muted); letter-spacing: var(--ls-wide); text-transform: uppercase; }

/* Desktop nav */
.nav-links { display: none; list-style: none; padding: 0; margin: 0; gap: var(--space-1); align-items: center; }
.nav-links > li { margin: 0; position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  color: var(--c-forest); text-decoration: none; background: none; border: none; cursor: pointer;
  border-radius: var(--r-pill);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-active { background: var(--c-mint-tint); color: var(--c-teal-deep); }
.nav-link__caret { width: 9px; height: 6px; transition: transform var(--dur-fast); }
.nav-link[aria-expanded="true"] .nav-link__caret { transform: rotate(180deg); }

/* Dropdown submenu */
.nav-submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  list-style: none; margin: 0; padding: var(--space-2);
  background: var(--c-white); border: 1px solid var(--border-soft); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
}
.nav-links > li:hover .nav-submenu,
.nav-links > li:focus-within .nav-submenu,
.nav-submenu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-submenu li { margin: 0; }
.nav-submenu a {
  display: block; padding: var(--space-2) var(--space-3); border-radius: var(--r-md);
  font-size: var(--text-sm); font-weight: 600; color: var(--c-forest); text-decoration: none;
  transition: background var(--dur-fast);
}
.nav-submenu a:hover, .nav-submenu a[aria-current="page"] { background: var(--c-mint-tint); color: var(--c-teal-deep); }

/* Mobile toggle */
.nav-toggle {
  background: none; border: none; cursor: pointer; color: var(--c-forest);
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  transition: background var(--dur-fast);
}
.nav-toggle:hover { background: var(--c-mint-tint); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-forest); border-radius: var(--r-pill); transition: transform var(--dur-norm) var(--ease-out), opacity var(--dur-norm) var(--ease-out); transform-origin: center; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  display: none; flex-direction: column; position: fixed; inset: 0; top: var(--header-h);
  background: var(--c-cream); z-index: 99; padding: var(--space-8) var(--space-6);
  border-top: 1px solid var(--border-soft); overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: var(--font-body); font-size: var(--text-lg); font-weight: 600;
  color: var(--c-forest); text-decoration: none;
  padding: var(--space-3) var(--space-4); border-radius: var(--r-lg);
  border-left: 3px solid transparent; transition: background var(--dur-fast), border-color var(--dur-fast);
}
.mobile-menu a:hover { background: var(--bg-mint); border-left-color: var(--c-mint); }
.mobile-menu a[aria-current="page"] { background: var(--bg-mint); }
.mobile-menu__group-label { font-size: var(--text-xs); font-weight: 800; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--text-muted); padding: var(--space-4) var(--space-4) var(--space-1); }
.mobile-menu a.mobile-menu__child { font-size: var(--text-base); padding-left: var(--space-6); }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.01em;
  border: none; border-radius: var(--r-pill); padding: var(--space-3) var(--space-6);
  cursor: pointer; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast), color var(--dur-fast);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-xs); }
.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn--primary:hover { background: var(--c-near-black); color: var(--c-cream); }
.btn--secondary { background: var(--btn-secondary-bg); color: var(--btn-secondary-text); }
.btn--secondary:hover { background: var(--c-teal-deep); color: var(--c-cream); }
.btn--outline { background: transparent; color: var(--c-forest); border: 2px solid var(--c-forest); }
.btn--outline:hover { background: var(--c-forest); color: var(--c-cream); }
.btn--outline-light { background: transparent; color: var(--c-cream); border: 2px solid var(--c-cream); }
.btn--outline-light:hover { background: var(--c-cream); color: var(--c-forest); }
.btn--lg { font-size: var(--text-base); padding: var(--space-4) var(--space-8); }
.btn--sm { font-size: var(--text-xs); padding: var(--space-2) var(--space-4); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ── Tags ───────────────────────────────────────────────── */
.tag {
  display: inline-block; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  padding: var(--space-1) var(--space-3); border-radius: var(--r-pill);
  background: var(--c-mint-tint); color: var(--c-teal-deep); text-decoration: none; white-space: nowrap;
}
.tag--forest { background: var(--c-forest); color: var(--c-cream); }
.tag--teal { background: var(--c-teal-dark); color: var(--c-cream); }

/* ── Grids ──────────────────────────────────────────────── */
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ── Hero (full-bleed image + frosted-green glass panel) ── */
.hero { position: relative; background: var(--c-forest); color: var(--c-cream); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,31,27,0.30) 0%, transparent 28%, transparent 68%, rgba(14,31,27,0.42) 100%),
    linear-gradient(100deg, rgba(14,31,27,0.92) 0%, rgba(14,31,27,0.68) 38%, rgba(14,31,27,0.32) 72%, rgba(14,31,27,0.12) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--max-w-full); margin-inline: auto;
  padding: var(--space-16) var(--space-6) var(--space-20);
}
/* Text sits directly on the photo (no card) — the gradient + a soft
   text-shadow keep it legible across light and dark images. */
.hero__panel { max-width: 620px; }
.hero__panel .hero__heading { text-shadow: 0 2px 28px rgba(14, 31, 27, 0.45); }
.hero__panel .hero__intro { text-shadow: 0 1px 16px rgba(14, 31, 27, 0.55); }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(137, 215, 183, 0.16); border: 1px solid rgba(137, 215, 183, 0.4);
  border-radius: var(--r-pill); padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--ls-wider); text-transform: uppercase;
  color: var(--c-mint); margin-bottom: var(--space-6); width: fit-content;
}
.hero__heading { font-family: var(--font-display); font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; color: var(--c-cream); margin-bottom: var(--space-5); }
.hero__heading em { font-style: italic; color: var(--c-mint); font-weight: 300; }
.hero__intro { font-size: var(--text-lg); color: rgba(255, 244, 225, 0.92); line-height: var(--lh-relaxed); margin-bottom: var(--space-8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero .wave { position: relative; z-index: 2; }
@media (min-width: 768px) {
  .hero__inner { padding-block: var(--space-24) var(--space-32); }
}

/* ── Page header (interior pages) ───────────────────────── */
.page-header { background: var(--c-forest); color: var(--c-cream); padding-block: var(--space-16) 0; position: relative; overflow: hidden; }
.page-header--plain { padding-bottom: var(--space-16); }
.page-header::before { content: ''; position: absolute; top: -60px; right: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(137,215,183,0.15) 0%, transparent 70%); }
.page-header__inner { position: relative; z-index: 2; }
.page-header h1 { color: var(--c-cream); margin-bottom: var(--space-4); max-width: 22ch; }
.page-header p { color: rgba(255,244,225,0.8); font-size: var(--text-lg); max-width: 60ch; }
.page-header .section-label { color: var(--c-mint); }
.page-header .wave { margin-top: var(--space-12); }

/* ── Cards (news) ───────────────────────────────────────── */
.card { display: flex; flex-direction: column; background: var(--c-white); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform var(--dur-norm) var(--ease-out), box-shadow var(--dur-norm) var(--ease-out); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { display: block; }
.card__image { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--c-mint-tint); }
.card__image--empty { display: flex; align-items: center; justify-content: center; color: var(--c-mint); }
.card__image--empty svg { width: 48px; height: 48px; }
.card__body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.card__date { font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--ls-wide); }
.card__title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; margin-bottom: var(--space-3); color: var(--c-forest); line-height: var(--lh-snug); }
.card__title a { text-decoration: none; color: inherit; }
.card__title a:hover { color: var(--c-teal-deep); }
.card__excerpt { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--lh-relaxed); margin-bottom: var(--space-5); }
.card__footer { margin-top: auto; border-top: 1px solid var(--border-soft); padding-top: var(--space-4); display: flex; align-items: center; justify-content: space-between; }

/* ── Strength cards (home highlights) ───────────────────── */
.strength-card { background: var(--c-white); border-radius: var(--r-xl); padding: var(--space-8); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--space-4); transition: transform var(--dur-norm) var(--ease-out), box-shadow var(--dur-norm) var(--ease-out); }
.strength-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.strength-icon { width: 56px; height: 56px; background: var(--c-mint-tint); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.strength-icon svg { width: 28px; height: 28px; color: var(--c-teal-dark); }
.strength-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.strength-card p { font-size: var(--text-base); color: var(--text-muted); line-height: var(--lh-relaxed); }
.strength-card__link { font-size: var(--text-sm); font-weight: 700; color: var(--c-teal-deep); text-decoration: none; margin-top: auto; display: inline-flex; align-items: center; gap: var(--space-2); }
.strength-card__link:hover { gap: var(--space-3); }

/* ── CTA strip (admissions) ─────────────────────────────── */
.cta-strip { background: var(--c-mint-tint); border-radius: var(--r-2xl); padding: var(--space-12) var(--space-10); display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; justify-content: space-between; }
.cta-strip__text h2 { margin-bottom: var(--space-3); font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); }
.cta-strip__text p { font-size: var(--text-base); color: var(--text-muted); max-width: 55ch; }
.cta-strip__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; flex-shrink: 0; }

/* ── Gallery (real photos, category-grouped) ────────────── */
.gallery-group { margin-bottom: var(--space-16); }
.gallery-group:last-child { margin-bottom: 0; }
.gallery-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border-soft); }
.gallery-group__title { font-size: var(--text-2xl); }
.gallery-group__count { font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); }
.gallery-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery-item { margin: 0; }
.gallery-item__plate { display: block; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; }
.gallery-item__plate img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.gallery-item__plate:hover img { transform: scale(1.04); }
.gallery-item__caption { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-muted); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.gallery-item__caption em { color: var(--c-forest); }

/* Home gallery teaser (3 tiles) */
.gallery-teaser { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery-teaser { grid-template-columns: repeat(3, 1fr); } }

/* ── Modal (home announcement) ──────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(14, 31, 27, 0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: var(--space-6); opacity: 0; pointer-events: none; transition: opacity var(--dur-norm) var(--ease-out); }
.modal-overlay.is-open { opacity: 1; pointer-events: all; }
.modal { background: var(--c-white); border-radius: var(--r-xl); box-shadow: var(--shadow-xl); max-width: 540px; width: 100%; overflow: hidden; transform: translateY(20px) scale(0.97); transition: transform var(--dur-norm) var(--ease-out); max-height: 90vh; display: flex; flex-direction: column; }
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal__header { background: var(--c-forest); padding: var(--space-6) var(--space-8); display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.modal__header-icon { width: 48px; height: 48px; background: rgba(137,215,183,0.2); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal__header-icon svg { width: 24px; height: 24px; color: var(--c-mint); }
.modal__eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--c-mint); margin-bottom: var(--space-1); }
.modal__title { font-family: var(--font-display); font-size: var(--text-xl); color: var(--c-cream); font-weight: 600; }
.modal__close { background: rgba(255,255,255,0.1); border: none; color: var(--c-cream); cursor: pointer; width: 32px; height: 32px; border-radius: var(--r-md); font-size: var(--text-lg); line-height: 1; display: flex; align-items: center; justify-content: center; transition: background var(--dur-fast); flex-shrink: 0; }
.modal__close:hover { background: rgba(255,255,255,0.2); }
.modal__body { padding: var(--space-8); overflow-y: auto; }
.modal__body p { font-size: var(--text-base); color: var(--text-muted); }
.modal__footer { padding: var(--space-5) var(--space-8) var(--space-8); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.modal__attachment { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); font-weight: 700; font-size: var(--text-sm); }

/* ── Prose (markdown body + principal letter) ───────────── */
.prose { font-size: var(--text-base); line-height: var(--lh-relaxed); color: var(--c-forest); }
.prose__lede { font-size: var(--text-lg); color: var(--c-forest); font-weight: 500; margin-bottom: var(--space-6); }
.prose h2 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); margin-top: var(--space-10); margin-bottom: var(--space-4); }
.prose h3 { font-size: var(--text-xl); margin-top: var(--space-8); margin-bottom: var(--space-3); }
.prose p { margin-bottom: var(--space-5); }
.prose ul, .prose ol { margin-bottom: var(--space-5); padding-left: var(--space-6); }
.prose li { margin-bottom: var(--space-2); }
.prose a { color: var(--link-color); font-weight: 600; }
.prose img { border-radius: var(--r-xl); margin-block: var(--space-8); width: 100%; box-shadow: var(--shadow-md); }
.prose blockquote { border-left: 3px solid var(--c-mint); padding-left: var(--space-5); margin-block: var(--space-6); font-style: italic; color: var(--text-muted); }

/* ── Principal letter layout ────────────────────────────── */
.principal-wrap { display: grid; gap: var(--space-12); align-items: start; }
.principal-portrait { position: static; }
.principal-portrait__img { width: 100%; max-width: 300px; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); margin-inline: auto; }
.principal-portrait__name { margin-top: var(--space-5); font-weight: 700; color: var(--c-forest); text-align: center; font-size: var(--text-base); }
.principal-portrait__title { font-size: var(--text-sm); color: var(--text-muted); text-align: center; margin-top: var(--space-1); }
.signature { font-family: var(--font-display); font-style: italic; font-size: var(--text-2xl); color: var(--c-teal-deep); margin-top: var(--space-8); margin-bottom: var(--space-1); }
.signature-title { font-size: var(--text-sm); color: var(--text-muted); }
@media (min-width: 820px) {
  .principal-wrap { grid-template-columns: 300px 1fr; }
  .principal-portrait { position: sticky; top: calc(var(--header-h) + var(--space-8)); }
}

/* ── Faculty ────────────────────────────────────────────── */
.faculty-group { margin-bottom: var(--space-16); }
.faculty-group:last-child { margin-bottom: 0; }
.faculty-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-8); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border-soft); }
.faculty-group__title { font-size: var(--text-2xl); }
.faculty-group__count { font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); }
.faculty-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.staff-card { background: var(--c-white); border-radius: var(--r-xl); padding: var(--space-6); text-align: center; box-shadow: var(--shadow-sm); transition: transform var(--dur-norm) var(--ease-out), box-shadow var(--dur-norm) var(--ease-out); margin: 0; }
.staff-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.staff-card__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-inline: auto; margin-bottom: var(--space-4); box-shadow: var(--shadow-sm); border: 3px solid var(--c-mint-tint2); background: var(--c-mint-tint); }
.staff-card__name { font-weight: 700; color: var(--c-forest); font-size: var(--text-base); margin-bottom: var(--space-1); }
.staff-card__role { font-size: var(--text-sm); color: var(--c-teal-dark); font-weight: 600; }
.staff-card__quals { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-1); }

/* ── Facilities (sports) ────────────────────────────────── */
.facility { background: var(--c-white); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur-norm) var(--ease-out), box-shadow var(--dur-norm) var(--ease-out); margin: 0; }
.facility:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.facility__plate { aspect-ratio: 3/2; overflow: hidden; background: var(--c-mint-tint); }
.facility__plate img { width: 100%; height: 100%; object-fit: cover; }
.facility__plate--empty { display: flex; align-items: center; justify-content: center; color: var(--c-teal-dark); }
.facility__body { padding: var(--space-5) var(--space-6); }
.facility__name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--c-forest); margin-bottom: var(--space-1); }
.facility__detail { font-size: var(--text-sm); color: var(--text-muted); }

/* ── Honours table ──────────────────────────────────────── */
.honours { width: 100%; border-collapse: collapse; background: var(--c-white); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.honours thead th { background: var(--c-forest); color: var(--c-cream); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--ls-wider); text-transform: uppercase; text-align: left; padding: var(--space-4) var(--space-5); }
.honours tbody td { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border-soft); font-size: var(--text-sm); vertical-align: top; }
.honours tbody tr:last-child td { border-bottom: none; }
.honours tbody tr:hover { background: var(--c-mint-tint); }
.honours__year { font-family: var(--font-display); font-weight: 700; color: var(--c-teal-deep); white-space: nowrap; }
.honours__title { font-weight: 700; color: var(--c-forest); }
.honours__detail { color: var(--text-muted); }
.honours-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-xl); }

/* ── Find Us ────────────────────────────────────────────── */
.location { display: grid; gap: var(--space-10); align-items: start; }
.location__name { font-size: var(--text-2xl); margin-bottom: var(--space-6); }
.contact-item { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-5); background: var(--c-white); border-radius: var(--r-xl); box-shadow: var(--shadow-xs); margin-bottom: var(--space-4); }
.contact-item__icon { width: 44px; height: 44px; background: var(--c-mint-tint); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item__icon svg { width: 22px; height: 22px; color: var(--c-teal-dark); }
.contact-item__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-1); }
.contact-item__value { font-size: var(--text-base); font-weight: 600; color: var(--c-forest); line-height: var(--lh-snug); }
.contact-item__value a { color: var(--c-forest); text-decoration: none; }
.contact-item__value a:hover { color: var(--c-teal-deep); }
.hours-table { width: 100%; border-collapse: collapse; margin-top: var(--space-2); }
.hours-table th, .hours-table td { text-align: left; padding: var(--space-2) 0; font-size: var(--text-sm); border-bottom: 1px solid var(--border-soft); }
.hours-table th { font-weight: 600; color: var(--c-forest); }
.hours-table td { color: var(--text-muted); text-align: right; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.location__map { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; background: var(--c-mint-tint); border: 1px solid var(--border-soft); }
.location__map iframe { width: 100%; height: 100%; border: 0; }
.location__map--placeholder { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: var(--text-sm); text-align: center; padding: var(--space-6); }
@media (min-width: 900px) { .location { grid-template-columns: 1fr 1fr; } }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--c-forest); color: var(--c-cream); padding-top: var(--space-20); padding-bottom: var(--space-10); }
.footer-grid { display: grid; gap: var(--space-10); margin-bottom: var(--space-12); }
.footer-logo { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; margin-bottom: var(--space-5); }
.footer-logo .logo-badge { background: rgba(137,215,183,0.15); border: 1px solid rgba(137,215,183,0.25); }
.footer-logo .logo-name { color: var(--c-cream); }
.footer-logo .logo-tagline { color: rgba(255,244,225,0.55); }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); color: var(--c-mint); margin-bottom: var(--space-4); line-height: var(--lh-snug); }
.footer-about { font-size: var(--text-sm); color: rgba(255, 244, 225, 0.65); line-height: var(--lh-relaxed); max-width: 38ch; }
.footer-section h4 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 800; letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--c-mint); margin-bottom: var(--space-5); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: var(--space-3); }
.footer-links a { font-size: var(--text-sm); color: rgba(255, 244, 225, 0.75); text-decoration: none; transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--c-cream); }
.footer-contact-item { display: flex; gap: var(--space-3); margin-bottom: var(--space-4); align-items: flex-start; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--c-mint); margin-top: 3px; flex-shrink: 0; }
.footer-contact-item span, .footer-contact-item a { font-size: var(--text-sm); color: rgba(255, 244, 225, 0.75); line-height: var(--lh-snug); text-decoration: none; }
.footer-contact-item a:hover { color: var(--c-cream); }
.footer-bottom { border-top: 1px solid rgba(137, 215, 183, 0.15); padding-top: var(--space-6); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); }
.footer-bottom p, .footer-bottom small { font-size: var(--text-xs); color: rgba(255, 244, 225, 0.5); margin: 0; }
.footer-bottom a { color: rgba(255, 244, 225, 0.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--c-cream); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; } }

/* ── Scroll fade-up ─────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out); }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ── Skip link ──────────────────────────────────────────── */
.skip-link { position: absolute; top: -100%; left: var(--space-4); background: var(--c-forest); color: var(--c-cream); padding: var(--space-3) var(--space-6); border-radius: var(--r-pill); font-weight: 700; text-decoration: none; z-index: 9999; transition: top var(--dur-fast); }
.skip-link:focus { top: var(--space-4); }

/* ── Helpers ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.measure { max-width: 60ch; }
.flow > * + * { margin-top: var(--space-4); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; }
  /* The banner is meant to flow continuously — keep it moving even here. */
  .announcement-banner__group { animation: banner-marquee 28s linear infinite !important; animation-duration: 28s !important; animation-iteration-count: infinite !important; }
}
