:root {
  color-scheme: light;
  --canvas: #f5efe6;
  --surface: #fffaf3;
  --ink: #171310;
  --muted: #5b5148;
  --forest: #1f5c3f;
  --forest-strong: #16442f;
  --gold: #e7c86b;
  --line: rgba(23, 19, 16, 0.16);
  --line-strong: rgba(23, 19, 16, 0.28);
  --dark: #171310;
  --dark-raised: #241e19;
  --dark-copy: #d8cfc3;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(45, 34, 25, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.6; }
body, button, input, select { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 10px 14px; background: var(--dark); color: var(--canvas); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(245, 239, 230, 0.94); backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--forest); color: white; }
.brand small { display: block; margin-top: -4px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 650; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--forest); }
.eyebrow, .data-label { margin: 0 0 12px; color: var(--forest); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.hero { padding: 88px 0 70px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr); gap: 56px; align-items: end; }
h1, h2, h3 { margin: 0; font-family: Syne, Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.08; letter-spacing: -0.035em; }
h1 { max-width: 850px; font-size: clamp(42px, 7vw, 78px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 21px; }
.lead { max-width: 690px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero-note { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.hero-note strong { display: block; margin-bottom: 8px; font-family: Syne, sans-serif; font-size: 20px; }
.hero-note p { margin: 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-block: 1px solid var(--line); }
.stats div { padding: 22px 0; }
.stats div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.stats strong { display: block; font-family: Syne, sans-serif; font-size: 28px; }
.stats span { color: var(--muted); font-size: 13px; }
.section { padding: 74px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-heading > p { max-width: 540px; margin: 0; color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.workspace > *, .content-grid > * { min-width: 0; }
.filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; margin-bottom: 18px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
input, select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); }
.results-meta { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.college-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.college-card, .content-card, .feature-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 28px rgba(45, 34, 25, 0.04); }
.college-card { display: flex; min-height: 285px; padding: 22px; flex-direction: column; }
.card-topline { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; color: var(--forest); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.college-place { min-height: 46px; margin: 10px 0 18px; color: var(--muted); font-size: 13px; }
.college-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: auto 0 20px; }
.college-card dl div { padding: 11px; border-radius: 10px; background: rgba(31, 92, 63, 0.07); }
dt { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
dd { margin: 4px 0 0; font-size: 13px; font-weight: 750; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; text-decoration: none; font-weight: 750; }
.button.primary { background: var(--forest); color: white; }
.button.primary:hover { background: var(--forest-strong); }
.button.secondary { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button.compact { min-height: 40px; padding: 8px 13px; font-size: 13px; }
.button:disabled { cursor: not-allowed; opacity: 0.45; }
.text-link { color: var(--forest); font-size: 13px; font-weight: 750; }
.shortlist { position: sticky; top: 96px; padding: 22px; border-radius: var(--radius); background: var(--dark); color: var(--canvas); box-shadow: var(--shadow); }
.shortlist-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.shortlist-head span { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 850; }
.shortlist ol { display: grid; gap: 9px; margin: 0 0 18px; padding: 0; list-style: none; }
.shortlist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; border: 1px solid rgba(245, 239, 230, 0.16); border-radius: 10px; }
.shortlist li strong, .shortlist li small { display: block; }
.shortlist li strong { font-size: 13px; }
.shortlist li small { margin-top: 2px; color: var(--dark-copy); font-size: 11px; }
.shortlist li button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--gold); cursor: pointer; font-size: 11px; font-weight: 750; }
.shortlist .shortlist-empty { display: block; color: var(--dark-copy); font-size: 13px; }
.shortlist .button { width: 100%; border-color: rgba(245, 239, 230, 0.3); color: var(--canvas); }
.empty-state { grid-column: 1 / -1; padding: 36px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.empty-state p { margin-bottom: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 220px; padding: 24px; text-decoration: none; }
.feature-card:hover { border-color: var(--forest); transform: translateY(-2px); }
.feature-card p { color: var(--muted); }
.feature-card span { color: var(--forest); font-weight: 750; }
.dark-section { background: var(--dark); color: var(--canvas); }
.dark-section .section-heading > p, .dark-section .lead { color: var(--dark-copy); }
.source-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr); gap: 36px; align-items: center; padding: 34px; border: 1px solid rgba(245, 239, 230, 0.18); border-radius: var(--radius); background: var(--dark-raised); }
.source-card p { color: var(--dark-copy); }
.source-card .button { border-color: rgba(245, 239, 230, 0.3); color: var(--canvas); }
.page-hero { padding: 72px 0 48px; }
.page-hero h1 { max-width: 900px; font-size: clamp(38px, 6vw, 64px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--forest); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr); gap: 24px; align-items: start; }
.content-card { padding: 28px; }
.content-card h2 { margin-bottom: 18px; font-size: 30px; }
.content-card h3 { margin: 26px 0 10px; }
.content-card p { color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.metric { padding: 18px; border-radius: 12px; background: rgba(31, 92, 63, 0.08); }
.metric strong { display: block; font-family: Syne, sans-serif; font-size: 25px; }
.metric span { color: var(--muted); font-size: 11px; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: rgba(31, 92, 63, 0.08); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.notice { padding: 17px 18px; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; background: rgba(231, 200, 107, 0.16); color: var(--muted); }
.source-list { padding-left: 20px; }
.source-list li + li { margin-top: 10px; }
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; color: var(--muted); font-size: 13px; }
.footer-inner p { max-width: 690px; margin: 0; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero-grid, .workspace, .content-grid, .source-card { grid-template-columns: 1fr; }
  .shortlist { position: static; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 24px, 1180px); }
  .hero, .section { padding: 54px 0; }
  .stats { grid-template-columns: 1fr; }
  .stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .section-heading, .footer-inner { align-items: flex-start; flex-direction: column; }
  .filters, .college-grid, .feature-grid, .metric-grid { grid-template-columns: 1fr; }
  .college-card { min-height: 0; }
  .college-card dl { grid-template-columns: 1fr; }
  .card-actions { align-items: flex-start; flex-direction: column; }
  .card-actions .button { width: 100%; }
}

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