@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/barlow-condensed-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #182228;
  --muted: #516068;
  --line: #d9dfe0;
  --paper: #f5f6f5;
  --white: #fff;
  --dark: #11191f;
  --amber: #ffc758;
  --heading: "Barlow Condensed", "Bahnschrift", "Segoe UI", sans-serif;
  --body: "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1.125rem, 4vw, 3rem);
  font-family: var(--body);
  font-size: 100%;
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); }
a { color: #214d62; text-underline-offset: .18em; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #046e9d; outline-offset: 4px; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--heading); font-weight: 600; }
h1 { font-size: clamp(2.875rem, 6.6vw, 5.9rem); line-height: .97; letter-spacing: -.015em; }
h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.06; }
h3 { font-size: 1.15rem; line-height: 1.35; }

.shell { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus { position: absolute; z-index: 3; top: 1rem; left: var(--gutter); padding: .65rem 1rem; background: var(--white); color: var(--ink); }

.site-header, .site-footer { color: #f4f5f5; background: var(--dark); }
.site-header { border-bottom: 1px solid #31404a; }
.header-row, .footer-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: .8rem 1.6rem; min-height: 4.75rem;
}
.brand {
  display: inline-flex; gap: .7rem; align-items: center; flex-shrink: 0;
  color: var(--white); font-size: 1.06rem; font-weight: 650; letter-spacing: -.035em; text-decoration: none;
}
.brand b { color: var(--amber); font-weight: 750; }
.brand-mark {
  display: inline-grid; place-items: center; inline-size: 2.1rem; block-size: 2.1rem;
  background: var(--amber); color: var(--dark); border-radius: .4rem;
}
.brand-mark::before {
  content: ""; width: 1.13rem; height: 1.13rem; border: solid currentColor; border-width: 0 .22rem .22rem 0;
  transform: rotate(42deg) translate(-.09rem, -.08rem) skew(-7deg);
}
.brand-mark::after {
  content: ""; position: absolute; inline-size: .34rem; block-size: .34rem;
  background: currentColor; border-radius: 50%; transform: translateY(-.38rem);
}
.site-nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2rem); }
.site-nav a, .site-footer nav a {
  color: #e2e8ea; font-size: .95rem; font-weight: 600; text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current], .site-footer nav a:hover { color: var(--amber); text-decoration: underline; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--amber); }
.site-footer { margin-top: auto; border-top: 3px solid #334048; }
.footer-row { padding-block: 1.5rem; }

.hero {
  position: relative; isolation: isolate; display: grid; align-items: center;
  background: #17242c; color: var(--white); overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, #11191f 0%, #11191f 16%, #11191fef 34%, #11191f98 55%, #11191f15 78%, #11191f24 100%),
    linear-gradient(0deg, #11191fa6, transparent 35%);
}
.hero__image {
  position: absolute; z-index: -2; inset: 0 0 0 auto;
  width: min(88%, 91rem); height: 100%;
  object-fit: cover; object-position: center 48%;
}
.hero__inner { position: relative; padding-block: clamp(4.125rem, 8vw, 7rem) clamp(4rem, 7vw, 6rem); }
.hero__content { max-width: 34rem; }
.hero h1 { font-size: clamp(3.375rem, 7.6vw, 6.5rem); }
.hero h1 span { color: var(--amber); }
.hero__content > p {
  max-width: 31rem; margin-block: 1.2rem 1.65rem; color: #e7edef;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem); line-height: 1.55;
}
.hero-shortcuts {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem .7rem;
  margin-top: 1.15rem; color: #ced7da; font-size: .9rem;
}
.hero-shortcuts > span { margin-right: .15rem; }
.hero-shortcuts a {
  border: 1px solid #64747b; border-radius: 2rem; padding: .18rem .58rem;
  color: var(--white); font-size: .88rem; text-decoration: none;
}
.hero-shortcuts a:hover { background: var(--amber); border-color: var(--amber); color: var(--dark); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.875rem;
  padding: .63rem 1.15rem; border: 1px solid transparent; border-radius: .42rem;
  font-size: .95rem; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
}
.button--amber { background: var(--amber); border-color: var(--amber); color: var(--dark); }
.button--amber:hover { background: #ffd889; border-color: #ffd889; }
.button--outline { background: var(--white); color: var(--ink); border-color: #adb9bd; }
.button--outline:hover { background: #eaf0f0; border-color: #64747b; }
.search-line { display: flex; gap: .55rem; align-items: stretch; }
.hero-search .search-line { padding: .34rem; border-radius: .6rem; background: var(--white); gap: 0; }
.search-input { position: relative; flex: 1; min-width: 0; }
.search-input input {
  width: 100%; min-height: 3.1rem; padding: .65rem .8rem .65rem 2.65rem;
  background: var(--white); color: var(--ink); border: 1px solid #adb9bd;
  border-radius: .4rem; font-size: 1rem;
}
.hero-search input { border-color: transparent; }
.hero-search input::placeholder { color: var(--muted); opacity: 1; }
.hero-search :is(button, input):focus-visible { outline-color: #046e9d; outline-offset: -2px; }
.search-icon {
  position: absolute; z-index: 1; top: 1.02rem; left: 1rem; display: block;
  width: .9rem; height: .9rem; border: 2px solid #506168; border-radius: 50%;
  pointer-events: none;
}
.search-icon::after {
  content: ""; position: absolute; top: .65rem; left: .6rem;
  width: .44rem; height: 2px; transform: rotate(45deg); background: #506168;
}

.coverage { padding-block: 1.05rem; background: #e5eaeb; border-bottom: 1px solid #d2dadc; }
.coverage-row {
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; list-style: none;
}
.coverage-row li {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  padding-inline: .6rem;
}
.coverage-row li + li { border-left: 1px solid #b8c4c7; }
.coverage-row strong { font: 600 2rem/.95 var(--heading); }
.coverage-row span { font-size: .95rem; font-weight: 600; }

.section { padding-top: clamp(2rem, 4.3vw, 3.75rem); }
.section--last { padding-bottom: clamp(2.55rem, 5.5vw, 4.75rem); }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  flex-wrap: wrap; gap: .9rem 1.25rem; margin-bottom: 1.2rem;
}
.section-head p { margin-top: .45rem; color: var(--muted); }
.place-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem;
  margin: 1.05rem 0 0; padding: 0; list-style: none;
}
.place-grid--city { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.place-card {
  display: flex; align-items: center; gap: .95rem; height: 100%; min-height: 5.05rem;
  padding: .85rem 1.05rem; border: 1px solid var(--line); border-radius: .5rem;
  background: var(--white); color: var(--ink); text-decoration: none;
}
.place-card:hover { border-color: #8b680a; background: #fffcf4; }
.place-card strong { display: block; line-height: 1.25; overflow-wrap: anywhere; font-size: 1.025rem; }
.place-count { display: block; margin-top: .16rem; color: var(--muted); font-size: .9rem; }
.state-code {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: 0 0 auto;
  color: #4b3a17; background: #fbebc0; border-radius: .4rem;
  font-size: .88rem; font-weight: 750; letter-spacing: .02em;
}
.method-strip {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .9rem 1.25rem;
  background: #e7ebec; border-left: .25rem solid #8b680a; padding: 1.25rem 1.5rem;
}
.method-strip h2 { font-size: clamp(1.65rem, 3vw, 2rem); }
.method-strip p { margin-top: .5rem; color: var(--muted); max-width: 53rem; }

.page-head { padding-block: 1.05rem clamp(2rem, 6vw, 4rem); background: #e5eaeb; border-bottom: 1px solid #d2dadc; }
.page-head h1 { font-size: clamp(3rem, 6.5vw, 5.15rem); overflow-wrap: anywhere; }
.page-head p { max-width: 52rem; margin-top: .8rem; color: #3d5059; }
.breadcrumb { margin-bottom: clamp(1.2rem, 3.2vw, 2.25rem); color: #455761; font-size: .91rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem .65rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .65rem; color: #63727b; }

.search-body { padding-bottom: 4.25rem; }
.search-panel {
  padding: 1.15rem; background: var(--white); border: 1px solid var(--line); border-radius: .55rem;
}
.search-panel > label, .search-filters > label { display: block; font-size: .94rem; font-weight: 650; }
.search-panel > label { margin-bottom: .35rem; }
.search-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: .9rem 1.1rem; margin-top: 1rem; }
.search-filters select {
  appearance: none; width: 100%; min-height: 2.85rem; margin-top: .3rem;
  padding: .45rem 2rem .45rem .7rem; border: 1px solid #adb9bd; border-radius: .4rem;
  background: linear-gradient(45deg, transparent 50%, #43535b 50%) calc(100% - 1.15rem) 50% / .34rem .34rem no-repeat,
    linear-gradient(135deg, #43535b 50%, transparent 50%) calc(100% - .82rem) 50% / .34rem .34rem no-repeat var(--white);
  font-weight: 500;
}
.search-filters .confirmed-control { display: flex; align-items: center; gap: .45rem; min-height: 2.85rem; margin-top: 1.75rem; }
.confirmed-control input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: #13506d; flex: 0 0 auto; }
.filter-help { display: block; margin-top: .18rem; color: var(--muted); font-size: .875rem; font-weight: 450; }
.reset-search {
  padding: 0; min-height: 2.25rem; margin-top: .45rem; color: #214d62; border: 0;
  background: transparent; font-size: .95rem; text-decoration: underline; text-underline-offset: .18em;
}
.results { padding-top: 2.15rem; }
.result-count { margin-block: .5rem 1rem; color: var(--muted); }
.zip-note { margin-block: -.55rem 1rem; max-width: 48rem; color: var(--muted); font-size: .95rem; }
.results-more { display: flex; margin: 1.35rem auto 0; }
.browse-fallback { margin-top: 1.3rem; }
.empty-state, .search-error {
  padding: 1rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--white);
  grid-column: 1 / -1;
}

.school-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.school-card {
  min-width: 0; padding: 1rem 1rem .9rem; background: var(--white);
  border: 1px solid var(--line); border-radius: .5rem;
}
.school-card__top { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: .35rem .6rem; }
.school-card__place, .detail-kicker {
  display: flex; align-items: baseline; gap: .37rem; color: #425661;
  font-size: .9rem; font-weight: 650;
}
.place-pin {
  display: inline-block; flex: 0 0 auto; position: relative;
  border: 1.5px solid currentColor; border-radius: 50% 50% 50% 0;
  height: .63rem; width: .63rem; transform: rotate(-45deg);
}
.place-pin::before {
  content: ""; position: absolute; inset: 30%; background: currentColor; border-radius: 50%;
}
.card__more { color: var(--muted); font-weight: 500; }
.pill {
  display: inline-block; padding: .12rem .53rem; border-radius: 2rem;
  background: #eef1f1; color: #46585e; font-size: .875rem; font-weight: 650;
}
.pill--confirmed { background: #deefe5; color: #204d39; }
.school-card h3 { margin-top: .5rem; overflow-wrap: anywhere; }
.school-card h3 a { color: var(--ink); }
.school-card h3 a:hover { color: #214d62; }
.school-card__credentials { margin-top: .32rem; color: #425661; }
.school-card__credentials b { font-weight: 650; }
.school-card__distance { margin-top: .3rem; color: #425661; font-size: .9rem; }
.school-card__sources {
  margin-top: .65rem; padding-top: .55rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.school-card__sources p + p { margin-top: .25rem; }
.school-card__sources a { overflow-wrap: anywhere; }

.page-head--school .pill { margin-top: .9rem; }
.detail-kicker { margin-bottom: .5rem; }
.detail-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(1.1rem, 4vw, 3.4rem); }
.detail-section + .detail-section { margin-top: 1.8rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.detail-section > p, .detail-panel p { margin-top: .6rem; }
.program-name { font-size: 1.2rem; font-weight: 700; }
.source-meta { font-size: .93rem; color: var(--muted); overflow-wrap: anywhere; }
.detail-panel {
  padding: 1.1rem; border: 1px solid var(--line); border-radius: .5rem;
  background: var(--white);
}
.detail-panel + .detail-panel { margin-top: 1rem; }
.detail-panel h2 { font-size: 1.85rem; }
.detail-panel > a { display: block; margin-top: .5rem; }
.planning-list { margin: .55rem 0 .75rem; }
.planning-list div {
  display: flex; justify-content: space-between; align-items: baseline; gap: .45rem 1rem;
  border-bottom: 1px solid var(--line); padding-block: .38rem;
}
.planning-list dt { font-weight: 650; }
.planning-list dd { margin: 0; color: var(--muted); text-align: right; }
.campus-list { display: grid; gap: .65rem; list-style: none; margin: .85rem 0 0; padding: 0; }
.campus-list li { padding: .85rem; background: var(--white); border: 1px solid var(--line); border-radius: .45rem; }
.campus-list p { margin-top: .25rem; }
.evidence-list { margin: .7rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.evidence-list li + li { margin-block-start: .35rem; }
.table-scroll { overflow: auto; margin-top: .85rem; border: 1px solid var(--line); border-radius: .4rem; }
table { width: 100%; border-collapse: collapse; background: var(--white); text-align: left; }
th, td { padding: .55rem .7rem; vertical-align: top; font-size: .95rem; }
thead th { background: #e5eaeb; }
tbody th { font-weight: 500; }
tbody tr { border-top: 1px solid var(--line); }
.zero-awards { color: var(--muted); }
.prose { max-width: 53rem; }
.prose section + section { margin-top: 1.75rem; }
.prose p { margin-top: .65rem; }
.recovery-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

@media (max-width: 55rem) {
  .place-grid--city { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-filters .confirmed-control { margin-top: 0; }
  .hero__image { width: 100%; object-position: 56% 45%; }
  .hero::after { background: linear-gradient(90deg, #11191f 0%, #11191fe8 30%, #11191f9b 63%, #11191f55 100%); }
  .detail-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

@media (max-width: 38rem) {
  .header-row, .footer-row { padding-block: .85rem; align-items: start; flex-direction: column; }
  .site-nav a, .site-footer nav a { font-size: .9rem; }
  .hero__inner { padding-block: 3.2rem 2.65rem; }
  .hero__image { object-position: 61% 45%; }
  .hero::after { background: linear-gradient(90deg, #11191ff5, #11191fb9 70%, #11191f86); }
  .hero__content > p { margin-block: .9rem 1.2rem; }
  .hero-shortcuts { align-items: baseline; gap: .45rem; }
  .coverage-row li { flex-direction: column; gap: .35rem; text-align: center; align-items: center; }
  .coverage-row strong { font-size: 1.8rem; }
  .coverage-row span { font-size: .85rem; line-height: 1.3; }
  .place-grid, .place-grid--city { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .place-card { padding: .65rem .55rem; gap: .45rem; }
  .state-code { width: 2rem; height: 2rem; font-size: .8rem; }
  .school-grid, .detail-grid { grid-template-columns: 1fr; }
  .search-panel { padding: .85rem; }
  .search-filters { grid-template-columns: 1fr; gap: .6rem; }
  .search-panel .search-line { flex-direction: column; }
  .search-panel .search-line .button { align-self: start; }
  .hero-search .button { padding-inline: .7rem; font-size: .88rem; }
  .hero-search input { padding-right: .1rem; font-size: .94rem; }
}
