/* Shri B D Toshniwal Maheshwari Bal Mandir — "A letter to parents"
   Kraft and paper, letterpress Gloock, Karla body, ultramarine postmarks, stamp-green checks.
   Layout grid: Bootstrap 5.3.3 bootstrap-grid.min.css (critical rules inlined in <head>). */

@font-face { font-family: "Gloock fallback"; src: local("Georgia"); size-adjust: 105.5%; ascent-override: 92.4%; descent-override: 21.3%; line-gap-override: 0%; }
@font-face { font-family: "Karla fallback"; src: local("Arial"); size-adjust: 102.4%; ascent-override: 89.5%; descent-override: 24.6%; line-gap-override: 0%; }

:root {
  --kraft: #EFE6D8;
  --kraft-2: #E6DAC6;
  --paper: #FBF7EF;
  --ink: #2B2622;
  --ink-2: #574D45;
  --blue: #2B4BA0;
  --blue-deep: #22397A;
  --green: #3E7D5A;
  --green-ink: #2E6246;
  --rule: rgba(43, 38, 34, .16);
  --rule-strong: rgba(43, 38, 34, .32);
  --lift: 0 1px 1px rgba(43, 38, 34, .06), 0 2px 6px rgba(43, 38, 34, .06), 0 22px 44px -22px rgba(43, 38, 34, .38);
  --lift-sm: 0 1px 1px rgba(43, 38, 34, .08), 0 8px 18px -10px rgba(43, 38, 34, .35);
  --display: "Gloock", "Gloock fallback", Georgia, serif;
  --body: "Karla", "Karla fallback", Arial, sans-serif;
  --hindi: "Karla", "Nirmala UI", "Kohinoor Devanagari", "Noto Sans Devanagari", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; scrollbar-color: #B9AC97 var(--kraft); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--kraft); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  font-variant-numeric: lining-nums;
  /* kraft fibre: two faint noise layers drawn in CSS only */
  background-image:
    radial-gradient(rgba(120, 96, 64, .05) 1px, transparent 1.2px),
    radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1.4px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
}
::selection { background: var(--blue); color: var(--paper); }
input, textarea, select { caret-color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: #C9D5F7; }
[lang="hi"] { font-family: var(--hindi); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: var(--paper); padding: 10px 16px; border-radius: 4px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--paper); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 1.4rem + 3.6vw, 4.2rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); line-height: 1.2; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.measure { max-width: 66ch; }
.hi-line { font-size: 1.15rem; color: var(--green-ink); margin: -.2em 0 1em; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }

section { padding: clamp(64px, 9vw, 120px) 0; }
.band-paper { background: var(--paper); }
.band-ink { background: var(--ink); color: #EFE8DD; }
.band-ink a { color: #C9D5F7; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; min-height: 48px; padding: .7em 1.25em;
  border-radius: 6px; border: 2px solid transparent; font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ink { background: var(--blue); color: var(--paper); box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 8px 18px -10px rgba(34, 57, 122, .9); }
a.btn-ink:hover, button.btn-ink:hover { background: var(--blue-deep); color: var(--paper); transform: translateY(-1px); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
a.btn-line:hover, button.btn-line:hover { background: var(--ink); color: var(--paper); }
.band-ink .btn-line { border-color: #EFE8DD; color: #EFE8DD; }
.band-ink .btn-line:hover { background: #EFE8DD; color: var(--ink); }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.text-link { font-weight: 700; }

/* ---------- placeholders (to be provided by the school) ---------- */
.ph {
  border: 2px dashed var(--rule-strong); border-radius: 6px; padding: 18px 20px; color: var(--ink-2);
}
.ph strong { color: var(--ink); display: block; font-weight: 700; margin-bottom: 2px; }
.ph p:last-child { margin: 0; }
.band-ink .ph { border-color: rgba(239, 232, 221, .45); color: #D9D0C2; }
.band-ink .ph strong { color: #FBF7EF; }

/* ---------- perforated stamp (Temani Afif's stamp mask) ---------- */
.stamp {
  --r: 5px;
  background: var(--paper); padding: calc(2 * var(--r));
  -webkit-mask: radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
                linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
          mask: radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
                linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
}
.stamp-shadow { filter: drop-shadow(0 1px 1px rgba(43, 38, 34, .12)) drop-shadow(0 10px 14px rgba(43, 38, 34, .16)); }

/* ---------- header + stamp navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(239, 230, 216, .94); backdrop-filter: saturate(1.1) blur(6px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.stamp-nav { margin-left: auto; display: none; }
.stamp-nav ul { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.stamp-nav a {
  --r: 3px; position: relative; display: grid; place-items: center; min-width: 92px; min-height: 52px;
  padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; line-height: 1.1; text-align: center;
  transition: transform .3s var(--ease);
}
.stamp-nav a::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--rule-strong); pointer-events: none; }
.stamp-nav li { filter: drop-shadow(0 1px 1px rgba(43, 38, 34, .14)) drop-shadow(0 4px 6px rgba(43, 38, 34, .1)); }
.stamp-nav li:nth-child(odd) a { transform: rotate(-1.2deg); }
.stamp-nav li:nth-child(even) a { transform: rotate(.9deg); }
.stamp-nav a:hover { transform: translateY(-3px) rotate(0); color: var(--blue); }
.stamp-nav a[aria-current="page"] { color: var(--blue); }
.stamp-nav a[aria-current="page"]::before { border-color: var(--blue); }
/* the current page's stamp carries a cancel mark */
.stamp-nav a[aria-current="page"]::after {
  content: ""; position: absolute; right: -2px; top: 2px; width: 46px; height: 22px; pointer-events: none; opacity: .75; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 22'%3E%3Cg fill='none' stroke='%232B4BA0' stroke-width='1.6'%3E%3Cpath d='M1 5c4-3 7 3 11 0s7 3 11 0 7 3 11 0 7 3 11 0'/%3E%3Cpath d='M1 11c4-3 7 3 11 0s7 3 11 0 7 3 11 0 7 3 11 0'/%3E%3Cpath d='M1 17c4-3 7 3 11 0s7 3 11 0 7 3 11 0 7 3 11 0'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.header-call { display: none; }
.menu-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; font: 700 1rem var(--body); color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
@media (min-width: 1140px) {
  .stamp-nav { display: block; }
  .menu-btn { display: none; }
  .header-call { display: inline-flex; min-height: 46px; padding: .55em 1em; }
}
@media (max-width: 420px) { .brand img { height: 38px; } :root { --header-h: 72px; } }
@media (max-width: 359px) { .brand img { height: 32px; } }

/* ---------- folded-letter drawer (phones and tablets) ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.is-open { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(43, 38, 34, .45); opacity: 0; transition: opacity .3s; }
.drawer.is-visible .drawer-scrim { opacity: 1; }
.drawer-sheet {
  position: absolute; left: 12px; right: 12px; top: 12px; max-height: calc(100dvh - 24px); overflow: auto;
  background: var(--paper); border-radius: 4px; box-shadow: var(--lift); padding: 22px 22px 26px;
  /* two fold creases, as if the letter was folded in three */
  background-image: linear-gradient(to bottom, transparent calc(33.3% - 1px), rgba(43, 38, 34, .09) 33.3%, rgba(255,255,255,.7) calc(33.3% + 1px), transparent calc(33.3% + 2px), transparent calc(66.6% - 1px), rgba(43, 38, 34, .09) 66.6%, rgba(255,255,255,.7) calc(66.6% + 1px), transparent calc(66.6% + 2px));
  transform-origin: top center; transform: perspective(900px) rotateX(-70deg); opacity: 0;
  transition: transform .5s var(--ease), opacity .3s;
}
.drawer.is-visible .drawer-sheet { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .drawer-sheet { transform: none; transition: opacity .2s; } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.drawer-top p { font-family: var(--display); font-size: 1.5rem; margin: 0; }
.drawer-close { min-width: 46px; min-height: 46px; border: 1.5px solid var(--ink); background: transparent; border-radius: 6px; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.drawer-close svg { width: 22px; height: 22px; }
.drawer nav ul { list-style: none; margin: 0 0 18px; padding: 0; }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 13px 2px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.6rem; line-height: 1.2; }
.drawer nav a[aria-current="page"] { color: var(--blue); }
.drawer nav a[aria-current="page"]::after { content: "You are here"; font: 700 .8rem var(--body); color: var(--blue); }
.drawer-foot { display: grid; gap: 10px; }
.drawer-foot .btn { justify-content: center; }
.drawer-foot address { font-style: normal; color: var(--ink-2); font-size: .95rem; }
body.drawer-open { overflow: hidden; }

/* ---------- postmark ---------- */
.postmark { display: block; color: var(--blue); mix-blend-mode: multiply; }
.postmark text { font: 700 13px var(--body); fill: currentColor; letter-spacing: .06em; }
.postmark .pm-mid { font: 400 22px var(--display); letter-spacing: 0; }
.postmark .pm-small { font: 700 11px var(--body); letter-spacing: .04em; }
.postmark-green { color: var(--green); }

/* ---------- HOME: the letter hero ---------- */
.hero { padding: clamp(20px, 3vw, 40px) 0 clamp(64px, 8vw, 104px); }
.letter {
  position: relative; background: var(--paper); box-shadow: var(--lift); border-radius: 2px;
  padding: clamp(22px, 3.4vw, 44px) clamp(22px, 4.2vw, 56px) clamp(24px, 3.2vw, 40px);
  /* faint letterpress impression of a margin rule */
  background-image: linear-gradient(to right, transparent 0 calc(100% - 1px), rgba(43, 75, 160, .0) 0);
}
.letter-date { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-2); font-size: .95rem; border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 16px; }
.letter-salute { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); margin: 0 0 .35em; color: var(--ink-2); }
.letter h1 { text-shadow: 0 1px 0 rgba(255, 255, 255, .8); max-width: 17ch; font-size: clamp(2.2rem, 1.2rem + 2.9vw, 3.45rem); }
.letter-body { max-width: 58ch; }
.letter-sign { margin: 14px 0 0; line-height: 1.4; }
.letter-sign > span { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--ink); }
.letter-ps { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rule-strong); }
.letter-ps p { margin-bottom: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stamp-wrap { position: relative; padding: 18px 10px 96px; max-width: 520px; margin: 0 auto; }
.hero-stamp { transform: rotate(-2deg); }
@media (min-width: 992px) { .hero-stamp-wrap { margin-top: 110px; } }
.hero-stamp .stamp { --r: 8px; padding: 26px; }
.hero-stamp figure { margin: 0; }
.hero-stamp img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-stamp figcaption { display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; padding-top: 12px; font-size: .85rem; color: var(--ink-2); }
.hero-stamp figcaption b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--ink); }
.hero-postmark { position: absolute; width: clamp(150px, 14vw, 180px); left: -44px; bottom: 4px; transform: rotate(-12deg); text-decoration: none; }
.hero-postmark:hover { color: var(--blue-deep); }
@media (max-width: 575.98px) {
  .ld-name, .hide-sm, .letter-sign .hide-sm { display: none; }
  .letter-ps .actions { flex-wrap: nowrap; }
  .letter-date { margin-bottom: 12px; }
  .letter-salute { font-size: 1.3rem; }
  .letter h1 { font-size: 2.1rem; }
  .letter-sign { margin-top: 8px; }
  .letter-sign span { font-size: 1.15rem; }
  .letter-ps .actions .btn { padding: .6em 1em; }
}
.stock-note { font-size: .82rem; color: var(--ink-2); }
@media (max-width: 991.98px) {
  .hero-stamp-wrap { margin-top: 28px; }
  .hero-postmark { left: auto; right: 0; bottom: 0; width: 140px; }
}

/* ---------- register of facts (checked vs awaiting) ---------- */
.register { border-top: 2px solid var(--ink); }
.register-row { display: grid; grid-template-columns: 1fr; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: center; }
@media (min-width: 768px) { .register-row { grid-template-columns: 10rem 1fr 12.5rem; } }
.register-row dt { font-weight: 700; }
.register-row dd { margin: 0; }
.mark { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; padding: 5px 10px 5px 6px; border-radius: 999px; justify-self: start; }
.mark svg { width: 22px; height: 22px; flex: none; }
.mark-checked { color: var(--green-ink); border: 1.5px solid var(--green); background: rgba(62, 125, 90, .07); }
.mark-wait { color: var(--ink-2); border: 1.5px dashed var(--rule-strong); }
.register-note { margin-top: 18px; font-size: .95rem; color: var(--ink-2); }

/* ---------- admission steps as postmarked stamps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; filter: drop-shadow(0 1px 1px rgba(43, 38, 34, .12)) drop-shadow(0 10px 14px rgba(43, 38, 34, .14)); }
.step:nth-child(odd) .stamp { transform: rotate(-1deg); }
.step:nth-child(even) .stamp { transform: rotate(1.2deg); }
.step .stamp { --r: 6px; position: relative; height: 100%; padding: 22px 22px 24px; }
.step-frame { border: 1.5px solid var(--green); padding: 18px 18px 16px; height: 100%; display: flex; flex-direction: column; }
.step-value { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--green-ink); font-weight: 700; font-size: .95rem; }
.step-value svg { width: 34px; height: 34px; color: var(--blue); }
.step h3 { margin-bottom: .4em; }
.step p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.step > .postmark { position: absolute; top: -16px; right: -8px; width: 84px; transform: rotate(14deg); opacity: .85; }
.band-ink .step p { color: var(--ink-2); }
.band-ink .step h3 { color: var(--ink); }

/* ---------- postcards that flip ---------- */
.postcards { display: grid; gap: 32px; grid-template-columns: 1fr; max-width: 1060px; }
@media (min-width: 640px) { .postcard:nth-child(4n+1) { transform: rotate(-.8deg); } .postcard:nth-child(4n+2) { transform: rotate(.6deg) translateY(18px); } .postcard:nth-child(4n+3) { transform: rotate(.5deg); } .postcard:nth-child(4n) { transform: rotate(-.6deg) translateY(18px); } }
@media (min-width: 640px) { .postcards { grid-template-columns: repeat(2, 1fr); } }
.postcard { perspective: 1400px; }
.postcard button { all: unset; display: block; width: 100%; cursor: pointer; border-radius: 3px; }
.postcard button:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.pc-inner { position: relative; display: grid; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.postcard.is-flipped .pc-inner { transform: rotateY(180deg); }
.pc-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--paper); box-shadow: var(--lift-sm); padding: 12px; border-radius: 3px; }
.pc-front img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pc-front .pc-hint { display: flex; justify-content: space-between; padding: 10px 4px 0; font-size: .88rem; color: var(--ink-2); }
.pc-front .pc-hint b { color: var(--blue); }
.pc-back { transform: rotateY(180deg); display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; padding: 22px; }
.pc-back .pc-msg { border-right: 1px solid var(--rule); padding-right: 18px; }
.pc-back h3 { font-size: 1.4rem; }
.pc-back p { font-size: .98rem; color: var(--ink-2); margin-bottom: .6em; }
.pc-back .pc-addr { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.pc-addr .pc-stampbox { align-self: flex-end; width: 58px; height: 70px; border: 1.5px dashed var(--rule-strong); display: grid; place-items: center; font-size: .7rem; color: var(--ink-2); text-align: center; line-height: 1.2; }
.pc-addr span { display: block; border-bottom: 1px solid var(--rule-strong); height: 22px; font-size: .85rem; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) {
  .pc-inner { transition: none; }
  .postcard.is-flipped .pc-inner { transform: none; }
  .pc-back { transform: none; visibility: hidden; }
  .postcard.is-flipped .pc-back { visibility: visible; }
  .postcard.is-flipped .pc-front { visibility: hidden; }
}
@media (max-width: 480px) { .pc-back { grid-template-columns: 1fr; } .pc-back .pc-msg { border-right: 0; padding-right: 0; } .pc-addr { display: none !important; } }

/* ---------- parents' words ---------- */
.notes { display: grid; gap: 24px; }
@media (min-width: 768px) { .notes { grid-template-columns: 1fr 1fr; } }
.note { background: var(--paper); box-shadow: var(--lift-sm); padding: 26px 26px 22px; margin: 0; position: relative; }
.note:nth-child(1) { transform: rotate(-.8deg); }
.note:nth-child(2) { transform: rotate(.7deg); }
.band-ink .note { color: var(--ink); }
.band-ink .note figcaption { color: var(--ink-2); }
.band-ink .rating-line b { color: #FBF7EF; }
.note blockquote { margin: 0 0 14px; font-family: var(--display); font-size: 1.45rem; line-height: 1.3; }
.note figcaption { font-size: .92rem; color: var(--ink-2); }
.note .stars { color: var(--green-ink); font-weight: 700; }
.rating-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 28px; }
.rating-line b { font-family: var(--display); font-weight: 400; font-size: 3rem; line-height: 1; color: var(--ink); }

/* ---------- write to us: the enquiry letter ---------- */
.reply { background: var(--paper); box-shadow: var(--lift); padding: clamp(24px, 4vw, 52px); position: relative; }
.reply::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--blue) 0 14px, var(--paper) 14px 22px, var(--green) 22px 36px, var(--paper) 36px 44px); }
.reply-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 14px; margin-bottom: 22px; color: var(--ink-2); font-size: .95rem; }
.reply-to b { color: var(--ink); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 2px 8px; font: 400 1.08rem var(--body); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--rule-strong); border-radius: 0;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2622' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center / 18px; padding-right: 28px; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(1.6em - 1px), var(--rule) calc(1.6em - 1px) 1.6em); background-attachment: local; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--blue); box-shadow: 0 2px 0 0 var(--blue); }
.field input::placeholder, .field textarea::placeholder { color: #5F554C; }
.field [aria-invalid="true"] { border-bottom-color: #A3302A; box-shadow: 0 2px 0 0 #A3302A; }
.field-hint { font-size: .88rem; color: var(--ink-2); margin-top: 4px; }
.field-error { color: #A3302A; font-size: .92rem; font-weight: 700; margin-top: 6px; }
.field-error:empty { display: none; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 6px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { background: rgba(163, 48, 42, .08); color: #8A2822; border: 1.5px solid rgba(163, 48, 42, .4); }
.form-status.is-ok { background: rgba(62, 125, 90, .1); color: var(--green-ink); border: 1.5px solid var(--green); }
.reply-sign { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.reply-sign p { margin: 0; font-size: .9rem; color: var(--ink-2); max-width: 42ch; }
.hp { position: absolute; left: -5000px; }
.reply-aside h2 { max-width: 14ch; }
.reply-aside .call-card { margin-top: 24px; padding: 18px 20px; border: 1.5px solid var(--ink); border-radius: 6px; }
.reply-aside .call-card p { margin-bottom: 10px; }

/* ---------- envelope address card + map ---------- */
.envelope { position: relative; background: var(--paper); box-shadow: var(--lift); padding: clamp(26px, 4vw, 48px); overflow: hidden; }
.envelope::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 46%; pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--rule) 50%, transparent calc(50% + 1px)) left / 50.1% 100% no-repeat,
              linear-gradient(to bottom left, transparent calc(50% - 1px), var(--rule) 50%, transparent calc(50% + 1px)) right / 50.1% 100% no-repeat; }
.envelope address { position: relative; font-style: normal; font-size: 1.15rem; line-height: 1.55; margin: 70px 0 22px; padding-left: 18px; border-left: 1px solid var(--rule-strong); }
.envelope address b { font-family: var(--display); font-weight: 400; font-size: 1.45rem; display: block; line-height: 1.2; margin-bottom: 4px; }
.envelope .corner-stamp { position: absolute; top: 18px; right: 18px; width: 64px; filter: drop-shadow(0 2px 3px rgba(43,38,34,.2)); }
.envelope .corner-stamp .stamp { --r: 3px; padding: 6px; }
.map-box { position: relative; min-height: 360px; height: 100%; background: var(--kraft-2); border: 1px solid var(--rule); display: grid; place-items: center; text-align: center; padding: 24px; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box p { max-width: 34ch; margin: 0 auto 14px; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #DCD3C6; padding: 64px 0 32px; font-size: .98rem; }
.site-footer a { color: #C9D5F7; }
.site-footer h2 { font-size: 1.35rem; color: #FBF7EF; margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer address { font-style: normal; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-base { border-top: 1px solid rgba(239, 232, 221, .18); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .88rem; color: #BDB2A3; }

/* ---------- inner page headers (each page its own) ---------- */
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule-strong); }
.page-head { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }

/* About: the heading of a letter, with a "Re:" line and reference */
.head-letter .sheet { background: var(--paper); box-shadow: var(--lift); padding: clamp(24px, 4vw, 56px); }
.head-letter .ref { display: grid; gap: 4px; grid-template-columns: auto 1fr; column-gap: 14px; font-size: .95rem; color: var(--ink-2); border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 24px; }
.head-letter .ref dt { font-weight: 700; color: var(--ink); }
.head-letter .ref dd { margin: 0; }

/* Academics: an airmail-bordered aerogramme */
.head-air .sheet { position: relative; background: var(--paper); padding: clamp(30px, 5vw, 64px); box-shadow: var(--lift); }
.head-air .sheet::before { content: ""; position: absolute; inset: 0; pointer-events: none; border: 10px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--blue) 0 12px, var(--paper) 12px 18px, var(--green) 18px 30px, var(--paper) 30px 36px) 10; }
.head-air .air-label { display: inline-flex; gap: 10px; align-items: center; border: 1.5px solid var(--blue); color: var(--blue); padding: 4px 12px; font-weight: 700; font-size: .9rem; margin-bottom: 18px; }
.head-air .air-label span[lang="hi"] { font-weight: 600; }

/* Admissions: a giant postmark beside the heading */
.head-postmark .pm-big { width: min(100%, 340px); margin: 0 auto; transform: rotate(-8deg); }
.head-postmark .pm-big .postmark text { font-size: 12px; }

/* Campus life: a postcard, photo on the left, message on the right */
.head-postcard .card { display: grid; background: var(--paper); box-shadow: var(--lift); padding: 14px; gap: 0; }
@media (min-width: 900px) { .head-postcard .card { grid-template-columns: 1.1fr 1fr; } }
.head-postcard .card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.head-postcard .card .msg { padding: clamp(20px, 3.4vw, 44px); background-image: repeating-linear-gradient(to bottom, transparent 0 41px, var(--rule) 41px 42px); }

/* Contact: the front of an envelope */
.head-envelope .env { position: relative; background: var(--paper); box-shadow: var(--lift); padding: clamp(28px, 5vw, 64px); min-height: 340px; }
.head-envelope .env .corner { position: absolute; top: 22px; right: 22px; display: flex; align-items: flex-start; }
.head-envelope .env .corner .stamp-shadow { width: 86px; }
.head-envelope .env .corner .stamp { --r: 4px; padding: 8px; }
.head-envelope .env .corner .postmark { width: 120px; margin-right: -40px; margin-top: 18px; position: relative; z-index: 1; }
.head-envelope .env-to { margin-top: 64px; max-width: 640px; }
@media (max-width: 767.98px) { .head-envelope .env-to { margin-top: 130px; } .head-postmark .pm-big { width: 220px; } }
.head-envelope .from { font-size: .92rem; color: var(--ink-2); }
@media (min-width: 768px) { .head-envelope .env-to { margin-left: 18%; } }

/* ---------- inner content pieces ---------- */
.split-media img { width: 100%; object-fit: cover; box-shadow: var(--lift-sm); background: var(--paper); padding: 10px; }
.photo-tag { font-size: .82rem; color: var(--ink-2); margin-top: 8px; }
.age-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--paper); box-shadow: var(--lift-sm); }
.age-table caption { text-align: left; caption-side: bottom; padding-top: 10px; font-size: .9rem; color: var(--ink-2); }
.age-table th, .age-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.age-table thead th { border-bottom: 2px solid var(--ink); font-weight: 700; }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 0; background: var(--paper); box-shadow: var(--lift-sm); }
.checklist li { border-bottom: 1px solid var(--rule); }
.checklist label { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; cursor: pointer; }
.checklist input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green); flex: none; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--display); font-size: 1.3rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 14px; height: 14px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); top: 32px; }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); max-width: 64ch; }
.ph-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .ph-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery button { all: unset; cursor: pointer; display: block; background: var(--paper); padding: 8px; box-shadow: var(--lift-sm); transition: transform .3s var(--ease); }
.gallery button:hover { transform: translateY(-3px) rotate(-.6deg); }
.gallery button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 980px); width: 100%; }
.lightbox::backdrop { background: rgba(30, 26, 23, .82); }
.lightbox figure { margin: 0; background: var(--paper); padding: 12px; }
.lightbox img { width: 100%; max-height: 74vh; object-fit: contain; background: var(--kraft-2); }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 4px 2px; flex-wrap: wrap; }
.lb-controls { display: flex; gap: 8px; }
.lb-controls button { min-width: 46px; min-height: 46px; border: 1.5px solid var(--ink); background: var(--paper); border-radius: 6px; cursor: pointer; font: 700 .95rem var(--body); color: var(--ink); padding: 0 12px; }
.notice-board { display: grid; gap: 20px; }
@media (min-width: 768px) { .notice-board { grid-template-columns: repeat(3, 1fr); } }
.notice { background: var(--paper); padding: 22px; box-shadow: var(--lift-sm); position: relative; }
.notice:nth-child(2) { transform: rotate(.8deg); }
.notice:nth-child(3) { transform: rotate(-.6deg); }
.notice .tag { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--ink-2); border: 1.5px dashed var(--rule-strong); padding: 2px 8px; margin-bottom: 10px; }
.contact-rows { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.contact-rows > div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 480px) { .contact-rows > div { grid-template-columns: 1fr; gap: 2px; } }
.contact-rows dt { font-weight: 700; }
.contact-rows dd { margin: 0; }
.route-line { display: block; width: 100%; height: 40px; color: var(--blue); }
.route-line path { stroke-dasharray: 6 8; }
.big-sheet { background: var(--paper); box-shadow: var(--lift); padding: clamp(26px, 5vw, 64px); }
.four04 { font-family: var(--display); font-size: clamp(5rem, 12vw, 9rem); line-height: 1; color: var(--blue); margin: 0; }

@media print {
  .site-header, .site-footer, .drawer, .no-print, .skip-link { display: none !important; }
  body { background: #fff; }
  body.print-checklist main > *:not(.print-target) { display: none !important; }
  .checklist { box-shadow: none; }
}
