@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --navy: #0b1f38;
  --navy-2: #163556;
  --ink: #1c2838;
  --accent: #1f4e79;
  --gold: var(--accent);
  --gold-2: #d5e2ef;
  --gold-deep: var(--accent);
  --cream: #e7eef5;
  --paper: #ffffff;
  --stone: #d5dee8;
  --muted: #526173;
  --line: rgba(11, 31, 56, 0.12);
  --danger: #8f2d2d;
  --ok: #1e5c45;
  --shadow: 0 16px 40px rgba(11, 31, 56, 0.08);
  --serif: "EB Garamond", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 1440px;
  --gutter: 32px;
  --header: 0px;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: white;
  color: var(--navy);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--navy);
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.55rem; }

p { margin: 0 0 0.8em; }

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.7rem;
}

.lede {
  font-size: 1.2rem;
  max-width: 42rem;
  color: var(--ink);
}

.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

#header { position: sticky; top: 0; z-index: 30; }
.site-header { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.util { background: var(--navy); color: #f6f1e7; font-size: 0.86rem; }
.util a { color: #f6f1e7; text-decoration: none; }
.util a:hover { color: white; }
.util-inner, .primary-inner, .footer-grid { display: flex; align-items: center; }
.util-inner { justify-content: space-between; gap: 16px; min-height: 36px; }
.util-inner p { margin: 0; line-height: 1.2; }
.util nav { display: flex; align-items: center; gap: 18px; }

.mast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 28px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand img { height: 62px; width: auto; }
.brand-rule { width: 1px; align-self: stretch; background: var(--stone); margin: 6px 0; }
.brand-sub { font-family: var(--serif); font-size: 1.15rem; line-height: 1.05; max-width: 7.4rem; }

.mast-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .menu-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--navy);
}
.icon-btn:hover, .menu-btn:hover { border-color: var(--navy); background: var(--cream); }
.menu-btn { display: none; }

.primary { min-width: 0; }
.primary-inner { gap: 2px; min-height: 48px; flex-wrap: nowrap; }
.primary a, .drop > button {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  white-space: nowrap;
}
.primary-inner > a:first-child { padding-left: 0; }
.primary a:hover, .drop > button:hover { color: var(--gold-deep); }
.primary a[aria-current="page"], .drop.is-current > button {
  box-shadow: inset 0 -2px 0 var(--navy);
}
.drop { position: relative; }
.drop-panel {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 260px;
  max-height: min(70vh, 480px);
  overflow: auto;
  padding: 8px;
  display: none;
  z-index: 5;
}
.drop.is-open .drop-panel { display: grid; }
.drop-panel a { padding: 10px 12px; display: block; text-decoration: none; }
.drop-panel a:hover { background: var(--cream); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 650;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-2); color: white; }
.btn-gold { background: white; color: var(--navy); }
.btn-gold:hover { background: var(--cream); color: var(--navy); }
.finder .btn-gold { background: var(--navy); color: white; }
.finder .btn-gold:hover { background: var(--navy-2); color: white; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: white; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: white; }
.btn-line { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: white; }
.hero-dark .btn-line { border-color: rgba(255,255,255,0.55); color: white; }
.hero-dark .btn-line:hover { background: white; color: var(--navy); }

.hero { padding: 0; }
.hero-dark {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 120px);
  display: flex;
  align-items: flex-end;
  padding: 0 0 40px;
  overflow: hidden;
  color: white;
  background: #163024 url("../assets/campus-castle.jpg") center 58% / cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  z-index: -2;
  filter: saturate(1.12) contrast(1.04) brightness(1.04);
}
.hero-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 18, 32, 0.62) 0%, rgba(7, 18, 32, 0.28) 42%, rgba(7, 18, 32, 0.04) 68%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  align-items: end;
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
}
.hero-copy { grid-column: 1 / 8; }
.hero-dark h1 { color: white; margin-bottom: 0.28em; max-width: 12ch; }
.hero-dark .lede { color: white; margin-bottom: 0; }
.hero-dark .kicker { color: #d5e4f2; }
.hero-mark {
  grid-column: 8 / 13;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 22px 8px;
  box-shadow: var(--shadow);
}
.hero-mark img { width: min(100%, 340px); height: auto; margin: 0 auto; }
.hero h1 { margin-bottom: 0.35em; }
.finder {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.6fr 0.8fr auto;
  gap: 8px;
  background: var(--paper);
  padding: 8px;
  border: 1px solid var(--line);
}
.finder input, .finder select, .field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  padding: 12px 12px;
  min-height: 48px;
  border-radius: 2px;
}
.finder select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.field textarea { min-height: 140px; resize: vertical; }
.finder input { border-color: transparent; background: var(--cream); }
.finder input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold-deep);
  outline-offset: 0;
  border-color: transparent;
}

.band { padding: 64px 0; }
.band-navy { background: var(--navy); color: #e7eef5; }
.band-navy h2, .band-navy h3 { color: white; }
.band-navy .kicker { color: #c5d4e6; }
.band-paper { background: var(--paper); }
.band-paper:has(.stats) { padding: 28px 0; }
.intake {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.intake p { margin: 0; max-width: 46rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 18px 22px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 3.2vw, 3.4rem);
  font-weight: 560;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 10px;
}
.stat span { display: block; color: var(--muted); font-size: 0.98rem; max-width: 28ch; }

.index-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.index-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px 18px 16px;
  background: white;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color 160ms ease, transform 160ms ease;
}
.index-list a:hover { border-color: var(--navy); transform: translateY(-2px); }
.index-list a:hover strong { color: var(--accent); }
.index-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1;
  padding-top: 3px;
}
.index-list .index-num { color: var(--accent); }
.index-list strong { display: block; font-size: 1.12rem; color: var(--navy); margin-bottom: 4px; }
.index-list a > span span { display: block; color: var(--muted); font-size: 0.95rem; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.pull {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0;
}
.rule { width: 48px; height: 2px; background: var(--navy); border: 0; margin: 16px 0; }

.campus-grid, .card-grid, .faculty-grid { display: grid; gap: 16px; }
.campus-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid { grid-template-columns: 1.2fr 0.8fr; }
.faculty-grid { grid-template-columns: 1fr 1fr; }
.sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
}
.sheet h3 { margin-bottom: 0.3rem; }
.place-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.place-card img { width: 100%; height: 200px; object-fit: cover; }
.place-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.place-body p { margin: 0; }
.place-body .page-actions { margin-top: auto; padding-top: 8px; }
.campus-grid > .sheet { height: 100%; }
.campus-grid > .sheet:not(.place-card) { display: flex; flex-direction: column; }
.campus-grid > .sheet .btn { margin-top: auto; align-self: flex-start; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 18px; }
.fact { background: white; border: 1px solid var(--line); padding: 16px 16px 6px; height: 100%; }
.fact p { margin: 0 0 10px; }
.place-body h2 { font-size: 1.85rem; }
#news-list { display: grid; gap: 12px; }
.fact strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related a {
  display: block;
  background: white;
  border: 1px solid var(--line);
  padding: 18px 18px 16px;
  text-decoration: none;
  min-height: 100%;
}
.related a:hover { border-color: var(--navy); }
.related strong { display: block; color: var(--navy); margin-bottom: 4px; }
.related span { color: var(--muted); font-size: 0.95rem; }
.toolbar { max-width: 320px; margin-bottom: 22px; }
.course-side { position: sticky; top: 116px; }
.check-panel { display: grid; gap: 12px; }
.tag {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 2px 8px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 6px 6px 0;
}

.dales {
  width: 100%;
  height: auto;
  display: block;
  background: var(--navy);
}
.map-panel { margin: 0; background: var(--navy); }
.map-panel figcaption {
  margin: 0;
  padding: 4px 18px 18px;
  color: #c5d4e6;
  font-size: 0.95rem;
}

.page-head { padding: 0; }
.page-head.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 320px;
  box-sizing: border-box;
  padding: 72px max(var(--gutter), calc((100% - var(--wrap)) / 2)) 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #0b1f38;
  background-image: linear-gradient(90deg, rgba(7, 18, 32, 0.78), rgba(7, 18, 32, 0.28)), url("../assets/town.jpg");
  background-size: cover;
  background-position: center;
}
.page-head,
.page-head p,
.page-head h1,
.page-head .lede,
.page-head .crumb,
.page-head .crumb a { color: white; }
.page-head p { max-width: 42rem; }
.page-head .kicker { color: #d5e4f2; }
.page-head h1 { max-width: 18ch; font-size: clamp(2.4rem, 4vw, 3.6rem); }
.page-head .lede { font-size: 1.12rem; margin-bottom: 0.6em; }
.page-head label, .page-head .field { color: white; }
.page-head .tag { border-color: rgba(255, 255, 255, 0.45); color: white; }
.page-head .btn-navy { background: white; color: var(--navy); }
.page-head .btn-navy:hover { background: var(--cream); color: var(--navy); }
.page-head .btn-line { border-color: rgba(255, 255, 255, 0.7); color: white; }
.page-head .btn-line:hover { background: white; color: var(--navy); }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.page-actions .btn { margin: 0; }
body[data-page="courses"] .page-head.wrap,
body[data-page="course"] .page-head.wrap { background-image: linear-gradient(90deg, rgba(7,18,32,.78), rgba(7,18,32,.25)), url("../assets/seminar.jpg"); }
body[data-page="english"] .page-head.wrap,
body[data-page="entry"] .page-head.wrap { background-image: linear-gradient(90deg, rgba(7,18,32,.78), rgba(7,18,32,.25)), url("../assets/library.jpg"); }
body[data-page="apply"] .page-head.wrap,
body[data-page="visas"] .page-head.wrap,
body[data-page="ready"] .page-head.wrap { background-image: linear-gradient(90deg, rgba(7,18,32,.78), rgba(7,18,32,.25)), url("../assets/town.jpg"); }
body[data-page="accommodation"] .page-head.wrap { background-image: linear-gradient(90deg, rgba(7,18,32,.78), rgba(7,18,32,.25)), url("../assets/room.jpg"); }
body[data-page="campuses"] .page-head.wrap,
body[data-page="about"] .page-head.wrap { background-image: linear-gradient(90deg, rgba(7,18,32,.78), rgba(7,18,32,.25)), url("../assets/campus-castle.jpg"); }
body[data-page="abroad"] .page-head.wrap,
body[data-page="reviews"] .page-head.wrap { background-image: linear-gradient(90deg, rgba(7,18,32,.78), rgba(7,18,32,.25)), url("../assets/seminar.jpg"); }
body[data-page="fees"] .page-head.wrap,
body[data-page="scholarships"] .page-head.wrap,
body[data-page="prospectus"] .page-head.wrap { background-image: linear-gradient(90deg, rgba(7,18,32,.78), rgba(7,18,32,.25)), url("../assets/campus-castle.jpg"); }
body[data-page="countries"] .page-head.wrap,
body[data-page="news"] .page-head.wrap,
body[data-page="events"] .page-head.wrap,
body[data-page="contact"] .page-head.wrap,
body[data-page="dates"] .page-head.wrap,
body[data-page="town"] .page-head.wrap { background-image: linear-gradient(90deg, rgba(7,18,32,.78), rgba(7,18,32,.25)), url("../assets/hero-dales.jpg"); }
body[data-page="research"] .page-head.wrap,
body[data-page="phd"] .page-head.wrap,
body[data-page="library"] .page-head.wrap { background-image: linear-gradient(90deg, rgba(7,18,32,.78), rgba(7,18,32,.25)), url("../assets/library.jpg"); }
body[data-page="sport"] .page-head.wrap,
body[data-page="sustainability"] .page-head.wrap { background-image: linear-gradient(90deg, rgba(7,18,32,.78), rgba(7,18,32,.25)), url("../assets/campus-moor.jpg"); }
body[data-page="partners"] .page-head.wrap,
body[data-page="careers"] .page-head.wrap,
body[data-page="jobs"] .page-head.wrap,
body[data-page="alumni"] .page-head.wrap,
body[data-page="short"] .page-head.wrap { background-image: linear-gradient(90deg, rgba(7,18,32,.78), rgba(7,18,32,.25)), url("../assets/campus-castle.jpg"); }
body[data-page="life"] .page-head.wrap,
body[data-page="wellbeing"] .page-head.wrap,
body[data-page="guide"] .page-head.wrap { background-image: linear-gradient(90deg, rgba(7,18,32,.78), rgba(7,18,32,.25)), url("../assets/seminar.jpg"); }

.mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.mosaic a {
  min-height: 520px;
  background-size: cover;
  background-position: center;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  position: relative;
}
.mosaic a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(7, 18, 32, 0.82));
}
.mosaic a div { position: relative; }
.mosaic h3 { color: white; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.mosaic p { color: #e7eef5; max-width: 28rem; }
.mosaic .kicker { color: #d5e4f2; }
.film {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  background: #071422;
  color: white;
}
.film video { width: 100%; height: 520px; object-fit: cover; background: #000; display: block; }
.film-copy { padding: 64px 48px; display: flex; flex-direction: column; justify-content: center; }
.film-copy h2, .film-copy p { color: white; }
.film-copy .kicker { color: #d5e4f2; }
.poster {
  min-height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 15%, rgba(7, 18, 32, 0.78));
}
.poster .wrap { position: relative; padding-bottom: 56px; }
.poster h2, .poster p, .poster .lede { color: white; }
.poster .kicker { color: #d5e4f2; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.92rem; margin-bottom: 16px; color: var(--muted); }
.crumb a { color: var(--navy); }

.layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  padding: 36px 0 64px;
}
.filters {
  display: grid;
  gap: 12px;
  align-content: start;
  background: white;
  border: 1px solid var(--line);
  padding: 18px;
  position: sticky;
  top: 108px;
}
.filters input, .filters select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  padding: 10px 12px;
}
.filters label, .field { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.course-list { display: grid; gap: 12px; }
.course-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.course-row:hover { border-color: var(--navy); }
.course-row:hover h3 { color: var(--accent); }
.course-row h3 { font-size: 1.55rem; margin: 0 0 4px; }
.course-row p { margin: 0 0 0.35em; }
.course-row p:last-child { margin-bottom: 0; }
.course-meta { color: var(--muted); margin: 0 0 6px; }
.fee { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); white-space: nowrap; }
.count { margin: 0 0 8px; color: var(--muted); }

.prose .steps { margin-top: 8px; }
.prose h2 { margin-top: 1.4em; }
.stack { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream);
}
tr:last-child td { border-bottom: 0; }

.result {
  padding: 16px 18px;
  background: var(--paper);
  border-left: 3px solid var(--navy);
}
.result.ok { border-color: var(--ok); }
.result.bad { border-color: var(--danger); }
.error { color: var(--danger); font-weight: 600; margin: 0; font-size: 0.92rem; }
.field [aria-invalid="true"] { border-color: var(--danger); }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--navy); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.steps b {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 560;
}

figure.sheet, blockquote.quote { margin: 0; }
.quote { margin: 0; }
.quote p { font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; color: var(--navy); }
.quote footer { color: var(--muted); font-size: 0.95rem; }
.card-grid > .quote.sheet { align-self: stretch; }
.card-grid > .sheet:not(.quote) {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-grid > .sheet:not(.quote) > :last-child { margin-top: auto; margin-bottom: 0; }
.card-grid > .sheet:not(.quote) .btn { align-self: flex-start; }
.news-list { display: grid; gap: 12px; margin: 18px 0 18px; }
.news-list a {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: white;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.news-list a:hover { border-color: var(--navy); }
.news-list .kicker { margin: 0; }
.news-list strong { color: var(--navy); font-size: 1.2rem; font-weight: 650; }
.news-list a:hover strong { color: var(--accent); }
.news-list a > span:last-child { color: var(--muted); font-size: 0.98rem; }
.section-more { margin: 22px 0 0; }

.module {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.plan-bar {
  position: sticky;
  bottom: 12px;
  background: var(--navy);
  color: #f6f1e7;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.search-panel, .drawer {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 32, 0.46);
  z-index: 40;
  display: grid;
  align-items: start;
  justify-content: center;
  padding: 8vh 16px 16px;
}
.drawer { justify-content: end; padding: 0; }
.search-card, .drawer-card {
  background: var(--paper);
  width: min(680px, 100%);
  padding: 22px;
  box-shadow: var(--shadow);
}
.drawer-card { width: min(420px, 100%); height: 100%; overflow: auto; }
.search-card input { width: 100%; min-height: 52px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 1.3rem; }
.search-card ul, .drawer-card ul { list-style: none; padding: 8px 0 0; margin: 0; }
.search-card li a, .drawer a { display: block; padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer nav { display: grid; }
.drawer h2 { margin-top: 18px; font-size: 1.3rem; }

.site-footer { background: var(--navy); color: #d5e4f2; padding: 48px 0 20px; }
.site-footer a { color: #f4f7fb; text-decoration: none; }
.site-footer a:hover { color: white; }
.footer-grid {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(220px, 280px) repeat(4, 1fr);
  gap: 36px 48px;
}
.footer-logo {
  display: block;
  height: 64px;
  width: auto;
  background: white;
  padding: 8px 10px;
  margin-bottom: 16px;
}
.site-footer h2 {
  color: white;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer p { margin: 0 0 8px; max-width: 28ch; color: #d5e4f2; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.16);
  margin-top: 36px;
  padding-top: 16px;
  font-size: 0.9rem;
  color: #c5d4e6;
}
.legal p { margin: 0; max-width: none; }
.legal nav { display: flex; gap: 16px; align-items: center; }

.empty { padding: 28px 0; color: var(--muted); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; align-items: stretch; }
.timeline article {
  background: white;
  border: 1px solid var(--line);
  padding: 20px 18px 16px;
  min-height: 100%;
}
.step-no {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
}
.timeline h3 { margin-bottom: 0.35em; }
.timeline p:last-child { margin-bottom: 0; color: var(--muted); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.quote-grid > .quote {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--navy);
  box-shadow: none;
}
.quote-grid > .quote p { margin-top: 4px; }
.quote-grid > .quote footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.card-grid > .quote.sheet {
  align-self: stretch;
  background: var(--navy);
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
}
.card-grid > .quote.sheet p { color: white; }
.card-grid > .quote.sheet footer { color: #c5d4e6; border-top: 1px solid rgba(255,255,255,0.16); margin-top: 22px; padding-top: 14px; }
.country-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.country-row a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: white;
  padding: 16px 16px 14px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.country-row a span {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.country-row a strong { color: var(--navy); font-size: 1.15rem; font-weight: 650; }
.country-row a:hover { border-color: var(--navy); background: var(--navy); }
.country-row a:hover span,
.country-row a:hover strong { color: white; }
.faculty-grid .sheet { border-top: 3px solid var(--navy); height: 100%; box-shadow: none; }
.faculty-grid .sheet p:last-child { margin-bottom: 0; color: var(--muted); }
.band-paper .faq {
  background: var(--navy);
  color: #e7eef5;
  border: 0;
  padding: 26px 26px 10px;
}
.band-paper .faq h3 { color: white; }
.faq details { border-bottom: 1px solid rgba(255,255,255,0.16); padding: 14px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: white;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 8px; color: #d5e4f2; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
  .index-list a:hover { transform: none; }
  .hero-video { display: none; }
}

@media (max-width: 1240px) {
  .mast {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions" "nav nav";
    min-height: 0;
    padding-top: 6px;
  }
  .brand { grid-area: brand; }
  .mast-actions { grid-area: actions; justify-self: end; }
  .primary {
    grid-area: nav;
    border-top: 1px solid var(--line);
  }
  .primary-inner { min-height: 46px; }
  .hero-dark { min-height: calc(100svh - 168px); }
  .index-list, .quote-grid, .related, .country-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .primary { display: none; }
  .brand-sub { display: none; }
  .hero-dark { min-height: calc(100svh - 108px); }
  .hero-copy { grid-column: 1 / -1; }
  .page-head.wrap { min-height: 260px; padding-top: 48px; }
  .filters { position: static; }
  .fact-grid, .related { grid-template-columns: 1fr; }
  .country-row { grid-template-columns: 1fr 1fr; }
  .course-side { position: static; }
  .stats, .campus-grid, .three, .timeline, .quote-grid, .mosaic, .film { grid-template-columns: 1fr; }
  .index-list { grid-template-columns: 1fr; }
  .mosaic a { min-height: 420px; }
  .film video { height: 420px; }
  .mast { grid-template-columns: 1fr auto; column-gap: 12px; min-height: 72px; }
  .split, .layout, .card-grid, .index-list, .faculty-grid, .footer-grid, .two { grid-template-columns: 1fr; }
  .finder { grid-template-columns: 1fr; }
  .intake { flex-direction: column; align-items: flex-start; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stats { border: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 20px)); }
  .util nav { display: none; }
  .stats, .campus-grid, .three, .timeline, .quote-grid, .country-row { grid-template-columns: 1fr; }
  .course-row { grid-template-columns: 1fr; }
  .brand img { height: 48px; }
  h1 { font-size: 2.35rem; }
  .plan-bar { flex-direction: column; align-items: stretch; }
}
