/* The school's public website — the pages. The header and footer are in site-chrome.css. Colours come from the school's logo: deep indigo, the yellow ring, the green
   lettering and the orange of the rising sun. Every colour is a token here; pages never repeat one. */
:root {
    --ink: #17163f;
    --brand: #2a2886;
    --brand-2: #3e3cb8;
    --brand-soft: #eceafb;
    --gold: #f4c20d;
    --gold-deep: #c99a00;
    --gold-soft: #fff6d6;
    --green: #1f7a3d;
    --green-soft: #e5f4ea;
    --sun: #ef8a17;
    --paper: #ffffff;
    --mist: #f6f6fb;
    --line: #e4e4f0;
    --muted: #5d6079;
    --faint: #8b8ea6;
    --danger: #b42318;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(23,22,63,.05), 0 6px 22px rgba(23,22,63,.07);
    --shadow-lift: 0 2px 4px rgba(23,22,63,.06), 0 14px 34px rgba(23,22,63,.12);
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 11px; font: 600 15px var(--sans); border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(244,194,13,.35); }
.btn-gold:hover { background: #ffd23a; color: var(--ink); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-2); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-line { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }

/* ---------- home hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(23,22,63,.94) 0%, rgba(42,40,134,.82) 45%, rgba(42,40,134,.35) 100%); }
.hero .wrap { position: relative; padding-top: 92px; padding-bottom: 104px; }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(244,194,13,.15); border: 1px solid rgba(244,194,13,.5); color: var(--gold); padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
/* 8.5vw on a phone: "LAKSHMIPUR" fits a 320 px screen; a word too long still breaks, never runs off */
.hero h1 { color: #fff; font-size: clamp(26px, min(8.5vw, 5.2vw + 14px), 58px); max-width: 760px; margin: 20px 0 14px;
           overflow-wrap: anywhere; }
.hero .motto { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2vw, 21px); color: #e7e6ff; max-width: 640px; margin-bottom: 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .bg.rays { background: repeating-conic-gradient(from 0deg at 82% 118%, rgba(255,255,255,.05) 0deg 6deg, transparent 6deg 14deg), linear-gradient(120deg, var(--ink) 0%, var(--brand) 62%, var(--brand-2) 100%); }
.hero .bg.rays::after { background: none; }
.hero .seal { position: absolute; right: 7%; top: 50%; transform: translateY(-50%); width: 300px; height: 300px; border-radius: 50%; background: #fff; padding: 14px; box-shadow: 0 0 0 10px rgba(244,194,13,.35), 0 30px 80px rgba(0,0,0,.35); }
.hero .seal img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
@media (max-width: 1100px) { .hero .seal { width: 220px; height: 220px; right: 4%; } }
@media (max-width: 960px) { .hero .seal { display: none; } }
.hero .sun { position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(244,194,13,.32) 0%, rgba(239,138,23,.12) 45%, transparent 70%); pointer-events: none; }

/* ---------- admission strip ---------- */
.admit { background: linear-gradient(90deg, var(--gold) 0%, #ffd94a 100%); color: var(--ink); }
.admit .wrap { display: flex; align-items: center; gap: 18px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.admit .tag { background: var(--ink); color: var(--gold); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.admit b { font-family: var(--serif); font-size: 18px; }
.admit .grow { flex: 1; min-width: 220px; }
.admit .grow span { display: block; font-size: 14px; color: #3d3a1a; }

/* ---------- stats ---------- */
.stats { margin-top: -48px; position: relative; z-index: 2; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lift); overflow: hidden; }
.stats .cell { padding: 24px 20px; text-align: center; border-right: 1px solid var(--line); }
.stats .cell:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--serif); font-size: 34px; color: var(--brand); line-height: 1.1; }
.stats span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stats i { color: var(--gold-deep); font-size: 20px; margin-bottom: 8px; display: block; }

/* ---------- sections ---------- */
.sec { padding: 84px 0; }
.sec.tint { background: var(--mist); }
.sec.tight { padding: 60px 0; }
.head { max-width: 680px; margin-bottom: 36px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kick { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.kick::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 9px; }
.head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.head p { color: var(--muted); font-size: 17px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.more i { transition: transform .15s ease; }
.more:hover i { transform: translateX(3px); }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.row-head .head { margin-bottom: 0; }

/* ---------- inner page band ---------- */
.band { background: linear-gradient(120deg, var(--ink) 0%, var(--brand) 100%); color: #fff; position: relative; overflow: hidden; }
.band .wrap { padding-top: 54px; padding-bottom: 54px; position: relative; }
.band h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-bottom: 8px; }
.band p { color: #d9d8fb; max-width: 640px; margin: 0; font-size: 17px; }
.band .crumbs { font-size: 13px; color: #b9b8ec; margin-bottom: 14px; }
.band .crumbs a { color: #e4e3fb; }
.band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(244,194,13,.22), transparent 70%); }

/* ---------- message from the head ---------- */
.message { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.message .photo { position: relative; }
.message .photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.message .photo::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 3px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.message blockquote { margin: 0; font-family: var(--serif); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.55; color: var(--ink); position: relative; padding-left: 26px; border-left: 4px solid var(--gold); }
.message .who { margin-top: 22px; }
.message .who b { display: block; font-size: 18px; color: var(--brand); }
.message .who span { color: var(--muted); font-size: 14px; }

/* ---------- notices ---------- */
.board { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel > h3 { font-size: 19px; padding: 18px 22px; margin: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.panel > h3 i { color: var(--gold-deep); }
.panel > .foot { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--mist); }
.nlist { list-style: none; margin: 0; padding: 0; }
.nlist li { border-bottom: 1px solid var(--line); }
.nlist li:last-child { border-bottom: 0; }
.nlist a { display: flex; gap: 16px; padding: 16px 22px; color: var(--ink); align-items: flex-start; }
.nlist a:hover { background: var(--mist); }
.date { flex-shrink: 0; width: 56px; text-align: center; background: var(--brand-soft); border-radius: 10px; padding: 7px 0 6px; color: var(--brand); }
.date b { display: block; font-family: var(--serif); font-size: 22px; line-height: 1; }
.date span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nlist .t { font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.nlist .s { font-size: 13.5px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; vertical-align: middle; }
.pill.new { background: var(--sun); color: #fff; }
.pill.file { background: var(--brand-soft); color: var(--brand); }
.pill.gold { background: var(--gold-soft); color: #7a5a00; }
.pill.green { background: var(--green-soft); color: var(--green); }
.hlist { list-style: none; margin: 0; padding: 6px 0; }
.hlist li { display: flex; gap: 14px; padding: 11px 22px; align-items: center; }
.hlist .date { width: 50px; background: var(--gold-soft); color: #7a5a00; }
.hlist .date b { font-size: 19px; }
.hlist .t { font-weight: 600; font-size: 15px; line-height: 1.35; }
.hlist .s { font-size: 13px; color: var(--muted); }
.empty { padding: 34px 22px; text-align: center; color: var(--faint); font-size: 15px; }
.empty i { display: block; font-size: 28px; color: var(--line); margin-bottom: 10px; }

/* ---------- gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gal a { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--mist); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gal a:hover img { transform: scale(1.06); }
.gal a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: 13.5px; font-weight: 600; background: linear-gradient(transparent, rgba(23,22,63,.8)); opacity: 0; transition: opacity .2s ease; }
.gal a:hover span, .gal a:focus span { opacity: 1; }
.gal.big { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }

/* ---------- staff / teachers ---------- */
/* A premium, even grid of equal-height cards, each with a neat passport-style photo, in
   seniority order (site_teachers sorts them). */
.staff-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 20px; }
.staff-head h2 { font-size: 24px; margin: 0; color: var(--brand); }

.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 22px; align-items: stretch; }
.tcard {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 20px 16px 20px; box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--gold); }

/* photo wrapper gives the rectangle a soft gold frame */
.tcard-photo { padding: 5px; border-radius: 14px; background: linear-gradient(145deg, var(--gold), var(--gold-deep)); margin: 4px auto 14px; }
.tcard-photo .avatar { margin: 0; }

/* Rectangle (passport) photo — same size for every card so the grid lines up */
.avatar {
    width: 132px; height: 165px; margin: 0 auto 14px;
    border-radius: 10px; object-fit: cover; object-position: top center;
    border: 3px solid #fff; box-shadow: var(--shadow);
    background: var(--brand-soft);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 48px; font-weight: 700; color: var(--brand);
}
.tcard h3 { font-size: 17px; margin-bottom: 2px; line-height: 1.3; color: var(--ink, #17163f); }
.tcard .post { font-size: 13px; color: var(--muted); font-weight: 600; }
.tcard .subj { display: inline-block; margin: 11px 0 10px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 12.5px; padding: 5px 13px; border-radius: 999px; }
/* push the meta block to the bottom so every card's footer lines up */
.tcard .meta { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.tcard .meta i { color: var(--gold-deep); margin-right: 5px; width: 14px; text-align: center; }
.hoi { display: grid; grid-template-columns: 150px 1fr; gap: 30px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lift); margin-bottom: 44px; }
.hoi .avatar { width: 150px; height: 185px; font-size: 54px; margin: 0; }
.hoi h2 { font-size: 28px; margin-bottom: 4px; }
.subject-head { display: flex; align-items: center; gap: 12px; margin: 38px 0 16px; }
.subject-head h3 { margin: 0; font-size: 22px; }
.subject-head span { background: var(--gold-soft); color: #7a5a00; font-weight: 700; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.subject-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.teaser { display: flex; align-items: center; gap: 28px; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lift); flex-wrap: wrap; }
.teaser h2 { color: #fff; margin-bottom: 6px; }
.teaser p { color: #dcdbfb; margin: 0; }
.teaser .grow { flex: 1; min-width: 240px; }
.faces { display: flex; }
.faces .avatar { width: 54px; height: 54px; font-size: 19px; margin: 0 0 0 -12px; box-shadow: 0 0 0 3px var(--brand); }
.faces .avatar:first-child { margin-left: 0; }

/* ---------- filters & search ---------- */
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.search { flex: 1; min-width: 220px; position: relative; }
.search input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px 0 44px; font: 15px var(--sans); background: #fff; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chips a, .chips button { border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 13.5px var(--sans); padding: 8px 13px; border-radius: 999px; cursor: pointer; }
.chips .on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- notice page ---------- */
.ncards { display: grid; gap: 14px; }
.ncard { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease; }
.ncard:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.ncard .date { width: 64px; padding: 9px 0; }
.ncard .date b { font-size: 26px; }
.ncard h3 { font-family: var(--sans); font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.ncard p { margin: 0; color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.article .body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.article .body .when { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.article .body h1 { font-size: clamp(24px, 3vw, 32px); }
.article .text { white-space: pre-wrap; font-size: 16.5px; line-height: 1.8; }
.attach { display: flex; gap: 14px; align-items: center; margin-top: 26px; padding: 16px 18px; border: 1px dashed var(--brand); border-radius: 12px; background: var(--brand-soft); }
.attach i { font-size: 26px; color: var(--brand); }
.attach .grow { flex: 1; }
.attach img { margin-top: 18px; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- pages and forms ---------- */
.prose { max-width: 760px; font-size: 17px; }
.prose p { white-space: pre-wrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.fact span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.fact b { display: block; font-size: 16px; margin-top: 4px; color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lift); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.form input, .form textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; font: 15px var(--sans); background: #fff; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.trap { position: absolute; left: -9999px; }
.note-ok, .note-bad { border-radius: 11px; padding: 13px 16px; font-size: 15px; font-weight: 600; }
.note-ok { background: var(--green-soft); color: var(--green); }
.note-bad { background: #fdecea; color: var(--danger); }
.contact-cards { display: grid; gap: 14px; }
.ccard { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.ccard i { width: 44px; height: 44px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ccard b { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.ccard span, .ccard a { font-size: 16px; font-weight: 600; color: var(--ink); word-break: break-word; }
.map { width: 100%; height: 300px; border: 0; border-radius: var(--radius); margin-top: 14px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th { text-align: left; background: var(--brand); color: #fff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 13px 16px; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.past td { color: var(--faint); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; }
.pager .on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(12,11,36,.94); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 82vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.lightbox button:hover { background: var(--gold); color: var(--ink); }
.lightbox .x { top: 18px; right: 18px; }
.lightbox .prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
    .board, .message, .split, .article { grid-template-columns: 1fr; }
    .message .photo { max-width: 280px; }
    .gal { grid-template-columns: repeat(3, 1fr); }
    .hoi { grid-template-columns: 1fr; text-align: center; }
    .hoi .avatar { margin: 0 auto; }
}
@media (max-width: 680px) {
    .wrap { padding: 0 16px; }
    .hero .wrap { padding-top: 60px; padding-bottom: 90px; }
    .stats .grid { grid-template-columns: 1fr 1fr; }
    .stats .cell:nth-child(2) { border-right: 0; }
    .stats .cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .stats b { font-size: 28px; }
    .sec { padding: 60px 0; }
    .gal { grid-template-columns: 1fr 1fr; gap: 8px; }
    .gal.big { grid-template-columns: 1fr 1fr; }
    .tgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .tcard { padding: 14px 10px 16px; }
    .tcard .avatar { width: 104px; height: 130px; }
    .form .two { grid-template-columns: 1fr; }
    .article .body { padding: 22px; }
    .teaser { padding: 24px; }
    .ncard { padding: 16px; gap: 14px; }
    .table th, .table td { padding: 11px 12px; font-size: 14px; }
}
.message .avatar.big { width: 100%; height: auto; aspect-ratio: 4/5; border-radius: var(--radius); font-size: 84px; margin: 0; box-shadow: var(--shadow-lift); }
.stats + .admit { margin-top: 36px; }
.admit { border-top: 1px solid rgba(23,22,63,.06); border-bottom: 1px solid rgba(23,22,63,.06); }

/* Full holidays page: the list as a boxed, divided card; past holidays dimmed. */
.hlist.hlist-page {
    border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
}
.hlist.hlist-page li { padding: 14px 20px; }
.hlist.hlist-page li + li { border-top: 1px solid var(--line); }
.hlist.hlist-page li.past { opacity: .55; }
.hlist.hlist-page li.past .date { filter: grayscale(.4); }

/* ---------- gallery, grouped by category ---------- */
.gcat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.gcat-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 30px;
    background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
    font-size: 14px; font-weight: 600; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.gcat-chip b {
    display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
    padding: 0 6px; border-radius: 20px; font-size: 12px; background: var(--brand-soft, #eef); color: var(--brand);
}
.gcat-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.1); background: var(--brand); color: #fff; }
.gcat-chip:hover b { background: rgba(255,255,255,.25); color: #fff; }

.gcat-section { margin: 0 0 48px; scroll-margin-top: 90px; }
.gcat-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; padding-bottom: 10px;
    border-bottom: 2px solid var(--line); }
.gcat-head h2 { margin: 0; position: relative; }
.gcat-head h2::before {
    content: ""; position: absolute; left: 0; bottom: -12px; width: 56px; height: 3px;
    border-radius: 3px; background: linear-gradient(90deg, var(--gold, #d9a441), var(--brand));
}
.gcat-count { color: var(--muted); font-size: 14px; font-weight: 600; }

/* Staggered, graceful reveal for each photo (falls back to the shared .reveal). */
.gcat-item.reveal {
    opacity: 0; transform: translateY(22px) scale(.97);
    transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--d, 0ms);
}
.gcat-item.reveal.seen { opacity: 1; transform: none; }
.gcat-grid .gcat-item { overflow: hidden; }
.gcat-grid .gcat-item img { transition: transform .4s ease; }
.gcat-grid .gcat-item:hover img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
    .gcat-item.reveal { opacity: 1; transform: none; transition: none; }
    .gcat-grid .gcat-item:hover img { transform: none; }
}
