/* Endrias Film College: public site.
   Light is the default theme; dark is opt-in. The hero, page headers, student-work band, footer and menus are always dark (cinematic),
   the rest of each page follows the theme. Layout: top bar, side rail (desktop) or bottom dock + menu (phone), then content. */
:root {
  --bg: #F3F6FC; --surface-alt: #E8EEF8; --card: rgba(255, 255, 255, 0.78); --card-solid: #FFFFFF; --card-text: #0E1E40; --card-muted: #566380;
  --border: rgba(14, 30, 64, 0.10); --glass-hi: rgba(255, 255, 255, 0.95); --glass-edge: rgba(14, 30, 64, 0.08);
  --text: #0E1E40; --muted: #55627F; --gold: #E5B53B; --gold-text: #8A6410; --on-gold: #0B1530;
  --blue: #1F5BC4; --on-blue: #FFFFFF; --link: #1E4FA8; --focus: #1F5BC4;
  --navy: #07122A; --navy-2: #0A1C3F; --on-navy: #F4F6FB; --on-navy-muted: #B3BFD6; --navy-border: rgba(141, 180, 245, 0.22);
  --field: #FFFFFF; --field-border: #B9C5DD; --img-bg: #DCE4F2;
  --shadow: 0 1px 2px rgba(10, 28, 63, 0.05), 0 14px 34px rgba(10, 28, 63, 0.09); --shadow-hover: 0 2px 4px rgba(10, 28, 63, 0.08), 0 26px 56px rgba(10, 28, 63, 0.18);
  --ok: #1F7A55; --ok-bg: #E4F4EC; --err: #B3261E; --err-bg: #FBE9E7;
  --serif: 'Newsreader', 'Noto Serif Ethiopic', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Noto Sans Ethiopic', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --logo: 'Big Shoulders Display', 'Noto Sans Ethiopic', sans-serif;
  --bar-h: 64px; --rail-w: 0px;
  --sec: clamp(56px, 8vw, 104px); --gutter: clamp(16px, 3vw, 32px);
  --r-sm: 12px; --r: 20px; --r-lg: 28px;
}
[data-theme="dark"] {
  --bg: #050C1D; --surface-alt: #081530; --card: rgba(14, 34, 74, 0.55); --card-solid: #0C1D40; --card-text: #F4F6FB; --card-muted: #A9B5CE;
  --border: rgba(141, 180, 245, 0.16); --glass-hi: rgba(255, 255, 255, 0.07); --glass-edge: rgba(141, 180, 245, 0.2);
  --text: #F4F6FB; --muted: #A9B5CE; --gold-text: #E5B53B; --link: #8DB4F5; --focus: #E5B53B;
  --field: rgba(6, 18, 48, 0.8); --field-border: #35508C; --img-bg: #10244C;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px rgba(0, 0, 0, 0.38); --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.4), 0 26px 56px rgba(0, 0, 0, 0.55);
  --ok: #7BC8A4; --ok-bg: #0E2A22; --err: #FF9C94; --err-bg: #3A1512;
}
/* Always-dark surfaces use the dark values whatever the theme */
.hero, .section-dark, .page-hero, .pdetail, .work-hero, .cta-band, .site-footer, .topbar, .rail, .dock, .drawer-panel, .on-dark {
  --text: #F4F6FB; --muted: #B3BFD6; --link: #9CC0FF; --gold-text: #E5B53B; --focus: #E5B53B;
  --card: rgba(255, 255, 255, 0.07); --card-solid: #0C1D40; --card-text: #F4F6FB; --card-muted: #B3BFD6;
  --border: rgba(141, 180, 245, 0.2); --glass-edge: rgba(141, 180, 245, 0.22); --glass-hi: rgba(255, 255, 255, 0.08);
  --field: rgba(6, 18, 48, 0.7); --field-border: rgba(141, 180, 245, 0.38); --img-bg: #10244C;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px rgba(0, 0, 0, 0.38); --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.4), 0 26px 56px rgba(0, 0, 0, 0.55);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  margin: 0; color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.drawer-open { overflow: hidden; }
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button { font-family: inherit; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 10px 16px; z-index: 100; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }
.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; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Layout and rhythm */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.narrow-sm { max-width: 520px; }
.narrow-wide { max-width: 980px; }
.section { padding: var(--sec) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); }
.section-alt { background: var(--surface-alt); }
.section-dark { background: radial-gradient(900px 420px at 90% -10%, rgba(31, 91, 196, 0.35), transparent 60%), var(--navy); }
.band { background: var(--surface-alt); }
.navy { background: var(--navy); color: var(--on-navy); }
.site-content { min-width: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-intro { color: var(--muted); max-width: 560px; margin: 12px 0 0; }
.h2-lg { font-size: clamp(28px, 4.4vw, 48px); line-height: 1.08; }
.h2-lg em, .display em, .display-md em { color: var(--gold-text); font-style: italic; }
.serif-statement { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.18; font-weight: 500; }

.muted { color: var(--muted); }
.card .muted, .card.muted { color: var(--card-muted); }
.muted-small { font-size: 13px; color: var(--card-muted); }
.muted-on-navy { color: var(--on-navy-muted); }
.gold-text { color: var(--gold-text); font-weight: 600; }
.navy .gold-text, .about-navy .gold-text { color: var(--gold); }
.mono { font-family: var(--mono); font-weight: 500; }
.eyebrow, .mono-label { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 12px; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.serif-lead { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin: 12px 0; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--r); background: var(--card); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.plain { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.inline-form { display: inline; margin: 0; }
.link-arrow, .link-gold { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--link); }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-gold { color: var(--gold); }
.more { margin: 16px 0 0; }
.result-count { margin: 0; font: 500 13px var(--mono); color: var(--muted); white-space: nowrap; }
.crumb { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumb a:hover { color: var(--link); }

/* Cards (glass) */
.card {
  position: relative; background: var(--card); color: var(--card-text); border: 1px solid var(--glass-edge); border-radius: var(--r);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .card { background: var(--card-solid); } }

/* Buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; border-radius: 999px; border: 1px solid transparent; font: 700 16px/1.2 var(--sans); cursor: pointer; text-decoration: none; min-height: 48px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(10, 28, 63, 0.22); }
.btn:active { transform: translateY(0); }
.btn::after { content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent); transform: skewX(-20deg); transition: left .5s ease; pointer-events: none; }
.btn:hover::after { left: 130%; }
.btn-small { padding: 8px 18px; min-height: 40px; font-size: 14px; }
.btn-lg { padding: 16px 32px; min-height: 56px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-gold { background: linear-gradient(180deg, #F2C453, #E5B53B); color: var(--on-gold); }
.btn-blue { background: linear-gradient(180deg, #2C6AD6, #1F5BC4); color: var(--on-blue); }
.btn-navy { background: var(--navy-2); color: var(--on-navy); margin-top: 6px; justify-content: space-between; }
.btn-line { background: var(--card); color: var(--text); border-color: var(--field-border); font-weight: 600; }
.btn-line-navy, .btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--on-navy); border-color: var(--navy-border); font-weight: 600; }
.btn-glass { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.42); font-weight: 600; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.26); }
.btn-ask { margin-top: 24px; font-weight: 600; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--navy-border); border-radius: 50%; color: var(--on-navy); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.15); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline-flex; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Chips and tags */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip { padding: 8px 18px; border: 1px solid var(--field-border); border-radius: 999px; font-weight: 600; font-size: 14px; background: var(--card); white-space: nowrap; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.chip:hover { text-decoration: none; border-color: var(--gold-text); transform: translateY(-1px); }
.chip.is-active { background: linear-gradient(180deg, #F2C453, #E5B53B); color: var(--on-gold); border-color: var(--gold); }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; color: var(--gold-text); }

/* ===== Shell: top bar, side rail (desktop), dock + drawer (phone) ===== */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--bar-h); background: rgba(7, 18, 42, 0.86); border-bottom: 1px solid var(--navy-border); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); }
.topbar-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); }
.topbar-tools { display: flex; align-items: center; gap: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--on-navy); min-width: 0; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px; transition: transform .4s ease; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-word { font-family: var(--logo); font-weight: 800; font-size: clamp(17px, 4.6vw, 23px); letter-spacing: 0.05em; line-height: 1; white-space: nowrap; }
.lang { display: inline-flex; gap: 2px; font-family: var(--mono); font-size: 13px; border: 1px solid var(--navy-border); border-radius: 999px; padding: 2px; color: var(--on-navy); }
.lang a { padding: 5px 10px; border-radius: 999px; }
.lang a:hover { text-decoration: none; background: rgba(255, 255, 255, 0.1); }
.lang a[aria-current="true"] { background: var(--gold); color: var(--on-gold); font-weight: 700; }

.rail { display: none; }
.dock { display: none; }
.dock, .drawer { color: var(--on-navy); }

/* Phones and tablets: bottom dock */
@media (max-width: 1099px) {
  .dock {
    position: fixed; z-index: 35; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); margin: 0 auto; max-width: 520px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 2px; padding: 6px;
    background: rgba(7, 18, 42, 0.9); border: 1px solid rgba(141, 180, 245, 0.3); border-radius: 999px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 -1px 0 rgba(141, 180, 245, 0.18) inset;
    backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  }
  .dock-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 50px; padding: 0 2px; border: 0; background: transparent; color: var(--on-navy-muted); font: 600 10.5px/1.1 var(--sans); border-radius: 999px; cursor: pointer; min-width: 0; text-align: center; }
  .dock-link span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dock-link:hover { text-decoration: none; color: #fff; }
  .dock-link.is-active { color: var(--gold); background: rgba(229, 181, 59, 0.12); }
  .dock-cta { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 18px; border-radius: 999px; background: linear-gradient(180deg, #F2C453, #E5B53B); color: var(--on-gold); font: 800 15px var(--sans); box-shadow: 0 8px 20px rgba(229, 181, 59, 0.35); white-space: nowrap; }
  .dock-cta:hover { text-decoration: none; filter: brightness(1.05); }
  .site-footer { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 599px) { .hide-sm { display: none !important; } }
@media (max-width: 520px) { .topbar .logo-sub { display: none; } }
@media (max-width: 1099px) { .hide-md { display: none !important; } }
@media (min-width: 1100px) { .menu-btn { display: none; } }

/* Desktop: slim rail on the left that opens on hover or focus */
@media (min-width: 1100px) {
  :root { --rail-w: 76px; }
  .site-content { padding-left: var(--rail-w); }
  .rail {
    display: block; position: fixed; z-index: 30; left: 0; top: var(--bar-h); bottom: 0; width: var(--rail-w); overflow: hidden auto; padding: 14px 0;
    background: #071229; border-right: 1px solid var(--navy-border); scrollbar-width: none;
    transition: width .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
  }
  .rail:hover, .rail:focus-within { width: 264px; box-shadow: 28px 0 70px rgba(0, 0, 0, 0.4); }
  .rail-list { list-style: none; display: flex; flex-direction: column; }
  .rail-link { position: relative; display: flex; align-items: center; height: 48px; color: var(--on-navy-muted); white-space: nowrap; transition: color .2s ease, background .2s ease; }
  .rail-link:hover { text-decoration: none; color: #fff; background: rgba(255, 255, 255, 0.06); }
  .rail-ico { flex: 0 0 var(--rail-w); display: flex; align-items: center; justify-content: center; }
  .rail-txt { font-weight: 600; font-size: 15px; opacity: 0; transform: translateX(-8px); transition: opacity .25s ease .05s, transform .25s ease .05s; }
  .rail:hover .rail-txt, .rail:focus-within .rail-txt { opacity: 1; transform: none; }
  .rail-link.is-active { color: var(--gold); background: linear-gradient(90deg, rgba(229, 181, 59, 0.16), transparent); }
  .rail-link.is-active::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
  .rail-group { position: relative; height: 34px; display: flex; align-items: flex-end; padding: 0 0 6px 26px; font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(179, 191, 214, 0.7); white-space: nowrap; }
  .rail-group span { opacity: 0; transition: opacity .25s ease; }
  .rail:hover .rail-group span, .rail:focus-within .rail-group span { opacity: 1; }
  .rail-group::before { content: ''; position: absolute; left: 24px; width: 28px; top: 16px; height: 1px; background: var(--navy-border); transition: opacity .2s ease; }
  .rail:hover .rail-group::before, .rail:focus-within .rail-group::before { opacity: 0; }
}

/* Menu drawer */
.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(3, 8, 20, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; }
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(300px, 82vw); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(520px 320px at 100% 0%, rgba(31, 91, 196, 0.35), transparent 70%), linear-gradient(180deg, #0A1C3F, #050C1D);
  border-left: 1px solid var(--navy-border); box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
  transform: translateX(100%); transition: transform .38s cubic-bezier(.2, .7, .2, 1);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 8px 16px; min-height: var(--bar-h); border-bottom: 1px solid var(--navy-border); position: sticky; top: 0; background: rgba(7, 18, 42, 0.9); backdrop-filter: blur(12px); z-index: 1; }
.drawer-nav { padding: 8px 10px 8px; flex: 1 1 auto; }
.drawer-home, .drawer-link { position: relative; display: flex; align-items: center; gap: 14px; padding: 0 12px; min-height: 46px; border-radius: 10px; color: #E8EEFA; font: 600 16px var(--sans); transition: background .15s ease, color .15s ease; }
.drawer-home { margin-top: 2px; }
.drawer-home:hover, .drawer-link:hover { text-decoration: none; background: rgba(255, 255, 255, 0.07); color: #fff; }
.drawer-home svg, .drawer-link svg { flex: 0 0 20px; color: var(--on-navy-muted); }
.drawer-home.is-active, .drawer-link.is-active { color: var(--gold); background: rgba(229, 181, 59, 0.1); }
.drawer-home.is-active svg, .drawer-link.is-active svg { color: var(--gold); }
.drawer-group { margin: 14px 12px 4px; font: 500 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(229, 181, 59, 0.85); }
.drawer-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.drawer-foot { padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--navy-border); display: grid; gap: 12px; background: rgba(0, 0, 0, 0.18); }
.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer-actions .btn { width: 100%; }
.drawer-actions:has(> :only-child) { grid-template-columns: 1fr; }
.drawer-tools { display: flex; align-items: center; justify-content: space-between; }

/* ===== Page headers (always dark) ===== */
.page-hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--navy-border);
  background: radial-gradient(900px 420px at 88% -30%, rgba(31, 91, 196, 0.5), transparent 62%), radial-gradient(680px 320px at 0% 130%, rgba(229, 181, 59, 0.2), transparent 62%), var(--navy); }
.page-hero .lead { color: var(--on-navy-muted); }
.page-hero-grid { display: grid; gap: 28px; align-items: center; }
.page-hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--navy-border); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: 1.25fr 1fr; gap: 56px; }
  .page-hero-img { aspect-ratio: 4 / 3; max-height: 380px; }
}
.display { font-size: clamp(40px, 8.2vw, 84px); line-height: 1.02; letter-spacing: -0.015em; }
.display-md { font-size: clamp(32px, 5.6vw, 60px); line-height: 1.04; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 18px 0 0; max-width: 600px; }
.search-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; max-width: 560px; }
.search-field { flex: 1 1 220px; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; background: var(--field); border: 1px solid var(--field-border); border-radius: 999px; color: var(--text); }
.search-field input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--text); font: 16px var(--sans); height: 100%; }
.search-field input:focus-visible { outline: none; }
.search-field:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--glass-edge); border-radius: var(--r); padding: 12px 16px; box-shadow: var(--shadow); }

/* ===== Home hero ===== */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; background: #050C1D url(../img/hero-tall.jpg) center / cover no-repeat; }
@media (min-aspect-ratio: 5/4) { .hero { background-image: url(../img/hero-wide.jpg); } }
@media (min-width: 900px) { .hero { min-height: min(calc(100svh - var(--bar-h) - 48px), 640px); } }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hero-video.is-on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 12, 29, 0.78) 0%, rgba(5, 12, 29, 0.55) 40%, rgba(5, 12, 29, 0.94) 100%); }
@media (min-width: 900px) {
  .hero-shade { background: linear-gradient(90deg, rgba(5, 12, 29, 0.94) 0%, rgba(5, 12, 29, 0.78) 34%, rgba(5, 12, 29, 0.15) 66%, rgba(5, 12, 29, 0.35) 100%), linear-gradient(180deg, rgba(5, 12, 29, 0.35) 0%, transparent 30%, rgba(5, 12, 29, 0.7) 100%); }
}
.hero-inner { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(32px, 7vh, 80px); padding-bottom: clamp(20px, 3vw, 32px); }
.hero-copy { max-width: 700px; }
.hero h1 { color: #fff; }
.hero .lead { color: #D2DBEE; max-width: 560px; }
.status-chip { display: inline-block; font: 500 13px var(--mono); color: var(--gold); background: rgba(7, 18, 42, 0.55); border: 1px solid var(--navy-border); border-radius: 999px; padding: 6px 14px; margin: 0 0 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-stats { padding-bottom: clamp(20px, 3vw, 32px); }
@media (max-width: 640px) {
  .hero-inner { padding-top: 28px; padding-bottom: 18px; }
  .hero .display { font-size: clamp(34px, 10.4vw, 44px); }
  .hero .lead { font-size: 16px; margin-bottom: 0; }
  .hero-tagline { display: none; }
  .hero .actions { margin-top: 20px; gap: 6px; }
  .hero .actions .btn-lg { min-height: 50px; padding: 12px 24px; font-size: 16px; }
  .hero .actions .btn-glass { flex: 1 1 100%; min-height: 44px; background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
  .stat-bar { border-radius: 16px; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .stat-cell { padding: 10px 14px; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
  .stat-bar .stat-n { font-size: 26px; }
  .hero-pause { top: 10px; }
}
.stat-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; border-radius: 22px; overflow: hidden; background: rgba(141, 180, 245, 0.18); border: 1px solid rgba(141, 180, 245, 0.22); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.stat-cell { display: flex; flex-direction: column; gap: 2px; padding: 16px 22px; background: rgba(7, 18, 42, 0.62); }
.stat-bar .stat-n { font: 600 clamp(30px, 4vw, 42px)/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
.stat-bar .stat-l { font-size: 13px; color: var(--on-navy-muted); }
.hero-pause { position: absolute; z-index: 2; right: var(--gutter); top: 16px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(7, 18, 42, 0.55); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }
.hero-pause[hidden] { display: none; }
.hero-pause .ico-play { display: none; }
.hero-pause.is-paused .ico-pause { display: none; }
.hero-pause.is-paused .ico-play { display: inline-flex; }

/* ===== Start here ===== */
.paths { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.path { display: flex; flex-direction: column; gap: 16px; min-height: 200px; padding: 24px; color: var(--card-text); }
.path:hover { text-decoration: none; }
.path-ico { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: linear-gradient(145deg, #2C6AD6, #1F5BC4); color: #fff; box-shadow: 0 10px 22px rgba(31, 91, 196, 0.35); }
.path-txt strong { display: block; font: 700 19px/1.2 var(--sans); }
.path-txt small { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--card-muted); }
.path-go { margin-top: auto; color: var(--gold-text); transition: transform .25s ease; }
.path:hover .path-go { transform: translateX(6px); }
.path-primary { background: linear-gradient(150deg, #F5CB5E, #E5B53B 60%, #D9A02B); color: #0B1530; border-color: transparent; }
.path-primary .path-ico { background: var(--navy-2); color: var(--gold); box-shadow: none; }
.path-primary .path-txt small { color: #4A3C0E; }
.path-primary .path-go { color: var(--navy-2); }
@media (max-width: 1099px) { .paths { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) {
  .paths { grid-template-columns: 1fr; gap: 12px; }
  .path { flex-direction: row; align-items: center; min-height: 0; padding: 16px; gap: 14px; }
  .path-ico { flex: 0 0 48px; width: 48px; height: 48px; }
  .path-go { margin: 0 0 0 auto; }
}

/* ===== Program tiles (home) ===== */
.ptiles { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.ptile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; background: var(--img-bg); box-shadow: var(--shadow); color: #fff; }
.ptile:hover { text-decoration: none; }
.ptile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.ptile:hover img { transform: scale(1.07); }
.ptile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 12, 29, 0.25) 0%, rgba(5, 12, 29, 0) 34%, rgba(5, 12, 29, 0.92) 100%); }
.ptile-top { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; align-items: center; justify-content: space-between; }
.ptile-no { font: 500 13px var(--mono); padding: 4px 11px; border-radius: 999px; background: rgba(7, 18, 42, 0.55); backdrop-filter: blur(8px); }
.ptile-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px); }
.ptile-body { position: absolute; left: 20px; right: 20px; bottom: 20px; padding-right: 54px; }
.ptile-body strong { display: block; font: 600 clamp(22px, 2.2vw, 27px)/1.1 var(--serif); }
.ptile-body small { display: flex; align-items: center; gap: 6px; margin-top: 8px; font: 500 12px var(--mono); color: #E3EAF8; }
.ptile-go { position: absolute; right: 0; bottom: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); transition: transform .35s ease; }
.ptile:hover .ptile-go { transform: rotate(-45deg) scale(1.08); }
@media (min-width: 600px) and (max-width: 1099px) { .ptiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) {
  .ptiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(240px, 76%); overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ptiles::-webkit-scrollbar { display: none; }
  .ptile { scroll-snap-align: start; }
}

/* ===== Student work: gallery grid ===== */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; isolation: isolate; background: var(--img-bg); box-shadow: var(--shadow); color: #fff; }
.tile:hover { text-decoration: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: scale(1.06); }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 12, 29, 0.35) 0%, rgba(5, 12, 29, 0) 30%, rgba(5, 12, 29, 0.85) 100%); transition: opacity .3s ease; }
.tile-chips { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tile-chips-inline { position: static; margin: 0 0 14px; }
.tile-chip { font: 500 11px var(--mono); letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; background: rgba(7, 18, 42, 0.62); color: #F4F6FB; border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tile-ratio { background: rgba(229, 181, 59, 0.9); color: var(--on-gold); border-color: transparent; }
.tile-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; background: rgba(229, 181, 59, 0.92); color: var(--on-gold); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transition: transform .3s ease; }
.tile:hover .tile-play { transform: scale(1.1); }
.tile-body { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; flex-direction: column; gap: 2px; transition: transform .35s ease; }
.tile-title { font: 600 clamp(17px, 2vw, 22px)/1.15 var(--serif); }
.tile-meta { font: 500 12px var(--mono); color: #D4DDF0; }
.bento:not(.bento-flat) .tile:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.bento:not(.bento-flat) .tile:first-child .tile-title { font-size: clamp(24px, 5vw, 34px); }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .bento:not(.bento-flat) .tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .tile-body { transform: translateY(6px); }
  .tile:hover .tile-body, .tile:focus-visible .tile-body { transform: none; }
}
.filter-sticky { position: sticky; top: var(--bar-h); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.page-hero:has(+ .filter-wrap) { padding-bottom: calc(clamp(32px, 5vw, 56px) + 34px); }
.filter-wrap { margin-top: -34px; margin-bottom: 8px; position: relative; z-index: 2; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.filter-row .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 2px 0; scrollbar-width: none; }
.filter-row .chips::-webkit-scrollbar { display: none; }

/* ===== Application journey ===== */
.journey { list-style: none; display: grid; gap: 20px 16px; grid-template-columns: repeat(6, 1fr); }
.journey li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 18px 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); }
.journey-num { position: absolute; top: -14px; left: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #F2C453, #E5B53B); color: var(--on-gold); font: 600 14px var(--mono); box-shadow: 0 0 0 5px var(--bg); }
.section-alt .journey-num { box-shadow: 0 0 0 5px var(--surface-alt); }
.journey-ico { color: var(--gold-text); }
.journey-label { font-weight: 700; line-height: 1.25; }
.journey-cta { margin: 36px 0 0; }
@media (max-width: 1099px) { .journey { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 599px) {
  .journey { grid-template-columns: 1fr; gap: 14px; }
  .journey li { flex-direction: row; align-items: center; padding: 16px 16px 16px 58px; }
  .journey-num { top: 50%; left: 14px; margin-top: -15px; }
}

/* ===== Split (about) and points ===== */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; } }
.split-media { position: relative; margin: 0; }
.split-media::before { content: ''; position: absolute; inset: 18px -14px -14px 18px; border: 2px solid var(--gold); border-radius: var(--r-lg); opacity: 0.55; z-index: 0; }
.split-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; max-height: 600px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-hover); }
/* Floating program cards over the studio photo */
.float-cards { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fcard { position: absolute; max-width: calc(100% - 24px); }
.fcard a { pointer-events: auto; display: flex; align-items: center; gap: 12px; width: max-content; max-width: 100%; padding: 8px 18px 8px 8px; border-radius: 18px; color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07)); border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  animation: float-y 8s ease-in-out infinite; transition: border-color .2s ease; }
.fcard a:hover { text-decoration: none; border-color: var(--gold); }
.fc-1 { top: 8%; left: 12px; }
.fc-2 { top: 40%; right: 12px; }
.fc-3 { top: 72%; left: 12px; }
.fc-2 a { animation-delay: -2.6s; }
.fc-3 a { animation-delay: -5.2s; }
.fc-ico { flex: 0 0 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(31, 91, 196, 0.55); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
.fc-txt { display: flex; flex-direction: column; min-width: 0; }
.fc-txt strong { font: 700 15px/1.15 var(--sans); }
.fc-txt small { font: 500 11px var(--mono); color: rgba(255, 255, 255, 0.78); letter-spacing: 0.08em; }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (min-width: 900px) {
  .fc-1 { top: 9%; left: -26px; }
  .fc-2 { top: 42%; right: -30px; }
  .fc-3 { top: auto; bottom: 8%; left: 7%; }
  .fc-txt strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .fcard a { animation: none; } }
.points { list-style: none; display: grid; gap: 18px; margin: 28px 0; }
.points li { display: flex; gap: 16px; align-items: flex-start; }
.points-ico { flex: 0 0 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--card-solid); border: 1px solid var(--border); color: var(--gold-text); box-shadow: var(--shadow); }
.points strong { display: block; font-size: 17px; }
.points p { margin: 2px 0 0; font-size: 15px; }

/* ===== Careers panels ===== */
.two-up { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.panel { padding: 26px; }
.panel-h { display: flex; align-items: center; gap: 12px; font: 700 18px var(--sans); margin: 0 0 14px; }
.panel-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #2C6AD6, #1F5BC4); color: #fff; }
.list-link { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 16px; margin-top: 10px; overflow: hidden; padding-right: 12px; background: rgba(255, 255, 255, 0.04); transition: border-color .2s ease, transform .2s ease; }
.list-link:hover { text-decoration: none; border-color: var(--gold); transform: translateX(4px); }
.list-icon { flex: 0 0 54px; align-self: stretch; min-height: 54px; background: var(--navy-2); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.list-name { flex: 1 1 auto; font-weight: 600; }

/* ===== Call to action, flash ===== */
.cta-band { background: linear-gradient(120deg, #0A1C3F, #12306E); color: var(--on-navy); border-top: 1px solid var(--navy-border); }
.cta-image { background: linear-gradient(100deg, rgba(5, 12, 29, 0.94), rgba(5, 12, 29, 0.66)), url(../img/lbx.jpg) center 30% / cover; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.cta-text { display: flex; align-items: center; gap: 18px; }
.cta-title { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; margin: 0; }
.cta-title em { color: var(--gold); }
.cta-sub { margin: 8px 0 0; color: var(--on-navy-muted); }
.flash { padding: 12px 0; font-weight: 600; }
.flash-success { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--err-bg); color: var(--err); }
.flash-info { background: var(--img-bg); color: var(--text); }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: var(--on-navy); border-top: 2px solid var(--gold); }
.footer-grid { display: grid; gap: 36px 32px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: 28px; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr; }
.footer-tagline { font-family: var(--serif); font-size: 24px; line-height: 1.25; margin: 18px 0 20px; max-width: 320px; }
.footer-tagline em { color: var(--gold); }
.footer-h { font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.site-footer .plain a { color: var(--on-navy-muted); }
.site-footer .plain a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-navy-muted); font-size: 15px; }
.footer-contact svg { flex: 0 0 18px; margin-top: 3px; color: var(--gold); }
.footer-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.footer-social a { display: inline-block; padding: 6px 14px; border: 1px solid var(--navy-border); border-radius: 999px; font-size: 13px; color: var(--on-navy); }
.footer-social a:hover { text-decoration: none; border-color: var(--gold); color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 28px; margin-top: 8px; border-top: 1px solid var(--navy-border); font-size: 13px; color: var(--on-navy-muted); }
@media (max-width: 1099px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 559px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } .footer-bottom { flex-direction: column; } }

/* ===== Programs ===== */
.pcard-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.pcard { display: flex; flex-direction: column; overflow: hidden; color: var(--card-text); transition: transform .3s ease, box-shadow .3s ease; }
.pcard:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-hover), inset 0 1px 0 var(--glass-hi); }
.pcard-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--img-bg); }
.pcard-img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover .pcard-img { transform: scale(1.06); }
.pcard-badge { position: absolute; left: 20px; bottom: -22px; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, #2C6AD6, #1F5BC4); color: #fff; box-shadow: 0 10px 22px rgba(31, 91, 196, 0.4); border: 2px solid var(--card-solid); }
.pcard-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 36px 22px 22px; }
.pcard-body h3 { font-size: 26px; }
.pcard-sum { margin: 10px 0 0; font-size: 15px; color: var(--card-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 16px 0 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.meta-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--card-muted); }
.meta-list strong { color: var(--card-text); }
.meta-list svg { flex: 0 0 18px; margin-top: 2px; color: var(--gold-text); }
.pcard-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--link); }
.pcard:hover .pcard-cta svg { transform: translateX(5px); }
.pcard-cta svg { transition: transform .2s ease; }
.badge-round { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(180deg, #2C6AD6, #1F5BC4); color: var(--on-blue); display: inline-flex; align-items: center; justify-content: center; }
.gold-rule { display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--gold); margin: 14px 0; }

/* Program detail */
.pdetail { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 64px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--navy-border);
  background: radial-gradient(900px 420px at 90% -20%, rgba(31, 91, 196, 0.5), transparent 62%), radial-gradient(640px 300px at 0% 120%, rgba(229, 181, 59, 0.18), transparent 62%), var(--navy); }
.pdetail-grid { display: grid; gap: 32px; align-items: center; }
.pdetail .lead { color: var(--on-navy-muted); }
.pdetail-media { position: relative; margin: 0; }
.pdetail-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--navy-border); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.pdetail-media figcaption { margin-top: 10px; font: 500 12px var(--mono); color: var(--on-navy-muted); }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0 0; }
.fact { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--navy-border); }
.fact dt { display: flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-muted); }
.fact dt svg { color: var(--gold); }
.fact dd { margin: 6px 0 0; font-weight: 700; color: #fff; word-break: break-word; }
@media (min-width: 900px) {
  .pdetail-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .pdetail-media img { aspect-ratio: 4 / 5; max-height: 560px; }
}
.program-body { display: grid; gap: 28px; align-items: start; }
.program-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.block { padding: 28px; }
.block-h { display: flex; align-items: center; gap: 12px; font: 700 20px var(--sans); margin: 0 0 18px; }
.block-h svg { color: var(--gold-text); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 12px; font-size: 15px; color: var(--card-muted); }
.check-list svg { flex: 0 0 18px; color: var(--gold-text); margin-top: 3px; }
.modules { list-style: none; }
.modules li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); font-weight: 600; }
.modules li:last-child { border-bottom: 0; }
.module-no { flex: 0 0 auto; font: 500 12px var(--mono); padding: 5px 10px; border-radius: 10px; background: rgba(229, 181, 59, 0.2); color: var(--gold-text); }
.journey-panel { background: linear-gradient(160deg, #F5CB5E, #E5B53B 55%, #D9A02B); color: #0B1530; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.journey-panel-title { display: flex; align-items: center; gap: 10px; font: 500 13px var(--mono); letter-spacing: 0.06em; margin: 0 0 20px; }
.journey-v { list-style: none; }
.journey-v li { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.journey-v li:not(:last-child)::before { content: ''; position: absolute; left: 16px; top: 36px; bottom: 2px; border-left: 2px dashed #0A1C3F; }
.jv-num { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #0A1C3F; color: #E5B53B; display: inline-flex; align-items: center; justify-content: center; font: 500 14px var(--mono); }
.journey-v strong { display: block; }
.journey-v span:not(.jv-num) { display: block; font-size: 13px; color: #43380F; }
@media (min-width: 1000px) {
  .program-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .journey-panel { position: sticky; top: calc(var(--bar-h) + 24px); }
}

/* ===== Student work detail ===== */
.work-hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px);
  background: radial-gradient(900px 480px at 100% 0%, rgba(31, 91, 196, 0.45), transparent 62%), radial-gradient(640px 360px at 0% 110%, rgba(229, 181, 59, 0.18), transparent 62%), var(--navy); }
.work-grid { display: grid; gap: 32px; align-items: center; }
.work-media { position: relative; margin: 0; }
.work-media img { width: 100%; max-height: 78vh; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--navy-border); box-shadow: 0 34px 80px rgba(0, 0, 0, 0.55); }
.viewer-play { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--on-gold); padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
.viewer-play:hover { text-decoration: none; filter: brightness(1.05); }
.work-info .lead { color: var(--on-navy-muted); }
.work-info .credits { margin-bottom: 8px; }
.work-info .alt-note { background: rgba(255, 255, 255, 0.06); color: var(--on-navy-muted); }
.work-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
@media (min-width: 900px) { .work-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }

/* ===== Assistant widget ===== */
.assistant-launch { position: fixed; right: 20px; bottom: 20px; z-index: 36; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #F5CB5E, #E5B53B); color: var(--on-gold); font: 700 15px var(--sans); cursor: pointer; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32); transition: transform .18s ease; }
.assistant-launch:hover { transform: translateY(-2px) scale(1.03); }
.assistant-panel { position: fixed; right: 20px; bottom: 84px; z-index: 50; width: min(380px, calc(100vw - 40px)); max-height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--card-solid); color: var(--card-text); border: 1px solid var(--glass-edge); border-radius: 22px; overflow: hidden; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35); }
[data-theme="light"] .assistant-panel { --card-text: #0E1E40; --card-solid: #FFFFFF; --text: #0E1E40; --field: #FFFFFF; --field-border: #B9C5DD; --img-bg: #E6ECF7; --border: rgba(14, 30, 64, 0.1); }
.assistant-panel[hidden] { display: none; }
.assistant-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--gold); color: var(--on-gold); }
.assistant-title { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.assistant-close { width: 40px; height: 40px; border: 0; background: transparent; color: var(--on-gold); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.assistant-log { flex: 1 1 auto; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.msg { max-width: 88%; padding: 10px 12px; border-radius: 16px; font-size: 14px; }
.msg-bot { align-self: flex-start; background: var(--img-bg); color: var(--card-text); }
.msg-user { align-self: flex-end; background: var(--blue); color: var(--on-blue); }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-form { display: flex; flex-direction: column; gap: 8px; }
.msg-form input { padding: 9px 10px; border: 1px solid var(--field-border); border-radius: 10px; background: var(--field); color: var(--text); font: 14px var(--sans); }
.assistant-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.assistant-form input { flex: 1 1 auto; min-width: 0; padding: 10px 14px; border: 1px solid var(--field-border); border-radius: 999px; background: var(--field); color: var(--text); font: 15px var(--sans); }
@media (max-width: 1099px) {
  .assistant-launch { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 52px; padding: 0; justify-content: center; }
  .assistant-launch span { display: none; }
  .assistant-panel { right: 14px; bottom: calc(150px + env(safe-area-inset-bottom)); max-height: calc(100svh - 230px); width: min(380px, calc(100vw - 28px)); }
}

/* ===== Motion: reveal on scroll, tilt (mouse only), reduced motion ===== */
html.js .reveal { opacity: 0; transform: translateY(26px) scale(0.985); transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .2, 1); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.d1 { transition-delay: .07s; }
html.js .reveal.d2 { transition-delay: .14s; }
html.js .reveal.d3 { transition-delay: .21s; }
html.js .reveal.d4 { transition-delay: .28s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tilt { transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
  html.js .tilt.reveal:not(.in) { transform: translateY(26px) scale(0.985); }
  .tilt:hover { box-shadow: var(--shadow-hover), inset 0 1px 0 var(--glass-hi); }
  .tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.22), transparent 60%); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
  .tilt:hover::after { opacity: 1; }
}
.card .card { background: var(--surface-alt); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.card .card::before { display: none; }
.card::before { content: ''; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(141, 180, 245, 0.7), transparent); opacity: 0.7; pointer-events: none; }

@media (max-width: 640px) {
  :root { --bar-h: 58px; }
  .logo-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .actions { margin-top: 22px; }
  .actions .btn-lg { flex: 1 1 100%; }
  .block { padding: 22px; }
  .partner { min-width: 120px; height: 54px; padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
}
@media print {
  body { background: #fff; padding: 0; }
  .topbar, .site-footer, .rail, .dock, .drawer, .assistant, .no-print, .skip-link, .hero-media { display: none !important; }
  .site-content { padding-left: 0; }
  .card { box-shadow: none; border: 1px solid #999; }
}

/* ===== Forms, admissions, FAQ ===== */
/* Admissions and forms */
.admissions-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .admissions-grid { grid-template-columns: 240px minmax(0, 1fr) 300px; } }
.side-card, .form-card { padding: 24px; }
.side-stack { display: flex; flex-direction: column; gap: 24px; }
.card-h { font-size: 22px; color: var(--gold-text); margin-bottom: 16px; }
.confirm-card .actions + .card-h, .confirm-card .kv + .card-h { margin-top: 36px; }
.confirm-card .kv { margin: 8px -20px 0; }
.card-h2 { font-size: 18px; margin: 28px 0 12px; color: var(--gold-text); }
.card-h2 .muted-small { font-family: var(--sans); font-weight: 400; margin-left: 8px; }
.steps-v { list-style: none; }
.steps-v li { display: flex; gap: 14px; padding-bottom: 22px; position: relative; }
.steps-v li:not(:last-child)::before { content: ''; position: absolute; left: 19px; top: 42px; bottom: 2px; border-left: 2px solid var(--border); }
.step-circle { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-text); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 500; }
.steps-v strong { display: block; }
.steps-v span:not(.step-circle) { display: block; font-size: 13px; color: var(--card-muted); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--card-muted); margin-bottom: 14px; }
.form-grid .field { margin-bottom: 0; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 14px; background: var(--field); border: 1px solid var(--field-border); border-radius: 12px; color: var(--text); font: 400 16px var(--sans); }
.field input[type="file"] { padding: 9px 10px; font-size: 14px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-weight: 600; font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 14px; font-size: 14px; color: var(--card-muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 20px; }
.info-rows { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 4px; }
.info-rows > div { display: flex; gap: 12px; margin-top: 14px; align-items: flex-start; }
.info-rows svg { flex: 0 0 22px; color: var(--gold-text); margin-top: 2px; }
.notice { border-radius: 14px; padding: 14px 16px; margin: 16px 0; font-size: 15px; }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.notice-err { background: var(--err-bg); color: var(--err); }
.notice-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.notice .credits dt { color: inherit; opacity: 0.85; }
.notice .credits dd { color: inherit; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }
.faq summary svg { color: var(--gold-text); flex: 0 0 18px; transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--muted); }


/* ===== Credits ===== */
.credits { margin: 16px 0 0; border-top: 1px solid var(--border); padding-top: 8px; }
.credits div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.credits dt { color: var(--card-muted); }
.credits dd { margin: 0; font-weight: 600; }
.alt-note { margin-top: 16px; padding: 10px 12px; background: var(--img-bg); border-radius: 12px; font-size: 13px; color: var(--card-muted); }


/* ===== About, news, contact, verify ===== */
/* About */
.about-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 900px) { .about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .about-card { padding: 28px; } }
.about-card { padding: 22px; border-radius: 20px; }
.about-card h2 { font-size: 24px; }
.about-card p { margin: 10px 0 0; font-size: 14px; }
.about-num { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--gold-text); }
.about-navy { background: var(--navy); color: var(--on-navy); border: 1px solid var(--navy-border); }
.about-navy .about-num { color: var(--gold); }
.two-up { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.photo-card { overflow: hidden; }
.photo-card img { width: 100%; height: 200px; object-fit: cover; }
.photo-card-body { display: flex; gap: 14px; padding: 22px; }
.photo-card-body h2, .equip-text h2 { font-size: 24px; }
.photo-card-body p, .equip-text p { margin: 6px 0 0; font-size: 14px; }
.photo-card-icon { color: var(--gold-text); flex: 0 0 32px; }
.equip-card { overflow: hidden; display: grid; }
.equip-text { display: flex; gap: 14px; padding: 28px; }
.equip-card img { width: 100%; height: 180px; object-fit: cover; }
@media (min-width: 800px) { .equip-card { grid-template-columns: 1fr 1.5fr; align-items: stretch; } .equip-card img { height: 340px; } .equip-text { align-items: flex-start; padding: 36px; } }

.news-item { padding: 22px; margin-bottom: 16px; }
.news-item h2 a:hover { color: var(--link); text-decoration: none; }
.news-item .link-arrow { margin-top: 4px; }
.prose { font-size: 18px; line-height: 1.75; max-width: 680px; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: 24px; line-height: 1.25; margin: 1.8em 0 0.5em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: 0 0 0.5em; }
.notice-line { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 24px; padding: 12px 14px; border-radius: 12px; background: var(--img-bg); color: var(--card-muted); font-size: 15px; max-width: 680px; }
.notice-line svg { flex: none; margin-top: 2px; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }
.nowrap { white-space: nowrap; }
.news-item h2 { font-size: 26px; margin: 4px 0 6px; }
.contact-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr 1fr; } }
.verify-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 18px; }
.verify-form .field { flex: 1 1 220px; margin: 0; }
.confirm-card { padding: 36px; text-align: left; }
.confirm-icon { color: var(--ok); display: inline-block; margin-bottom: 10px; }
.reference { font-family: var(--mono); font-weight: 500; font-size: 28px; letter-spacing: 0.05em; background: var(--img-bg); padding: 14px 18px; border-radius: 14px; display: inline-block; }


/* ===== Careers: jobs and graduates ===== */
/* Careers: jobs and graduates */
.job-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.job-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; color: var(--card-text); }
.job-card:hover { text-decoration: none; }
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.job-head h3 { font-size: 22px; }
.job-company { color: var(--card-muted); font-size: 15px; margin: 2px 0 0; }
.badges { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.badge-live, .badge-new { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px; }
.badge-live { background: var(--ok-bg); color: var(--ok); }
.badge-live::before, .badge-new::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-new { background: rgba(229, 181, 59, 0.2); color: var(--gold-text); }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--card-muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-snippet { font-size: 14px; color: var(--card-muted); margin: 0; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--img-bg); color: var(--card-text); }
.tag-accent { background: rgba(229, 181, 59, 0.22); color: var(--gold-text); }
.job-facts { display: grid; gap: 0; padding: 8px 22px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.job-facts div { padding: 12px 0; border-bottom: 1px solid var(--border); }
.job-facts dt { font-size: 12px; letter-spacing: 0.06em; color: var(--card-muted); }
.job-facts dd { margin: 2px 0 0; font-weight: 700; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 1px solid var(--field-border); background: var(--card); color: var(--text); cursor: pointer; font-family: var(--sans); }
.share-btn:hover { text-decoration: none; border-color: var(--gold-text); }
.talent-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.talent-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; color: var(--card-text); }
.talent-card:hover { text-decoration: none; }
.avatar-lg { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(160deg, #2C6AD6, #0A1C3F); color: #F4F6FB; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 28px; font-weight: 600; box-shadow: 0 8px 18px rgba(10, 28, 63, 0.3); }
.cert-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px; background: var(--blue); color: var(--on-blue); width: fit-content; }
.talent-card h3 { font-size: 22px; }
.talent-sub { color: var(--card-muted); font-size: 14px; margin: 0; }
.profile-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.profile-top h1 { font-size: clamp(30px, 5vw, 52px); }
.profile-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 1.4fr 1fr; } }


/* ===== Partners marquee ===== */
/* Partners marquee */
.partners { padding: 40px 0 56px; }
.partners-h { text-align: center; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--gold-text); margin: 0 0 22px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; padding: 6px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner { display: inline-flex; align-items: center; justify-content: center; min-width: 150px; height: 64px; padding: 10px 24px; border-radius: 18px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); color: #0E1E40; }
.partner img { height: 40px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter .3s ease, opacity .3s ease; }
.partner:hover img { filter: none; opacity: 1; }
.partner-name { font-family: var(--serif); font-size: 20px; font-weight: 600; white-space: nowrap; }
.partners-invite { text-align: center; padding: 28px; }


/* ===== Typing heading (home) ===== */
/* Typing heading (used on the home page only) */
.typing { position: relative; display: inline-block; }
html.js .typing-ghost { visibility: hidden; }
.typing-live { position: absolute; left: 0; top: 0; width: 100%; display: none; }
html.js .typing-live { display: block; }
.typing-live::after { content: ''; display: inline-block; width: 3px; height: 0.9em; margin-left: 4px; vertical-align: -0.08em; background: var(--gold-text); animation: blink 0.9s steps(2) infinite; }
.typing.is-done .typing-live::after { animation-duration: 1.6s; opacity: 0.5; }
@keyframes blink { 50% { opacity: 0; } }


/* ===== Shared data components (tables, badges, key-values) ===== */
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.stat:hover { text-decoration: none; border-color: var(--gold); }
.stat-n { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1; color: var(--link); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--card-text); }
.table th { text-align: left; font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--card-muted); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.badge-status { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: var(--img-bg); color: var(--card-text); }
.st-new, .st-received { background: var(--gold); color: var(--on-gold); }
.st-in_review, .st-more_info { background: var(--blue); color: var(--on-blue); }
.st-answered, .st-accepted, .st-enrolled { background: var(--ok-bg); color: var(--ok); }
.st-declined, .st-rejected { background: var(--err-bg); color: var(--err); }
.st-pending, .st-sent { background: var(--gold); color: var(--on-gold); }
.st-forwarded { background: var(--blue); color: var(--on-blue); }
.st-published, .st-approved, .st-handled { background: var(--ok-bg); color: var(--ok); }
.partner-thumb { display: block; height: 32px; width: auto; max-width: 120px; object-fit: contain; }
.kv { display: grid; gap: 0; padding: 8px 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kv div { padding: 10px 0; border-bottom: 1px solid var(--border); }
.kv dt { font-size: 13px; color: var(--card-muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.docs-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.docs-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.docs-list svg { color: var(--gold-text); }
.row-actions { white-space: nowrap; }
.row-actions > * { margin-right: 12px; }
.btn-text { background: none; border: 0; padding: 0; font: 600 14px var(--sans); color: var(--link); cursor: pointer; }
.btn-text-danger { color: var(--err); }
.toolbar { margin-bottom: 8px; }
.select-dark { height: 46px; padding: 0 12px; background: var(--field); color: var(--text); border: 1px solid var(--field-border); border-radius: 4px; font: 15px var(--sans); }
.faq-add { margin: 8px 0 16px; }
.faq-add summary { cursor: pointer; margin-bottom: 12px; }
.staff-main .notice { margin: 0; }


/* ===== Finance receipts ===== */
/* Finance */
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt { padding: 28px; max-width: 720px; position: relative; }
.receipt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border-bottom: 2px solid var(--gold); padding-bottom: 14px; margin-bottom: 14px; }
.receipt-head img { width: 72px; height: 72px; border-radius: 50%; }
.receipt-college { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0; }
.receipt-no { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.receipt-no strong { font-size: 18px; }
.receipt-table { margin: 14px 0; }
.receipt-void { opacity: 0.8; }
.receipt-stamp { position: absolute; right: 28px; top: 120px; font-family: var(--mono); font-size: 32px; color: var(--err); border: 3px solid var(--err); padding: 4px 14px; transform: rotate(-8deg); margin: 0; }
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .staff-nav, .assistant, .no-print, .skip-link { display: none !important; }
  .staff-grid { display: block; padding: 0; }
  .card { box-shadow: none; border: 1px solid #999; }
  .receipt { max-width: none; }
}
.fee-form { margin-top: 14px; align-items: end; }
.fee-form .field { margin-bottom: 0; }
