/* ==========================================================================
   St. Lawrence Nursery & Primary School — shared design system
   One stylesheet for the public site (the CMS will reuse these tokens).
   ========================================================================== */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff") format("woff"); }

:root {
  /* Official brand */
  --primary: #0014B1;
  --secondary: #FCBC02;
  --white: #FFFFFF;
  --navy: #000C84;
  --black: #15174A;
  --silver: #5B5B5B;
  --light-background: #F5F7FC;
  --border-color: #E5E9F2;
  --blue-gradient: linear-gradient(135deg, #0014B1, #000C84);
  --gold-gradient: linear-gradient(135deg, #FCBC02, #E9A900);

  /* Semantic tokens (light) */
  --bg: #FFFFFF;
  --bg-alt: var(--light-background);
  --surface: #FFFFFF;
  --text: var(--black);
  --text-muted: var(--silver);
  --heading: var(--primary);
  --line: var(--border-color);
  --brand: var(--primary);
  --brand-hover: var(--navy);
  --accent: var(--secondary);
  --on-brand: #FFFFFF;
  --footer-bg: var(--black);
  --focus: #0014B1;
  --danger: #B3261E;
  --danger-bg: #FDECEA;
  --ok: #17663A;
  --ok-bg: #E7F5EC;

  --font: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(21, 23, 74, .06), 0 6px 18px rgba(21, 23, 74, .06);
  --gutter: 20px;
  --maxw: 1200px;
}
@media (min-width: 768px)  { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

[data-theme="dark"] {
  --bg: #15174A;
  --bg-alt: #111440;
  --surface: #101D68;
  --text: #FFFFFF;
  --text-muted: #D0D5E5;
  --heading: #FFFFFF;
  --line: #303D80;
  --brand: #4966FF;
  --brand-hover: #6A83FF;
  --on-brand: #FFFFFF;
  --footer-bg: #0B0D36;
  --focus: #FCBC02;
  --danger: #FF9C95;
  --danger-bg: #3A1B2E;
  --ok: #7BE0A2;
  --ok-bg: #12363A;
  --shadow: none;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.7;
  font-synthesis: none; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { color: var(--heading); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 200; }
.skip-link:focus { left: 8px; color: #fff; }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.section-head--center .eyebrow { justify-content: center; }
.on-dark .eyebrow, .eyebrow--light { color: #fff; }
[data-theme="dark"] .eyebrow { color: var(--accent); }
.lead { font-size: 1.05rem; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 13.5px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); color: #fff; box-shadow: 0 6px 16px rgba(0, 20, 177, .25); transform: translateY(-1px); }
.btn--accent { background: var(--secondary); color: var(--black); }
.btn--accent:hover { background: #E9A900; color: var(--black); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
[data-theme="dark"] .btn--outline:hover { color: #fff; border-color: #fff; }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: #F5F7FC; color: var(--navy); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn--sm { padding: 9px 18px; font-size: 12.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Announcement bar ---------- */
.announce { background: var(--primary); color: #fff; font-size: 12.5px; }
.announce__in { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 34px; position: relative; padding-block: 4px; }
.announce p { margin: 0; text-align: center; padding-inline: 28px; line-height: 1.4; }
.announce a { color: var(--secondary); font-weight: 500; white-space: nowrap; }
.announce__close { position: absolute; right: var(--gutter); background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; opacity: .8; }
.announce__close:hover { opacity: 1; }
.announce[hidden] { display: none; }
[data-theme="dark"] .announce { background: var(--navy); }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 15px; color: var(--heading); font-weight: 600; }
.brand__text small { font-size: 10.5px; color: var(--text-muted); font-weight: 500; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: #C9CEEB; }

.nav { display: none; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; border-radius: 6px; position: relative; }
.nav a:hover, .nav a.is-active { color: var(--brand); }
[data-theme="dark"] .nav a:hover, [data-theme="dark"] .nav a.is-active { color: #fff; }
.nav > ul > li > a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--accent); }
.has-sub { position: relative; }
.caret { transition: transform .2s; }
.has-sub:hover .caret, .has-sub:focus-within .caret { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; font-weight: 400; }
.sub a:hover { background: var(--bg-alt); }

.header__actions { display: flex; align-items: center; gap: 6px; }
.header__apply { display: none; margin-left: 6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: transparent; color: var(--text); border-radius: 50%; cursor: pointer; text-decoration: none; transition: background-color .2s; }
.icon-btn:hover { background: var(--bg-alt); color: var(--brand); }
[data-theme="dark"] .icon-btn:hover { color: #fff; }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: inline-flex; }
[data-theme="dark"] .i-moon { display: none; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .header__apply { display: inline-flex; }
}

.mobile-nav { position: fixed; inset: 0; z-index: 150; background: rgba(21, 23, 74, .55); }
.mobile-nav[hidden] { display: none; }
.mobile-nav__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 92vw); background: var(--bg); padding: 16px 20px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a, .mobile-nav summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-weight: 500; color: var(--text); text-decoration: none; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav details[open] summary .icon { transform: rotate(180deg); }
.mobile-nav details ul { padding: 0 0 8px 12px; }
.mobile-nav details li { border: 0; }
.mobile-nav details a { padding: 9px 4px; font-weight: 400; color: var(--text-muted); }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { background: var(--bg); padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 80px); }
.hero__in { display: grid; gap: 40px; align-items: center; }
.hero__copy h1 { margin-bottom: 18px; max-width: 14em; }
.hero__copy p.lead { max-width: 32em; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; }
.hero__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg-alt); }
.hero__img img, .hero__img picture { width: 100%; height: 100%; object-fit: cover; }
.hero__ring { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 18px solid var(--accent); right: -24px; top: -24px; z-index: -1; opacity: .9; }
.hero__card { position: absolute; left: -12px; bottom: 24px; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px 18px 12px 12px; box-shadow: var(--shadow); max-width: 270px; }
.hero__card img { width: 40px; height: auto; }
.hero__card strong { display: block; font-size: 13px; color: var(--heading); line-height: 1.25; }
.hero__card span { font-size: 11.5px; color: var(--text-muted); line-height: 1.3; display: block; }
@media (min-width: 768px) { .hero__in { grid-template-columns: 1.05fr .95fr; gap: 56px; } .hero__card { left: -28px; } }
@media (max-width: 767px) { .hero__ring { right: -8px; top: -14px; width: 84px; height: 84px; border-width: 12px; } .hero__card { left: 10px; right: 10px; max-width: none; } }

/* ---------- Values strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.strip ul::-webkit-scrollbar { display: none; }
.strip li { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px 24px; font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; }
.strip li .icon { color: var(--brand); }
[data-theme="dark"] .strip li .icon { color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.stats div strong { display: block; font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); color: var(--heading); line-height: 1.1; }
.stats div span { color: var(--text-muted); font-size: 13px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { 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); } .grid { gap: 24px; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: 14px; }
.card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); margin-bottom: 18px; }
[data-theme="dark"] .card__icon { color: var(--accent); background: rgba(252, 188, 2, .12); }
.card--flat:hover { box-shadow: none; }

/* ---------- Feature split (blue card + photo card) ---------- */
.feature-split { display: grid; gap: 20px; }
.feature-split__blue { background: var(--blue-gradient); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 320px; position: relative; overflow: hidden; }
.feature-split__blue h2, .feature-split__blue h3 { color: #fff; }
.feature-split__blue p { color: #D6DAF5; }
.feature-split__blue::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid var(--secondary); opacity: .9; }
.feature-split__photo { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 320px; background: var(--navy); color: #fff; display: flex; align-items: flex-end; }
.feature-split__photo picture, .feature-split__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-split__photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 12, 60, .88), rgba(10, 12, 60, .1) 65%); z-index: 1; }
.feature-split__photo .body { position: relative; z-index: 2; padding: clamp(22px, 3vw, 36px); max-width: 520px; }
.feature-split__photo h3 { color: #fff; font-size: 1.5rem; }
.feature-split__photo p { color: #E4E7FA; }
@media (min-width: 900px) { .feature-split { grid-template-columns: 35fr 65fr; } }

/* ---------- Testimonials ---------- */
.quote-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: var(--bg-alt); border-radius: var(--radius-lg); padding: 28px; }
[data-theme="dark"] .quote-card { background: var(--surface); }
.quote-card blockquote { margin: 0; font-size: 15px; }
.quote-card figcaption { margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.quote-card figcaption strong { color: var(--heading); display: block; }
.quote-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }

/* ---------- News ---------- */
.news-grid { display: grid; gap: 20px; }
.news-feature { position: relative; min-height: 330px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; display: flex; align-items: flex-end; text-decoration: none; background: var(--navy); }
.news-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-feature:hover img { transform: scale(1.03); }
.news-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 12, 60, .9), rgba(10, 12, 60, .05) 70%); z-index: 1; }
.news-feature .body { position: relative; z-index: 2; padding: 26px; }
.news-feature h3 { color: #fff; font-size: 1.35rem; margin: 6px 0; }
.news-feature:hover { color: #fff; }
.news-side { display: grid; gap: 20px; align-content: start; }
.news-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; text-decoration: none; color: var(--text); transition: border-color .2s; }
.news-row:hover { border-color: var(--brand); color: var(--text); }
.news-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.news-row h3 { font-size: .98rem; margin: 2px 0 0; color: var(--heading); }
.meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.news-feature .meta { color: #D6DAF5; }
.tag { display: inline-block; background: var(--secondary); color: var(--black); font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text); height: 100%; transition: border-color .2s, box-shadow .2s; }
.news-card:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--text); }
.news-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card h3 { margin: 0; font-size: 1.05rem; }
.news-card p { color: var(--text-muted); font-size: 13.5px; margin: 0; }
@media (min-width: 900px) { .news-grid { grid-template-columns: 60fr 40fr; } }

/* ---------- Split section ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.split__media picture, .split__media img { width: 100%; }
.split__media img { aspect-ratio: 4 / 3; object-fit: cover; }
.split__badge { position: absolute; right: 16px; bottom: 16px; background: var(--surface); border-radius: var(--radius-lg); padding: 10px 14px; display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); }
.split__badge img { width: 34px; height: auto; aspect-ratio: auto; }
.split__badge strong { font-size: 12.5px; color: var(--heading); line-height: 1.2; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--flip .split__media { order: 2; } }

/* ---------- CTA ---------- */
.cta { background: var(--blue-gradient); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--secondary); }
.cta__in { display: grid; gap: 24px; align-items: center; padding-block: clamp(40px, 6vw, 64px); }
.cta h2 { color: #fff; margin: 0; max-width: 18em; }
.cta p { color: #D6DAF5; margin: 8px 0 0; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta__in { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #D3D7F0; padding: 56px 0 24px; font-size: 13.5px; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer__brand { grid-column: 1 / -1; }
.footer__brand p { margin: 16px 0; max-width: 34em; color: #C2C7E8; }
.site-footer h2 { color: #fff; font-size: 13px; margin-bottom: 14px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #D3D7F0; text-decoration: none; }
.site-footer a:hover { color: var(--secondary); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { margin-top: 4px; color: var(--secondary); }
.social { display: flex; gap: 8px; }
.social a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.social a:hover { border-color: var(--secondary); }
.footer__bar { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 22px; font-size: 12.5px; color: #AEB4DE; }
.footer__bar p { margin: 0; }
.footer__bar ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__bar li { margin: 0; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr; } .footer__brand { grid-column: auto; } }

/* ---------- Inner page header ---------- */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding-block: clamp(36px, 6vw, 72px); }
.page-head h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); margin-bottom: 12px; max-width: 18em; }
.page-head p { color: var(--text-muted); max-width: 40em; margin: 0; font-size: 1.02rem; }
.crumbs { font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { margin-inline: 8px; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Prose and lists ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius-lg); margin-block: 1.2em; }
.prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--text-muted); }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--brand); margin-top: 3px; }
[data-theme="dark"] .check-list .icon { color: var(--accent); }
.two-col { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } .two-col--wide-left { grid-template-columns: 1.3fr 1fr; } }
.note { background: var(--bg-alt); border-left: 3px solid var(--accent); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px; color: var(--text-muted); }
.note p:last-child { margin: 0; }
.placeholder-copy { color: var(--text-muted); font-style: italic; }

/* ---------- Empty state ---------- */
.empty { border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 48px); text-align: center; color: var(--text-muted); background: var(--surface); }
.empty h3 { color: var(--heading); }
.empty .icon { margin: 0 auto 12px; color: var(--brand); }
[data-theme="dark"] .empty .icon { color: var(--accent); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: grid; gap: 26px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.timeline strong { color: var(--heading); display: block; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.faq summary { padding: 16px 20px; cursor: pointer; font-weight: 500; color: var(--heading); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details > div { padding: 0 20px 18px; color: var(--text-muted); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 13px; font-weight: 500; color: var(--heading); }
.field .req { color: var(--danger); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field input[type=search], .field input[type=file], .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.field .hint { font-size: 12.5px; color: var(--text-muted); }
.field .error-text { font-size: 12.5px; color: var(--danger); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .error-text { display: block; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field--check { display: flex; gap: 12px; align-items: flex-start; }
.field--check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.field--check label { font-weight: 400; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 18px; border: 1px solid transparent; }
.alert--success { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.alert--error { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert--info { background: var(--bg-alt); color: var(--text); border-color: var(--line); }
.alert ul { margin: 6px 0 0; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); }

/* ---------- Multi-step admission form ---------- */
.steps { list-style: none; margin: 0 0 28px; padding: 0; display: flex; gap: 6px; }
.steps li { flex: 1; text-align: center; font-size: 11.5px; color: var(--text-muted); position: relative; padding-top: 14px; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--line); }
.steps li.is-done::before, .steps li.is-current::before { background: var(--brand); }
[data-theme="dark"] .steps li.is-done::before, [data-theme="dark"] .steps li.is-current::before { background: var(--accent); }
.steps li.is-current { color: var(--heading); font-weight: 600; }
.steps li span { display: none; }
@media (min-width: 768px) { .steps li span { display: inline; } .steps li b { display: none; } }
.step-count { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.form-step { display: none; }
.form-step.is-active { display: grid; gap: 18px; animation: stepIn .25s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.review { display: grid; gap: 18px; }
.review section { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; }
.review h3 { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; margin-bottom: 10px; }
.review h3 button { background: none; border: 0; color: var(--brand); font: 500 13px var(--font); cursor: pointer; text-decoration: underline; }
.review dl { margin: 0; display: grid; gap: 6px 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .review dl { grid-template-columns: 190px 1fr; } }
.review dt { color: var(--text-muted); font-size: 13px; }
.review dd { margin: 0; word-break: break-word; }
.ref-box { text-align: center; border: 2px dashed var(--accent); border-radius: var(--radius-lg); padding: 28px; margin: 24px 0; }
.ref-box strong { display: block; font-size: clamp(1.5rem, 1rem + 2.5vw, 2.2rem); letter-spacing: .04em; color: var(--heading); }

/* ---------- Fees ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.fees { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
table.fees th, table.fees td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.fees th { background: var(--bg-alt); color: var(--heading); font-weight: 600; font-size: 13px; }
table.fees td.amt, table.fees th.amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.fees tr:last-child td { border-bottom: 0; }
table.fees .opt { font-size: 11.5px; color: var(--text-muted); margin-left: 6px; }
@media (max-width: 639px) {
  table.fees.stack { min-width: 0; }
  table.fees.stack thead { display: none; }
  table.fees.stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.fees.stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 16px; text-align: right; }
  table.fees.stack td::before { content: attr(data-label); color: var(--text-muted); text-align: left; }
}

/* ---------- Staff directory ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: 500 13px var(--font); cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
[data-theme="dark"] .chip:hover { color: #fff; }
.staff-group { margin-bottom: 56px; }
.staff-group > h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.staff-group > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.staff-grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .staff-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .staff-grid { grid-template-columns: repeat(4, 1fr); gap: 28px 24px; } }
@media (min-width: 1280px) { .staff-grid { grid-template-columns: repeat(5, 1fr); } }
.staff-card { text-align: left; }
.staff-card__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.staff-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.staff-card:hover .staff-card__photo img { transform: scale(1.04); }
.avatar-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 12%, var(--bg-alt)), var(--bg-alt)); color: var(--brand); }
[data-theme="dark"] .avatar-ph { color: var(--accent); }
.staff-card h3 { font-size: .98rem; margin: 12px 0 2px; }
.staff-card p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.staff-card.is-placeholder h3 { color: var(--text-muted); font-weight: 500; }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 1; column-gap: 14px; }
@media (min-width: 560px) { .gallery-grid { columns: 2; } }
@media (min-width: 1024px) { .gallery-grid { columns: 3; } }
.gallery-item { break-inside: avoid; margin: 0 0 14px; position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--bg-alt); border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item picture { display: block; }
.gallery-item .cap { display: block; position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: 12.5px; text-align: left; background: linear-gradient(to top, rgba(10, 12, 60, .8), transparent); opacity: 0; transition: opacity .25s; }
.gallery-item:hover .cap, .gallery-item:focus-visible .cap { opacity: 1; }
.gallery-item[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8, 10, 45, .94); display: grid; grid-template-rows: 1fr auto; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; }
.lightbox__stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox__cap { color: #E4E7FA; text-align: center; padding: 12px 56px; font-size: 14px; min-height: 3em; }
.lightbox button { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__prev .icon { transform: rotate(180deg); }
.video-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Events ---------- */
.event-list { display: grid; gap: 14px; }
.event-item { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; }
.event-date { text-align: center; border-radius: var(--radius); background: var(--primary); color: #fff; padding: 10px 6px; line-height: 1.1; }
.event-date strong { display: block; font-size: 1.6rem; }
.event-date span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.event-item h3 { margin-bottom: 4px; }
.event-item .meta { margin-bottom: 8px; }
.event-item p { margin: 0; color: var(--text-muted); font-size: 14px; }
.event-item--past { opacity: .85; }
.event-item--past .event-date { background: var(--silver); }
.event-poster { margin-top: 12px; max-width: 280px; border-radius: var(--radius); }

/* ---------- Article / news pages ---------- */
.search-form { display: flex; gap: 8px; max-width: 460px; }
.search-form input { flex: 1; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.search-form input:focus { outline: none; border-color: var(--brand); }
.article-head { max-width: 780px; }
.article-hero { margin-block: 32px; border-radius: var(--radius-lg); overflow: hidden; }
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-muted); }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: 500 12.5px var(--font); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 13.5px; background: var(--surface); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .is-disabled { opacity: .45; }

/* ---------- Downloads ---------- */
.dl-list { display: grid; gap: 12px; }
.dl-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.dl-item .card__icon { margin: 0; flex: none; }
.dl-item div { flex: 1; min-width: 0; }
.dl-item h3 { margin: 0; font-size: 1rem; }
.dl-item small { color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .card__icon { margin: 0; width: 40px; height: 40px; }
.contact-list strong { display: block; color: var(--heading); font-size: 14px; }
.map-frame { border: 0; width: 100%; height: 340px; border-radius: var(--radius-lg); background: var(--bg-alt); }

/* ---------- Scroll reveal (single, restrained) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .6s both; }
  .hero__copy > *:nth-child(2) { animation-delay: .06s; } .hero__copy > *:nth-child(3) { animation-delay: .12s; } .hero__copy > *:nth-child(4) { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media print {
  .site-header, .announce, .site-footer, .cta, .mobile-nav, .skip-link { display: none !important; }
  body { color: #000; background: #fff; }
}

/* Static build: make sure [hidden] always wins (success/error boxes, search results) */
[hidden] { display: none !important; }

/* ---------- PLE results ---------- */
.ple-notice { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); border: 1px solid var(--accent); border-radius: var(--radius-lg); padding: 12px 18px; font-size: 13.5px; margin-bottom: 28px; color: var(--text); }
.ple-years { margin-bottom: 28px; }
.ple-stats { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .ple-stats { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.ple-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 20px; border-top: 4px solid var(--c, var(--brand)); }
.ple-stat strong { display: block; font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem); line-height: 1.05; color: var(--heading); font-variant-numeric: tabular-nums; }
.ple-stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.ple-stat--gold { --c: var(--secondary); }
.ple-stat--total { --c: var(--navy); }
.ple-sum { margin-top: 16px; color: var(--text-muted); font-size: 14px; }
.ple-charts { display: grid; gap: 24px; }
@media (min-width: 1000px) { .ple-charts { grid-template-columns: 1fr 1fr; } }
.ple-chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 18px 16px; }
.ple-chart h3 { font-size: 1.05rem; margin-bottom: 4px; }
.ple-chart > p { font-size: 13px; color: var(--text-muted); margin: 0 0 12px; }
.ple-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ple-chart text { font-family: var(--font); fill: var(--text-muted); font-size: 11px; }
.ple-chart .val { fill: var(--text); font-weight: 600; }
.ple-chart .grid-line { stroke: var(--line); stroke-width: 1; }
.ple-chart .bar { cursor: pointer; transition: opacity .15s; }
.ple-chart .dim { opacity: .35; }
.ple-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--text-muted); }
.ple-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.c1 { fill: #0014B1; background: #0014B1; } .c2 { fill: #4966FF; background: #4966FF; } .c3 { fill: #FCBC02; background: #FCBC02; }
[data-theme="dark"] .c1 { fill: #7C90FF; background: #7C90FF; }
.ple-grid { display: grid; gap: 20px 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .ple-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .ple-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.ple-learner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 14px; text-align: center; position: relative; }
.ple-learner__ph { width: 96px; height: 120px; margin: 0 auto 12px; border-radius: 8px; overflow: hidden; background: var(--bg-alt); display: grid; place-items: center; color: var(--brand); font-weight: 700; font-size: 1.6rem; border: 1px solid var(--line); }
.ple-learner__ph img { width: 100%; height: 100%; object-fit: cover; }
.ple-learner h3 { font-size: .95rem; margin: 0 0 4px; }
.ple-learner small { color: var(--text-muted); font-size: 12px; display: block; }
.ple-badge { position: absolute; top: 10px; right: 10px; background: var(--secondary); color: var(--black); font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.ple-dl { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.ple-dl li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ple-dl li:last-child { border-bottom: 0; }
.ple-dl small { color: var(--text-muted); display: block; font-size: 12.5px; }
.ple-loading { color: var(--text-muted); }

/* Newsletter sign-up (footer) */
.footer__news { padding: 28px 0 8px; border-bottom: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 14px; }
.footer__news h2 { margin: 0 0 4px; }
.footer__news p { margin: 0; color: #C2C7E8; max-width: 38em; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; }
.newsletter-form input[type="email"]::placeholder { color: #AEB4DE; }
.newsletter-form input[type="email"]:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.newsletter-form button { padding: 11px 20px; border: 0; border-radius: 8px; background: var(--secondary); color: #15174A; font: 700 14px inherit; cursor: pointer; }
.newsletter-form button:disabled { opacity: .7; cursor: wait; }
.newsletter-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter-msg { min-height: 1.3em; font-size: 13.5px; }
.newsletter-msg.is-ok { color: #9BE3B4; } .newsletter-msg.is-error { color: #FFB4AB; }
