/* =====================================================================
   Somali National University — design system
   Brand tokens follow the SNU Multi-Site Architecture Specification
   (primary blue #237BC1, deep navy #103A61, academic gold #C9A34A,
   light surface #F4F7FA, body text #172B3A).
   Layout breakpoints live in responsive.css.
   ===================================================================== */

:root {
  --navy: #103a61;
  --navy-900: #0a2742;
  --navy-800: #0d3154;
  --blue: #237bc1;
  --blue-600: #1c67a6;
  --blue-700: #17578d;
  --blue-50: #e9f2fb;
  --blue-100: #d3e5f6;
  --gold: #c9a34a;
  --gold-400: #d8b866;
  --gold-700: #8a6a1f;
  --gold-50: #faf4e4;
  --surface: #f4f7fa;
  --ink: #172b3a;
  --ink-2: #33495c;
  --muted: #586a7b;
  --line: #dce4ec;
  --line-2: #e9eef3;
  --white: #fff;
  --success: #1f7a4d;
  --danger: #b42318;

  /* font families and type sizes: see typography.css (loaded last) */
  --font-sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Noto Serif", Georgia, "Times New Roman", serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 58, 97, .06), 0 1px 3px rgba(16, 58, 97, .08);
  --shadow: 0 6px 18px rgba(16, 58, 97, .08), 0 2px 6px rgba(16, 58, 97, .06);
  --shadow-lg: 0 18px 50px rgba(10, 39, 66, .18);
  --header-h: 84px;      /* brand row */
  --nav-h: 56px;         /* desktop navigation bar */
  --sticky-h: var(--nav-h); /* part of the header that stays pinned */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.container { max-width: 1280px; padding-left: clamp(1rem, 3vw, 1.75rem); padding-right: clamp(1rem, 3vw, 1.75rem); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000; background: var(--gold); color: var(--navy-900);
  padding: .7rem 1rem; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.muted { color: var(--muted); }
.small, .small-note { font-size: .875rem; }
.small-note { color: var(--muted); margin-top: 1rem; }
.text-center { text-align: center; }
.lead-text { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .75rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.eyebrow-light { color: var(--gold-400); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 38px; padding: .45rem 1rem; font-size: .875rem; }
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--navy-900); box-shadow: 0 8px 20px rgba(201, 163, 74, .35); }
.btn-outline { border-color: var(--blue-600); color: var(--blue-600); background: transparent; }
.btn-outline:hover { background: var(--blue-600); color: var(--white); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-ghost { background: var(--blue-50); color: var(--blue-700); }
.btn-ghost:hover { background: var(--blue-100); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .92rem;
  color: var(--blue-600); text-decoration: none;
}
.link-arrow::after { content: "\2192"; transition: transform .2s var(--ease); }
a.link-arrow:hover::after, a:hover .link-arrow::after { transform: translateX(4px); }

.badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--blue-50); color: var(--blue-700);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; line-height: 1.5;
}
.badge-gold { background: var(--gold-50); color: var(--gold-700); }
.tag-pending { display: inline-block; margin-left: .4rem; font-size: .7rem; font-weight: 700; color: var(--gold-700); background: var(--gold-50); padding: .1rem .5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy-900); color: #c7d6e6; font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 40px; }
.topbar a { color: #dbe6f2; text-decoration: none; }
.topbar a:hover { color: var(--gold-400); }
.topbar-contact { display: flex; gap: 1.25rem; }
.topbar-contact a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-links { display: flex; gap: 1rem; margin-left: auto; }
.topbar a.topbar-apply { color: var(--gold-400); font-weight: 700; }
.topbar-social { display: flex; gap: .2rem; }
.topbar-social a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.topbar-social a:hover { background: rgba(255, 255, 255, .08); }
.lang-switch { display: inline-flex; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 2px; }
.lang-switch button { border: 0; background: transparent; color: #dbe6f2; font-size: .75rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; }
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--navy-900); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line-2); transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(10, 39, 66, .08); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.site-header { top: calc(-1 * var(--header-h)); }   /* brand row scrolls away, nav bar stays */
.header-nav { border-top: 1px solid var(--line-2); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.brand-emblem { width: 50px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.18rem; color: var(--navy); }
.brand-sub { font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--blue-600); text-transform: uppercase; }

.main-nav { margin-left: -.7rem; }
.nav-list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: static; }
.nav-item.has-drop { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem; min-height: var(--nav-h); padding: 0 .7rem;
  border: 0; background: none; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; position: relative; white-space: nowrap;
}
.nav-link .bi { font-size: .7rem; transition: transform .2s; }
.nav-link::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 10px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--blue-600); }
.nav-link:hover::after, .nav-item.is-open > .nav-link::after, .nav-item.is-active > .nav-link::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-item.is-active > .nav-link { color: var(--navy); }
.nav-item.is-open > .nav-link .bi { transform: rotate(180deg); }

.mega, .dropdown {
  position: absolute; top: 100%; z-index: 950; background: var(--white); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.mega { left: 0; right: 0; border-top: 3px solid var(--gold); }
.dropdown { left: 0; min-width: 280px; border-radius: 0 0 var(--radius) var(--radius); border-top: 3px solid var(--gold); padding: .6rem; }
#menu-centers { min-width: 500px; }
.nav-item.is-open > .mega, .nav-item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: flex; gap: 2.5rem; padding-top: 2rem; padding-bottom: 2.25rem; }
.mega-col { flex: 1 1 0; min-width: 0; }
.mega-title { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.mega ul, .dropdown ul { list-style: none; margin: 0; padding: 0; }
.mega li a, .dropdown li a {
  display: block; padding: .42rem .6rem; margin: 0 -.6rem; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 500;
}
.mega li a:hover, .dropdown li a:hover, .mega li a[aria-current], .dropdown li a[aria-current] { background: var(--blue-50); color: var(--blue-700); }
.dropdown li a { margin: 0; }
.mega-feature {
  flex: 0 0 300px; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); color: var(--white); text-decoration: none;
}
.mega-feature-img { width: 100%; height: 150px; object-fit: cover; }
.mega-feature-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.2rem; font-size: .9rem; color: #d7e3ef; }
.mega-feature-body strong { color: var(--white); font-family: var(--font-serif); font-size: 1.1rem; }
.mega-feature .link-arrow { color: var(--gold-400); }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--navy); font-size: 1.1rem; transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--blue-50); color: var(--blue-700); }
.menu-toggle { display: none; font-size: 1.4rem; }

/* search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(10, 39, 66, .82); backdrop-filter: blur(6px); display: flex; align-items: flex-start; }
.search-overlay-inner { position: relative; margin-top: 12vh; }
.search-form-big { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg); }
.search-label { display: block; font-family: var(--font-serif); font-weight: 700; font-size: 1.6rem; color: var(--navy); margin-bottom: 1rem; }
.search-field { display: flex; align-items: center; gap: .6rem; border: 2px solid var(--line); border-radius: 999px; padding: .35rem .35rem .35rem 1.1rem; background: var(--white); }
.search-field:focus-within { border-color: var(--blue); }
.search-field .bi { color: var(--muted); }
.search-field input { flex: 1; border: 0; outline: 0; min-width: 0; font-size: 1.05rem; padding: .5rem 0; background: transparent; }
.search-hints { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.search-close { position: absolute; top: -56px; right: 12px; background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .4); }

/* mobile nav */
.mobile-nav { position: fixed; inset: 0; z-index: 1300; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(10, 39, 66, .55); }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: var(--white);
  display: flex; flex-direction: column; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slideIn .28s var(--ease);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line-2); }
.brand-mini { display: flex; align-items: center; gap: .6rem; font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 1.2rem; }
.mobile-search { display: flex; margin: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.mobile-search input { flex: 1; min-width: 0; border: 0; padding: .7rem 1rem; outline: 0; }
.mobile-search button { border: 0; background: var(--blue-600); color: var(--white); width: 48px; }
.m-list { list-style: none; margin: 0; padding: 0 .75rem; }
.m-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 .6rem;
  border: 0; border-bottom: 1px solid var(--line-2); background: none; color: var(--navy); font-weight: 700; font-size: 1.02rem; text-decoration: none; text-align: left;
}
.m-toggle[aria-expanded="true"] .bi { transform: rotate(45deg); }
.m-toggle .bi { transition: transform .2s; }
.m-sub { list-style: none; margin: 0; padding: .3rem 0 .6rem .6rem; border-bottom: 1px solid var(--line-2); }
.m-sub a { display: block; padding: .55rem .6rem; color: var(--ink-2); text-decoration: none; border-radius: var(--radius-sm); }
.m-sub a:hover { background: var(--blue-50); }
.m-portals { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: 1.25rem; }
.m-portals a { display: flex; align-items: center; gap: .45rem; padding: .6rem .7rem; border-radius: var(--radius-sm); background: var(--surface); color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9rem; }
.m-lang { margin: 0 1.25rem 1.5rem; background: var(--surface); align-self: flex-start; }
.m-lang button { color: var(--navy); padding: .45rem 1rem; font-size: .85rem; }
body.menu-open { overflow: hidden; }

/* ---------- hero slider ---------- */
.hero { position: relative; height: clamp(540px, 80vh, 780px); background: var(--navy-900); overflow: hidden; color: var(--white); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-img { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 39, 66, .92) 0%, rgba(10, 39, 66, .72) 38%, rgba(10, 39, 66, .18) 75%), linear-gradient(0deg, rgba(10, 39, 66, .7), transparent 45%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-bottom: 120px; }
.hero-content > * { max-width: 660px; }
.hero-title { font-family: var(--font-serif); font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.07; color: var(--white); margin-bottom: 1rem; }
.hero-text { font-size: clamp(1.02rem, 1.4vw, 1.22rem); color: #dbe6f2; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-slide.is-active .hero-content > * { animation: heroUp .9s var(--ease) both; }
.hero-slide.is-active .hero-content > *:nth-child(2) { animation-delay: .08s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { animation-delay: .16s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { animation-delay: .24s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 78px; z-index: 3; }
.hero-controls-inner { display: flex; align-items: center; gap: .6rem; }
.hero-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(10, 39, 66, .35); color: var(--white); display: grid; place-items: center; }
.hero-btn:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.hero-dots { display: flex; gap: .45rem; padding: 0 .4rem; }
.hero-dots button { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .4); position: relative; }
.hero-dots button::before { content: ""; position: absolute; inset: -10px 0; }
.hero-dots button[aria-selected="true"] { background: var(--gold); }

/* ---------- quick access ---------- */
.quick-access { position: relative; z-index: 5; margin-top: -48px; }
.quick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.quick-grid li + li { border-left: 1px solid var(--line-2); }
.quick-tile { display: flex; align-items: flex-start; gap: .8rem; height: 100%; padding: 1.35rem 1.2rem; text-decoration: none; color: var(--ink); transition: background .2s; }
.quick-tile .bi { font-size: 1.6rem; color: var(--blue-600); transition: transform .25s var(--ease); }
.quick-tile strong { display: block; color: var(--navy); font-size: .98rem; line-height: 1.25; margin-bottom: .2rem; }
.quick-tile small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.quick-tile:hover { background: var(--blue-50); }
.quick-tile:hover .bi { transform: translateY(-3px); color: var(--gold-700); }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding-top: 2.5rem; padding-bottom: 4rem; }
.section-alt { background: var(--surface); }
.section-dark { background: radial-gradient(1200px 600px at 85% -10%, rgba(35, 123, 193, .35), transparent 60%), var(--navy); color: #d5e1ee; }
.section-dark .section-title, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--gold-400); }
.section-dark .section-lead { color: #c2d3e5; }
.section-dark .link-arrow { color: var(--gold-400); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-head > div { max-width: 760px; }
.section-head.text-center { justify-content: center; text-align: center; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: .6rem; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head .link-arrow { flex-shrink: 0; margin-bottom: .4rem; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media { position: relative; }
.about-img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 35% center; border-radius: var(--radius-lg); }
.about-badge { position: absolute; right: -18px; bottom: 28px; background: var(--gold); color: var(--navy-900); padding: 1.1rem 1.3rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 220px; }
.about-badge strong { display: block; font-family: var(--font-serif); font-size: 2.3rem; line-height: 1; }
.about-badge span { font-size: .85rem; font-weight: 600; line-height: 1.3; display: block; margin-top: .3rem; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.vm-card { background: var(--surface); border-radius: var(--radius); padding: 1.3rem 1.4rem; border-top: 3px solid var(--gold); }
.vm-card .bi { font-size: 1.5rem; color: var(--blue-600); }
.vm-card h3, .vm-card h2 { margin: .4rem 0; font-size: 1.15rem; }
.vm-card p { margin: 0 0 .6rem; font-size: .96rem; color: var(--ink-2); }
.vm-grid-lg .vm-card { padding: 1.8rem; }
.vm-grid-lg .vm-card h2 { font-size: 1.5rem; }
.rector-strip {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; margin-top: 4rem;
  padding: 2rem 2.25rem; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--navy), var(--navy-800)); color: #d6e2ef;
}
.rector-strip blockquote { margin: 0; }
.rector-strip blockquote p { font-family: var(--font-serif); font-size: 1.18rem; line-height: 1.5; color: var(--white); margin-bottom: .6rem; }
.rector-strip footer strong { display: block; color: var(--gold-400); }
.rector-strip footer span { font-size: .9rem; }
.rector-strip .btn-outline { border-color: var(--gold); color: var(--gold-400); }
.rector-strip .btn-outline:hover { background: var(--gold); color: var(--navy-900); }

/* avatar with initials fallback */
.avatar { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--navy)); }
.avatar::before { content: attr(data-initials); color: var(--white); font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; background: var(--surface); }
.avatar-lg { width: 96px; height: 96px; }
.avatar-xl { width: 120px; height: 120px; border: 4px solid rgba(201, 163, 74, .8); }
.avatar-xxl { width: 180px; height: 180px; border-radius: var(--radius-lg); }
.avatar-lg::before { font-size: 2rem; }
.avatar-xl::before, .avatar-xxl::before { font-size: 2.6rem; }

/* ---------- stats ---------- */
.stats-band { background: linear-gradient(110deg, var(--blue-700), var(--navy) 70%); color: var(--white); padding: 3.5rem 0 2.5rem; }
.stats-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: .5rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.stat:first-child { border-left: 0; }
.stat-value { display: block; font-family: var(--font-serif); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.1; color: var(--gold-400); font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-weight: 700; margin-top: .3rem; }
.stat-note { display: block; font-size: .78rem; color: #b8cbe0; margin-top: .2rem; }
.stats-source { text-align: center; font-size: .78rem; color: #a9bfd6; margin: 2rem 0 0; }

/* ---------- faculties ---------- */
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.faculty-card {
  display: flex; gap: 1rem; padding: 1.35rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.faculty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); color: var(--ink); }
.faculty-icon { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); font-size: 1.45rem; transition: background .25s, color .25s; }
.faculty-card:hover .faculty-icon { background: var(--navy); color: var(--gold-400); }
.faculty-card-body { display: flex; flex-direction: column; gap: .4rem; }
.faculty-card-title { font-weight: 700; color: var(--navy); line-height: 1.3; }
.faculty-card-text { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.faculty-card .link-arrow { margin-top: auto; font-size: .82rem; }

.faculty-grid-4 { grid-template-columns: repeat(4, 1fr); }
.grad-banner {
  display: flex; align-items: center; gap: 1.3rem; margin-top: 1.1rem; padding: 1.5rem 1.8rem; border-radius: var(--radius);
  background: linear-gradient(110deg, var(--navy), var(--blue-700)); color: #cfdced; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s;
}
.grad-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: #e3ecf5; }
.grad-banner .faculty-icon { background: rgba(255, 255, 255, .1); color: var(--gold-400); }
.grad-banner > span:nth-child(2) { display: flex; flex-direction: column; gap: .2rem; flex: 1; font-size: .93rem; }
.grad-banner strong { color: var(--white); font-family: var(--font-serif); font-size: 1.25rem; }
.grad-banner .link-arrow { color: var(--gold-400); flex-shrink: 0; }

/* ---------- news ---------- */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .84rem; color: var(--muted); margin-bottom: .6rem; }
.meta time { display: inline-flex; align-items: center; gap: .35rem; }
.news-home { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; }
.news-feature { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.news-feature-media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.news-feature-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-feature:hover .news-feature-img { transform: scale(1.04); }
.news-feature-body { padding: 1.6rem 1.8rem 1.8rem; }
.news-feature-title { font-family: var(--font-serif); font-size: 1.55rem; line-height: 1.25; }
.news-feature-title a, .news-card-title a { color: var(--navy); text-decoration: none; }
.news-feature-title a:hover, .news-card-title a:hover { color: var(--blue-600); text-decoration: underline; }
.news-feature p { color: var(--ink-2); }
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.news-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease); }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.news-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-card-img { transform: scale(1.05); }
.news-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; }
.news-card-title { font-size: 1.04rem; line-height: 1.38; margin-bottom: .5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-excerpt { font-size: .9rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-row { flex-direction: row; }
.news-card-row .news-card-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 130px; }
.news-card-row .news-card-body { padding: .9rem 1.1rem; justify-content: center; }
.news-card-row .news-card-excerpt { -webkit-line-clamp: 2; }
.news-list-compact .news-card-row .news-card-media { flex-basis: 180px; min-height: 120px; }
.annc-strip { margin-top: 2.5rem; padding: 1.6rem 1.8rem; border-radius: var(--radius-lg); background: var(--gold-50); border: 1px solid #efe1bb; }
.annc-title { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; }
.annc-strip ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 2rem; }
.annc-strip li { display: flex; gap: .8rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px dashed #e6d4a5; }
.annc-strip time { flex-shrink: 0; font-size: .8rem; font-weight: 700; color: var(--gold-700); width: 82px; }
.annc-strip a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.annc-strip a:hover { text-decoration: underline; }

/* ---------- research ---------- */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border-radius: var(--radius-lg); overflow: hidden; }
.research-item { padding: 1.8rem; background: var(--navy); transition: background .25s; }
.research-item:hover { background: var(--navy-800); }
.research-item .bi { font-size: 1.8rem; color: var(--gold-400); }
.research-item h3 { margin: .7rem 0 .4rem; }
.research-item p { margin: 0; font-size: .94rem; color: #c2d3e5; }
.centre-strip { margin-top: 2.5rem; }
.centre-strip-title { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); }
.centre-strip ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.centre-strip a { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #d5e1ee; text-decoration: none; font-size: .9rem; line-height: 1.35; transition: background .2s, border-color .2s; }
.centre-strip a:hover { background: rgba(255, 255, 255, .12); border-color: var(--gold); }
.centre-strip a .bi { font-size: 1.3rem; color: var(--gold-400); }
.centre-strip strong { color: var(--white); margin-right: .25rem; }

/* ---------- student life ---------- */
.life-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.life-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; color: var(--white); text-decoration: none; }
.life-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.life-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 39, 66, .95) 5%, rgba(10, 39, 66, .1) 60%); }
.life-card:hover .life-img { transform: scale(1.06); }
.life-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.3rem; display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; color: #d7e3ef; }
.life-body strong { font-family: var(--font-serif); font-size: 1.25rem; color: var(--white); }

/* ---------- campuses ---------- */
.campus-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.campus-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s; }
.campus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.campus-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface); }
.campus-body { padding: 1rem; display: flex; flex-direction: column; gap: .25rem; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.campus-body strong { color: var(--navy); font-size: .98rem; }
.anchor-nav { position: sticky; top: var(--sticky-h); z-index: 5; display: flex; gap: .4rem; flex-wrap: wrap; padding: .9rem 0; background: var(--white); border-bottom: 1px solid var(--line-2); margin-bottom: 1rem; }
.anchor-nav a { padding: .45rem 1rem; border-radius: 999px; background: var(--surface); color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9rem; }
.anchor-nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.campus-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; padding: 3rem 0; border-bottom: 1px solid var(--line-2); scroll-margin-top: calc(var(--sticky-h) + 70px); }
.campus-section:nth-of-type(even) .campus-section-media { order: 2; }
.campus-section-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); position: sticky; top: calc(var(--sticky-h) + 90px); background: var(--surface); }
.campus-section-body h2 { font-size: 2rem; }
.contact-mini { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .45rem; font-size: .94rem; }
.contact-mini li { display: flex; gap: .6rem; align-items: baseline; }
.contact-mini .bi { color: var(--blue-600); }
.campus-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.campus-list a { display: flex; flex-direction: column; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .88rem; }
.campus-list a:hover { border-color: var(--blue); background: var(--blue-50); }
.campus-list strong { color: var(--navy); font-size: 1rem; }

/* ---------- events ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.4rem; }
.event-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease); }
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.event-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.event-card-img { width: 100%; height: 100%; object-fit: cover; }
.event-card-body { display: flex; gap: 1rem; padding: 1.2rem; }
.date-badge { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 72px; border-radius: 12px; background: var(--navy); color: var(--white); line-height: 1; }
.date-badge .d { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; }
.date-badge .m { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--gold-400); margin-top: .2rem; }
.date-badge .y { font-size: .66rem; color: #b8cbe0; margin-top: .15rem; }
.event-card-title { font-size: 1.02rem; line-height: 1.35; margin: .3rem 0 .5rem; }
.event-card-title a { color: var(--navy); text-decoration: none; }
.event-card-title a:hover { color: var(--blue-600); text-decoration: underline; }
.event-meta { list-style: none; padding: 0; margin: 0; font-size: .85rem; color: var(--muted); display: grid; gap: .2rem; }
.event-status:empty { display: none; }
.event-status { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .55rem; border-radius: 999px; background: var(--line-2); color: var(--muted); }
.event-status.is-upcoming { background: #e3f4ea; color: var(--success); }
.event-status.is-ongoing { background: var(--gold-50); color: var(--gold-700); }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin: 0 0 1.5rem; }
.gallery-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery-item a { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover .gallery-img { transform: scale(1.06); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .8rem .6rem; font-size: .8rem; color: var(--white); line-height: 1.35; background: linear-gradient(0deg, rgba(10, 39, 66, .9), transparent); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; pointer-events: none; }
.gallery-item:hover figcaption, .gallery-item a:focus-visible + figcaption { opacity: 1; transform: none; }
.gallery-home .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-home .gallery-item:first-child a { aspect-ratio: auto; height: 100%; }
.lightbox { position: fixed; inset: 0; z-index: 1500; background: rgba(5, 20, 35, .94); display: flex; align-items: center; justify-content: center; padding: 4rem 1rem; }
.lightbox img { max-height: 80vh; width: auto; max-width: min(1200px, 100%); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox figcaption { color: #d5e1ee; margin-top: .9rem; font-size: .95rem; }
.lightbox .lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: var(--white); font-size: 1.2rem; display: grid; place-items: center; }
.lightbox .lb-btn:hover { background: var(--gold); color: var(--navy-900); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 1.4rem; left: 1.4rem; color: #b8cbe0; font-size: .85rem; }

/* ---------- partners ---------- */
.partners-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; }
.sub-title { font-size: 1.15rem; margin: 1.8rem 0 .9rem; color: var(--navy); }
.partners-wrap .sub-title { margin-top: 0; }
.pill-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li { padding: .45rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.country-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.5rem; }
.country-list li { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--line-2); }
.country-list strong { color: var(--blue-600); font-variant-numeric: tabular-nums; }
.member-grid { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.member-grid li { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--radius); background: var(--surface); font-weight: 600; font-size: .93rem; color: var(--navy); }
.member-grid .bi { color: var(--gold-700); font-size: 1.15rem; }
/* memberships with a logo (Settings › Memberships) */
.member-grid li.has-logo { align-items: center; }
.member-logo { flex: none; display: grid; place-items: center; width: 72px; height: 52px; padding: 4px 6px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line, #dce4ec); }
.member-logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.member-name a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.member-name a:hover { text-decoration-thickness: 2px; }
.country-groups { columns: 3 240px; column-gap: 1.5rem; }
.country-group { break-inside: avoid; margin-bottom: 1.4rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.country-group h3 { display: flex; justify-content: space-between; font-size: 1rem; margin-bottom: .5rem; }
.country-group h3 span { color: var(--white); background: var(--blue-600); border-radius: 999px; font-size: .75rem; padding: .1rem .55rem; }
.country-group ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--ink-2); }
.country-group li { padding: .25rem 0; }

/* ---------- CTA band & footer ---------- */
.cta-band { background: linear-gradient(100deg, var(--blue-700), var(--navy) 60%); color: var(--white); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
.cta-title { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; max-width: 640px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.site-footer { background: var(--navy-900); color: #b9cadb; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; gap: 3rem; padding-top: 4rem; padding-bottom: 3rem; }
.footer-logo img { width: 280px; margin-bottom: 1.2rem; }
.footer-brand p { color: #a9bdd1; }
.footer-title { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: #d3e0ec; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); text-decoration: underline; }
.footer-contact { font-style: normal; }
.footer-contact p { display: flex; gap: .7rem; margin-bottom: .7rem; }
.footer-contact .bi { color: var(--gold-400); }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); font-size: 1rem; }
.footer-social a:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); text-decoration: none; }
.footer-social.dark a { color: var(--navy); border-color: var(--line); }
.footer-portals { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.footer-portals a { padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: .82rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; padding-bottom: 1.2rem; padding-right: 5rem !important; font-size: .84rem; color: #8ea6bf; }
.footer-bottom p { margin: 0; }
.back-to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 800; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy-900); box-shadow: var(--shadow); font-size: 1.2rem; }
.lang-notice { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 1100; display: flex; align-items: center; gap: 1rem; max-width: min(720px, calc(100vw - 2rem)); padding: .85rem 1.1rem; border-radius: var(--radius); background: var(--navy); color: #dbe6f2; font-size: .88rem; box-shadow: var(--shadow-lg); border-left: 4px solid var(--gold); }
.lang-notice-close { border: 0; background: transparent; color: var(--white); font-size: 1.4rem; line-height: 1; }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; background: radial-gradient(900px 400px at 90% 0%, rgba(35, 123, 193, .45), transparent 60%), var(--navy); color: #d5e1ee; padding: 2.4rem 0 3.2rem; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(201, 163, 74, .08); }
.page-hero.has-image { padding: 3rem 0 4.5rem; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-image .page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 39, 66, .95), rgba(10, 39, 66, .75) 55%, rgba(10, 39, 66, .45)); }
.page-hero-inner { position: relative; z-index: 2; }
.page-title { color: var(--white); font-size: clamp(2rem, 4vw, 3.1rem); max-width: 900px; margin: .4rem 0 .6rem; }
.page-lead { font-size: 1.15rem; max-width: 760px; color: #cfdced; margin: 0; }
.hero-meta { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .92rem; color: var(--gold-400); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0 0 1.2rem; font-size: .85rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .3rem; color: #b8cbe0; }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { color: #dbe6f2; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-400); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--gold-400); font-weight: 600; }

/* ---------- page layout & sidebar ---------- */
.page-layout { padding-top: 3rem; padding-bottom: 4.5rem; }
.page-layout.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3.5rem; align-items: start; }
.page-content { min-width: 0; }
.sidebar { display: grid; gap: 1.2rem; }
.side-nav { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-nav-title { margin: 0; padding: .9rem 1.1rem; background: var(--navy); color: var(--white); font-weight: 700; font-size: .95rem; }
.side-nav ul { list-style: none; margin: 0; padding: .4rem; }
.side-nav a { display: block; padding: .55rem .75rem; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-size: .92rem; border-left: 3px solid transparent; }
.side-nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.side-nav a[aria-current] { background: var(--blue-50); color: var(--navy); font-weight: 700; border-left-color: var(--gold); }
.side-card { padding: 1.2rem 1.25rem; border-radius: var(--radius); background: var(--surface); font-size: .92rem; }
.side-card p:last-child { margin-bottom: 0; }
.side-card-title { font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.side-card-accent { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0 0 1rem; font-size: .9rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; }
.kv-lg { grid-template-columns: 1fr; gap: .1rem; }
.kv-lg dt { margin-top: .6rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- prose & content blocks ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .94rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.block-title { font-size: clamp(1.45rem, 2.2vw, 1.85rem); margin: 3rem 0 1.1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); position: relative; scroll-margin-top: calc(var(--sticky-h) + 1rem); }
.block-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--gold); }
.page-content > .block-title:first-child, .page-content > .prose:first-child > h2:first-child { margin-top: 0; }
.callout { padding: 1rem 1.3rem; border-left: 4px solid var(--blue); background: var(--blue-50); border-radius: 0 var(--radius) var(--radius) 0; color: var(--navy); font-weight: 500; }
.source-note { display: flex; gap: .5rem; align-items: flex-start; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--muted); }
.placeholder-box { display: flex; gap: 1rem; padding: 1.2rem 1.4rem; margin: 1.5rem 0; border: 2px dashed #d9c38a; border-radius: var(--radius); background: var(--gold-50); color: var(--ink-2); font-size: .93rem; }
.placeholder-box .bi { font-size: 1.4rem; color: var(--gold-700); }
.placeholder-box strong { color: var(--gold-700); display: block; margin-bottom: .2rem; }
.placeholder-box p { margin: 0; }
.notice-card { display: flex; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--blue-100); margin-bottom: 2rem; }
.notice-card .bi { font-size: 1.6rem; color: var(--blue-600); }
.notice-card p { margin: .2rem 0 0; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .5rem; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05em; color: var(--success); font-size: 1.05rem; }
.col-list { list-style: none; padding: 0; margin: 0 0 1.2rem; columns: 2 260px; column-gap: 2rem; }
.col-list li { break-inside: avoid; padding: .5rem 0 .5rem 1.3rem; border-bottom: 1px solid var(--line-2); position: relative; }
.col-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tag-list li { font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-weight: 600; }

.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin: 2rem 0; }
.fact { padding: 1.2rem; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--blue); }
.fact strong { display: block; font-family: var(--font-serif); font-size: 2rem; color: var(--navy); line-height: 1.1; }
.fact span { font-size: .87rem; color: var(--muted); }
.cal-glance { margin: 1.5rem 0; }
.cal-glance .fact strong { font-size: 1.15rem; line-height: 1.3; margin-bottom: .3rem; }
.cal-term { margin: 2rem 0 .6rem; color: var(--navy); }
.cal-table { table-layout: fixed; }
.cal-table th:nth-child(1) { width: 27%; }
.cal-table th:nth-child(2) { width: 18%; }
.cal-table th:nth-child(4) { width: 14%; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.link-cards a { display: flex; flex-direction: column; gap: .3rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); font-size: .9rem; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.link-cards a:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.link-cards .bi { font-size: 1.5rem; color: var(--blue-600); margin-bottom: .3rem; }
.link-cards strong { color: var(--navy); font-size: 1.05rem; }
.card-grid { display: grid; gap: 1.1rem; margin: 1.2rem 0 1.5rem; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.info-card { padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.info-card h3 { font-size: 1.05rem; margin: .6rem 0 .4rem; }
.info-card p { font-size: .93rem; color: var(--ink-2); margin-bottom: .5rem; }
.info-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); font-size: 1.3rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

/* history */
.timeline { list-style: none; padding: 0; margin: 1rem 0 2rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 70px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 2rem; padding: .8rem 0; }
.tl-item::before { content: ""; position: absolute; left: 64px; top: 1.15rem; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--gold); }
.tl-year { font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.tl-item p { margin: .2rem 0 0; padding: .9rem 1.1rem; background: var(--surface); border-radius: var(--radius); }
.year-grid { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.year-grid li { display: flex; gap: .7rem; align-items: center; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; color: var(--navy); }
.year-grid span { font-family: var(--font-serif); color: var(--blue-600); font-weight: 700; }
.num-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.num-list li { display: flex; gap: 1rem; padding: 1.2rem; border-radius: var(--radius); background: var(--surface); }
.num-list .num { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold-400); font-weight: 700; }
.num-list h3 { font-size: 1.02rem; margin: .3rem 0; }
.num-list p { margin: 0; font-size: .93rem; color: var(--ink-2); }
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.goal-card { position: relative; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.goal-card .bi { font-size: 1.7rem; color: var(--blue-600); }
.goal-card h3 { margin: .7rem 0 .4rem; }
.goal-card p { font-size: .93rem; color: var(--ink-2); margin: 0; }
.goal-num { position: absolute; top: .6rem; right: 1rem; font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700; color: var(--line-2); line-height: 1; }
.info-card .goal-num { position: static; display: block; font-size: 1.8rem; color: var(--gold); }

/* leadership */
.rector-feature { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; padding: 2rem; border-radius: var(--radius-lg); background: var(--surface); }
.leader-role { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-600); margin-bottom: .3rem; }
.leader-name-lg { font-size: 1.9rem; margin-bottom: .6rem; }
.leader-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.5rem; }
.leader-card { display: flex; gap: 1.2rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.leader-card p { font-size: .9rem; color: var(--ink-2); margin-bottom: .5rem; }
.leader-name { font-size: 1.08rem; margin-bottom: .4rem; }
.leader-name a { color: var(--navy); text-decoration: none; }
.leader-name a:hover { text-decoration: underline; color: var(--blue-600); }
.profile-head { display: flex; gap: 1.8rem; align-items: center; margin-bottom: 1.5rem; }
.msg-greeting { font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); font-weight: 700; }
.signature { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* governance org chart */
.org-chart { display: flex; flex-direction: column; align-items: center; padding: 2rem 1rem; border-radius: var(--radius-lg); background: var(--surface); }
.org-node { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .8rem 1.1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); font-weight: 700; color: var(--navy); font-size: .95rem; text-decoration: none; box-shadow: var(--shadow-sm); }
.org-node small { font-weight: 500; color: var(--muted); font-size: .76rem; margin-top: .15rem; }
.org-top { background: var(--navy); color: var(--white); border-color: var(--navy); min-width: 280px; }
.org-top small { color: #c2d3e5; }
.org-rector { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }
.org-rector small { color: #dbe9f6; }
.org-council { border-style: dashed; }
.org-line { width: 2px; height: 26px; background: var(--gold); }
.org-row-mid { display: flex; gap: 1.5rem; align-items: center; }
.org-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; width: 100%; }
.org-dep a { color: var(--navy); text-decoration: none; font-size: .86rem; }
.org-dep { justify-content: center; border-top: 3px solid var(--gold); }
.org-row-base { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.org-base { background: var(--gold-50); border-color: #ecdcae; }
.org-base:hover, .org-dep:hover { border-color: var(--blue); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 1rem 0 1.5rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
.data-table th { background: var(--navy); color: var(--white); text-align: left; padding: .8rem 1rem; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.data-table td { padding: .75rem 1rem; border-top: 1px solid var(--line-2); vertical-align: top; }
.data-table tbody tr:nth-child(even) { background: var(--surface); }
.data-table tbody tr:hover { background: var(--blue-50); }

/* faculty detail */
.dean-card { display: flex; flex-wrap: wrap; gap: 1.3rem; align-items: center; padding: 1.5rem; margin: 2rem 0; border-radius: var(--radius-lg); background: var(--surface); }
.dean-card > div { flex: 1; min-width: 200px; }
.dean-name { font-size: 1.35rem; margin-bottom: .2rem; }
.dean-card p { margin: 0; }
.dept-list { display: grid; gap: .9rem; }
.dept-item { padding: 1.1rem 1.3rem; border-left: 4px solid var(--blue); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.dept-item h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.dept-item p { margin: 0; font-size: .93rem; color: var(--ink-2); }
.program-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.program-card { display: flex; flex-direction: column; gap: .45rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); font-size: .88rem; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.program-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.program-card .badge { align-self: flex-start; }
.program-card strong { color: var(--navy); font-size: 1rem; line-height: 1.35; }

/* filters */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; padding: 1rem; border-radius: var(--radius); background: var(--surface); margin-bottom: 1rem; }
.filter-bar input, .filter-bar select { min-height: 46px; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.filter-bar input { flex: 1 1 260px; min-width: 0; }
.filter-bar select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.filter-bar input:focus, .filter-bar select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.filter-count { margin-left: auto; font-size: .88rem; color: var(--muted); font-weight: 600; }
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.chip span { font-size: .75rem; color: var(--muted); }
.chip:hover { border-color: var(--blue); color: var(--blue-700); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip.is-active span { color: var(--gold-400); }
.empty-state { padding: 2rem; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); }
.program-list { display: grid; gap: .7rem; }
.program-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, background .2s; }
.program-row:hover { border-color: var(--blue-100); background: #fbfdff; }
.program-row h3 { font-size: 1.04rem; margin: .35rem 0 .15rem; }
.program-row h3 a { color: var(--navy); text-decoration: none; }
.program-row h3 a:hover { text-decoration: underline; color: var(--blue-600); }
.program-row p { margin: 0; font-size: .88rem; }
.program-row-meta { display: flex; align-items: center; gap: 1.2rem; flex-shrink: 0; font-size: .86rem; color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: 2rem; }
.pagination button { min-width: 42px; height: 42px; padding: 0 .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-weight: 700; }
.pagination button[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination button:disabled { opacity: .4; cursor: default; }

.step-list { list-style: none; counter-reset: step; padding: 0; margin: 1rem 0; display: grid; gap: .7rem; }
.step-list li { counter-increment: step; position: relative; display: flex; flex-direction: column; padding: 1rem 1.2rem 1rem 4rem; border-radius: var(--radius); background: var(--surface); }
.step-list li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-600); color: var(--white); font-weight: 700; font-size: .95rem; }
.step-list strong { color: var(--navy); }
.step-list span { font-size: .93rem; color: var(--ink-2); }
.step-list-lg { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dept-blocks { display: grid; gap: 1.2rem; }
.dept-block { padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); }
.dept-block h2 { font-size: 1.25rem; font-family: var(--font-sans); }
.dept-block h2 a { color: var(--navy); text-decoration: none; }
.dept-block h2 a:hover { text-decoration: underline; }
.doc-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.doc-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.doc-list .bi { font-size: 1.3rem; color: #c0392b; }
.doc-list a { font-weight: 600; color: var(--navy); }
.doc-list .muted { margin-left: auto; font-size: .82rem; }

/* centres & research */
.centre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.centre-card { display: flex; gap: 1rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.centre-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.centre-card > span:last-child { display: flex; flex-direction: column; gap: .35rem; }
.centre-card .badge { align-self: flex-start; }
.centre-card strong { color: var(--navy); line-height: 1.3; }
.centre-card .muted { font-size: .88rem; line-height: 1.5; }
.pending-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.pending-list li { padding: .7rem 1rem; border-radius: var(--radius-sm); background: var(--surface); font-size: .93rem; }
.centre-logo { padding: 1.2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); margin-bottom: 1.5rem; max-width: 520px; }
.centre-logo-img { width: 100%; height: auto; max-height: 150px; object-fit: contain; }
.area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.area-card { padding: 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); }
.area-card .bi { font-size: 1.5rem; color: var(--blue-600); }
.area-card h3 { margin: .5rem 0 .7rem; font-size: 1.05rem; }
.project-list { display: grid; gap: 1.2rem; }
.project-card { padding: 1.5rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); border-left: 4px solid var(--gold); }
.project-card h2 { font-size: 1.35rem; margin-bottom: .3rem; }
.project-period { font-size: .88rem; color: var(--blue-700); font-weight: 600; }
.project-card .source-note { margin-top: .8rem; padding-top: .6rem; }

/* admissions */
.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.req-card { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); border-top: 4px solid var(--blue); }
.req-card .bi { font-size: 1.6rem; color: var(--blue-600); }
.req-card h2 { font-size: 1.25rem; margin: .5rem 0; }
.req-card .check-list { font-size: .92rem; }
.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.portal-tile { display: flex; flex-direction: column; gap: .25rem; padding: 1.3rem; border-radius: var(--radius); background: var(--navy); color: #c2d3e5; text-decoration: none; font-size: .82rem; transition: transform .2s var(--ease), background .2s; }
.portal-tile:hover { background: var(--blue-700); color: #e6eef7; transform: translateY(-3px); }
.portal-tile .bi { font-size: 1.6rem; color: var(--gold-400); }
.portal-tile strong { color: var(--white); font-size: 1.05rem; }

/* articles */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; padding-top: 2.5rem; padding-bottom: 4.5rem; align-items: start; }
.article-head .breadcrumb li, .article-head .breadcrumb a { color: var(--muted); }
.article-head .breadcrumb [aria-current] { color: var(--blue-700); }
.article-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.18; margin: .4rem 0 1.4rem; }
.lang-tag { font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--gold-50); color: var(--gold-700); }
/* English version of a Somali article: English / Af-Soomaali switch in the article's meta row (main.js) */
.art-lang { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--gold-50); }
.art-lang button { border: 0; background: transparent; color: var(--gold-700); font: inherit; font-size: .72rem; font-weight: 700; line-height: 1.4; padding: .15rem .6rem; border-radius: 999px; cursor: pointer; }
.art-lang button[aria-pressed="true"] { background: var(--gold-700); color: #fff; }
.art-lang button:focus-visible { outline: 2px solid var(--gold-700); outline-offset: 2px; }
.article-figure { margin: 0 0 2rem; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.article-img { width: 100%; max-height: 560px; object-fit: cover; }
.article-body { font-size: 1.08rem; max-width: 760px; }
.article-aside { position: sticky; top: calc(var(--sticky-h) + 1.5rem); display: grid; gap: 1.2rem; }
.related-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .8rem; }
.related-list li { display: flex; flex-direction: column; gap: .15rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.related-list a { font-weight: 600; color: var(--navy); text-decoration: none; line-height: 1.4; font-size: .93rem; }
.related-list a:hover { text-decoration: underline; color: var(--blue-600); }
.related-list time { font-size: .8rem; color: var(--muted); }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 2rem; }
.share-bar span { font-weight: 700; font-size: .85rem; color: var(--muted); margin-right: .3rem; text-transform: uppercase; letter-spacing: .08em; }
.share-bar button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); }
.share-bar button:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.share-bar button.is-copied { background: var(--success); color: var(--white); border-color: var(--success); }
.video-link { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; background: #fdecec; color: #b42318; font-weight: 700; text-decoration: none; }
.related-article { display: flex; flex-direction: column; gap: .2rem; margin: 1.5rem 0; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--gold); }
.related-article .eyebrow { margin-bottom: .2rem; }
.related-article a { font-weight: 700; color: var(--navy); }
.related-article time { font-size: .85rem; color: var(--muted); }

/* notices */
.notice-list { display: grid; gap: 1rem; }
.notice-item { display: flex; gap: 1.2rem; padding: 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.notice-item h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.notice-item p { font-size: .93rem; color: var(--ink-2); margin-bottom: .5rem; }

/* tabs */
.tab-list { display: inline-flex; gap: .3rem; padding: .3rem; border-radius: 999px; background: var(--surface); margin-bottom: 1.6rem; }
.tab-list [role="tab"] { border: 0; background: transparent; padding: .6rem 1.3rem; border-radius: 999px; font-weight: 700; color: var(--ink-2); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--navy); color: var(--white); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 3rem; }
.contact-card { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); border-top: 4px solid var(--gold); }
.contact-card .bi { font-size: 1.6rem; color: var(--blue-600); }
.contact-card h2 { font-size: 1.2rem; margin: .5rem 0; font-family: var(--font-sans); }
.contact-card p { color: var(--muted); font-size: .93rem; }
.contact-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-weight: 600; }
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.contact-layout > *, .contact-grid > * { min-width: 0; }
.contact-card a, .side-card a, .kv dd { overflow-wrap: anywhere; }
.contact-form { padding: 2rem; border-radius: var(--radius-lg); background: var(--surface); }
.contact-form h2 { font-size: 1.6rem; }
.demo-note { display: block; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--gold-50); border: 1px solid #ecdcae; font-size: .87rem; color: var(--ink-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 700; font-size: .9rem; color: var(--navy); }
.field input, .field select, .field textarea { padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .82rem; }
.form-status { margin: 1rem 0 0; font-weight: 600; }
.form-status.ok { color: var(--success); }
.campus-addr { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.campus-addr li { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.campus-addr strong { color: var(--navy); }
.campus-addr span { grid-column: 1; font-size: .87rem; color: var(--muted); }
.campus-addr a { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; font-size: .86rem; }

/* accordion */
.accordion { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc-item h3 { margin: 0; }
.acc-btn { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; padding: 1.05rem 1.3rem; border: 0; background: var(--white); text-align: left; font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.acc-btn:hover { background: var(--blue-50); }
.acc-btn .bi { transition: transform .2s; flex-shrink: 0; color: var(--blue-600); }
.acc-btn[aria-expanded="true"] .bi { transform: rotate(45deg); }
.acc-panel { padding: 0 1.3rem 1.2rem; color: var(--ink-2); }

/* search page */
.search-page-form { max-width: 760px; margin-bottom: 1.5rem; }
.search-summary { color: var(--muted); font-weight: 600; }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; max-width: 860px; }
.search-results li { padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); }
.search-results a { font-weight: 700; color: var(--navy); font-size: 1.08rem; }
.search-results p { margin: .3rem 0 0; font-size: .92rem; color: var(--muted); }
.search-results mark { background: var(--gold-50); color: inherit; padding: 0 .1em; border-radius: 3px; }
.result-meta { display: flex; gap: .6rem; align-items: center; margin-bottom: .3rem; font-size: .8rem; color: var(--muted); }

/* sitemap / 404 */
.sitemap { columns: 2 380px; column-gap: 3rem; }
.sitemap-group { break-inside: avoid; margin-bottom: 2rem; }
.sitemap-group h2 { font-size: 1.3rem; }
.sitemap-group ul { padding-left: 1.1rem; font-size: .93rem; }
.sitemap-group li { margin-bottom: .25rem; }
.notfound { text-align: center; max-width: 640px; margin: 0 auto; }
.notfound .btn-row, .notfound .search-page-form { justify-content: center; margin-left: auto; margin-right: auto; }
.nf-code { font-family: var(--font-serif); font-size: 6rem; font-weight: 700; color: var(--blue-100); line-height: 1; margin: 0; }

/* reveal on scroll (enabled by JS only) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .site-footer, .cta-band, .sidebar, .article-aside, .share-bar, .back-to-top, .hero-controls { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0; }
  .page-title { color: #000; }
  body { font-size: 12pt; }
}

/* long words / URLs and wide legacy tables inside articles */
.article-body, .prose { overflow-wrap: break-word; }
.article-body a { overflow-wrap: anywhere; }
.prose table { display: block; overflow-x: auto; }
.contact-form, .contact-card { min-width: 0; }

