/* Varundeep Memorial Junior High School
   Night navy from the emblem, gold from the diya, the burning flame as the one moving thing. */
:root {
  --night: #0e1838;
  --navy: #1a2a5e;
  --navy-2: #26397c;
  --gold: #d99a2b;
  --gold-2: #f3c56b;
  --gold-soft: #fbf0d9;
  --sky: #f3f5fb;
  --sky-2: #e8ecf6;
  --white: #ffffff;
  --text: #1b2136;
  --muted: #5a6380;
  --line: #dde2ef;
  --ok: #2f7a4f;
  --err: #b3261e;
  --radius: 14px;
  --wrap: 1180px;
  --sec: clamp(3.5rem, 7vw, 6rem);       /* between page sections */
  --sec-sm: clamp(2.5rem, 5vw, 3.5rem);  /* after a page header, between blocks */
  --head-gap: clamp(1.5rem, 3vw, 2.2rem); /* section heading to its content */
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1.0625rem/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.08; margin: 0 0 .45em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -.005em; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
@media (max-width: 480px) { .wrap { width: calc(100% - 32px); } }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 80; background: var(--white); padding: 8px 12px; }

/* Section intro: small gold rule + kicker, used only where a section needs context */
.kicker { display: inline-flex; align-items: center; gap: .7rem; color: var(--gold); font-weight: 600; font-size: 1rem; margin-bottom: .6rem; }
.kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: .6em 1.5em;
  border-radius: 999px; font: 600 1.02rem/1 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: linear-gradient(180deg, #f2bd55, #d99a2b); color: #23170a; box-shadow: 0 6px 18px -6px rgba(217,154,43,.7); }
.btn-gold:hover { background: #c4871d; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-ink { background: var(--navy); color: #fff; }
.btn-ink:hover { background: var(--navy-2); color: #fff; }
.btn-danger { background: transparent; color: var(--err); border-color: var(--err); }
.btn-danger:hover { background: var(--err); color: #fff; }
.btn-sm { min-height: 38px; padding: .4em 1em; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: .75em 2em; font-size: 1.1rem; }
/* legacy names used by admin templates */
.btn-flame { background: linear-gradient(180deg, #f2bd55, #d99a2b); color: #23170a; }
.btn-flame:hover { background: #c4871d; color: #fff; }

/* ---------- Emblem + burning flame ---------- */
.emblem { width: 100%; height: auto; overflow: visible; }
.emblem-text { font-family: "Mukta", Arial, sans-serif; }
.emblem .flame, .emblem .flame-outer, .emblem .flame-core, .emblem .flame-glow { transform-box: fill-box; transform-origin: 50% 100%; }
.emblem .flame-glow { transform-origin: 50% 50%; }
.emblem.is-lit .flame-outer { animation: flicker 1.9s ease-in-out infinite; }
.emblem.is-lit .flame-core { animation: flicker-core 1.3s ease-in-out infinite; }
.emblem.is-lit .flame { animation: sway 3.7s ease-in-out infinite; }
.emblem.is-lit .flame-glow { animation: glow 1.9s ease-in-out infinite; }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1); }
  20% { transform: scale(.95, 1.06); }
  40% { transform: scale(1.03, .96); }
  60% { transform: scale(.97, 1.08); }
  80% { transform: scale(1.02, .98); }
}
@keyframes flicker-core {
  0%, 100% { transform: scale(1, 1); opacity: .95; }
  30% { transform: scale(.9, 1.1); opacity: 1; }
  65% { transform: scale(1.06, .92); opacity: .85; }
}
@keyframes sway { 0%, 100% { transform: skewX(0); } 30% { transform: skewX(2.4deg); } 70% { transform: skewX(-2deg); } }
@keyframes glow { 0%, 100% { opacity: .85; transform: scale(1); } 45% { opacity: 1; transform: scale(1.06); } 70% { opacity: .75; transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) { .emblem.is-lit * { animation: none !important; } }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--night); color: #b9c3e2; font-size: .9rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--gold-2); }
.topbar svg { width: 15px; height: 15px; color: var(--gold-2); }
.topbar-links { display: flex; gap: 1.4rem; }
.topbar-note { color: var(--gold-2); font-weight: 500; }
.topbar-note a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }

.site-header { background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; min-width: 0; }
.brand .emblem { width: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name { font: 700 1.5rem/1 var(--display); color: var(--navy); white-space: nowrap; }
.brand-sub { font: 500 .88rem/1.3 var(--body); color: var(--muted); letter-spacing: .02em; margin-top: .2rem; }
.site-nav { display: flex; align-items: center; gap: .15rem; }
.site-nav a:not(.btn) { position: relative; padding: .55rem .8rem; text-decoration: none; color: var(--text); font-weight: 500; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.site-nav a:not(.btn):hover { color: var(--navy); }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav-cta { margin-left: .6rem; min-height: 46px; }
.nav-toggle { display: none; background: var(--sky); border: 0; width: 48px; height: 48px; border-radius: 12px; cursor: pointer; flex: none; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; margin: auto; transition: transform .25s, background-color .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-open .bars { background: transparent; }
.nav-open .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; background: var(--white);
    border-bottom: 1px solid var(--line); padding: .5rem 20px 1.25rem; box-shadow: 0 18px 30px -18px rgba(14,24,56,.35);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .site-nav a:not(.btn) { padding: .95rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--gold); }
  .nav-cta { margin: 1rem 0 0; }
  .topbar-note { display: none; }
}
@media (max-width: 420px) { .brand-name { font-size: 1.3rem; } .brand-sub { font-size: .8rem; } .header-in { min-height: 70px; } }

/* Flash messages */
.flashes { padding-top: 1rem; }
.flash { padding: .8rem 1.1rem; border-radius: 10px; margin: 0 0 .5rem; font-weight: 500; }
.flash-ok { background: #e6f3ec; color: var(--ok); }
.flash-error { background: #fbe9e7; color: var(--err); }

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--night); color: #d6dcef; overflow: hidden; isolation: isolate; min-height: clamp(560px, 82vh, 760px); display: flex; flex-direction: column; justify-content: center; }
.slides { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.slide.is-active { opacity: 1; animation: drift 9s ease-out both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 65% at 50% 48%, rgba(11,19,46,.86), rgba(11,19,46,.92) 70%),
    linear-gradient(0deg, rgba(11,19,46,.9) 0%, transparent 30%); }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-block: clamp(2.4rem, 5vw, 3.6rem) clamp(8.5rem, 11vw, 9.5rem); width: min(var(--wrap), 100% - 40px); }
.hero h1 { color: #fff; max-width: 15ch; font-weight: 600; margin: 0 0 1rem; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero h1 em { font-style: italic; color: var(--gold-2); font-weight: 600; }
.hero .lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); max-width: 50ch; color: #d3d9ee; margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.8rem; }
.hero-emblem { position: relative; width: clamp(118px, 13vw, 168px); margin-bottom: 1.3rem; }
.hero-emblem::before { content: ""; position: absolute; inset: -45%; z-index: -1;
  background: radial-gradient(closest-side, rgba(243,197,107,.34), rgba(243,197,107,.08) 60%, transparent); }
.hero-emblem .emblem { filter: drop-shadow(0 18px 36px rgba(0,0,0,.5)); }
/* motto: gold italic between fine rules that fade out */
.motto { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 0 1.1rem; width: min(460px, 100%); }
.motto::before, .motto::after { content: ""; flex: 1; height: 1px; min-width: 24px; }
.motto::before { background: linear-gradient(90deg, transparent, rgba(243,197,107,.85)); }
.motto::after { background: linear-gradient(270deg, transparent, rgba(243,197,107,.85)); }
.motto span { font: italic 600 clamp(1.35rem, 2.4vw, 1.75rem)/1.2 var(--display); letter-spacing: .02em; white-space: nowrap;
  background: linear-gradient(100deg, #fff1c9 0%, #f3c56b 50%, #e7a640 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 820px) {
  .hero { min-height: 0; }
  .hero-in { padding-block: 2.2rem 8.4rem; }
  .hero h1 { max-width: 13ch; }
  .hero-actions { flex-direction: column; align-items: center; width: 100%; }
  .hero-actions .btn { width: min(320px, 100%); }
}
.slider-ui { position: absolute; left: 0; right: 0; bottom: clamp(4.4rem, 7vw, 5.2rem); display: flex; justify-content: center; align-items: center; gap: 1rem; }
.slide-caption { display: none; }
.slide-caption::before { content: ""; width: 24px; height: 1.5px; background: var(--gold-2); }
.slider-ctrl { display: flex; align-items: center; gap: .6rem; }
.sl-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(11,19,46,.35); color: #fff; cursor: pointer; display: grid; place-items: center; }
.sl-btn:hover { background: #fff; color: var(--navy); }
.sl-btn svg { width: 20px; height: 20px; }
.dots { display: flex; gap: .45rem; }
.dot { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background-color .3s; }
.dot.is-active { width: 28px; background: var(--gold-2); }
@media (prefers-reduced-motion: reduce) { .slide.is-active { animation: none; } .slide { transition: none; } }
@media (max-width: 820px) { .slider-ui { bottom: 4.6rem; } }

/* Notice ticker */
.ticker { position: relative; z-index: 2; background: linear-gradient(90deg, #f2bd55, #e5a83a); color: #2a1b06; }
.ticker-in { display: flex; align-items: stretch; min-height: 50px; }
.ticker-label { display: flex; align-items: center; gap: .5rem; flex: none; font-weight: 700; padding-right: 1rem; margin-right: 1rem; border-right: 1px solid rgba(42,27,6,.25); }
.ticker-label i { width: 8px; height: 8px; border-radius: 50%; background: #b3261e; box-shadow: 0 0 0 4px rgba(179,38,30,.18); }
.ticker-track { overflow: hidden; flex: 1; min-width: 0; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-items { display: flex; gap: 3rem; white-space: nowrap; animation: ticker 38s linear infinite; padding-left: 1rem; }
.ticker:hover .ticker-items, .ticker:focus-within .ticker-items { animation-play-state: paused; }
.ticker-items a { color: #2a1b06; text-decoration: none; font-weight: 500; }
.ticker-items a:hover { text-decoration: underline; }
.ticker-items b { font-weight: 700; margin-right: .4rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-items { animation: none; } .ticker-track { overflow-x: auto; } }

/* Stats overlapping the hero */
.stats-band { position: relative; z-index: 3; margin-top: -3.4rem; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: 20px;
  box-shadow: 0 24px 60px -24px rgba(14,24,56,.35), 0 0 0 1px var(--line); }
.stat-cell { padding: 1.6rem 1.4rem; text-align: center; }
.stat-cell + .stat-cell { border-left: 1px solid var(--line); }
.stat-cell strong { display: block; font: 700 clamp(2.1rem, 3.8vw, 3rem)/1 var(--display); color: var(--navy); font-variant-numeric: lining-nums; }
.stat-cell span { display: block; color: var(--muted); font-size: .98rem; margin-top: .35rem; }
@media (max-width: 760px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(3) { border-left: 0; }
  .stat-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat-cell { padding: 1.2rem .8rem; }
}

/* Wings */
.wings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.wing { background: var(--white); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.wing:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(14,24,56,.4); }
.wing img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.wing-body { padding: 1.4rem 1.5rem 1.6rem; }
.wing-range { display: inline-block; margin: 0 0 .5rem; font-weight: 600; font-size: .9rem; color: #7a4a0c; background: var(--gold-soft); padding: .15rem .7rem; border-radius: 999px; }
.wing h3 { font-size: 1.9rem; margin-bottom: .35rem; }
.wing p:last-child { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .wings { grid-template-columns: 1fr; } .wing img { aspect-ratio: 16/8; } }

/* Admissions pop-up */
.adm-pop { border: 0; padding: 2.2rem 2rem 2rem; border-radius: 24px; width: min(440px, calc(100% - 32px)); text-align: center; color: var(--text);
  background: radial-gradient(120% 60% at 50% 0%, var(--gold-soft), var(--white) 60%); box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); }
.adm-pop::backdrop { background: rgba(8,13,32,.6); backdrop-filter: blur(3px); }
.adm-pop[open] { animation: pop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.adm-pop h2 { font-size: 2.3rem; margin-bottom: .4rem; }
.adm-pop .kicker { justify-content: center; margin: 0 0 .3rem; }
.adm-pop .kicker::before { display: none; }
.pop-emblem { width: 92px; margin: 0 auto .8rem; }
.pop-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.2rem; }
.pop-actions form { margin: 0; }
.pop-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 1.8rem; color: var(--muted); cursor: pointer; border-radius: 50%; }
.pop-close:hover { background: var(--sky); color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding-block: var(--sec); }
.section-sky { background: var(--sky); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: .8rem 1.5rem; margin-bottom: var(--head-gap); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.link-arrow:hover { color: var(--gold); }

/* About + reasons */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-text p { font-size: 1.12rem; }
.about-text .lead { font-size: 1.25rem; color: var(--text); }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.reason { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.reason h3 { font-size: 1.4rem; margin: .9rem 0 .35rem; }
.reason p { color: var(--muted); margin: 0; font-size: 1rem; }
.reason-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--gold-soft); color: #9a6312; display: grid; place-items: center; }
.reason-icon svg { width: 28px; height: 28px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .reasons { grid-template-columns: 1fr; } }

/* Notice board */
.board-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 900px) { .board-grid { grid-template-columns: 1fr; } }
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.notice { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem 1rem 1rem; position: relative; transition: border-color .2s, box-shadow .2s; }
.notice:hover { border-color: #c5cde3; box-shadow: 0 12px 28px -18px rgba(14,24,56,.35); }
.notice-date { background: var(--navy); color: #fff; border-radius: 10px; text-align: center; padding: .55rem 0 .5rem; line-height: 1; }
.notice-date .d { display: block; font: 700 1.9rem/1 var(--display); }
.notice-date .m { display: block; font-size: .82rem; font-weight: 600; margin-top: .2rem; color: var(--gold-2); }
.cat-holiday .notice-date { background: linear-gradient(180deg, #f2bd55, #d99a2b); color: #2a1b06; }
.cat-holiday .notice-date .m { color: #5a3a07; }
.notice h3 { margin: .15rem 0 .1rem; font: 600 1.15rem/1.35 var(--body); }
.notice h3 a { color: var(--text); text-decoration: none; }
.notice h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.notice h3 a:hover { color: var(--navy-2); }
.notice .when { margin: 0; color: var(--muted); font-size: .95rem; }
.notice-go { color: var(--gold); }
.notice-go svg { width: 22px; height: 22px; display: block; }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--navy-2); background: var(--sky-2); padding: .1rem .55rem; border-radius: 999px; margin-right: .35rem; }
.tag-pin { background: #fbe4e2; color: var(--err); }
.empty { color: var(--muted); padding: 1.5rem 0; }

.parents-card { background: var(--night); color: #c8d0ea; border-radius: 20px; padding: 1.8rem; position: relative; overflow: hidden; }
.parents-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243,197,107,.35), transparent); }
.parents-card h3 { color: #fff; font-size: 1.7rem; position: relative; }
.quick-list { list-style: none; padding: 0; margin: 0; position: relative; }
.quick-list a { display: flex; align-items: center; gap: .9rem; padding: .95rem 0; border-top: 1px solid rgba(255,255,255,.12); text-decoration: none; color: #fff; }
.quick-list .qi { width: 42px; height: 42px; border-radius: 12px; background: rgba(243,197,107,.14); color: var(--gold-2); display: grid; place-items: center; flex: none; }
.quick-list .qi svg { width: 22px; height: 22px; }
.quick-list strong { display: block; font-weight: 600; }
.quick-list span span { display: block; color: #9eaad0; font-size: .92rem; }
.quick-list a:hover strong { color: var(--gold-2); }

/* Founder */
.founder-band { background: var(--night); color: #c8d0ea; position: relative; overflow: hidden; }
.founder-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 70% at 15% 50%, rgba(243,197,107,.16), transparent 70%); }
.founder-in { position: relative; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; justify-content: center; }
.portrait { position: relative; margin: 0; width: 100%; max-width: 360px; }
.portrait-frame { position: relative; padding: 8px; border-radius: 26px; border: 1.5px solid var(--gold);
  background: linear-gradient(160deg, rgba(243,197,107,.22), rgba(243,197,107,.04)); }
.portrait img { display: block; width: 100%; max-width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 22%; border-radius: 19px; }
.founder-band h2 { color: #fff; }
.quote-mark { display: block; font: 700 5.5rem/.6 var(--display); color: var(--gold); opacity: .5; height: 2.4rem; margin-top: .4rem; }
.big-quote { margin: 0 0 1.4rem; }
.big-quote p { font: italic 500 clamp(1.45rem, 2.6vw, 2.05rem)/1.4 var(--display); color: #fff; max-width: 32ch; margin: 0; }
.signature { display: flex; flex-direction: column; margin-bottom: 1.8rem; }
.signature strong { color: var(--gold-2); font: 700 1.35rem var(--display); }
.signature span { color: #9eaad0; }
.founder-copy { min-width: 0; }
@media (max-width: 820px) {
  /* phones and tablets: everything centred on one axis */
  .founder-in { grid-template-columns: 1fr; gap: 1.8rem; justify-items: center; text-align: center; }
  .founder-band .portrait { max-width: 240px; }
  .founder-copy { display: flex; flex-direction: column; align-items: center; }
  .founder-copy .kicker::before { display: none; }
  .big-quote p { font-size: 1.4rem; max-width: 26ch; margin-inline: auto; }
  .signature { align-items: center; }
}

/* Gallery mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: .8rem; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sky-2); }
.mosaic figure:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .7rem; color: #fff; font-weight: 500;
  background: linear-gradient(transparent, rgba(10,16,38,.78)); }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }

/* Admission call to action */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #1a2a5e, #0e1838); color: #c8d0ea; border-radius: 26px;
  padding: clamp(2.2rem, 5vw, 3.6rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243,197,107,.35), transparent); pointer-events: none; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { margin: 0; font-size: 1.12rem; max-width: 52ch; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head { position: relative; background: var(--night); color: #c3cbe4; overflow: hidden; padding-block: var(--sec-sm); margin-bottom: var(--sec-sm); }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 90% at 90% 20%, rgba(243,197,107,.2), transparent 70%); }
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: .3rem; }
.page-head p { color: #b6c0e0; max-width: 62ch; margin: 0; font-size: 1.1rem; }
.crumb { font-size: .95rem; margin-bottom: .6rem !important; color: #8f9cc6 !important; }
.crumb a { color: var(--gold-2); text-decoration: none; }
.when-lg { font-size: 1.15rem; color: var(--gold-2) !important; font-weight: 600; }
/* every page ends with the same gap before the footer; the home page ends on a padded section */
main { padding-bottom: var(--sec); }
.page-home main { padding-bottom: 0; }

.prose { max-width: 66ch; }
.prose p { font-size: 1.12rem; line-height: 1.8; }
.founder-page { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.founder-page .portrait { position: sticky; top: 110px; }
.founder-page .portrait figcaption { padding-top: 1rem; color: var(--muted); display: flex; flex-direction: column; line-height: 1.4; }
.founder-page .portrait figcaption strong { color: var(--navy); font: 700 1.35rem/1.2 var(--display); }
.letter-open { font: italic 600 1.55rem var(--display) !important; color: var(--navy); }
.pull { font: italic 500 1.6rem/1.4 var(--display) !important; color: var(--navy); border-left: 3px solid var(--gold); padding-left: 1.2rem; margin: 1.8rem 0; }
.sig { font-weight: 600; color: var(--navy); }
.sig-name { font: 700 1.6rem var(--display); color: var(--navy); display: block; }
.sig span { font-weight: 400; color: var(--muted); }
@media (max-width: 820px) {
  .founder-page { grid-template-columns: 1fr; gap: 1.8rem; }
  /* on phones: small photo beside the name, so the letter starts on the first screen */
  .founder-page .portrait { position: relative; top: auto; max-width: none; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1.1rem; align-items: center; }
  .founder-page .portrait-frame { padding: 5px; border-radius: 18px; }
  .founder-page .portrait img { border-radius: 13px; }
  .founder-page .portrait figcaption { padding-top: 0; }
}

.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.chips a { padding: .45rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 500; font-size: .97rem; background: var(--white); }
.chips a:hover { border-color: var(--navy); }
.chips a[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.notice-list-full { max-width: 860px; }
.notice-full .posted { color: var(--muted); font-size: .95rem; margin-top: 2rem; }
.notice-img { border-radius: 10px; border: 1px solid var(--line); margin-bottom: .5rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; }
.g-item { border: 0; padding: 0; background: var(--sky-2); cursor: zoom-in; text-align: left; font: inherit; position: relative; border-radius: var(--radius); overflow: hidden; }
.g-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.04); }
.g-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .7rem; color: #fff; font-weight: 500; background: linear-gradient(transparent, rgba(10,16,38,.78)); }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .g-item span { font-size: .9rem; padding: 1.5rem .6rem .5rem; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); }
.lightbox::backdrop { background: rgba(8, 13, 32, .92); }
.lightbox img { max-height: 82vh; width: auto; margin: auto; border-radius: 10px; }
.lb-cap { color: #fff; text-align: center; padding-top: .6rem; }
.lb-close { position: fixed; top: 12px; right: 16px; font-size: 2.4rem; color: #fff; background: none; border: 0; cursor: pointer; width: 52px; height: 52px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; }
.contact-cards { display: grid; gap: .8rem; align-content: start; }
.contact-card { display: flex; gap: 1rem; align-items: center; padding: 1.15rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--white); transition: border-color .2s, box-shadow .2s; }
a.contact-card:hover { border-color: var(--gold); box-shadow: 0 12px 28px -18px rgba(14,24,56,.35); }
.contact-card .ci { width: 50px; height: 50px; border-radius: 14px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; flex: none; }
.contact-card .ci svg { width: 24px; height: 24px; }
.contact-card small { display: block; color: var(--muted); font-size: .9rem; }
.contact-card strong { display: block; font-size: 1.12rem; color: var(--navy); word-break: break-word; }
.map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--sky); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Admission form ---------- */
.adm-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.adm-aside { position: sticky; top: 110px; background: var(--sky); border-radius: var(--radius); padding: 1.4rem; }
.adm-aside h2 { font-size: 1.5rem; }
.adm-aside ol { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .6rem; }
.adm-aside li { display: flex; gap: .7rem; align-items: center; font-weight: 500; }
.adm-aside li span { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .9rem; flex: none; }
.adm-aside p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .adm-layout { grid-template-columns: 1fr; } .adm-aside { position: static; } }
.adm-form { min-width: 0; }
fieldset { border: 1px solid var(--line); border-radius: 18px; margin: 0 0 1.4rem; padding: 1.5rem clamp(1rem, 3vw, 1.8rem) 1.8rem; background: var(--white); }
legend { font: 700 1.55rem var(--display); color: var(--navy); padding: 0 .6rem; display: flex; align-items: center; gap: .6rem; margin-left: -.4rem; }
.step { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, #f2bd55, #d99a2b); color: #23170a; font: 700 1rem var(--body); }
.fs-note { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.3rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
label { font-weight: 600; color: var(--text); }
.req { color: var(--err); }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 50px; padding: .65rem .9rem; font: 400 1.05rem var(--body); color: var(--text);
  border: 1.5px solid #cbd2e3; border-radius: 10px; background: #fbfcfe; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 96px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #a9b3cd; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(243,197,107,.45); outline: none; background: #fff; }
input[type=file] { font: inherit; padding: .8rem; border: 1.5px dashed #b6bfd4; border-radius: 10px; background: var(--sky); width: 100%; cursor: pointer; }
input[type=file]::file-selector-button { font: 600 .95rem var(--body); border: 0; border-radius: 999px; background: var(--navy); color: #fff; padding: .5rem 1rem; margin-right: .8rem; cursor: pointer; }
.hint { color: var(--muted); font-size: .9rem; }
.err { color: var(--err); font-weight: 600; font-size: .92rem; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); background: #fffafa; }
.declare { background: var(--gold-soft); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1.5rem; }
.declare label { font-weight: 500; display: flex; gap: .8rem; align-items: flex-start; }
.declare input { width: 22px; height: 22px; margin-top: .2rem; flex: none; accent-color: var(--navy); }
.submit-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.submit-row .hint { margin: 0; }

.done { text-align: center; max-width: 600px; padding-block: var(--sec-sm) 0; }
.done .emblem { width: 110px; margin: 0 auto 1.2rem; }
.app-no { font: 700 2.2rem var(--display); color: var(--navy); background: var(--gold-soft); display: inline-block; padding: .3rem 1.4rem; border-radius: 12px; letter-spacing: .02em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #aeb8da; padding-block: 4rem 1.4rem; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.footer-brand { display: flex; gap: 1.1rem; align-items: flex-start; }
.footer-brand .emblem { width: 70px; flex: none; }
.footer-brand strong { color: #fff; font: 700 1.4rem/1.2 var(--display); display: block; margin-bottom: .3rem; }
.footer-h { font: 700 1.25rem var(--display); color: #fff; margin-bottom: .7rem; }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 2.1; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.8rem; padding-top: 1.2rem; font-size: .9rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 820px) { .footer-in { grid-template-columns: 1fr; gap: 2rem; } }

.wa-float { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0,0,0,.4); z-index: 30; transition: transform .2s; }
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* ---------------- Admin ---------------- */
body.admin { background: var(--sky); }
.admin-bar { background: var(--night); color: #fff; }
.admin-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; flex-wrap: wrap; padding-block: .5rem; }
.admin-bar a { color: #fff; text-decoration: none; }
.admin-brand { display: flex; align-items: center; gap: .6rem; font: 700 1.3rem var(--display); }
.admin-brand .emblem { width: 30px; }
.admin-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.admin-nav a { padding: .45rem .85rem; border-radius: 8px; color: #c6cfea; font-weight: 500; }
.admin-nav a[aria-current="page"], .admin-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-bar form { margin: 0; }
.admin-bar button { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 8px; padding: .4rem .9rem; cursor: pointer; font: inherit; }
.admin-main { padding-block: 2rem 4rem; }
.admin-main h1 { font-size: 2.3rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; margin-bottom: 1.25rem; min-width: 0; }
.panel h2 { font-size: 1.5rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--text); transition: border-color .2s; }
.stat:hover { border-color: var(--gold); color: var(--text); }
.stat strong { display: block; font: 700 2.3rem/1 var(--display); color: var(--navy); }
.stat span { color: var(--muted); font-size: .95rem; }
.stat-new { background: var(--gold-soft); border-color: #f0d9a6; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.bar-list { list-style: none; padding: 0; margin: 0; }
.bar-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 36px; gap: .6rem; align-items: center; padding: .28rem 0; font-size: .95rem; }
.bar-list .bar { height: 10px; background: var(--sky-2); border-radius: 5px; overflow: hidden; }
.bar-list .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-2), var(--navy)); border-radius: 5px; }
.bar-list b { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: .7rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: .88rem; white-space: nowrap; }
tbody tr:hover { background: var(--sky); }
td a { font-weight: 600; }
.status { display: inline-block; padding: .12rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.status-new { background: var(--gold-soft); color: #7a4a0c; }
.status-contacted { background: var(--sky-2); color: var(--navy); }
.status-documents-verified { background: #e3f0fb; color: #1d5a8a; }
.status-admitted { background: #e3f3e9; color: var(--ok); }
.status-rejected { background: #f6e3e1; color: var(--err); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; align-items: end; }
.filters .field label { font-size: .88rem; }
.filters input, .filters select { min-height: 44px; font-size: .95rem; }
.filter-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.row-actions form { margin: 0; }
.dl { display: grid; grid-template-columns: 210px minmax(0, 1fr); margin: 0; }
.dl dt { color: var(--muted); padding: .5rem 0; border-bottom: 1px solid var(--line); }
.dl dd { margin: 0; padding: .5rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
@media (max-width: 600px) { .dl { grid-template-columns: 1fr; } .dl dt { border: 0; padding-bottom: 0; } }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.doc-thumb { width: 120px; border-radius: 8px; border: 1px solid var(--line); margin-top: .4rem; }
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.admin-gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.admin-gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.admin-gallery figcaption { padding: .55rem .65rem; font-size: .9rem; display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.admin-gallery form { margin: 0; }
.link-btn { background: none; border: 0; color: var(--err); cursor: pointer; font: 600 .88rem var(--body); padding: 0; }
.check { display: flex; gap: .55rem; align-items: center; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); }
.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--night); position: relative; overflow: hidden; }
.login-page::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 30%, rgba(243,197,107,.18), transparent 70%); }
.login-box { position: relative; width: min(400px, 100% - 32px); background: #fff; border-radius: 22px; padding: 2rem; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.login-box .emblem { width: 80px; margin: 0 auto 1rem; }
.login-box h1 { text-align: center; font-size: 2rem; }
.form-stack { display: grid; gap: 1rem; }
.print-only { display: none; }

@media print {
  .admin-bar, .no-print, .wa-float, .site-header, .topbar, .site-footer { display: none !important; }
  body, body.admin { background: #fff; }
  .panel { border: 0; padding: 0; }
  .print-only { display: block; }
}
.login-page .admin-main { width: 100%; padding: 2rem 0; display: grid; place-items: center; }
.login-page .flash { width: min(400px, 100% - 32px); margin: 0 auto 1rem; position: relative; }
.link-arrow svg, .notice-go svg { width: 18px; height: 18px; flex: none; }

/* ---------- Notices page: notice board + this month's releases ---------- */
.nboard { position: relative; background: var(--night); border-radius: 26px; padding: clamp(1.4rem, 4vw, 2.4rem); color: #c8d0ea;
  box-shadow: 0 30px 60px -30px rgba(14,24,56,.6); border: 1px solid rgba(243,197,107,.35); overflow: hidden; }
.nboard::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(243,197,107,.28); border-radius: 18px; pointer-events: none; }
.nboard::after { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(243,197,107,.25), transparent); pointer-events: none; }
.nboard-head { position: relative; display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.nboard-head h2 { color: #fff; margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.nboard-pin { width: 14px; height: 14px; border-radius: 50%; background: #e05a4f; box-shadow: 0 0 0 5px rgba(224,90,79,.2), inset -2px -2px 0 rgba(0,0,0,.2); flex: none; }
.nboard-date { margin-left: auto; color: var(--gold-2); font-weight: 600; font-size: .95rem; }
.nboard-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.2rem; }
.nboard-grid.is-single { grid-template-columns: 1fr; }
.nboard-main { background: #fffdf7; color: var(--text); border-radius: 16px; padding: clamp(1.3rem, 3vw, 2rem); transform: rotate(-.4deg);
  box-shadow: 0 18px 30px -16px rgba(0,0,0,.6); position: relative; }
.nboard-main::before { content: ""; position: absolute; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #e05a4f; box-shadow: 0 3px 6px rgba(0,0,0,.35); }
.nboard-tags { margin: 0 0 .6rem; }
.nboard-main h3 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: .5rem; }
.nboard-main h3 a { color: var(--navy); text-decoration: none; }
.nboard-main h3 a:hover { color: var(--gold); }
.nboard-when { display: flex; align-items: center; gap: .5rem; color: #7a4a0c; font-weight: 600; margin-bottom: .8rem; }
.nboard-when svg { width: 18px; height: 18px; }
.nboard-body { color: var(--muted); font-size: 1.05rem; }
.nboard-main .btn-ghost { color: var(--navy); border-color: var(--navy); }
.nboard-main .btn-ghost:hover { background: var(--navy); color: #fff; }
.nboard-posted { margin: 1rem 0 0; color: var(--muted); font-size: .9rem; }
.nboard-more { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; align-content: start; }
.nboard-more li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: .9rem 1rem; display: grid; gap: .25rem; }
.nboard-more .tag { justify-self: start; background: rgba(243,197,107,.16); color: var(--gold-2); }
.nboard-more a { color: #fff; font-weight: 600; font-size: 1.08rem; text-decoration: none; line-height: 1.35; }
.nboard-more a:hover { color: var(--gold-2); }
.nboard-more small { color: #9eaad0; }
.nboard-empty { position: relative; text-align: center; padding: clamp(1.5rem, 5vw, 2.8rem) 1rem; }
.nboard-empty h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .4rem; }
.nboard-empty p { max-width: 46ch; margin: 0 auto; }
.nboard-empty-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; background: rgba(243,197,107,.14); color: var(--gold-2); }
.nboard-empty-icon svg { width: 30px; height: 30px; }
.nboard-empty-light { background: var(--white); border: 1px dashed #c7cfe3; border-radius: var(--radius); color: var(--muted); }
.nboard-empty-light h3 { color: var(--navy); }
.nboard-empty-light .nboard-empty-icon { background: var(--gold-soft); color: #9a6312; }
@media (max-width: 820px) { .nboard-grid { grid-template-columns: 1fr; } .nboard-main { transform: none; } .nboard-date { display: none; } }

.month-list { margin-top: var(--sec-sm); }
.release-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 900px; }
.release { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; padding: 1.1rem .4rem; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.release:hover { background: var(--sky); }
.release-day { display: grid; text-align: center; line-height: 1; color: var(--navy); border-right: 2px solid var(--gold); padding-right: .6rem; }
.release-day b { font: 700 2rem var(--display); }
.release-day span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.release h3 { margin: .25rem 0 .1rem; font: 600 1.15rem/1.35 var(--body); }
.release h3 a { color: var(--text); text-decoration: none; }
.release h3 a::after { content: ""; position: absolute; inset: 0; }
.release .when { margin: 0; color: var(--muted); font-size: .95rem; }
.tag-file { background: #e3f0fb; color: #1d5a8a; }
.retention { color: var(--muted); font-size: .92rem; margin-top: 1.4rem; display: flex; gap: .5rem; align-items: flex-start; }

.deceased { font-weight: 500; font-size: .95rem; color: var(--muted); margin-top: .2rem; }
.is-deceased input[type=text] { background: var(--sky); border-style: dashed; color: var(--muted); }

/* Home: three latest notices */
.notice-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ncard { position: relative; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; transition: box-shadow .2s, transform .2s; }
.ncard:hover { box-shadow: 0 18px 30px -20px rgba(14,24,56,.45); transform: translateY(-2px); }
.ncard.cat-holiday, .ncard.cat-jayanti { border-top-color: var(--gold); }
.ncard h3 { font: 600 1.2rem/1.35 var(--body); margin: 0; }
.ncard h3 a { color: var(--text); text-decoration: none; }
.ncard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.ncard-when { margin: auto 0 0; display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .95rem; }
.ncard-when svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
@media (max-width: 860px) { .notice-cards { grid-template-columns: 1fr; } }

[id] { scroll-margin-top: 96px; }

/* Admission form: documents kept between attempts, hidden spam trap */
.kept-file { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin: 0 0 .3rem; padding: .55rem .8rem;
  background: #e6f3ec; border-radius: 10px; color: var(--ok); font-size: .95rem; }
.kept-file strong { color: var(--text); font-weight: 600; word-break: break-all; }
.kept-ok { font-weight: 700; }
.kept-remove { margin-left: auto; font-weight: 500; color: var(--muted); display: inline-flex; gap: .35rem; align-items: center; font-size: .9rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: .65; cursor: progress; }
/* Staff: add or replace a document */
.doc-add { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); display: grid; gap: .6rem; }
.doc-add-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.doc-add-row select { width: auto; min-height: 40px; flex: 1 1 180px; }
.doc-add-row input[type=file] { flex: 2 1 220px; width: auto; padding: .45rem; }

/* Contact page: official school details */
.school-ids { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.2rem; background: var(--sky); }
.school-ids h2 { font-size: 1.35rem; margin-bottom: .6rem; }
.school-ids dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: .45rem 1rem; margin: 0; }
.school-ids dt { color: var(--muted); font-size: .95rem; }
.school-ids dd { margin: 0; font-weight: 500; color: var(--text); }
@media (max-width: 420px) { .school-ids dl { grid-template-columns: 1fr; gap: .1rem; } .school-ids dd { margin-bottom: .5rem; } }
.footer-ids { display: block; margin-top: .4rem; font-size: .9rem; color: #8f9cc6; font-variant-numeric: tabular-nums; }
