/* Layout: light, airy pages; the blue-black gradient is reserved for the header, footer
   and primary buttons. Editorial serif headings, catalog grids, two-column dossier on detail pages. */
:root {
  /* Page (light) */
  --bg: #f5f7fb;              /* faint blue-white page ground */
  --surface: #ffffff;
  --surface-hi: #eef2f9;
  --line: #e1e6f0;
  --line-hi: #c7d0e2;
  --text: #0c1631;            /* deep navy ink */
  --text-2: #3c4864;
  --muted: #6c7791;
  --accent: #1b3a8c;          /* navy-blue for links, eyebrows, active states */
  --accent-soft: #e8eefb;
  --seal: #8a6824;            /* academic gilt for approval seals */
  --seal-bg: #fbf5e7;
  --seal-line: #ecdcb4;
  --ok: #1f7a55;
  --err: #b4412f;

  /* Blue-black (header, footer, primary buttons) */
  --grad: linear-gradient(120deg, #17306e 0%, #0b1838 48%, #03060e 100%);
  --grad-hover: linear-gradient(120deg, #1f3c85 0%, #10214a 48%, #070b18 100%);
  --on-dark: #eef2fb;
  --on-dark-2: #a9b4cf;
  --dark-line: rgba(160, 180, 230, 0.16);
  --gold: #d8b878;            /* only on the dark gradient */

  --f-display: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-data: "Poppins", "Segoe UI", system-ui, sans-serif;

  --shadow: 0 1px 2px rgba(12, 22, 49, 0.04), 0 8px 24px rgba(12, 22, 49, 0.06);
  --shadow-hi: 0 2px 4px rgba(12, 22, 49, 0.05), 0 16px 40px rgba(12, 22, 49, 0.1);
  --r: 14px;
  --r-sm: 9px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--text); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--f-data);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(25px, 2.8vw, 34px); }
h3 { font-size: 19px; line-height: 1.3; }
h1 em, h2 em { font-style: normal; color: var(--accent); font-weight: 600; }
p { margin: 0; }
.lede { color: var(--text-2); font-size: 17px; max-width: 62ch; }
.muted { color: var(--muted); }
.num { font-family: var(--f-data); font-variant-numeric: tabular-nums; }

/* ---------- Header (blue-black gradient) ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--grad);
  color: var(--on-dark);
  box-shadow: 0 6px 24px rgba(3, 6, 14, 0.18);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; flex-shrink: 0; color: var(--on-dark); }
.brand svg { width: 30px; height: 30px; }
.brand b { font-weight: 700; color: var(--gold); }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 8px; color: var(--on-dark-2); font-size: 14px; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--on-dark); background: rgba(255, 255, 255, 0.07); }
.nav a.active { color: var(--gold); }
.header-search { margin-left: auto; position: relative; flex: 0 1 300px; min-width: 0; }
.header-search input {
  width: 100%; height: 40px; padding: 0 14px 0 38px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--dark-line); color: var(--on-dark); font: inherit; font-size: 14px;
}
.header-search input::placeholder { color: var(--on-dark-2); }
.header-search input:focus { outline: none; border-color: rgba(216, 184, 120, 0.5); background: rgba(255, 255, 255, 0.12); }
.header-search svg { position: absolute; left: 13px; top: 11px; width: 18px; height: 18px; color: var(--on-dark-2); }
.site-header :focus-visible { outline-color: var(--gold); }
.menu-btn { display: none; background: none; border: 1px solid var(--dark-line); border-radius: 8px; padding: 6px 10px; color: var(--on-dark); }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #0a1532; border-bottom: 1px solid var(--dark-line); padding: 10px var(--gutter) 16px;
  }
  .menu-btn { display: block; }
  .header-search { flex: 1 1 auto; }
  .site-header .wrap { gap: 12px; }
  .site-header .brand span { display: none; }
}

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  border: 1px solid var(--line-hi); background: var(--surface); color: var(--text); transition: all .2s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
/* Primary: blue-black gradient */
.btn-gold, .btn-dark { background: var(--grad); color: var(--on-dark); border-color: transparent; box-shadow: 0 6px 18px rgba(11, 24, 56, 0.25); }
.btn-gold:hover, .btn-dark:hover { background: var(--grad-hover); color: #fff; border-color: transparent; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--text-2); border: 1px solid var(--line); background: var(--surface);
  white-space: nowrap;
}
.chip.seal { color: var(--seal); border-color: var(--seal-line); background: var(--seal-bg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 48px); position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-text { min-width: 0; }
.hero-art { position: relative; padding: 0 0 56px 56px; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ha-main { aspect-ratio: 4 / 4.4; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-hi); max-width: 100%; }
.ha-main img { object-position: 35% center; }
.ha-small { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; border: 6px solid var(--surface); box-shadow: var(--shadow-hi); }
.ha-badge { position: absolute; right: -8px; top: 28px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--grad); color: var(--on-dark); box-shadow: 0 14px 34px rgba(3, 6, 14, 0.3); }
.ha-badge b { font-size: 28px; font-weight: 700; color: var(--gold); line-height: 1; }
.ha-badge span { font-size: 12px; line-height: 1.35; color: var(--on-dark-2); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; padding: 0 0 40px 40px; }
  .ha-badge { right: 0; }
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: min(560px, 60%); height: 100%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(27, 58, 140, 0.08), transparent);
}
.hero h1 { max-width: 15ch; margin-block: 18px 22px; }
.hero-search {
  margin-top: 34px; display: flex; gap: 8px; max-width: 620px; padding: 6px;
  border: 1px solid var(--line-hi); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow);
}
.hero-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; font-size: 16px; padding-inline: 18px; }
.hero-search input::placeholder { color: var(--muted); }
.hero-search input:focus { outline: none; }
.hero-quick { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.hero-quick button { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--text-2); font-size: 13px; }
.hero-quick button:hover { border-color: var(--accent); color: var(--accent); }

.ledger {
  margin-top: 8px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-hi); border-bottom: 1px solid var(--line-hi);
}
.ledger div { padding: 22px 20px; border-left: 1px solid var(--line); }
.ledger div:first-child { border-left: 0; padding-left: 0; }
.ledger b { display: block; font-family: var(--f-display); font-size: 36px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--accent); }
.ledger span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ledger div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(44px, 7vw, 84px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head p { margin-top: 10px; }
.link-more { color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Degree index — a typographic list rather than tiles */
.degree-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 28px; border-top: 1px solid var(--line-hi); }
.degree-index button {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; text-align: left;
  padding: 20px 4px; background: none; border: 0; border-bottom: 1px solid var(--line);
  transition: padding .25s, color .2s;
}
.degree-index button:hover { padding-left: 12px; color: var(--accent); }
.degree-index .dname { font-family: var(--f-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.degree-index .dfull { display: block; font-size: 12.5px; color: var(--muted); font-family: var(--f-body); }
.degree-index .dcount { font-family: var(--f-data); font-size: 12px; color: var(--muted); }

/* ---------- Photography ---------- */
.thumb { position: relative; margin: -22px -22px 4px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--surface-hi); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.thumb-badge { position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(255, 255, 255, 0.92); color: var(--text); }
.uni-thumb { aspect-ratio: 16 / 6; }
.uni-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(23, 48, 110, 0.55), rgba(3, 6, 14, 0.35)); }
.uni-card .card-top { margin-top: -44px; position: relative; z-index: 1; align-items: flex-end; }
.uni-card .mono { background: var(--surface); box-shadow: var(--shadow); border: 3px solid var(--surface); width: 60px; height: 60px; }

.deg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.deg-tile { position: relative; aspect-ratio: 4 / 3.3; border: 0; padding: 0; border-radius: var(--r); overflow: hidden; text-align: left; color: #fff; background: var(--surface-hi); box-shadow: var(--shadow); }
.deg-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.deg-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 6, 14, 0) 25%, rgba(8, 18, 44, 0.88) 100%); }
.deg-tile:hover img { transform: scale(1.06); }
.dt-body { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; }
.dt-name { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.dt-full { font-size: 12px; color: rgba(255, 255, 255, 0.8); line-height: 1.35; margin-top: 2px; }
.dt-count { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--gold); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-img, .cta-img { border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-hi); max-width: 100%; }
.split-img img, .cta-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-text { min-width: 0; }
.split-text h2 { margin-top: 10px; }
.cta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-text { min-width: 0; }
.cta-text h2 { margin-block: 10px 12px; }
.cta-img { aspect-ratio: 4 / 3; }
@media (max-width: 800px) { .split, .cta { grid-template-columns: 1fr; } }

.page-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: 40px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); margin-block: 12px 14px; }
.ph-img { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow-hi); max-width: 100%; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 800px) { .page-head { grid-template-columns: 1fr; } .ph-img { aspect-ratio: 21 / 9; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 22px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--line-hi); transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.card h3 { font-size: 18px; }
.card .uni { font-size: 13.5px; color: var(--text-2); margin-top: -4px; }
.card .facts { display: flex; gap: 18px; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.card .facts b { display: block; color: var(--text); font-weight: 500; font-family: var(--f-data); font-size: 13px; }
.card .facts > div { min-width: 0; }
.card .tag { font-size: 13.5px; color: var(--text-2); }
.card-cover { position: absolute; inset: 0; border-radius: inherit; }
.card .cmp {
  position: relative; z-index: 2; align-self: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--muted);
}
.card .cmp:hover { color: var(--accent); border-color: var(--accent); }
.card .cmp.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* University cards */
.uni-card .mono {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 16px; font-weight: 700; color: var(--accent);
  border: 1px solid var(--line-hi); background: var(--accent-soft);
}

/* ---------- Catalog ---------- */
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
.filters {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); display: flex; flex-direction: column; gap: 24px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.filters h4 { margin: 0 0 10px; font-family: var(--f-data); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.filter-list { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; }
.filter-list label { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 6px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.filter-list label:hover { background: var(--surface-hi); }
.filter-list input { accent-color: var(--accent); }
.filter-list .c { margin-left: auto; font-family: var(--f-data); font-size: 11.5px; color: var(--muted); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); }
.seg button { flex: 1; background: none; border: 0; border-radius: 999px; padding: 6px 0; font-size: 13px; color: var(--text-2); }
.seg button.on { background: var(--grad); color: var(--on-dark); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results-bar select, .field select, .field input, .field textarea {
  height: 38px; background: var(--surface); color: var(--text); border: 1px solid var(--line-hi); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px;
}
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: flex; }
  .filter-toggle { display: inline-flex; }
}
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-hi); border-radius: var(--r); background: var(--surface); }

/* ---------- Detail page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 28px; }
.crumbs a:hover { color: var(--accent); }
.d-hero { padding-block: 26px 36px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 20px 40px; align-items: center; }
.dh-text { min-width: 0; }
.dh-img { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-hi); max-width: 100%; }
.dh-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-hero .factstrip { grid-column: 1 / -1; }
@media (max-width: 800px) { .d-hero { grid-template-columns: 1fr; } .dh-img { aspect-ratio: 21 / 9; order: -1; } }
.d-hero h1 { font-size: clamp(30px, 4vw, 48px); margin-block: 14px 14px; max-width: 20ch; }
.d-hero .lede { margin-top: 6px; }
.d-hero .chips { margin-top: 20px; }
.factstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-top: 30px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.factstrip > div { background: var(--surface); padding: 16px 18px; min-width: 0; }
.factstrip span { display: block; font-family: var(--f-data); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.factstrip b { display: block; margin-top: 4px; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }

.dossier { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; padding-block: 40px 80px; align-items: start; }
@media (max-width: 980px) { .dossier { grid-template-columns: 1fr; } }
.d-main { display: flex; flex-direction: column; gap: 52px; min-width: 0; }
.d-sec h2 { font-size: 26px; margin-bottom: 18px; display: flex; align-items: baseline; gap: 14px; }
.d-sec h2 small { font-family: var(--f-data); font-size: 11px; color: var(--muted); letter-spacing: .12em; font-weight: 400; }
.d-sec > p { color: var(--text-2); max-width: 68ch; }
.toc { display: flex; gap: 6px; flex-wrap: wrap; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 5; padding-block: 12px; background: linear-gradient(180deg, var(--bg) 75%, rgba(245, 247, 251, 0)); }
.toc button { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; color: var(--text-2); }
.toc button:hover { color: var(--accent); border-color: var(--accent); }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 28px; border-top: 1px solid var(--line-hi); }
.why > div { padding: 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.why b { display: block; font-family: var(--f-display); font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.why p { font-size: 14px; color: var(--text-2); }

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 10px; height: 6px; border-left: 1.75px solid var(--accent); border-bottom: 1.75px solid var(--accent); transform: rotate(-45deg); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-data); font-size: 13px; color: var(--accent); padding-top: 2px; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.spec-grid div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; background: var(--surface); }

details.acc { border-bottom: 1px solid var(--line); }
details.acc:first-of-type { border-top: 1px solid var(--line); }
details.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 2px; font-weight: 600; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-family: var(--f-data); color: var(--accent); font-size: 18px; transition: transform .2s; }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .acc-body { padding: 0 2px 18px; color: var(--text-2); }
details.acc summary .meta { margin-left: auto; font-family: var(--f-data); font-size: 11.5px; color: var(--muted); font-weight: 400; }
.subj { columns: 2 220px; column-gap: 28px; margin: 0; padding-left: 18px; }
.subj li { break-inside: avoid; padding: 3px 0; }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-data); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface-hi); }
tbody tr:hover td { background: #fafbfe; }
tr:last-child td { border-bottom: 0; }
td.num, td .num { white-space: nowrap; }
td a { color: var(--accent); font-weight: 600; }
td a:hover { text-decoration: underline; text-underline-offset: 3px; }

.careers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.careers div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.careers .num { color: var(--accent); font-size: 12.5px; white-space: nowrap; }
.recruiters { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--f-display); font-size: 16px; font-weight: 500; color: var(--text-2); }

/* Aside fact card */
.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); display: flex; flex-direction: column; gap: 16px; }
.fee-card { padding: 24px; border-radius: var(--r); border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--surface); box-shadow: var(--shadow-hi); }
.fee-card .amount { font-family: var(--f-display); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin-top: 8px; color: var(--text); }
.fee-card .note { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.fee-rows { margin-top: 16px; display: flex; flex-direction: column; }
.fee-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.fee-rows div span { color: var(--muted); }
.fee-rows div b { font-family: var(--f-data); font-weight: 500; text-align: right; }
.fee-card .btn { width: 100%; margin-top: 18px; }

.form { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.form h3 { font-size: 19px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; color: var(--muted); }
.field input, .field select { width: 100%; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-msg { font-size: 13px; color: var(--ok); }
.form-msg.err { color: var(--err); }

/* ---------- Compare tray (blue-black, behaves as a button bar) ---------- */
.tray {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 50;
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; border-radius: 999px;
  background: var(--grad); color: var(--on-dark); box-shadow: 0 20px 50px rgba(3, 6, 14, 0.35);
  max-width: calc(100vw - 32px); font-size: 14px;
}
.tray .btn-gold { background: var(--gold); color: #0b1530; box-shadow: none; }
.tray .btn-gold:hover { background: #e6c98f; color: #0b1530; }
.tray .x { background: none; border: 0; color: var(--on-dark-2); font-size: 13px; }

/* ---------- Footer (blue-black gradient) ---------- */
footer { padding-block: 52px 64px; color: var(--on-dark-2); font-size: 13.5px; background: var(--grad); margin-top: 40px; }
footer .brand { color: var(--on-dark); }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer h5 { margin: 0 0 12px; font-family: var(--f-data); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
footer a:hover { color: var(--on-dark); }
footer :focus-visible { outline-color: var(--gold); }
footer .fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--dark-line); font-size: 12px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > div:first-child { grid-column: 1 / -1; } }

/* Entry motion: content is visible at rest; only a gentle rise on route change */
.view { animation: rise .45s ease both; }
@keyframes rise { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Lead forms ---------- */
.field textarea { height: auto; padding: 10px; resize: vertical; min-height: 96px; line-height: 1.5; }
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.phone-in { display: flex; align-items: stretch; }
.phone-in span { display: grid; place-items: center; padding: 0 10px; font-size: 14px; color: var(--text-2); background: var(--surface-hi); border: 1px solid var(--line-hi); border-right: 0; border-radius: 8px 0 0 8px; }
.phone-in input { border-radius: 0 8px 8px 0 !important; }
.ferr { font-size: 12px; color: var(--err); min-height: 0; }
.ferr:empty { display: none; }
.field.invalid input, .field.invalid select { border-color: var(--err); }
.field.invalid .phone-in span { border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form { position: relative; }
.lead-form .btn[disabled] { opacity: .7; cursor: progress; }
.consent { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.form-msg:empty { display: none; }
.form-msg.err { color: var(--err); }
.form-msg.info { color: var(--accent); background: var(--accent-soft); padding: 10px 12px; border-radius: 8px; }
.lead-done { text-align: center; padding: 18px 6px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lead-done p { color: var(--text-2); font-size: 14px; max-width: 34ch; }
.tick-big { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: var(--on-dark); background: var(--grad); }

/* ---------- Modal ---------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-back { position: absolute; inset: 0; background: rgba(5, 10, 24, 0.62); backdrop-filter: blur(3px); animation: fade .2s ease both; }
.modal-card {
  position: relative; width: min(460px, 100%); max-height: calc(100% - 32px); overflow-y: auto;
  background: var(--surface); border-radius: 20px; box-shadow: 0 30px 80px rgba(3, 6, 14, 0.4); animation: pop .25s ease both;
}
.modal-head { padding: 26px 26px 6px; background: linear-gradient(180deg, var(--accent-soft), var(--surface)); border-radius: 20px 20px 0 0; }
.modal-head h3 { margin-block: 8px 6px; font-size: 21px; padding-right: 28px; }
.modal-head p { font-size: 13.5px; }
.modal-card .lead-form { border: 0; box-shadow: none; padding: 16px 26px 26px; }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 20px; line-height: 1; color: var(--text-2); }
.modal-x:hover { color: var(--text); border-color: var(--line-hi); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: .4; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* Header CTA */
.header-cta { background: var(--gold); color: #0b1530; border-color: transparent; flex-shrink: 0; }
.header-cta:hover { background: #e6c98f; color: #0b1530; border-color: transparent; }
@media (max-width: 600px) { .header-cta { display: none; } }
.foot-mail { color: var(--on-dark); border-bottom: 1px solid var(--dark-line); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.contact-card { padding: 8px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); box-shadow: var(--shadow); }
.contact-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-val { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.contact-val a { font-size: 20px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.contact-val a:hover { color: var(--accent); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Diplomas & certificates */
.thumb-badge.cred { background: var(--seal-bg); color: var(--seal); }
.notice { margin-top: 16px; max-width: 64ch; padding: 12px 16px; border-radius: 10px; font-size: 14px; color: var(--text-2); background: var(--seal-bg); border: 1px solid var(--seal-line); }
.notice b { color: var(--text); }

/* Study mode */
.mode-badge { position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--grad); color: var(--on-dark); }
.notice.campus { background: var(--accent-soft); border-color: #cbd7f3; }
.mode-badge.soon { background: var(--gold); color: #0b1530; }
