/* ==========================================================================
   BSD Public School — site styles (mobile-first)
   Design system: institutional navy · muted academic blue · champagne gold · ivory
   Balance ≈ 60% white/ivory · 20% navy · 10% blue · 5–10% gold.
   Change colours and type in :root only.
   ========================================================================== */

@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  /* Colour */
  --navy: #102A43;          /* deep institutional navy */
  --navy-dark: #071D33;     /* dark navy */
  --blue: #1F5A85;          /* muted academic blue — links, interactive */
  --blue-dark: #174566;
  --gold: #C8A951;          /* champagne gold — accents only */
  --gold-soft: #E6D39A;
  --gold-text: #8C6D1F;     /* gold that passes AA on white */
  --ivory: #FAF8F1;
  --cool: #F4F7F9;
  --white: #FFFFFF;
  --text: #17212B;
  --muted: #5E6C7B;         /* #667585 darkened slightly for AA on ivory */
  --line: #DCE3E8;
  --line-soft: #E9EEF1;
  --bg: var(--ivory);
  --blue-tint: #EAF1F7;
  --gold-tint: #F6F0DC;
  --success: #1B7A4B; --success-bg: #E5F3EB;
  --error: #C0362C;   --error-bg: #FBEAE8;

  /* Type */
  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-base: 1rem; --fs-lg: 1.125rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.9rem, 1.35rem + 2vw, 2.75rem);
  --fs-h1: clamp(2.4rem, 1.5rem + 3.6vw, 4.25rem);

  /* Space, shape, motion */
  --gutter: 20px;
  --section-y: 72px;
  --radius: 14px; --radius-sm: 8px; --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, .06);
  --shadow: 0 2px 4px rgba(16, 42, 67, .04), 0 12px 32px -14px rgba(16, 42, 67, .22);
  --shadow-lg: 0 30px 60px -28px rgba(7, 29, 51, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .3s;
  --header-h: 70px;
  --topbar-h: 36px;
}
@media (min-width: 640px)  { :root { --gutter: 28px; --section-y: 88px; } }
@media (min-width: 1080px) { :root { --gutter: 40px; --section-y: 112px; --header-h: 82px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; font-family: var(--font-sans); font-size: var(--fs-base); line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t) var(--ease); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--navy); line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-soft); color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .cta-band :focus-visible, .is-overlay :focus-visible { outline-color: var(--gold-soft); }
.ic { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
.tbu { color: var(--muted); font-style: italic; font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.stack-sm > * + * { margin-top: 8px; }
mark { background: var(--gold-tint); color: inherit; padding: 0 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: var(--fs-sm); letter-spacing: .01em; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.btn .ic { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(31, 90, 133, .8); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: #D4B865; color: var(--navy-dark); box-shadow: 0 12px 26px -14px rgba(200, 169, 81, .95); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .75; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-sm); text-decoration: none; color: var(--blue); }
.link-arrow .ic { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Utility bar ---------- */
.topbar { background: var(--navy-dark); color: #B9C6D3; font-size: .78rem; position: relative; z-index: 61; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--topbar-h); }
.topbar a { color: #E4EBF1; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar .ic { width: 14px; height: 14px; }
.topbar-contact, .topbar-links { display: flex; gap: 20px; align-items: center; }
.topbar-contact .hide-sm, .topbar-links .hide-sm { display: none; }
.topbar-badge { color: var(--gold-soft); font-weight: 600; letter-spacing: .04em; }
.mpd-link { padding: 4px 12px; border: 1px solid rgba(200, 169, 81, .55); border-radius: 999px; color: var(--gold-soft) !important; font-weight: 700; letter-spacing: .02em; }
.mpd-link:hover { background: var(--gold); color: var(--navy-dark) !important; border-color: var(--gold); }
@media (min-width: 760px) { .topbar-contact .hide-sm, .topbar-links .hide-sm { display: inline-flex; } }
@media (max-width: 759px) { .topbar-contact { display: none; } .topbar .container { justify-content: center; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line-soft); transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.6) blur(14px); } }
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(7, 29, 51, .6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); transition: height .35s var(--ease); }
.site-header.is-scrolled .header-inner { height: calc(var(--header-h) - 10px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 0; flex: none; }
.brand-mark { height: 48px; width: auto; flex: none; transition: height .35s var(--ease); }
.site-header.is-scrolled .brand-mark { height: 42px; }
@media (min-width: 1080px) { .brand-mark { height: 56px; } .site-header.is-scrolled .brand-mark { height: 46px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { font-size: .62rem; color: var(--gold-text); letter-spacing: .2em; text-transform: uppercase; margin-top: 5px; white-space: nowrap; font-weight: 700; }
@media (min-width: 1080px) { .brand-name { font-size: 1.3rem; } }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--navy); cursor: pointer; transition: background-color var(--t), border-color var(--t), color var(--t); }
.icon-btn:hover { background: var(--cool); }
.header-cta { display: none; }
@media (min-width: 600px) { .header-cta { display: inline-flex; min-height: 44px; padding: 10px 20px; } }

/* Overlay header (home page, over the hero) */
body.is-home .topbar { position: absolute; left: 0; right: 0; top: 0; background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .12); }
body.is-home .site-header { position: fixed; left: 0; right: 0; top: var(--topbar-h); }
body.is-home .site-header.is-overlay { background: transparent; border-bottom-color: rgba(255, 255, 255, .14); backdrop-filter: none; }
body.is-home .site-header.is-overlay .brand, body.is-home .site-header.is-overlay .nav-link, body.is-home .site-header.is-overlay .nav-caret, body.is-home .site-header.is-overlay .icon-btn { color: #fff; }
body.is-home .site-header.is-overlay .brand-sub { color: var(--gold-soft); }
body.is-home .site-header.is-overlay .icon-btn:hover { background: rgba(255, 255, 255, .12); }
body.is-home .site-header.is-overlay .nav-link:hover, body.is-home .site-header.is-overlay .nav-item.is-open > .nav-link { color: var(--gold-soft); background: transparent; }
body.is-home .site-header.is-scrolled { top: 0; }

/* Desktop navigation */
.main-nav { display: none; }
@media (min-width: 1180px) { .main-nav { display: block; } .nav-toggle { display: none; } }
@media (min-width: 1180px) and (max-width: 1559px) { .header-inner .brand-text { display: none; } .header-cta { padding-inline: 16px; } }
@media (min-width: 1180px) and (max-width: 1279px) { .nav-link { padding: 0 7px; font-size: .84rem; } .nav-link::after { left: 7px; right: 7px; } }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 9px; color: var(--text); font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; letter-spacing: .005em; }
.nav-item.has-dd > .nav-link { padding-right: 2px; }
.nav-link::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 6px; height: 2px; background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.nav-item.has-dd > .nav-link::after { right: 2px; }
.nav-link:hover { color: var(--blue); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-item.is-active > .nav-link::after { transform: scaleX(1); }
.nav-link[aria-current="page"], .nav-item.is-active > .nav-link { color: var(--navy); }
.nav-caret { width: 24px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; border-radius: 6px; }
.nav-caret .ic { width: 14px; height: 14px; transition: transform var(--t) var(--ease); }
.nav-item.is-open > .nav-caret .ic { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 10px); left: -8px; min-width: 248px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 50px -24px rgba(7, 29, 51, .38); padding: 10px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; }
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dropdown.cols-2 { min-width: 460px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; }
.nav-item.align-right .dropdown { left: auto; right: -8px; }
.nav-item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s; }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: .875rem; font-weight: 600; transition: background-color .2s, color .2s; }
.dropdown a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line); flex: none; transition: background-color .2s; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--cool); color: var(--navy); }
.dropdown a:hover::before { background: var(--gold); }
.dropdown a[aria-current="page"] { background: var(--cool); color: var(--navy); }
.dropdown a[aria-current="page"]::before { background: var(--gold); }
.dropdown .dd-highlight a { color: var(--blue); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(7, 29, 51, .55); opacity: 0; transition: opacity .3s var(--ease); }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease); }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px var(--gutter); border-bottom: 1px solid var(--line-soft); min-height: var(--header-h); }
.drawer-head .brand-mark { height: 44px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px var(--gutter) 24px; overscroll-behavior: contain; }
.m-nav { list-style: none; margin: 0; padding: 0; }
.m-nav > li { border-bottom: 1px solid var(--line-soft); }
.m-nav > li > a, .m-row > a { display: flex; flex: 1; align-items: center; min-height: 56px; font-size: 1.0625rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.m-nav > li.m-mpd > a { color: var(--gold-text); gap: 10px; }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-acc-btn { width: 48px; min-height: 48px; display: grid; place-items: center; flex: none; background: var(--cool); border: 0; border-radius: 999px; color: var(--navy); cursor: pointer; }
.m-acc-btn .ic { transition: transform var(--t) var(--ease); }
.m-acc-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.m-sub { list-style: none; margin: 0 0 14px; padding: 4px 0 4px 14px; border-left: 2px solid var(--gold-soft); display: grid; }
.m-sub[hidden] { display: none; }
.m-sub a { display: flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-size: .975rem; font-weight: 500; }
.m-sub a:hover { color: var(--blue); }
.drawer-foot { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); display: grid; gap: 10px; background: var(--ivory); }
.drawer-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.no-scroll { overflow: hidden; }

/* Search overlay */
.search-panel { position: fixed; inset: 0; z-index: 110; background: rgba(7, 29, 51, .6); display: none; align-items: flex-start; justify-content: center; padding: 14vh var(--gutter) 0; }
.search-panel.is-open { display: flex; animation: fadeIn .2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.search-box { width: min(680px, 100%); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; }
.search-box form { display: flex; gap: 8px; align-items: center; }
.search-box input { flex: 1; min-width: 0; border: 0; padding: 14px; font-size: 1.0625rem; outline: none; }
.search-box form:focus-within { box-shadow: inset 0 0 0 2px var(--blue); border-radius: var(--radius-sm); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-alt { background: var(--cool); }
.section-ivory { background: var(--ivory); }
.section-navy { background: var(--navy); color: #C9D5E0; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-tight { padding-block: calc(var(--section-y) * .55); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { margin-bottom: 14px; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 44px; }
.section-head-row .section-head { margin-bottom: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section-navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--gold-soft); }
.lede { font-size: var(--fs-lg); color: var(--muted); max-width: 62ch; line-height: 1.65; }
.section-navy .lede { color: #AFC0CF; }

.grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid { gap: 26px; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.reverse > :first-child { order: 2; } }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--cool); aspect-ratio: 4 / 3; max-width: 100%; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media-frame:hover img { transform: scale(1.03); }
.media-frame.tall { aspect-ratio: 4 / 5; }
.media-frame.wide { aspect-ratio: 16 / 9; }
.rep-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(7, 29, 51, .72); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; pointer-events: none; backdrop-filter: blur(4px); }

/* Reveal on scroll — content is visible without JS */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); }
.js .reveal-img.is-visible { clip-path: inset(0 0 0 0); }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; color: #fff; background: var(--navy-dark); overflow: hidden; isolation: isolate; min-height: 640px; display: flex; align-items: flex-end; }
@media (min-width: 900px) { .hero { min-height: min(860px, 94vh); } }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(7, 29, 51, .82) 0%, rgba(7, 29, 51, .35) 28%, rgba(7, 29, 51, .55) 62%, rgba(7, 29, 51, .94) 100%),
  linear-gradient(90deg, rgba(7, 29, 51, .78) 0%, rgba(7, 29, 51, .2) 70%); }
.hero-inner { position: relative; padding-top: calc(var(--topbar-h) + var(--header-h) + 64px); padding-bottom: 150px; max-width: 760px; }
@media (min-width: 900px) { .hero-inner { padding-bottom: 190px; } }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem); line-height: 1.03; margin-bottom: 22px; font-weight: 600; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero-sub { font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); color: #D7E0E8; max-width: 56ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 210px; }
@media (min-width: 560px) { .hero-actions .btn { flex: 0 0 auto; } }
.hero-motto { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 36px 0 0; font-size: .7rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.hero-motto span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-right: 14px; vertical-align: middle; }
.hero .rep-tag { left: auto; right: var(--gutter); bottom: 132px; }
.hero-notice { position: absolute; right: var(--gutter); bottom: 180px; max-width: 300px; display: none; padding: 18px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); color: #fff; text-decoration: none; }
.hero-notice strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.hero-notice span { font-size: .8rem; color: var(--gold-soft); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
@media (min-width: 1000px) { .hero-notice { display: block; } }

/* Trust indicators */
.facts { position: relative; z-index: 3; margin-top: -96px; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -36px rgba(7, 29, 51, .55); border: 1px solid var(--line-soft); overflow: hidden; }
@media (min-width: 900px) { .facts-grid { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 24px 20px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.fact + .fact { border-left: 1px solid var(--line-soft); }
@media (max-width: 899px) { .fact:nth-child(3) { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line-soft); } }
@media (min-width: 900px) { .fact { padding: 34px 32px; } }
.fact .fact-ic { width: 26px; height: 26px; color: var(--gold); margin-bottom: 8px; }
.fact-value { font-variant-numeric: lining-nums; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.05; color: var(--navy); letter-spacing: -.01em; }
.fact-label { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; }

/* About (editorial, overlapping images) */
.about-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.05fr 1fr; gap: 88px; } }
.about-visual { position: relative; padding: 0 0 48px 0; }
@media (min-width: 640px) { .about-visual { padding: 0 64px 64px 0; } }
.about-visual .main { aspect-ratio: 4 / 4.4; border-radius: var(--radius-lg); }
.about-visual .inset { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow-lg); }
.about-visual .inset img { width: 100%; height: 100%; object-fit: cover; }
.about-visual .seal { position: absolute; left: -14px; top: 28px; width: 118px; padding: 16px 12px; background: var(--navy); color: #fff; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-lg); display: none; }
@media (min-width: 640px) { .about-visual .seal { display: block; } }
.about-visual .seal img { height: 64px; width: auto; margin: 0 auto 8px; }
.about-visual .seal span { display: block; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); font-weight: 800; }
.about-copy .prose { color: #2A3642; }
.signature { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.signature .motto-line { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--navy); }

/* Vision & mission pair */
.vm { display: grid; gap: 18px; }
@media (min-width: 640px) { .vm { grid-template-columns: 1fr 1fr; } }
.vm-card { padding: 26px; border-radius: var(--radius); background: var(--ivory); border: 1px solid #EFE8D2; position: relative; }
.vm-card h2, .vm-card h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin-bottom: 8px; }
.vm-card .eyebrow { margin-bottom: 8px; }

/* Motto band */
.motto { background: var(--ivory); border-block: 1px solid #EFE8D2; }
.motto .section-head h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.motto-grid { display: grid; gap: 0; }
@media (min-width: 860px) { .motto-grid { grid-template-columns: repeat(3, 1fr); } }
.motto-item { padding: 26px 8px; border-top: 1px solid #E6DCBF; }
@media (min-width: 860px) { .motto-item { padding: 8px 40px; border-top: 0; border-left: 1px solid #E6DCBF; } .motto-item:first-child { border-left: 0; padding-left: 0; } }
.motto-item .num { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--gold-text); }
.motto-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; color: var(--navy); margin: 4px 0 8px; }
.motto-item p { margin: 0; color: var(--muted); }

/* Why BSD — sticky heading + feature list */
.why-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .why-grid { grid-template-columns: .85fr 1.15fr; gap: 80px; } .why-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }
.why-list { display: grid; gap: 0; }
@media (min-width: 640px) { .why-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.why-item { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.why-item .ic-wrap { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--blue); transition: background-color var(--t), color var(--t), border-color var(--t); }
.why-item:hover .ic-wrap { background: var(--navy); color: var(--gold-soft); border-color: var(--navy); }
.why-item h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.why-item p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

/* Academic journey timeline */
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.journey-step { position: relative; padding: 0 0 34px 44px; }
.journey-step::before { content: ""; position: absolute; left: 11px; top: 30px; bottom: 0; width: 1px; background: var(--line); }
.journey-step:last-child::before { display: none; }
.journey-dot { position: absolute; left: 0; top: 4px; width: 23px; height: 23px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); box-shadow: 0 0 0 5px var(--gold-tint); }
.journey-step a { text-decoration: none; color: inherit; display: block; }
.journey-classes { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.journey-step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin: 6px 0 8px; transition: color var(--t); }
.journey-step p { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 10px; }
.journey-step a:hover h3 { color: var(--blue); }
@media (min-width: 1000px) {
  .journey { grid-template-columns: repeat(5, 1fr); gap: 28px; }
  .journey::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--line) 60%); }
  .journey-step { padding: 52px 0 0; }
  .journey-step::before { display: none; }
  .journey-dot { top: 0; }
}
.journey-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); align-items: center; justify-content: space-between; }

/* Facilities mosaic */
.mosaic { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; } .mosaic .tile:first-child { grid-column: span 2; grid-row: span 2; } }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #fff; text-decoration: none; aspect-ratio: 4 / 3; isolation: isolate; }
@media (min-width: 1000px) { .mosaic .tile { aspect-ratio: auto; } }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 29, 51, 0) 35%, rgba(7, 29, 51, .88) 100%); transition: background .4s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile:hover::after { background: linear-gradient(180deg, rgba(7, 29, 51, .1) 20%, rgba(7, 29, 51, .92) 100%); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.tile-kicker { font-size: .66rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }
.tile h3 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; margin: 4px 0 0; display: flex; align-items: center; gap: 10px; }
.mosaic .tile:first-child h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); }
.tile h3 .ic { width: 18px; height: 18px; opacity: 0; transform: translateX(-6px); transition: opacity var(--t), transform var(--t); }
.tile:hover h3 .ic { opacity: 1; transform: none; }
.tile p { margin: 6px 0 0; font-size: var(--fs-sm); color: #D2DBE4; max-width: 46ch; }
.tile .rep-tag { top: 12px; bottom: auto; }

/* Principal */
.principal-wrap { position: relative; }
.principal { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .principal { grid-template-columns: 340px 1fr; gap: 80px; } }
.principal-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, var(--navy), var(--navy-dark)); aspect-ratio: 4 / 5; display: grid; place-items: center; color: var(--gold-soft); max-width: 340px; }
.principal-photo img { width: 100%; height: 100%; object-fit: cover; }
.principal-photo .ic { width: 72px; height: 72px; opacity: .55; }
@media (max-width: 899px) { .principal-photo { max-width: 200px; } .principal-photo.no-photo { display: none; } }
.principal blockquote { position: relative; margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 1.05rem + .9vw, 1.85rem); line-height: 1.5; color: var(--navy); }
.principal blockquote::before { content: "\201C"; position: absolute; left: -6px; top: -58px; font-size: 6rem; line-height: 1; color: var(--gold); font-style: normal; opacity: .55; }
.principal-sign { margin-top: 26px; display: flex; flex-direction: column; }
.principal-sign strong { color: var(--navy); font-size: 1.05rem; }
.principal-sign span { color: var(--muted); font-size: var(--fs-sm); }

/* Student life */
.life-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .life-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; } }
.life-list { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 0; }
.life-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.life-list .ic { width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }
.life-list strong { display: block; color: #fff; }
.life-list span { color: #AFC0CF; font-size: var(--fs-sm); }
.life-photos { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; gap: 12px; }
@media (min-width: 640px) { .life-photos { grid-auto-rows: 150px; } }
.life-photos .ph { position: relative; overflow: hidden; border-radius: var(--radius); padding: 0; border: 0; background: var(--navy-dark); cursor: zoom-in; }
.life-photos .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.life-photos .ph:hover img { transform: scale(1.06); }
.life-photos .ph:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.life-photos .ph:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.life-photos .ph:nth-child(3) { grid-column: span 2; grid-row: span 1; }
.life-photos .ph:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.life-photos .ph:nth-child(5) { grid-column: span 2; grid-row: span 1; }
.life-photos .ph:nth-child(6) { grid-column: span 2; grid-row: span 1; }
.life-photos .rep-tag { font-size: .58rem; left: 8px; bottom: 8px; }

/* Updates */
.updates { display: grid; gap: 48px; }
@media (min-width: 960px) { .updates { grid-template-columns: 1.25fr 1fr; gap: 64px; } }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.panel-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin: 0; }

/* Blog — editorial layout */
.blog-feature { display: grid; gap: 26px; }
@media (min-width: 1000px) { .blog-feature { grid-template-columns: 1.4fr 1fr; gap: 32px; } }
.post-lead { position: relative; display: grid; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line-soft); }
.post-lead .card-media { aspect-ratio: 16 / 9; }
.post-lead .card-body { padding: 28px; }
.post-lead h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.post-side { display: grid; gap: 18px; align-content: start; }
.post-row { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); transition: box-shadow var(--t), border-color var(--t); }
@media (min-width: 640px) { .post-row { grid-template-columns: 150px 1fr; } }
.post-row:hover { box-shadow: var(--shadow); border-color: var(--line); }
.post-row .thumb { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--cool); }
.post-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row h3 { font-size: 1.02rem; margin: 6px 0 0; line-height: 1.35; }
.post-row h3 a { color: var(--navy); text-decoration: none; }
.post-row h3 a::after { content: ""; position: absolute; inset: 0; }
.post-row:hover h3 a { color: var(--blue); }

/* Compliance card (CBSE Mandatory Public Disclosure) */
.compliance { display: grid; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
@media (min-width: 900px) { .compliance { grid-template-columns: 340px 1fr; } }
.compliance-badge { position: relative; background: linear-gradient(160deg, var(--navy), var(--navy-dark)); color: #fff; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; overflow: hidden; }
.compliance-badge::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(200, 169, 81, .35); }
.compliance-badge .doc { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; border: 1px solid rgba(200, 169, 81, .6); color: var(--gold-soft); }
.compliance-badge .doc .ic { width: 28px; height: 28px; }
.compliance-badge h2 { color: #fff; font-size: clamp(1.5rem, 1.25rem + .8vw, 1.9rem); margin: 0; }
.compliance-badge .kicker { font-size: .68rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); }
.compliance-body { padding: 30px; display: grid; gap: 22px; align-content: center; }
@media (min-width: 900px) { .compliance-body { padding: 36px 40px; } }
.compliance-body p { margin: 0; color: var(--muted); max-width: 62ch; }
.compliance-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; padding: 18px 0; border-block: 1px solid var(--line-soft); }
.compliance-facts dt { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.compliance-facts dd { margin: 3px 0 0; font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.compliance-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.compliance-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.compliance-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--cool); color: var(--navy); text-decoration: none; font-size: var(--fs-xs); font-weight: 700; transition: background-color var(--t), color var(--t); }
.compliance-links a:hover { background: var(--blue-tint); color: var(--blue); }
.compliance-links .ic { width: 15px; height: 15px; color: var(--gold-text); }

/* CTA band (image-backed) */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); color: #D2DCE6; padding: 48px 26px; display: grid; gap: 26px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 76px 72px; } }
.cta-band .cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 29, 51, .94) 0%, rgba(16, 42, 67, .78) 50%, rgba(16, 42, 67, .3) 100%); }
.cta-band h2 { color: #fff; margin-bottom: 10px; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.cta-band p { margin: 0; max-width: 56ch; font-size: var(--fs-lg); }
.cta-band .hero-actions { position: relative; }
.cta-band .rep-tag { left: auto; right: 14px; top: 14px; bottom: auto; }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #D2DCE6; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 29, 51, .94) 0%, rgba(7, 29, 51, .78) 45%, rgba(16, 42, 67, .45) 100%); }
.page-hero:not(.has-img)::before { background: radial-gradient(700px 320px at 85% 20%, rgba(31, 90, 133, .55), transparent 70%), linear-gradient(160deg, var(--navy), var(--navy-dark)); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold) 0, var(--gold) 120px, transparent 120px); }
.page-hero-inner { padding-block: 34px 56px; position: relative; }
@media (min-width: 900px) { .page-hero-inner { padding-block: 44px 96px; } }
.page-hero h1 { color: #fff; margin: 26px 0 14px; max-width: 18ch; font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.75rem); line-height: 1.06; }
.page-hero p { max-width: 58ch; color: #C7D3DE; font-size: var(--fs-lg); margin: 0; }
.page-hero .eyebrow { margin: 24px 0 0 !important; }
.page-hero .eyebrow + h1 { margin-top: 12px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-xs); font-weight: 600; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; color: #9FB2C4; }
.breadcrumbs li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.breadcrumbs a { color: #E4EBF1; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current] { color: #fff; }
.page-hero .rep-tag { left: auto; right: var(--gutter); }

/* In-page sub navigation */
.subnav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(10px); }
.subnav-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav-scroll::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 700; color: var(--text); text-decoration: none; background: #fff; }
.subnav a:hover, .subnav a.is-active { border-color: var(--navy); color: #fff; background: var(--navy); }

/* Cards */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.card.is-link:hover { border-color: var(--line); box-shadow: var(--shadow); transform: translateY(-4px); }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--cool); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card.is-link:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body h3 a { color: var(--navy); text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-body h3 a:focus-visible { outline: none; }
.card.is-link:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.card.is-link:hover h3 a { color: var(--blue); }
.card-body p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-xs); color: var(--muted); align-items: center; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta .ic { width: 14px; height: 14px; }
.card-foot { margin-top: auto; padding-top: 10px; }
.card-eyebrow { font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.explore-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .02em; background: var(--blue-tint); color: var(--blue-dark); text-decoration: none; position: relative; z-index: 2; }
.tag .ic { width: 12px; height: 12px; }
a.tag:hover { background: #DCE8F2; }
.tag-gold { background: var(--gold-tint); color: #6B5214; }
.tag-red { background: var(--error-bg); color: var(--error); }
.tag-green { background: var(--success-bg); color: var(--success); }
.tag-gray { background: var(--cool); color: #4A5866; }

/* Feature tiles */
.feature { position: relative; padding: 28px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); height: 100%; transition: box-shadow var(--t), transform var(--t), border-color var(--t); }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line); }
.feature-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-tint); color: var(--blue); margin-bottom: 18px; transition: background-color var(--t), color var(--t); }
.feature:hover .feature-icon { background: var(--navy); color: var(--gold-soft); }
.feature-icon .ic { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 8px; font-size: 1.08rem; }
.feature p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.section-alt .feature { border-color: transparent; }

/* Stage cards */
.stage-card { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; overflow: hidden; transition: box-shadow var(--t), transform var(--t), border-color var(--t); }
.stage-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.stage-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.stage-card:hover::after { transform: scaleX(1); }
.stage-card .stage-classes { font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.stage-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin: 0; }
.stage-card p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.stage-card .link-arrow { margin-top: auto; padding-top: 10px; }

/* Notices */
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 18px; padding: 18px 12px; border-bottom: 1px solid var(--line-soft); position: relative; align-items: center; border-radius: var(--radius-sm); transition: background-color .2s; }
.notice-item:hover { background: var(--cool); }
.notice-item::after { content: ""; width: 8px; height: 8px; border-top: 2px solid var(--line); border-right: 2px solid var(--line); transform: rotate(45deg); margin-right: 6px; transition: border-color .2s, transform .2s; }
.notice-item:hover::after { border-color: var(--blue); transform: translateX(3px) rotate(45deg); }
.date-tile { width: 60px; text-align: center; border-radius: 12px; background: var(--blue-tint); padding: 8px 0; line-height: 1.1; align-self: start; }
.date-tile .d { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy); }
.date-tile .m { display: block; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.notice-item h3 { font-size: 1rem; font-weight: 700; margin: 0 0 5px; line-height: 1.4; }
.notice-item h3 a { color: var(--navy); text-decoration: none; }
.notice-item h3 a::after { content: ""; position: absolute; inset: 0; }
.notice-item:hover h3 a { color: var(--blue); }
.notice-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Events */
.event-item { display: grid; grid-template-columns: 66px 1fr; gap: 18px; padding: 20px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); position: relative; transition: box-shadow var(--t), transform var(--t), border-color var(--t); }
.event-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line); }
.event-item .date-tile { width: 66px; background: var(--navy); }
.event-item .date-tile .d { color: #fff; }
.event-item .date-tile .m { color: var(--gold-soft); }
.event-item h3 { font-size: 1.05rem; margin: 0 0 4px; }
.event-item h3 a { color: var(--navy); text-decoration: none; }
.event-item h3 a::after { content: ""; position: absolute; inset: 0; }
.event-item p { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-sm); }

/* Gallery */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: var(--fs-sm); font-weight: 700; color: var(--text); text-decoration: none; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; grid-auto-flow: dense; }
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--cool); aspect-ratio: 1 / 1; cursor: zoom-in; }
@media (min-width: 720px) { .gallery-item:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7, 29, 51, .25); color: #fff; }
.gallery-item .play span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(7, 29, 51, .8); }
.gallery-item .rep-tag { left: 8px; bottom: 8px; font-size: .6rem; }
.gallery-item[hidden] { display: none; }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; color: #fff; font-size: var(--fs-xs); font-weight: 700; text-align: left; background: linear-gradient(transparent, rgba(7, 29, 51, .85)); opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; }
.gallery-item:has(.rep-tag) .gallery-caption { padding-bottom: 34px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(4, 14, 26, .94); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); }
.lightbox-bar .icon-btn { color: #fff; }
.lightbox-bar .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.lightbox-stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; position: relative; }
.lightbox-stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; }
.lightbox-stage .video-wrap { width: min(1100px, 100%); aspect-ratio: 16 / 9; }
.lightbox-stage iframe { width: 100%; height: 100%; border: 0; border-radius: 6px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .12) !important; color: #fff !important; }
.lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
.lightbox-caption { padding: 12px var(--gutter) 22px; text-align: center; font-size: var(--fs-sm); color: #C7D3DE; min-height: 48px; }

/* Prose */
.prose { color: #2A3642; font-size: 1.04rem; line-height: 1.8; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.85rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--gold-text); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--navy); }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: var(--fs-sm); display: block; overflow-x: auto; border-radius: var(--radius-sm); }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--navy); color: #fff; font-weight: 700; border-color: var(--navy); }
.prose tbody tr:nth-child(even) { background: var(--cool); }
.prose a { word-break: break-word; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps.steps-4 { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 28px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; position: relative; transition: box-shadow var(--t), transform var(--t); }
.steps li:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--gold); margin-bottom: 14px; }
.steps h3 { margin-bottom: 6px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 700px) { .checklist.two { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.checklist .ic { color: var(--success); width: 20px; height: 20px; margin-top: 3px; }
.checklist strong { display: block; color: var(--navy); font-weight: 700; }
.checklist span { color: var(--muted); font-size: var(--fs-sm); }

/* Accordion */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .ic { flex: none; transition: transform var(--t); color: var(--gold-text); }
.accordion summary:hover { color: var(--blue); }
.accordion details[open] summary .ic { transform: rotate(180deg); }
.accordion .acc-body { padding: 0 0 20px; color: var(--text); max-width: 72ch; }

/* Documents */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-item { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); position: relative; transition: box-shadow var(--t), border-color var(--t); }
.doc-item:hover { box-shadow: var(--shadow); border-color: var(--line); }
@media (min-width: 640px) { .doc-item { grid-template-columns: 46px 1fr auto; } }
.doc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-tint); color: var(--gold-text); display: grid; place-items: center; }
.doc-item h3 { font-size: .98rem; margin: 0; }
.doc-item h3 a { color: var(--navy); }
.doc-item p { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.doc-item .btn { grid-column: 1 / -1; }
@media (min-width: 640px) { .doc-item .btn { grid-column: auto; } }

/* Mandatory disclosure page */
.disclosure-layout { display: grid; gap: 40px; }
@media (min-width: 1080px) { .disclosure-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: start; } .disclosure-nav { position: sticky; top: calc(var(--header-h) + 24px); } }
.disclosure-nav h2 { font-size: .72rem; font-family: var(--font-sans); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.disclosure-toc { display: grid; gap: 6px; }
.disclosure-toc a { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); text-decoration: none; color: var(--navy); font-weight: 700; font-size: var(--fs-sm); background: #fff; transition: border-color .2s, background-color .2s; }
.disclosure-toc a:hover { border-color: var(--navy); background: var(--cool); }
.disclosure-toc .code, .disclosure-section h2 .code { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--navy); color: var(--gold-soft); font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.disclosure-section { margin-top: 56px; scroll-margin-top: calc(var(--header-h) + 20px); }
.disclosure-section:first-of-type { margin-top: 0; }
.disclosure-section h2 { display: flex; gap: 14px; align-items: center; font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); }
.disclosure-section h2 .code { width: 40px; height: 40px; font-size: 1.15rem; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ok { background: var(--success-bg); color: var(--success); }
.status-tbu { background: var(--cool); color: var(--muted); }
.d-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; font-size: var(--fs-sm); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.d-table caption { text-align: left; font-weight: 800; color: var(--navy); padding: 0 0 12px; font-size: 1rem; }
.d-table th, .d-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.d-table tr:last-child td { border-bottom: 0; }
.d-table thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.d-table tbody tr:hover { background: var(--ivory); }
.d-table tbody th { color: var(--navy); font-weight: 700; width: 38%; background: var(--cool); }
.d-table .sno { width: 56px; }
.d-table td.sno { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 700; }
.d-table td[data-label="Details"] { min-width: 210px; width: 34%; }
.d-table .doc-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.d-table .doc-link .ic { width: 16px; height: 16px; }
.d-details { display: grid; gap: 6px; justify-items: start; }
@media (max-width: 719px) {
  .d-table.stack thead { display: none; }
  .d-table.stack, .d-table.stack tbody, .d-table.stack tr, .d-table.stack td, .d-table.stack th { display: block; width: 100%; }
  .d-table.stack tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .d-table.stack td, .d-table.stack th { border: 0; padding: 4px 16px; background: none; }
  .d-table.stack td::before { content: attr(data-label); display: block; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
  .d-table.stack td.sno { display: none; }
  .d-table.stack caption { display: block; width: 100%; padding: 14px 16px 8px; border-bottom: 1px solid var(--line-soft); }
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

/* Faculty */
.person { text-align: left; }
.person-photo { aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--blue-tint), var(--cool)); display: grid; place-items: center; color: var(--blue); overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.person:hover .person-photo img { transform: scale(1.04); }
.person-photo .ic { width: 56px; height: 56px; opacity: .45; }
.person .card-body { gap: 4px; }
.person h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.person .role { color: var(--blue); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 30px 60px -40px rgba(7, 29, 51, .5); }
@media (min-width: 700px) { .form-card { padding: 36px; } }
.form-card > h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: var(--fs-sm); color: var(--navy); margin-bottom: 7px; }
.field .req { color: var(--error); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="search"], .field input[type="file"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C3CED7; }
.field textarea { min-height: 128px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231F5A85' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 90, 133, .14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field .error-text { display: none; color: var(--error); font-size: var(--fs-xs); margin-top: 6px; font-weight: 700; }
.field.has-error .error-text { display: block; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-bottom: 18px; padding: 14px 16px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 600; }
.form-status.is-success { display: flex; gap: 10px; background: var(--success-bg); color: var(--success); border: 1px solid #BFE0CC; }
.form-status.is-error { display: flex; gap: 10px; background: var(--error-bg); color: var(--error); border: 1px solid #F1C6C1; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; margin-top: 10px; }
.form-foot p { margin: 0; font-size: var(--fs-xs); color: var(--muted); max-width: 46ch; }
.form-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .feature-icon { width: 46px; height: 46px; margin: 0; flex: none; border-radius: 12px; }
.contact-list strong { display: block; color: var(--navy); font-size: var(--fs-sm); }
.contact-list a, .contact-list span.v { color: var(--text); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--cool), var(--blue-tint)); box-shadow: var(--shadow); max-width: 100%; }
@media (min-width: 900px) { .map-frame { aspect-ratio: 16 / 11; } }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-empty { display: grid; place-items: center; height: 100%; text-align: center; padding: 24px; color: var(--muted); }
.map-empty .ic { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--blue); }

/* Empty, alerts, pagination */
.empty-state { text-align: center; padding: 44px 22px; border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; color: var(--muted); }
.empty-state .ic { width: 38px; height: 38px; margin: 0 auto 12px; color: var(--gold); }
.empty-state strong { display: block; color: var(--navy); font-size: 1.08rem; margin-bottom: 4px; }
.empty-state p { margin: 0 auto; max-width: 48ch; font-size: var(--fs-sm); }
.alert { display: flex; gap: 12px; padding: 14px 18px; border-radius: 10px; background: var(--blue-tint); color: var(--navy); font-size: var(--fs-sm); border: 1px solid #D3E2EE; }
.alert .ic { color: var(--blue); margin-top: 2px; }
.alert-gold { background: var(--gold-tint); border-color: #EADFB8; }
.alert-gold .ic { color: var(--gold-text); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 44px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 700; font-size: var(--fs-sm); background: #fff; }
.pagination a:hover { border-color: var(--navy); }
.pagination [aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .disabled { color: var(--line); }
.search-inline { display: flex; gap: 8px; max-width: 560px; }
.search-inline input { flex: 1; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; background: #fff; }
.search-inline input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 90, 133, .14); }
.search-inline .btn { min-height: 48px; padding-inline: 18px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.result-count { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

/* Article */
.article-head { padding-block: 40px 0; }
.article-head .breadcrumbs li { color: var(--muted); }
.article-head .breadcrumbs li + li::before { background: var(--gold); }
.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); margin: 18px 0 18px; line-height: 1.1; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: var(--fs-sm); align-items: center; font-weight: 600; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta .ic { width: 16px; height: 16px; color: var(--gold-text); }
.article-cover { margin: 34px 0 8px; }
.article-cover .media-frame { aspect-ratio: 21 / 9; }
.article-body { padding-block: 32px 8px; }
.article-layout { display: grid; gap: 44px; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; } }
.article-aside { display: grid; gap: 22px; align-content: start; }
@media (min-width: 1000px) { .article-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-card { padding: 22px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; }
.aside-card h2 { font-size: .74rem; margin-bottom: 12px; font-family: var(--font-sans); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.aside-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.aside-links a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.aside-links li:last-child a { border-bottom: 0; }
.aside-links a:hover { color: var(--blue); }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share a, .share button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.share a:hover, .share button:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.share .ic { width: 18px; height: 18px; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* Sub-pages */
.subpage-layout { display: grid; gap: 44px; }
@media (min-width: 1000px) { .subpage-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: start; } }
.subpage-main { min-width: 0; }
.subpage-aside { display: grid; gap: 20px; }
@media (min-width: 1000px) { .subpage-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.side-nav h2 { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0; text-transform: none; color: var(--navy); margin: 0 0 10px; font-weight: 600; }
.side-nav h2 a { color: var(--navy); text-decoration: none; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li a { display: block; padding: 10px 14px; margin: 0 -14px; border-radius: 0 10px 10px 0; color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; border-left: 2px solid transparent; transition: background-color .2s, border-color .2s, color .2s; }
.side-nav li a:hover { background: var(--cool); color: var(--navy); }
.side-nav li a[aria-current="page"] { background: var(--cool); color: var(--navy); font-weight: 800; border-left-color: var(--gold); }
.aside-cta { text-align: center; background: linear-gradient(160deg, var(--navy), var(--navy-dark)); border: 0; color: #B9C6D3; }
.aside-cta img { height: 70px; width: auto; margin: 0 auto 10px; }
.aside-cta h2 { color: #fff; font-family: var(--font-display); font-size: 1.45rem; margin: 0 0 4px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); }
.pager-link { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: var(--radius); text-decoration: none; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s; }
.pager-link:hover { border-color: var(--line); box-shadow: var(--shadow); color: var(--text); }
.pager-link span { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--muted); font-weight: 700; }
.pager-link span .ic { width: 14px; height: 14px; }
.pager-link strong { color: var(--navy); font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.pager-link.next { text-align: right; justify-items: end; grid-column: 2; }

/* Hub tiles (facilities, student life) */
.tiles { display: grid; gap: 16px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } .tiles .tile:first-child { grid-column: span 2; } }
.tiles .tile { aspect-ratio: 4 / 3; }
@media (min-width: 1000px) { .tiles .tile { aspect-ratio: auto; min-height: 320px; } }

/* Footer */
.site-footer { background: var(--navy-dark); color: #A9B9C8; font-size: var(--fs-sm); position: relative; }
.footer-mpd { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-mpd .container { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding-block: 26px; }
.footer-mpd p { margin: 0; color: #C9D5E0; display: flex; align-items: center; gap: 14px; }
.footer-mpd p .ic { width: 28px; height: 28px; color: var(--gold); }
.footer-mpd strong { color: #fff; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; display: block; }
.site-footer .footer-main { padding-top: 64px; }
.site-footer a { color: #D2DCE6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 56px; } .footer-brand { grid-column: auto; } }
.footer-contact-col { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-contact-col { grid-column: auto; } }
.site-footer h2 { font-family: var(--font-sans); color: var(--gold-soft); font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand .brand-mark { height: 76px; }
.footer-brand .brand-sub { color: var(--gold-soft); }
.footer-brand p { max-width: 40ch; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.social a:hover { border-color: var(--gold); text-decoration: none; }
.social .ic { width: 18px; height: 18px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .ic { width: 18px; height: 18px; color: var(--gold); margin-top: 3px; }
.footer-bottom { margin-top: 56px; padding: 22px 0 calc(22px + var(--mobile-bar-h, 0px)); border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: var(--fs-xs); }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Mobile action bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line-soft); box-shadow: 0 -10px 30px -18px rgba(7, 29, 51, .45); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(10px); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; font-size: .7rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.mobile-bar a .ic { width: 20px; height: 20px; color: var(--blue); }
.mobile-bar a.primary { background: var(--navy); color: #fff; }
.mobile-bar a.primary .ic { color: var(--gold-soft); }
body.has-mobile-bar { --mobile-bar-h: 60px; }
@media (min-width: 900px) { .mobile-bar { display: none; } body.has-mobile-bar { --mobile-bar-h: 0px; } }
.wa-fab { display: none; }
@media (min-width: 900px) {
  .wa-fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1F7A4D; color: #fff; box-shadow: var(--shadow-lg); transition: transform .25s var(--ease); }
  .wa-fab:hover { transform: scale(1.06); color: #fff; }
  .wa-fab .ic { width: 28px; height: 28px; }
}

/* Error pages */
.error-page { padding-block: 80px 104px; text-align: center; }
.error-code { font-family: var(--font-display); font-size: clamp(4.5rem, 3rem + 7vw, 8rem); font-weight: 700; color: var(--navy); line-height: 1; }
.error-code span { color: var(--gold); font-style: italic; }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

@media print {
  .topbar, .site-header, .site-footer, .mobile-bar, .wa-fab, .subnav, .share { display: none !important; }
  .page-hero { background: none; color: #000; } .page-hero h1 { color: #000; }
}

/* Hero headline accent, home section spacing tweaks */
.hero h1 .accent { font-style: italic; color: var(--gold-soft); font-weight: 500; }
.section-head .lede { margin-bottom: 0; }
.facts + .section { padding-top: calc(var(--section-y) * .9); }
.principal-wrap.section-ivory { border-block: 1px solid #EFE8D2; }
.ach-card { position: relative; padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); border-top: 3px solid var(--gold); }
.ach-card .year { font-family: var(--font-display); font-style: italic; color: var(--gold-text); font-size: 1.1rem; }
.ach-card h3 { margin: 6px 0 8px; }
.ach-card p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.admissions-strip { background: var(--gold-tint); border-bottom: 1px solid #EADFB8; padding-block: 12px; font-size: var(--fs-sm); color: var(--navy); }
.life-photos .gallery-item { aspect-ratio: auto; }
.footer-mpd span { display: block; }
.post-lead .card { border: 0; border-radius: 0; height: 100%; }
.post-lead .card-media { aspect-ratio: 16 / 9; }
.post-lead .card-body { padding: 28px; }
.post-lead .card-body h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); }
.principal-wrap { background: var(--ivory); border-block: 1px solid #EFE8D2; }
.date-tile .d { font-variant-numeric: lining-nums; line-height: 1.15; }
.site-footer .btn-gold, .site-footer .btn-gold:hover { color: var(--navy-dark); text-decoration: none; }
.principal blockquote { padding-top: 34px; }
.principal blockquote::before { top: -14px; font-size: 4.5rem; }
.principal-wrap { background: #fff; border: 0; }
.principal-photo.no-photo img { width: 46%; height: auto; object-fit: contain; opacity: .9; }
.hero .rep-tag { top: calc(var(--topbar-h) + var(--header-h) + 14px); bottom: auto; }
.signature { flex-wrap: wrap; }
@media (max-width: 639px) { .life-photos .ph:nth-child(n+4) { display: none; } .signature .motto-line { font-size: 1.05rem; } }
.rep-tag { white-space: nowrap; }
.disclosure-main { min-width: 0; }
.disclosure-meta dl { margin: 0; display: grid; gap: 12px; }
.disclosure-meta dt { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.disclosure-meta dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); font-size: var(--fs-sm); }
@media (max-width: 1079px) { .disclosure-toc { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
@media print { .disclosure-nav { display: none; } .disclosure-layout { display: block; } }
@media (min-width: 900px) { .page-hero-inner { padding-block: 48px 104px; } }

/* ===== Final home structure: welcome + why, explore gateway, 3-column updates ===== */
.why-mini-title { font-family: var(--font-sans); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); margin: 28px 0 4px; }
.why-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 28px; }
@media (min-width: 640px) { .why-mini { grid-template-columns: 1fr 1fr; } }
.why-mini .why-item { padding: 16px 0; grid-template-columns: 40px 1fr; gap: 14px; }
.why-mini .ic-wrap { width: 40px; height: 40px; border-radius: 10px; }
.why-mini .ic-wrap .ic { width: 18px; height: 18px; }
.why-mini h3 { font-size: .98rem; margin: 2px 0 4px; }
.why-mini p { font-size: .86rem; line-height: 1.55; }
.explore { display: grid; gap: 16px; }
.explore .tile { aspect-ratio: 4 / 3; }
@media (min-width: 640px) { .explore { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .explore { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 340px; gap: 18px; }
  .explore .tile { aspect-ratio: auto; }
  .explore .tile:nth-child(1), .explore .tile:nth-child(4) { grid-column: span 7; }
  .explore .tile:nth-child(2), .explore .tile:nth-child(3) { grid-column: span 5; }
  .explore .tile h3 { font-size: 2rem; }
}
.explore .tile-body { padding: 26px 28px; }
.explore .tile p { opacity: .92; }
.explore .tile .rep-tag { top: 14px; left: 14px; bottom: auto; }
@media (min-width: 1100px) { .updates.has-post { grid-template-columns: 1.15fr 1fr 1fr; gap: 44px; } }
.updates .post-card, .updates .card { height: auto; }
.principal-wrap { padding-block: calc(var(--section-y) * .8); }
.principal-wrap .principal blockquote { font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); }
@media (min-width: 900px) { .principal-wrap .principal { grid-template-columns: 280px 1fr; } .principal-wrap .principal-photo { max-width: 280px; } }
body.is-home .footer-mpd { display: none; } /* the home page already has the disclosure card */
.section-compliance { padding-bottom: calc(var(--section-y) * .35); }
.section-compliance + .section-tight { padding-top: calc(var(--section-y) * .35); padding-bottom: var(--section-y); }
@media (min-width: 640px) and (max-width: 999px) { .explore .tile p { display: none; } .explore .tile-body { padding: 20px; } }
.explore .tile::after { background: linear-gradient(180deg, rgba(7, 29, 51, .05) 25%, rgba(7, 29, 51, .9) 100%); }
