/* Orient Public School: "A new day begins"
   Ground warm white, night-indigo ink, one saffron sun, dawn-rose horizon, sky for small fills.
   Layout grid comes from Bootstrap 5.3.3 (bootstrap-grid.min.css); everything else is here. */

:root {
  --ground: #FFF8EE;
  --ground-2: #FBEFDD;
  --ink: #1D1B3B;
  --ink-2: #4B4868;
  --saffron: #F08A24;
  --saffron-ink: #9A4708;
  --rose: #E2695A;
  --sky: #A9CBEA;
  --sky-wash: #EAF2FA;
  --line: rgba(29, 27, 59, .16);
  --night-text: #FFF8EE;
  --night-2: #C9C3D9;
  --err: #B23A2C;
  --err-night: #FFB4A8;
  --display: "Rozha One", "Noto Serif Devanagari", Georgia, serif;
  --body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --head-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- language switch: both languages are in the HTML; one is shown */
html.hi [data-l="en"],
html:not(.hi) [data-l="hi"] { display: none !important; }

/* ---------- critical grid fallback: the same values as Bootstrap 5.3.3's grid, so the first viewport
   does not shift while bootstrap-grid.min.css (loaded without blocking render) arrives */
.container { width: 100%; padding-right: .75rem; padding-left: .75rem; 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; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }
.hero-row { display: flex; flex-wrap: wrap; margin-right: -.75rem; margin-left: -.75rem; }
.hero-row > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-right: .75rem; padding-left: .75rem; }
@media (min-width: 992px) { .hero-row > .col-lg-6 { flex: 0 0 auto; width: 50%; } }

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.62;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  caret-color: var(--saffron-ink);
}
html.hi body { line-height: 1.72; font-size: 1.1875rem; }
::selection { background: var(--saffron); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--saffron); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible, .dock :focus-visible, .site-foot :focus-visible { outline-color: var(--saffron); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type */
.hero-title, .page-title, .h-sec, .brand-name, .step-title, .sheet-links a, .pull, .h-sub {
  font-family: var(--display);
  font-weight: 400;
}
.h-sec { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.1; margin-bottom: .55em; letter-spacing: -.005em; }
html.hi .h-sec { line-height: 1.32; }
.h-sub { font-size: 1.5rem; line-height: 1.25; margin: 2.2rem 0 .8rem; }
.lead { font-size: 1.25rem; max-width: 34em; color: var(--ink-2); }
.fine { font-size: .9375rem; color: var(--ink-2); margin-top: 1rem; }
.night .fine { color: var(--night-2); }
.photo-note { font-size: .8125rem; color: var(--ink-2); margin: .6rem 0 0; }
.night .photo-note { color: var(--night-2); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .35rem 1.5rem; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .icon:last-child:not(:first-child) { transition: transform .3s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn-sm { min-height: 44px; padding: .25rem 1.1rem; font-size: 1rem; }
.btn-sun { background: var(--saffron); color: var(--ink); }
.btn-sun:hover { background: #F59B42; text-decoration: none; }
.btn-ink { background: var(--ink); color: var(--ground); }
.btn-ink:hover { background: #2C2958; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.btn-line-light { border-color: rgba(255, 248, 238, .7); color: var(--night-text); }
.btn-line-light:hover { background: var(--night-text); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; color: var(--saffron-ink); margin-top: .5rem; }

/* ---------- header */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 248, 238, .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-head { background: rgba(255, 248, 238, .86); backdrop-filter: blur(10px) saturate(1.2); }
}
.head-row { display: flex; align-items: center; gap: 1rem; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; min-width: 0; }
.crest { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-size: 1.32rem; white-space: nowrap; }
.brand-hi { font-size: .82rem; color: var(--ink-2); white-space: nowrap; margin-top: .1rem; }
.nav-desk { display: none; }
.nav-desk ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav-desk a {
  display: block; padding: .55rem .8rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 1.02rem;
  position: relative;
}
.nav-desk a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 14px; height: 7px; margin-left: -7px;
  background: var(--saffron); border-radius: 14px 14px 0 0; transform: scaleY(0); transform-origin: bottom;
  transition: transform .3s var(--ease);
}
.nav-desk a:hover::after, .nav-desk a[aria-current="page"]::after { transform: scaleY(1); }
.head-actions { display: flex; align-items: center; gap: .75rem; }
.head-call { display: none; }

.langpill {
  display: inline-flex; padding: 3px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ground); flex: none;
}
.langpill button {
  min-width: 48px; min-height: 38px; padding: 0 .75rem; border: 0; border-radius: 999px; background: transparent;
  font-weight: 700; font-size: .95rem; line-height: 1; color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.langpill button[lang="hi"] { font-size: 1rem; padding-top: 2px; }
.langpill button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.langpill button[aria-pressed="false"]:hover { background: var(--sky-wash); }

@media (min-width: 768px) { .head-call { display: inline-flex; } }
@media (min-width: 1100px) { .nav-desk { display: block; } }

/* ---------- phone dock + bottom sheet */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--ink); color: var(--night-text);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
}
.dock a, .dock button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; background: none; border: 0; border-radius: 12px; text-decoration: none;
  font-weight: 600; font-size: .95rem; color: var(--night-text);
}
.dock .icon { color: var(--saffron); width: 24px; height: 24px; }
.dock-menu { background: rgba(255, 248, 238, .08) !important; }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 1100px) {
  .dock { display: none; }
  body { padding-bottom: 0; }
}

.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(29, 27, 59, .55); opacity: 0; transition: opacity .3s ease; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--ground); border-radius: 28px 28px 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .45s var(--ease);
}
.sheet-panel::before {
  content: ""; display: block; width: 72px; height: 36px; margin: 0 auto 2px;
  background: var(--saffron); border-radius: 72px 72px 0 0; /* the sun on the sheet's horizon */
}
.sheet.is-open .sheet-scrim { opacity: 1; }
.sheet.is-open .sheet-panel { transform: none; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; border-top: 2px solid var(--rose); padding-top: .75rem; }
.sheet-title { margin: 0; font-weight: 700; color: var(--ink-2); }
.sheet-close { width: 48px; height: 48px; border: 0; background: var(--sky-wash); border-radius: 50%; display: grid; place-items: center; }
.sheet-links { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.sheet-links a {
  display: block; padding: .55rem 0; font-size: 1.7rem; line-height: 1.25; text-decoration: none; border-bottom: 1px solid var(--line);
}
.sheet-links a[aria-current="page"] { color: var(--saffron-ink); }
.sheet-lang { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0; font-weight: 600; }
.sheet-actions { display: grid; gap: .75rem; }

/* ---------- hero */
.hero { position: relative; padding-top: clamp(20px, 3vw, 40px); overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rose); z-index: 3; }
.hero-copy { padding-bottom: clamp(24px, 4vw, 56px); align-self: center; }
.hero-title {
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.01em; max-width: 11ch;
}
html.hi .hero-title { line-height: 1.22; max-width: 12ch; }
.hero-echo { font-family: var(--display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); color: var(--saffron-ink); margin: .6rem 0 1.2rem; line-height: 1.3; }
.hero-lead { font-size: 1.2rem; max-width: 33em; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.2rem; }
.hero-meta { display: flex; gap: .45rem; align-items: center; font-size: 1rem; color: var(--ink-2); margin: 0; }
.hero-meta .icon { color: var(--saffron-ink); }

.dawn {
  position: relative; height: clamp(420px, calc(100svh - var(--head-h) - 40px), 720px); margin: 0 -12px;
}
.dawn-glow {
  position: absolute; left: 50%; bottom: -30%; width: 130%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(240, 138, 36, .22), rgba(240, 138, 36, 0) 70%);
}
.dawn-sun {
  position: absolute; left: 50%; bottom: 0; width: clamp(340px, 56vw, 860px); aspect-ratio: 2 / 1;
  background: var(--saffron); border-radius: 999px 999px 0 0; transform: translateX(-50%);
  animation: rise 1.6s var(--ease) both .1s;
}
.dawn-child {
  position: absolute; left: 50%; bottom: 0; height: 97%; width: auto; transform: translateX(-46%); z-index: 2;
}
.dawn-note { position: absolute; right: 12px; bottom: 10px; z-index: 3; margin: 0; max-width: 11em; text-align: right; font-size: .75rem; line-height: 1.3; color: var(--ink) !important; }
@keyframes rise { from { transform: translate(-50%, 42%); } to { transform: translate(-50%, 0); } }

@media (max-width: 991.98px) {
  .dawn { height: clamp(300px, 46vh, 420px); }
  .dawn-sun { width: min(112%, 640px); }
  .dawn-note { bottom: 8px; right: 8px; max-width: 8.5em; }
}

/* ---------- language band */
.langband { border-top: 3px solid var(--rose); background: var(--ground-2); }
.langband-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.langband p { margin: 0; font-weight: 600; font-size: 1.1rem; }

/* ---------- sections */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.night { background: var(--ink); color: var(--night-text); }
.night .lead, .night p { color: var(--night-2); }
.night .h-sec, .night h3 { color: var(--night-text); }
.night a:not(.btn) { color: var(--night-text); text-decoration-color: var(--saffron); }

/* photo frame: a small sun rising behind every photograph */
.sunframe { position: relative; padding-top: 34px; }
.sunframe::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 34%; aspect-ratio: 2 / 1; transform: translateX(-50%);
  background: var(--saffron); border-radius: 999px 999px 0 0; z-index: 0;
}
.sunframe img { position: relative; z-index: 1; border-radius: 6px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sunframe-tall img { aspect-ratio: 4 / 5; }
.round-top { border-radius: 6px; width: 100%; }

/* placeholders: dashed, never filled with guesses */
.placeholder {
  border: 2px dashed rgba(75, 72, 104, .55); border-radius: var(--radius);
  padding: .9rem 1.1rem; color: var(--ink-2); background: rgba(169, 203, 234, .18);
  font-size: 1.02rem; margin: 1rem 0;
}
.night .placeholder { border-color: rgba(255, 248, 238, .42); color: var(--night-2); background: rgba(169, 203, 234, .08); }

/* ---------- sunrise admissions timeline */
.sunrise { margin-top: 1.5rem; }
.arc-wrap { position: relative; width: 100%; max-width: 980px; margin: 0 auto; aspect-ratio: 1000 / 520; }
.arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arc-path { fill: none; stroke: var(--ink); stroke-opacity: .25; stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.arc-done { fill: none; stroke: var(--saffron); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .8s var(--ease); }
.arc-horizon { stroke: var(--rose); stroke-width: 3; }
.arc-sun {
  position: absolute; left: var(--sx, 6%); top: var(--sy, 96.15%); width: clamp(64px, 11vw, 128px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 138, 36, .35), rgba(240, 138, 36, 0));
  transition: left .8s var(--ease), top .8s var(--ease); pointer-events: none;
}
.stops { list-style: none; margin: 0; padding: 0; }
.stop { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.stop button {
  display: flex; flex-direction: column; align-items: center; gap: .4rem; background: none; border: 0; padding: 4px;
  border-radius: 14px; position: relative;
}
.stop-dot {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ground); border: 2px solid var(--ink); font-weight: 700; font-size: 1.1rem;
  transition: background-color .3s ease, transform .3s var(--ease);
}
.stop button[aria-selected="true"] .stop-dot { background: var(--saffron); border-color: var(--saffron); transform: scale(1.18); }
.stop.done .stop-dot { background: var(--ink); color: var(--ground); }
.stop-label {
  position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); width: 11.5em;
  font-weight: 600; font-size: 1rem; line-height: 1.25; text-align: center; color: var(--ink-2);
}
.stop button[aria-selected="true"] .stop-label { color: var(--ink); }
.step-panels { max-width: 640px; margin: 4.5rem auto 0; text-align: center; }
.step-panel:focus-visible { outline-offset: 8px; }
.step-count { font-weight: 700; color: var(--saffron-ink); margin-bottom: .2rem; }
.step-title { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem); line-height: 1.2; margin-bottom: .5rem; }
.step-text { font-size: 1.15rem; color: var(--ink-2); }
.step-nav { display: flex; justify-content: center; gap: .75rem; margin-top: 1.2rem; }
.sunrise > .fine { text-align: center; max-width: 40em; margin: 1.5rem auto 0; }
@media (max-width: 767.98px) {
  .stop-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stop-dot { width: 40px; height: 40px; font-size: 1rem; }
  .step-panels { margin-top: 1.75rem; }
}

/* ---------- two languages */
.two-lang .sunframe img { aspect-ratio: 4 / 3; }

/* ---------- help desk FAQ */
.helpdesk-photo { margin-top: 1.5rem; }
.helpdesk-photo img { border-radius: 6px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.qa-list { border-top: 1px solid rgba(29, 27, 59, .2); }
.night .qa-list { border-top-color: rgba(255, 248, 238, .2); }
.qa { border-bottom: 1px solid rgba(29, 27, 59, .2); }
.night .qa { border-bottom-color: rgba(255, 248, 238, .2); }
.qa summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; cursor: pointer; font-weight: 600; font-size: 1.2rem; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa-mark { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid currentColor; transition: transform .3s var(--ease), background-color .2s; }
.qa[open] .qa-mark { transform: rotate(45deg); background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.qa-a { padding: 0 3.5rem 1.4rem 0; }
.qa-a p { margin-bottom: .8rem; }
.qa-wa { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; min-height: 44px; }
.night .qa-wa { color: var(--saffron) !important; }
.qa-wa .icon { color: var(--saffron); }
@media (max-width: 575.98px) { .qa-a { padding-right: 0; } }

/* ---------- ledger: solid rule = verified, dashed rule = to be confirmed */
.ledger { margin: 0; }
.lg-row { display: grid; grid-template-columns: minmax(8rem, 30%) 1fr; gap: .4rem 1.5rem; padding: .95rem 0; border-bottom: 2px solid var(--ink); }
.lg-row.tbc { border-bottom: 2px dashed rgba(75, 72, 104, .55); }
.lg-row dt { font-weight: 700; }
.lg-row dd { margin: 0; color: var(--ink-2); }
.lg-row:first-child { border-top: 2px solid var(--ink); }
.tag {
  display: inline-block; font-size: .8rem; font-weight: 700; line-height: 1.2; padding: .25rem .6rem; margin-left: .25rem;
  background: var(--sky); color: var(--ink); border-radius: 999px; vertical-align: .1em; white-space: nowrap;
}
.tag-line { margin-top: .8rem; }
.tag-line .tag { margin-left: 0; }
@media (max-width: 575.98px) { .lg-row { grid-template-columns: 1fr; } }

/* ---------- visit + form */
.contact-rows { list-style: none; margin: 1.5rem 0; padding: 0; }
.contact-rows li { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.night .contact-rows li { border-bottom-color: rgba(255, 248, 238, .18); }
.contact-rows .icon { width: 26px; height: 26px; color: var(--saffron-ink); margin-top: .2rem; }
.night .contact-rows .icon { color: var(--saffron); }
.contact-rows p, .contact-rows address { margin: 0; }
.cr-h { font-weight: 700; font-size: .95rem; }
.cr-sub { font-size: .95rem; color: var(--ink-2); }
.night .cr-sub { color: var(--night-2); }
.contact-rows a { font-weight: 600; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.f-row, .f-submit, .form > .fine, .hp { grid-column: 1 / -1; }
.f-half { grid-column: auto; }
@media (max-width: 575.98px) { .f-half { grid-column: 1 / -1; } }
.f-row { margin-bottom: 1.1rem; }
.form label { display: block; font-weight: 700; margin-bottom: .35rem; line-height: 1.3; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 52px; padding: .65rem .9rem; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 2px solid rgba(29, 27, 59, .28); border-radius: 12px;
  transition: border-color .2s ease;
}
.form textarea { min-height: 104px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--saffron); outline-offset: 1px; border-color: var(--ink); }
.form [aria-invalid="true"] { border-color: var(--err); }
.f-hint { font-size: .9rem; color: var(--ink-2); margin: .35rem 0 0; }
.f-err { font-size: .95rem; font-weight: 600; color: var(--err); margin: .3rem 0 0; min-height: 0; }
.f-err:empty { display: none; }
.f-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .4rem; }
.f-status { margin: 0; font-weight: 600; flex: 1 1 16rem; }
.f-status.ok { color: #1E6B45; }
.f-status.fail { color: var(--err); }
.hp { position: absolute; left: -9999px; }
.night-form label { color: var(--night-text); }
.night-form input, .night-form select, .night-form textarea {
  background: rgba(255, 248, 238, .06); color: var(--night-text); border-color: rgba(255, 248, 238, .4);
}
.night-form select option { color: var(--ink); background: var(--ground); }
.night-form input:focus-visible, .night-form select:focus-visible, .night-form textarea:focus-visible { border-color: var(--saffron); }
.night-form [aria-invalid="true"] { border-color: var(--err-night); }
.night-form .f-hint { color: var(--night-2); }
.night-form .f-err, .night-form .f-status.fail { color: var(--err-night); }
.night-form .f-status.ok { color: #B9F0CF; }
.visit .btn-line-light { margin-top: .5rem; }

/* ---------- voices */
.voices .placeholder { margin-top: 0; margin-bottom: 1rem; }

/* ---------- inner page hero */
.page-hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 96px); border-bottom: 3px solid var(--rose); }
.page-hero-tall { padding-bottom: clamp(72px, 9vw, 128px); }
.page-title { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.6rem); line-height: 1.04; max-width: 13ch; position: relative; z-index: 1; margin-top: 1rem; }
html.hi .page-title { line-height: 1.25; }
.page-lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; margin-top: 1rem; position: relative; z-index: 1; }
.page-sun {
  position: absolute; right: max(-60px, calc((100vw - 1320px) / 2 - 40px)); bottom: 0; width: clamp(180px, 30vw, 440px); aspect-ratio: 2 / 1;
  background: var(--saffron); border-radius: 999px 999px 0 0; z-index: 0;
}
@media (max-width: 767.98px) {
  .page-sun { right: -40px; width: 150px; }
  .page-lead { padding-right: 0; }
}
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .95rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }

/* about */
.wide-dusk img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 6px; }
.about-cols { margin-top: 2.5rem; }
.pull { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.25; margin: 0 0 1rem; padding-left: 0; color: var(--night-text); }
.pull::before { content: ""; display: block; width: 64px; height: 32px; background: var(--saffron); border-radius: 64px 64px 0 0; margin-bottom: 1rem; }

/* academics */
.stage { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.stage:last-child { border-bottom: 0; }
.stage-ages { font-weight: 700; color: var(--saffron-ink); margin-bottom: .3rem; }

/* admissions */
table.ages { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.ages th, .ages td { text-align: left; padding: .8rem .2rem; border-bottom: 2px dashed rgba(75, 72, 104, .55); }
.ages thead th { border-bottom: 2px solid var(--ink); font-size: .95rem; color: var(--ink-2); }
.ages tbody th { font-weight: 700; }
.docs { columns: 2 16rem; column-gap: 2rem; padding-left: 1.2rem; margin: 0 0 1rem; }
.docs li { break-inside: avoid; padding: .3rem 0; }
.docs li::marker { color: var(--saffron-ink); }
.ledger-sec .sunframe { margin-top: 2rem; }

/* campus */
.gallery { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.g-btn { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 6px; overflow: hidden; }
.g-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.g-btn:hover img { transform: scale(1.03); }
@media (min-width: 992px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .g-0 { grid-column: span 2; grid-row: span 2; }
  .g-0 .g-btn, .g-0 .g-btn img { height: 100%; }
}
.lightbox { border: 0; padding: 56px 12px 16px; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; color: var(--night-text); }
.lightbox::backdrop { background: rgba(29, 27, 59, .92); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb-img { max-width: min(1100px, 92vw); max-height: 76vh; width: auto; height: auto; border-radius: 6px; }
.lb-cap { margin: .8rem 0 0; color: var(--night-2); text-align: center; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 248, 238, .12); color: var(--night-text);
  display: grid; place-items: center;
}
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; }
.lb-next { right: 12px; top: 50%; }
.notices { list-style: none; margin: 0; padding: 0; }
.notices li { padding: 1.2rem 0; border-bottom: 2px dashed rgba(255, 248, 238, .3); }
.notices .tag { margin: 0 0 .5rem; }
.notices h3 { font-family: var(--display); font-size: 1.5rem; line-height: 1.3; margin: .3rem 0; }
.notices p { margin: 0; }

/* contact */
.map { position: relative; aspect-ratio: 4 / 3; min-height: 320px; background: var(--sky-wash); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; border: 2px dashed rgba(75, 72, 104, .4); }
@media (max-width: 575.98px) { .map { aspect-ratio: auto; min-height: 380px; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card { background: var(--ground); padding: 1.5rem; border-radius: var(--radius); max-width: min(26rem, calc(100% - 2rem)); margin: 1rem; box-shadow: 0 10px 30px rgba(29, 27, 59, .12); }
.map-h { font-family: var(--display); font-size: 1.5rem; margin-bottom: .4rem; }
.map-plus { color: var(--ink-2); font-size: .95rem; margin: .4rem 0 1rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.map.is-loaded { border-style: solid; }
.hours { margin-top: 1rem; }
.contact-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.contact-photo { margin-top: 2.5rem; }

/* simple pages */
.prose .lead { color: var(--ink); }
.actions-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- footer */
.site-foot { padding: clamp(56px, 7vw, 96px) 0 2rem; border-top: 3px solid var(--rose); }
.foot-logo { width: 300px; height: auto; }
.foot-note { margin-top: 1.5rem; max-width: 28em; color: var(--night-2); }
.foot-h { font-family: var(--body); font-weight: 700; font-size: 1rem; color: var(--night-2); margin-bottom: .8rem; }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { padding: .25rem 0; }
.foot-list a { text-decoration: none; display: inline-block; min-height: 32px; }
.foot-list a:hover { text-decoration: underline; text-decoration-color: var(--saffron); }
.foot-addr { color: var(--night-2); margin-bottom: 1rem; }
.foot-base { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 248, 238, .18); font-size: .875rem; color: var(--night-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot-base p { margin: 0; }

/* ---------- motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- small phones: keep brand and language pill on one line */
@media (max-width: 420px) {
  .head-row { gap: .5rem; }
  .crest { width: 38px; height: 38px; }
  .brand { gap: .45rem; }
  .brand-name { font-size: 1.06rem; }
  .brand-hi { font-size: .74rem; }
  .brand-text { overflow: hidden; }
  .langpill button { min-width: 40px; min-height: 36px; padding: 0 .55rem; font-size: .9rem; }
}
.stop:first-child .stop-label { left: -4px; transform: none; text-align: left; }
.stop:last-child .stop-label { left: auto; right: -4px; transform: none; text-align: right; }
