/* =========================================================================
   Radha Krishna Law College — public site
   Academic, restrained, fast. No framework; tokens drive everything.
   ========================================================================= */

:root {
  --brand: #7a1f2b;
  --brand-600: #651822;
  --brand-50: #f8eef0;
  --navy: #14213d;
  --navy-700: #1d2d52;
  --gold: #b8892d;
  --gold-50: #f7f0e1;
  --paper: #fbf9f6;
  --surface: #ffffff;
  --ink: #1b1e25;
  --ink-2: #3a3f4b;
  --muted: #5d6472;
  --line: #e7e2da;
  --line-2: #f0ece6;
  --ok: #1f7a4d;
  --warn: #a15c00;
  --danger: #b42318;
  --urgent-bg: #fdecea;
  --focus: #2563eb;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, .06);
  --shadow: 0 1px 2px rgba(20, 33, 61, .05), 0 6px 20px -8px rgba(20, 33, 61, .15);
  --shadow-lg: 0 24px 48px -20px rgba(20, 33, 61, .35);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: clip (not hidden) so position: sticky on the header keeps working. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0; font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--paper);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tint { background: #f5f1ea; }
.section--navy { background: var(--navy); color: #dfe4ef; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 60ch; margin: 0; }
.section--navy .section-head p { color: #b7c0d4; }
.eyebrow { display: inline-block; font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }
.muted { color: var(--muted); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--gold-50); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-50); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .875rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip--cat { background: color-mix(in srgb, var(--c, #4b5563) 12%, white); color: color-mix(in srgb, var(--c, #4b5563) 85%, black); }
.badge-new { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 4px; background: var(--danger); color: #fff; font: 700 .65rem/1.3 var(--sans); letter-spacing: .08em; animation: pulse 2s ease-in-out infinite; }
.badge-urgent { background: var(--danger); color: #fff; }
.badge-important { background: var(--gold-50); color: #7a5413; }
.badge-pinned { background: var(--navy); color: #fff; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ------------------------------------------------------------ Utility bar */
.utility { background: var(--navy); color: #c9d1e3; font-size: .8125rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.utility a { color: #e6eaf3; text-decoration: none; }
.utility a:hover { color: #fff; text-decoration: underline; }
.utility-links { display: flex; gap: 18px; flex-wrap: wrap; }
.utility-contact { display: flex; gap: 18px; }
.utility-contact span { display: inline-flex; align-items: center; gap: 6px; }

/* ------------------------------------------------------------ Alert bar */
.alert-bar { font-size: .9rem; }
.alert-bar .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.alert-bar--info { background: #eaf1fb; color: #173a6b; }
.alert-bar--important { background: var(--gold-50); color: #5c3f0c; }
.alert-bar--urgent { background: var(--brand); color: #fff; }
.alert-bar--urgent a { color: #fff; }
.alert-bar strong { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.alert-bar a { font-weight: 600; }

/* ------------------------------------------------------------ Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font: 600 1.14rem/1.15 var(--serif); color: var(--navy); white-space: nowrap; }
/* Desktop: two-row university header — brand + actions, then the full menu bar. */
@media (min-width: 1081px) {
  .header-row { flex-wrap: wrap; row-gap: 0; }
  .header-row .brand { padding-block: 12px; }
  .header-row .brand-mark { width: 52px; height: 52px; }
  .header-row .brand-name { font-size: 1.35rem; }
  .header-row .header-actions { margin-left: auto; }
  .header-row .nav { order: 3; flex-basis: 100%; margin: 0; border-top: 1px solid var(--line-2); }
  .header-row .nav-list { justify-content: space-between; }
  .header-row .nav-link { padding: 12px 10px; border-radius: 0; }
  .header-row .nav-link:hover, .header-row .nav-link[aria-current="page"] { background: none; box-shadow: inset 0 -2px 0 var(--brand); }
  :root { --header-h: 126px; }
  .site-header.is-scrolled .brand { padding-block: 6px; }
}
.brand-sub { font-size: .72rem; line-height: 1.35; color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name + .brand-sub { margin-top: 4px; padding-top: 4px; border-top: 2px solid var(--brand); }
.brand-sub--lead { font-weight: 700; text-transform: uppercase; color: var(--ink-2); font-size: .68rem; letter-spacing: .03em; }
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 11px; border-radius: 8px; font-weight: 500; font-size: .92rem; color: var(--ink-2); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav-link:hover, .nav-item.is-open > .nav-link, .nav-link[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.nav-link svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-item.is-open > .nav-link svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s, transform .16s, visibility .16s; }
.nav-item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--paper); color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.icon-btn:hover { background: var(--paper); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }

/* Search overlay */
.search-panel { position: fixed; inset: 0; z-index: 80; background: rgba(20,33,61,.55); display: grid; place-items: start center; padding: max(10vh, 60px) var(--gutter) 24px; }
.search-box { width: min(720px, 100%); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-box form { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--line); }
.search-box input { flex: 1; border: 0; outline: 0; min-height: 52px; font-size: 1.1rem; background: transparent; }
.search-results { max-height: 60vh; overflow: auto; padding: 8px; }
.search-group { padding: 6px 8px 10px; }
.search-group h4 { font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 8px 6px; }
.search-hit { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.search-hit span { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.search-hit:hover, .search-hit.is-active { background: var(--paper); color: var(--brand); }
.search-empty { padding: 20px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------ Hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-slides { position: relative; min-height: clamp(460px, 70vh, 640px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-media img { transform: scale(1); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,22,42,.9) 0%, rgba(14,22,42,.7) 45%, rgba(14,22,42,.2) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-block: 64px 88px; max-width: 720px; }
.hero-content h1, .hero-content h2 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 14px; }
.hero-content .hero-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #dde3ef; margin-bottom: 28px; max-width: 56ch; }
.hero-tagline { font: 600 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-content > * { opacity: 0; transform: translateY(14px); }
.hero-slide.is-active .hero-content > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-slide.is-active .hero-content > *:nth-child(2) { animation-delay: .08s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { animation-delay: .16s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-controls { position: absolute; z-index: 3; bottom: 24px; left: 0; right: 0; }
.hero-controls .wrap { display: flex; align-items: center; gap: 12px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 32px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer; position: relative; }
.hero-dot::before { content: ""; position: absolute; inset: -10px 0; }
.hero-dot[aria-current="true"] { background: var(--gold); }
.hero-pause { width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero-pause svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------ Notice board */
/* Sits fully below the banner (no overlap), so the slide dots/pause stay visible. */
.board-section { position: relative; padding-top: 40px; }
.notice-row { cursor: pointer; }
.board-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.board { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fcfaf7); }
.board-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.3rem; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(31,122,77,.5); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(31,122,77,.45); } 70% { box-shadow: 0 0 0 8px rgba(31,122,77,0); } 100% { box-shadow: 0 0 0 0 rgba(31,122,77,0); } }
.board-controls { display: flex; gap: 6px; }
.board-controls button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.board-controls button:hover { background: var(--paper); }
.board-controls svg { width: 16px; height: 16px; }
.board-filters { display: flex; gap: 6px; padding: 12px 22px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.board-filters::-webkit-scrollbar { display: none; }
.board-filters button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.board-filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.board-viewport { position: relative; height: 440px; overflow: hidden; }
.board-viewport::before, .board-viewport::after { content: ""; position: absolute; left: 0; right: 0; height: 28px; z-index: 2; pointer-events: none; }
.board-viewport::before { top: 0; background: linear-gradient(#fff, rgba(255,255,255,0)); }
.board-viewport::after { bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff); }
.board-track { list-style: none; margin: 0; padding: 0; will-change: transform; }
.notice-row { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; transition: background .15s; }
.notice-row:hover, .notice-row:focus-visible { background: #fbf7f1; }
.notice-row.is-urgent { background: linear-gradient(90deg, var(--urgent-bg), #fff 60%); }
.notice-date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); height: 58px; line-height: 1; }
.notice-date b { font: 700 1.35rem/1 var(--serif); color: var(--navy); }
.notice-date small { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.notice-body { min-width: 0; }
.notice-title { display: block; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 6px; text-decoration: none; }
.notice-row:hover .notice-title { color: var(--brand); }
.notice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .78rem; color: var(--muted); }
.notice-meta .pdf { display: inline-flex; align-items: center; gap: 3px; color: var(--brand); font-weight: 600; }
.notice-meta .pdf svg { width: 13px; height: 13px; }
.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.board-empty { padding: 40px 22px; text-align: center; color: var(--muted); }
.board.is-static .board-viewport { height: auto; max-height: 520px; overflow-y: auto; }
.board.is-static .board-viewport::before, .board.is-static .board-viewport::after { display: none; }

/* Quick links */
.quick { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; }
.quick h2 { font-size: 1.3rem; margin-bottom: 14px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 14px 8px; min-height: 96px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); text-decoration: none; font-size: .8rem; font-weight: 600; line-height: 1.25; transition: border-color .15s, background .15s, transform .15s; }
.quick-card svg { width: 26px; height: 26px; color: var(--brand); }
.quick-card:hover { border-color: var(--brand); background: #fff; color: var(--brand); transform: translateY(-2px); }

/* ------------------------------------------------------------ Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { aspect-ratio: 16 / 10; background: var(--line-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.15rem; }
.card-body h3 a { color: var(--navy); text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-body p { color: var(--muted); margin: 0; font-size: .95rem; }
.card-meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 6px; }
.news-feature { grid-row: span 2; }
.news-feature .card-media { aspect-ratio: 16 / 11; }
.news-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.news-grid .card:first-child { grid-row: span 2; }
.news-grid .card:first-child h3 { font-size: 1.5rem; }
.placeholder-media { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--brand)); color: rgba(255,255,255,.8); }
.placeholder-media svg { width: 40px; height: 40px; }

/* Events */
.events-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.event-card { position: relative; display: flex; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: box-shadow .2s, transform .2s; }
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.event-date { flex: none; width: 64px; text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); align-self: start; }
.event-date .m { display: block; background: var(--brand); color: #fff; font: 700 .7rem/1 var(--sans); letter-spacing: .12em; padding: 6px 0; text-transform: uppercase; }
.event-date .d { display: block; font: 700 1.7rem/1 var(--serif); color: var(--navy); padding: 8px 0; }
.event-card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.event-card h3 a { color: var(--navy); text-decoration: none; }
.event-card h3 a:hover { color: var(--brand); }
.event-info { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.event-info span { display: inline-flex; gap: 6px; align-items: center; }
.event-info svg { width: 14px; height: 14px; }
.event-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--navy); padding: 28px 20px; text-align: center; }
.stat-value { font: 600 clamp(2rem, 4vw, 2.8rem)/1 var(--serif); color: #fff; }
.stat-label { margin-top: 8px; color: #b7c0d4; font-size: .9rem; }
.stat svg { width: 26px; height: 26px; color: var(--gold); margin: 0 auto 12px; }

/* Programmes */
.program-card { position: relative; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, box-shadow .2s; }
.program-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.program-card h3 { margin: 0; font-size: 1.2rem; }
.program-card h3 a { color: var(--navy); text-decoration: none; }
.program-card h3 a::after { content: ""; position: absolute; inset: 0; }
.program-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.program-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.program-meta span { display: inline-flex; gap: 5px; align-items: center; }
.program-meta svg { width: 14px; height: 14px; color: var(--brand); }

/* Research / highlight cards */
.feature-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); color: #fff; min-height: 320px; display: flex; align-items: flex-end; }
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .6s, opacity .3s; }
.feature-card:hover img { transform: scale(1.05); opacity: .45; }
.feature-card .inner { position: relative; padding: 24px; background: linear-gradient(0deg, rgba(14,22,42,.92), rgba(14,22,42,0)); width: 100%; }
.feature-card h3 { color: #fff; margin-bottom: 6px; }
.feature-card h3 a { color: #fff; text-decoration: none; }
.feature-card p { color: #d4dae6; margin: 0; font-size: .92rem; }
.feature-card .tag { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Gallery (homepage mosaic + album grid) */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.gallery-filters a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 500; }
.gallery-filters a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.mosaic .tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic .tile:nth-child(6) { grid-column: span 2; }
.tile { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--line-2); box-shadow: var(--shadow-sm); cursor: zoom-in; border: 0; padding: 0; width: 100%; height: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile .tile-label { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.92); color: var(--navy); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.tile .tile-caption { position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; color: #fff; font-size: .85rem; text-align: left; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.tile:hover .tile-caption, .tile:focus-visible .tile-caption { opacity: 1; transform: none; }
.album-card { position: relative; display: block; text-decoration: none; color: inherit; }
.album-cover { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--line-2); box-shadow: var(--shadow-sm); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.album-card:hover .album-cover img { transform: scale(1.05); }
.album-count { position: absolute; right: 10px; bottom: 10px; background: rgba(14,22,42,.82); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center; }
.album-count svg { width: 13px; height: 13px; }
.album-card h3 { margin: 12px 0 2px; font-size: 1.1rem; }
.album-card:hover h3 { color: var(--brand); }
.photo-grid { columns: 3 280px; column-gap: 14px; }
.photo-grid .tile { margin-bottom: 14px; break-inside: avoid; height: auto; }
.photo-grid .tile img { height: auto; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,12,22,.95); display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: .9rem; color: #c7cede; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-btn { width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.16); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-caption { padding: 14px 20px 22px; text-align: center; }
.lb-caption strong { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.lb-caption span { color: #aab3c6; font-size: .85rem; }

/* Placements */
.placement-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.kpi b { display: block; font: 600 1.9rem/1.1 var(--serif); color: var(--brand); }
.kpi span { font-size: .85rem; color: var(--muted); }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.logo-tile { display: grid; place-items: center; height: 76px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); font-weight: 600; font-size: .85rem; color: var(--ink-2); text-align: center; }
.logo-tile img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logo-tile:hover img { filter: none; opacity: 1; }

/* Testimonials / student life */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.quote-card blockquote { margin: 0; font: italic 400 1.08rem/1.6 var(--serif); color: var(--ink-2); }
.quote-card blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--gold); margin-bottom: 10px; font-style: normal; }
.person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-weight: 700; flex: none; }
.person b { display: block; color: var(--navy); }
.person span { font-size: .85rem; color: var(--muted); }
.list-card { display: flex; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; }
.list-card:hover { border-color: var(--brand); }
.list-card .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.list-card .ico svg { width: 22px; height: 22px; }
.list-card b { display: block; color: var(--navy); margin-bottom: 2px; }
.list-card span { color: var(--muted); font-size: .9rem; }

/* External updates */
.ext-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.ext-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.ext-item a.title { color: var(--navy); font-weight: 600; text-decoration: none; line-height: 1.4; }
.ext-item a.title:hover { color: var(--brand); text-decoration: underline; }
.source-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.source-tag a { color: var(--ink-2); font-weight: 600; }
.source-tag svg { width: 13px; height: 13px; }

.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.links-grid a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; font-weight: 500; }
.links-grid a:hover { background: rgba(255,255,255,.12); }
.links-grid svg { width: 16px; height: 16px; color: var(--gold); flex: none; }

/* ------------------------------------------------------------ Inner pages */
.page-hero { background: var(--navy); color: #dfe4ef; padding-block: 48px 44px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(184,137,45,.08); }
.page-hero h1 { color: #fff; margin: 0 0 10px; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.page-hero p { margin: 0; max-width: 70ch; color: #c2cadb; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; margin-bottom: 14px; color: #9aa6bf; list-style: none; padding: 0; }
.crumbs a { color: #cfd6e4; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #6b7894; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.panel h2, .panel h3 { font-size: 1.1rem; margin-bottom: 12px; }
.prose { font-size: 1.04rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose img { border-radius: var(--r); margin: 1.2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--paper); }
.prose blockquote { margin: 1.2em 0; padding: 4px 20px; border-left: 4px solid var(--gold); color: var(--ink-2); font-family: var(--serif); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose .callout { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid #0f766e; background: #ecf8f6; border-radius: 8px; color: var(--ink); }
.prose .callout-warn { border-left-color: var(--danger); background: var(--urgent-bg); }
.prose .callout > :last-child { margin-bottom: 0; }
.prose a { word-break: break-word; }

/* Core values — set as the articles of a charter */
.charter-section { background: var(--surface); border-block: 1px solid var(--line); }
.charter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.charter-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.charter-intro h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 18px; }
.charter-intro p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 42ch; margin: 0; }
.articles { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.article { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 20px; align-items: baseline; padding-block: 26px; border-top: 1px solid var(--line); }
.article:last-child { border-bottom: 1px solid var(--line); }
.article-no { font: 600 2.6rem/1 var(--serif); color: var(--gold); letter-spacing: .02em; font-variant-numeric: lining-nums; }
.article h3 { font-size: 1.45rem; margin: 0 0 6px; color: var(--navy); }
.article p { margin: 0; color: var(--ink-2); line-height: 1.65; max-width: 58ch; }

/* Campus facilities — a reference list, not a card grid */
.facilities { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.facilities-intro h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 18px; }
.facilities-intro p { color: #c3cbdb; font-size: 1.05rem; line-height: 1.7; max-width: 36ch; }
.facilities-link { display: inline-block; margin-top: 8px; color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.facilities-link:hover { color: var(--gold); }
.facility-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
.facility { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.facility-icon { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(184, 137, 45, .55); color: var(--gold); display: grid; place-items: center; }
.facility-icon svg { width: 20px; height: 20px; }
.facility h3 { font: 600 1rem/1.3 var(--sans); color: #fff; margin: 2px 0 4px; letter-spacing: 0; }
.facility p { margin: 0; font-size: .88rem; line-height: 1.5; color: #aeb8cc; }
@media (max-width: 1080px) {
  .charter, .facilities { grid-template-columns: 1fr; }
  .charter-intro { position: static; }
  .facility-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .article { grid-template-columns: 3.6rem minmax(0, 1fr); gap: 12px; padding-block: 20px; }
  .article-no { font-size: 1.9rem; }
  .article h3 { font-size: 1.25rem; }
  .facility-list { grid-template-columns: 1fr; }
}

/* Chairman's message */
.leader { margin-top: 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 16px); }
.leader-head { background: var(--navy); border-bottom: 6px solid var(--brand); padding: 16px 28px; }
.leader-head h2 { color: #fff; margin: 0; font-size: 1.5rem; }
.leader-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 32px 28px 8px; align-items: start; }
.leader-photo { margin: 0; }
.leader-photo img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow); }
.leader-photo figcaption { margin-top: 12px; text-align: center; line-height: 1.35; }
.leader-photo figcaption strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 1.08rem; }
.leader-photo figcaption span { font-size: .85rem; color: var(--muted); }
.leader-text { font-size: 1.04rem; line-height: 1.8; color: var(--ink-2); text-align: justify; hyphens: auto; }
.leader-text p:first-child::first-letter { float: left; font: 700 3.2rem/0.9 var(--serif); color: var(--brand); padding: 6px 8px 0 0; }
.leader-quote { margin: 8px 28px 0; padding: 20px 24px; text-align: center; font: italic 500 1.25rem/1.5 var(--serif); color: var(--gold); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.leader-quote cite { display: block; margin-top: 6px; font: normal .85rem var(--sans); color: var(--muted); }
.leader-sign { padding: 20px 28px 28px; margin: 0; line-height: 1.5; }
.leader-sign strong { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); letter-spacing: .02em; }
.leader-sign span { font-size: .88rem; color: var(--muted); }
@media (max-width: 720px) {
  .leader-body { grid-template-columns: 1fr; padding: 24px 20px 4px; }
  .leader-photo { max-width: 220px; margin: 0 auto; }
  .leader-text { text-align: left; }
  .leader-quote { margin: 8px 20px 0; font-size: 1.1rem; }
  .leader-sign { padding: 18px 20px 24px; }
}

/* Filters / forms */
.filters { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)) auto; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.input, .select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.input:focus, .select:focus { border-color: var(--brand); outline: 2px solid color-mix(in srgb, var(--brand) 25%, transparent); outline-offset: 0; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cat-pills a { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .85rem; }
.cat-pills a[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs a { white-space: nowrap; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--brand); border-color: var(--brand); }

.notice-list { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.notice-list .notice-row:last-child { border-bottom: 0; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }

.doc-card { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); flex-wrap: wrap; }
.doc-card .ico { width: 52px; height: 60px; border-radius: 6px; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 .75rem/1 var(--sans); flex: none; }
.doc-card .info { flex: 1; min-width: 160px; }
.doc-card .info b { display: block; word-break: break-word; }
.doc-card .info span { color: var(--muted); font-size: .85rem; }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pdf-frame { width: 100%; height: min(80vh, 900px); border: 1px solid var(--line); border-radius: var(--r); margin-top: 16px; background: #fff; }
.meta-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.meta-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 0; width: 42%; vertical-align: top; }
.meta-table td { padding: 8px 0; color: var(--ink); font-weight: 500; }
.meta-table tr + tr { border-top: 1px solid var(--line-2); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-banner { position: sticky; top: 0; z-index: 60; background: var(--gold); color: #fff; text-align: center; padding: 8px; font-weight: 600; }

.faculty-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; gap: 16px; align-items: flex-start; transition: box-shadow .2s, border-color .2s; }
.faculty-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.faculty-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font: 700 1.3rem/1 var(--serif); flex: none; }
.faculty-card h3 { margin: 0 0 2px; font-size: 1.08rem; }
.faculty-card h3 a { color: var(--navy); text-decoration: none; }
.faculty-card h3 a::after { content: ""; position: absolute; inset: 0; }
.faculty-card .role { color: var(--brand); font-size: .88rem; font-weight: 600; }
.faculty-card .dept { color: var(--muted); font-size: .85rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags span { font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.profile-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.profile-head .faculty-photo { width: 140px; height: 140px; font-size: 2.4rem; border: 4px solid rgba(255,255,255,.15); }
.profile-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.chart-card h3 { font-size: 1rem; margin-bottom: 12px; font-family: var(--sans); font-weight: 600; color: var(--ink-2); }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bar i { display: block; width: 100%; max-width: 56px; background: linear-gradient(180deg, var(--brand), var(--brand-600)); border-radius: 6px 6px 0 0; min-height: 2px; }
.bar b { font-size: .8rem; color: var(--ink-2); }
.bar-labels { display: flex; gap: 12px; margin-top: 6px; }
.bar-labels span { flex: 1; text-align: center; font-size: .75rem; color: var(--muted); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.pagination [aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .disabled { opacity: .45; }
.empty-state { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }
.empty-state svg { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--line); }

/* ------------------------------------------------------------ Footer */
.site-footer { background: #0f1830; color: #aab4c9; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-block: 56px 40px; }
.site-footer h3 { color: #fff; font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #cdd5e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { margin: 14px 0; max-width: 38ch; }
.footer-contact { display: grid; gap: 8px; }
.footer-contact span { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 3px; color: var(--gold); flex: none; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px; font-size: .82rem; }

/* Reveal-on-scroll (progressive: content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1180px) {
  .nav-link { padding: 10px 8px; font-size: .88rem; }
}
@media (max-width: 1080px) {
  .menu-toggle { display: inline-grid; }
  /* No backdrop-filter here: it turns the header into the containing block for
     the fixed menu, trapping the menu inside the header and widening the page. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav { display: none; position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--gutter) 40px; margin: 0; border-top: 1px solid var(--line); }
  .nav.is-open { display: block; animation: menu-in .2s ease-out; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line-2); }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1rem; border-radius: 0; }
  .nav-link:hover { background: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 10px; display: none; min-width: 0; }
  .nav-item.is-open > .dropdown { display: block; }
  .board-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .layout-side { grid-template-columns: 1fr; }
  .aside { position: static; }
  .placement-band { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid .card:first-child { grid-column: 1 / -1; grid-row: auto; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .mosaic .tile:nth-child(6) { grid-column: span 1; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .utility-contact { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .brand { flex: 1; min-width: 0; }
  .brand-name { font-size: 1rem; white-space: normal; line-height: 1.2; }
  .brand-sub { display: none; }
  .header-actions .btn { display: none; }
  .board-section { padding-top: 24px; }
  .board-head { padding: 14px 16px; }
  .board-filters { padding: 10px 16px; }
  .notice-row { grid-template-columns: 52px 1fr; padding: 14px 16px; gap: 12px; }
  .notice-date { height: 52px; }
  .board-viewport { height: 420px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .filters { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -58px; transform: none; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
  .lb-caption { padding-bottom: 76px; }
  .hero-content { padding-block: 48px 88px; }
}

/* Reduced motion: no ticker, no carousel autoplay, no reveals */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-content > * { opacity: 1; transform: none; }
}

@media print {
  .utility, .site-header, .site-footer, .board-controls, .share, .alert-bar { display: none !important; }
  body { background: #fff; }
}
