:root {
  --ink: #121826;
  --ink-2: #2D3548;
  --muted: #4A5468;
  --muted-2: #5B6478;
  --line: #E4E6EC;
  --line-2: #EEF0F3;
  --input: #CDD2DC;
  --bg: #FFFFFF;
  --soft: #F5F6F8;
  --blue: #2F4BFF;
  --blue-ink: #2234C9;
  --blue-soft: #EBEEFF;
  --orange: #FF8A3D;
  --orange-soft: #FFE7D6;
  --green: #0F7A4F;
  --green-ink: #0B4D31;
  --green-soft: #E3F5EC;
  --amber-ink: #7A4F00;
  --amber-soft: #FFF3DB;
  --on-dark: #C9CEDA;
  --dark-line: #2C3550;
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: inline-block; vertical-align: middle; max-width: 100%; }
a { color: var(--blue-ink); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; background: none; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-orange { background: var(--orange); color: var(--ink); font-weight: 700; }
.btn-orange:hover { background: #F07A2A; color: var(--ink); }
.btn-outline { border-color: var(--input); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline-light { border-color: #5B6478; color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { border-color: var(--dark-line); color: #fff; }
.btn[aria-pressed="true"] { background: var(--green-soft); color: var(--green-ink); border-color: transparent; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn[aria-pressed="true"] { background: #FFE4E6; color: #B4233C; border-color: #FFC9D0; }
.icon-btn[aria-pressed="true"] svg { fill: currentColor; }
.link-btn { background: none; border: 0; color: var(--blue-ink); font-weight: 600; cursor: pointer; padding: 8px 0; text-decoration: underline; }

/* Header */
.sample-banner { background: var(--amber-soft); color: var(--amber-ink); font-size: 14px; text-align: center; padding: 8px 16px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); }
.logo-word span { color: var(--blue); }
.logo-word.light { color: #fff; }
.logo-word.light span { color: #8FA0FF; }
.main-nav { display: flex; gap: 22px; flex: 1; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue-ink); }
.main-nav a[aria-current="page"] { font-weight: 700; }
.header-actions { display: flex; gap: 8px; }
.count { background: var(--blue); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 7px; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .header-actions { margin-left: auto; }
  .main-nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; gap: 0; padding-bottom: 12px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-top: 1px solid var(--line-2); }
  .hide-sm { display: none; }
}
@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .logo-word { font-size: 19px; }
  .logo-mark { width: 34px; height: 34px; }
  .header-actions .btn-sm { min-width: 44px; padding: 0 10px; }
}

/* Breadcrumbs, heads */
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 32px 0 36px; }
.page-head.slim { padding: 24px 0 24px; }
.page-head h1 { margin-bottom: 12px; }
.lede { font-size: 18px; color: var(--muted); max-width: 760px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.pill { display: inline-block; background: var(--blue-soft); color: var(--blue-ink); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.head-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }

/* Sections */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head p, .section-sub { color: var(--muted); font-size: 17px; margin: 0; }
.section-sub { margin-bottom: 24px; }
.section-head a { font-weight: 600; }
.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: flex; flex-wrap: wrap; gap: 32px; }
.split > :first-child { flex: 1 1 300px; }
.split > :last-child { flex: 999 1 520px; }

/* Hero */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.hero-inner { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 64px; padding-bottom: 56px; align-items: flex-start; }
.hero-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-main h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.02; margin: 0; max-width: 720px; }
.hero-main .lede { margin: 0; font-size: 19px; }
.hero-main .pill { align-self: flex-start; }
.search-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 12px 32px rgba(18, 24, 38, .06); display: flex; flex-direction: column; gap: 14px; }
.search-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); flex: 1 1 180px; }
.field.grow { flex: 2 1 260px; }
.field.inline { flex-direction: row; align-items: center; flex: 0 0 auto; gap: 10px; }
.field input, .field select { height: 48px; border: 1px solid var(--input); border-radius: 10px; padding: 0 14px; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff; width: 100%; }
.field.inline select { height: 44px; width: auto; }
.popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.popular span { color: var(--muted); font-weight: 500; }
.popular a { padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; }
.popular a:hover { background: var(--blue-soft); }

.grade-widget { flex: 1 1 340px; min-width: 0; background: var(--ink); color: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.grade-widget h2 { font-size: 28px; margin: 0; }
.grade-widget p { color: var(--on-dark); margin: 0; font-size: 15px; }
.gw-kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--on-dark); text-transform: uppercase; letter-spacing: .06em; }
.gw-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--orange); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.gw-grades { display: flex; gap: 10px; }
.gw-grades label { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--on-dark); }
.gw-grades select { height: 52px; border-radius: 10px; border: 0; padding: 0 12px; font-size: 18px; font-weight: 700; background: #fff; color: var(--ink); }
.gw-total { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--dark-line); padding-top: 14px; font-size: 14px; color: var(--on-dark); }
.gw-total output { font-family: var(--display); font-size: 40px; font-weight: 800; color: #fff; }
.gw-more { font-size: 13px; color: var(--on-dark); text-align: center; }
.gw-more:hover { color: #fff; }

.trust { border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; flex-wrap: wrap; gap: 12px 36px; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--muted); }
.trust-inner span { display: flex; align-items: center; gap: 8px; }
.trust-inner svg { color: var(--green); }

/* Tiles and cards */
.grid-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: #fff; }
.tile:hover { border-color: var(--blue); color: var(--ink); }
.tile span { display: flex; flex-direction: column; gap: 2px; }
.tile strong { font-size: 17px; }
.tile small { color: var(--muted); font-size: 13px; }
.tile svg { color: var(--blue); flex: 0 0 auto; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.tool { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--soft); text-decoration: none; color: var(--ink); }
.tool:hover { background: var(--blue-soft); color: var(--ink); }
.tool .kicker { align-self: flex-start; margin: 0; }
.tool strong { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.tool span:not(.kicker) { color: var(--muted); font-size: 15px; }
.tool em { font-style: normal; font-weight: 600; color: var(--blue-ink); }
.guide-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); padding-bottom: 20px; }
.guide-card:hover { border-color: var(--blue); color: var(--ink); }
.guide-card > :not(.guide-tint) { padding: 0 20px; }
.guide-card strong { font-family: var(--display); font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
.guide-card span:not(.guide-tint):not(.kicker-light) { color: var(--muted); font-size: 14px; }
.guide-tint { height: 130px; display: flex; align-items: flex-end; padding: 16px 20px !important; margin-bottom: 8px; }
.kicker-light { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #fff; padding: 4px 10px; border-radius: 999px; color: var(--ink) !important; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; cursor: pointer; }
.chip small { color: var(--muted); }
.chip:hover { border-color: var(--blue); color: var(--ink); }
.chip-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-band { background: var(--blue); color: #fff; border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 6px 0; }
.cta-band p { color: #E6E9FF; margin: 0; }
.kicker-on-dark { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #DDE2FF; }

/* Layout */
.layout-2col { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 32px; padding-bottom: 64px; align-items: flex-start; }
.col-main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1000px) { .col-side { position: sticky; top: 88px; } .search-layout .col-side { position: static; } }
.block { margin-bottom: 32px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.block-head h2 { margin: 0; }
.source { font-size: 13px; color: var(--muted-2); background: var(--soft); padding: 4px 10px; border-radius: 999px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-card h2 { font-size: 19px; margin-bottom: 12px; }
.plain-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.plain-links li { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.plain-links a { display: inline-block; padding: 6px 0; font-weight: 500; }
.plain-links small { color: var(--muted); }
.facts { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stats.compact { margin-top: 20px; margin-bottom: 0; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; background: #fff; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-value { font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.stat-note { font-size: 13px; color: var(--muted); }
.stat-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.stat-dark .stat-label, .stat-dark .stat-note { color: var(--on-dark); }
.prose-lead { font-size: 17px; line-height: 1.7; color: var(--ink-2); }

/* Course cards */
.results { display: flex; flex-direction: column; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.course-card { display: flex; flex-direction: column; gap: 16px; }
.cc-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.mono { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--ink); background: var(--blue-soft); text-transform: uppercase; }
.mono-xl { width: 84px; height: 84px; flex-basis: 84px; font-size: 30px; border-radius: 20px; background: #fff; }
.cc-title { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-name { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; line-height: 1.2; }
.cc-name:hover { color: var(--blue-ink); text-decoration: underline; }
.cc-uni { font-weight: 600; font-size: 15px; text-decoration: none; }
.cc-meta { font-size: 14px; color: var(--muted); }
.cc-stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 14px 0; }
.cc-stats dt { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cc-stats dd { margin: 4px 0 0; font-weight: 700; font-size: 16px; }
.cc-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.cc-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.compare-check { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 4px; cursor: pointer; }
.compare-check input, .check input { width: 18px; height: 18px; accent-color: var(--blue); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 10px; border-radius: 8px; background: var(--soft); font-size: 13px; color: var(--muted); font-weight: 500; }
.tag-light { background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge-good { background: var(--green-soft); color: #0B6640; }
.badge-reach { background: var(--amber-soft); color: var(--amber-ink); }
.badge-high { background: #FFE4E6; color: #9F1239; }

/* Search */
.search-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 8px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.active-filters button { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); border: 0; font-weight: 600; font-size: 14px; cursor: pointer; }
.filters form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head h2 { font-size: 20px; margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
fieldset .field { flex: 0 0 auto; }
legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; min-height: 36px; cursor: pointer; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.results-bar p { margin: 0; font-weight: 600; }
.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 16px 0; }
.pager button { min-width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; padding: 0 12px; }
.pager button[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 40px 24px; text-align: center; background: var(--soft); border-radius: var(--radius); }

/* University */
.uni-hero { background: var(--ink); color: #fff; padding: 28px 0 36px; }
.uni-hero .crumbs ol, .uni-hero .crumbs a { color: var(--on-dark); }
.uni-hero-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.uni-id { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.uni-id h1 { margin: 0 0 8px; }
.uni-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; color: var(--on-dark); font-size: 15px; }
.uni-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.subnav { position: sticky; top: 68px; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; }
.subnav a { padding: 15px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--ink); border-bottom-color: var(--blue); }
.course-group { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.course-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 700; font-size: 17px; background: var(--soft); }
.course-group summary::-webkit-details-marker { display: none; }
.course-group summary::after { content: '+'; font-size: 22px; color: var(--muted); }
.course-group[open] summary::after { content: '–'; }
.course-group summary small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 14px; }
.course-list { list-style: none; margin: 0; padding: 0; }
.course-list a { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.course-list a:hover { background: var(--blue-soft); }
.course-list a > span:first-child { flex: 1; display: flex; flex-direction: column; }
.course-list small, .cl-stat { color: var(--muted); font-size: 14px; }
.course-list svg { color: var(--blue); flex: 0 0 auto; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.link-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.link-card:hover { border-color: var(--blue); color: var(--ink); }
.link-card span { color: var(--muted); font-size: 14px; }
.link-card svg { position: absolute; top: 18px; right: 18px; color: var(--muted); }

/* Course */
.course-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 28px 0 32px; }
.course-hero-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.course-id { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.course-id h1 { margin: 0; }
.course-uni { font-size: 19px; font-weight: 600; text-decoration: none; }
.key-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.key-facts div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.key-facts dt { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.key-facts dd { margin: 6px 0 0; font-weight: 700; font-size: 17px; }
.match-box { background: var(--soft); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.match-box p { margin: 0; }
.match-box.good { background: var(--green-soft); color: var(--green-ink); }
.match-box.reach { background: var(--amber-soft); color: var(--amber-ink); }
.match-box.good a, .match-box.reach a { color: inherit; }
.bars { display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.bar-label { flex: 0 0 220px; font-weight: 600; font-size: 15px; }
.bar-track { flex: 1 1 200px; position: relative; height: 14px; border-radius: 999px; background: var(--line-2); }
.bar-fill { display: block; height: 14px; border-radius: 999px; background: var(--blue); }
.bar-mark { position: absolute; top: -4px; width: 3px; height: 22px; background: var(--ink); border-radius: 2px; transform: translateX(-1px); }
.bar-value { flex: 0 0 52px; font-weight: 800; text-align: right; }
.bar-note { flex: 0 0 160px; font-size: 13px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks svg { color: var(--green); }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mini-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.mini-card:hover { border-color: var(--blue); color: var(--ink); }
.mc-uni { color: var(--blue-ink); font-weight: 600; font-size: 14px; }
.mini-card .muted { font-size: 13px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.faq-a { padding-bottom: 16px; color: var(--muted); }

/* Lists */
.subject-groups { columns: 3 300px; column-gap: 32px; }
.subject-group { break-inside: avoid; margin-bottom: 28px; }
.subject-group h2 { font-size: 20px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin: 20px 0 8px; }
.filter-bar .field { max-width: 360px; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; }
.az a { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.az-group { margin-bottom: 28px; }
.uni-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.uni-list a { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.uni-list a:hover { border-color: var(--blue); color: var(--ink); }
.uni-list a > span:last-child { display: flex; flex-direction: column; }
.uni-list small { color: var(--muted); }

/* Compare */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-2); }
.compare-table thead th { border-top: 0; vertical-align: bottom; }
.compare-table td + td, .compare-table th + th, .compare-table th + td { border-left: 1px solid var(--line-2); }
.compare-table tbody th { font-weight: 600; color: var(--ink-2); width: 220px; }
.compare-table .group th { background: var(--soft); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare-table .best { display: inline-flex; gap: 6px; align-items: center; background: var(--green-soft); color: var(--green-ink); font-weight: 800; padding: 3px 10px; border-radius: 8px; }
.compare-head { display: flex; flex-direction: column; gap: 6px; }
.compare-head a.cname { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; line-height: 1.2; }
.compare-head .remove { align-self: flex-start; }

/* Calculator */
.calc { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.calc > .btn-outline { align-self: flex-start; }
.calc-rows { display: flex; flex-direction: column; gap: 10px; }
.calc-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.calc-row .field { flex: 1 1 200px; }
.calc-row .points { min-width: 80px; font-weight: 700; padding-bottom: 12px; }
.calc-total { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line-2); font-weight: 600; color: var(--muted); }
.calc-total output { font-family: var(--display); font-size: 48px; font-weight: 800; color: var(--ink); }

/* Prose */
.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { margin-top: 1.6em; font-size: 28px; color: var(--ink); }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1em 0; padding: 12px 20px; border-left: 4px solid var(--blue); background: var(--soft); border-radius: 0 12px 12px 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.prose table, .table-wrap table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table-wrap th, .table-wrap td { border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.table-wrap thead th { background: var(--soft); }

/* Ads */
.ad { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 8px 0 24px; min-height: 120px; }
.ad-sidebar { min-height: 270px; }
.ad > ins { width: 100%; }
.ad-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.ad-placeholder { width: 100%; min-height: 100px; border: 1.5px dashed #B8BFCC; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted-2); background: #FAFAFB; font-size: 14px; }
.ad-sidebar .ad-placeholder { min-height: 250px; }

/* Compare tray */
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0 0 16px; pointer-events: none; }
.tray-inner { pointer-events: auto; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; box-shadow: 0 16px 40px rgba(18, 24, 38, .25); font-weight: 600; max-width: 1232px; }
.tray-actions { display: flex; gap: 8px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 56px; padding-bottom: 32px; }
.footer-brand { flex: 1 1 260px; }
.footer-brand p { font-size: 14px; margin-top: 12px; }
.site-footer nav { flex: 1 1 160px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.site-footer h2 { font-family: var(--font); font-size: 14px; color: #fff; letter-spacing: 0; margin-bottom: 6px; }
.site-footer nav a { color: var(--on-dark); text-decoration: none; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.footer-base { border-top: 1px solid var(--dark-line); padding-top: 20px; padding-bottom: 32px; font-size: 13px; }
.footer-base a { color: var(--on-dark); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero-inner { padding-top: 36px; gap: 28px; }
  .grade-widget { padding: 22px; }
  .bar-label, .bar-note { flex-basis: 100%; }
  .cta-band { padding: 28px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .subnav { top: 0; position: relative; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
