:root {
  --navy: #0b4652;
  --navy-deep: #07333d;
  --teal: #17776f;
  --teal-light: #91d8d0;
  --gold: #f0b94b;
  --cream: #eef4f0;
  --paper: #ffffff;
  --ink: #132b32;
  --muted: #52666c;
  --line: #cfdbd7;
  --shadow: 0 24px 60px rgba(7, 51, 61, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fbfdfc; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 99; padding: 12px 16px; color: #fff; background: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 30; color: var(--ink); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.brand-copy > span { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; font-weight: 700; line-height: 1; letter-spacing: -.035em; }
.brand-copy strong { color: var(--teal); }
.brand-copy small { display: block; margin-top: 6px; color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
nav { display: flex; gap: 22px; align-items: center; }
nav a { color: #31484f; font-size: .9rem; font-weight: 700; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--teal); }
nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); }

.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 10% 12%, rgba(240,185,75,.18), transparent 30%), radial-gradient(circle at 88% 20%, rgba(145,216,208,.16), transparent 32%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 64px; align-items: end; padding-block: 78px 96px; }
.eyebrow { margin: 0; color: var(--teal-light); font-size: .75rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.dark { color: var(--teal); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.07; letter-spacing: -.035em; }
h1 { max-width: 760px; margin: 16px 0 22px; font-size: clamp(3rem, 6vw, 5.6rem); }
.hero-lede { max-width: 780px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.7; }
.hero-note { border-left: 3px solid var(--gold); padding: 6px 0 6px 24px; color: rgba(255,255,255,.76); }
.hero-note p { margin: 0; }
.hero-note .note-label { margin-bottom: 8px; color: #fff; font-weight: 800; }

.explorer { position: relative; z-index: 2; margin-top: -38px; padding-bottom: 88px; }
.search-panel { position: relative; padding: 34px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.panel-heading h2, .selection-summary h2, .results-heading-row h2, .method-grid h2 { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3rem); }
.data-status { margin: 0; color: var(--muted); font-size: .86rem; font-weight: 700; }
.mode-switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 28px; padding: 5px; background: var(--cream); border: 1px solid var(--line); }
.mode-button { min-height: 44px; padding: 10px 20px; color: #355057; background: transparent; border: 0; font-weight: 800; }
.mode-button.active { color: #fff; background: var(--navy); box-shadow: 0 7px 18px rgba(7,51,61,.16); }
.search-control { position: relative; max-width: 820px; margin-top: 24px; }
.search-control > label { display: block; margin-bottom: 9px; font-weight: 800; }
.search-input-wrap { position: relative; }
.search-input-wrap svg { position: absolute; left: 17px; top: 50%; width: 21px; height: 21px; fill: none; stroke: var(--teal); stroke-width: 2; transform: translateY(-50%); }
#path-search { width: 100%; min-height: 58px; padding: 14px 18px 14px 52px; color: var(--ink); background: #fff; border: 2px solid #9fb5b1; border-radius: 0; font-size: 1.05rem; outline: none; }
#path-search:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(23,119,111,.13); }
.search-help { margin: 9px 0 0; color: var(--muted); font-size: .86rem; }
.suggestions { position: absolute; top: calc(100% - 24px); left: 0; right: 0; z-index: 20; max-height: 350px; overflow: auto; background: #fff; border: 1px solid #96aca8; box-shadow: 0 18px 40px rgba(7,51,61,.16); }
.suggestion { width: 100%; display: flex; justify-content: space-between; gap: 18px; padding: 14px 16px; color: var(--ink); text-align: left; background: #fff; border: 0; border-bottom: 1px solid #e1e9e6; }
.suggestion:hover, .suggestion:focus-visible { background: #edf6f3; outline: none; }
.suggestion strong { display: block; }
.suggestion span { color: var(--muted); font-size: .8rem; }

.selection-summary { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); gap: 42px; align-items: center; margin: 38px 0 28px; padding: 34px; color: #fff; background: var(--navy-deep); }
.selection-summary > div > p:last-child { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,.72); }
.selection-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-left: 1px solid rgba(255,255,255,.16); }
.selection-facts div { padding: 10px 22px; }
.selection-facts dt { color: rgba(255,255,255,.62); font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.selection-facts dd { margin: 3px 0 0; font-size: 1.35rem; font-weight: 850; }

.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 20px; background: var(--cream); border: 1px solid var(--line); }
.filters label { color: #314b52; font-size: .82rem; font-weight: 800; }
.filters select { width: 100%; min-height: 44px; margin-top: 7px; padding: 8px 34px 8px 11px; color: var(--ink); background: #fff; border: 1px solid #adc0bc; border-radius: 0; }
.major-paths { margin-top: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); }
.major-paths p { margin: 0 0 12px; font-weight: 800; }
#major-path-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.path-chip { padding: 7px 11px; color: var(--navy); background: #fff; border: 1px solid #8fb1aa; border-radius: 999px; font-size: .8rem; font-weight: 750; }
.path-chip.active { color: #fff; background: var(--teal); border-color: var(--teal); }
.results-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 42px 0 20px; }
.result-count { margin: 0; color: var(--muted); font-weight: 750; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result-card { display: flex; flex-direction: column; min-height: 100%; padding: 26px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(7,51,61,.06); }
.card-topline { display: flex; justify-content: space-between; gap: 12px; color: var(--teal); font-size: .74rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.result-card h3 { margin: 14px 0 6px; font-size: 1.55rem; }
.result-card h3 a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.location { margin: 0; color: var(--muted); font-size: .9rem; }
.program-name { margin: 18px 0; padding: 12px 14px; color: #244149; background: var(--cream); border-left: 3px solid var(--gold); font-weight: 750; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metrics div { min-height: 88px; padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics dt { color: var(--muted); font-size: .75rem; font-weight: 700; }
.metrics dd { margin: 5px 0 0; color: var(--navy-deep); font-size: 1.18rem; font-weight: 850; }
.metrics dd.missing { color: #697a7f; font-size: .95rem; font-weight: 700; }
.earnings-note { margin: 14px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.5; }
.card-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: auto; padding-top: 20px; }
.card-actions a { color: var(--teal); font-size: .88rem; font-weight: 850; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.secondary-button { min-height: 46px; padding: 10px 20px; color: var(--navy); background: #fff; border: 1px solid var(--navy); font-weight: 850; }
.show-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.empty-state { grid-column: 1 / -1; padding: 42px; color: var(--muted); text-align: center; background: #fff; border: 1px solid var(--line); }

.method-note { color: #fff; background: var(--navy); }
.method-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; padding-block: 72px; }
.method-copy { color: rgba(255,255,255,.74); font-size: 1.03rem; line-height: 1.75; }
.method-copy p { margin-top: 0; }
.method-copy .data-vintage { color: #fff; font-size: .9rem; font-weight: 750; }
footer { background: var(--cream); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding-block: 42px; color: var(--muted); font-size: .86rem; }
.footer-inner strong { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.footer-inner p { max-width: 560px; margin: 7px 0 0; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero-grid, .selection-summary, .method-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-grid { padding-block: 62px 78px; }
  .selection-facts { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding-top: 14px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1240px); }
  .site-header { position: static; }
  .header-inner { min-height: 70px; }
  h1 { font-size: 3.1rem; }
  .explorer { margin-top: -24px; }
  .search-panel, .selection-summary { padding: 22px; }
  .panel-heading, .results-heading-row, .footer-inner { align-items: flex-start; flex-direction: column; }
  .mode-switch { display: grid; width: 100%; }
  .mode-button { padding-inline: 10px; }
  .filters { grid-template-columns: 1fr; }
  .selection-facts { grid-template-columns: 1fr 1fr; }
  .selection-facts div { padding-inline: 0; }
  .metrics { grid-template-columns: 1fr; }
  .method-grid { padding-block: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
