/* =====================================================================
   emba.mba — design system
   Editorial directory: warm paper, navy ink, one gold accent.
   ===================================================================== */

:root {
  --ink: #111C2B;
  --ink-2: #3B4859;
  --ink-3: #6C7889;
  --paper: #FAF8F3;
  --paper-2: #F4F0E6;
  --white: #ffffff;
  --line: #E4DFD3;
  --line-2: #EEEAE1;
  --navy: #0E2038;
  --navy-2: #17304E;
  --gold: #966A22;
  --gold-2: #C29343;
  --gold-soft: #F4E9D5;
  --sage: #2F6B57;
  --sage-soft: #E6EFEA;
  --clay: #A44A38;
  --clay-soft: #F7E7E2;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --shadow-sm: 0 1px 2px rgba(17, 28, 43, .05), 0 10px 26px -18px rgba(17, 28, 43, .3);
  --shadow-md: 0 2px 6px rgba(17, 28, 43, .05), 0 26px 50px -30px rgba(17, 28, 43, .38);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.015em; line-height: 1.12; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--gold-soft); color: var(--ink); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .18s var(--ease);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 243, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: 70px; max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.logo { display: flex; align-items: baseline; gap: 2px; font-family: var(--serif); font-size: 24px; letter-spacing: -.03em; }
.logo b { font-weight: 600; }
.logo .dot { color: var(--gold); font-weight: 600; }
.logo span.tail { color: var(--ink-3); font-size: 20px; }
.logo__mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 15px; margin-right: 9px; transform: translateY(3px);
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2);
  white-space: nowrap;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a.is-active { color: var(--ink); font-weight: 500; position: relative; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 9px; border: 1px solid transparent;
  background: transparent; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-2); transition: .16s var(--ease);
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; stroke-width: 1.6; }

.lang { position: relative; }
.lang select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); background: rgba(255,255,255,.6);
  border-radius: 9px; padding: 7px 28px 7px 11px; font-size: 13px; color: var(--ink-2);
  cursor: pointer; font-family: var(--sans);
}
.lang::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.burger { display: none; }

.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: var(--paper);
  padding: 10px 24px 20px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 4px; border-bottom: 1px solid var(--line-2);
  font-size: 16px; color: var(--ink);
}
.mobile-nav .btn { margin-top: 16px; width: 100%; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), background .16s var(--ease),
    border-color .16s var(--ease), box-shadow .16s var(--ease), color .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); box-shadow: var(--shadow-sm); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #96691f; }
.btn--ghost { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn--ghost:hover { border-color: #CFC7B6; background: #fff; }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--light:hover { background: rgba(255,255,255,.2); }
.btn--sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
h1.display, .display {
  font-family: var(--serif); font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04; letter-spacing: -.028em; font-weight: 500;
}
h2.display { font-size: clamp(27px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -.022em; }
h3.display { font-size: 22px; }
.lede { font-size: 17.5px; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- sections */
.section { padding: 78px 0; }
.section--tight { padding: 52px 0; }
.section--paper { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--navy); color: #fff; }
.section-head { margin-bottom: 34px; max-width: 760px; }
.section-head p { margin: 12px 0 0; color: var(--ink-3); font-size: 16px; max-width: 62ch; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section--ink .section-head p { color: #A9B6C7; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle at center, rgba(169,120,47,.16), rgba(169,120,47,0) 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 88px 88px; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 0%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 0%, #000, transparent 72%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding: 84px 0 62px; }
.hero h1 { max-width: 17ch; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__lede { max-width: 58ch; font-size: 17px; color: var(--ink-2); margin-bottom: 30px; }
.hero__search { max-width: 640px; }
.search-field {
  display: flex; align-items: center; gap: 10px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: 7px 7px 7px 15px;
  box-shadow: var(--shadow-sm); transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.search-field:focus-within { border-color: #C9B98F; box-shadow: 0 0 0 4px rgba(169,120,47,.1), var(--shadow-sm); }
.search-field svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.search-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 0;
  font-size: 15px; font-family: var(--sans); color: var(--ink); outline: none;
}
.search-field input::placeholder { color: #9AA3B0; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.7); font-size: 13px; color: var(--ink-2);
  cursor: pointer; transition: .16s var(--ease);
}
.chip:hover { border-color: #CFC7B6; background: #fff; color: var(--ink); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip--plain { cursor: default; background: transparent; }
.chip--sm { padding: 4px 9px; font-size: 12px; }

.trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; font-size: 12.5px; color: var(--ink-3); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 14px; height: 14px; color: var(--sage); }

/* ---------------------------------------------------------------- cards */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
a.card:hover, .card--hover:hover { border-color: #D3C9B4; box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px; font-weight: 600; white-space: nowrap;
}
.badge--gold { background: var(--gold-soft); color: #7C5518; }
.badge--soft { background: var(--paper-2); color: var(--ink-3); }
.badge--sage { background: var(--sage-soft); color: var(--sage); }
.badge--ink { background: var(--navy); color: #fff; }
.badge--line { border: 1px solid var(--line); color: var(--ink-3); background: transparent; }

/* program card */
.prog-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; position: relative; }
.prog-card__top { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.crest {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 16px; font-weight: 600; color: #fff;
  letter-spacing: -.02em;
}
.crest--lg { width: 62px; height: 62px; border-radius: 14px; font-size: 22px; }
.prog-card__school { min-width: 0; flex: 1; }
.prog-card__school .n { font-size: 13px; color: var(--ink-3); line-height: 1.35; display: block; }
.prog-card__name { font-family: var(--serif); font-size: 21px; line-height: 1.2; margin: 6px 0 4px; letter-spacing: -.02em; }
.prog-card__name a:hover { color: var(--gold); }
.prog-card__meta { font-size: 12.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.prog-card__summary { font-size: 14px; color: var(--ink-2); padding: 12px 22px 0; margin: 0; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prog-card__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  padding: 16px 22px; margin-top: 4px;
}
.fact__k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 2px; }
.fact__v { font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.prog-card__foot {
  margin-top: auto; padding: 13px 22px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 10px; background: #FDFCF9;
}
.prog-card__price { font-size: 13px; color: var(--ink-2); margin-right: auto; }
.prog-card__price b { font-size: 15px; color: var(--ink); font-weight: 600; }
.compare-toggle {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: var(--ink-3); cursor: pointer; user-select: none; padding: 4px 6px; border-radius: 6px;
}
.compare-toggle:hover { background: var(--paper-2); color: var(--ink); }
.compare-toggle input { accent-color: var(--gold); width: 14px; height: 14px; margin: 0; }
.sponsor-flag {
  position: absolute; top: 0; right: 0;
  background: var(--gold-soft); color: #7C5518; font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700; padding: 4px 10px; border-bottom-left-radius: 8px;
}

/* goal cards */
.goal-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: .18s var(--ease); }
.goal-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.goal-card__ico { width: 34px; height: 34px; border-radius: 9px; background: var(--gold-soft); color: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.goal-card__ico svg { width: 17px; height: 17px; }
.goal-card h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; font-family: var(--sans); }
.goal-card p { font-size: 13.5px; color: var(--ink-3); margin: 0; line-height: 1.55; }
.goal-card__go { margin-top: 6px; font-size: 12.5px; color: var(--gold); font-weight: 500; }

/* region tiles */
.region-tile {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: var(--white); overflow: hidden; transition: .18s var(--ease);
}
.region-tile:hover { border-color: #D3C9B4; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.region-tile h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 4px; }
.region-tile span { font-size: 12.5px; color: var(--ink-3); }
.region-tile .num { position: absolute; right: 18px; bottom: 10px; font-family: var(--serif); font-size: 46px; color: var(--paper-2); font-weight: 600; line-height: 1; }

/* stats */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--white); padding: 22px 24px; }
.stat b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.stat span { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; counter-reset: s; }
.step { position: relative; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.18); }
.section--ink .step p { color: #A9B6C7; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; top: 14px; left: 0; font-size: 11px; letter-spacing: .1em; color: var(--gold-2); font-weight: 600;
}
.step h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.step p { font-size: 14px; line-height: 1.6; margin: 0; }

/* index list */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 46px 1fr 110px 92px; gap: 16px; align-items: center;
  padding: 16px 6px; border-bottom: 1px solid var(--line);
}
.index-row:hover { background: rgba(255,255,255,.55); }
.index-row__rank { font-family: var(--serif); font-size: 19px; color: var(--ink-3); }
.index-row__name { font-size: 15px; font-weight: 500; }
.index-row__name span { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.score-pill { font-size: 13px; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--gold-soft); color: #7C5518; text-align: center; }
.index-row__tuition { font-size: 13px; color: var(--ink-2); text-align: right; }

/* ---------------------------------------------------------------- directory */
.dir-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 44px; align-items: start; }
.filters { position: sticky; top: 90px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.filter-head h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.filter-clear { font-size: 12px; color: var(--gold); background: none; border: 0; cursor: pointer; padding: 0; }
.filter-clear:hover { text-decoration: underline; }
.filter-group { border-bottom: 1px solid var(--line-2); padding: 14px 0; }
.filter-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); padding: 4px 0; cursor: pointer; }
.check:hover { color: var(--ink); }
.check input { accent-color: var(--gold); width: 15px; height: 15px; margin: 0; flex: none; }
.check .count { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.select {
  width: 100%; appearance: none; -webkit-appearance: none; border: 1px solid var(--line);
  background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4.5 6 8.5 10 4.5' fill='none' stroke='%236C7889' stroke-width='1.4' stroke-linecap='round'/></svg>") no-repeat right 10px center / 12px;
  border-radius: 8px; padding: 8px 30px 8px 10px; font-size: 13.5px; font-family: var(--sans); color: var(--ink); cursor: pointer;
}
.results-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.results-count { font-size: 14px; color: var(--ink-2); margin-right: auto; }
.results-count b { color: var(--ink); font-weight: 600; }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.sort-wrap .select { width: auto; min-width: 170px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.filter-toggle { display: none; }

/* ---------------------------------------------------------------- detail */
.crumbs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 12.5px; color: var(--ink-3); padding: 22px 0 0; }
.crumbs a:hover { color: var(--gold); }
.crumbs span.sep { opacity: .5; }

.prog-hero { padding: 26px 0 34px; border-bottom: 1px solid var(--line); }
.prog-hero__head { display: flex; gap: 18px; align-items: flex-start; }
.prog-hero h1 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.028em; margin: 4px 0 6px; line-height: 1.1; }
.prog-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-3); }
.prog-hero__actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 52px; align-items: start; padding: 40px 0 80px; }
.detail-main > section { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line-2); }
.detail-main > section:last-child { border-bottom: 0; }
.detail-main h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 14px; letter-spacing: -.02em; }
.detail-main h3 { font-size: 15px; font-weight: 600; margin: 22px 0 8px; }
.detail-main p { color: var(--ink-2); font-size: 15.5px; }

.keyfacts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.keyfacts .fact { background: var(--white); padding: 16px 18px; }
.keyfacts .fact__v { font-size: 17px; font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.detail-side { position: sticky; top: 90px; display: grid; gap: 16px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.side-card p { font-size: 12.5px; color: var(--ink-3); margin: 0 0 14px; line-height: 1.55; }
.side-note { font-size: 11.5px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }

.round { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.round:last-child { border-bottom: 0; }
.round__r { font-size: 12px; color: var(--ink-3); min-width: 58px; }
.round__d { font-weight: 500; }
.round__left { margin-left: auto; font-size: 11.5px; color: var(--sage); }
.round__left.is-closed { color: var(--ink-3); }
.round__left.is-soon { color: var(--clay); }

.calc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.calc__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.calc__result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc__big { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.calc__label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.field > label { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 5px; font-weight: 600; }
.field > input, .field > select, .field > textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px;
  font-family: var(--sans); font-size: 14px; color: var(--ink); background: #fff; outline: none;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field > input:focus, .field > select:focus, .field > textarea:focus { border-color: #C9B98F; box-shadow: 0 0 0 3px rgba(169,120,47,.1); }
.field > textarea { min-height: 96px; resize: vertical; }
.field.has-error > input, .field.has-error > textarea { border-color: var(--clay); }
.field .err { font-size: 11.5px; color: var(--clay); margin-top: 4px; display: none; }
.field.has-error .err { display: block; }

/* compare bar */
.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(14,32,56,.97); color: #fff; border-top: 1px solid rgba(255,255,255,.12);
  transform: translateY(110%); transition: transform .26s var(--ease);
  backdrop-filter: blur(10px);
}
.compare-bar.is-visible { transform: translateY(0); }
.compare-bar__inner { max-width: var(--max); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 14px; }
.compare-bar__label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #9FB0C6; }
.compare-bar__items { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.compare-bar__item { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.1); border-radius: 7px; padding: 5px 9px; font-size: 12.5px; }
.compare-bar__item button { background: none; border: 0; color: #C9D4E2; cursor: pointer; padding: 0; line-height: 1; font-size: 15px; }
.compare-bar__item button:hover { color: #fff; }

/* ---------------------------------------------------------------- wizard */
.wizard { max-width: 780px; margin: 0 auto; }
.wizard__bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 34px; }
.wizard__bar span { display: block; height: 100%; background: var(--gold); width: 16.66%; transition: width .3s var(--ease); }
.wizard__q { font-family: var(--serif); font-size: clamp(25px, 3vw, 34px); letter-spacing: -.025em; margin-bottom: 8px; }
.wizard__hint { font-size: 13px; color: var(--ink-3); margin-bottom: 26px; }
.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: 11px;
  cursor: pointer; transition: .16s var(--ease); font-size: 15px;
}
.option:hover { border-color: #CFC7B6; background: #FEFDFA; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .dotmark { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #C6CEDA; flex: none; position: relative; }
.option .dotmark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .16s var(--ease); }
.option:has(input:checked) { border-color: var(--gold); background: #FDF9F1; box-shadow: 0 0 0 3px rgba(169,120,47,.1); }
.option:has(input:checked) .dotmark { border-color: var(--gold); }
.option:has(input:checked) .dotmark::after { transform: scale(1); }
.option:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.wizard__nav { display: flex; gap: 10px; margin-top: 28px; align-items: center; }
.wizard__nav .btn--primary { margin-left: auto; }

/* match results */
.match-card { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 22px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.match-card + .match-card { margin-top: 14px; }
.score { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.score__ring {
  width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--paper-2) 0);
  position: relative;
}
.score__ring::after { content: ""; position: absolute; inset: 7px; background: #fff; border-radius: 50%; }
.score__ring b { position: relative; z-index: 1; font-family: var(--serif); font-size: 23px; letter-spacing: -.03em; }
.score__label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.match-card h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 3px; }
.match-card__school { font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px; }
.reasons { display: grid; gap: 5px; margin-bottom: 12px; }
.reason { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-2); align-items: flex-start; }
.reason svg { width: 14px; height: 14px; flex: none; margin-top: 4px; color: var(--sage); }
.reason--warn svg { color: var(--clay); }
.meter { display: grid; grid-template-columns: 92px 1fr 34px; gap: 10px; align-items: center; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.meter__bar { height: 4px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.meter__bar span { display: block; height: 100%; background: var(--gold-2); border-radius: 3px; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3); font-weight: 600; padding: 13px 16px; border-bottom: 1px solid var(--line);
  background: #FCFBF7; white-space: nowrap;
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FDFCF9; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .school-cell { display: flex; align-items: center; gap: 10px; }
.table .school-cell .crest { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.table .sub { font-size: 12px; color: var(--ink-3); }

.compare-table th:first-child, .compare-table td:first-child {
  position: sticky; left: 0; background: #FCFBF7; z-index: 2; min-width: 190px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3);
  border-right: 1px solid var(--line);
}
.compare-table td.best { background: var(--sage-soft); font-weight: 600; color: var(--sage); }
.compare-table th { min-width: 200px; }

/* ---------------------------------------------------------------- guides */
.article-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: .18s var(--ease); }
.article-card:hover { border-color: #D3C9B4; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.article-card__cat { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 600; }
.article-card h3 { font-family: var(--serif); font-size: 21px; line-height: 1.22; letter-spacing: -.02em; }
.article-card p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.6; }
.article-card__meta { margin-top: auto; padding-top: 10px; font-size: 11.5px; color: var(--ink-3); display: flex; gap: 10px; }

.prose { max-width: 68ch; }
.prose h2 { font-family: var(--serif); font-size: 27px; margin: 38px 0 12px; letter-spacing: -.02em; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p { font-size: 16.5px; line-height: 1.75; color: #26313F; }
.prose ul, .prose ol { color: #26313F; font-size: 16.5px; line-height: 1.75; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink);
}
.prose strong { font-weight: 600; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose > p:first-of-type { font-size: 18.5px; color: var(--ink); }

.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--white); font-size: 13.5px; }
.toc h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 8px; }
.toc a { display: block; padding: 4px 0; color: var(--ink-2); }
.toc a:hover { color: var(--gold); }

/* ---------------------------------------------------------------- for schools */
.audience-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; }
.audience { background: var(--navy); padding: 24px; }
.audience b { display: block; font-family: var(--serif); font-size: 32px; letter-spacing: -.03em; color: #fff; }
.audience span { font-size: 12px; color: #9FB0C6; }
.placement { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.placement__n { font-family: var(--serif); font-size: 30px; color: var(--gold-2); line-height: 1; }
.placement h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.placement p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.6; }
.spotlight {
  border: 1px dashed #D8CDB6; background: #FCF8EF; border-radius: var(--radius);
  padding: 26px; display: flex; gap: 20px; align-items: center;
}
.spotlight .crest { flex: none; }
.spotlight h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 3px; }
.spotlight p { font-size: 13px; color: var(--ink-3); margin: 0; }

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-size: 11.5px; color: var(--ink-3); margin-top: 12px; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--gold); }
.form-status { margin-top: 14px; font-size: 13.5px; padding: 11px 14px; border-radius: 9px; display: none; }
.form-status.is-ok { display: block; background: var(--sage-soft); color: var(--sage); }
.form-status.is-err { display: block; background: var(--clay-soft); color: var(--clay); }

/* newsletter */
.newsletter { display: flex; gap: 8px; max-width: 420px; }
.newsletter input {
  flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07);
  border-radius: 9px; padding: 10px 13px; color: #fff; font-family: var(--sans); font-size: 14px; outline: none;
}
.newsletter input::placeholder { color: #8C9BB0; }
.newsletter input:focus { border-color: var(--gold-2); }

/* CTA band */
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 44px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.cta-band h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); letter-spacing: -.025em; margin-bottom: 8px; }
.cta-band p { margin: 0; color: var(--ink-3); font-size: 14.5px; max-width: 56ch; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: #C6D0DE; padding: 62px 0 26px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand .logo span.tail { color: #7E8FA6; }
.footer-brand p { font-size: 13px; color: #8FA0B7; max-width: 34ch; line-height: 1.6; }
.footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #7E8FA6; margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; font-size: 13.5px; color: #C6D0DE; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; padding-top: 22px; font-size: 11.5px; color: #7E8FA6; }
.footer-bottom p { margin: 0; max-width: 72ch; line-height: 1.6; }

/* ---------------------------------------------------------------- search overlay */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(14,24,38,.5);
  backdrop-filter: blur(4px); display: none; padding: 90px 20px 20px;
}
.overlay.is-open { display: block; }
.search-modal { max-width: 680px; margin: 0 auto; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow-md); overflow: hidden; }
.search-modal .search-field { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 16px 18px; }
.search-modal .search-field input { font-size: 17px; }
.search-results { max-height: 60vh; overflow-y: auto; padding: 10px; }
.search-group h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 10px 10px 4px; margin: 0; }
.search-item { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; }
.search-item:hover { background: var(--white); }
.search-item .crest { width: 28px; height: 28px; border-radius: 7px; font-size: 11px; }
.search-item b { font-size: 14px; font-weight: 500; display: block; line-height: 1.3; }
.search-item span { font-size: 11.5px; color: var(--ink-3); }
.search-empty { padding: 26px; text-align: center; color: var(--ink-3); font-size: 14px; }
.search-foot { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 9px;
  font-size: 13px; z-index: 95; opacity: 0; pointer-events: none; transition: .22s var(--ease);
  box-shadow: var(--shadow-md);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* empty */
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,.4); }
.empty h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--ink-3); font-size: 14px; max-width: 46ch; margin: 0 auto 18px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 26px; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .gap-2 { gap: 12px; } .gap-1 { gap: 6px; }
.sr { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.center { text-align: center; }
.print-only { display: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .dir-layout { grid-template-columns: 232px minmax(0,1fr); gap: 30px; }
  .detail-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 36px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .audience-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .section { padding: 58px 0; }
  .hero__inner { padding: 58px 0 46px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 26px 0 0; margin-bottom: 22px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dir-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; padding-bottom: 10px; }
  .filters.is-open { display: block; }
  .filter-toggle { display: inline-flex; }
  .results-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; padding-top: 26px; }
  .detail-side { position: static; order: -1; }
  .keyfacts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cta-band { grid-template-columns: 1fr; padding: 30px; }
  .match-card { grid-template-columns: 1fr; }
  .score { flex-direction: row; gap: 12px; justify-content: flex-start; }
  .index-row { grid-template-columns: 34px 1fr 80px; }
  .index-row__tuition { display: none; }
  .prog-hero__head { flex-wrap: wrap; }
  .prog-hero__actions { margin-left: 0; width: 100%; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .header-inner { height: 62px; gap: 10px; padding: 0 18px; }
  .logo { font-size: 21px; }
  .logo__mark { width: 23px; height: 23px; font-size: 13px; }
  .lang select { padding: 6px 24px 6px 8px; font-size: 12px; }
  .hero h1 { font-size: 34px; max-width: none; }
  .hero__lede { font-size: 15.5px; }
  .search-field { padding: 5px 5px 5px 12px; }
  .search-field input { font-size: 14px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px 18px; }
  .stat b { font-size: 24px; }
  .keyfacts { grid-template-columns: 1fr 1fr; }
  .calc__grid, .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .compare-bar__inner { flex-wrap: wrap; padding: 10px 18px; }
  .compare-bar__items { order: 2; width: 100%; }
  .index-row { grid-template-columns: 30px 1fr 64px; gap: 10px; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .prog-card__facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

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

@media print {
  .site-header, .site-footer, .compare-bar, .no-print, .overlay, .toast { display: none !important; }
  body { background: #fff; }
  .table-wrap { border: 0; }
  .compare-table th:first-child, .compare-table td:first-child { position: static; }
  .print-only { display: block; }
  a { text-decoration: none; color: #000; }
}

/* card body alignment + inline icon sizing (appended) */
.prog-card__name { padding: 10px 22px 0; }
.prog-card__meta { padding: 0 22px; margin-top: 4px; }
.prog-card__meta svg { width: 12px; height: 12px; opacity: .55; }
.prog-card__summary { padding-left: 22px; padding-right: 22px; }
.badge svg { width: 11px; height: 11px; }

/* tabs (rankings) */
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tab {
  background: none; border: 0; padding: 10px 14px; font-size: 13.5px; color: var(--ink-3);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--gold); font-weight: 500; }
.value-best { color: var(--sage); font-weight: 600; }

/* article layout */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 56px; padding: 38px 0 56px; align-items: start; }
.article-side { position: sticky; top: 90px; }

/* rankings notes */
.rank-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 22px; }
  .article-side { position: static; order: -1; }
  .rank-notes { grid-template-columns: 1fr; gap: 16px; }
}

/* footer newsletter: field + inline status */
.newsletter { flex-wrap: wrap; }
.newsletter .field { flex: 1 1 180px; min-width: 0; }
.newsletter .form-status { flex-basis: 100%; margin-top: 0; font-size: 12px; padding: 8px 10px; }

/* inline form row */
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }

/* honeypot + compact header on small screens */
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
  .header-actions > .btn--primary { display: none; }
  .header-inner { gap: 6px; }
}

/* CJK + heading polish */
h1, h2, h3, .display, .wizard__q { text-wrap: balance; }
html[lang="zh-CN"] h1.display { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.2; letter-spacing: -.015em; }
html[lang="zh-CN"] .hero h1 { max-width: 19ch; }
html[lang="zh-CN"] .lede { line-height: 1.8; }

/* compare: keep program names in sentence case */
.compare-table th { text-transform: none; letter-spacing: -.01em; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.compare-table th:first-child { text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-size: 12px; font-weight: 600; }

/* card footer: prevent label wrapping */
.prog-card__price, .compare-toggle, .prog-card__foot .btn { white-space: nowrap; }
.prog-card__price { font-size: 12px; }
.prog-card__price b { font-size: 14px; }

/* hero: index leaders panel */
.hero__aside { display: none; }
.hero-card {
  background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 16px;
  padding: 8px; box-shadow: var(--shadow-sm); backdrop-filter: blur(8px);
}
.hero-card__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600;
}
.hero-mini { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; transition: background .16s var(--ease); }
.hero-mini:hover { background: #fff; }
.hero-mini .crest { width: 32px; height: 32px; border-radius: 8px; font-size: 12px; }
.hero-mini__body { min-width: 0; flex: 1; }
.hero-mini__body b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-mini__body span { font-size: 11.5px; color: var(--ink-3); }
.hero-mini .score-pill { font-size: 11.5px; padding: 3px 7px; }
.hero-card__foot { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px 6px; border-top: 1px solid var(--line-2); margin-top: 4px; font-size: 12px; color: var(--gold); }
@media (min-width: 1040px) {
  .hero__inner--split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 52px; align-items: center; }
  .hero__inner--split .hero__aside { display: block; }
}
.hero__body { min-width: 0; }

/* fit meters: wider label column so two-word labels stay on one line */
.meter { grid-template-columns: 108px 1fr 34px; }
.meter > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* mobile menu CTA: restore white text and remove list border */
.mobile-nav a.btn { color: #fff; border-bottom: 0; padding: 12px 18px; justify-content: center; }

@media (max-width: 600px) {
  .search-field { flex-wrap: wrap; }
  .search-field .btn { flex: 1 0 100%; margin-top: 4px; }
  .hero__search .search-field { padding: 6px; }
  .results-bar > .search-field { flex: 1 1 100%; min-width: 0; max-width: none !important; }
  .results-bar .filter-toggle { order: 2; }
  .results-bar .sort-wrap { order: 3; margin-left: auto; }
  .check { padding: 7px 0; }
}

.search-field--toolbar { max-width: 420px; flex: 1; min-width: 240px; }
@media (max-width: 600px) {
  .search-field--toolbar { flex: 1 1 100%; min-width: 0; max-width: 100%; }
}

/* article header sits inside the article column so edges align */
.article-head { padding-top: 6px; padding-bottom: 24px; margin-bottom: 30px; border-bottom: 1px solid var(--line-2); }
.article-head .lede { margin-bottom: 0; }
.article-layout .prose { max-width: 68ch; }

/* consent / required feedback */
.consent.is-invalid { color: var(--clay); }
.consent.is-invalid input { outline: 2px solid var(--clay); outline-offset: 2px; }
.is-invalid input { border-color: var(--clay); }
