/* Saini Vidhya Niketan — "The school paper"
   Paper ground, near-black ink, hairline rules, one vermilion for "now" and the primary action. */

:root {
  --paper: #FAF7F0;
  --paper-2: #F2EDE2;
  --ink: #141414;
  --ink-2: #4A463F;      /* secondary text, 8.8:1 on paper */
  --ink-3: #6B655A;      /* captions, 5.4:1 on paper */
  --rule: #D8D2C4;
  --rule-strong: #9C9382;
  --vermilion: #C23B22;  /* 5.0:1 on paper */
  --vermilion-dark: #9E2E19;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --deva: "Noto Serif Devanagari", "Kohinoor Devanagari", "Mangal", serif;
  --gutter: clamp(16px, 3.2vw, 40px);
  --measure: 66ch;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  caret-color: var(--vermilion);
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--paper); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--rule-strong); }
a:hover { text-decoration-color: var(--vermilion); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[lang="hi"] { font-family: var(--deva); font-style: normal; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); font-variation-settings: "opsz" 60; letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-variation-settings: "opsz" 48; }
h3 { font-size: 1.32rem; font-variation-settings: "opsz" 24; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Masthead ---------- */
.masthead { padding-top: 14px; }
.dateline {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 0.875rem; color: var(--ink-2);
  border-bottom: 1px solid var(--rule); padding-bottom: 10px;
}
.dateline time { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--ink); }
.dateline .place { text-align: center; flex: 1; }
.dateline [lang="hi"] { font-size: 0.95rem; color: var(--ink); }
.nameplate { text-align: center; padding: clamp(14px, 2.6vw, 28px) 0 clamp(10px, 1.6vw, 18px); }
.nameplate a { text-decoration: none; display: inline-flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); }
.nameplate img { width: clamp(38px, 5.2vw, 72px); height: auto; }
.nameplate .name {
  font-family: var(--serif); font-weight: 600; font-variation-settings: "opsz" 60;
  font-size: clamp(2rem, 6.4vw, 5.4rem); letter-spacing: -0.03em; line-height: 0.95;
}
.nameplate .motto { display: block; margin-top: 10px; font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: clamp(0.95rem, 1.4vw, 1.1rem); }
.double-rule { border: 0; border-top: 3px double var(--ink); margin: 0; }
.sections {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px clamp(14px, 2.4vw, 34px);
  border-bottom: 1px solid var(--ink); padding: 10px 0; margin: 0; list-style: none;
  font-size: 0.95rem; font-weight: 500;
}
.sections a { text-decoration: none; display: inline-block; padding: 6px 0; border-bottom: 2px solid transparent; }
.sections a:hover { border-bottom-color: var(--ink); }
.sections a[aria-current="page"] { border-bottom-color: var(--vermilion); }
.sections .call a { color: var(--vermilion); font-weight: 600; }

.dateline .sections-btn, .rh-actions .sections-btn { display: none; }

/* Running head: appears once the masthead leaves the screen */
.running-head {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  background: var(--paper); border-bottom: 1px solid var(--ink);
  transform: translateY(-100%); transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.running-head.is-shown { transform: none; }
.running-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.running-head .rh-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; text-decoration: none; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.running-head .rh-name img { width: 26px; }
.running-head .rh-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; border-radius: 0;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--vermilion); border-color: var(--vermilion); color: #fff; }
.btn-primary:hover { background: var(--vermilion-dark); border-color: var(--vermilion-dark); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 0.92rem; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 0.25em; }
.text-link:hover { text-decoration-color: var(--vermilion); }

/* ---------- Shared editorial pieces ---------- */
.section { padding: clamp(40px, 5vw, 64px) 0; }
.section + .section { border-top: 1px solid var(--ink); }
.section-head { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: clamp(24px, 3.4vw, 40px); }
.section-head p { color: var(--ink-2); max-width: 60ch; margin: 0; }
.deck { font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; color: var(--ink-2); font-variation-settings: "opsz" 20; }
.byline { font-size: 0.875rem; color: var(--ink-3); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 6px 0; margin: 18px 0; }
.hindi-line { font-family: var(--deva); font-size: 1.1rem; color: var(--ink); margin: 0 0 18px; }
.dropcap::first-letter {
  font-family: var(--serif); font-weight: 600; float: left; font-size: 4.6em; line-height: 0.8;
  padding: 0.06em 0.1em 0 0; font-variation-settings: "opsz" 60; color: var(--ink);
}
.col-rule { border-left: 1px solid var(--rule); }
figure { margin: 0; }
figcaption, .caption { font-size: 0.82rem; line-height: 1.45; color: var(--ink-3); padding-top: 8px; }
figcaption strong { color: var(--ink); font-weight: 600; }
.photo img { background: var(--paper-2); }
.photo img { width: 100%; object-fit: cover; }
sup.fn { font: 600 0.68em/0 var(--sans); vertical-align: super; }
sup.fn a { text-decoration: none; color: var(--ink-2); padding: 0 1px; }
sup.fn a:hover { color: var(--vermilion); }

/* Placeholder notes: things the school must supply */
.tbc {
  border: 1px dashed var(--rule-strong); background: var(--paper-2);
  padding: 16px 18px; color: var(--ink-2); font-size: 0.95rem;
}
.tbc .tbc-label { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink); font-size: 0.85rem; margin-bottom: 4px; }
.tbc .tbc-label svg { width: 16px; height: 16px; }
.tbc p:last-child { margin: 0; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 1px 8px; border: 1px solid var(--ink); white-space: nowrap; line-height: 1.6; }
.tag-tbc { border-style: dashed; border-color: var(--rule-strong); color: var(--ink-2); font-weight: 500; font-style: italic; }
.tag-claim { border-color: var(--ink-3); color: var(--ink-2); font-weight: 500; }

/* ---------- Front page (home hero) ---------- */
.front { padding: clamp(22px, 3vw, 36px) 0 clamp(40px, 5vw, 64px); }
.front-grid { display: grid; grid-template-columns: 5fr 5fr 2.2fr; gap: 0; }
.front-grid > * { padding: 0 clamp(16px, 2vw, 28px); }
.front-grid > *:first-child { padding-left: 0; }
.front-grid > *:last-child { padding-right: 0; }
.front-grid > * + * { border-left: 1px solid var(--rule); }
.front-lead h1 { margin-bottom: 18px; }
.front-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 14px; }
.front-wa { font-size: 0.95rem; }
.front-photo img { aspect-ratio: 4 / 5; }
.issue h2 { font-size: 1.3rem; font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.issue ol { list-style: none; margin: 0; padding: 0; }
.issue li { border-bottom: 1px solid var(--rule); }
.issue a { display: block; padding: 12px 0; text-decoration: none; }
.issue a strong { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; line-height: 1.2; }
.issue a span { display: block; font-size: 0.84rem; color: var(--ink-3); margin-top: 3px; }
.issue a:hover strong { text-decoration: underline; text-decoration-color: var(--vermilion); }
.office-status { margin-top: 18px; font-size: 0.88rem; color: var(--ink-2); }
.office-status b { color: var(--ink); }
.office-status .dot { display: inline-block; width: 8px; height: 8px; background: var(--ink-3); margin-right: 6px; vertical-align: 1px; }
.office-status.is-open .dot { background: var(--vermilion); }

/* ---------- Lead story + pull quote ---------- */
.lead-story { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.lead-story .body { max-width: var(--measure); }
.pull {
  margin: 0; padding: 22px 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink);
}
.pull blockquote { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; font-weight: 600; font-variation-settings: "opsz" 60; letter-spacing: -0.03em; }
.pull figcaption { font-size: 0.9rem; color: var(--ink-2); padding-top: 14px; }

.editors-note { font-family: var(--serif); font-style: italic; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 12px; }
.editors-note b { font-style: normal; color: var(--ink); }
.sidenotes { margin-top: 22px; font-size: 0.84rem; line-height: 1.5; color: var(--ink-2); }
.sidenotes p { display: grid; grid-template-columns: 1.4rem 1fr; gap: 4px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.sidenotes span { font-family: var(--serif); font-weight: 600; color: var(--ink); }
.section-head.with-note { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.section-head.with-note .sidenotes { margin: 0; border-top: 1px solid var(--ink); }
.section-head.with-note h2 { margin-bottom: 8px; }

/* ---------- Table of contents (stages) ---------- */
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: chapter; }
.toc > li { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 4px 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.toc .no { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink-3); font-variation-settings: "opsz" 40; }
.toc .t { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.toc .t h3 { margin: 0; white-space: nowrap; }
.toc .t::after { content: ""; flex: 1; border-bottom: 1px dotted var(--rule-strong); transform: translateY(-5px); min-width: 24px; }
.toc .d { grid-column: 2 / 3; color: var(--ink-2); font-size: 0.97rem; margin: 0; max-width: 62ch; }
.toc .s { grid-row: 1; grid-column: 3; }

/* ---------- Notices ---------- */
.notices-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 0; }
.notices-grid > * + * { border-left: 1px solid var(--ink); padding-left: clamp(20px, 3vw, 44px); }
.notices-grid > *:first-child { padding-right: clamp(20px, 3vw, 44px); }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.notice:first-child { padding-top: 0; }
.notice h3 { font-size: 1.22rem; margin-bottom: 6px; }
.notice p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.notice .meta { margin: 0 0 6px; font-size: 0.82rem; color: var(--ink-3); font-style: italic; }
.notice-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.notice-head h3 { margin-bottom: 4px; }
.steps { list-style: none; margin: 0 0 22px; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1; font-variation-settings: "opsz" 40; }
.steps strong { display: block; font-family: var(--serif); font-size: 1.12rem; }
.steps span { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Footnotes: verified / to be confirmed ---------- */
.footnotes { background: var(--paper-2); }
.fn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); }
.fn-grid > div { padding-top: 22px; }
.fn-grid > div + div { border-left: 1px solid var(--ink); padding-left: clamp(20px, 3vw, 44px); }
.fn-grid > div:first-child { padding-right: clamp(20px, 3vw, 44px); }
.fn-grid h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.fn-list { list-style: none; margin: 0; padding: 0; font-size: 0.93rem; }
.fn-list li { display: grid; grid-template-columns: 1.8rem 1fr; gap: 6px; padding: 9px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.fn-list li > span:first-child { font-family: var(--serif); font-weight: 600; color: var(--ink-2); }
.fn-list li:target { background: var(--paper); }
.fn-list li:target > span:first-child { color: var(--vermilion); }
.fn-list .src { color: var(--ink-3); }
.fn-list.tbc-list li > span:first-child { font-family: var(--sans); font-weight: 400; color: var(--ink-3); }
.fn-note { font-family: var(--serif); font-style: italic; color: var(--ink-2); margin-top: 18px; font-size: 1.02rem; }

/* ---------- Photo spread ---------- */
.spread { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(16px, 2vw, 28px); align-items: start; }
.spread figure { border-top: 1px solid var(--ink); padding-top: 14px; }
.spread .tall img { aspect-ratio: 4 / 5; }
.spread .wide img { aspect-ratio: 3 / 2; }

/* ---------- Letters (form) ---------- */
.letters { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 72px); }
.letters .aside p { color: var(--ink-2); }
.contact-lines { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--ink); }
.contact-lines li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.97rem; }
.contact-lines a { font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field .hint { font-size: 0.84rem; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: 400 1.0625rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--rule-strong); border-bottom: 2px solid var(--ink);
  padding: 12px 12px; border-radius: 0; min-height: 50px; width: 100%;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141414' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; padding-right: 38px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-bottom-color: var(--vermilion); }
.field [aria-invalid="true"] { border-color: var(--vermilion); border-bottom-color: var(--vermilion); background: #FFF8F6; }
.field .error { color: var(--vermilion-dark); font-size: 0.88rem; font-weight: 500; min-height: 0; }
.field .error:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 6px; }
.form-foot small { color: var(--ink-3); font-size: 0.84rem; max-width: 46ch; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border: 1px solid var(--ink); font-size: 0.97rem; }
.form-status[hidden] { display: none; }
.form-status.ok { border-color: var(--ink); background: #fff; }
.form-status.err { border-color: var(--vermilion); color: var(--vermilion-dark); background: #FFF8F6; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: none; }
.is-loading .spinner { display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer / colophon ---------- */
.colophon { border-top: 3px double var(--ink); padding: clamp(36px, 5vw, 60px) 0 28px; font-size: 0.93rem; }
.colophon-grid { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: clamp(24px, 4vw, 56px); }
.colophon .cname { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.colophon .cname img { width: 34px; }
.colophon h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; margin-bottom: 10px; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { padding: 4px 0; }
.colophon li a { display: inline-block; padding: 6px 0; }
.colophon address { font-style: normal; color: var(--ink-2); }
.colophon .fine { border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--ink-3); font-size: 0.84rem; }

/* ---------- Sections sheet (mobile) ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; display: none; }
.sheet.is-open { display: block; }
.sheet .scrim { position: absolute; inset: 0; background: rgba(20, 20, 20, 0.45); }
.sheet .panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto;
  background: var(--paper); border-top: 3px double var(--ink); padding: 18px var(--gutter) calc(24px + env(safe-area-inset-bottom));
}
@media (prefers-reduced-motion: no-preference) {
  .sheet.is-open .panel { animation: sheet-in 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
  .sheet.is-open .scrim { animation: fade-in 0.2s ease-out; }
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet .panel-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; }
.sheet .panel-head h2 { font-size: 1.3rem; margin: 0; }
.sheet ol { list-style: none; margin: 0 0 18px; padding: 0; }
.sheet li a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.sheet li a span { font-family: var(--sans); font-size: 0.82rem; font-weight: 400; color: var(--ink-3); }
.sheet li a[aria-current="page"] { color: var(--vermilion); }
.sheet .sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.icon-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--ink); color: var(--ink); cursor: pointer; padding: 0 12px; gap: 8px; font: 600 0.92rem var(--sans); }
.icon-btn svg { width: 18px; height: 18px; }
body.sheet-open { overflow: hidden; }

/* ---------- Inner page heads ---------- */
.page-head { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--ink); }
.crumbs { font-size: 0.85rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule-strong); }
.page-head .deck { max-width: 60ch; margin: 0; }

/* About: article with margin notes */
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: clamp(28px, 5vw, 72px); }
.article .body { max-width: var(--measure); }
.article .body h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.article .body > :first-child { margin-top: 0; }
.margin-notes { font-size: 0.88rem; color: var(--ink-2); border-top: 1px solid var(--ink); }
.margin-notes p { padding: 12px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.margin-notes b { color: var(--ink); }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 32px 0; }
.figure-pair img { aspect-ratio: 4 / 5; }

/* Academics: chapters */
.chapter { display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(18px, 3vw, 44px); padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--rule); align-items: start; }
.chapter:first-of-type { border-top: 1px solid var(--ink); }
.chapter .no { font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 600; line-height: 0.9; font-variation-settings: "opsz" 60; color: var(--ink); }
.chapter h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.chapter .status { margin-bottom: 12px; }
.chapter img { aspect-ratio: 3 / 2; }
.approach { columns: 2 22rem; column-gap: clamp(28px, 4vw, 56px); column-rule: 1px solid var(--rule); }
.approach p { break-inside: avoid; }

/* Admissions */
.adm-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.ruled-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; font-variant-numeric: tabular-nums; }
.ruled-table caption { caption-side: bottom; text-align: left; font-size: 0.84rem; color: var(--ink-3); padding-top: 10px; }
.ruled-table th, .ruled-table td { text-align: left; padding: 11px 10px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ruled-table thead th { border-bottom: 1px solid var(--ink); font-weight: 600; font-size: 0.9rem; }
.ruled-table tbody th { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.ruled-table tr.today td, .ruled-table tr.today th { color: var(--vermilion-dark); }
.ruled-table tr.today th::after { content: " (today)"; font-family: var(--sans); font-weight: 400; font-size: 0.8rem; }
.doc-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); columns: 2 16rem; column-gap: 32px; }
.doc-list li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--rule); position: relative; break-inside: avoid; }
.doc-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 13px; height: 13px; border: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-family: var(--serif); font-size: 1.18rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); max-width: 64ch; }

/* Campus life: contact sheet gallery */
.contact-sheet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.contact-sheet li { position: relative; }
.contact-sheet li.big { grid-column: span 2; grid-row: span 2; }
.contact-sheet button { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; position: relative; }
.contact-sheet img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: filter 0.2s ease; }
.contact-sheet li.big { display: flex; flex-direction: column; }
.contact-sheet li.big button { flex: 1; min-height: 0; }
.contact-sheet li.big img { aspect-ratio: auto; height: 100%; position: absolute; inset: 0; }
.contact-sheet button:hover img { filter: contrast(1.08); }
.contact-sheet .frame { display: flex; justify-content: space-between; gap: 12px; text-align: right; margin: 0; font-size: 0.78rem; color: var(--ink-3); padding-top: 5px; }
.contact-sheet .frame b { color: var(--ink); font-weight: 600; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20, 20, 20, 0.94); display: none; color: var(--paper); }
.lightbox.is-open { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox .lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); font-size: 0.9rem; }
.lightbox .lb-stage { display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox img { max-height: 76vh; width: auto; max-width: 100%; }
.lightbox .lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--gutter) calc(16px + env(safe-area-inset-bottom)); }
.lightbox .lb-cap { font-size: 0.9rem; color: #E8E3D8; max-width: 60ch; }
.lightbox .icon-btn { border-color: var(--paper); color: var(--paper); }
.lightbox :focus-visible { outline-color: var(--paper); }
.facility-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.facility-list > div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); }
.facility-list > div:not(:nth-child(3n+1)) { padding-left: 20px; border-left: 1px solid var(--rule); }
.facility-list h3 { font-size: 1.15rem; margin-bottom: 4px; }
.facility-list p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* Contact */
.visit-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.classified { border: 1px solid var(--ink); padding: 22px; background: #fff; }
.classified h2 { font-size: 1.5rem; }
.classified address { font-style: normal; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; margin-bottom: 16px; }
.classified .actions { display: grid; gap: 10px; }
.map-frame { position: relative; border: 1px solid var(--ink); background: var(--paper-2); aspect-ratio: 4 / 3; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map-fallback { padding: 14px 0 0; font-size: 0.92rem; color: var(--ink-2); }

/* Utility pages */
.plain { max-width: 70ch; }
.plain h2 { font-size: 1.5rem; margin-top: 1.6em; }
.stamp { font-family: var(--serif); font-size: clamp(5rem, 16vw, 11rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.04em; font-variation-settings: "opsz" 60; }

/* Photo label */
.stock-note { font-size: 0.84rem; color: var(--ink-3); font-style: italic; }

/* ---------- Load moment: the front page "prints" once ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .front-lead .deck, .js .front-photo, .js .issue { animation: ink-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .js .front-lead .deck { animation-delay: 0.08s; }
  .js .front-photo { animation-name: develop; animation-duration: 1.1s; animation-delay: 0.05s; }
  .js .issue { animation-delay: 0.18s; }
}
@keyframes ink-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes develop { from { opacity: 0.001; filter: contrast(0.6) brightness(1.25); } to { opacity: 1; filter: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .front-grid { grid-template-columns: 1fr 1fr; }
  .front-grid > .issue { grid-column: 1 / -1; border-left: 0; padding: 22px 0 0; margin-top: 24px; border-top: 1px solid var(--ink); }
  .issue ol { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
  .colophon-grid { grid-template-columns: 1fr 1fr; }
  .colophon-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .dateline .place { display: none; }
  .lead-story, .letters, .adm-grid, .visit-grid, .article, .section-head.with-note { grid-template-columns: 1fr; }
  .notices-grid, .fn-grid { grid-template-columns: 1fr; }
  .notices-grid > * + *, .fn-grid > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink); margin-top: 28px; padding-top: 24px; }
  .notices-grid > *:first-child, .fn-grid > div:first-child { padding-right: 0; }
  .chapter { grid-template-columns: 3.4rem 1fr; }
  .chapter figure { grid-column: 2 / -1; }
  .facility-list { grid-template-columns: 1fr 1fr; }
  .facility-list > div { padding-left: 0 !important; border-left: 0 !important; padding-right: 12px; }
  .contact-sheet { grid-template-columns: repeat(2, 1fr); }
  .contact-sheet li.big { grid-row: auto; }
  .contact-sheet li.big img { position: static; aspect-ratio: 3 / 2; height: auto; }
  .spread { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .sections { display: none; }
  .dateline .sections-btn, .rh-actions .sections-btn { display: inline-flex; }
  .dateline { border-bottom: 0; padding-bottom: 0; }
  .dateline [lang="hi"] { display: none; }
  .nameplate { padding: 10px 0 12px; border-top: 1px solid var(--rule); margin-top: 10px; }
  .nameplate .motto { margin-top: 6px; }
  .masthead .double-rule { margin-bottom: 0; }
  .front { padding-top: 22px; }
  .front-grid { grid-template-columns: 1fr; }
  .front-grid > * { padding: 0 !important; border-left: 0 !important; }
  .front-photo { margin-top: 26px; }
  .front-photo img { aspect-ratio: 4 / 3; }
  .issue ol { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .toc > li { grid-template-columns: 2.2rem 1fr; }
  .toc .s { grid-row: auto; grid-column: 2; }
  .toc .t h3 { white-space: normal; }
  .toc .t::after { display: none; }
  .colophon-grid { grid-template-columns: 1fr; }
  .figure-pair { grid-template-columns: 1fr 1fr; gap: 10px; }
  .facility-list { grid-template-columns: 1fr; }
  .running-head .rh-name span { display: none; }
  .ruled-table { font-size: 0.92rem; }
  .spread { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .front-actions .btn { flex: 1 1 100%; }
  .running-head .btn-enq { display: none; }
}
