:root { --navy: #13294A; --navy-2: #1B3A63; --navy-3: #234A7A; --ink: #14243B; --ink-2: #44526A; --line: #DDE3EC; --paper: #F5F7FA; --gold: #D4A84B; --gold-ink: #7A5410; --soft: #B9C9E2; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.65; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Jost', Inter, sans-serif; margin: 0; letter-spacing: -.005em; line-height: 1.12; }
p { margin: 0; } a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1E1708; padding: 10px 16px; border-radius: 8px; z-index: 50; font-weight: 600; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(19, 41, 74, .95); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); }
.bar .wrap { display: flex; align-items: center; gap: 26px; height: 72px; }
.word { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-weight: 700; font-size: 18px; }
.word img { width: 38px; height: 38px; border-radius: 10px; display: block; }
.bar nav { display: flex; gap: 26px; margin-left: auto; }
.bar nav a { color: var(--soft); text-decoration: none; font-size: 15.5px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.bar nav a:hover, .bar nav a[aria-current] { color: #fff; border-bottom-color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; }
.btn.gold { background: var(--gold); color: #1E1708; } .btn.gold:hover { background: #DFB75E; }
.btn.line { border-color: rgba(255,255,255,.35); color: #fff; } .btn.line:hover { border-color: #fff; }

/* hero (index pages) */
.hero2 { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; padding: 72px 0 64px; }
.hero2::before, .phead::before, .thead::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><path d='M36 0 72 36 36 72 0 36Z' fill='none' stroke='white' stroke-opacity='.06' stroke-width='1.5'/></svg>"); -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 75%); mask-image: linear-gradient(115deg, #000 0%, transparent 75%); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.hero2 h1 { font-size: clamp(34px, 4.8vw, 58px); font-weight: 800; margin: 14px 0 18px; max-width: 880px; }
.lead { font-size: 20px; color: var(--soft); max-width: 700px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: #8FA6C9; margin-bottom: 22px; }
.crumbs a { color: var(--soft); text-decoration: none; } .crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-current] { color: #fff; opacity: .8; max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* lists and cards */
.list { padding: 56px 0 88px; background: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chips a { text-decoration: none; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); background: #fff; }
.chips a:hover { border-color: var(--navy-2); color: var(--navy); }
.chips a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--navy-2); transform: translateY(-2px); }
.cv { position: relative; height: 112px; background: var(--navy); color: var(--gold); display: flex; align-items: flex-end; justify-content: space-between; padding: 16px 18px; isolation: isolate; overflow: hidden; }
.cv::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 72 72'><path d='M36 0 72 36 36 72 0 36Z' fill='none' stroke='white' stroke-opacity='.08' stroke-width='1.5'/></svg>"); }
.cv .cvr { position: absolute; right: 16px; top: 14px; opacity: .95; }
.cv small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.cat-fees .cv, .cv.cat-fees, .cv.cat-parents, .cv.cat-safety { background: var(--navy-2); }
.cv.cat-admissions, .cv.cat-teachers, .cv.cat-operations { background: var(--navy-3); }
.cb { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 21px; font-weight: 600; color: var(--ink); }
.card p { font-size: 15.5px; color: var(--ink-2); }
.card .meta { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--gold-ink); padding-top: 6px; }

/* article and term headers */
.phead, .thead { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; padding: 56px 0 54px; }
.phead h1, .thead h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; margin: 14px 0 18px; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.tag:hover { text-decoration: underline; }
.byline { margin-top: 22px; font-size: 14.5px; color: #8FA6C9; }
.aka { margin-top: 14px; font-size: 14.5px; color: #8FA6C9; }

/* body with table of contents */
.pbody { display: grid; grid-template-columns: 250px minmax(0, 700px); gap: 64px; padding-top: 56px; padding-bottom: 72px; justify-content: center; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14.5px; }
.toc b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc li a:hover { color: var(--navy); border-left-color: var(--gold); }
.prose { font-size: 18px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin: 52px 0 16px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin: 0 0 10px; padding-left: 4px; }
.prose li::marker { color: var(--gold-ink); font-weight: 700; }
.prose a { color: var(--navy-3); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a.gl { text-decoration: underline dotted var(--gold-ink); text-decoration-thickness: 2px; color: inherit; }
.prose a.gl:hover { color: var(--navy-3); }
.note { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--gold); background: #FBF5E6; border-radius: 0 12px 12px 0; }
.note span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }
.note p { margin: 0; font-size: 17px; }
.short { margin: 48px 0 12px; padding: 28px 30px; background: var(--navy); color: #fff; border-radius: 18px; }
.short b { font-family: 'Jost', Inter, sans-serif; font-size: 22px; font-weight: 800; display: block; margin-bottom: 12px; }
.short ul { margin: 0; padding-left: 22px; } .short li { margin-bottom: 8px; color: #DCE6F6; } .short li::marker { color: var(--gold); }
.short p { color: #DCE6F6; margin: 0; } .short a { color: var(--gold); }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 26px; color: var(--gold-ink); font-weight: 500; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); margin: 0; }
.terms { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.terms b { width: 100%; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.terms a { text-decoration: none; padding: 8px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--navy-2); }
.terms a:hover { border-color: var(--navy-2); }
.more { background: var(--paper); padding: 64px 0 80px; border-top: 1px solid var(--line); }
.more h2 { font-size: 30px; font-weight: 800; margin-bottom: 28px; }

/* glossary term sections */
.qa { position: relative; padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.qa:last-of-type { border-bottom: 0; }
.qn { display: block; font-family: 'Jost', Inter, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .12em; color: var(--gold-ink); margin-bottom: 8px; }
.qa h2 { margin: 0 0 16px; font-size: clamp(24px, 2.8vw, 31px); }

/* glossary index */
.gsearch { display: block; margin-top: 30px; max-width: 560px; }
.gsearch input { width: 100%; min-height: 54px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; padding: 0 18px; font: inherit; font-size: 17px; }
.gsearch input::placeholder { color: #9FB3D3; } .gsearch input:focus { outline: 3px solid var(--gold); border-color: transparent; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 30px; }
.az a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; text-decoration: none; font-weight: 700; color: var(--navy-2); background: #fff; border: 1px solid var(--line); }
.az a:hover { background: var(--navy); color: #fff; }
.gl-group { margin-bottom: 40px; scroll-margin-top: 96px; } .gl-group[hidden], .gt[hidden] { display: none; }
.gl-group h2 { font-size: 34px; font-weight: 800; color: var(--navy); border-bottom: 2px solid var(--gold); display: inline-block; padding-right: 22px; margin-bottom: 20px; }
.gterms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gt { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; text-decoration: none; }
.gt:hover { border-color: var(--navy-2); }
.gt b { font-family: 'Jost', Inter, sans-serif; font-size: 20px; font-weight: 600; color: var(--ink); }
.gt span { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.none { padding: 30px 0; color: var(--ink-2); }

/* footer */
.foot { background: var(--navy); color: var(--soft); padding: 56px 0 28px; font-size: 15px; }
.foot .wrap:first-child { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.fcol { display: flex; flex-direction: column; gap: 10px; } .fcol b { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.fcol a { color: var(--soft); text-decoration: none; } .fcol a:hover { color: #fff; text-decoration: underline; }
.fcol.brand p { max-width: 320px; line-height: 1.55; } .fcol .word { font-size: 17px; margin-bottom: 4px; } .fcol .word img { width: 32px; height: 32px; }
.foot .legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #8FA6C9; }

@media (max-width: 960px) {
  .wrap { padding: 0 20px; }
  .bar .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 4px; gap: 4px 16px; }
  .bar .btn.line { display: none; } .bar .wrap .btn.gold { margin-left: auto; min-height: 38px; }
  .bar nav { order: 3; width: 100%; margin: 0; gap: 22px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .bar nav a { padding: 10px 0; }
  .hero2 { padding: 48px 0 44px; } .lead { font-size: 18px; }
  .grid3 { grid-template-columns: 1fr; } .gterms { grid-template-columns: 1fr; }
  .pbody { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 8px; background: var(--paper); }
  .prose { font-size: 17.5px; }
  .foot .wrap:first-child { grid-template-columns: 1fr 1fr; gap: 32px; } .fcol.brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .foot .wrap:first-child { grid-template-columns: 1fr; } .short { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
