/* Gurukul Public School: a terracotta wall painted with white Mandana. */
/* metric-matched local fallbacks, so the page does not jump when the web fonts arrive */
@font-face { font-family: "Khand Fallback"; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Arial Narrow"); font-weight: 600; size-adjust: 90.8%; ascent-override: 115.6%; descent-override: 52.8%; line-gap-override: 0%; }
@font-face { font-family: "Jaldi Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 85.1%; ascent-override: 134.8%; descent-override: 63.7%; line-gap-override: 0%; }
@font-face { font-family: "Jaldi Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 700; size-adjust: 85.1%; ascent-override: 134.8%; descent-override: 63.7%; line-gap-override: 0%; }
:root {
  --ground: #F6EEE4;
  --ink: #2B1B12;
  --ink-2: #5C4436;
  --terra: #B5532E;
  --terra-deep: #8F3F21;
  --terra-hover: #9E4524;
  --chalk: #FFFDF7;
  --clay: #7A4A2C;
  --clay-deep: #5E3820;
  --neem: #4F7A3A;
  --neem-deep: #3D6230;
  --focus: var(--ink);
  --display: "Khand", "Khand Fallback", "Arial Narrow", sans-serif;
  --body: "Jaldi", "Jaldi Fallback", "Noto Sans Devanagari", sans-serif;
  --step--1: .9rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem);
  --sec: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16'%3E%3Cpath d='M0 1.5H28' stroke='%23FFFDF7' stroke-width='2'/%3E%3Cpath d='M3 4.5 L14 14 L25 4.5Z' fill='none' stroke='%23FFFDF7' stroke-width='1.8' stroke-linejoin='round'/%3E%3Ccircle cx='0' cy='9' r='1.7' fill='%23FFFDF7'/%3E%3Ccircle cx='28' cy='9' r='1.7' fill='%23FFFDF7'/%3E%3C/svg%3E");
  --plaster: radial-gradient(rgba(255, 253, 247, .05) 1px, transparent 1.6px), radial-gradient(rgba(43, 27, 18, .07) 1px, transparent 1.6px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-deep); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
::selection { background: var(--terra); color: var(--chalk); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }
[lang="hi"] { font-family: "Jaldi", "Khand", "Noto Sans Devanagari", sans-serif; }
.hi-line { font-family: var(--display); font-size: var(--step-2); line-height: 1.2; margin: -.2em 0 .7em; }
.lead { font-size: 1.25rem; }
.small { font-size: var(--step--1); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--chalk); color: var(--ink); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

/* wall surfaces: the terracotta plaster */
.top, .hero, .wall, .phead, .sheet-wall {
  background-color: var(--terra);
  background-image: var(--plaster);
  background-size: 7px 7px, 11px 11px;
  color: var(--chalk);
  --focus: var(--chalk);
}
.wall a:not(.btn), .hero a:not(.btn), .phead a:not(.btn) { color: var(--chalk); }
.band-edge { height: 16px; background: var(--terra) var(--edge) repeat-x 0 0; }
.band-edge-top { background-color: var(--clay); transform: scaleY(-1); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .55rem 1.15rem .45rem;
  font: 600 1.2rem/1 var(--display); letter-spacing: .01em;
  border: 2px solid transparent; border-radius: 3px; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease-out, color .18s ease-out, border-color .18s ease-out;
}
.btn .ic { width: 20px; height: 20px; margin-top: -.15rem; }
.btn-white { background: var(--chalk); color: var(--terra-deep); border-color: var(--chalk); }
.btn-white:hover { background: var(--ground); color: var(--ink); }
.btn-line-w { background: transparent; color: var(--chalk); border-color: var(--chalk); }
.btn-line-w:hover { background: rgba(255, 253, 247, .14); color: var(--chalk); }
.btn-line { background: transparent; color: var(--terra-deep); border-color: var(--terra-deep); }
.btn-line:hover { background: var(--terra-deep); color: var(--chalk); }
.btn-terra { background: var(--terra-deep); color: var(--chalk); border-color: var(--terra-deep); }
.btn-terra:hover { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
.btn[disabled] { opacity: .7; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.text-link { font-family: var(--display); font-size: var(--step-1); font-weight: 600; }

/* header band */
.top { position: sticky; top: 0; z-index: 30; }
.top-row { display: flex; align-items: center; gap: 1.25rem; min-height: 76px; padding-top: .5rem; padding-bottom: .4rem; }
.brand { flex: none; display: block; }
.brand img { width: 210px; height: auto; }
.bandnav { margin-left: auto; }
.bandnav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.bandnav a {
  position: relative; display: block; padding: .55rem .7rem .4rem;
  font: 600 1.2rem/1 var(--display); color: var(--chalk); text-decoration: none;
}
.bandnav a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .05rem; height: 7px;
  background: radial-gradient(circle, var(--chalk) 1.6px, transparent 2px) 0 50% / 9px 7px repeat-x;
  opacity: 0; transition: opacity .18s ease-out;
}
.bandnav a:hover::after { opacity: .7; }
.bandnav a[aria-current="page"]::after { opacity: 1; background: var(--chalk); height: 3px; bottom: .1rem; }
.bandnav a[aria-current="page"]::before {
  content: ""; position: absolute; left: 50%; bottom: -.45rem; width: 9px; height: 9px; margin-left: -4.5px;
  background: var(--chalk); transform: rotate(45deg);
}
.top-call { flex: none; min-height: 44px; font-size: 1.1rem; }
.menu-btn {
  display: none; margin-left: auto; align-items: center; gap: .45rem; min-height: 46px; padding: .4rem .9rem;
  background: transparent; color: var(--chalk); border: 2px solid var(--chalk); border-radius: 3px;
  font: 600 1.15rem/1 var(--display); cursor: pointer;
}
@media (max-width: 1199.98px) { .bandnav a { padding-left: .5rem; padding-right: .5rem; font-size: 1.1rem; } .bandnav a::after { left: .5rem; right: .5rem; } .brand img { width: 186px; } }
@media (max-width: 991.98px) {
  .bandnav, .top-call { display: none; }
  .menu-btn { display: inline-flex; }
  .top-row { min-height: 64px; }
  .brand img { width: 176px; }
}

/* phone sheet: a painted mud wall */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(43, 27, 18, .5); }
.sheet[hidden] { display: none; }
.sheet-wall {
  position: absolute; inset: 0 0 0 auto; width: min(100%, 420px); overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem; box-shadow: inset 0 0 0 6px var(--terra), inset 0 0 0 8px var(--chalk);
  animation: wall-in .28s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes wall-in { from { transform: translateX(40px); opacity: 0; } }
.sheet-close { display: inline-flex; align-items: center; gap: .4rem; min-height: 46px; padding: .4rem .9rem; margin-left: auto;
  background: transparent; color: var(--chalk); border: 2px solid var(--chalk); border-radius: 3px; font: 600 1.15rem/1 var(--display); cursor: pointer; }
.sheet-wall > .sheet-close { display: flex; }
.sheet-links { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; }
.sheet-links li { border-bottom: 2px dotted rgba(255, 253, 247, .7); }
.sheet-links a { display: block; padding: .85rem 0 .7rem; font: 600 1.9rem/1 var(--display); color: var(--chalk); text-decoration: none; }
.sheet-links a[aria-current="page"] { padding-left: 1.4rem; position: relative; }
.sheet-links a[aria-current="page"]::before { content: ""; position: absolute; left: .1rem; top: 50%; width: 11px; height: 11px; margin-top: -8px; background: var(--chalk); transform: rotate(45deg); }
.sheet-acts { display: flex; gap: .75rem; flex-wrap: wrap; }
.sheet-hi { margin-top: 2rem; font-size: 1.5rem; opacity: .95; }

/* hero */
.hero { padding: clamp(1.75rem, 1rem + 3vw, 4.5rem) 0 clamp(2.5rem, 1.5rem + 3vw, 5rem); }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.9vw, 4.8rem); margin-bottom: .25em; }
.hero .lead { max-width: 34rem; }
.today { display: flex; align-items: center; gap: .6rem; font-weight: 700; margin: 0; }
.today-dot { width: 12px; height: 12px; flex: none; background: var(--chalk); transform: rotate(45deg); }
.today.is-open .today-dot { background: #B9E3A1; box-shadow: 0 0 0 3px rgba(185, 227, 161, .35); }
.dir-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; }
.frame { position: relative; width: min(100%, 540px); aspect-ratio: 1; margin: 0 auto; }
.frame-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.frame-photo { position: absolute; inset: 18.5%; z-index: 1; overflow: hidden; background: var(--terra-deep); }
.frame-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.frame-note { text-align: center; font-size: var(--step--1); margin: .6rem auto 0; opacity: .95; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.dots { fill: var(--chalk); }
@media (prefers-reduced-motion: no-preference) {
  .draw { animation: draw 1.6s cubic-bezier(.16, 1, .3, 1) both; }
  .d2 { animation-delay: .15s; } .d3 { animation-delay: .35s; animation-duration: 2.2s; } .d4 { animation-delay: .6s; } .d5 { animation-delay: .9s; }
  .dots { animation: fade .8s ease-out 1.4s both; }
}
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes fade { from { opacity: 0; } }
@media (max-width: 991.98px) {
  .frame { width: min(84vw, 420px); }
  .hero-art { margin-top: 1rem; }
}

/* sections */
.sec { padding: var(--sec) 0; }
.sec + .sec:not(.wall) { padding-top: calc(var(--sec) * .6); }
.wall { position: relative; }
.wall::before, .wall::after { content: ""; position: absolute; left: 0; right: 0; height: 16px; background: var(--edge) repeat-x; }
.wall::before { top: 10px; }
.wall::after { bottom: 10px; transform: scaleY(-1); }
.lead-d { font-size: 1.2rem; color: var(--ink-2); }
.wall .lead-d { color: var(--chalk); }
.sample-tag { display: inline-block; font-weight: 700; padding: .15rem .6rem; border: 2px dashed currentColor; border-radius: 2px; font-size: var(--step--1); }
.more { margin-top: 2rem; }
.mt-h { margin-top: 2.5rem; }
.stock-note { margin-top: 2.5rem; font-size: var(--step--1); color: var(--ink-2); }
.stock-note-inline { color: var(--ink-2); }

/* photos */
.ph { margin: 0; }
.ph img { width: 100%; border: 8px solid var(--chalk); outline: 2px solid var(--terra); outline-offset: -14px; }
.ph figcaption { font-size: var(--step--1); color: var(--ink-2); margin-top: .5rem; }
.wall .ph figcaption { color: var(--chalk); }
.ph-tilt img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.ph-arch img { aspect-ratio: 4 / 5; object-fit: cover; }
.ph-on-wall img { outline-color: var(--terra-deep); }

/* patterns we learn: Mandana tiles laid like a floor */
.ptiles { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--terra); }
.ptile { display: grid; grid-template-columns: 132px 1fr; gap: 1.4rem; padding: 2rem 1.75rem 2rem 0; border-bottom: 2px solid var(--terra); }
.ptile:nth-child(odd) { border-right: 2px solid var(--terra); }
.ptile:nth-child(even) { padding-left: 1.75rem; padding-right: 0; }
.ptile-art svg { width: 132px; height: 132px; display: block; }
.ptile h3 { font-size: var(--step-2); margin-bottom: .1em; }
.ptile-age { font-weight: 700; color: var(--terra-deep); margin-bottom: .5em; }
.ptile-tbc { display: inline-block; font-size: var(--step--1); font-weight: 700; color: var(--clay-deep); border-bottom: 2px dashed var(--clay); margin: 0; }
@media (max-width: 767.98px) {
  .ptiles { grid-template-columns: 1fr; }
  .ptile, .ptile:nth-child(odd), .ptile:nth-child(even) { grid-template-columns: 88px 1fr; gap: 1rem; padding: 1.5rem 0; border-right: 0; }
  .ptile-art svg { width: 88px; height: 88px; }
}

/* the day as a floor pattern */
.day-art { max-width: 440px; margin: 0 auto; }
.day-svg { width: 100%; height: auto; display: block; }
.petal path { fill: transparent; stroke: var(--chalk); stroke-width: 3; transition: fill .25s ease-out; }
.petal text { font: 600 26px var(--display); fill: var(--chalk); transition: fill .25s ease-out; }
.petal.on path { fill: var(--chalk); }
.petal.on text { fill: var(--terra-deep); }
.day-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; }
.day-step {
  width: 100%; display: flex; gap: .8rem; align-items: flex-start; text-align: left; padding: .7rem .8rem;
  background: transparent; color: var(--chalk); border: 2px solid transparent; border-radius: 3px; font: inherit; cursor: pointer;
}
.day-step:hover { border-color: rgba(255, 253, 247, .5); }
.day-step[aria-pressed="true"] { border-color: var(--chalk); background: rgba(43, 27, 18, .14); }
.day-n { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font: 600 1.25rem/1 var(--display); border: 2px solid var(--chalk); transform: rotate(45deg); margin: .2rem .3rem 0; }
.day-n::first-line { line-height: 1; }
.day-n { font-variant-numeric: tabular-nums; }
.day-step[aria-pressed="true"] .day-n { background: var(--chalk); color: var(--terra-deep); }
.day-t strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; }
.day-t span { display: block; font-size: 1rem; line-height: 1.45; }
.day-n > * { transform: rotate(-45deg); }
@media (max-width: 575.98px) { .day-list { grid-template-columns: 1fr; } .day-art { max-width: 300px; } }

/* facts */
.known { background: var(--chalk); border: 2px solid var(--terra); outline: 2px solid var(--terra); outline-offset: 5px; padding: 1.75rem; margin: 7px; }
.known h3 { font-size: var(--step-2); }
.chk { display: block; font: 700 var(--step--1)/1.3 var(--body); color: var(--neem-deep); margin-top: .3rem; }
.known dl { margin: 0; }
.known dl > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .65rem 0; border-top: 1px dashed rgba(122, 74, 44, .5); }
.known dt { font-weight: 700; color: var(--terra-deep); }
.known dd { margin: 0; }

/* to be filled in by the school */
.tbc { border: 2px dashed var(--clay); padding: 1.25rem 1.4rem 1rem; margin: 0 0 1.25rem; background: rgba(255, 253, 247, .55); }
.tbc-title { font-size: var(--step-1); margin-bottom: .3em; color: var(--clay-deep); }
h2.tbc-title { font-size: var(--step-2); }
.tbc p { color: var(--ink-2); }
.tbc-tag { margin: 0; font-size: var(--step--1); font-weight: 700; color: var(--clay-deep); }
.tbc-tag::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .5rem; border: 2px solid var(--clay); transform: rotate(45deg) translateY(-2px); }
.tbc-list ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.tbc-list li { margin-bottom: .35rem; }
.tbc-chip { font-size: var(--step--1); font-weight: 700; color: var(--clay-deep); border-bottom: 2px dashed var(--clay); }

/* FAQ with Mandana corners */
.faq { position: relative; border: 2px solid var(--terra); margin-bottom: .9rem; background: var(--chalk); }
.faq .corner { position: absolute; top: 4px; left: 4px; width: 32px; height: 32px; color: var(--terra); pointer-events: none; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem 1rem 3rem; font: 600 1.3rem/1.2 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid var(--terra-deep); transform: rotate(45deg); transition: background-color .2s ease-out; }
.faq[open] summary::after { background: var(--terra-deep); }
.faq p { padding: 0 1.2rem 1.1rem 3rem; margin: 0; }
.faq[open] { border-color: var(--terra-deep); }

/* takhti: the enquiry is written on a wooden writing board */
.takhti {
  position: relative; margin-top: 44px; padding: 2.25rem clamp(1.5rem, 4vw, 3rem) 2.25rem;
  background: var(--clay); color: var(--chalk); border-radius: 18px;
  box-shadow: inset 0 0 0 6px var(--clay-deep), 0 14px 30px -18px rgba(43, 27, 18, .7);
  --focus: var(--chalk);
}
.takhti-handle { position: absolute; top: -42px; left: 50%; width: 120px; height: 56px; margin-left: -60px; background: var(--clay); border-radius: 26px 26px 0 0; box-shadow: inset 0 6px 0 0 var(--clay-deep), inset 6px 0 0 0 var(--clay-deep), inset -6px 0 0 0 var(--clay-deep); }
.takhti-handle::after { content: ""; position: absolute; top: 14px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 4px var(--clay-deep); }
.takhti-title { font-size: var(--step-3); }
.takhti a { color: var(--chalk); }
.field label { display: block; font-weight: 700; margin-bottom: .2rem; }
.opt { font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .5rem .25rem .35rem; font: inherit; color: var(--chalk);
  background: transparent; border: 0; border-bottom: 2px solid rgba(255, 253, 247, .85); border-radius: 0;
}
.field textarea { background-image: repeating-linear-gradient(transparent 0 2.05rem, rgba(255, 253, 247, .35) 2.05rem 2.15rem); line-height: 2.1rem; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--chalk) 50%), linear-gradient(135deg, var(--chalk) 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 8px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 1.8rem; }
.field select option { color: var(--ink); background: var(--chalk); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--chalk); box-shadow: 0 3px 0 0 var(--chalk); background-color: rgba(255, 253, 247, .08); }
.field [aria-invalid="true"] { border-bottom-color: #FFD2BF; box-shadow: 0 3px 0 0 #FFD2BF; }
.hint { font-size: var(--step--1); margin: .35rem 0 0; opacity: .95; }
.err { font-size: var(--step--1); font-weight: 700; margin: .35rem 0 0; color: #FFE0D2; }
.err::before { content: ""; display: inline-block; width: 8px; height: 8px; background: #FFE0D2; transform: rotate(45deg); margin-right: .45rem; }
.hp { position: absolute; left: -9999px; }
.form-summary { margin-bottom: 1rem; padding: .7rem 1rem; border: 2px dashed var(--chalk); font-weight: 700; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.form-foot p { margin: 0; }
.form-result:empty { display: none; }
.form-result { margin-top: 1rem; padding: .8rem 1rem; font-weight: 700; border: 2px solid var(--chalk); }
.form-result.ok { background: var(--neem-deep); }
.form-result.bad { background: var(--clay-deep); }

.visit { border: 2px solid var(--terra); outline: 2px solid var(--terra); outline-offset: 5px; padding: 1.75rem; margin: 7px; background: var(--chalk); }
.visit h2 { font-size: var(--step-2); }
.visit .btn { margin: .3rem .5rem .3rem 0; }
.enq .row { --bs-gutter-y: 3rem; }

/* inner page head */
.phead { padding: clamp(2rem, 1.2rem + 3vw, 4rem) 0 clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.phead h1 { font-size: var(--step-4); }
.phead-tile svg { width: min(100%, 220px); height: auto; margin-left: auto; display: block; outline: 2px solid var(--chalk); outline-offset: 6px; }
@media (max-width: 767.98px) { .phead-tile { display: none; } }

ul.plain { padding-left: 1.2rem; }
ul.plain li { margin-bottom: .5rem; }
.motifs { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.motifs svg { width: 96px; height: 96px; display: block; margin-bottom: 1rem; outline: 2px solid var(--chalk); outline-offset: 4px; }
.motifs h3 { font-size: var(--step-1); }
@media (max-width: 991.98px) { .motifs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .motifs { grid-template-columns: 1fr; } }

/* learning */
.table-wrap { overflow-x: auto; }
.stages { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--chalk); border: 2px solid var(--terra); }
.stages caption { text-align: left; caption-side: top; font-weight: 700; padding-bottom: .75rem; color: var(--ink-2); }
.stages th, .stages td { text-align: left; padding: .9rem 1rem; border-bottom: 1px dashed rgba(122, 74, 44, .5); vertical-align: top; }
.stages thead th { font: 600 1.15rem/1.2 var(--display); background: var(--terra); color: var(--chalk); }
.stages tbody th { font: 600 1.25rem/1.2 var(--display); }
.lane + .lane { margin-top: clamp(2.5rem, 2rem + 3vw, 5rem); }

/* admissions */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--terra); }
.steps li { padding: 1.75rem 1.4rem 1.25rem; border-right: 2px solid var(--terra); position: relative; background: var(--chalk); }
.steps li:last-child { border-right: 0; }
.st-n { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 0 1.25rem 6px; background: var(--terra); color: var(--chalk); transform: rotate(45deg); font: 600 1.5rem/1 var(--display); }
.st-n::before { content: none; }
.steps h3 { font-size: var(--step-2); }
@media (max-width: 991.98px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li:nth-child(2) { border-right: 0; } .steps li:nth-child(-n+2) { border-bottom: 2px solid var(--terra); } }
@media (max-width: 575.98px) { .steps { grid-template-columns: 1fr; } .steps li { border-right: 0; border-bottom: 2px solid var(--terra); } .steps li:last-child { border-bottom: 0; } }
.docs { list-style: none; padding: 0; margin: 1.25rem 0 0; columns: 2; column-gap: 2rem; }
.docs li { break-inside: avoid; padding: .5rem 0 .5rem 1.6rem; position: relative; border-bottom: 2px dotted rgba(255, 253, 247, .6); }
.docs li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: 9px; height: 9px; border: 2px solid var(--chalk); transform: rotate(45deg); }
@media (max-width: 575.98px) { .docs { columns: 1; } }

/* school life */
.gallery { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1.25rem; }
.g-btn { display: block; width: 100%; padding: 0; border: 8px solid var(--chalk); outline: 2px solid var(--terra); outline-offset: -14px; background: var(--chalk); cursor: zoom-in; }
.g-btn img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.g-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 767.98px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery li:first-child { grid-column: 1 / -1; } .gallery li:first-child img { aspect-ratio: 4 / 3; } }
.lightbox { border: 0; padding: 0; background: var(--ink); color: var(--chalk); max-width: min(92vw, 900px); }
.lightbox::backdrop { background: rgba(43, 27, 18, .82); }
.lb-img { max-height: 72vh; width: auto; margin: 0 auto; }
.lb-cap { padding: .75rem 1rem 0; margin: 0; font-size: var(--step--1); }
.lb-ctrl { display: flex; gap: .5rem; justify-content: flex-end; padding: .75rem 1rem 1rem; }
.lb-ctrl button { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .4rem .8rem; background: transparent; color: var(--chalk); border: 2px solid var(--chalk); border-radius: 3px; font: 600 1.05rem/1 var(--display); cursor: pointer; }
.lightbox { --focus: var(--chalk); }
.notices { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.notices li { padding: 1rem 1.25rem; border: 2px dashed var(--chalk); }
.notices p { margin: .2rem 0 0; font: 600 1.4rem/1.2 var(--display); }
.nt-tag { font-size: var(--step--1); font-weight: 700; }

/* contact */
.reach { list-style: none; margin: 0; padding: 0; }
.reach > li { display: grid; grid-template-columns: 28px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 2px solid var(--terra); }
.reach > li > .ic { width: 26px; height: 26px; color: var(--terra-deep); margin-top: .2rem; }
.reach h2 { font-size: var(--step-1); margin-bottom: .2em; }
.reach p { margin: 0 0 .3rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 22rem; margin: .3rem 0 .5rem; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: .35rem .5rem; font-weight: 400; border-bottom: 1px dashed rgba(122, 74, 44, .45); }
.hours tr.is-today { background: var(--neem-deep); color: var(--chalk); }
.hours tr.is-today th { font-weight: 700; }
.map-card { position: relative; aspect-ratio: 4 / 3; background-color: var(--chalk); border: 2px solid var(--terra); outline: 2px solid var(--terra); outline-offset: 5px; margin: 7px; display: flex; flex-direction: column; }
.map-card iframe { width: 100%; flex: 1; border: 0; min-height: 260px; }
.map-fallback { padding: 1.5rem; margin-top: auto; }
.map-card:not(.has-map) .map-fallback { margin: auto 0; }
.map-name { font: 600 var(--step-2)/1.1 var(--display); margin-bottom: .3rem; }
.map-acts { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
@media (max-width: 575.98px) { .map-card { aspect-ratio: auto; min-height: 260px; } }
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-2); margin-top: 1.5em; }

/* footer and phone dock */
.foot { background: var(--clay); color: var(--chalk); padding: 0 0 2rem; --focus: var(--chalk); }
.foot .container { padding-top: 3rem; }
.foot a { color: var(--chalk); }
.foot-logo { width: 210px; margin-bottom: 1rem; }
.foot-hi { font-size: 1.2rem; }
.foot-acts { display: flex; flex-direction: column; gap: .3rem; }
.foot-h { font-size: var(--step-1); }
.foot-list, .foot-hours { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: .35rem; }
.foot-hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border-bottom: 1px dotted rgba(255, 253, 247, .45); font-variant-numeric: tabular-nums; max-width: 20rem; }
.foot-notes { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 2px solid rgba(255, 253, 247, .5); font-size: var(--step--1); }
.dock { display: none; }
@media (max-width: 767.98px) {
  .dock { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--clay-deep); border-top: 3px solid var(--chalk); --focus: var(--chalk); }
  .dock a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem 0 .5rem; min-height: 56px; color: var(--chalk); text-decoration: none; font: 600 1rem/1 var(--display); }
  .dock a + a { border-left: 1px solid rgba(255, 253, 247, .35); }
  body { padding-bottom: 60px; }
  .hero .actions .btn-line-w { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.st-n > span { transform: rotate(-45deg); }
.map-card { background-image: radial-gradient(rgba(181, 83, 46, .35) 1.6px, transparent 2px); background-size: 22px 22px; }
.map-card.has-map { background-image: none; }
.sheet-wall::after { content: ""; display: block; height: 16px; margin: 2rem -1.5rem 0; background: var(--edge) repeat-x; }

/* phones: a wider page gutter so text never sits tight to the screen edge */
@media (max-width: 575.98px) { .container { padding-left: 1.25rem; padding-right: 1.25rem; } }
