/* ==========================================================================
   Specialists Junior School — design system
   Tokens → base → layout → components → page compositions → utilities
   Brand: crest navy (#031458 measured), crest royal blue #2652cc, sky highlight #59b8f8. No yellow.
   ========================================================================== */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-opsz-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-wght-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

/* Metric-matched fallbacks (measured from the font files) prevent layout shift when web fonts swap in. */
@font-face { font-family: "Figtree Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 98.65%; ascent-override: 96.3%; descent-override: 25.3%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback"; src: local("Times New Roman"), local("Liberation Serif"), local("Times"); size-adjust: 126.7%; ascent-override: 77.2%; descent-override: 20.1%; line-gap-override: 0%; }

:root {
  /* colour */
  --navy-950: #06103d; --navy-900: #0a1a5c; --navy-800: #13277a; --navy-700: #1d3592;
  --royal-600: #2652cc; --royal-500: #3a67e0; --royal-100: #e4ebfc;
  --sky-50: #f3f7fe; --sky-100: #e6eefb; --sky-200: #ccdbf6; --sky-300: #a9c1ee;
  --highlight: #59b8f8; --highlight-hover: #7cc8fa; /* primary highlight (was gold #f2c230) */ --blue: #2652cc; /* replaces all former yellows on light backgrounds (6.27:1 on paper) */ --accent-on-dark: #59b8f8; /* #2652cc is only 2.4:1 on navy, so dark backgrounds use the highlight (7.33:1) */ --tint: #e4ebfc; --tint-2: #c9d8f7; --tint-ink: #1d3592; --link-on-dark: #bfe3fd;
  --paper: #fbf8f2; --cream: #f4eee2; --cream-2: #ece3d1; --white: #fff;
  --ink: #121933; --ink-2: #3a4365; --ink-3: #5b6386; --line: #ddd6c6; --line-cool: #d7dff0;
  --green-700: #1d6b45; --green-100: #dff2e7; --teal-700: #0f6670; --teal-100: #d9f0f1;
  --red-700: #a3261b; --red-100: #fbe5e1;
  /* type */
  --f-serif: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --f-sans: "Figtree", "Figtree Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-xs: clamp(.78rem, .76rem + .1vw, .84rem);
  --t-sm: clamp(.875rem, .85rem + .12vw, .94rem);
  --t-base: clamp(1rem, .97rem + .16vw, 1.09rem);
  --t-md: clamp(1.13rem, 1.06rem + .32vw, 1.31rem);
  --t-lg: clamp(1.35rem, 1.2rem + .7vw, 1.75rem);
  --t-xl: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  --t-2xl: clamp(2.1rem, 1.6rem + 2.4vw, 3.5rem);
  --t-3xl: clamp(2.6rem, 1.8rem + 3.8vw, 5rem);
  --t-hero: clamp(2.9rem, 1.7rem + 5.6vw, 6.4rem);
  /* space & shape */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section: clamp(3.5rem, 2.4rem + 5vw, 7.5rem);
  --gutter: clamp(1.15rem, .7rem + 2vw, 2.5rem);
  --wrap: 76rem; --wrap-narrow: 46rem; --wrap-text: 40rem;
  --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(10 26 92 / .06), 0 2px 8px rgb(10 26 92 / .05);
  --shadow: 0 2px 6px rgb(10 26 92 / .06), 0 12px 32px rgb(10 26 92 / .09);
  --shadow-lg: 0 6px 16px rgb(10 26 92 / .08), 0 28px 64px rgb(10 26 92 / .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 5.5px var(--royal-600);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--f-sans); font-size: var(--t-base); line-height: 1.6; color: var(--ink); background: var(--paper); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 560; line-height: 1.1; letter-spacing: -.012em; color: var(--navy-900); margin: 0 0 .5em; font-variation-settings: "SOFT" 50, "WONK" 0; text-wrap: balance; }
h1 { font-size: var(--t-3xl); } h2 { font-size: var(--t-2xl); } h3 { font-size: var(--t-lg); line-height: 1.2; } h4 { font-size: var(--t-md); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--royal-600); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-900); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
ul, ol { padding-left: 1.2em; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
::selection { background: var(--tint-2); color: var(--navy-950); }
main:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- layout primitives ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-sm { padding-block: calc(var(--section) * .6); }
.bg-cream { background: var(--cream); } .bg-sky { background: var(--sky-50); } .bg-white { background: var(--white); }
.bg-navy { background: var(--navy-900); color: #e8edfb; }
.bg-navy h2, .bg-navy h3, .bg-navy h1 { color: #fff; }
.bg-navy a:not(.btn) { color: var(--link-on-dark); }
.stack > * + * { margin-top: var(--s-4); }
.grid { display: grid; gap: var(--s-6); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split-wide-left { grid-template-columns: 1.15fr .85fr; } .split-wide-right { grid-template-columns: .85fr 1.15fr; } .split.top { align-items: start; } }

/* ---------- type helpers ---------- */
.eyebrow { font-family: var(--f-sans); font-size: var(--t-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--royal-600); margin: 0 0 var(--s-3); display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 1.6em; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-gold { color: var(--accent-on-dark); }
.lede { font-size: var(--t-md); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.bg-navy .lede { color: #cfd8f3; }
.measure { max-width: var(--wrap-text); }
.serif { font-family: var(--f-serif); }
.muted { color: var(--ink-3); }
.small { font-size: var(--t-sm); }
.display { font-size: var(--t-hero); line-height: .98; letter-spacing: -.025em; font-weight: 520; }
.display em, h1 em, h2 em { font-style: italic; font-weight: 420; color: var(--royal-600); }
.bg-navy h2 em, .hero h1 em, .ph-band h1 em, .callout-band h2 em, .on-dark h1 em { color: var(--accent-on-dark); }
.hero h1 em { color: #fff; } /* homepage hero: italic line in white */
.section-head { max-width: 48rem; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 1.6em; height: 2px; background: currentColor; border-radius: 2px; }
.prose { font-size: var(--t-base); line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: var(--t-xl); margin-top: 1.8em; }
.prose h3 { font-size: var(--t-lg); margin-top: 1.5em; }
.prose li + li { margin-top: .4em; }
.ticks { list-style: none; padding: 0; display: grid; gap: .7rem; }
.ticks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem; align-items: start; }
.ticks li::before { content: ""; width: 1.25rem; height: 1.25rem; margin-top: .2em; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a5c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/70% no-repeat; box-shadow: inset 0 0 0 1px var(--blue); }
.bg-navy .ticks li::before { background-color: rgb(89 184 248 / .18); }

/* ---------- buttons ---------- */
.btn { --bg: var(--navy-900); --fg: #fff; --bd: transparent; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .75em 1.4em; border-radius: var(--r-pill); border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg); font: 650 var(--t-sm)/1.1 var(--f-sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:hover { color: var(--fg); background: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow-sm); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-gold { --bg: var(--highlight); --fg: var(--navy-950); }
.btn-gold:hover { background: var(--highlight-hover); color: var(--navy-950); }
.btn-ghost { --bg: transparent; --fg: var(--navy-900); --bd: var(--navy-900); }
.btn-ghost:hover { background: var(--navy-900); color: #fff; }
.btn-outline-light { --bg: transparent; --fg: #fff; --bd: rgb(255 255 255 / .55); }
.btn-outline-light:hover { background: #fff; color: var(--navy-900); }
.btn-light { --bg: #fff; --fg: var(--navy-900); }
.btn-light:hover { background: var(--tint); color: var(--navy-900); }
.btn-sm { min-height: 42px; padding: .6em 1.15em; }
.btn-block { width: 100%; }
.btn .i { width: 1.1em; height: 1.1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 650; text-decoration: none; color: var(--royal-600); }
.link-arrow .i { transition: transform .2s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }
.bg-navy .link-arrow { color: var(--accent-on-dark); }

/* ---------- top bar + header ---------- */
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--highlight); color: var(--navy-950); padding: .7em 1em; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: var(--s-3); }
.topbar { background: var(--navy-950); color: #c8d2f0; font-size: var(--t-xs); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; }
.topbar p { margin: 0; letter-spacing: .02em; }
.topbar ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.topbar a { color: #e5ebfb; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.topbar a:hover { color: var(--accent-on-dark); }
@media (max-width: 760px) { .topbar { display: none; } }
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(251 248 242 / .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgb(10 26 92 / .06); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy-900); margin-right: auto; flex: 0 1 auto; min-width: 0; }
.brand img { width: 53px; height: 48px; }
.brand-name { font-family: var(--f-serif); font-weight: 620; font-size: 1.12rem; line-height: 1.05; letter-spacing: -.01em; }
.brand-name span { display: block; }
@media (max-width: 420px) {
  .header-inner { gap: .4rem; }
  .brand { gap: .5rem; } .brand img { width: 44px; height: 40px; } .brand-name { font-size: 1rem; }
  .search-link { width: 40px; height: 40px; }
}
@media (max-width: 350px) { .menu-toggle > span > span { display: none; } }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.search-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--navy-900); }
.search-link:hover { background: var(--sky-100); color: var(--navy-900); }
.search-link .i { width: 1.3rem; height: 1.3rem; }

/* desktop nav */
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.nav-link { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; padding: .5em .8em; border: 0; background: none; border-radius: var(--r-pill); font: 600 .95rem/1 var(--f-sans); color: var(--ink); text-decoration: none; cursor: pointer; }
.nav-link:hover, .nav-item:focus-within > .nav-link { background: var(--sky-100); color: var(--navy-900); }
.nav-link[aria-current="page"], .nav-link[data-active] { color: var(--royal-600); box-shadow: inset 0 -2px 0 var(--highlight); border-radius: 0; }
.i-chev { width: .95em; height: .95em; transition: transform .2s var(--ease); }
.nav-toggle[aria-expanded="true"] .i-chev { transform: rotate(180deg); }
.has-sub { position: relative; }
.sub { position: absolute; top: calc(100% + .5rem); left: 50%; translate: -50% 0; min-width: 19rem; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); border: 1px solid var(--line-cool); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s; }
.sub ul { list-style: none; margin: 0; padding: 0; }
.sub a { display: block; padding: .65rem .85rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.sub a small { display: block; font-weight: 450; color: var(--ink-3); font-size: .82rem; margin-top: .15rem; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--sky-50); color: var(--royal-600); }
.is-mega .sub { min-width: 38rem; }
.is-mega .sub ul { display: grid; grid-template-columns: 1fr 1fr; }
.is-mega .sub li:nth-child(-n+2) a { background: var(--sky-50); }
.has-sub.open > .sub, .no-js .has-sub:hover > .sub, .no-js .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s var(--ease); }
.menu-toggle, .nav-mobile-extra { display: none; }
.action-bar { display: none; }

@media (max-width: 1080px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border-radius: var(--r-pill); background: var(--navy-900); color: #fff; font-weight: 650; font-size: .92rem; text-decoration: none; }
  .menu-toggle:hover { color: #fff; background: var(--navy-800); }
  .menu-toggle > span { display: inline-flex; align-items: center; gap: .4rem; }
  .menu-close, .nav-open .menu-open { display: none !important; }
  .nav-open .menu-close { display: inline-flex !important; }
  /* backdrop-filter would make the header the containing block for the fixed panel (panel shrank to header height) */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .site-nav { position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--paper); overflow-y: auto; padding: 1rem var(--gutter) 6rem; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; border-top: 1px solid var(--line); }
  .nav-open .site-nav, .no-js .site-nav:target { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; min-height: 56px; font-size: 1.12rem; font-family: var(--f-serif); font-weight: 560; border-radius: 0; padding-inline: .25rem; }
  .nav-link:hover, .nav-item:focus-within > .nav-link { background: none; }
  .nav-link[aria-current="page"], .nav-link[data-active] { box-shadow: none; }
  .sub { position: static; translate: none; min-width: 0; box-shadow: none; border: 0; background: none; padding: 0 0 .75rem; display: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .has-sub.open > .sub, .no-js .sub { display: block; }
  .is-mega .sub { min-width: 0; } .is-mega .sub ul { grid-template-columns: 1fr; }
  .is-mega .sub li:nth-child(-n+2) a { background: none; }
  .sub a { padding: .7rem .5rem; min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
  .nav-mobile-extra { display: grid; gap: .7rem; margin-top: 1.5rem; }
  body.nav-open { overflow: hidden; }
  .hide-sm { display: none; }
}
@media (max-width: 760px) {
  .action-bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgb(10 26 92 / .08); padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom)); gap: .4rem; }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; border-radius: var(--r-pill); text-decoration: none; font-weight: 650; font-size: .92rem; color: var(--navy-900); }
  .action-bar a.is-primary { background: var(--highlight); color: var(--navy-950); }
  body { padding-bottom: 66px; }
  .nav-open .action-bar { display: none; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 1.25rem auto 0; font-size: var(--t-xs); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }
.crumbs a { color: var(--ink-3); text-decoration: none; } .crumbs a:hover { color: var(--royal-600); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.on-dark .crumbs, .on-dark .crumbs a { color: #c4cdee; } .on-dark .crumbs [aria-current] { color: #fff; } .on-dark .crumbs li + li::before { color: rgb(255 255 255 / .3); }

/* ---------- media ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--sky-100); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-4x3 { aspect-ratio: 4/3; } .media-3x2 { aspect-ratio: 3/2; } .media-16x9 { aspect-ratio: 16/9; } .media-1x1 { aspect-ratio: 1; } .media-4x5 { aspect-ratio: 4/5; } .media-3x4 { aspect-ratio: 3/4; }
.media figcaption, .caption { font-size: var(--t-xs); color: var(--ink-3); margin-top: .6rem; }
.frame-gold { box-shadow: 14px 14px 0 var(--blue); }
.frame-sky { box-shadow: -14px 14px 0 var(--sky-200); }
.photo-stack { position: relative; padding: 0 0 12% 10%; }
.photo-stack .media:last-child { position: absolute; width: 48%; right: -4%; bottom: 0; border: 6px solid var(--paper); box-shadow: var(--shadow); }

/* ---------- cards ---------- */
.card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line-cool); padding: clamp(1.25rem, 1rem + 1vw, 2rem); box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .4em; }
.card-link { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.card-link .media { border-radius: var(--r) var(--r) 0 0; }
.card-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link h3 a { color: var(--navy-900); text-decoration: none; }
.card-link:focus-within { box-shadow: var(--focus); }
.card-link:focus-within h3 a:focus-visible { box-shadow: none; }
.card-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); }
.card-photo { padding: 0; overflow: hidden; }
.tag { display: inline-flex; align-items: center; gap: .35em; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .35em .7em; border-radius: var(--r-pill); background: var(--sky-100); color: var(--navy-800); width: fit-content; }
.tone-royal { background: var(--royal-100); color: var(--navy-800); } .tone-green { background: var(--green-100); color: var(--green-700); }
.tone-gold { background: var(--tint); color: var(--tint-ink); } .tone-teal { background: var(--teal-100); color: var(--teal-700); }
.tone-navy { background: var(--navy-900); color: #fff; } .tone-grey { background: #ececec; color: #3d3d3d; }
.notice { display: flex; gap: .75rem; padding: 1rem 1.15rem; border-radius: var(--r); background: var(--tint); border: 1px solid var(--tint-2); color: var(--tint-ink); font-size: var(--t-sm); }
.notice .i { margin-top: .2em; } .notice p { margin: 0; color: var(--navy-800); }

/* ---------- hero (home) ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(92svh, 860px); display: grid; align-items: end; overflow: hidden; background: var(--navy-950); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(6 16 61 / .25) 0%, rgb(6 16 61 / .1) 35%, rgb(6 16 61 / .78) 72%, rgb(6 16 61 / .95) 100%), linear-gradient(90deg, rgb(6 16 61 / .55), transparent 65%); }
.hero-inner { padding-block: clamp(7rem, 20vh, 12rem) clamp(2rem, 1rem + 4vw, 4.5rem); }
.hero h1 { color: #fff; max-width: 13ch; margin-bottom: .35em; }
.hero .lede { color: #e4e9fa; max-width: 34em; margin-bottom: 1.75rem; }
.hero .eyebrow { color: var(--accent-on-dark); }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; list-style: none; padding: 1.5rem 0 0; margin: 2rem 0 0; border-top: 1px solid rgb(255 255 255 / .2); font-size: var(--t-sm); color: #d8e0f8; }
.hero-facts li { display: flex; align-items: center; gap: .5rem; }
.hero-facts strong { color: #fff; font-weight: 650; }
.hero-facts .i { color: var(--accent-on-dark); }

/* ---------- page heroes (interior) ---------- */
.ph { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.ph h1 { max-width: 17ch; }
.ph .lede { margin-top: 1rem; }
.ph-split { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
@media (min-width: 900px) { .ph-split { grid-template-columns: 1.05fr .95fr; } }
.ph-band { position: relative; isolation: isolate; color: #fff; background: var(--navy-900); overflow: hidden; }
.ph-band .ph h1 { color: #fff; } .ph-band .lede { color: #d4dcf5; } .ph-band .eyebrow { color: var(--accent-on-dark); }
.ph-band .ph-photo { position: absolute; inset: 0 0 0 auto; width: min(52%, 760px); z-index: -1; }
.ph-band .ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-band .ph-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-900) 0%, rgb(10 26 92 / .55) 35%, rgb(10 26 92 / .05) 100%); }
@media (max-width: 899px) { .ph-band .ph-photo { position: relative; width: 100%; height: 15rem; } .ph-band .ph-photo::after { background: linear-gradient(0deg, var(--navy-900), transparent 60%); } }

/* ---------- facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 1.6rem 1.4rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
@media (max-width: 700px) { .fact { border-right: 0; border-bottom: 1px solid var(--line); } .fact:last-child { border-bottom: 0; } }
.fact-k { font-family: var(--f-serif); font-size: var(--t-lg); color: var(--navy-900); font-weight: 580; line-height: 1.15; display: block; }
.fact-v { font-size: var(--t-sm); color: var(--ink-3); }

/* ---------- pathway (progression) ---------- */
.pathway { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 900px) { .pathway { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.pathway > li { position: relative; padding: 1.6rem 1.4rem 1.6rem; background: #fff; border: 1px solid var(--line-cool); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: .5rem; }
@media (min-width: 900px) {
  .pathway > li { border-radius: 0; border-left-width: 0; padding-top: 2.6rem; }
  .pathway > li:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); border-left-width: 1px; }
  .pathway > li:last-child { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
  .pathway > li::before { content: ""; position: absolute; top: 1.25rem; left: 1.4rem; right: -1px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--sky-300)); }
  .pathway > li::after { content: ""; position: absolute; top: calc(1.25rem - 5px); left: 1.4rem; width: 13px; height: 13px; border-radius: 50%; background: var(--navy-900); box-shadow: 0 0 0 4px #fff; }
}
.pathway .stage { font-size: var(--t-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--royal-600); }
.pathway h3 { font-size: var(--t-lg); margin: 0; }
.pathway p { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }
.pathway .who { margin-top: auto; padding-top: .75rem; border-top: 1px dashed var(--line); font-size: var(--t-xs); color: var(--ink-3); }
.pathway .who strong { color: var(--navy-900); }

/* ---------- moments rail (A day at SJS) ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 22rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem var(--gutter) 1.5rem; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; scroll-padding-inline: var(--gutter); }
@media (min-width: 1000px) { .rail { grid-auto-columns: calc((100% - 3rem) / 4); margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } }
.rail > * { scroll-snap-align: start; }
.moment { margin: 0; }
.moment .media { aspect-ratio: 4/5; border-radius: var(--r-lg); }
.moment figcaption { padding: .9rem .2rem 0; }
.moment .k { display: block; font-family: var(--f-serif); font-size: var(--t-md); color: var(--navy-900); font-weight: 580; }
.moment .v { font-size: var(--t-sm); color: var(--ink-3); }
.rail-controls { display: flex; gap: .5rem; justify-content: flex-end; margin-top: -.5rem; }
.rail-btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--navy-900); background: none; color: var(--navy-900); cursor: pointer; }
.rail-btn:hover { background: var(--navy-900); color: #fff; }
.rail-btn:disabled { opacity: .3; cursor: default; background: none; color: var(--navy-900); }
.no-js .rail-controls { display: none; }

/* ---------- Q&A list (why parents choose) ---------- */
.qa { display: grid; gap: 0; border-top: 1px solid var(--line); }
.qa-item { display: grid; gap: .4rem 2.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .qa-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.qa-q { font-family: var(--f-serif); font-size: var(--t-lg); color: var(--navy-900); margin: 0; font-weight: 560; line-height: 1.2; }
.qa-a { margin: 0; color: var(--ink-2); }
.qa-a a { font-weight: 600; }

/* ---------- quote / voices ---------- */
.voice { position: relative; margin: 0; padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line-cool); display: flex; flex-direction: column; gap: 1rem; }
.voice blockquote { margin: 0; font-family: var(--f-serif); font-size: var(--t-md); line-height: 1.45; color: var(--navy-900); font-style: italic; font-weight: 420; }
.voice blockquote::before { content: "“"; display: block; font-size: 3.4rem; line-height: .6; color: var(--highlight); font-style: normal; margin-bottom: .4rem; }
.voice figcaption { font-size: var(--t-sm); color: var(--ink-3); margin-top: auto; }
.voice figcaption strong { color: var(--ink); display: block; }
.voice .link-arrow { font-size: var(--t-sm); }

/* ---------- events ---------- */
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ev { position: relative; display: grid; grid-template-columns: 4.6rem 1fr; gap: 1.1rem; align-items: start; padding: 1.1rem 1.2rem; background: #fff; border-radius: var(--r); border: 1px solid var(--line-cool); transition: box-shadow .2s, transform .2s var(--ease); }
.ev:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ev:focus-within { box-shadow: var(--focus); }
.ev-date { text-align: center; border-radius: var(--r-sm); background: var(--navy-900); color: #fff; padding: .55rem .2rem .6rem; line-height: 1; }
.ev-date .m { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-on-dark); }
.ev-date .d { display: block; font-family: var(--f-serif); font-size: 1.85rem; font-weight: 600; margin-top: .25rem; }
.ev-date .y { display: block; font-size: .7rem; margin-top: .25rem; color: #e3e8f8; }
.ev-body h3 { font-size: var(--t-md); margin: .35rem 0 .3rem; font-family: var(--f-serif); }
.ev-body h3 a { color: var(--navy-900); text-decoration: none; }
.ev-body h3 a::after { content: ""; position: absolute; inset: 0; }
.ev-body h3 a:focus-visible { box-shadow: none; }
.ev-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: var(--t-sm); color: var(--ink-3); margin: 0; }
.ev-meta span { display: inline-flex; align-items: center; gap: .35em; }
.ev-meta .i { width: 1em; height: 1em; }
.ev.is-past { background: #fdfcf9; } .ev.is-past .ev-date { background: #4a5275; } .ev.is-past .ev-date .m { color: #fff; }
.ev-empty { padding: 2rem; border-radius: var(--r); border: 1.5px dashed var(--line); text-align: center; color: var(--ink-2); background: rgb(255 255 255 / .5); }
.bg-navy .ev { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); }
.bg-navy .ev-body h3 a { color: #fff; } .bg-navy .ev-meta { color: #b9c4ea; }
.bg-navy .ev-date { background: var(--highlight); color: var(--navy-950); } .bg-navy .ev-date .m { color: var(--navy-800); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .4em; min-height: 40px; padding: .45em 1em; border-radius: var(--r-pill); border: 1.5px solid var(--line-cool); background: #fff; color: var(--ink); font: 600 var(--t-sm)/1 var(--f-sans); cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--navy-900); color: var(--navy-900); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.view-switch { display: inline-flex; padding: 4px; background: var(--cream); border-radius: var(--r-pill); gap: 2px; }
.view-switch button { min-height: 40px; padding: 0 1.1rem; border: 0; border-radius: var(--r-pill); background: none; font: 650 var(--t-sm)/1 var(--f-sans); color: var(--ink-2); cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-sm); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.month-head { display: flex; align-items: baseline; gap: .8rem; margin: 2.5rem 0 1rem; font-family: var(--f-serif); font-size: var(--t-lg); color: var(--navy-900); }
.month-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.month-head:first-child { margin-top: 0; }

/* calendar grid */
.cal { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line-cool); padding: clamp(.75rem, .5rem + 1vw, 1.5rem); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.cal-nav h3 { margin: 0; font-size: var(--t-lg); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grid .dow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-align: center; color: var(--ink-3); padding: .4rem 0; }
.cal-day { min-height: 5.6rem; border-radius: var(--r-sm); background: var(--paper); padding: .35rem; font-size: .8rem; display: flex; flex-direction: column; gap: 3px; }
.cal-day.out { background: none; }
.cal-day .n { font-weight: 700; color: var(--ink-2); font-size: .8rem; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--highlight); }
.cal-day.today .n { color: var(--navy-900); }
.cal-ev { display: block; font-size: .72rem; line-height: 1.2; padding: .2rem .35rem; border-radius: 5px; text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-month[hidden] { display: none; }
@media (max-width: 640px) { .cal-day { min-height: 3.6rem; } .cal-ev { font-size: 0; height: 6px; padding: 0; } }

/* event detail */
.ev-hero-date { display: inline-flex; align-items: center; gap: 1rem; }
.detail-list { display: grid; gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.detail-list > div { display: grid; grid-template-columns: 2.2rem 1fr; gap: .6rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.detail-list dt { color: var(--royal-600); padding-top: .15rem; } .detail-list dd { margin: 0; }
.detail-list dd strong { display: block; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; margin-bottom: .15rem; }

/* ---------- blog ---------- */
.feature-post { display: grid; gap: 0; background: #fff; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-cool); box-shadow: var(--shadow); position: relative; }
@media (min-width: 900px) { .feature-post { grid-template-columns: 1fr 1.1fr; } }
.feature-post .media { border-radius: 0; min-height: 20rem; position: relative; }
.feature-post .media img { position: absolute; inset: 0; }
.feature-post .fp-body { padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.feature-post blockquote { margin: 0; font-family: var(--f-serif); font-size: var(--t-lg); line-height: 1.35; color: var(--navy-900); font-style: italic; font-weight: 400; border-left: 3px solid var(--highlight); padding-left: 1.1rem; }
.post-card .media { aspect-ratio: 4/3; background: var(--cream); }
.post-card .media.paper { display: grid; place-items: center; padding: 1.5rem; background: var(--cream) repeating-linear-gradient(180deg, transparent 0 27px, rgb(38 82 204 / .14) 27px 28px); }
.post-card .media.paper p { font-family: var(--f-serif); font-style: italic; font-size: var(--t-md); color: var(--navy-900); line-height: 1.45; margin: 0; }
.byline { font-size: var(--t-sm); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: center; }
.byline strong { color: var(--ink); font-weight: 650; }
.article-head { padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) 2rem; }
.article-head h1 { font-size: var(--t-2xl); max-width: 22ch; }
.article-body { font-family: var(--f-serif); font-size: clamp(1.1rem, 1.04rem + .3vw, 1.28rem); line-height: 1.75; color: #1d2340; font-weight: 380; }
.article-body p { margin: 0 0 1.15em; }
.article-body p:first-of-type::first-letter { float: left; font-size: 3.6em; line-height: .85; padding: .08em .1em 0 0; color: var(--royal-600); font-weight: 600; }
.scan { margin: 2.5rem 0; }
.scan a { display: block; position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.scan img { width: 100%; height: auto; }
.scan .zoom { position: absolute; right: .8rem; bottom: .8rem; display: inline-flex; gap: .4rem; align-items: center; background: rgb(6 16 61 / .85); color: #fff; font-size: var(--t-xs); font-weight: 650; padding: .5rem .8rem; border-radius: var(--r-pill); }
.scan figcaption { font-size: var(--t-sm); color: var(--ink-3); margin-top: .8rem; }
.pager { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 46px; min-height: 46px; display: grid; place-items: center; padding: 0 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--line-cool); text-decoration: none; font-weight: 650; color: var(--navy-900); background: #fff; }
.pager [aria-current] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* ---------- subject pages ---------- */
.subject-hero { position: relative; overflow: hidden; }
.subject-hero .glyph { position: absolute; right: -2rem; top: 50%; translate: 0 -50%; font-family: var(--f-serif); font-size: clamp(10rem, 8rem + 14vw, 24rem); line-height: .8; color: var(--accent, var(--sky-200)); opacity: .55; font-weight: 600; z-index: 0; pointer-events: none; user-select: none; }
.subject-hero .wrap { position: relative; z-index: 1; }
.focus-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 760px) { .focus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .focus-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.focus-grid > div { background: #fff; padding: clamp(1.25rem, 1rem + 1.2vw, 2.1rem); }
@media (min-width: 760px) { .focus-grid:not(.cols-3) > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 760px) and (max-width: 1099px) { .focus-grid.cols-3 > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .focus-grid.cols-3 > div:nth-child(3n+1):last-child { grid-column: 1 / -1; } .focus-grid.cols-3 > div:nth-child(3n+1):nth-last-child(2) { grid-column: span 2; } }
.focus-grid h3 { font-size: var(--t-md); display: flex; gap: .7rem; align-items: baseline; }
.focus-grid h3 .num { font-family: var(--f-sans); font-size: var(--t-xs); font-weight: 750; color: var(--royal-600); letter-spacing: .08em; }
.focus-grid p, .focus-grid li { font-size: var(--t-sm); color: var(--ink-2); }
.focus-grid ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.subject-nav { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- numbered approach list ---------- */
.approach-list { list-style: none; padding: 0; margin: 0; counter-reset: a; border-top: 1px solid var(--line); }
.approach-list li { counter-increment: a; display: grid; grid-template-columns: 3.2rem 1fr; gap: .25rem 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.approach-list li::before { content: counter(a, decimal-leading-zero); grid-row: span 2; font-family: var(--f-serif); color: var(--highlight); font-size: var(--t-lg); line-height: 1.1; font-weight: 500; }
.approach-list h3 { font-size: var(--t-md); margin: 0; }
.approach-list p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); }

/* ---------- values (about) ---------- */
.values { list-style: none; padding: 0; margin: 0; counter-reset: v; display: grid; gap: 0; }
.values li { counter-increment: v; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: baseline; padding: 1.4rem 0; border-bottom: 1px solid rgb(255 255 255 / .14); }
.values li::before { content: "0" counter(v); font-family: var(--f-serif); font-size: var(--t-xl); color: var(--accent-on-dark); font-weight: 500; }
.values h3 { margin: 0 0 .2rem; font-size: var(--t-lg); }
.values p { margin: 0; color: #c9d2f0; font-size: var(--t-sm); }

/* ---------- ECD theme ---------- */
.theme-ecd { --accent: var(--tint-2); }
.blob { border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%; }
.dev-wheel { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.dev-wheel > div { border-radius: var(--r-xl); padding: 1.6rem; background: #fff; border: 1px solid var(--line); }
.dev-wheel > div:nth-child(1) { background: var(--tint); border-color: var(--tint-2); }
.dev-wheel > div:nth-child(2) { background: var(--sky-100); border-color: var(--sky-200); }
.dev-wheel > div:nth-child(3) { background: var(--green-100); border-color: #c4e6d2; }
.dev-wheel > div:nth-child(4) { background: #f6e6ee; border-color: #edd0de; }
.dev-wheel h3 { font-size: var(--t-md); margin-bottom: .3rem; }
.dev-wheel p { font-size: var(--t-sm); margin: 0; color: var(--ink-2); }

/* ---------- steps (admissions) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: #fff; border-radius: var(--r-lg); padding: 1.6rem 1.4rem; border: 1px solid var(--line-cool); position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--highlight); color: var(--navy-950); font-weight: 800; margin-bottom: 1rem; }
.steps h3 { font-size: var(--t-md); margin-bottom: .35rem; }
.steps p { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 650; font-size: var(--t-sm); color: var(--ink); }
.field .hint { font-size: var(--t-xs); color: var(--ink-3); font-weight: 450; }
.req { color: var(--red-700); font-weight: 700; }
input[type=text], input[type=email], input[type=tel], input[type=search], select, textarea { width: 100%; min-height: 50px; padding: .75rem .95rem; border-radius: var(--r-sm); border: 1.5px solid #c8cbd8; background: #fff; font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 8.5rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--royal-600); box-shadow: 0 0 0 3px rgb(38 82 204 / .2); }
[aria-invalid="true"] { border-color: var(--red-700) !important; background: #fffafa; }
.field-error { color: var(--red-700); font-size: var(--t-xs); font-weight: 650; display: flex; gap: .3rem; align-items: center; }
.field-error:empty { display: none; }
.check { display: grid; grid-template-columns: 1.4rem 1fr; gap: .6rem; align-items: start; font-size: var(--t-sm); color: var(--ink-2); }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--navy-900); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--r); padding: 1rem 1.15rem; font-size: var(--t-sm); display: none; gap: .6rem; }
.form-status.is-ok { display: flex; background: var(--green-100); color: var(--green-700); border: 1px solid #b9dfc8; }
.form-status.is-err { display: flex; background: var(--red-100); color: var(--red-700); border: 1px solid #f1c3bb; }
.form-status p { margin: 0; color: inherit; }
.form-card { background: #fff; border-radius: var(--r-xl); padding: clamp(1.4rem, 1rem + 2vw, 2.75rem); box-shadow: var(--shadow); border: 1px solid var(--line-cool); }
.form-offline { display: grid; gap: 1rem; }
button[disabled] { opacity: .6; cursor: progress; }

/* ---------- contact ---------- */
.contact-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.cc { display: flex; flex-direction: column; gap: .45rem; padding: 1.4rem; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line-cool); text-decoration: none; color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s; position: relative; }
.cc:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.cc .ic { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--sky-100); color: var(--navy-900); margin-bottom: .4rem; }
.cc.is-wa .ic { background: var(--green-100); color: var(--green-700); }
.cc .k { font-weight: 700; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.cc .v { font-family: var(--f-serif); font-size: var(--t-md); color: var(--navy-900); font-weight: 560; overflow-wrap: anywhere; }
.cc .v.is-email { font-family: var(--f-sans); font-size: var(--t-base); font-weight: 650; overflow-wrap: normal; word-break: break-word; }
.cc .n { font-size: var(--t-sm); color: var(--ink-3); }
.map-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--sky-100); aspect-ratio: 4/3; border: 1px solid var(--line-cool); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; background: radial-gradient(circle at 50% 45%, #fff 0, var(--sky-50) 45%, var(--sky-100) 100%); }
.map-placeholder .pinmark { width: 3.6rem; height: 3.6rem; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--navy-900); display: grid; place-items: center; margin: 0 auto 1.2rem; box-shadow: var(--shadow); }
.map-placeholder .pinmark::after { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--highlight); }

/* ---------- FAQ / accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.25rem .2rem; font-family: var(--f-serif); font-size: var(--t-md); color: var(--navy-900); font-weight: 560; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a5c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/55% no-repeat; transition: transform .2s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); background-color: var(--tint-2); }
.acc .acc-body { padding: 0 .2rem 1.4rem; color: var(--ink-2); max-width: 46rem; }
.acc .acc-body > :last-child { margin-bottom: 0; }

/* ---------- gallery ---------- */
.masonry { columns: 3 16rem; column-gap: .9rem; }
.masonry > * { break-inside: avoid; margin: 0 0 .9rem; }
.g-item { display: block; position: relative; border-radius: var(--r); overflow: hidden; background: var(--sky-100); cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.g-item img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.g-item:hover img { transform: scale(1.03); }
.album-nav { position: sticky; top: calc(var(--header-h) + .5rem); z-index: 5; background: rgb(251 248 242 / .92); backdrop-filter: blur(8px); padding: .6rem 0; margin-bottom: 1.5rem; }
.mosaic { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9rem; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 12rem; } .mosaic > :nth-child(1) { grid-column: span 2; grid-row: span 2; } .mosaic > :nth-child(4) { grid-row: span 2; } }
.mosaic .media { height: 100%; border-radius: var(--r); }
.lightbox { position: fixed; inset: 0; z-index: 200; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 0; background: rgb(4 9 34 / .94); color: #fff; }
.lightbox::backdrop { background: rgb(4 9 34 / .94); }
.lb-inner { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; font-size: var(--t-sm); }
.lb-stage { display: grid; place-items: center; padding: 0 3.5rem; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgb(255 255 255 / .24); }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { left: .6rem; } .lb-next { right: .6rem; }
.lb-cap { text-align: center; padding: .8rem 1rem 1.2rem; font-size: var(--t-sm); color: #c9d2f0; }

/* ---------- video facade ---------- */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-950); }
.video button { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: none; color: #fff; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s; }
.video button:hover img { opacity: 1; }
.video .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 4.6rem; height: 4.6rem; border-radius: 50%; background: var(--highlight); color: var(--navy-950); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.video .play .i { width: 1.9rem; height: 1.9rem; fill: currentColor; margin-left: .25rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-meta h2, .video-meta h3 { font-size: var(--t-md); margin: 1rem 0 .3rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: #c5cfef; padding-top: clamp(3rem, 2rem + 4vw, 5rem); font-size: var(--t-sm); }
.site-footer a { color: #e2e8fb; text-decoration: none; } .site-footer a:hover { color: var(--accent-on-dark); text-decoration: underline; }
.f-cta { display: grid; gap: 1.5rem; align-items: center; padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); border-bottom: 1px solid rgb(255 255 255 / .12); }
@media (min-width: 900px) { .f-cta { grid-template-columns: 1fr auto; } }
.f-cta-title { font-family: var(--f-serif); font-size: var(--t-xl); color: #fff; margin: 0; line-height: 1.15; max-width: 20ch; }
.f-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.site-footer .f-cta-actions a.btn-gold { color: var(--navy-950); } .site-footer .f-cta-actions a.btn-gold:hover { text-decoration: none; }
.site-footer .btn-outline-light:hover { color: var(--navy-900); text-decoration: none; }
.f-grid { display: grid; gap: 2.5rem 2rem; padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
@media (min-width: 1000px) { .f-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.5fr; } }
.f-crest { display: inline-grid; place-items: center; width: 6.2rem; height: 6.2rem; border-radius: 50%; background: var(--paper); margin-bottom: 1rem; }
.f-crest img { width: 4.6rem; height: auto; }
.f-name { font-family: var(--f-serif); font-size: var(--t-md); color: #fff; margin: 0 0 .4rem; }
.f-desc { max-width: 30ch; color: #b4bfe6; }
.f-motto { font-family: var(--f-serif); font-style: italic; color: var(--accent-on-dark); margin: 0; }
.f-title { font-family: var(--f-sans); font-size: var(--t-xs); font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-on-dark); margin: 0 0 1rem; }
.f-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.f-visit address { display: grid; gap: .8rem; }
.f-visit address a { display: grid; grid-template-columns: 1.4rem 1fr; gap: .5rem; align-items: start; }
.f-visit address .i { margin-top: .2em; color: var(--accent-on-dark); }
.f-visit small { color: #93a0d0; }
.f-social { display: flex !important; flex-wrap: wrap; gap: .5rem 1.2rem !important; margin-top: 1.2rem !important; }
.f-social a { display: inline-flex; align-items: center; gap: .4rem; }
.f-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; align-items: center; padding: 1.4rem 0 2rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: var(--t-xs); color: #93a0d0; }
.f-base p { margin: 0; }
.f-base ul { list-style: none; display: flex; gap: 1.2rem; margin: 0; padding: 0; }
.credit a { color: #c5cfef; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .3); }

/* ---------- search ---------- */
.search-box { display: flex; gap: .5rem; }
.search-box input { flex: 1; }
.results { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.results li a { display: block; padding: 1.1rem 1.25rem; background: #fff; border-radius: var(--r); border: 1px solid var(--line-cool); text-decoration: none; color: var(--ink); }
.results li a:hover { box-shadow: var(--shadow); }
.results .t { font-family: var(--f-serif); font-size: var(--t-md); color: var(--navy-900); display: block; }
.results .u { font-size: var(--t-xs); color: var(--royal-600); }
.results mark { background: var(--tint-2); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- misc ---------- */
.callout-band { border-radius: var(--r-xl); background: var(--navy-900); color: #dfe6fb; padding: clamp(2rem, 1.5rem + 3vw, 4rem); position: relative; overflow: hidden; isolation: isolate; }
.callout-band::before { content: ""; position: absolute; right: -6rem; top: -6rem; width: 22rem; height: 22rem; border-radius: 50%; background: radial-gradient(circle, rgb(89 184 248 / .35), transparent 70%); z-index: -1; }
.callout-band h2 { color: #fff; }
.callout-band .lede, .callout-band p { color: #d3dbf4; }
.callout-band a:not(.btn) { color: var(--link-on-dark); }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.pill-list li { padding: .5rem .95rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line-cool); font-size: var(--t-sm); font-weight: 600; color: var(--navy-900); }
.big-num { font-family: var(--f-serif); font-size: var(--t-3xl); line-height: 1; color: var(--royal-600); font-weight: 500; }
.divider-crest { display: flex; align-items: center; gap: 1rem; justify-content: center; color: var(--line); margin-block: var(--s-7); }
.divider-crest::before, .divider-crest::after { content: ""; flex: 1; max-width: 10rem; height: 1px; background: currentColor; }
.club { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .club { grid-template-columns: 1fr 1.1fr; } .club:nth-child(even) .club-media { order: 2; } }
.club-num { font-family: var(--f-serif); color: var(--blue); font-size: var(--t-xl); font-weight: 500; display: block; margin-bottom: .5rem; }
.legal h2 { font-size: var(--t-lg); margin-top: 2rem; }
.status-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--red-100); color: var(--red-700); font-weight: 700; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- print ---------- */
@media print {
  .topbar, .site-header, .action-bar, .site-footer .f-cta, .rail-controls, .share, .filters, .view-switch { display: none !important; }
  body { background: #fff; padding: 0; } .hero { min-height: 0; color: #000; } .hero::after { display: none; }
  a { color: #000; } .bg-navy { background: #fff; color: #000; }
}
