/* ==========================================================================
   Obgin FK-UMI — public theme
   One stylesheet, no external fonts or CDNs (the CSP allows 'self' only).
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --navy-900: #06243a;
  --navy-800: #0a3251;
  --navy-700: #0d3b5c;
  --navy-600: #11507b;
  --navy-500: #1c6ea4;
  --navy-100: #e6f1f9;
  --navy-50:  #f4f9fd;

  --teal-600: #0d8a7d;
  --teal-500: #12a596;
  --teal-100: #e2f6f3;

  --gold-600: #b8860b;
  --gold-500: #d9a520;
  --gold-100: #fdf4dd;

  --red-600:  #b3261e;

  --ink-900: #0f1b24;
  --ink-700: #33454f;
  --ink-500: #5b6b76;
  --ink-300: #9aa8b1;
  --line:    #dde5ea;
  --surface: #ffffff;
  --surface-2: #f6f9fb;
  --page:    #ffffff;

  --brand:      var(--navy-700);
  --brand-dark: var(--navy-900);
  --accent:     var(--teal-600);
  --accent-2:   var(--gold-500);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgb(6 36 58 / .06), 0 2px 8px rgb(6 36 58 / .05);
  --shadow:    0 4px 14px rgb(6 36 58 / .08), 0 12px 32px rgb(6 36 58 / .07);
  --shadow-lg: 0 12px 40px rgb(6 36 58 / .16);

  /* Wide enough for the seven-item menu to stay on one line and for the grids
     to use a large monitor; `.prose` keeps its own reading measure so article
     text does not stretch with it. */
  --wrap: 1440px;
  --gap: clamp(1rem, 2.4vw, 2rem);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head: "Segoe UI Semibold", var(--font);

  --step--1: clamp(.82rem, .79rem + .12vw, .89rem);
  --step-0:  clamp(.96rem, .92rem + .2vw, 1.06rem);
  --step-1:  clamp(1.14rem, 1.06rem + .38vw, 1.35rem);
  --step-2:  clamp(1.36rem, 1.2rem + .74vw, 1.85rem);
  --step-3:  clamp(1.6rem, 1.3rem + 1.4vw, 2.55rem);
  --step-4:  clamp(1.95rem, 1.4rem + 2.5vw, 3.4rem);

  --header-h: 72px;
  --ring: 0 0 0 3px rgb(18 165 150 / .45);
}

[data-theme="dark"] {
  --ink-900: #eef4f8;
  --ink-700: #c3d1da;
  --ink-500: #93a5b1;
  --ink-300: #63757f;
  --line:    #1d3243;
  --surface: #0d1f2c;
  --surface-2: #0a1925;
  --page:    #071420;
  --navy-100: #12293a;
  --navy-50:  #0c202e;
  --brand:    #2a7fb8;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow:    0 8px 26px rgb(0 0 0 / .45);
  --shadow-lg: 0 16px 50px rgb(0 0 0 / .55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink-900: #eef4f8;
    --ink-700: #c3d1da;
    --ink-500: #93a5b1;
    --ink-300: #63757f;
    --line:    #1d3243;
    --surface: #0d1f2c;
    --surface-2: #0a1925;
    --page:    #071420;
    --navy-100: #12293a;
    --navy-50:  #0c202e;
    --brand:    #2a7fb8;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow:    0 8px 26px rgb(0 0 0 / .45);
    --shadow-lg: 0 16px 50px rgb(0 0 0 / .55);
  }
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
p { text-wrap: pretty; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The inline <svg> sprite and the honeypot field are hidden from a stylesheet,
   not from a style attribute: the Content-Security-Policy carries no
   'unsafe-inline', so an inline style would be dropped and both would appear
   on the page. */
.svg-sprite,
.hp-field,
#hpc { display: none !important; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 999;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke-width: 2; }
svg.ico[aria-hidden="true"] { pointer-events: none; }
.ico--ext { width: .82em; height: .82em; opacity: .7; }
.ico--chevron { width: .8em; height: .8em; transition: transform .2s ease; }

.cover { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .72rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; font-size: var(--step--1); letter-spacing: .01em;
  text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: .5rem 1rem; }
.btn--xs { padding: .38rem .8rem; font-size: var(--step--1); }
.btn--lg { padding: .95rem 1.75rem; font-size: var(--step-0); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-600); color: #fff; box-shadow: var(--shadow); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--teal-500); color: #fff; box-shadow: var(--shadow); }
.btn--outline { border-color: var(--line); background: var(--surface); color: var(--ink-900); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { border-color: rgb(255 255 255 / .5); color: #fff; background: rgb(255 255 255 / .08); }
.btn--ghost:hover { background: rgb(255 255 255 / .18); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

.link-more {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 650;
  font-size: var(--step--1); text-decoration: none; color: var(--accent);
}
.link-more .ico { transition: transform .18s ease; }
.link-more:hover .ico { transform: translateX(3px); }

.pill {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.pill--new { background: var(--red-600); color: #fff; }

/* ---------------------------------------------------------------- topbar */
.topbar {
  background: var(--navy-900); color: #cfe1ee; font-size: var(--step--1);
}
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { color: #fff; }
.topbar__inner {
  display: flex; flex-wrap: wrap; gap: .35rem 1.4rem;
  align-items: center; justify-content: space-between; min-height: 40px; padding-block: .35rem;
}
.topbar ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; }
.topbar__links ul { gap: .35rem 1rem; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex; align-items: center; gap: .75rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; flex: none; }
.brand__logo { width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: var(--step-0); font-family: var(--font-head); color: var(--brand); }
.brand__text small { font-size: .72rem; color: var(--ink-500); }

.primary-nav { margin-inline-start: auto; min-width: 0; }
.primary-nav__list { display: flex; align-items: center; gap: .1rem; list-style: none; padding: 0; }
.primary-nav__item { position: relative; }
.primary-nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .6rem; border-radius: var(--radius-sm);
  background: none; border: 0; font-weight: 600; font-size: var(--step--1);
  color: var(--ink-700); text-decoration: none;
  /* A label that breaks in two ("Tentang / Obgin") makes the bar look stacked;
     the row must stay one line high whatever the label length. */
  white-space: nowrap;
}
.primary-nav__link:hover, .primary-nav__link.is-active { color: var(--brand); background: var(--navy-50); }
.primary-nav__item.is-open > .primary-nav__link { color: var(--brand); background: var(--navy-50); }
.primary-nav__item.is-open .ico--chevron { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + .4rem); inset-inline-start: 0;
  min-width: 260px; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.primary-nav__item.is-open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu__list { list-style: none; padding: 0; display: grid; gap: 1px; }
.submenu__list a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .55rem .7rem; border-radius: var(--radius-sm);
  font-size: var(--step--1); text-decoration: none; color: var(--ink-700);
}
.submenu__list a:hover { background: var(--navy-50); color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  display: inline-flex; align-items: center; gap: .25rem; justify-content: center;
  width: auto; min-width: 38px; height: 38px; padding-inline: .5rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-700); text-decoration: none;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-switch { position: relative; }
.lang-switch__code { font-size: .72rem; font-weight: 700; }
.lang-switch__menu {
  position: absolute; top: calc(100% + .4rem); inset-inline-end: 0; min-width: 190px;
  list-style: none; padding: .4rem; margin: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); z-index: 20;
}
.lang-switch__menu a {
  display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem;
  border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-700); font-size: var(--step--1);
}
.lang-switch__menu a:hover, .lang-switch__menu a[aria-current] { background: var(--navy-50); color: var(--brand); }

.nav-toggle {
  display: none; width: 42px; height: 42px; margin-inline-start: auto;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); padding: 10px 9px;
}
.nav-toggle__bar { display: block; height: 2px; background: var(--ink-700); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle__bar + .nav-toggle__bar { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.search-panel { border-top: 1px solid var(--line); background: var(--surface); }
.search-panel__form { display: flex; gap: .6rem; padding-block: .9rem; }
.search-panel input {
  flex: 1; padding: .7rem 1rem; border: 1.5px solid var(--line);
  border-radius: 999px; background: var(--surface-2);
}
.search-panel input:focus { border-color: var(--accent); background: var(--surface); outline: none; box-shadow: var(--ring); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; color: #fff; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgb(18 165 150 / .38), transparent 60%),
    radial-gradient(800px 420px at 5% 110%, rgb(217 165 32 / .22), transparent 62%),
    linear-gradient(155deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .6;
}
.hero__inner { display: grid; grid-template-columns: 1.35fr .8fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero__eyebrow { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .16em; color: var(--gold-500); font-weight: 700; }
.hero__title { font-size: var(--step-4); margin-block: .5rem .8rem; color: #fff; }
.hero__lead { font-size: var(--step-1); color: rgb(255 255 255 / .88); max-width: 60ch; }
.hero__badge {
  display: inline-flex; align-items: flex-start; gap: .55rem; margin-top: 1.2rem;
  padding: .6rem .95rem; border-radius: var(--radius);
  background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2);
  font-size: var(--step--1); color: rgb(255 255 255 / .92); max-width: 62ch;
}
.hero__badge .ico { margin-top: .18em; color: var(--gold-500); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* ------------------------------------------------------- hero flyer slider

   The track is a scroll-snap strip, so it swipes on touch and still works if
   the script never runs; theme.js only adds the buttons, dots and rotation. */

.hero__flyer { margin: 0; min-width: 0; }

.heroslider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: var(--radius-lg);
  /* The bar would sit on top of the artwork; the dots already show position. */
  scrollbar-width: none;
}
.heroslider__track::-webkit-scrollbar { display: none; }
.heroslider__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.heroslider__slide { scroll-snap-align: center; scroll-snap-stop: always; min-width: 0; }

.heroslider__link {
  display: block; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__flyer-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }

.heroslider__caption {
  margin: .8rem 0 0; font-size: var(--step--1); color: rgb(255 255 255 / .85);
  display: flex; align-items: center; gap: .5rem; min-height: 2.6em;
}

.heroslider__controls { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .2rem; }

.heroslider__btn {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid rgb(255 255 255 / .25); border-radius: 999px;
  background: rgb(255 255 255 / .08); color: #fff; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.heroslider__btn:hover { background: rgb(255 255 255 / .2); border-color: rgb(255 255 255 / .5); }
.heroslider__btn .ico { width: 18px; height: 18px; }

.heroslider__dots { display: flex; align-items: center; gap: .35rem; margin-inline: .3rem; }
.heroslider__dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px;
  background: rgb(255 255 255 / .35); cursor: pointer;
  transition: background .15s ease, width .15s ease;
}
.heroslider__dot:hover { background: rgb(255 255 255 / .6); }
.heroslider__dot.is-active { width: 24px; background: var(--accent-2, #d9a520); }

/* One flyer needs no machinery. */
.heroslider--single .heroslider__track { overflow: visible; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  list-style: none; padding: 0; margin-top: clamp(2rem, 5vw, 3.5rem);
  background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .18);
  border-radius: var(--radius-lg); overflow: hidden;
}
.stat {
  display: grid; justify-items: center; gap: .2rem; padding: 1.3rem .6rem;
  background: rgb(6 36 58 / .55); backdrop-filter: blur(6px); text-align: center;
}
.stat__ico { width: 1.5rem; height: 1.5rem; color: var(--gold-500); }
.stat__num { font-family: var(--font-head); font-size: var(--step-3); font-weight: 800; color: #fff; line-height: 1; }
.stat__label { font-size: var(--step--1); color: rgb(255 255 255 / .75); text-transform: uppercase; letter-spacing: .07em; }

/* -------------------------------------------------------------- sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.75rem); }
/* Alternating bands give the long home page its rhythm. The tint is the pale
   clinical blue rather than the neutral grey — at #f6f9fb the step was so
   small that the sections read as one continuous slab. */
.section--tint { background: var(--navy-50); }
.section--dark { background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); color: #fff; }
.section--dark .section__title, .section--dark .eyebrow { color: #fff; }
.section--dark .section__sub { color: rgb(255 255 255 / .78); }
.section--links { background: var(--surface-2); }

.section__head {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: end;
  justify-content: space-between; margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.section__head--center { justify-content: center; text-align: center; }
.eyebrow { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--accent); }
.section__title { font-size: var(--step-3); margin-top: .25rem; }
.section__sub { color: var(--ink-500); margin-top: .4rem; max-width: 62ch; }

.grid-2 { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }

/* ------------------------------------------------------------------- kps */
.kps__media { position: relative; }
.kps__photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.kps__caption {
  display: grid; gap: .1rem; margin-top: -2.2rem; margin-inline: 1rem;
  position: relative; padding: .9rem 1.1rem; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.kps__caption strong { font-size: var(--step--1); }
.kps__caption span { font-size: .78rem; color: var(--ink-500); }
.kps__body p + p { margin-top: .9rem; }
.kps__body p { color: var(--ink-700); }

/* ----------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { display: block; aspect-ratio: 16 / 9; background: var(--navy-50); }
.card__body { padding: 1.2rem 1.3rem 1.4rem; }
.card__meta { display: flex; align-items: center; gap: .4rem; font-size: var(--step--1); color: var(--ink-500); }
.card__title { font-size: var(--step-1); margin-top: .4rem; }
.card__title--lg { font-size: var(--step-2); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { margin-top: .6rem; color: var(--ink-700); }
.card__body .link-more { margin-top: .9rem; }

.news-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gap); }
.news-list { list-style: none; padding: 0; display: grid; gap: .9rem; align-content: start; }
.news-item { display: grid; grid-template-columns: 116px 1fr; gap: .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item__media { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--navy-50); }
.news-item__date { font-size: .76rem; color: var(--ink-500); }
.news-item__title { font-size: var(--step-0); margin-top: .15rem; }
.news-item__title a { color: inherit; text-decoration: none; }
.news-item__title a:hover { color: var(--accent); }
.news-item__excerpt { font-size: var(--step--1); color: var(--ink-500); margin-top: .2rem; }

/* ---------------------------------------------------------------- agenda */
.agenda-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.agenda-card {
  display: grid; grid-template-columns: 84px 1fr; gap: 1rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.agenda-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.agenda-card__date { display: grid; justify-items: center; gap: .1rem; padding: .55rem; border-radius: var(--radius-sm); background: var(--navy-50); }
.agenda-card__day { font-family: var(--font-head); font-size: var(--step-2); font-weight: 800; color: var(--brand); line-height: 1; }
.agenda-card__mon { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-500); }
.agenda-card__title { font-size: var(--step-0); }
.agenda-card__title a { color: inherit; text-decoration: none; }
.agenda-card__title a:hover { color: var(--accent); }
.agenda-card__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .35rem; font-size: var(--step--1); color: var(--ink-500); }
.agenda-card__meta span { display: inline-flex; align-items: center; gap: .3rem; }

/* ---------------------------------------------------------------- people */
.people-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem; }
/* 165px fitted seven residents across a wide monitor and shrank every face to
   a thumbnail. The directory is thirteen people, not three hundred — the tiles
   can afford to be looked at. */
.people-grid--compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.person:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.person__media { display: block; aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--navy-100), var(--teal-100)); }
/* Residents used a square crop, which took a 4:5 studio portrait and sliced the
   top off every head. Same portrait ratio as the lecturers now; only the tile
   is narrower. */
.person--compact .person__media { aspect-ratio: 4 / 5; }
/* Every one of these photographs is framed the same way — subject centred, head
   near the top — so a crop that centres vertically eats the forehead. Anchoring
   to the top keeps the face whole and trims the coat instead. */
.person__media img, .person__media picture > img { object-position: top center; }
.person__body { padding: .85rem 1rem 1.1rem; }
.person__name { font-size: var(--step--1); line-height: 1.35; }
.person__name a { color: inherit; text-decoration: none; }
.person__name a:hover { color: var(--accent); }
.person__role { font-size: .78rem; color: var(--accent); margin-top: .2rem; font-weight: 600; }
.person__mail { display: inline-flex; align-items: center; gap: .3rem; margin-top: .45rem; font-size: .74rem; color: var(--ink-500); text-decoration: none; word-break: break-all; }
.person__mail:hover { color: var(--accent); }

/* --------------------------------------------------------------- notices */
.notice-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
.notice { display: grid; grid-template-columns: 46px 1fr; gap: .9rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.notice__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--gold-100); color: var(--gold-600); }
[data-theme="dark"] .notice__icon { background: rgb(217 165 32 / .16); }
.notice__date { font-size: .76rem; color: var(--ink-500); }
.notice__title { font-size: var(--step-0); margin-top: .15rem; }
.notice__title a { color: inherit; text-decoration: none; }
.notice__title a:hover { color: var(--accent); }
.notice__excerpt { font-size: var(--step--1); color: var(--ink-500); margin-top: .35rem; }
.notice__actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }

/* ---------------------------------------------------------------- awards */
.award-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.1rem; }
.award { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.award__media { position: relative; aspect-ratio: 4 / 3; background: var(--navy-50); }
.award__badge {
  position: absolute; inset-block-end: .6rem; inset-inline-start: .6rem;
  display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem;
  border-radius: 999px; background: var(--gold-500); color: #26200a;
  font-size: .74rem; font-weight: 750;
}
.award__body { padding: 1rem 1.1rem 1.2rem; }
.award__title { font-size: var(--step-0); }
.award__title a { color: inherit; text-decoration: none; }
.award__desc { font-size: var(--step--1); color: var(--ink-500); margin-top: .35rem; }
.award__field { font-size: .78rem; color: var(--ink-500); margin-top: .5rem; }
.award__field span { font-weight: 700; color: var(--ink-700); }

/* ---------------------------------------------------------------- flyers */
.flyer-strip { list-style: none; padding: 0 0 .6rem; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.flyer { flex: 0 0 clamp(180px, 22vw, 240px); scroll-snap-align: start; }
.flyer a { display: block; position: relative; text-decoration: none; color: inherit; }
.flyer .pill { position: absolute; top: .55rem; inset-inline-start: .55rem; z-index: 2; }
.flyer__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.flyer__title { display: block; margin-top: .55rem; font-size: var(--step--1); font-weight: 600; }
.flyer a:hover .flyer__title { color: var(--accent); }

/* ------------------------------------------------------------ facilities */
.facility-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.facility__link { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.facility__link img { transition: transform .4s ease; }
.facility__link:hover img { transform: scale(1.06); }
.facility__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  gap: .15rem; padding: 1rem; color: #fff;
  background: linear-gradient(to top, rgb(6 36 58 / .88) 0%, rgb(6 36 58 / .25) 45%, transparent 75%);
}
.facility__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-500); font-weight: 700; }
.facility__title { font-family: var(--font-head); font-size: var(--step-0); font-weight: 700; }

/* ----------------------------------------------------------------- video */
.video-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; }
.video-card__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-card__frame img { width: 100%; height: 100%; object-fit: cover; }
.video-card__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__play {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px;
  display: grid; place-items: center; border: 0; border-radius: 999px;
  background: rgb(255 255 255 / .92); color: var(--red-600);
  box-shadow: var(--shadow); transition: transform .18s ease;
}
.video-card__play .ico { width: 1.7rem; height: 1.7rem; margin-inline-start: 3px; }
.video-card__frame:hover .video-card__play { transform: scale(1.08); }
.video-card__title { font-size: var(--step-0); margin-top: .7rem; }

/* ------------------------------------------------------------------ rail */

/* One row, always. The home page's lists used `auto-fill` grids, so at most
   widths they wrapped to two or three rows and each section grew a second
   storey of its own. A rail keeps every section one row tall and lets the
   surplus scroll sideways — which is how a phone already expects to read a
   list of cards, and is why the same markup serves both.

   Built on scroll-snap rather than transforms: it swipes natively on touch,
   scrolls with a trackpad, responds to the keyboard, and still works if the
   JavaScript that adds the arrows never runs. */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--rail-card, 300px);
  gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  /* Room for the cards' own shadows, which a clipping scroller would shear. */
  padding: 4px 4px 1rem;
  margin-inline: -4px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; min-width: 0; }

/* A rail keeps the class of the wrapping grid it replaces, and that class still
   declares grid-template-columns. An explicit track governs column 1 while
   grid-auto-columns only reaches the implicit ones, so the first card came out
   a different width from all the others — 37px against 330px for the agenda.
   Clearing the template makes every column implicit.

   The attribute selector is doing real work here: `.testi-grid` and
   `.partner-grid` are declared *below* this block, and `.agenda-grid` restates
   its template inside a media query further down, so a plain `.rail` reset
   loses on source order. Every rail carries data-rail already — it is how the
   arrows find their rail — and 0,2,0 outranks any of those single classes
   wherever in the file they sit. Same reason for pinning the gap: the card
   step the arrows scroll by assumes this one. */
.rail[data-rail] { grid-template-columns: none; gap: var(--gap); }

/* A rail that fits entirely gets no scrolling and no arrows: JS clears the
   flag, and until it runs the row simply does not overflow. */
.rail[data-fits] { grid-auto-columns: minmax(0, 1fr); overflow-x: visible; }

/* Phone-only rail, for the archive listings.
   A wrapping grid is the right desktop layout for an archive — the reader wants
   every item at once, not most of them hidden behind a swipe. On a phone the
   same grid is one very long column, and there a rail reads better. Hence a
   second copy of the geometry rather than a shared rule: the base `.rail` has
   to apply at every width, and CSS offers no way to say "this rule, but only
   below a breakpoint" without restating it.

   Above the breakpoint no rail CSS applies at all. The JS still measures the
   list, finds a wrapped grid does not overflow, sets data-fits and leaves the
   arrows hidden — which is exactly what a desktop archive should look like. */
@media (max-width: 900px) {
  .rail--sm[data-rail] {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: var(--rail-card, 300px);
    grid-template-columns: none;
    gap: var(--gap);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 1rem;
    margin-inline: -4px;
    scrollbar-width: none;
  }
  .rail--sm::-webkit-scrollbar { display: none; }
  .rail--sm > * { scroll-snap-align: start; min-width: 0; }
  .rail--sm[data-fits] { grid-auto-columns: minmax(0, 1fr); overflow-x: visible; }
}

.rail__nav { display: none; gap: .4rem; }
.rail--ready .rail__nav { display: inline-flex; }

/* An archive has no section head to hang the arrows in, so they get a row of
   their own above the list, pushed to the trailing edge. */
.rail__nav--bar { justify-content: flex-end; margin-bottom: .8rem; }
.rail--ready .rail__nav--bar { display: flex; }

.rail__btn {
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-700); cursor: pointer;
  transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}
.rail__btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.rail__btn:focus-visible { outline: none; box-shadow: var(--ring); }
.rail__btn:disabled { opacity: .35; cursor: default; }
.rail__btn .ico { width: 1.05em; height: 1.05em; }
.rail__btn--prev .ico { transform: scaleX(-1); }
[dir="rtl"] .rail__btn--prev .ico { transform: none; }
[dir="rtl"] .rail__btn--next .ico { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) { .rail__btn { transition: none; } }

/* On a dark band the controls have to sit on the band, not on paper. */
.section--dark .rail__btn {
  background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .3); color: #fff;
}
.section--dark .rail__btn:hover:not(:disabled) { background: rgb(255 255 255 / .2); border-color: #fff; }

/* Card widths per section: wide enough to read, narrow enough that the next
   one peeks in and says "there is more". */
.rail--news     { --rail-card: min(85vw, 340px); }
.rail--agenda   { --rail-card: min(85vw, 330px); }
.rail--people   { --rail-card: min(60vw, 220px); }
.rail--notice   { --rail-card: min(85vw, 340px); }
.rail--award    { --rail-card: min(80vw, 265px); }
.rail--facility { --rail-card: min(80vw, 270px); }
.rail--video    { --rail-card: min(85vw, 300px); }
.rail--testi    { --rail-card: min(85vw, 310px); }
.rail--partner  { --rail-card: min(55vw, 230px); }

/* ---------------------------------------------------------- testimonials */
.testi-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.testi { position: relative; padding: 1.5rem 1.4rem 1.3rem; border-radius: var(--radius-lg); background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .16); }
.testi__quote { position: absolute; top: 1rem; inset-inline-end: 1.1rem; width: 2rem; height: 2rem; color: rgb(255 255 255 / .18); }
.testi__text { font-size: var(--step--1); color: rgb(255 255 255 / .9); line-height: 1.7; }
.testi__by { display: flex; align-items: center; gap: .7rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .14); }
.testi__avatar { width: 46px; height: 46px; border-radius: 999px; object-fit: cover; }
.testi__by span { display: grid; }
.testi__by strong { font-size: var(--step--1); color: #fff; }
.testi__by small { font-size: .74rem; color: rgb(255 255 255 / .7); }
.section--dark .center .btn { margin-top: 1.8rem; }

/* -------------------------------------------------------------- partners */
.partner-grid { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.partner-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .85rem 1.1rem; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-700);
  font-size: var(--step--1); font-weight: 600;
}
.partner-grid a:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------ newsletter */
.newsletter { background: linear-gradient(115deg, var(--teal-600), var(--navy-600)); color: #fff; padding-block: clamp(2rem, 4vw, 3rem); }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.newsletter__title { font-size: var(--step-2); }
.newsletter__sub { color: rgb(255 255 255 / .85); margin-top: .3rem; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: .6rem; position: relative; }
.newsletter__form input[type="email"] {
  flex: 1 1 220px; padding: .8rem 1.1rem; border-radius: 999px;
  border: 1.5px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .14); color: #fff;
}
.newsletter__form input::placeholder { color: rgb(255 255 255 / .7); }
.newsletter__form input:focus { outline: none; background: rgb(255 255 255 / .22); border-color: #fff; }
.newsletter__form .btn--accent { background: var(--gold-500); color: #26200a; }
.newsletter__form .btn--accent:hover { background: #e9b62e; color: #26200a; }
.form-note { flex-basis: 100%; font-size: var(--step--1); min-height: 1.2em; color: #fff; }
.form-note.is-error { color: #ffd7d2; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-900); color: #b9cede; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(1.5rem, 3vw, 2.5rem); padding-block: clamp(2.2rem, 5vw, 3.5rem);
}
.site-footer h2 { font-size: var(--step-0); color: #fff; margin-top: .8rem; }
.site-footer h3 { font-size: var(--step--1); color: #fff; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; }
.site-footer p { font-size: var(--step--1); margin-top: .5rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; font-size: var(--step--1); }
.site-footer__contact { font-style: normal; }
.site-footer__contact li { display: grid; grid-template-columns: 1.2em 1fr; gap: .5rem; align-items: start; }
.site-footer__contact .ico { margin-top: .2em; color: var(--teal-500); }
.social { display: flex !important; gap: .5rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: rgb(255 255 255 / .1); }
.social a:hover { background: var(--teal-600); }
.site-footer__bottom { border-top: 1px solid rgb(255 255 255 / .12); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between; padding-block: 1.1rem; font-size: var(--step--1); }
.site-footer__bottom ul { display: flex !important; gap: 1.2rem; }

/* --------------------------------------------------- floating tools */
.a11y { position: fixed; inset-block-end: 1.1rem; inset-inline-start: 1.1rem; z-index: 95; }
.a11y__toggle, .to-top {
  width: 50px; height: 50px; display: grid; place-items: center;
  border: 0; border-radius: 999px; color: #fff; box-shadow: var(--shadow);
  transition: transform .18s ease, background .18s ease;
}
.a11y__toggle { background: var(--teal-600); }
.a11y__toggle:hover, .to-top:hover { transform: translateY(-2px); }
.a11y__toggle .ico { width: 1.5rem; height: 1.5rem; }

.a11y__panel {
  position: absolute; inset-block-end: calc(100% + .7rem); inset-inline-start: 0;
  width: min(92vw, 320px); padding: 1rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  color: var(--ink-900);
}
.a11y__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.a11y__head h2 { font-size: var(--step-0); }
.a11y__close { border: 0; background: none; color: var(--ink-500); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; }
.a11y__close:hover { background: var(--surface-2); color: var(--ink-900); }
.a11y__group + .a11y__group { margin-top: .9rem; }
.a11y__label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); margin-bottom: .45rem; }
.a11y__row { display: grid; grid-auto-flow: column; gap: .4rem; }
.a11y__row--wrap { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.a11y__btn {
  padding: .5rem .55rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface-2); font-size: .78rem; font-weight: 600; color: var(--ink-700);
}
.a11y__btn:hover { border-color: var(--accent); color: var(--accent); }
.a11y__btn[aria-pressed="true"], .a11y__btn.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.a11y__reset { width: 100%; margin-top: 1rem; padding: .55rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: none; font-size: .78rem; font-weight: 600; color: var(--ink-500); }
.a11y__reset:hover { border-color: var(--red-600); color: var(--red-600); }

.to-top { position: fixed; inset-block-end: 1.1rem; inset-inline-end: 1.1rem; z-index: 95; background: var(--brand); }
.to-top[hidden] { display: none; }

.reading-guide { position: fixed; left: 0; right: 0; height: 2.6rem; pointer-events: none; z-index: 94; display: none; background: rgb(17 80 123 / .16); border-block: 2px solid rgb(17 80 123 / .5); }
.a11y-guide .reading-guide { display: block; }

/* ------------------------------------------------- accessibility filters */
.a11y-contrast { filter: contrast(1.45); }
.a11y-grayscale { filter: grayscale(1); }
.a11y-contrast.a11y-grayscale { filter: contrast(1.45) grayscale(1); }
.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; background: rgb(217 165 32 / .22); }
.a11y-readable, .a11y-readable body { font-family: Verdana, "Trebuchet MS", Tahoma, sans-serif !important; letter-spacing: .012em; }
.a11y-spacing body { line-height: 2 !important; letter-spacing: .06em; word-spacing: .16em; }
.a11y-no-motion *, .a11y-no-motion *::before, .a11y-no-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__flyer { max-width: 340px; }
  .grid-2 { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .newsletter__inner { grid-template-columns: 1fr; }
}

/* Seven top-level entries plus the tools and the call-to-action need about
   1280px of room. Below that the bar is folded into the toggle rather than
   allowed to collide — the labels no longer wrap, so a tight bar would overlap
   instead of stacking. */
@media (max-width: 1279px) {
  .nav-toggle { display: block; order: 2; }
  .header-actions { order: 3; }
  .primary-nav {
    order: 4; flex-basis: 100%; margin-inline-start: 0;
    display: none; padding-block: .6rem 1rem; border-top: 1px solid var(--line);
    max-height: 70vh; overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }
  .site-header__inner { flex-wrap: wrap; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .primary-nav__link { width: 100%; justify-content: space-between; padding: .7rem .5rem; font-size: var(--step-0); white-space: normal; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-inline-start: 2px solid var(--line);
    border-radius: 0; margin-inline-start: .5rem; padding: 0 0 .4rem .4rem;
    display: none;
  }
  .primary-nav__item.is-open .submenu { display: block; }
}

/* Just above the fold-away point the bar fits, but only barely. */
@media (min-width: 1280px) and (max-width: 1420px) {
  .site-header__inner { gap: .5rem; }
  .primary-nav__link { padding: .55rem .45rem; }
  .brand__text small { display: none; }
}

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none !important; }
}

@media (max-width: 620px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 92px 1fr; }
  .agenda-grid { grid-template-columns: 1fr; }
  .a11y__row--wrap { grid-template-columns: 1fr; }
}

@media print {
  .topbar, .site-header, .site-footer, .a11y, .to-top, .newsletter, .search-panel { display: none !important; }
  body { color: #000; background: #fff; }
}
