/* Primary Steps Public School — "One step at a time"
   Swiss-modernist grid. Bootstrap 5.3.3 grid supplies container/row/col; everything else is here. */

@font-face { font-family: "Familjen Fallback"; font-weight: 400 500; src: local("Arial"), local("ArialMT"); size-adjust: 92.8%; ascent-override: 110.4%; descent-override: 24.2%; line-gap-override: 0%; }
@font-face { font-family: "Familjen Fallback"; font-weight: 600 700; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 91.5%; ascent-override: 112%; descent-override: 24.6%; line-gap-override: 0%; }

:root {
  --ground: #F1EFEA;
  --ground-2: #E6E3DC;
  --ink: #121212;
  --ink-2: #45443F;      /* secondary text on ground, 9:1 */
  --orange: #FF5F1F;     /* fills only, never text on ground */
  --steel: #2F5D8A;      /* links, secondary accent, 6:1 on ground */
  --steel-ink: #24496D;
  --on-ink: #F1EFEA;
  --on-ink-2: #B9B6AE;   /* secondary text on ink, 9:1 */
  --rule: #121212;
  --rule-soft: #C9C5BC;
  --f: "Familjen Grotesk", "Familjen Fallback", system-ui, sans-serif;
  --m: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --bar-h: 72px;
  --sec: clamp(4.5rem, 9vw, 8.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--f); font-size: 1.0625rem; line-height: 1.55; font-weight: 400;
  font-variant-numeric: tabular-nums; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; }
input, select, textarea { caret-color: var(--orange); }
html { scrollbar-color: var(--ink) var(--ground-2); }
h1, h2, h3, h4, p, ol, ul, dl, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--m); font-weight: 400; letter-spacing: 0; font-feature-settings: "zero" 0; }
.muted { color: var(--ink-2); }
.hi { font-size: 1rem; color: var(--ink-2); margin-top: .75rem; }
.i { width: 1.15em; height: 1.15em; flex: none; }

/* First-paint copy of the Bootstrap 5.3.3 grid rules this site uses. bootstrap-grid.min.css loads
   non-blocking (client requirement) and arrives after the first paint; without these lines the layout
   would jump when it lands (measured CLS 0.4). Values are identical to Bootstrap's, so nothing changes
   when the real file applies. */
.container { width: 100%; margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
.row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 0; display: flex; flex-wrap: wrap; margin-top: calc(-1 * var(--bs-gutter-y)); margin-right: calc(-.5 * var(--bs-gutter-x)); margin-left: calc(-.5 * var(--bs-gutter-x)); }
.row > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-right: calc(var(--bs-gutter-x) * .5); padding-left: calc(var(--bs-gutter-x) * .5); margin-top: var(--bs-gutter-y); }
.g-3 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
.col-12 { flex: 0 0 auto; width: 100%; } .col-6 { flex: 0 0 auto; width: 50%; }
.order-1 { order: 1 !important; } .order-2 { order: 2 !important; }
.align-items-end { align-items: flex-end !important; }
@media (min-width: 576px) { .col-sm-6 { flex: 0 0 auto; width: 50%; } }
@media (min-width: 768px) { .col-md-4 { flex: 0 0 auto; width: 33.33333333%; } .col-md-6 { flex: 0 0 auto; width: 50%; } }
@media (min-width: 992px) {
  .col-lg-1 { flex: 0 0 auto; width: 8.33333333%; } .col-lg-3 { flex: 0 0 auto; width: 25%; } .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; } .col-lg-6 { flex: 0 0 auto; width: 50%; } .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; } .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
  .offset-lg-1 { margin-left: 8.33333333%; } .offset-lg-8 { margin-left: 66.66666667%; }
  .order-lg-1 { order: 1 !important; } .order-lg-2 { order: 2 !important; }
}

/* Bootstrap grid: generous Swiss gutters */
.g-sw { --bs-gutter-x: 2rem; --bs-gutter-y: 1.5rem; }
@media (min-width: 992px) { .g-sw { --bs-gutter-y: 2.5rem; } }
@media (min-width: 1200px) { .container { max-width: 1312px; } }
.container { padding-left: clamp(16px, 2.4vw, 32px); padding-right: clamp(16px, 2.4vw, 32px); }
@media (min-width: 1200px) { .container { max-width: 1440px; } }

/* Type */
.display { display: block; font-weight: 700; font-size: clamp(3.1rem, 8.4vw, 8rem); line-height: .94; letter-spacing: -.045em; text-wrap: balance; }
.h1 { font-weight: 700; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.h2 { font-weight: 700; font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.h3 { font-weight: 600; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -.025em; }
.h4 { font-weight: 600; font-size: 1.2rem; line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.45; max-width: 34em; }
.lead-s { font-size: 1.0625rem; color: var(--ink-2); margin-top: 1rem; max-width: 34em; }
.prose { max-width: 62ch; margin-top: 1rem; }
.big { font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.03em; }

/* Buttons: flat rectangles */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .7rem 1.35rem; border: 2px solid var(--ink); border-radius: 0;
  font: 600 1.0625rem/1.1 var(--f); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: 1rem; }
.btn-o { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-o:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.btn-ink { background: var(--ink); color: var(--ground); }
.btn-ink:hover { background: var(--steel-ink); border-color: var(--steel-ink); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.btn-line-inv { background: transparent; color: var(--on-ink); border-color: var(--on-ink); }
.btn-line-inv:hover { background: var(--on-ink); color: var(--ink); }
.btn .mono { font-weight: 500; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btns-end { margin-top: 0; }
@media (min-width: 992px) { .btns-end { justify-content: flex-end; } }
.btn-sq { width: 52px; height: 52px; display: inline-grid; place-items: center; background: transparent; border: 2px solid var(--ink); color: var(--ink); cursor: pointer; border-radius: 0; }
.btn-sq:hover { background: var(--ink); color: var(--ground); }
.btn-sq.on-ink { border-color: var(--on-ink); color: var(--on-ink); }
.btn-sq.on-ink:hover { background: var(--on-ink); color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; margin-top: 1.25rem; }

/* Placeholder tag: dashed, "to be shared by the school" */
.tbc {
  display: inline-block; border: 1.5px dashed var(--ink-2); padding: .3rem .6rem; margin-top: .5rem;
  font-family: var(--m); font-size: .8125rem; line-height: 1.45; color: var(--ink-2); background: transparent;
}
p.tbc { display: block; }

/* Skip link */
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--ground); padding: .75rem 1rem; font-weight: 600; }
.skip:focus { top: 12px; }
.skip:hover { color: var(--ground); }

/* Header bar */
.bar { position: sticky; top: 0; z-index: 40; background: var(--ground); border-bottom: 1px solid var(--rule); }
.bar-in { display: flex; align-items: center; gap: 1.5rem; height: var(--bar-h); max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 2.4vw, 32px); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; }
.brand-name { display: flex; flex-direction: column; font-weight: 700; font-size: 1.12rem; line-height: 1.02; letter-spacing: -.02em; }
.brand-name span { font-weight: 500; font-size: .875rem; letter-spacing: 0; color: var(--ink-2); margin-top: .15rem; }
.brand:hover { color: var(--ink); }
.bar-nav { margin-left: auto; display: none; }
.bar-nav ol { display: flex; gap: clamp(1rem, 1.9vw, 2rem); }
.bar-nav a { position: relative; display: inline-flex; align-items: baseline; gap: .4rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: .6rem 0; }
.bar-nav .n { font-family: var(--m); font-size: .75rem; font-weight: 400; color: var(--ink-2); }
.bar-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.bar-nav a:hover::after { transform: scaleX(1); }
.bar-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--orange); }
.bar-nav a[aria-current="page"] .n { color: var(--ink); }
.bar-act { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.bar-call { display: none; align-items: center; gap: .45rem; color: var(--ink); text-decoration: none; font-size: .95rem; min-height: 44px; }
.bar-call:hover { color: var(--steel); }
.menu-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem .9rem; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 600 1rem var(--f); cursor: pointer; border-radius: 0; }
.menu-btn:hover { background: var(--ink); color: var(--ground); }
.menu-btn.on-ink { border-color: var(--on-ink); color: var(--on-ink); }
.menu-btn.on-ink:hover { background: var(--on-ink); color: var(--ink); }
.rule-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.rule-progress span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.hide-sm { display: none; }
@media (min-width: 576px) { .hide-sm { display: inline-flex; } }
@media (min-width: 768px) { .bar-call { display: inline-flex; } }
@media (min-width: 1200px) {
  .bar-nav { display: block; }
  .bar-act { margin-left: 1.5rem; }
  .menu-btn[data-menu-open] { display: none; }
}

/* Full-screen numbered index (phones / tablets) */
.index { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--on-ink); overflow-y: auto; display: flex; flex-direction: column; padding: 0 clamp(16px, 4vw, 40px) 2rem; }
.index .brand, .index .brand:hover { color: var(--on-ink); }
.index .brand img { background: var(--ground); border-radius: 50%; }
.index .brand-name span { color: var(--on-ink-2); }
.index-top { display: flex; align-items: center; justify-content: space-between; height: var(--bar-h); border-bottom: 1px solid #3A3936; }
.index-list { margin-top: 1rem; }
.index-list li { border-bottom: 1px solid #3A3936; }
.index-list a { display: grid; grid-template-columns: 3.2rem 1fr; column-gap: .5rem; align-items: baseline; padding: 1rem 0; color: var(--on-ink); text-decoration: none; }
.index-list .n { font-family: var(--m); font-size: .9rem; color: var(--on-ink-2); grid-row: span 2; }
.index-list .t { font-weight: 700; font-size: clamp(2rem, 8.5vw, 3.4rem); line-height: 1; letter-spacing: -.035em; }
.index-list .d { grid-column: 2; color: var(--on-ink-2); font-size: .95rem; margin-top: .35rem; }
.index-list a:hover .t, .index-list a[aria-current="page"] .t { color: var(--orange); }
.index-list a[aria-current="page"] .n::before { content: ""; display: inline-block; width: .6rem; height: .6rem; background: var(--orange); margin-right: .4rem; }
.index-foot { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.index :focus-visible { outline-color: var(--orange); }
@media (prefers-reduced-motion: no-preference) {
  .index:not([hidden]) .index-list li { animation: rise .5s var(--ease) both; }
  .index:not([hidden]) .index-list li:nth-child(2) { animation-delay: .03s; }
  .index:not([hidden]) .index-list li:nth-child(3) { animation-delay: .06s; }
  .index:not([hidden]) .index-list li:nth-child(4) { animation-delay: .09s; }
  .index:not([hidden]) .index-list li:nth-child(5) { animation-delay: .12s; }
  .index:not([hidden]) .index-list li:nth-child(6) { animation-delay: .15s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Hero */
.hero { padding: clamp(2rem, 4.5vw, 3.75rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-h { margin: 0; }
.hero-sub { display: block; margin-top: 1rem; font-weight: 500; font-size: clamp(1.05rem, 1.4vw, 1.3rem); letter-spacing: -.01em; color: var(--ink-2); }
.hero-row { margin-top: clamp(1.25rem, 3.5vw, 3rem); }
@media (max-width: 991.98px) { .stair-note { margin-bottom: .25rem; } .hero-sub { margin-top: .5rem; font-size: 1rem; } .hero { padding-top: 1.5rem; } .hero-copy .lead { font-size: 1.1rem; } .hero-copy .btns { margin-top: 1.25rem; } }
.hero-copy .lead { margin-top: 0; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1.5rem; font-size: .8125rem; color: var(--ink-2); }
.meta a { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink); }
.show-sm { display: inline-flex; }
.show-lg { display: none; }
@media (min-width: 992px) { .show-lg { display: inline; } .hide-lg { display: none; } }
@media (min-width: 992px) { .show-sm { display: none; } .hero-copy { display: flex; flex-direction: column; justify-content: flex-end; } }

/* Staircase: four photo steps rising left to right + the orange next step */
.stair { --stair-h: clamp(10.5rem, 34vw, 27rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; height: var(--stair-h); border-bottom: 3px solid var(--ink); }
.st { display: flex; flex-direction: column; height: 100%; justify-content: flex-end; }
.st-ph { position: relative; overflow: hidden; background: var(--ground-2); }
.st-ph img { width: 100%; height: 100%; object-fit: cover; }
.st-1 .st-ph { height: 38%; }
.st-2 .st-ph { height: 56%; }
.st-3 .st-ph { height: 74%; }
.st-4 .st-ph { height: 92%; }
.st-1 .st-ph img { object-position: 50% 70%; }
.st-lb { order: -1; font-weight: 600; font-size: .9rem; line-height: 1.2; padding-bottom: .5rem; }
.st-lb .mono { display: block; font-size: .75rem; font-weight: 400; color: var(--ink-2); margin-bottom: .15rem; }
.st-next { display: none; }
.stair-note { margin-top: .75rem; font-size: .8125rem; color: var(--ink-2); max-width: 60ch; }
@media (min-width: 992px) {
  .stair { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .st-1 .st-ph { height: 30%; } .st-2 .st-ph { height: 46%; } .st-3 .st-ph { height: 62%; } .st-4 .st-ph { height: 78%; }
  .st-next { display: flex; }
  .st-next a { display: flex; flex-direction: column; justify-content: space-between; height: 94%; background: var(--orange); color: var(--ink); text-decoration: none; padding: 1rem; transition: background-color .25s var(--ease), color .25s var(--ease); }
  .st-next a:hover { background: var(--ink); color: var(--ground); }
  .st-next .mono { font-size: .75rem; }
  .st-next-t { font-weight: 700; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.02; letter-spacing: -.025em; }
  .st-next-a { display: flex; align-items: flex-end; justify-content: space-between; gap: .4rem; font-weight: 600; font-size: .95rem; line-height: 1.2; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .st { animation: climb .9s var(--ease) both; }
  .js .st-2 { animation-delay: .08s; } .js .st-3 { animation-delay: .16s; } .js .st-4 { animation-delay: .24s; } .js .st-5 { animation-delay: .34s; }
}
@keyframes climb { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Facts strip: big mono numerals, verified only */
.facts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts-row { display: grid; grid-template-columns: repeat(2, 1fr); }
.fact { padding: 1.5rem 1rem 1.5rem 0; border-bottom: 1px solid var(--rule-soft); display: flex; flex-direction: column; gap: .35rem; }
.fact:nth-child(odd) { padding-right: 1rem; }
.fact:first-child { grid-column: 1 / -1; }
.fact-n { font-family: var(--m); font-weight: 500; font-size: clamp(3rem, 7vw, 5.5rem); line-height: .9; letter-spacing: -.04em; }
.fact-n.is-empty { color: var(--ink-2); }
.fact-l { font-weight: 600; font-size: 1.0625rem; margin-top: .5rem; }
.fact-note { font-size: .875rem; color: var(--ink-2); max-width: 24em; }
.fact .tbc { align-self: flex-start; margin-top: 0; }
.facts-note { font-size: .8125rem; color: var(--ink-2); padding: 1rem 0 1.25rem; }
@media (min-width: 992px) {
  .facts-row { grid-template-columns: 1.3fr repeat(4, 1fr); }
  .fact { border-bottom: 0; border-left: 1px solid var(--rule-soft); padding: 2rem 1.25rem; }
  .fact:first-child { grid-column: auto; border-left: 0; padding-left: 0; }
}

/* Sections */
.sec { padding: var(--sec) 0; }
.sec-tight { padding-top: clamp(2.5rem, 5vw, 4rem); }
.sec-rule { border-top: 1px solid var(--rule); }

/* Climb the steps */
.cs-ctrl { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.cs-count { font-size: .875rem; min-width: 7.5em; text-align: center; }
.cs-stairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; height: clamp(13rem, 24vw, 18rem); border-bottom: 3px solid var(--ink); }
.cs { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; width: 100%; padding: .75rem; border: 0; border-radius: 0; background: var(--ground-2); color: var(--ink); font: inherit; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.cs-1 { height: 34%; } .cs-2 { height: 56%; } .cs-3 { height: 78%; } .cs-4 { height: 100%; }
.cs:hover { background: #D9D5CC; }
.cs-n { font-size: .75rem; }
.cs-t { font-weight: 600; font-size: clamp(.95rem, 1.5vw, 1.2rem); line-height: 1.1; letter-spacing: -.01em; }
.cs-mark { position: absolute; top: .75rem; right: .75rem; width: 12px; height: 12px; border: 1.5px solid currentColor; }
.cs.is-visited .cs-mark { background: currentColor; }
.cs[aria-selected="true"] { background: var(--orange); color: var(--ink); }
.cs[aria-selected="true"] .cs-mark { background: var(--ink); border-color: var(--ink); }
.cs[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--orange); }
.cs-panels { margin-top: 2rem; }
.cs-panel .btn { margin-top: 1.75rem; }
@media (max-width: 575.98px) { .cs { padding: .5rem; } .cs-mark { top: .5rem; right: .5rem; width: 10px; height: 10px; } }
@media (prefers-reduced-motion: no-preference) { .cs-panel:not([hidden]) { animation: rise .45s var(--ease) both; } }

/* Ledger (definition rows with rules) */
.ledger { border-top: 1px solid var(--rule); margin-top: 1.25rem; }
.ledger > div { display: grid; grid-template-columns: 1fr; gap: .25rem; padding: .9rem 0; border-bottom: 1px solid var(--rule-soft); }
.ledger dt { font-family: var(--m); font-size: .8125rem; color: var(--ink-2); }
.ledger dd { margin: 0; max-width: 62ch; }
.ledger .tbc { margin-top: 0; }
@media (min-width: 768px) { .ledger > div { grid-template-columns: 11rem 1fr; gap: 1.5rem; } }
.ledger-tight { margin-top: 2rem; }

/* Admission in 4 steps: blocks rise like stairs */
.adm-row { margin-top: 2.5rem; }
.adm { display: grid; grid-template-columns: 64px 1fr; column-gap: 1rem; align-items: start; }
.adm h3, .adm p { grid-column: 2; }
.adm .adm-n { grid-row: span 2; }
.adm-n { display: grid; place-items: center; width: 64px; height: 64px; background: var(--ink); color: var(--ground); font-size: 1.25rem; font-weight: 500; }
.adm-4 .adm-n { background: var(--orange); color: var(--ink); }
.adm h3 { padding-top: .6rem; border-top: 3px solid var(--ink); }
@media (min-width: 576px) { .adm { display: flex; flex-direction: column; } .adm h3 { margin-top: 1.1rem; padding-top: 1rem; } }
.adm p { margin-top: .6rem; color: var(--ink-2); max-width: 30ch; }
@media (min-width: 992px) {
  .adm-1 { padding-top: 7.5rem; } .adm-2 { padding-top: 5rem; } .adm-3 { padding-top: 2.5rem; } .adm-4 { padding-top: 0; }
}
.adm-foot { margin-top: clamp(3rem, 6vw, 5rem); align-items: end; }
.adm-cta .btns { margin-top: 1.25rem; }

/* Photos with ruled captions */
.ph img { width: 100%; height: auto; background: var(--ground-2); }
.ph figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; border-top: 1px solid var(--rule); margin-top: .6rem; padding-top: .5rem; font-size: .875rem; }
.ph-src { font-family: var(--m); font-size: .75rem; color: var(--ink-2); }

/* Address & actions */
.addr-big { font-weight: 600; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -.02em; margin-top: 1.5rem; }
.plus { font-size: .875rem; color: var(--ink-2); margin-top: .6rem; }
.act-list { margin-top: 1.5rem; border-top: 1px solid var(--rule); }
.act-list li { border-bottom: 1px solid var(--rule-soft); }
.act-list a { display: flex; align-items: center; gap: .7rem; min-height: 52px; color: var(--ink); text-decoration: none; font-weight: 600; }
.act-list a:hover { color: var(--steel); }

/* Notice board */
.nb { border-top: 1px solid var(--rule); }
.nb li { display: grid; grid-template-columns: 1fr; gap: .25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule-soft); }
.nb-tag { justify-self: start; font-size: .75rem; border: 1.5px dashed var(--ink-2); color: var(--ink-2); padding: .1rem .45rem; }
.nb-t { font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.nb-d { color: var(--ink-2); font-size: .95rem; }
@media (min-width: 768px) { .nb li { grid-template-columns: 6rem 1fr; column-gap: 1.25rem; } .nb-tag { grid-row: span 2; align-self: start; margin-top: .2rem; } }
.msg-ph { margin-top: 2rem; padding-top: 1.25rem; border-top: 3px solid var(--ink); }
.msg-ph .tbc { margin-top: .75rem; }

/* Steel band CTA */
.band-steel { background: var(--steel); color: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.band-steel .lead-s, .band-steel .hi { color: #E3EAF2; }
.band-steel :focus-visible { outline-color: #fff; }

/* Page heads (inner pages) */
.phead { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.phead-lead { display: flex; flex-direction: column; justify-content: flex-end; gap: 1.25rem; align-items: flex-start; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--m); font-size: .8125rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink); }

/* About */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; border-top: 3px solid var(--ink); }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--rule-soft); font-size: .975rem; }
.tbl thead th { font-family: var(--m); font-weight: 400; font-size: .8125rem; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.tbl tbody th { font-weight: 600; white-space: nowrap; }
.st-ok, .st-l, .st-q { display: inline-block; font-size: .75rem; padding: .05rem .4rem; margin-right: .35rem; }
.st-ok { background: var(--ink); color: var(--ground); }
.st-l { border: 1.5px solid var(--ink); }
.st-q { border: 1.5px dashed var(--ink-2); color: var(--ink-2); }
.key { margin-top: 1.5rem; font-size: .8125rem; display: grid; gap: .5rem; }
.ab-row { margin-top: 2rem; }
.ab-ph { display: flex; flex-direction: column; border-top: 3px solid var(--ink); padding-top: 1rem; }
.ab-ph p { color: var(--ink-2); margin-top: .5rem; }
.ab-ph .h4 { margin-top: .75rem; }
@media (min-width: 768px) { .ab-ph-1 { margin-top: 6rem; } .ab-ph-2 { margin-top: 3rem; } }

/* Academics: rows step to the right */
.ac-list { border-top: 3px solid var(--ink); }
.ac-row { padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-bottom: 1px solid var(--rule-soft); }
.ac-n { display: grid; place-items: center; width: 64px; height: 64px; background: var(--ink); color: var(--ground); font-size: 1.25rem; font-weight: 500; }
.ac-age { font-size: .8125rem; color: var(--ink-2); margin-top: .75rem; }
@media (min-width: 992px) {
  .ac-2 > .row { padding-left: 4%; } .ac-3 > .row { padding-left: 8%; } .ac-4 > .row { padding-left: 12%; }
}

/* Admissions */
.ad-list { counter-reset: none; }
.ad { display: grid; grid-template-columns: 64px 1fr; gap: 1.25rem; padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.ad:last-child { border-bottom: 1px solid var(--rule); }
.ad-n { display: grid; place-items: center; width: 64px; height: 64px; background: var(--ink); color: var(--ground); font-size: 1.25rem; font-weight: 500; }
.ad-4 .ad-n { background: var(--orange); color: var(--ink); }
.ad-b p { margin-top: .5rem; max-width: 62ch; }
.ad-m { font-family: var(--m); font-size: .8125rem; color: var(--ink-2); }
@media (min-width: 992px) {
  .ad { grid-template-columns: 64px 1fr; }
  .ad-2 { margin-left: 8.333%; } .ad-3 { margin-left: 16.666%; } .ad-4 { margin-left: 25%; }
}
.tbl-age td { font-size: 1rem; }
.docs { display: grid; grid-template-columns: 1fr; border-top: 3px solid var(--ink); }
.docs li { display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--rule-soft); }
.box { flex: none; width: 18px; height: 18px; border: 2px solid var(--ink); margin-top: .2rem; }
@media (min-width: 768px) { .docs { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.faqs { border-top: 3px solid var(--ink); }
.faq { border-bottom: 1px solid var(--rule-soft); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 60px; padding: .9rem 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ic { position: relative; flex: none; width: 20px; height: 20px; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.faq-ic::after { transform: rotate(90deg); }
.faq[open] .faq-ic::after { transform: rotate(0); }
.faq p { padding: 0 0 1.25rem; max-width: 62ch; color: var(--ink-2); }

/* Form */
.sec-form { background: var(--ground-2); border-top: 1px solid var(--rule); }
.form-wrap .h2 { margin-bottom: .25rem; }
.enq { margin-top: 2rem; }
.fld label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .4rem; }
.opt { font-weight: 400; color: var(--ink-2); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 52px; padding: .75rem .9rem; border: 2px solid var(--ink); border-radius: 0; background: #FBFAF7; color: var(--ink);
  font: 400 1.0625rem/1.4 var(--f); appearance: none; -webkit-appearance: none;
}
.fld select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.fld textarea { min-height: 110px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 3px solid var(--steel); outline-offset: 1px; }
.fld [aria-invalid="true"] { border-color: #B3261E; background: #FFF6F4; }
.fld-hint { font-size: .875rem; color: var(--ink-2); margin-top: .35rem; }
.fld-err { font-size: .9rem; color: #A32018; font-weight: 600; margin-top: .35rem; }
.fld-err:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.form-status { font-weight: 600; }
.form-status.is-ok { color: #1F5E2E; }
.form-status.is-err { color: #A32018; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.err-sum { border: 2px solid #A32018; background: #FFF6F4; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.err-sum-h { font-weight: 700; color: #A32018; }
.err-sum ul { margin-top: .5rem; list-style: square; padding-left: 1.25rem; }
.err-sum a { color: #A32018; }
.form-aside .h4 { margin-top: 2rem; }

/* Campus life */
.fac-row { margin-top: 2rem; }
.fac { border-top: 3px solid var(--ink); padding-top: 1rem; height: 100%; }
.fac .mono { font-size: .75rem; color: var(--ink-2); }
.fac .h4 { margin-top: .5rem; }
.acts { border-top: 3px solid var(--ink); }
.acts li { display: grid; grid-template-columns: 3rem 1fr; padding: 1.1rem 0; border-bottom: 1px solid var(--rule-soft); }
.acts .mono { font-size: .8125rem; color: var(--ink-2); padding-top: .3rem; grid-row: span 2; }
.acts .t { font-weight: 600; font-size: 1.2rem; }
.acts .d { color: var(--ink-2); }
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 8px; margin-top: 2.5rem; }
.g-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--ground-2); cursor: zoom-in; border-radius: 0; }
.g-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .25s var(--ease); }
.g-btn:hover img { opacity: .88; }
.g-cap { font-size: .875rem; margin-top: .5rem; border-top: 1px solid var(--rule); padding-top: .4rem; }
.g-cap .mono { font-size: .75rem; color: var(--ink-2); margin-right: .3rem; }
@media (min-width: 992px) {
  .gal { grid-template-columns: repeat(12, 1fr); gap: 2rem 1rem; align-items: end; }
  .gi-1 { grid-column: 1 / span 3; } .gi-2 { grid-column: 4 / span 5; } .gi-3 { grid-column: 9 / span 4; }
  .gi-4 { grid-column: 1 / span 3; } .gi-5 { grid-column: 4 / span 4; } .gi-6 { grid-column: 8 / span 5; }
  .g-tall .g-btn img { aspect-ratio: 4 / 5; }
}
.lb { width: min(1100px, 100vw - 32px); max-height: calc(100vh - 32px); padding: 0; border: 0; background: var(--ink); color: var(--on-ink); border-radius: 0; }
.lb::backdrop { background: rgba(18, 18, 18, .86); }
.lb-in { padding: 1rem; }
.lb-fig img, .lb-img img { width: 100%; max-height: calc(100vh - 170px); object-fit: contain; background: #000; }
.lb-fig figcaption { margin-top: .75rem; font-size: .95rem; }
.lb-fig .mono { color: var(--on-ink-2); font-size: .8125rem; margin-left: .5rem; }
.lb-ctrl { display: flex; gap: .5rem; margin-top: .75rem; justify-content: flex-end; }
.lb :focus-visible { outline-color: var(--orange); }

/* Contact */
.ct-l { font-size: .8125rem; color: var(--ink-2); margin-top: 2rem; }
.ct-l:first-child { margin-top: 0; }
.ct-phone { display: inline-block; font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 500; letter-spacing: -.04em; color: var(--ink); text-decoration: none; margin-top: .25rem; line-height: 1; }
.ct-phone:hover { color: var(--steel); }
.map { border-top: 3px solid var(--ink); }
.map-frame { aspect-ratio: 4 / 3; background: var(--ground-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.6) contrast(1.05); }
.map-card { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.map-card .link-arrow { margin-top: 0; }

/* Thank you / 404 */
.ok-n { font-size: .875rem; color: var(--ink-2); margin-bottom: 1rem; }
.nf-nav { margin-top: 1.5rem; }
.nf-nav a { color: var(--ink) !important; }

/* Footer */
.foot { background: var(--ink); color: var(--on-ink); padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; }
.foot a { color: var(--on-ink); }
.foot a:hover { color: var(--orange); }
.foot :focus-visible { outline-color: var(--orange); }
.foot-logo { width: min(360px, 100%); height: auto; }
.foot-note { color: var(--on-ink-2); font-size: .95rem; margin-top: 1.25rem; max-width: 34em; }
.foot-h { font-family: var(--m); font-weight: 400; font-size: .8125rem; color: var(--on-ink-2); margin-bottom: 1rem; }
.foot-nav li { border-bottom: 1px solid #3A3936; }
.foot-nav a { display: flex; align-items: baseline; gap: .55rem; min-height: 44px; padding: .6rem 0; text-decoration: none; font-weight: 600; }
.foot-nav .n { font-family: var(--m); font-weight: 400; font-size: .75rem; color: var(--on-ink-2); }
.foot-addr { color: var(--on-ink); line-height: 1.5; margin-bottom: 1rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid #3A3936; font-size: .8125rem; color: var(--on-ink-2); }
.nf-nav li { border-bottom: 1px solid var(--rule-soft); }
.nf-nav .n { color: var(--ink-2); }

/* Reveal: content visible by default; JS adds a single rule draw */
@media (prefers-reduced-motion: no-preference) {
  .js .sec-rule { background-image: linear-gradient(var(--ink), var(--ink)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 0; border-top-color: transparent; transition: background-size 1s var(--ease); }
  .js .sec-rule.is-in { background-size: 100% 1px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print { .bar, .foot, .band-steel, .index { display: none !important; } }
