/* Shyamla Heaven Public School — "School, clearly"
   Light bands: #F4F6FA / #0D1321. Dark bands: #0D1321 / #E8ECF4.
   Indigo #5B5BF0 and lime #B8F35A live on dark only. 1px lines, 8px radius, 8px grid. */

:root {
  --ground: #F4F6FA;
  --ink: #0D1321;
  --ink-2: #3A4356;
  --ink-3: #566074;
  --line: #D6DCE7;
  --line-strong: #9AA4B8;
  --surface: #FFFFFF;
  --dark: #0D1321;
  --on-dark: #E8ECF4;
  --on-dark-2: #A9B3C8;
  --line-dark: #273149;
  --line-dark-strong: #46527026;
  --surface-dark: #151D30;
  --surface-dark-2: #1C2540;
  --indigo: #5B5BF0;
  --indigo-hover: #4A4AE0;
  --lime: #B8F35A;
  --lime-hover: #CAF77F;
  --error: #B42343;
  --error-dark: #FF9BB0;
  --r: 8px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --band: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  font-feature-settings: "ss01" 0, "zero" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--ink);
  accent-color: var(--ink);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.032em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4.5rem); letter-spacing: -0.04em; line-height: 1.0; }
h2 { font-size: clamp(1.875rem, 1.3rem + 2.1vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--ink); color: var(--ground); }
.band-dark ::selection, .drawer ::selection, .palette ::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.band-dark :focus-visible, .drawer :focus-visible, .palette :focus-visible, .lightbox :focus-visible, .t-dark :focus-visible { outline-color: var(--lime); }
html { scrollbar-color: var(--line-strong) var(--ground); scrollbar-width: thin; }
[hidden] { display: none !important; }
.mono, time, .num { font-family: var(--mono); font-feature-settings: "zero" 0, "tnum" 1; }
[lang="hi"] { font-family: "Noto Sans Devanagari", var(--font); letter-spacing: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 64ch; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.band-dark .lead, .t-dark .lead { color: var(--on-dark-2); }
.muted { color: var(--ink-3); }
.small { font-size: .9375rem; }
.xsmall { font-size: .8125rem; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }

.skip {
  position: fixed; left: 16px; top: -64px; z-index: 200;
  background: var(--ink); color: var(--ground); padding: 12px 16px; border-radius: var(--r);
  font-weight: 500; text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- bands ---------- */
.band { padding-block: var(--band); position: relative; }
.band-light { background: var(--ground); color: var(--ink); }
.band-light + .band-light { border-top: 1px solid var(--line); }
.band-white { background: var(--surface); }
.band-dark { background: var(--dark); color: var(--on-dark); caret-color: var(--lime); }
.band-dark a:not(.b) { color: var(--on-dark); }
.band-dark .muted { color: var(--on-dark-2); }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 24px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head > h2 { grid-column: 1 / 8; }
.sec-head > .lead, .sec-head > div { grid-column: 8 / 13; }
@media (max-width: 991.98px) { .sec-head > h2, .sec-head > .lead, .sec-head > div { grid-column: 1 / -1; } }

/* ---------- buttons ---------- */
.b {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r);
  border: 1px solid transparent; font-weight: 500; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; background: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.b:hover { text-decoration: none; }
.b:active { transform: translateY(1px); }
.b-sm { min-height: 40px; padding: 0 14px; font-size: .9375rem; }
.b-ink { background: var(--ink); color: var(--ground); }
.b-ink:hover { background: #222C45; }
.b-line { border-color: var(--ink); color: var(--ink); }
.b-line:hover { background: var(--ink); color: var(--ground); }
.b-lime { background: var(--lime); color: var(--ink); }
.b-lime:hover { background: var(--lime-hover); }
.b-indigo { background: var(--indigo); color: #fff; }
.b-indigo:hover { background: var(--indigo-hover); }
.b-ghost { border-color: var(--line-dark); color: var(--on-dark); }
.b-ghost:hover { border-color: var(--on-dark-2); background: var(--surface-dark); }
.b[disabled], .b[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 246, 250, .94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.topbar-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name strong { font-weight: 600; font-size: 1rem; letter-spacing: -0.015em; white-space: nowrap; }
.brand-name span { font-size: .8125rem; color: var(--ink-3); white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 6px; text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: #E7EBF2; }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.find {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 12px; min-width: 220px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink-3);
  font-size: .9375rem; text-align: left;
}
.find:hover { border-color: var(--line-strong); color: var(--ink-2); }
.find span { flex: 1; }
kbd { font-family: var(--mono); font-size: .75rem; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-3); background: var(--ground); }
.icon-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.icon-btn:hover { border-color: var(--line-strong); }
@media (max-width: 1199.98px) { .find { min-width: 0; } .find kbd { display: none; } .find .find-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .find { width: 44px; height: 44px; justify-content: center; padding: 0; } }
@media (max-width: 991.98px) {
  .nav, .topbar .b-enquire { display: none; }
  .icon-btn { display: inline-flex; }
  .topbar-in { height: 64px; }
}
@media (max-width: 400px) { .brand-name span { display: none; } }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(13, 19, 33, .55); opacity: 0; transition: opacity .25s ease; }
.scrim.on { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(400px, 90vw);
  background: var(--dark); color: var(--on-dark); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s var(--ease);
  box-shadow: -12px 0 40px rgba(0, 0, 0, .25); overflow-y: auto; overscroll-behavior: contain;
}
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-dark); }
.drawer-head .icon-btn { display: inline-flex; background: transparent; border-color: var(--line-dark); color: var(--on-dark); }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-dark); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; color: var(--on-dark); }
.drawer nav a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); }
.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 20px; }
.drawer-actions .b { width: 100%; }
.drawer-note { padding: 0 20px 24px; color: var(--on-dark-2); font-size: .875rem; }

/* ---------- command palette ---------- */
.palette-wrap { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(13, 19, 33, .5); }
.palette {
  width: min(640px, 100%); max-height: min(560px, 80vh); display: flex; flex-direction: column;
  background: var(--dark); color: var(--on-dark); border: 1px solid var(--line-dark); border-radius: 12px;
  box-shadow: 0 24px 64px rgba(5, 8, 16, .45), 0 2px 8px rgba(5, 8, 16, .3);
  overflow: hidden; animation: pal-in .18s var(--ease);
}
@keyframes pal-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.palette-search { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line-dark); }
.palette-search .icon { color: var(--on-dark-2); }
.palette input { flex: 1; height: 60px; border: 0; background: transparent; color: var(--on-dark); font-size: 1.125rem; outline: none; }
.palette input::placeholder { color: #8994AC; }
.palette-close { border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark-2); border-radius: 6px; font-family: var(--mono); font-size: .75rem; padding: 4px 8px; }
.palette-list { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.palette-group { padding: 12px 12px 6px; font-size: .8125rem; color: var(--on-dark-2); }
.palette-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--r); color: var(--on-dark); text-decoration: none; cursor: pointer; }
.palette-item .icon { color: var(--on-dark-2); }
.palette-item small { margin-left: auto; color: var(--on-dark-2); font-size: .8125rem; text-align: right; }
.palette-item[aria-selected="true"] { background: var(--surface-dark-2); }
.palette-item[aria-selected="true"] .icon { color: var(--lime); }
.palette-empty { padding: 20px 12px; color: var(--on-dark-2); }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line-dark); color: var(--on-dark-2); font-size: .8125rem; }
.palette-foot kbd { background: transparent; border-color: var(--line-dark); color: var(--on-dark-2); }
@media (max-width: 575.98px) { .palette-wrap { padding-top: 12px; } .palette-foot { display: none; } }

/* ---------- hero bento ---------- */
.hero { padding-block: 16px clamp(48px, 6vw, 80px); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto auto; gap: 12px; }
.tile { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.t-dark { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.t-head { grid-column: 1 / 8; grid-row: 1 / 3; padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.t-head h1 { max-width: 17ch; font-size: clamp(2.25rem, 1.1rem + 2.6vw, 3.25rem); }
.t-head .hi { font-size: 1.125rem; color: var(--ink-2); }
.t-head .lead { max-width: 52ch; }
.t-head .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 8px; }
.t-photo { grid-column: 8 / 13; grid-row: 1 / 4; min-height: 420px; }
.t-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.t-photo figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(13, 19, 33, .78); color: var(--on-dark); font-size: .75rem; }
.t-today { grid-column: 1 / 4; grid-row: 3; padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.t-actions { grid-column: 4 / 8; grid-row: 3; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.today-date { font-family: var(--mono); font-size: .875rem; color: var(--on-dark-2); display: flex; justify-content: space-between; gap: 8px; }
.today-day { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 500; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--on-dark-2); }
.status.is-open::before { background: var(--lime); }
.today-note { font-size: .8125rem; color: var(--on-dark-2); margin-top: auto; }
.tile-title { font-size: .9375rem; font-weight: 500; color: var(--on-dark-2); display: flex; justify-content: space-between; align-items: center; }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.qa {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 12px 14px; min-height: 72px;
  border-radius: var(--r); border: 1px solid var(--line-dark); background: var(--surface-dark);
  color: var(--on-dark); text-decoration: none; font-weight: 500; transition: background-color .18s, border-color .18s;
}
.qa:hover { background: var(--surface-dark-2); border-color: #3A4766; }
.qa .icon { color: var(--on-dark-2); }
.qa small { display: block; color: var(--on-dark-2); font-weight: 400; font-size: .8125rem; }
.qa small.mono { font-family: var(--mono); }
.qa-primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.qa-primary .icon, .qa-primary small { color: var(--ink); }
.qa-primary:hover { background: var(--lime-hover); border-color: var(--lime-hover); }
@media (max-width: 1199.98px) and (min-width: 992px) { .t-today { grid-column: 1 / 4; } }
@media (max-width: 991.98px) {
  .t-head { grid-column: 1 / -1; grid-row: auto; }
  .t-actions { grid-column: 1 / -1; grid-row: auto; }
  .t-today { grid-column: 1 / 7; grid-row: auto; }
  .t-photo { grid-column: 7 / -1; grid-row: auto; min-height: 240px; }
  .qa-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 575.98px) {
  .hero { padding-top: 12px; }
  .bento { gap: 8px; }
  .t-today, .t-photo { grid-column: 1 / -1; }
  .t-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .qa-grid { grid-template-columns: 1fr 1fr; }
  .qa { min-height: 72px; padding: 12px; }
  .t-head { gap: 16px; }
  .t-head .cta-row .b { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .bento .t-today, .bento .t-actions { animation: settle .8s var(--ease) .15s both; }
  .bento .t-actions { animation-delay: .25s; }
  .bento .qa { animation: settle .7s var(--ease) both; }
  .bento .qa:nth-child(1) { animation-delay: .35s; } .bento .qa:nth-child(2) { animation-delay: .4s; }
  .bento .qa:nth-child(3) { animation-delay: .45s; } .bento .qa:nth-child(4) { animation-delay: .5s; }
  @keyframes settle { from { opacity: .001; transform: translateY(12px); } }
}

/* ---------- placeholders & verify chips ---------- */
.ph {
  border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 16px 18px;
  display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: .9375rem; background: transparent;
}
.ph .icon { margin-top: 2px; color: var(--ink-3); }
.ph strong { color: var(--ink); font-weight: 600; }
.band-dark .ph, .t-dark .ph { border-color: #4A5677; color: var(--on-dark-2); }
.band-dark .ph strong { color: var(--on-dark); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 500; white-space: nowrap; border: 1px solid var(--line); }
.chip-ok { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.chip-todo { border-style: dashed; border-color: var(--line-strong); color: var(--ink-2); }
.chip-src { color: var(--ink-3); }
.band-dark .chip-ok { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.band-dark .chip-todo { border-color: #5A6788; color: var(--on-dark-2); }

/* ---------- facts ledger ---------- */
.ledger { border-top: 1px solid var(--ink); }
.ledger-row { display: grid; grid-template-columns: minmax(140px, 3fr) 6fr minmax(120px, 3fr); gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger-row dt { font-weight: 500; color: var(--ink-2); font-size: .9375rem; }
.ledger-row dd { margin: 0; }
.ledger-row .src { font-size: .8125rem; color: var(--ink-3); display: block; margin-top: 4px; }
.ledger-row .state { justify-self: end; }
@media (max-width: 767.98px) { .ledger-row { grid-template-columns: 1fr auto; } .ledger-row dd { grid-column: 1 / -1; grid-row: 2; } .ledger-row .state { grid-row: 1; grid-column: 2; } }

/* ---------- explore tabs ---------- */
.explore { display: grid; grid-template-columns: 4fr 8fr; gap: 24px; }
.tablist { display: flex; flex-direction: column; gap: 6px; }
.tab {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px;
  border-radius: var(--r); border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark-2);
  font-size: 1.0625rem; font-weight: 500; transition: background-color .18s, color .18s, border-color .18s;
}
.tab-dot { width: 8px; height: 8px; border-radius: 2px; border: 1px solid #5A6788; flex: none; }
.tab:hover { color: var(--on-dark); border-color: #3A4766; }
.tab[aria-selected="true"] { background: var(--surface-dark); color: var(--on-dark); border-color: #3A4766; }
.tab[aria-selected="true"] .tab-dot { background: var(--lime); border-color: var(--lime); }
.tabpanel { display: grid; grid-template-columns: 7fr 5fr; gap: 0; border-radius: var(--r); border: 1px solid var(--line-dark); background: var(--surface-dark); overflow: hidden; min-height: 420px; }
.tabpanel figure { margin: 0; position: relative; min-height: 280px; }
.tabpanel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tabpanel figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(13, 19, 33, .8); font-size: .75rem; color: var(--on-dark); }
.tabpanel .tp-body { padding: clamp(20px, 2.5vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.tabpanel .tp-body p { color: var(--on-dark-2); }
.tp-list { list-style: none; display: grid; gap: 8px; color: var(--on-dark); }
.tp-list li { display: flex; gap: 10px; align-items: baseline; }
.tp-list li::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 1px; background: var(--indigo); transform: translateY(-2px); }
@media (prefers-reduced-motion: no-preference) { .tabpanel:not([hidden]) { animation: fade .35s var(--ease); } @keyframes fade { from { opacity: 0; } } }
@media (max-width: 991.98px) {
  .explore { grid-template-columns: 1fr; }
  .tablist { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
  .tablist::-webkit-scrollbar { display: none; }
  .tab { width: auto; flex: none; scroll-snap-align: start; padding: 12px 16px; }
  .tabpanel { grid-template-columns: 1fr; min-height: 0; }
  .tabpanel figure { aspect-ratio: 16 / 10; min-height: 0; }
}

/* ---------- stages rail (home) ---------- */
.rail { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.rail-step { padding: 28px 24px 8px 0; position: relative; }
.rail-step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--ink); border-radius: 2px; }
.rail-step .num { font-size: .875rem; color: var(--ink-3); display: block; margin-bottom: 10px; }
.rail-step h3 { margin-bottom: 10px; }
.rail-step p { color: var(--ink-2); max-width: 34ch; }
@media (max-width: 767.98px) { .rail { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--ink); margin-left: 4px; } .rail-step { padding: 0 0 28px 24px; } .rail-step::before { top: 6px; left: -5px; } }

/* ---------- readiness checker ---------- */
.checker { display: grid; grid-template-columns: 4fr 8fr; gap: 24px; align-items: start; }
.chk-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.chk-steps { list-style: none; display: grid; gap: 4px; }
.chk-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; padding: 10px 0; color: var(--on-dark-2); }
.chk-steps .dot { width: 32px; height: 32px; border-radius: var(--r); border: 1px solid var(--line-dark); display: grid; place-items: center; font-family: var(--mono); font-size: .8125rem; }
.chk-steps li[data-state="current"] { color: var(--on-dark); }
.chk-steps li[data-state="current"] .dot { border-color: var(--lime); color: var(--lime); }
.chk-steps li[data-state="done"] .dot { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.chk-steps li span small { display: block; font-size: .8125rem; color: var(--on-dark-2); }
.chk-bar { height: 4px; border-radius: 2px; background: var(--line-dark); overflow: hidden; }
.chk-bar i { display: block; height: 100%; width: 33.33%; background: var(--lime); transition: width .45s var(--ease); }
.chk-panel { border: 1px solid var(--line-dark); border-radius: var(--r); background: var(--surface-dark); padding: clamp(20px, 3vw, 36px); }
.chk-panel h3 { margin-bottom: 8px; }
.chk-panel > p { color: var(--on-dark-2); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin: 20px 0 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line-dark); background: var(--dark); color: var(--on-dark); font-weight: 500; font-size: .9375rem; transition: border-color .15s, background-color .15s; }
.choice input:hover + span { border-color: #4A5677; }
.choice input:checked + span { border-color: var(--lime); background: #1D2A1F; box-shadow: inset 0 0 0 1px var(--lime); }
.choice input:checked + span::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); }
.choice input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.chk-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.chk-row .b-group { display: flex; gap: 8px; flex-wrap: wrap; }
.field-dark label { display: block; font-weight: 500; margin-bottom: 8px; }
.field-dark input, .field-dark select { width: 100%; max-width: 320px; height: 48px; padding: 0 14px; border-radius: var(--r); border: 1px solid #3A4766; background: var(--dark); color: var(--on-dark); color-scheme: dark; }
.age-result { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--dark); border: 1px solid var(--line-dark); }
.age-result strong { color: var(--lime); font-weight: 600; }
.age-result.warn strong { color: #FFD27A; }
.docs { list-style: none; display: grid; gap: 8px; margin-top: 20px; }
.doc { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-dark); background: var(--dark); align-items: start; cursor: pointer; }
.doc input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 5px; border: 1px solid #5A6788; background: transparent; display: grid; place-items: center; cursor: pointer; }
.doc input::after { content: ""; width: 11px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.doc input:checked { background: var(--lime); border-color: var(--lime); }
.doc input:checked::after { opacity: 1; }
.doc input:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.doc small { display: block; color: var(--on-dark-2); font-size: .8125rem; }
.doc.is-done > span { color: var(--on-dark-2); }
.doc.is-done > span b { text-decoration: line-through; text-decoration-color: var(--lime); font-weight: 500; }
.doc b { font-weight: 500; }
.docs-count { font-family: var(--mono); font-size: .875rem; color: var(--on-dark-2); }
.copied { color: var(--lime); font-size: .875rem; }
@media (max-width: 991.98px) { .checker { grid-template-columns: 1fr; } .chk-aside { position: static; } .chk-steps { grid-template-columns: repeat(3, 1fr); } .chk-steps li { grid-template-columns: 1fr; gap: 6px; } .chk-steps li span small { display: none; } }

/* ---------- notices & voices ---------- */
.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); }
@media (max-width: 991.98px) { .split { grid-template-columns: 1fr; } }
.notices { list-style: none; border-top: 1px solid var(--ink); }
.notice { display: grid; grid-template-columns: 120px 1fr; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.notice .when { font-size: .875rem; color: var(--ink-3); padding-top: 3px; }
.notice time { font-family: var(--mono); }
.notice h3 { font-size: 1.125rem; margin-bottom: 6px; }
.notice p { color: var(--ink-2); font-size: .9375rem; margin-bottom: 8px; }
@media (max-width: 575.98px) { .notice { grid-template-columns: 1fr; } }
.voices { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.voices .quote-mark { width: 40px; height: 40px; color: var(--line-strong); }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; }
.visit-card { border: 1px solid var(--line-dark); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); background: var(--surface-dark); display: flex; flex-direction: column; gap: 20px; }
.visit-card address { font-style: normal; font-size: 1.125rem; line-height: 1.5; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hours { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px solid var(--line-dark); text-align: left; font-weight: 400; }
.hours td { font-family: var(--mono); text-align: right; font-size: .875rem; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--lime); font-weight: 500; }
.band-light .hours th, .band-light .hours td { border-color: var(--line); }
.band-light .hours tr.is-today th, .band-light .hours tr.is-today td { color: var(--ink); font-weight: 600; }
.band-light .hours tr.is-today th::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); margin-right: 8px; }
.map-frame { border-radius: var(--r); border: 1px solid var(--line-dark); overflow: hidden; background: var(--surface-dark); display: flex; flex-direction: column; }
.map-frame .map { position: relative; aspect-ratio: 4 / 3; background: var(--surface-dark); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map .pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--lime); }
.map-fallback { padding: 16px 20px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .9375rem; }
.band-light .map-frame { border-color: var(--line); background: var(--surface); }
.band-light .map-frame .map { background: #E9EDF4; }
.band-light .map .pin { color: var(--ink); }
.band-light .map-fallback { border-color: var(--line); }
@media (max-width: 991.98px) { .visit { grid-template-columns: 1fr; } }

/* ---------- closing CTA ---------- */
.closer { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: end; }
.closer h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.75rem); max-width: 16ch; }
.closer .btn-row { justify-content: flex-end; }
@media (max-width: 991.98px) { .closer { grid-template-columns: 1fr; } .closer .btn-row { justify-content: flex-start; } }

/* ---------- footer ---------- */
.foot { background: var(--dark); color: var(--on-dark); border-top: 1px solid var(--line-dark); padding-block: 56px 32px; font-size: .9375rem; }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: 32px; }
.foot .foot-h { font-size: .9375rem; font-weight: 500; color: var(--on-dark-2); letter-spacing: 0; margin-bottom: 12px; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot address { font-style: normal; color: var(--on-dark-2); }
.foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.foot-brand img { width: 40px; height: 40px; border-radius: 8px; }
.foot-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--on-dark-2); font-size: .8125rem; }
@media (max-width: 991.98px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- page headers (inner) ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .875rem; color: var(--ink-3); margin-bottom: 20px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); }
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); max-width: 18ch; }
.page-head .lead { margin-top: 20px; max-width: 60ch; }
.page-head-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 48px; align-items: end; }
@media (max-width: 991.98px) { .page-head-grid { grid-template-columns: 1fr; } }

/* about */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.about-grid .sticky { position: sticky; top: 96px; }
.story { display: grid; gap: 40px; }
.story section h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 14px; }
.photo-frame { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); position: relative; background: #E3E8F0; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(13, 19, 33, .78); color: var(--on-dark); font-size: .75rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 991.98px) { .about-grid { grid-template-columns: 1fr; } .about-grid .sticky { position: static; } }
@media (max-width: 575.98px) { .values { grid-template-columns: 1fr; } }

/* academics */
.stage { display: grid; grid-template-columns: 2fr 5fr 5fr; gap: 24px 40px; padding-block: 40px; border-top: 1px solid var(--line-dark); align-items: start; }
.stage:last-child { border-bottom: 1px solid var(--line-dark); }
.stage .ages { font-family: var(--mono); color: var(--lime); font-size: .9375rem; }
.stage .ages small { display: block; color: var(--on-dark-2); font-size: .8125rem; margin-top: 4px; font-family: var(--font); }
.stage figure { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.stage figure img { width: 100%; height: 100%; object-fit: cover; }
.stage figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(13, 19, 33, .8); font-size: .75rem; }
.stage h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); margin-bottom: 12px; }
.stage p { color: var(--on-dark-2); }
@media (max-width: 991.98px) { .stage { grid-template-columns: 1fr 1fr; } .stage .ages { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .stage { grid-template-columns: 1fr; } }
.approach { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.approach > div { padding: 24px 24px 0 0; }
.approach h3 { font-size: 1.125rem; margin-bottom: 8px; }
.approach p { color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 991.98px) { .approach { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .approach { grid-template-columns: 1fr; } }

/* admissions */
.age-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.age-table caption { caption-side: bottom; text-align: left; padding-top: 12px; color: var(--ink-3); font-size: .875rem; }
.age-table th, .age-table td { text-align: left; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); }
.age-table thead th { font-weight: 500; color: var(--ink-3); border-bottom-color: var(--ink); font-size: .875rem; }
.age-table td.num { font-family: var(--mono); }
.faq-search { position: relative; margin-bottom: 20px; }
.faq-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.faq-search input { width: 100%; height: 52px; padding: 0 16px 0 44px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); font-size: 1rem; }
.faq-search input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; font-weight: 500; font-size: 1.0625rem; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease; color: var(--ink-3); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); max-width: 64ch; }
.faq mark { background: #DDE2EC; color: var(--ink); border-radius: 2px; padding: 0 2px; }
.faq-empty { padding: 20px 0; color: var(--ink-2); }

/* forms */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3.5vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 575.98px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 500; font-size: .9375rem; margin-bottom: 8px; }
.field label .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 1rem; color: var(--ink);
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #6B7489; }
.field .hint { font-size: .8125rem; color: var(--ink-3); margin-top: 6px; }
.field .err { display: none; align-items: center; gap: 6px; font-size: .875rem; color: var(--error); margin-top: 6px; font-weight: 500; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field [aria-invalid="true"] ~ .err { display: flex; }
.prefix { display: flex; }
.prefix span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--ground); font-family: var(--mono); font-size: .9375rem; color: var(--ink-2); }
.prefix input { border-radius: 0 var(--r) var(--r) 0; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-foot p { font-size: .8125rem; color: var(--ink-3); max-width: 46ch; margin: 0; }
.form-status { margin-top: 16px; border-radius: var(--r); padding: 14px 16px; font-size: .9375rem; display: flex; gap: 10px; align-items: flex-start; }
.form-status.ok { background: var(--ink); color: var(--on-dark); }
.form-status.ok .icon { color: var(--lime); }
.form-status.bad { border: 1px solid var(--error); color: var(--error); background: #FFF5F7; }
.form-status a { color: inherit; font-weight: 600; }
.spinner { 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); } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* campus life */
.expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.expect > div { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.expect h3 { font-size: 1.125rem; }
.expect p { font-size: .9375rem; color: var(--ink-2); }
@media (max-width: 991.98px) { .expect { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .expect { grid-template-columns: 1fr; } }
.gallery { columns: 3 280px; column-gap: 12px; }
.gallery button { display: block; width: 100%; padding: 0; margin: 0 0 12px; border: 1px solid var(--line-dark); border-radius: var(--r); overflow: hidden; background: var(--surface-dark); break-inside: avoid; position: relative; }
.gallery img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.025); }
.gallery button span { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(13, 19, 33, .8); color: var(--on-dark); font-size: .75rem; text-align: left; }
.lightbox { position: fixed; inset: 0; z-index: 130; background: rgba(8, 11, 20, .94); color: var(--on-dark); display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.lb-top .count { font-family: var(--mono); font-size: .875rem; color: var(--on-dark-2); }
.lb-stage { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 8px; padding: 0 8px; min-height: 0; }
.lb-stage img { max-height: 76vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--r); object-fit: contain; }
.lb-btn { width: 48px; height: 48px; border-radius: var(--r); border: 1px solid var(--line-dark); background: var(--surface-dark); color: var(--on-dark); display: grid; place-items: center; }
.lb-btn:hover { border-color: var(--on-dark-2); }
.lb-cap { padding: 12px 16px 20px; text-align: center; color: var(--on-dark-2); font-size: .9375rem; }
@media (max-width: 575.98px) { .lb-stage { grid-template-columns: 1fr; } .lb-stage .lb-prev, .lb-stage .lb-next { display: none; } .lb-mobile-nav { display: flex !important; } }
.lb-mobile-nav { display: none; justify-content: center; gap: 12px; padding-bottom: 8px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: start; }
.contact-list { list-style: none; border-top: 1px solid var(--ink); }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.contact-list .ic { width: 40px; height: 40px; border-radius: var(--r); background: var(--ink); color: var(--ground); display: grid; place-items: center; }
.contact-list .label { font-size: 1rem; letter-spacing: 0; margin-bottom: 4px; color: var(--ink-3); font-weight: 500; }
.contact-list p, .contact-list a.big { font-size: 1.125rem; font-weight: 500; }
@media (max-width: 991.98px) { .contact-grid { grid-template-columns: 1fr; } }

/* simple pages */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.center-page { min-height: 60vh; display: grid; align-content: center; gap: 20px; }
.big-code { font-family: var(--mono); font-size: clamp(4rem, 12vw, 9rem); line-height: 1; letter-spacing: -0.04em; color: var(--ink); }

.stock-note { font-size: .8125rem; color: var(--ink-3); margin-top: 16px; }
.band-dark .stock-note { color: var(--on-dark-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 8px; float: left; width: 100%; }
legend + * { clear: both; }
.nw { white-space: nowrap; }
.t-head p { margin: 0; }
.foot .muted { color: var(--on-dark-2); }
.foot-brand img { outline: 1px solid var(--line-dark); }
@media (max-width: 991.98px) {
  .t-head { order: 1; } .t-actions { order: 2; } .t-today { order: 3; } .t-photo { order: 4; }
}
@media (max-width: 575.98px) {
  .t-head h1 { font-size: 2.125rem; }
  .t-head .lead { font-size: 1rem; }
  .t-head .hi { font-size: 1rem; }
}
.about-grid .ledger-row { grid-template-columns: 1fr auto; }
.about-grid .ledger-row dd { grid-column: 1 / -1; grid-row: 2; }
.about-grid .ledger-row .state { grid-row: 1; grid-column: 2; }
.field:has([aria-invalid="true"]) .err { display: flex; }
.prefix:has([aria-invalid="true"]) span { border-color: var(--error); }
.band-light .tp-list li::before { background: var(--ink); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 4px; }
.week span { display: grid; place-items: center; height: 32px; border-radius: 6px; border: 1px solid var(--line-dark); font-family: var(--mono); font-size: .75rem; color: var(--on-dark-2); }
.week span.open { background: var(--surface-dark); color: var(--on-dark); }
.week span.now { border-color: var(--lime); color: var(--lime); }
.rail-step .range { font-family: var(--mono); font-size: .875rem; color: var(--ink-3); margin: -4px 0 10px; }
.rail-4 { grid-template-columns: repeat(4, 1fr); }
.rail h3 .n { font-family: var(--mono); font-weight: 500; font-size: .9em; color: var(--ink-3); margin-right: 10px; letter-spacing: 0; }
@media (max-width: 991.98px) and (min-width: 768px) { .rail-4 { grid-template-columns: 1fr 1fr; row-gap: 24px; } }
