/* ============================================================
   Shree Rastriya Secondary School — Design System
   Palette: forest green (growth / identity) + gold (prestige)
            + crimson (Nepal flag, notices only)
   Type:    Tiro Devanagari Hindi (serif display, bilingual)
            Mukta (sans body, bilingual)
   ============================================================ */

:root {
  /* Greens */
  --green-950: oklch(0.21 0.042 156);
  --green-900: oklch(0.26 0.052 155);
  --green-800: oklch(0.32 0.062 153);
  --green-700: oklch(0.39 0.072 152); /* primary */
  --green-600: oklch(0.47 0.082 150);
  --green-500: oklch(0.55 0.088 148);
  --green-200: oklch(0.88 0.04 150);
  --green-100: oklch(0.93 0.028 150);
  --green-50:  oklch(0.97 0.014 150);

  /* Gold */
  --gold-600: oklch(0.66 0.12 74);
  --gold-500: oklch(0.74 0.122 78);
  --gold-400: oklch(0.81 0.108 82);
  --gold-100: oklch(0.93 0.05 85);

  /* Crimson (Nepal flag, used sparingly) */
  --crimson:  oklch(0.53 0.19 22);
  --crimson-soft: oklch(0.96 0.03 22);

  /* Neutrals — warm */
  --cream:    oklch(0.987 0.006 95);
  --paper:    oklch(0.975 0.009 92);
  --paper-2:  oklch(0.955 0.012 92);
  --line:     oklch(0.90 0.012 120);
  --ink:      oklch(0.26 0.022 152);
  --ink-soft: oklch(0.44 0.02 152);
  --ink-mute: oklch(0.58 0.018 152);
  --white:    oklch(0.995 0.003 95);

  --serif: "Tiro Devanagari Hindi", "Noto Serif Devanagari", Georgia, serif;
  --sans:  "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;

  --maxw: 1300px;
  --pad: clamp(18px, 4vw, 52px);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px oklch(0.3 0.04 150 / 0.06), 0 2px 8px oklch(0.3 0.04 150 / 0.05);
  --shadow-md: 0 6px 20px oklch(0.3 0.05 150 / 0.10), 0 2px 6px oklch(0.3 0.05 150 / 0.06);
  --shadow-lg: 0 20px 50px oklch(0.25 0.05 150 / 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Bilingual visibility ---------- */
.t-en { display: none; }
html.lang-en .t-ne { display: none; }
html.lang-en .t-en { display: revert; }
/* keep devanagari serif tighter line-height */
html.lang-ne .display, html.lang-ne h1, html.lang-ne h2 { line-height: 1.32; }

/* ---------- Type scale ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1.hero-title { font-family: var(--serif); font-weight: 500; line-height: 1.12; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  color: var(--green-900);
  letter-spacing: -0.01em;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(40px, 5vw, 76px); }
.section--paper { background: var(--paper); }
.section--green {
  background:
    radial-gradient(120% 90% at 85% 0%, oklch(0.31 0.06 153) 0%, transparent 55%),
    linear-gradient(180deg, var(--green-900), var(--green-950));
  color: var(--green-100);
}
.center { text-align: center; }
.section-head { max-width: 680px; }
.section-head.center { margin-inline: auto; }
.section-head .section-title { margin-top: 10px; }
.section-head .lead { margin-top: 14px; }

/* gold rule under headings */
.tick { display: inline-flex; align-items: center; gap: 10px; }
.tick::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--green-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold-500); color: var(--green-950); }
.btn--gold:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { border: 1.5px solid currentColor; color: inherit; }
.btn--ghost:hover { transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--green-900); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative;
  background-color: var(--green-100);
  background-image: repeating-linear-gradient(
    -45deg,
    oklch(0.90 0.03 150) 0 11px,
    oklch(0.93 0.024 150) 11px 22px);
  display: grid; place-items: center;
  color: var(--green-700);
  overflow: hidden;
}
.ph--dark {
  background-color: var(--green-900);
  background-image: repeating-linear-gradient(
    -45deg,
    oklch(0.28 0.05 153) 0 11px,
    oklch(0.31 0.05 153) 11px 22px);
  color: var(--green-100);
}
.ph__tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem; letter-spacing: 0.04em;
  background: oklch(1 0 0 / 0.78); color: var(--green-800);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid oklch(0.4 0.05 150 / 0.18);
}
.ph--dark .ph__tag { background: oklch(0 0 0 / 0.35); color: var(--green-100); border-color: oklch(1 0 0 / 0.2); }

/* ---------- Header ---------- */
.topbar {
  background: var(--green-950); color: var(--green-100);
  font-size: 0.82rem;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar a { color: var(--green-100); opacity: .9; }
.topbar a:hover { opacity: 1; color: var(--gold-400); }
.topbar__contact { display: flex; gap: 20px; align-items: center; }
.topbar__contact span { display: inline-flex; align-items: center; gap: 7px; }
.topbar__right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.clock-chip { display: inline-flex; align-items: center; gap: 8px; background: oklch(1 0 0 / 0.1); border: 1px solid oklch(1 0 0 / 0.16); border-radius: 999px; padding: 4px 13px; font-size: 0.78rem; font-weight: 600; color: var(--green-100); white-space: nowrap; }
.clock-chip svg { width: 13px; height: 13px; color: var(--gold-400); flex: none; }
.clock-chip .time { color: #fff; }
.topbar__right .sep { width: 1px; height: 16px; background: oklch(1 0 0 / 0.2); }
.lang-toggle { display: inline-flex; border: 1px solid oklch(1 0 0 / 0.25); border-radius: 999px; overflow: hidden; }
.lang-toggle button { padding: 3px 12px; font-size: 0.78rem; font-weight: 600; color: var(--green-100); }
.lang-toggle button.active { background: var(--gold-500); color: var(--green-950); }

.header {
  position: sticky; top: 0; z-index: 60;
  background: oklch(0.987 0.006 95 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.brand__crest {
  width: 50px; height: 50px; flex: none; border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center; overflow: hidden;
  border: 2px solid var(--gold-500);
}
.brand__crest img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.brand__txt { min-width: 0; }
.brand__name { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--green-900); line-height: 1.2; }
.brand__sub { display: block; font-size: 0.74rem; color: var(--ink-mute); letter-spacing: 0.02em; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 9px; font-weight: 500; font-size: 0.96rem;
  color: var(--ink-soft); transition: color .15s, background .15s; position: relative;
}
.nav a:hover { color: var(--green-800); background: var(--green-50); }
.nav a.active { color: var(--green-800); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--gold-500); border-radius: 2px;
}
.header__cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; color: var(--green-900); }
.burger svg { width: 26px; height: 26px; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer__scrim { position: absolute; inset: 0; background: oklch(0.2 0.04 150 / 0); transition: background .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(82vw, 340px);
  background: var(--cream); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; padding: 22px;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.drawer.open { visibility: visible; }
.drawer.open .drawer__scrim { background: oklch(0.2 0.04 150 / 0.45); }
.drawer.open .drawer__panel { transform: translateX(0); }
.drawer__panel a { padding: 14px 6px; font-size: 1.1rem; font-weight: 500; border-bottom: 1px solid var(--line); color: var(--green-900); }
.drawer__panel > * { flex-shrink: 0; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; position: sticky; top: -22px; background: var(--cream); padding-block: 6px; z-index: 2; }
.drawer__head button { width: 40px; height: 40px; color: var(--green-900); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__slides { position: relative; height: 600px; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
}
.hero__slide.active { opacity: 1; }
.hero__slide .ph { width: 100%; height: 100%; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, oklch(0.21 0.05 153 / 0.9) 0%, oklch(0.21 0.05 153 / 0.55) 45%, oklch(0.21 0.05 153 / 0.2) 100%);
}
.hero__inner {
  position: absolute; inset: 0; display: flex; align-items: center;
}
.hero__inner .wrap { width: 100%; }
.hero__content { max-width: 640px; color: var(--white); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: oklch(1 0 0 / 0.12); border: 1px solid oklch(1 0 0 / 0.28);
  padding: 6px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; backdrop-filter: blur(6px); margin-bottom: 16px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); }
.hero-title { font-size: clamp(2rem, 4.4vw, 3.3rem); color: var(--white); }
.hero-title .gold { color: var(--gold-400); }
.hero__sub { margin-top: 16px; font-size: 1.05rem; color: oklch(0.96 0.01 95 / 0.92); max-width: 540px; }
.hero__cta { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.hero__dots button { width: 9px; height: 9px; border-radius: 50%; background: oklch(1 0 0 / 0.4); transition: all .25s; }
.hero__dots button.active { background: var(--gold-400); width: 28px; border-radius: 999px; }

/* ---------- Notice ticker ---------- */
.ticker {
  background: var(--green-900); color: var(--green-100);
  display: flex; align-items: stretch; overflow: hidden; font-size: 0.95rem;
}
.ticker__label {
  background: var(--crimson); color: var(--white); font-weight: 700;
  display: flex; align-items: center; gap: 9px; padding: 12px 20px; white-space: nowrap;
  letter-spacing: 0.04em; flex: none;
}
.ticker__label svg { width: 17px; height: 17px; }
.ticker__track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker__move { display: flex; gap: 48px; white-space: nowrap; padding-inline: 24px; animation: tick 32s linear infinite; }
.ticker__move a:hover { color: var(--gold-400); }
.ticker:hover .ticker__move { animation-play-state: paused; }
.ticker__move .dot { color: var(--gold-400); margin-right: 48px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 40px); }
.stat { text-align: center; }
.stat__num { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--green-700); line-height: 1; }
.stat__num .plus { color: var(--gold-500); margin-left: 1px; }
.stat__lbl { display: block; margin-top: 8px; font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__media { position: relative; }
.about__media .ph { border-radius: var(--radius-lg); aspect-ratio: 4/5; box-shadow: var(--shadow-md); }
.about__media .ph.small {
  position: absolute; right: -24px; bottom: -32px; width: 52%; aspect-ratio: 4/3;
  border-radius: var(--radius); border: 6px solid var(--cream);
}
.about__body p { margin-top: 16px; color: var(--ink-soft); }
.about__body .section-title { margin-top: 14px; }
.about__stats { margin-top: 34px; }

/* ---------- Cards / facilities ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.facility {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.facility:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green-200); }
.facility__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); margin-bottom: 18px;
}
.facility__icon svg { width: 28px; height: 28px; }
.facility h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--green-900); }
.facility p { margin-top: 8px; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Notices block ---------- */
.notices-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tabs button {
  padding: 10px 16px; font-weight: 600; font-size: 0.96rem; color: var(--ink-mute);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.active { color: var(--green-800); border-bottom-color: var(--gold-500); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.notice {
  display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line);
  align-items: center; transition: background .15s;
}
.notice:hover { background: oklch(1 0 0 / 0.5); }
.notice__date {
  flex: none; width: 64px; text-align: center; border-radius: 10px;
  background: var(--green-50); padding: 10px 4px; border: 1px solid var(--green-100);
}
.notice__date .d { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--green-800); line-height: 1; }
.notice__date .m { font-size: 0.72rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }
.notice__body { min-width: 0; }
.notice__body h4 { font-weight: 600; font-size: 1.04rem; color: var(--green-900); }
.notice__body .meta { font-size: 0.84rem; color: var(--ink-mute); margin-top: 4px; }
.tag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.tag--new { background: var(--crimson-soft); color: var(--crimson); }
.tag--event { background: var(--gold-100); color: var(--gold-600); }
.tag--exam { background: var(--green-100); color: var(--green-700); }

.events-side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.events-side h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--green-900); margin-bottom: 6px; }
.mini-event { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.mini-event:last-of-type { border-bottom: none; }
.mini-event__day { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--gold-600); flex: none; }

/* ---------- Messages (principal / chair) ---------- */
.msg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.msg {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; display: flex; gap: 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.msg__quote { position: absolute; top: 8px; right: 18px; font-family: var(--serif); font-size: 6rem; color: var(--green-50); line-height: 1; }
.msg__photo { flex: none; width: 130px; border-radius: 10px; overflow: clip; }
.msg__photo .ph { width: 130px; height: 150px; border-radius: var(--radius); }
.msg__body { position: relative; z-index: 1; }
.msg__role { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-600); }
.msg__name { font-family: var(--serif); font-size: 1.4rem; color: var(--green-900); margin-top: 4px; }
.msg__text { margin-top: 12px; font-size: 0.97rem; color: var(--ink-soft); }
.msg__text + a { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--green-700); }
.msg__text + a:hover { color: var(--gold-600); }

/* ---------- Leadership ---------- */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.member { text-align: center; }
.member .ph { aspect-ratio: 1; border-radius: 50%; margin-inline: auto; width: 100%; max-width: 150px; box-shadow: var(--shadow-sm); }
.member h4 { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--green-100); margin-top: 16px; }
.member .role { font-size: 0.85rem; color: var(--gold-400); margin-top: 2px; }
.section--green .member .ph { border: 3px solid oklch(1 0 0 / 0.12); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 14px; }
.gallery .ph { border-radius: var(--radius); width: 100%; height: 100%; transition: transform .25s; cursor: pointer; }
.gallery .ph:hover { transform: scale(1.02); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* ---------- Admissions band ---------- */
.cta-band {
  background:
    radial-gradient(100% 140% at 0% 0%, oklch(0.45 0.09 84) 0%, transparent 50%),
    linear-gradient(120deg, var(--green-800), var(--green-950));
  color: var(--white); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band__txt { max-width: 560px; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.cta-band p { margin-top: 12px; color: oklch(0.94 0.02 95 / 0.85); }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Affiliations ---------- */
.affil { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 80px); flex-wrap: wrap; }
.affil .ph { width: 96px; height: 70px; border-radius: 10px; opacity: 0.85; }

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: oklch(0.86 0.02 150); font-size: 0.94rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-block: 64px; }
.footer__brand { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.footer__brand .brand__name { color: var(--white); }
.footer__brand .brand__sub { color: oklch(0.78 0.02 150); }
.footer p { color: oklch(0.80 0.02 150); line-height: 1.7; }
.footer h4 { font-family: var(--serif); color: var(--white); font-size: 1.12rem; margin-bottom: 18px; font-weight: 600; }
.footer__col a { display: block; padding: 6px 0; color: oklch(0.82 0.02 150); transition: color .15s, padding .15s; }
.footer__col a:hover { color: var(--gold-400); padding-left: 5px; }
.footer__contact li { display: flex; gap: 12px; padding: 7px 0; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold-400); }
.footer ul { list-style: none; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: oklch(1 0 0 / 0.08); display: grid; place-items: center; transition: background .2s; }
.footer__social a:hover { background: var(--gold-500); color: var(--green-950); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bar { border-top: 1px solid oklch(1 0 0 / 0.1); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.86rem; color: oklch(0.74 0.02 150); }

/* ---------- Page banner (inner pages) ---------- */
.pagehero {
  position: relative; color: var(--white);
  background: linear-gradient(120deg, var(--green-900), var(--green-950));
  overflow: hidden;
}
.pagehero::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-45deg, oklch(1 0 0 / 0.04) 0 12px, transparent 12px 24px);
}
.pagehero--plain::after { display: none; }
.pagehero--img { background-size: cover; background-position: center; }
.pagehero--img::after {
  background-image: linear-gradient(100deg, oklch(0.23 0.05 155 / 0.93) 0%, oklch(0.23 0.05 155 / 0.68) 55%, oklch(0.23 0.05 155 / 0.45) 100%);
}
.pagehero .wrap { position: relative; z-index: 1; padding-block: clamp(48px, 8vw, 90px); }
.pagehero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.pagehero p { margin-top: 12px; color: oklch(0.92 0.02 95 / 0.82); max-width: 620px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: oklch(0.86 0.02 150 / 0.8); margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold-400); }
.crumbs span { opacity: 0.5; }

/* ---------- Prose ---------- */
.prose p { margin-top: 16px; color: var(--ink-soft); }
.prose h3 { font-family: var(--serif); font-weight: 600; color: var(--green-900); font-size: 1.5rem; margin-top: 32px; }
.prose ul { margin-top: 14px; padding-left: 4px; list-style: none; }
.prose li { display: flex; gap: 12px; padding: 7px 0; color: var(--ink-soft); }
.prose li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 2px; background: var(--gold-500); transform: rotate(45deg); }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }

/* ---------- Vision / mission cards ---------- */
.vm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vm { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; border-top: 3px solid var(--gold-500); }
.vm h3 { font-family: var(--serif); color: var(--green-900); font-size: 1.35rem; margin-bottom: 10px; }
.vm p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 10px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--green-100); }
.tl-item { position: relative; padding: 12px 0 28px; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-500); border: 3px solid var(--cream); box-shadow: 0 0 0 2px var(--green-100); }
.tl-item .yr { font-family: var(--serif); font-weight: 600; color: var(--green-700); font-size: 1.2rem; }
.tl-item h4 { font-weight: 600; color: var(--green-900); margin-top: 2px; }
.tl-item p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 4px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .field { min-width: 0; }
.form-grid select, .form-grid input, .form-grid textarea { width: 100%; max-width: 100%; min-width: 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--green-900); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100);
}
.field textarea { resize: vertical; min-height: 110px; }

/* ---------- Info cards row ---------- */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.info-card__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; margin: 0 auto 16px; }
.info-card__icon svg { width: 26px; height: 26px; }
.info-card h4 { font-family: var(--serif); color: var(--green-900); font-size: 1.2rem; }
.info-card p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 6px; }
.info-card a { color: var(--green-700); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: flex; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.step::before { counter-increment: step; content: counter(step); flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--green-700); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; display: grid; place-items: center; }
.step h4 { font-weight: 600; color: var(--green-900); font-size: 1.1rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 3px; }

/* ---------- Fee table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.fee { width: 100%; border-collapse: collapse; min-width: 440px; }
table.fee th, table.fee td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
table.fee thead th { background: var(--green-50); color: var(--green-900); font-weight: 600; font-size: 0.95rem; }
table.fee td:last-child, table.fee th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
table.fee tbody tr:last-child td { border-bottom: none; }
table.fee tbody tr:hover { background: var(--green-50); }

/* ---------- Notices page list ---------- */
.notice-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); transition: all .15s; }
.chip:hover { border-color: var(--green-600); color: var(--green-800); }
.chip.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.notice-list .notice { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; }
.notice-list .notice:hover { box-shadow: var(--shadow-md); transform: translateX(3px); }

@media (max-width: 760px) {
  .vm-grid, .info-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Dropdown nav ---------- */
.nav .has-drop { position: relative; }
.nav .has-drop > a { display: inline-flex; align-items: center; gap: 5px; }
.nav .has-drop > a::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 248px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 70;
}
.nav .has-drop:hover > a::after { transform: rotate(225deg) translateY(2px); }
.nav .has-drop:hover .dropdown,
.nav .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.dropdown a:hover { background: var(--green-50); color: var(--green-800); }
.dropdown::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }

/* drawer groups */
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__group > .drawer__gtitle { padding: 14px 6px 6px; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-600); }
.drawer__group a { border-bottom: none !important; padding: 10px 6px 10px 18px !important; font-size: 1rem !important; }

/* ---------- With-sidebar layout ---------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 96px; }
.widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.widget h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--green-900); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.widget h3 svg { width: 18px; height: 18px; color: var(--gold-600); }
.widget__links a { display: flex; align-items: center; gap: 9px; padding: 9px 0; font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); border-bottom: 1px dashed var(--line); transition: color .15s, padding .15s; }
.widget__links a:last-child { border-bottom: none; }
.widget__links a:hover { color: var(--green-800); padding-left: 5px; }
.widget__links a::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--gold-500); transform: rotate(45deg); }
.widget--cta { background: linear-gradient(140deg, var(--green-800), var(--green-950)); color: #fff; border: none; }
.widget--cta h3 { color: #fff; border-color: oklch(1 0 0 / 0.18); }
.widget--cta p { color: oklch(0.92 0.02 95 / 0.82); font-size: 0.92rem; margin-bottom: 16px; }
.widget__recent a { display: block; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.widget__recent a:last-child { border-bottom: none; }
.widget__recent .t { font-weight: 500; font-size: 0.92rem; color: var(--green-900); display: block; line-height: 1.4; }
.widget__recent .d { font-size: 0.78rem; color: var(--ink-mute); }
.widget__recent a:hover .t { color: var(--green-700); }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post .ph { aspect-ratio: 16/10; }
.post__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post__meta { font-size: 0.8rem; color: var(--ink-mute); display: flex; gap: 12px; margin-bottom: 8px; }
.post__cat { color: var(--gold-600); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.post h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--green-900); line-height: 1.25; }
.post p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 8px; flex: 1; }
.post a.more { margin-top: 14px; font-weight: 600; color: var(--green-700); font-size: 0.92rem; }
.post a.more:hover { color: var(--gold-600); }

/* ---------- Gallery albums ---------- */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.album { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.album .ph { width: 100%; height: 100%; }
.album__cap { position: absolute; inset: auto 0 0 0; padding: 26px 18px 16px; background: linear-gradient(transparent, oklch(0.2 0.04 150 / 0.85)); color: #fff; }
.album__cap h4 { font-family: var(--serif); font-size: 1.15rem; }
.album__cap span { font-size: 0.82rem; opacity: 0.85; }

/* ---------- Video cards ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.video:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video__thumb { position: relative; aspect-ratio: 16/9; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; }
.video__play span { width: 58px; height: 58px; border-radius: 50%; background: oklch(0.2 0.04 150 / 0.6); border: 2px solid #fff; display: grid; place-items: center; transition: background .2s, transform .2s; }
.video:hover .video__play span { background: var(--crimson); transform: scale(1.08); }
.video__play svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }
.video__body { padding: 16px 18px; }
.video__body h4 { font-weight: 600; color: var(--green-900); font-size: 1.02rem; }
.video__body .meta { font-size: 0.82rem; color: var(--ink-mute); margin-top: 4px; }

/* ---------- Downloads list ---------- */
.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; transition: border-color .15s, box-shadow .15s; }
.dl:hover { border-color: var(--green-200); box-shadow: var(--shadow-sm); }
.dl__ic { flex: none; width: 46px; height: 46px; border-radius: 10px; background: var(--crimson-soft); color: var(--crimson); display: grid; place-items: center; font-weight: 700; font-size: 0.72rem; }
.dl__ic.doc { background: var(--green-100); color: var(--green-700); }
.dl__ic.xls { background: oklch(0.93 0.05 150); color: oklch(0.45 0.1 150); }
.dl__body { flex: 1; min-width: 0; }
.dl__body h4 { font-weight: 600; color: var(--green-900); font-size: 1rem; }
.dl__body .meta { font-size: 0.82rem; color: var(--ink-mute); }
.dl__btn { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; transition: background .2s, color .2s; }
.dl:hover .dl__btn { background: var(--green-700); color: #fff; }
.dl__btn svg { width: 18px; height: 18px; }

/* ---------- Faculty cards ---------- */
.faculty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fac { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; transition: transform .2s, box-shadow .2s; }
.fac:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fac .ph { aspect-ratio: 1; }
.fac__body { padding: 20px 16px; }
.fac__body h4 { font-family: var(--serif); font-size: 1.2rem; color: var(--green-900); }
.fac__role { color: var(--gold-600); font-weight: 600; font-size: 0.9rem; margin-top: 2px; }
.fac__sub { color: var(--ink-mute); font-size: 0.85rem; margin-top: 6px; }

/* ---------- Result lookup ---------- */
.result-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); text-align: center; }
.result-box .form-grid { text-align: left; max-width: 100%; margin: 22px auto 0; }
.marksheet { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: none; }
.marksheet.show { display: block; }

/* ---------- Legal prose ---------- */
.legal h2 { font-family: var(--serif); color: var(--green-900); font-size: 1.5rem; margin: 30px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 10px; padding-left: 4px; list-style: none; }
.legal li { display: flex; gap: 11px; padding: 5px 0; }
.legal li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 2px; background: var(--gold-500); transform: rotate(45deg); }
.legal .updated { font-size: 0.88rem; color: var(--ink-mute); font-style: italic; }

/* ---------- Career / job cards ---------- */
.job { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 16px; transition: border-color .15s, box-shadow .15s; }
.job:hover { border-color: var(--green-200); box-shadow: var(--shadow-sm); }
.job__top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.job h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--green-900); }
.job__tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.job__tag { font-size: 0.8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--green-50); color: var(--green-700); }
.job p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Charts (student-detail) ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-left: 3px solid var(--gold-500); }
.kpi__num { font-family: var(--serif); font-weight: 600; font-size: 2.2rem; color: var(--green-800); line-height: 1; }
.kpi__lbl { font-size: 0.88rem; color: var(--ink-soft); margin-top: 6px; }
.chart-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.chart-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.chart-card h3 { font-family: var(--serif); color: var(--green-900); font-size: 1.25rem; margin-bottom: 4px; }
.chart-card .sub { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: 22px; }
.barchart { display: flex; align-items: flex-end; gap: 14px; height: 220px; padding-top: 10px; }
.barchart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.barchart .bar i { width: 100%; max-width: 48px; border-radius: 7px 7px 0 0; background: linear-gradient(var(--green-600), var(--green-800)); position: relative; transition: height 1s cubic-bezier(.2,.7,.3,1); }
.barchart .bar i::after { content: attr(data-v); position: absolute; top: -22px; left: 0; right: 0; text-align: center; font-weight: 600; font-size: 0.82rem; color: var(--green-800); }
.barchart .bar small { font-size: 0.8rem; color: var(--ink-mute); }
.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.donut { width: 160px; height: 160px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.donut::after { content: ""; width: 96px; height: 96px; background: var(--white); border-radius: 50%; grid-area: 1/1; }
.donut span { grid-area: 1/1; z-index: 1; text-align: center; }
.donut span b { font-family: var(--serif); font-size: 1.6rem; color: var(--green-800); display: block; }
.donut span small { font-size: 0.72rem; color: var(--ink-mute); }
.legend { display: flex; flex-direction: column; gap: 10px; }
.legend div { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; }

@media (max-width: 1000px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar .widget { flex: 1; min-width: 240px; }
  .faculty-grid, .album-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; }
  .faculty-grid, .album-grid, .video-grid { grid-template-columns: 1fr; }
  .sidebar .widget { min-width: 100%; }
}

/* ---------- Notice popup modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal__scrim { position: absolute; inset: 0; background: oklch(0.18 0.03 150 / 0.62); backdrop-filter: blur(3px); }
.modal__card { position: relative; background: var(--cream); border-radius: var(--radius-lg); max-width: 540px; width: 100%; overflow: hidden; box-shadow: var(--shadow-lg); border-top: 5px solid var(--gold-500); animation: pop .42s cubic-bezier(.2,.8,.3,1); max-height: 92vh; overflow-y: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }
.modal__media .ph { aspect-ratio: 16/7; }
.modal__body { padding: 26px 30px 30px; }
.modal__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--crimson); background: var(--crimson-soft); padding: 6px 13px; border-radius: 999px; }
.modal__title { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; color: var(--green-900); margin: 14px 0 6px; line-height: 1.2; }
.modal__date { font-size: 0.85rem; color: var(--ink-mute); }
.modal__text { margin-top: 14px; color: var(--ink-soft); font-size: 0.98rem; }
.modal__actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: oklch(1 0 0 / 0.92); color: var(--green-900); display: grid; place-items: center; box-shadow: var(--shadow-sm); z-index: 2; }
.modal__close:hover { background: #fff; transform: rotate(90deg); transition: transform .25s; }
.modal__close svg { width: 20px; height: 20px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.pagination button { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--white); font-family: inherit; font-weight: 600; font-size: 0.98rem; color: var(--ink-soft); transition: all .15s; }
.pagination button:hover:not(:disabled) { border-color: var(--green-600); color: var(--green-800); }
.pagination button.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.pagination button:disabled { opacity: 0.4; cursor: default; }

/* ---------- Staff / message profile ---------- */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 44px); align-items: start; }
.profile__photo { position: sticky; top: 96px; }
.profile__photo .ph { aspect-ratio: 3/4; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.profile__quick { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 18px; }
.profile__quick li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; list-style: none; }
.profile__quick li:last-child { border-bottom: none; }
.profile__quick .k { color: var(--ink-mute); }
.profile__quick .v { color: var(--green-900); font-weight: 600; text-align: right; }
.profile__role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-600); }
.profile__name { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--green-900); margin-top: 6px; }
.message-full { position: relative; }
.message-full .bigquote { font-family: var(--serif); font-size: 4rem; color: var(--green-100); line-height: 0.5; }
.sig { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.sig .name { font-family: var(--serif); font-size: 1.2rem; color: var(--green-900); font-weight: 600; }
.sig .role { font-size: 0.88rem; color: var(--ink-mute); }

/* facility detail hero stat row */
.fd-feats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 22px; }
.fd-feat { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius); padding: 16px; text-align: center; }
.fd-feat b { font-family: var(--serif); font-size: 1.4rem; color: var(--green-800); display: block; }
.fd-feat span { font-size: 0.82rem; color: var(--ink-soft); }

/* footer credit lines */
.footer__assoc { border-top: 1px solid oklch(1 0 0 / 0.1); padding: 18px 0 4px; text-align: center; font-size: 0.86rem; color: oklch(0.82 0.02 150); }
.footer__assoc strong { color: #fff; font-weight: 600; }
.footer .footer__bar { border-top: none; }
.footer__crafted a { color: var(--gold-400); }
.footer__crafted a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .profile { grid-template-columns: 1fr; }
  .profile__photo { position: static; max-width: 300px; }
  .fd-feats { grid-template-columns: 1fr; }
  .modal__title { font-size: 1.4rem; }
}

/* small stat cards */
.stats--cards { gap: 12px; }
.stats--cards .stat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 13px 10px; box-shadow: var(--shadow-sm); }
.stats--cards .stat__num { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.stats--cards .stat__lbl { font-size: 0.74rem; margin-top: 4px; }

/* institutional details (reg) cards */
.reg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reg-card { background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.14); border-radius: var(--radius-lg); padding: 26px 16px; text-align: center; transition: background .2s, transform .2s; }
.reg-card:hover { background: oklch(1 0 0 / 0.1); transform: translateY(-4px); }
.reg-card__ic { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; background: oklch(1 0 0 / 0.08); display: grid; place-items: center; }
.reg-card__ic svg { width: 28px; height: 28px; color: var(--gold-400); }
.reg-card .k { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.86 0.02 150); font-weight: 600; }
.reg-card .v { display: block; font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-top: 6px; font-weight: 600; letter-spacing: 0.02em; }
@media (max-width: 760px) { .reg-cards { grid-template-columns: 1fr; } }

/* ---------- Gallery lightbox slider ---------- */
.lightbox, .videomodal { position: fixed; inset: 0; z-index: 210; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open, .videomodal.open { display: flex; }
.lightbox__scrim, .videomodal__scrim { position: absolute; inset: 0; background: oklch(0.15 0.02 150 / 0.82); backdrop-filter: blur(4px); }
.lightbox__inner { position: relative; z-index: 1; width: min(960px, 94vw); }
.lightbox__stage { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--green-100); }
.lightbox__img { position: absolute; inset: 0; }
.lightbox__stage .ph { width: 100%; height: 100%; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; color: var(--green-100); flex-wrap: wrap; }
.lightbox__cap { font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.lightbox__count { font-size: 0.85rem; color: oklch(0.86 0.02 150); font-variant-numeric: tabular-nums; }
.lightbox__dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.lightbox__dots button { width: 9px; height: 9px; border-radius: 50%; background: oklch(1 0 0 / 0.4); transition: all .2s; }
.lightbox__dots button.active { background: var(--gold-400); width: 26px; border-radius: 999px; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: oklch(0.2 0.03 150 / 0.55); border: 1px solid oklch(1 0 0 / 0.25); color: #fff; display: grid; place-items: center; z-index: 2; transition: background .2s; }
.lb-arrow:hover { background: var(--green-700); }
.lb-arrow svg { width: 24px; height: 24px; }
.lb-arrow.prev { left: 14px; }
.lb-arrow.next { right: 14px; }
.lb-tools { display: flex; gap: 10px; align-items: center; }
.lb-tools button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; border: 1px solid oklch(1 0 0 / 0.3); color: #fff; font-weight: 600; font-size: 0.85rem; transition: background .2s; }
.lb-tools button:hover { background: oklch(1 0 0 / 0.12); }
.lb-tools button.on { background: var(--gold-500); color: var(--green-950); border-color: var(--gold-500); }
.lb-tools svg { width: 16px; height: 16px; }
.lb-close, .vm-close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; background: oklch(1 0 0 / 0.12); border: 1px solid oklch(1 0 0 / 0.25); color: #fff; display: grid; place-items: center; z-index: 3; }
.lb-close:hover, .vm-close:hover { background: var(--crimson); transform: rotate(90deg); transition: transform .25s, background .2s; }
.lb-close svg, .vm-close svg { width: 22px; height: 22px; }
.lb-play-icon { display: inline-grid; }

/* video modal */
.videomodal__inner { position: relative; z-index: 1; width: min(900px, 94vw); }
.videomodal__stage { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.videomodal__stage .ph { width: 100%; height: 100%; }
.videomodal__playbtn { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.videomodal__playbtn span { width: 76px; height: 76px; border-radius: 50%; background: oklch(0.2 0.04 150 / 0.55); border: 2px solid #fff; display: grid; place-items: center; }
.videomodal__playbtn svg { width: 30px; height: 30px; color: #fff; margin-left: 4px; }
.videomodal__title { color: #fff; font-family: var(--serif); font-size: 1.3rem; margin-top: 16px; text-align: center; }

@media (max-width: 560px) {
  .lightbox__bar { justify-content: center; text-align: center; }
  .lb-arrow { width: 40px; height: 40px; }
}

/* ---------- SweetAlert2 brand theming ---------- */
.swal2-popup { font-family: var(--sans) !important; border-radius: var(--radius-lg) !important; padding: 30px 26px 26px !important; }
.swal2-title { font-family: var(--serif) !important; font-weight: 600 !important; color: var(--green-900) !important; font-size: 1.6rem !important; }
.swal2-html-container { color: var(--ink-soft) !important; font-size: 1rem !important; }
.swal2-actions { gap: 10px; }
.swal2-confirm.swal2-styled { background: var(--green-700) !important; border-radius: 999px !important; padding: 12px 28px !important; font-weight: 600 !important; box-shadow: none !important; white-space: nowrap !important; }
.swal2-confirm.swal2-styled:focus { box-shadow: 0 0 0 3px var(--green-100) !important; }
.swal2-cancel.swal2-styled { background: var(--paper-2) !important; color: var(--ink-soft) !important; border-radius: 999px !important; padding: 12px 24px !important; font-weight: 600 !important; }
.swal2-icon.swal2-success { border-color: var(--green-200) !important; color: var(--green-600) !important; }
.swal2-icon.swal2-success [class^='swal2-success-line'] { background-color: var(--green-600) !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: var(--green-200) !important; }
.swal2-timer-progress-bar { background: var(--gold-500) !important; }

/* ---------- Affiliations auto-slider ---------- */
.affil-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.affil-track { display: flex; gap: clamp(28px, 5vw, 64px); width: max-content; animation: affscroll 28s linear infinite; align-items: center; }
.affil-marquee:hover .affil-track { animation-play-state: paused; }
.affil-track a { flex: none; display: block; transition: transform .2s, opacity .2s; opacity: 0.82; }
.affil-track a:hover { transform: translateY(-3px); opacity: 1; }
.affil-track .ph { width: 150px; height: 84px; border-radius: 12px; }
@keyframes affscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .affil-track { animation: none; } }

/* ---------- Mobile accordion drawer (nested) ---------- */
.macc { display: flex; flex-direction: column; }
.macc__link, .macc__head { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; padding: 14px 6px; font-weight: 600; font-size: 1.05rem; color: var(--green-900); border-bottom: 1px solid var(--line); font-family: inherit; background: none; }
.macc__link:hover, .macc__head:hover { color: var(--green-700); }
.macc__chev { width: 18px; height: 18px; flex: none; transition: transform .28s ease; color: var(--gold-600); }
.macc__item.open > .macc__head .macc__chev { transform: rotate(180deg); }
.macc__panel { display: none; border-bottom: 1px solid var(--line); }
.macc__item.open > .macc__panel { display: block; }
.macc__item.open > .macc__head { color: var(--green-700); }
.macc__inner { min-height: 0; }
.macc__panel a { display: block; padding: 11px 6px 11px 22px; font-size: 0.98rem; font-weight: 500; color: var(--ink-soft); border-bottom: 1px dashed var(--line); }
.macc__panel a:last-child { border-bottom: none; }
.macc__panel a:hover { color: var(--green-700); }
/* nested (level 3) */
.macc__item--sub > .macc__head { padding-left: 22px; font-size: 0.98rem; font-weight: 600; color: var(--green-800); border-bottom: 1px dashed var(--line); }
.macc__item--sub > .macc__head .macc__chev { width: 16px; height: 16px; }
.macc__item--sub .macc__panel { border-bottom: none; }
.macc__item--sub .macc__panel a { padding-left: 38px; font-size: 0.92rem; position: relative; }
.macc__item--sub .macc__panel a::before { content: ""; position: absolute; left: 24px; top: 50%; width: 6px; height: 6px; transform: translateY(-50%) rotate(45deg); background: var(--gold-500); }

/* ---------- Academic calendar ---------- */
.cal-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.cal-month { margin-bottom: 30px; }
.cal-month__title { font-family: var(--serif); font-size: 1.3rem; color: var(--green-900); padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid var(--green-100); display: inline-block; }
.cal-list { display: flex; flex-direction: column; }
.cal-evt { display: flex; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.cal-evt__date { flex: none; width: 60px; text-align: center; border-radius: 10px; background: var(--green-50); padding: 8px 4px; border: 1px solid var(--green-100); }
.cal-evt__date .d { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--green-800); line-height: 1; display: block; }
.cal-evt__date .m { font-size: 0.68rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 3px; display: block; }
.cal-evt__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 1; min-width: 0; flex-wrap: wrap; }
.cal-evt__body h4 { font-weight: 600; font-size: 1.02rem; color: var(--green-900); }
.cal-legend { display: flex; flex-direction: column; gap: 10px; }
.cal-empty { text-align: center; color: var(--ink-mute); padding: 24px 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__move { animation: none; }
  .hero__slide { transition: none; }
  .modal__card { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: flex; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .team { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .split, .notices-wrap, .msg-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .about__media { max-width: 440px; margin-inline: auto; }
  .about__media .ph.small { right: 0; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .topbar__contact .hide-sm { display: none; }
  .topbar .wrap { flex-direction: column; align-items: stretch; gap: 6px; padding-block: 7px; min-height: 0; }
  .topbar__contact { justify-content: center; }
  .topbar__right { justify-content: center; }
  .clock-chip { order: -1; }
  .msg { flex-direction: column; gap: 16px; }
  .msg__photo, .msg__photo .ph { width: 88px; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; padding-block: 48px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .grid-3, .grid-4, .team { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .topbar__contact { gap: 12px; }
}

/* ── Rich bilingual content: neutralise markup pasted into the editor so it
   can never shrink, fix-width, or pre-wrap the column it renders in. ── */
.split > * { min-width: 0; }
.rich-content { width: 100%; min-width: 0; }
.rich-content, .rich-content * { white-space: normal; }
.rich-content * { max-width: 100% !important; }
.rich-content [style*="width"] { width: auto !important; }
.rich-content p { margin-top: 16px; color: var(--ink-soft); text-align: justify; }
.rich-content ul, .rich-content ol { margin-top: 14px; padding-left: 22px; color: var(--ink-soft); }
.rich-content li { margin-top: 6px; }
.rich-content img { height: auto; border-radius: var(--radius-md); }
.rich-content h1, .rich-content h2, .rich-content h3 { font-family: var(--serif); color: var(--green-900); margin-top: 28px; line-height: 1.3; }

/* ── Pasted-content defenses: Word/Docs tables carry width attributes that
   shrink text into a narrow column. Neutralise layout widths inside rich
   content (real images keep their CSS sizing). ───────────────────────── */
.rich-content table { width: 100% !important; max-width: 100% !important; border-collapse: collapse; }
.rich-content td, .rich-content th { width: auto !important; }
.rich-content [width] { width: auto !important; }
.rich-content col, .rich-content colgroup { width: auto !important; }
.rich-content > :first-child { margin-top: 0; }

/* ── Compact list tools (search + category filter above paginated lists) ── */
.list-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 26px; }
.lt-search { position: relative; flex: 1 1 240px; max-width: 380px; }
.lt-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-mute); pointer-events: none; }
.lt-search input { width: 100%; padding: 11px 16px 11px 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: inherit; font-size: 0.92rem; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.lt-search input:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px oklch(0.45 0.08 152 / 0.12); }
.lt-cat { padding: 11px 38px 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: inherit; font-size: 0.92rem; color: var(--ink); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7567' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 15px; cursor: pointer; }
.lt-cat:focus { outline: none; border-color: var(--green-700); }

/* ── Announcement popups (sequential queue + countdown) ──────────────── */
.popup { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 20px; }
.popup.open { display: flex; }
.popup__scrim { position: absolute; inset: 0; background: oklch(0.15 0.03 150 / 0.62); backdrop-filter: blur(2px); }
.popup__box { position: relative; background: var(--white); border-radius: 18px; max-width: 560px; width: 100%; max-height: 86vh; overflow: auto; box-shadow: 0 24px 70px oklch(0.1 0.04 150 / 0.45); animation: popin .25s ease; }
@keyframes popin { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.popup__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: none; background: oklch(0 0 0 / 0.45); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.popup__close:hover { background: oklch(0 0 0 / 0.65); }
.popup__close svg { width: 18px; height: 18px; }
.popup__stage a { display: block; color: inherit; text-decoration: none; }
.popup__stage img { width: 100%; display: block; }
.popup__stage h3 { font-family: var(--serif); color: var(--green-900); font-size: 1.3rem; padding: 16px 20px 0; line-height: 1.35; }
.popup__stage p { color: var(--ink-soft); padding: 8px 20px 0; line-height: 1.6; }
.popup__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px 16px; color: var(--ink-mute); font-size: 0.85rem; }
.popup__count { font-weight: 600; color: var(--green-800); }
.popup__timer b { color: var(--green-800); font-family: var(--serif); font-size: 1.05rem; }

/* ── About page: Our story — editorial layout with a sticky photo collage ── */
.story__grid { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: clamp(30px, 5.5vw, 70px); align-items: start; }
.story__media { position: sticky; top: 108px; }
.story__media::before { content: ""; position: absolute; top: -14px; left: -14px; width: 110px; height: 110px; border-top: 3px solid var(--gold-500); border-left: 3px solid var(--gold-500); border-top-left-radius: var(--radius-lg); pointer-events: none; }
.story__media::after { content: ""; position: absolute; bottom: -14px; right: -14px; width: 110px; height: 110px; border-bottom: 3px solid var(--gold-500); border-right: 3px solid var(--gold-500); border-bottom-right-radius: var(--radius-lg); pointer-events: none; }
.story__photo { margin: 0; border-radius: var(--radius-lg); overflow: clip; box-shadow: var(--shadow-md); background: var(--white); }
.story__photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.story__photo .ph { height: 100%; border-radius: 0; }
.story__photo--main { aspect-ratio: 4 / 4.8; }
.story__photo--small { aspect-ratio: 4 / 3; width: 62%; margin: -58px 16px 0 auto; border: 6px solid var(--paper); position: relative; z-index: 2; }
.story__body .section-title { margin-top: 12px; }
.story__lead { margin-top: 20px; }
.story__lead .rich-content p { font-size: 1.08rem; line-height: 1.9; }
.story__lead .rich-content > p:first-child { font-size: 1.16rem; font-weight: 500; color: var(--ink); }
.story__more { margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--line); }
.story__more .rich-content p { line-height: 1.85; }
.story__more .rich-content > p:first-child { margin-top: 0; }
@media (max-width: 920px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__media { position: static; max-width: 520px; }
  .story__photo--main { aspect-ratio: 4 / 3.4; }
}

/* Guard: no element may push the page wider than the viewport on touch
   devices — kills the whole class of sideways-scroll layout bugs. */
body { overflow-x: clip; }

/* ── Committee: compact member cards ── */
.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.cm-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 12px 16px; text-align: center; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.cm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-400); }
.cm-card__ph { display: block; width: 92px; height: 92px; margin: 0 auto 12px; border-radius: 50%; overflow: clip; border: 2px solid var(--line); background: var(--paper); transition: border-color .18s ease; }
.cm-card:hover .cm-card__ph { border-color: var(--gold-400); }
.cm-card__ph img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: inherit; display: block; }
.cm-card__init { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--serif); font-size: 1.7rem; color: var(--green-800); background: var(--green-50); }
.cm-card h4 { font-family: var(--serif); font-size: .98rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cm-card__role { margin-top: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); }
.cm-card__sub { margin-top: 5px; font-size: .8rem; color: var(--ink-mute); }
.cm-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 9px; margin-left: 10px; border-radius: 999px; background: var(--green-50); color: var(--green-800); font-size: .8rem; font-weight: 700; vertical-align: middle; letter-spacing: 0; }
@media (max-width: 560px) { .cm-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 12px; } .cm-card__ph { width: 80px; height: 80px; } }

/* ── Committee: centered section heads + year sub-groups ── */
.section-head--c { margin-inline: auto; text-align: center; }
.section-head--c .eyebrow { justify-content: center; }
.section-title--md { font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
.cm-year { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 30px 0 18px; font-family: var(--serif); font-weight: 600; font-size: 1.04rem; color: var(--green-800); }
.cm-year::before, .cm-year::after { content: ""; height: 1px; width: min(90px, 16vw); background: var(--line); flex: none; }
.cm-grid + .cm-year { margin-top: 36px; }

/* ── Facilities page: compact card grid (3 per row) ── */
.fc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fc-card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: clip; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.fc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-200); }
.fc-card__media { position: relative; display: block; aspect-ratio: 16/10; background: var(--paper); overflow: clip; }
.fc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.fc-card:hover .fc-card__media img { transform: scale(1.05); }
.fc-card__phbg { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--green-50), var(--paper)); color: var(--green-200); }
.fc-card__phbg svg { width: 44px; height: 44px; }
.fc-card__chip { position: relative; z-index: 2; margin: -21px 0 0 14px; box-shadow: 0 0 0 4px var(--white); width: 42px; height: 42px; border-radius: 11px; }
.fc-card__chip svg { width: 21px; height: 21px; }
.fc-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 15px 15px; }
.fc-card__media + .fc-card__body { padding-top: 14px; }
.fc-card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .7rem; margin-bottom: 7px; }
.fc-card__meta .cat { color: var(--gold-600); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.fc-card__meta .dt { color: var(--ink-mute); font-weight: 500; }
.fc-card__authors { display: block; margin-top: 4px; font-size: .8rem; font-weight: 600; color: var(--gold-600); }
.fc-card__body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--green-900); line-height: 1.3; }
.fc-card__body p { margin-top: 6px; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fc-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; font-weight: 600; font-size: .84rem; color: var(--green-700); }
.fc-card__more svg { width: 15px; height: 15px; transition: transform .2s ease; }
.fc-card:hover .fc-card__more { color: var(--green-800); }
.fc-card:hover .fc-card__more svg { transform: translateX(4px); }
@media (max-width: 1024px) { .fc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fc-grid { grid-template-columns: 1fr; } }

/* footer: school / EMIS code badges */
.footer__codes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footer__code { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid oklch(1 0 0 / 0.14); border-radius: 999px; font-size: 0.8rem; color: oklch(0.88 0.02 150); }
.footer__code b { color: var(--gold-400); font-weight: 600; letter-spacing: 0.02em; }

/* footer: association link */
.footer__assoc a { color: inherit; text-decoration: none; }
.footer__assoc a:hover strong { color: var(--gold-400); }

/* header brand: icon + wide logo mode */
.brand__logoimg { display: flex; align-items: center; height: 50px; min-width: 0; }
.brand__logoimg img { height: 100%; width: auto; max-width: min(280px, 46vw); object-fit: contain; object-position: left center; }

/* former staff: search pill */
.fs-search { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid oklch(0 0 0 / 0.08); border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: 0 10px 30px oklch(0 0 0 / 0.05); margin-bottom: 38px; }
.fs-search svg { width: 18px; height: 18px; flex: none; color: var(--ink-mute); }
.fs-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); }
.fs-search .btn { padding: 11px 24px; flex: none; }
