/* V42: public college pages — /colleges, /colleges/state/<state>,
   /colleges/<slug> (rendered by server.py). The /chances design language:
   same tokens, Inter, star wordmark nav, the landing's graph-paper grid.
   Mobile-first — nothing here may widen the page past a 375px viewport;
   the state table scrolls inside its own wrapper instead. */

/* Inter self-hosted, same files and ranges as the landing (V22) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/inter-latin.woff2?v=1") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); ascent-override: 90.20%; descent-override: 22.48%; line-gap-override: 0%; size-adjust: 107.40%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #111111;
  --muted: #555b66;
  --faint: #666d78;
  --accent: #2563eb;
  --line: #e8eaee;
  --bg: #ffffff;
  --bg-soft: #fafbfc;
  --radius: 10px;
  --ease: cubic-bezier(.22,.72,.28,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
/* everything scrolled into view (skip link, focus, #anchors) clears the
   sticky nav — e.g. tabbing onto the state table */
html { background: var(--bg); scroll-padding-top: 80px; }
body {
  font-family: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; position: relative;
}
/* the landing's graph-paper grid */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(17,17,17,0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,17,0.075) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.site-nav, main, footer { position: relative; z-index: 1; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 30; background: #fff; color: var(--ink); padding: 8px 12px; border: 2px solid var(--accent); border-radius: 6px; }
.skip:focus { left: 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.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; }

.site-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 980px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20.5px; color: var(--ink); letter-spacing: -0.035em; }
.wordmark .mark { filter: drop-shadow(0 2px 6px rgba(37,99,235,0.35)); flex: none; }
.wordmark:hover { text-decoration: none; }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.btn { display: inline-block; padding: 8px 18px; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .18s var(--ease), box-shadow .18s var(--ease); }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0) scale(.985); transition-duration: .06s; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #2c2f36; transform: translateY(-1.5px); box-shadow: 0 6px 18px rgba(17,17,17,.16); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: #c8cdd5; background: var(--bg-soft); transform: translateY(-1.5px); }
.btn-big { padding: 12px 26px; font-size: 16px; border-radius: var(--radius); }

/* breadcrumbs */
.crumbs { padding-top: 22px; font-size: 13.5px; color: var(--faint); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; }
.crumbs li { overflow-wrap: anywhere; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--faint); }
.crumbs [aria-current="page"] { color: var(--muted); }

header.top { padding: 18px 0 10px; }
.crumbs + header.top { padding-top: 10px; }
header.top h1 { font-size: clamp(28px, 6.6vw, 40px); line-height: 1.14; letter-spacing: -0.025em; font-weight: 700; margin-bottom: 10px; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 15px; }
.lede { color: var(--ink); font-size: 16.5px; margin-top: 12px; max-width: 640px; }
.source, .note, .footnote { color: var(--faint); font-size: 13px; }
.source { margin-top: 10px; }
.note { margin: 2px 0 8px; }
.hintline { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.chances-cta { margin-top: 18px; }
.chances-cta .btn { width: 100%; text-align: center; }
@media (min-width: 640px) { .chances-cta .btn { width: auto; } }

section { padding: 0; }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 10px; box-shadow: 0 8px 26px rgba(17,17,17,0.05); margin-top: 16px; }
.panel h2 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; overflow-wrap: anywhere; }

/* a section as a simple definition table: label left, number right */
.facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: 14.5px; min-width: 0; }
.facts dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; flex: none; max-width: 55%; }

.links { list-style: none; }
.links li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; overflow-wrap: anywhere; }
.links li:first-child { border-top: 0; }
.muted { color: var(--faint); font-size: 13.5px; white-space: nowrap; }
.all { margin: 8px 0 6px; font-size: 15px; font-weight: 500; }

/* index: the filter, the state list, every college A–Z */
.finder { margin-top: 18px; }
.finder label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.finder input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.finder input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.finder input::-webkit-search-cancel-button { -webkit-appearance: none; }
.state-list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14.5px; padding-bottom: 8px; }
.state-list .n { color: var(--faint); font-size: 12.5px; }
.panel + .note { margin-top: 18px; }
.az-state { margin-top: 26px; }
.az-state h2 { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.az-state h2 .n { font-size: 13px; color: var(--faint); font-weight: 500; letter-spacing: 0; }
.az-list { list-style: none; }
.az-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.az-list li a { min-width: 0; overflow-wrap: anywhere; }
.az-list .r { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
@media (min-width: 720px) {
  .az-list { columns: 2; column-gap: 32px; }
  .az-list li { break-inside: avoid; }
}

/* state page: one plain table, scrolling inside its wrapper on phones.
   position: relative makes the wrapper the containing block of the cells'
   absolutely-positioned "Not reported" labels, so its overflow clips them
   too — otherwise they sit at their unscrolled x and widen the page. */
.table-wrap { position: relative; margin-top: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 8px 26px rgba(17,17,17,0.05); }
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ctable { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.ctable th, .ctable td { padding: 10px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.ctable thead th { border-top: 0; background: var(--bg-soft); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ctable tbody th { font-weight: 500; min-width: 210px; }
.ctable td { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Inter's tabular figures widen the hyphen too: "in - state" */
.ctable td .muted { font-variant-numeric: normal; }
.table-wrap + .note { margin-top: 10px; }
/* on phones the last three columns start off-screen with no visual cue */
.scroll-hint { color: var(--faint); font-size: 13px; margin-top: 14px; }
.scroll-hint + .table-wrap { margin-top: 6px; }
@media (min-width: 700px) {
  .scroll-hint { display: none; }
  .scroll-hint + .table-wrap { margin-top: 16px; }
}

/* sign-up block (the /chances CTA) */
.cta-block { margin-top: 24px; border: 1px solid #dbe5fb; border-radius: 14px; background: #f4f7fe; padding: 20px 16px; text-align: center; }
.cta-block p { color: var(--ink); font-weight: 600; font-size: 16.5px; max-width: 480px; margin: 0 auto 14px; }
.cta-block .cta-note { font-size: 12.5px; font-weight: 400; color: var(--faint); margin: 10px auto 0; }
.footnote { margin-top: 18px; }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 36px; font-size: 13px; color: var(--faint); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transition: none !important; transform: none !important; box-shadow: none !important; }
}
