/* StudyADegree design system v2 (2026-11-29). Light, warm, editorial. Fonts self-hosted (OFL). Icons: /icons.svg (Lucide, ISC). */
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta-latin.woff2') format('woff2'); font-weight: 500 800; font-display: swap; }

:root {
  --ink: #111827; --ink-2: #374151; --muted: #6B7280; --faint: #9CA3AF;
  --line: #E8E6E1; --line-2: #F1EFEA; --bg: #FFFFFF; --sand: #FAF8F4; --sand-2: #F4F1EA;
  --coral: #F04E30; --coral-d: #D63D20; --coral-50: #FEF1EE; --coral-100: #FDDCD4;
  --navy: #14213D; --navy-2: #22335C; --blue: #2952CC; --blue-50: #EEF2FD;
  --green: #0B7A53; --green-50: #E8F6F0; --amber: #9A5B00; --amber-50: #FFF5E0; --red: #B42318; --red-50: #FEECEB; --violet: #6D3FD1; --violet-50: #F3EEFE;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --sh-1: 0 1px 2px rgba(17,24,39,.06), 0 1px 1px rgba(17,24,39,.04);
  --sh-2: 0 2px 4px rgba(17,24,39,.04), 0 8px 24px rgba(17,24,39,.08);
  --sh-3: 0 6px 12px rgba(17,24,39,.06), 0 24px 48px rgba(17,24,39,.14);
  --f-head: 'Jakarta', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1240px; --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.6 var(--f-body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; } .xs { font-size: .78rem; }
.muted { color: var(--muted); } .ink-2 { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--sh-2); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; } .i-lg { width: 1.5em; height: 1.5em; }

/* layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 7vw, 96px) 0; } .section-sm { padding: clamp(32px, 4vw, 56px) 0; }
.bg-sand { background: var(--sand); } .bg-navy { background: var(--navy); color: #fff; } .bg-navy h2, .bg-navy h3 { color: #fff; }
.stack > * + * { margin-top: 12px; } .stack-lg > * + * { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem/1 var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { max-width: 60ch; color: var(--muted); margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line-2); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 1.28rem/1 var(--f-head); letter-spacing: -0.035em; text-decoration: none !important; }
.brand b { color: var(--coral); font-weight: 800; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink-2); font: 600 .95rem/1 var(--f-head); padding: 10px 14px; border-radius: 999px; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand-2); color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; color: var(--ink); border: 1px solid transparent; background: none; cursor: pointer; }
.icon-btn:hover { background: var(--sand-2); text-decoration: none; }
.icon-btn .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font: 700 11px/18px var(--f-body); text-align: center; }
.icon-btn .count:empty, .icon-btn .count[data-n="0"] { display: none; }
.mobile-nav { display: none; }
@media (max-width: 960px) {
  .nav, .header-actions .hide-m { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { list-style: none; } .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav .panel { position: absolute; right: 0; top: 52px; width: min(86vw, 340px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 10px; display: grid; }
  .mobile-nav .panel a { padding: 12px 14px; border-radius: 12px; color: var(--ink); font: 600 1rem/1.2 var(--f-head); }
  .mobile-nav .panel a:hover { background: var(--sand); text-decoration: none; }
}

/* buttons */
.btn { --b: var(--coral); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 .95rem/1 var(--f-head); letter-spacing: -0.01em; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--b); background: var(--b); color: #fff; cursor: pointer; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { background: var(--coral-d); border-color: var(--coral-d); box-shadow: 0 6px 18px rgba(240,78,48,.28); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-dark { --b: var(--ink); } .btn-dark:hover { background: #000; border-color: #000; box-shadow: var(--sh-2); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); } .btn-outline:hover { background: var(--sand); border-color: var(--ink-2); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; } .btn-ghost:hover { background: var(--sand-2); border-color: transparent; box-shadow: none; }
.btn-sm { padding: 9px 14px; font-size: .85rem; } .btn-lg { padding: 18px 28px; font-size: 1.05rem; } .btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-save[aria-pressed="true"] { color: var(--coral); border-color: var(--coral-100); background: var(--coral-50); }
.btn-save[aria-pressed="true"] .i { fill: var(--coral); }

/* forms */
.input, .select, textarea.input { width: 100%; font: 500 1rem/1.3 var(--f-body); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px rgba(17,24,39,.06); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; } .field > label, .label { font: 700 .82rem/1.2 var(--f-head); color: var(--ink-2); letter-spacing: -0.005em; }
.field .hint { font-size: .8rem; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); } .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--coral); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* hero search (Skyscanner / Airbnb style) */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; } .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,16,32,.55) 0%, rgba(10,16,32,.35) 45%, rgba(10,16,32,.75) 100%); }
.hero-inner { padding-top: clamp(64px, 11vw, 140px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .lead { color: rgba(255,255,255,.9); }
.searchbar { margin-top: 32px; background: #fff; border-radius: 999px; box-shadow: var(--sh-3); padding: 8px; display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; align-items: center; color: var(--ink); max-width: 980px; }
.searchbar .seg { padding: 8px 20px; border-right: 1px solid var(--line); min-width: 0; }
.searchbar .seg:nth-last-child(2) { border-right: 0; }
.searchbar label { display: block; font: 700 .72rem/1 var(--f-head); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.searchbar input, .searchbar select { width: 100%; border: 0; padding: 0; font: 500 1rem/1.3 var(--f-body); color: var(--ink); background: transparent; appearance: none; text-overflow: ellipsis; }
.searchbar input:focus, .searchbar select:focus { outline: none; }
.searchbar .btn { height: 60px; padding: 0 30px; font-size: 1rem; }
@media (max-width: 860px) {
  .searchbar { border-radius: var(--r-lg); grid-template-columns: 1fr; padding: 10px; }
  .searchbar .seg { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; }
  .searchbar .seg:nth-last-child(2) { border-bottom: 0; }
  .searchbar .btn { height: 54px; margin-top: 6px; }
}
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-chips a { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); padding: 8px 14px; border-radius: 999px; font: 600 .88rem/1 var(--f-head); backdrop-filter: blur(6px); }
.hero-chips a:hover { background: rgba(255,255,255,.24); text-decoration: none; }
.hero-credit { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: rgba(255,255,255,.7); }
.hero-credit a { color: inherit; }

/* trust bar */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--line-2); }
.trust div { padding: 22px 20px; display: flex; gap: 14px; align-items: center; }
.trust .num { font: 800 1.6rem/1 var(--f-head); letter-spacing: -0.03em; }
.trust .lbl { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.trust .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--coral-50); color: var(--coral); flex: none; }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, 1fr); } }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.card-pad { padding: 22px; }
.card-hover { transition: transform .2s ease, box-shadow .2s ease; } .card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.dest-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; text-decoration: none !important; isolation: isolate; }
.dest-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.dest-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.dest-card:hover img { transform: scale(1.05); }
.dest-card .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; }
.dest-card h3 { color: #fff; font-size: 1.45rem; margin: 0 0 4px; } .dest-card .meta { font-size: .88rem; opacity: .92; }
.dest-card .flag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--ink); font: 700 .78rem/1 var(--f-head); padding: 7px 10px; border-radius: 999px; }
.dest-card.wide { aspect-ratio: 16 / 9; }

.course-card { display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.course-card .top { padding: 18px 20px 0; display: flex; gap: 12px; align-items: flex-start; }
.uni-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 800 .95rem/1 var(--f-head); color: #fff; flex: none; letter-spacing: -0.02em; }
.course-card h3 { font-size: 1.08rem; margin: 0 0 2px; line-height: 1.25; } .course-card h3 a { color: var(--ink); } .course-card .uni { font-size: .88rem; color: var(--muted); }
.course-card .mid { padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: var(--ink-2); }
.course-card .mid span { display: inline-flex; align-items: center; gap: 6px; }
.course-card .bottom { border-top: 1px solid var(--line-2); padding: 14px 20px; display: flex; align-items: end; justify-content: space-between; gap: 12px; background: linear-gradient(180deg, #fff, var(--sand)); }
.price { font: 800 1.35rem/1 var(--f-head); letter-spacing: -0.03em; color: var(--ink); } .price small { font: 500 .78rem/1.3 var(--f-body); color: var(--muted); display: block; margin-top: 4px; letter-spacing: 0; }
.price-na { font: 600 .9rem/1.3 var(--f-body); color: var(--muted); }

/* list (search results, Skyscanner style) */
.result { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 0; overflow: hidden; }
.result .main { padding: 20px 22px; }
.result .side { border-left: 1px solid var(--line-2); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; background: var(--sand); }
.result h3 { font-size: 1.12rem; margin: 0 0 4px; } .result h3 a { color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--ink-2); margin: 12px 0 0; }
.facts span { display: inline-flex; align-items: center; gap: 6px; } .facts .i { color: var(--muted); }
@media (max-width: 720px) { .result { grid-template-columns: 1fr; } .result .side { border-left: 0; border-top: 1px solid var(--line-2); flex-direction: row; align-items: center; } }

/* badges and chips */
.badge { display: inline-flex; align-items: center; gap: 5px; font: 700 .74rem/1 var(--f-head); padding: 6px 10px; border-radius: 999px; background: var(--sand-2); color: var(--ink-2); white-space: nowrap; letter-spacing: 0; }
.badge-green { background: var(--green-50); color: var(--green); } .badge-amber { background: var(--amber-50); color: var(--amber); }
.badge-blue { background: var(--blue-50); color: var(--blue); } .badge-coral { background: var(--coral-50); color: var(--coral-d); }
.badge-red { background: var(--red-50); color: var(--red); } .badge-violet { background: var(--violet-50); color: var(--violet); }
.badge-outline { background: #fff; border: 1px solid var(--line); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 .88rem/1 var(--f-head); color: var(--ink); cursor: pointer; text-decoration: none !important; }
.chip:hover { border-color: var(--ink-2); } .chip[aria-pressed="true"], .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* search page layout */
.search-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: 92px; }
.filters .card-pad { padding: 20px; }
.filter-group { padding: 14px 0; border-top: 1px solid var(--line-2); } .filter-group:first-child { border-top: 0; padding-top: 0; }
.filter-group h4 { font-size: .9rem; margin: 0 0 10px; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sort-tabs { display: flex; gap: 4px; background: var(--sand-2); padding: 4px; border-radius: 999px; overflow-x: auto; max-width: 100%; }
.sort-tabs button { border: 0; background: transparent; font: 700 .85rem/1 var(--f-head); padding: 10px 14px; border-radius: 999px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.sort-tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
@media (max-width: 960px) { .search-layout { grid-template-columns: 1fr; } .filters { position: static; } }
.filters-toggle { display: none; } @media (max-width: 960px) { .filters-toggle { display: inline-flex; } .filters[data-collapsed="true"] { display: none; } }

/* page header */
.page-hero { background: var(--sand); border-bottom: 1px solid var(--line-2); padding: clamp(32px, 5vw, 56px) 0; }
.page-hero.image { position: relative; color: #fff; isolation: isolate; padding: clamp(80px, 12vw, 150px) 0 clamp(32px, 5vw, 56px); border: 0; }
.page-hero.image img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero.image::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,16,32,.25), rgba(10,16,32,.72)); }
.page-hero.image h1, .page-hero.image .lead { color: #fff; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); margin-bottom: 14px; list-style: none; padding: 0; }
.crumbs a { color: inherit; } .crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.page-hero.image .crumbs { color: rgba(255,255,255,.85); }

/* stat tiles */
.stat { padding: 20px; } .stat .v { font: 800 1.75rem/1.05 var(--f-head); letter-spacing: -0.03em; margin: 6px 0 4px; } .stat .k { font: 700 .78rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* key facts (course page) */
.kf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.kf > div { padding: 18px 20px; border-right: 1px solid var(--line-2); } .kf > div:last-child { border-right: 0; }
.kf .k { display: flex; gap: 6px; align-items: center; font: 700 .76rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.kf .v { font: 700 1.05rem/1.3 var(--f-head); letter-spacing: -0.01em; }
@media (max-width: 860px) { .kf { grid-template-columns: repeat(2, 1fr); } .kf > div:nth-child(2) { border-right: 0; } .kf > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); } }
.dl { display: grid; grid-template-columns: 220px 1fr; gap: 0; } .dl dt, .dl dd { padding: 14px 0; border-top: 1px solid var(--line-2); margin: 0; }
.dl dt { font: 700 .9rem/1.4 var(--f-head); color: var(--ink-2); } .dl dd { color: var(--ink); }
@media (max-width: 640px) { .dl { grid-template-columns: 1fr; } .dl dd { border-top: 0; padding-top: 0; } }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.sticky-side { position: sticky; top: 92px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } .sticky-side { position: static; } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
table.t th, table.t td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.t thead th { font: 700 .78rem/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--sand); position: sticky; top: 0; }
table.t tbody tr:hover { background: #FCFBF9; } table.t td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t th[scope="row"] { font: 700 .9rem/1.3 var(--f-head); color: var(--ink-2); background: var(--sand); width: 200px; }
.best { background: var(--green-50) !important; }

/* notices */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--blue-50); color: #1E3A8A; font-size: .92rem; }
.notice.warn { background: var(--amber-50); color: #7A4A00; } .notice.ok { background: var(--green-50); color: #065F46; } .notice.danger { background: var(--red-50); color: var(--red); }
.notice .i { margin-top: 2px; }

/* feature blocks */
.feature { padding: 26px; } .feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.feature p { color: var(--muted); margin: 0; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--r-xl); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--sh-2); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; } .checklist .i { color: var(--green); margin-top: 3px; }

/* scholarship card */
.sch-card .amt { font: 800 1.5rem/1 var(--f-head); letter-spacing: -0.03em; color: var(--green); }

/* community */
.thread-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); align-items: start; }
.thread-row:last-child { border-bottom: 0; }
.votes { display: grid; justify-items: center; gap: 2px; font: 800 .95rem/1 var(--f-head); color: var(--ink-2); }
.avatar { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; background: var(--sand-2); display: inline-grid; place-items: center; font: 800 .85rem/1 var(--f-head); color: #fff; flex: none; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }

/* footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 64px 0 32px; margin-top: 0; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.78); } .site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 24px; font-size: .8rem; color: rgba(255,255,255,.6); display: grid; gap: 8px; }
.site-footer .brand { color: #fff; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* misc */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .i { width: 40px; height: 40px; color: var(--faint); margin: 0 auto 12px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 28px 0 8px; }
.divider { height: 1px; background: var(--line-2); margin: 24px 0; }
.prose { max-width: 72ch; } .prose h2 { font-size: 1.5rem; margin-top: 2em; } .prose h3 { margin-top: 1.6em; } .prose li { margin-bottom: .4em; }
mark.tbc { background: var(--amber-50); color: var(--amber); padding: 0 4px; border-radius: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font: 600 .9rem/1 var(--f-head); opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 200; box-shadow: var(--sh-3); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.compare-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 20px; display: none; align-items: center; gap: 14px; box-shadow: var(--sh-3); font: 600 .92rem/1 var(--f-head); }
.compare-bar.show { display: flex; } .compare-bar .btn { padding: 10px 16px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; } .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }
.scroll-x { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.scroll-x > * { scroll-snap-align: start; }
.credit { font-size: .72rem; color: var(--faint); }

/* currency picker */
.cur-select { appearance: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 12px; font: 700 .82rem/1 var(--f-head); color: var(--ink-2); cursor: pointer; }
.cur-select:hover { border-color: var(--ink-2); }

/* content generated by guides/legal (older markup) */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 16px 0; background: #fff; }
table.compare { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.compare th, table.compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.compare thead th { font: 700 .78rem/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--sand); }
.card.illustration { padding: 18px 20px; background: var(--amber-50); border-color: #F5E3BE; margin: 20px 0; }
.prose .btn { color: #fff; }
.prose table { font-size: .93rem; }

/* app: forms, match checks, chat */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 20px; }
.checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: .9rem; }
.checks li { display: flex; gap: 8px; align-items: flex-start; } .checks li::before { content: ''; width: 8px; height: 8px; border-radius: 99px; margin-top: 8px; flex: none; background: var(--faint); }
.checks li.met::before { background: var(--green); } .checks li.unmet::before { background: var(--red); } .checks li.needs_assessment::before { background: #D99A00; } .checks li.data_missing::before { background: var(--faint); }
.chat { display: grid; gap: 14px; }
.chat .log { display: grid; gap: 12px; min-height: 120px; }
.msg { padding: 14px 16px; border-radius: 18px; max-width: 80ch; white-space: pre-wrap; }
.msg.user { background: var(--ink); color: #fff; justify-self: end; border-bottom-right-radius: 6px; }
.msg.bot { background: var(--sand); border: 1px solid var(--line-2); border-bottom-left-radius: 6px; }
.msg .meta { font-size: .8rem; color: var(--muted); margin-top: 10px; white-space: normal; }
.chat form { display: flex; gap: 8px; } .chat form .input { flex: 1; }
.compare-table th[scope="col"] { min-width: 220px; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); }
.skeleton { background: linear-gradient(90deg, var(--sand-2), #fff, var(--sand-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); height: 150px; }
@keyframes sk { to { background-position: -200% 0; } }
.range-row { display: flex; gap: 8px; } .range-row .input { padding: 10px 12px; }
@media (max-width: 1180px) and (min-width: 961px) { .header-actions .btn.hide-m { display: none; } .nav a { padding: 10px 10px; } .header-inner { gap: 14px; } }
.card.bg-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.card.bg-navy .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); } .card.bg-navy .btn-outline:hover { background: rgba(255,255,255,.08); }
@media (max-width: 1024px) and (min-width: 641px) { .g-3 > .dest-card.wide:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 21 / 9; } }
@media (max-width: 1024px) { .dest-card { aspect-ratio: 4 / 3; } }
@media (max-width: 720px) { .card.bg-navy { grid-template-columns: 1fr !important; } }
.results-bar { flex-direction: column; align-items: stretch; }
.results-bar > .row { flex-wrap: nowrap; min-width: 0; }
.results-bar .sort-tabs { flex: 0 1 auto; min-width: 0; scrollbar-width: none; } .results-bar .sort-tabs::-webkit-scrollbar { display: none; }
.results-bar .cur-select { flex: none; }
@media (max-width: 960px) { .search-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .brand { font-size: 1.1rem; gap: 8px; } .brand img { width: 32px; height: 32px; } .header-inner { gap: 8px; } .header-actions { gap: 2px; } .header-actions .icon-btn[aria-label="Search"] { display: none; } .cur-select { padding: 8px 9px; } }
.search-layout > * { min-width: 0; }
.results-bar > .row { width: 100%; }
.header-inner > * { min-width: 0; } .brand { flex: none; }
.two-col > *, .dl dt, .dl dd, .grid > * { min-width: 0; }
.dl { grid-template-columns: 220px minmax(0, 1fr); } .dl dd { overflow-wrap: anywhere; }
@media (max-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .dl { grid-template-columns: minmax(0, 1fr); } .results-bar > .row { flex-wrap: wrap; } .results-bar .sort-tabs { flex: 1 1 100%; } }
.page-hero.image .eyebrow { color: #FFC2B3; }

/* Fee basis tag: institution-wide average fees (e.g. US IPEDS) are never shown as a programme's own fee. */
.fee-basis { display:block; margin-top:4px; font-size:11px; font-weight:600; line-height:1.3; color:var(--amber); white-space:normal; }
td.num .fee-basis { font-weight:500; }
