/* ── UC Reach Index — Design System ─────────────────────────────────────────
   Tone: executive, data-forward, credible to school boards and districts.
   No gimmicks. No gradients. Clean typographic hierarchy.
   Primary palette: deep navy + warm gold + slate.
───────────────────────────────────────────────────────────────────────────── */

:root {
  --navy:         #0f2545;
  --navy-mid:     #1a3a6b;
  --navy-light:   #2a5298;
  --navy-pale:    #eef3fb;

  --gold:         #c8932a;
  --gold-mid:     #d9a23a;
  --gold-light:   #e8b84b;
  --gold-pale:    #fef9e7;

  --slate:        #4a5568;
  --slate-light:  #718096;
  --slate-pale:   #f7f8fc;

  --green:        #1a6b3a;
  --green-pale:   #e8f5ee;
  --amber:        #7a5c00;
  --amber-pale:   #fef9e7;
  --red:          #8b1a1a;
  --red-pale:     #fdf0f0;

  --surface:      #f7f8fc;
  --surface-2:    #eef1f7;
  --white:        #ffffff;

  --border:       #dde2ec;
  --border-light: #eef1f7;

  --text:         #0f2545;
  --text-2:       #4a5568;
  --text-3:       #718096;

  --radius:       8px;
  --radius-lg:    12px;
  --radius-xl:    16px;

  --shadow-sm:    0 1px 3px rgba(15,37,69,0.07);
  --shadow:       0 2px 8px rgba(15,37,69,0.09);
  --shadow-md:    0 4px 16px rgba(15,37,69,0.12);
}

/* ── Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-logo {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--gold-light); }
.nav-links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex: 0 1 auto;   /* don't grow — leave room for the search input */
}
.nav-link {
  color: rgba(255,255,255,0.72);
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  border-bottom-color: var(--gold-light);
  text-decoration: none;
}
.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 6px;
  text-decoration: none;
  margin-left: auto;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-light); text-decoration: none; }

/* ── Nav dropdown groups (High School / Higher Education) ─────── */
.nav-group { position: relative; }
.nav-group-toggle {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-group .caret { font-size: 10px; opacity: 0.8; transition: transform 0.15s; }
.nav-group.active > .nav-group-toggle { color: #fff; border-bottom-color: var(--gold-light); }
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 212px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  padding: 6px;
  display: none;
  z-index: 250;
}
/* hover bridge so the menu doesn't vanish crossing the gap */
.nav-dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group.open .nav-dropdown { display: block; }
.nav-group:hover .caret, .nav-group.open .caret { transform: rotate(180deg); }
.nav-drop-link {
  display: block;
  padding: 9px 12px;
  color: #1f2a44;
  font-size: 13.5px;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-drop-link:hover { background: #eef3fb; color: var(--navy); text-decoration: none; }

/* Desktop: wrapper is transparent to layout so logo/links/search/cta lay out
   as a single flex row. The hamburger only appears on mobile (below). */
.nav-collapse { display: contents; }
.nav-toggle {
  display: none;
  background: none; border: 0; color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
  margin-left: auto; padding: 4px 8px;
}

/* ── Nav search ──────────────────────────────────────────────── */
.nav-search-container {
  position: relative;
  flex: 1 1 auto;      /* take the space the links leave behind */
  min-width: 0;        /* allow shrink so the CTA never gets pushed off-screen */
  max-width: 360px;
}
.nav-search-input {
  width: 100%;
  padding: 10px 16px;
  font-size: 14.5px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  outline: none;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.nav-search-input::placeholder { color: rgba(255,255,255,0.45); }
.nav-search-input:focus {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}
.nav-search-container .search-dropdown {
  top: calc(100% + 6px);
}

/* ── Layout containers ───────────────────────────────────────────────────── */
.page-container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.page-container-narrow { max-width: 860px; margin: 0 auto; padding: 2rem; }

/* ── Page headers ────────────────────────────────────────────────────────── */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 2rem;
  text-align: center;
}
.page-header h1 { font-size: 1.9rem; color: #fff; margin-bottom: 6px; }
.page-header p { color: rgba(255,255,255,0.75); font-size: 15px; max-width: 500px; margin: 0 auto; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 1.5rem; }
.card-pad-lg { padding: 2rem; }

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Metric cards ────────────────────────────────────────────────────────── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 1.5rem;
}
.metric-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.metric-card.accent-navy  { border-left: 4px solid var(--navy-light); }
.metric-card.accent-green { border-left: 4px solid var(--green); }
.metric-card.accent-gold  { border-left: 4px solid var(--gold); }
.metric-card.accent-slate { border-left: 4px solid var(--slate-light); }
.metric-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-3);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric-sub {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 5px;
}
.metric-na { color: var(--text-3); font-size: 1.2rem; font-weight: 400; }

/* ── Tooltip ─────────────────────────────────────────────────────────────── */
.tip {
  display: inline-block;
  cursor: help;
  color: var(--text-3);
  font-size: 12px;
  position: relative;
}
/* Floating tooltip element is appended to <body> by JS so it escapes any
   overflow:hidden / overflow:auto ancestor (e.g. scrollable data tables). */
.tip-tooltip {
  position: fixed;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 6px;
  width: 240px;
  max-width: 80vw;
  line-height: 1.5;
  white-space: normal;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ── Data tables ─────────────────────────────────────────────────────────── */
.data-table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.data-table th {
  background: var(--surface);
  color: var(--text-3);
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--navy); }
.data-table th.sorted { color: var(--navy-light); }
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--navy-pale); }
.td-right { text-align: right; font-variant-numeric: tabular-nums; }
/* Header cells need the explicit override — `.data-table th` sets left-align
   at a higher specificity than `.td-right`, which left numeric headers
   misaligned with their right-aligned values. */
.data-table th.td-right { text-align: right; }
.td-strong { font-weight: 700; color: var(--navy); }
.td-muted { color: var(--text-3); font-size: 12px; }
.td-school-name { font-weight: 600; color: var(--navy); }
.td-school-meta { font-size: 11.5px; color: var(--text-3); }
.rank-num { color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  vertical-align: middle;
}
.badge-blue   { background: var(--navy-pale);   color: var(--navy-light); }
.badge-gold   { background: var(--gold-pale);   color: var(--amber); }
.badge-green  { background: var(--green-pale);  color: var(--green); }
.badge-slate  { background: var(--surface-2);   color: var(--slate); }
.badge-elite    { background: #fff3cd; color: #7a5c00; }
.badge-selective{ background: var(--navy-pale); color: var(--navy-light); }

/* ── Interpretation boxes ────────────────────────────────────────────────── */
.interp-list { display: flex; flex-direction: column; gap: 10px; }
.interp-box {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.65;
  border-left: 4px solid transparent;
}
.interp-box.info    { background: var(--navy-pale); border-left-color: var(--navy-light); color: var(--navy); }
.interp-box.warning { background: var(--amber-pale); border-left-color: var(--gold); color: #5a4200; }
.interp-box.strong  { background: var(--green-pale); border-left-color: var(--green); color: var(--green); }

/* ── Audit CTA banner ────────────────────────────────────────────────────── */
.cta-banner {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.cta-banner h2 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.cta-banner p  { color: rgba(255,255,255,0.78); font-size: 14px; max-width: 520px; margin: 0 auto 1.5rem; line-height: 1.65; }
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--gold-light); text-decoration: none; color: var(--navy); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--navy-light);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-secondary:hover { background: var(--navy-pale); text-decoration: none; }
.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-navy:hover { background: var(--navy-mid); text-decoration: none; color: #fff; }

/* ── Chart wrapper ───────────────────────────────────────────────────────── */
.chart-wrap { position: relative; width: 100%; height: 220px; }
.chart-wrap-tall { position: relative; width: 100%; height: 360px; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-2);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

/* ── Search ──────────────────────────────────────────────────────────────── */
.search-container { position: relative; max-width: 560px; margin: 0 auto; }
.search-input {
  width: 100%;
  padding: 16px 22px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  outline: none;
  color: var(--text);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  font-family: inherit;
}
.search-input:focus { box-shadow: 0 4px 24px rgba(0,0,0,0.22), 0 0 0 3px rgba(200,147,42,0.3); }
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  z-index: 100;
  overflow: hidden;
  display: none;
}
.search-dropdown.open { display: block; }
.search-item {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--navy-pale); }
.search-item-name { font-weight: 600; color: var(--navy); font-size: 14px; }
.search-item-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ── Filters row ─────────────────────────────────────────────────────────── */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.filter-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
}
.filter-select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  font-family: inherit;
  cursor: pointer;
  appearance: auto;
}

/* ── Form elements ───────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-full { grid-column: 1 / -1; }
.form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  margin-bottom: 5px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42,82,152,0.12);
}
textarea.form-control { resize: vertical; }

/* ── Profile header ──────────────────────────────────────────────────────── */
.profile-header {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.profile-title h1 { font-size: 1.8rem; margin-bottom: 4px; }
.profile-meta { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ── School mini cards ───────────────────────────────────────────────────── */
.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.school-mini-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  display: block;
}
.school-mini-card:hover {
  border-color: var(--navy-light);
  background: var(--navy-pale);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.school-mini-name { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.school-mini-loc  { font-size: 11px; color: var(--text-3); margin-bottom: 8px; }
.school-mini-val  { font-size: 22px; font-weight: 700; color: var(--navy-light); line-height: 1; }
.school-mini-key  { font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-3); margin-top: 2px; }

/* ── Compare page picker (2026-06-01 redesign) ─────────────────────
   Replaces the old `school-selector` wall of toggles. Layout is a
   single card with three rows: (1) anchor + peer rule, (2) add-by-
   search, (3) selected chips. The legacy `.school-toggle` rules
   below are dead code but kept so older bookmarks/snapshots don't
   suddenly render badly if they reference the class. */
.compare-picker__row {
  margin-bottom: 16px;
}
.compare-picker__row:last-child { margin-bottom: 0; }
.compare-picker__step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.compare-picker__peer-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.compare-picker__anchor { position: relative; min-width: 240px; flex: 0 1 280px; }
.compare-picker__add    { position: relative; max-width: 480px; }
.compare-picker__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.compare-picker__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.compare-picker__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  background: var(--navy-pale, #eef3fb);
  color: var(--brand-navy, #0f2545);
  border: 1px solid var(--navy-light, #cbd6e8);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.compare-picker__chip:hover {
  background: #e2eaf6;
  border-color: var(--brand-navy, #2a5298);
  text-decoration: none;
  color: var(--brand-navy);
}
.compare-picker__chip-name { font-weight: 600; }
.compare-picker__chip-city {
  color: var(--gray-600);
  font-size: 11.5px;
}
.compare-picker__chip-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
}
.compare-picker__chip:hover .compare-picker__chip-close {
  background: var(--brand-navy);
  color: #fff;
}
.compare-picker__year {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

/* ── Legacy compare-page toggle wall (no longer rendered) ───────── */
.school-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.school-toggle {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}
.school-toggle:hover { border-color: var(--navy-light); background: var(--navy-pale); text-decoration: none; color: var(--text); }
.school-toggle.selected { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Methodology page ────────────────────────────────────────────────────── */
.method-section { margin-bottom: 2.5rem; }
.method-section h2 {
  font-size: 1.25rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 1rem;
  color: var(--navy);
}
.method-section p, .method-section li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 8px;
}
.method-section li { margin-left: 1.5rem; }
.formula-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: var(--navy);
  margin: 12px 0;
}
.caveat-box {
  background: var(--amber-pale);
  border: 1px solid #e8d48b;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.caveat-box li { color: var(--amber); margin-left: 1.2rem; font-size: 13.5px; margin-bottom: 4px; }

/* ── Audit page ──────────────────────────────────────────────────────────── */
.audit-hero {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.audit-hero h1 { color: #fff; font-size: 2.1rem; margin-bottom: 1rem; line-height: 1.2; }
.audit-hero p  { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto 1.75rem; font-size: 1rem; line-height: 1.65; }
.audit-hero em { color: #c8932a; font-style: normal; font-weight: 600; }
/* "What's inside" 2-col checklist — collapses to 1 column on mobile */
@media (max-width: 720px) {
  .audit-checklist { grid-template-columns: 1fr !important; }
  /* /test-scores "Rising GPAs, falling readiness" 2-col grid */
  .gpa-sat-grid { grid-template-columns: 1fr !important; }
  /* /test-scores Cornell year-over-year trend 2-col grid */
  .cornell-trend-grid { grid-template-columns: 1fr !important; }
}
.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.deliverable-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.deliverable-icon { font-size: 22px; margin-bottom: 8px; }
.deliverable-card h3 { font-size: 14.5px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.deliverable-card p  { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* ── Success banner ──────────────────────────────────────────────────────── */
.success-banner {
  background: var(--green-pale);
  border: 1px solid #a8dabe;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 14px;
  color: var(--green);
  margin-bottom: 1.5rem;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--navy-light); }
.breadcrumb span { margin: 0 6px; }

/* ── Data caveat strip ───────────────────────────────────────────────────── */
.data-caveat-strip {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 8px 14px;
  font-size: 11.5px;
  color: var(--text-3);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 2rem;
}
.footer-brand strong { color: #fff; font-size: 15px; display: block; margin-bottom: 6px; }
.footer-brand p { font-size: 12.5px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }
.footer-caveat p { font-size: 11.5px; line-height: 1.65; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
/* Sticky first column for wide horizontally-scrolling tables (compare, etc.).
   Keeps the row label visible while the user swipes through columns. */
.sticky-first-col .sticky-col {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
  box-shadow: 2px 0 0 rgba(0,0,0,0.04);
}
.sticky-first-col thead .sticky-col { background: var(--surface-2, #eef1f7); z-index: 3; }

/* Nav collapses to a hamburger earlier than other mobile rules: a long logo +
   7 links + CTA leave no room for a usable inline search below ~1024px, so we
   switch to the dropdown panel (which gives a full-width search) at that width. */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-collapse {
    display: none;
    position: absolute; top: 58px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--navy);
    box-shadow: 0 10px 18px rgba(0,0,0,0.25);
    padding: 6px 0 12px;
    z-index: 200;
  }
  .site-nav.open .nav-collapse { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; flex: none; width: 100%; }
  .nav-link { padding: 12px 1.5rem; border-bottom: none; }
  .nav-link.active { border-bottom: none; background: rgba(255,255,255,0.07); }
  .nav-search-container { flex: none; max-width: none; margin: 10px 1.5rem 4px; }
  .nav-cta { margin: 8px 1.5rem 0; text-align: center; }
  /* Dropdown groups become tap-to-expand inline accordions on mobile */
  .nav-group { width: 100%; }
  .nav-group-toggle { width: 100%; justify-content: space-between; padding: 12px 1.5rem; }
  .nav-group.active > .nav-group-toggle { border-bottom-color: transparent; background: rgba(255,255,255,0.07); }
  .nav-dropdown {
    position: static; box-shadow: none; background: rgba(0,0,0,0.18);
    border-radius: 0; padding: 0; min-width: 0;
  }
  .nav-dropdown::before { display: none; }
  .nav-group:hover .nav-dropdown, .nav-group:focus-within .nav-dropdown { display: none; }
  .nav-group.open .nav-dropdown { display: block; }
  .nav-drop-link { color: rgba(255,255,255,0.78); padding: 11px 2.6rem; }
  .nav-drop-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
}

@media (max-width: 900px) {
  .gpa-perf-grid { grid-template-columns: 1fr !important; }
  .campus-lists-grid { grid-template-columns: 1fr 1fr !important; }
  .lists-grid-3       { grid-template-columns: 1fr 1fr !important; }
  .stories-grid       { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .campus-lists-grid { grid-template-columns: 1fr !important; }
  .lists-grid-3      { grid-template-columns: 1fr !important; }
  .lists-grid-2      { grid-template-columns: 1fr !important; }
  .top10-grid        { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .movers-grid { grid-template-columns: 1fr !important; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .sys-hide-grid { grid-template-columns: 1fr !important; }
  .insights-band-grid { grid-template-columns: 1fr !important; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; }
  .page-container, .page-container-narrow { padding: 1.25rem; }

  /* Hide low-priority rankings columns on phones; horizontal scroll still
     works for power users on a tablet. Mobile keeps: rank, School,
     Seniors, UC Reach Index, Admit Rate. */
  .rankings-table .hide-mobile { display: none; }

  /* Page header smaller on phones */
  .page-header h1 { font-size: 1.4rem; }
  .page-header p  { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .metric-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 1.6rem; }
}

/* ════════════════════════════════════════════════════════════════════
   Design tokens — phase 1: the colors used by the new UC Reach
   credential card + distribution bar + scorecard maximalist hero.
   Eventually these will replace the inline hex values across all
   templates; for now only the new components use them.
   ════════════════════════════════════════════════════════════════════ */
:root {
  --brand-navy:        #0f2545;
  --brand-navy-dark:   #0a1a35;
  --brand-navy-light:  #1e4080;
  --brand-gold:        #d4a217;
  --brand-gold-light:  #e8b84b;

  --tone-positive:        #2f855a;
  --tone-positive-soft:   #e6f4ec;
  --tone-positive-strong: #1a4a2a;
  --tone-negative:        #c53030;
  --tone-warn:            #c8932a;
  --tone-info:            #2a5298;
  --tone-info-soft:       #eef3fb;
  --tone-info-strong:     #1f2a44;

  --tier-elite-bg:     #fff7df;
  --tier-elite-fg:     #7a5a00;
  --tier-elite-border: #d4a217;
  --tier-top5-bg:      #f0e8fc;
  --tier-top5-fg:      #4b2a85;
  --tier-top5-border:  #7c4cc7;
  --tier-top10-bg:     #e6f4ec;
  --tier-top10-fg:     #1a6b3a;
  --tier-top10-border: #2f855a;

  --gray-900: #0f2545;
  --gray-800: #1f2a44;
  --gray-700: #4a5568;
  --gray-600: #718096;
  --gray-500: #a0aec0;
  --gray-400: #cbd5e0;
  --gray-300: #e2e8f0;
  --gray-200: #edf2f7;
  --gray-100: #f4f6fa;
  --gray-50:  #f7f8fc;

  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-pill: 999px;
  --shadow-sm:   0 1px 2px rgba(15, 37, 69, 0.05);
  --shadow-md:   0 2px 8px rgba(15, 37, 69, 0.08);
  --shadow-lg:   0 4px 16px rgba(15, 37, 69, 0.12);
}

/* ───── UC Reach credential card (school profile hero) ─────────────── */
.uc-credential {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.uc-credential__eyebrow {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
  padding: 8px 24px;
  color: #fff;
}
.uc-credential__eyebrow-text {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.uc-credential__hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  align-items: stretch;
}
.uc-credential__metric {
  padding: 24px 24px 20px;
}
.uc-credential__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.uc-credential__label {
  font-size: 11px;
  color: var(--gray-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.uc-credential__value {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 4px 0;
}
.uc-credential__value-pct {
  font-size: 2.5rem;
  margin-left: 2px;
}
.uc-credential__delta {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
}
.uc-credential__delta-positive { color: var(--tone-positive); font-weight: 700; }
.uc-credential__delta-negative { color: var(--tone-negative); font-weight: 700; }
.uc-credential__chart {
  background: var(--gray-50);
  border-left: 1px solid var(--gray-200);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.uc-credential__chart-label {
  font-size: 10.5px;
  color: var(--gray-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.uc-credential__chart-canvas {
  height: 60px;
  position: relative;
}
.uc-credential__chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--gray-600);
  margin-top: 4px;
}
.uc-credential__chart-axis-end {
  color: var(--tone-positive);
  font-weight: 700;
}
.uc-credential__footer {
  padding: 12px 24px;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  font-size: 12px;
  color: var(--gray-700);
  line-height: 1.55;
}
.uc-credential__footer a {
  color: var(--tone-info);
  text-decoration: none;
}
.uc-credential__footer a:hover { text-decoration: underline; }

/* ───── UC Graduation Outcomes — compact per-campus table ───── */
/* The headline 6-yr grad rate now lives in the .metric-grid as a small
   tile (see school.html); this is just the per-campus breakdown table
   that sits below. The dead .uc-grad-card__* rules below are kept for
   now in case we revive the larger card; they no longer render. */
.uc-grad-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.uc-grad-mini-table th {
  text-align: left;
  color: var(--gray-600);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 6px;
  border-bottom: 1px solid var(--gray-200);
}
.uc-grad-mini-table th.num,
.uc-grad-mini-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.uc-grad-mini-table td {
  padding: 6px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
}
.uc-grad-mini-table tr:last-child td { border-bottom: none; }

/* ───── (legacy) Big UC grad credential card — no longer rendered ───── */
.uc-grad-card {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.uc-grad-card__eyebrow {
  background: linear-gradient(135deg, #1a6b3a 0%, #2f855a 100%);  /* green to differentiate from the navy UC Reach eyebrow */
  padding: 8px 24px;
  color: #fff;
}
.uc-grad-card__eyebrow-text {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.92;
}
.uc-grad-card__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.uc-grad-card__metric {
  padding: 22px 24px 20px;
}
.uc-grad-card__metric--secondary {
  background: var(--gray-50);
  border-left: 1px solid var(--gray-200);
}
.uc-grad-card__label {
  font-size: 11px;
  color: var(--gray-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.uc-grad-card__value {
  font-size: 3.8rem;
  font-weight: 800;
  color: #1a6b3a;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 4px 0;
}
.uc-grad-card__metric--secondary .uc-grad-card__value {
  color: var(--brand-navy);
}
.uc-grad-card__value-pct {
  font-size: 2.1rem;
  margin-left: 2px;
}
.uc-grad-card__sub {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.45;
  margin-top: 2px;
}
.uc-grad-card__delta {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
  margin-top: 6px;
}
.uc-grad-card__delta--positive { color: var(--tone-positive); font-weight: 700; }
.uc-grad-card__delta--negative { color: var(--tone-negative); font-weight: 700; }
.uc-grad-card__secondary {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--gray-300);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.uc-grad-card__secondary-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
}
.uc-grad-card__secondary-label {
  font-size: 12.5px;
  color: var(--gray-600);
}
.uc-grad-card__by-campus {
  padding: 18px 24px 14px;
  border-top: 1px solid var(--gray-200);
}
.uc-grad-card__by-campus-title {
  font-size: 11.5px;
  color: var(--gray-700);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.uc-grad-card__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.uc-grad-card__table th {
  text-align: left;
  color: var(--gray-600);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 6px;
  border-bottom: 1px solid var(--gray-200);
}
.uc-grad-card__table th.num,
.uc-grad-card__table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.uc-grad-card__table td {
  padding: 6px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
}
.uc-grad-card__table tr:last-child td { border-bottom: none; }
.uc-grad-card__note {
  font-size: 11.5px;
  color: var(--gray-600);
  margin-top: 8px;
  font-style: italic;
}
.uc-grad-card__footer {
  padding: 12px 24px;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  font-size: 12px;
  color: var(--gray-700);
  line-height: 1.55;
}
.uc-grad-card__footer a {
  color: var(--tone-info);
  text-decoration: none;
}
.uc-grad-card__footer a:hover { text-decoration: underline; }
.uc-grad-card--small .uc-grad-card__small-note {
  padding: 20px 24px;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.55;
}
@media (max-width: 720px) {
  .uc-grad-card__hero {
    grid-template-columns: 1fr;
  }
  .uc-grad-card__metric--secondary {
    border-left: none;
    border-top: 1px solid var(--gray-200);
  }
  .uc-grad-card__value {
    font-size: 3.1rem;
  }
}

/* ───── Distribution bar (sits below the credential card) ─────────── */
.uc-distribution {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 18px 22px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.uc-distribution__title {
  font-size: 11px;
  color: var(--gray-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.uc-distribution__track {
  position: relative;
  height: 56px;
  margin-bottom: 4px;
}
.uc-distribution__bar {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right,
    var(--tone-negative) 0%,
    var(--tone-warn) 30%,
    var(--tone-positive) 60%,
    var(--brand-gold) 100%);
  /* Animation: bar draws from left to right when the card scrolls into view */
  clip-path: inset(0 100% 0 0);
  animation: uc-dist-bar-fill 0.7s ease-out forwards;
}
@keyframes uc-dist-bar-fill {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}
.uc-distribution__marker {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  text-align: center;
  /* Markers fade-in after the bar fills */
  opacity: 0;
  animation: uc-dist-marker-in 0.5s ease-out forwards;
  animation-delay: 0.75s;
}
@keyframes uc-dist-marker-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.uc-distribution__marker-tick {
  height: 18px;
  width: 2px;
  background: var(--gray-700);
  margin: 0 auto;
}
.uc-distribution__marker-tick--gold { background: var(--brand-gold); }
.uc-distribution__marker-label {
  font-size: 9.5px;
  color: var(--gray-600);
  white-space: nowrap;
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.25;
}
.uc-distribution__marker-label--gold { color: var(--tier-elite-fg); font-weight: 700; }
.uc-distribution__school {
  position: absolute;
  top: -4px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  /* The school pill is the headline — pops in last with a satisfying overshoot */
  opacity: 0;
  animation: uc-dist-school-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 1.15s;
}
@keyframes uc-dist-school-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(0.4); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Respect users who've turned off motion at the OS level */
@media (prefers-reduced-motion: reduce) {
  .uc-distribution__bar,
  .uc-distribution__marker,
  .uc-distribution__school {
    animation: none !important;
    clip-path: none !important;
    opacity: 1 !important;
    transform: translateX(-50%) !important;
  }
  .uc-distribution__bar { transform: none !important; }
}
.uc-distribution__school-pill {
  background: var(--brand-navy);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.uc-distribution__school-tick {
  height: 14px;
  width: 3px;
  background: var(--brand-navy);
  margin: 2px auto 0;
}
.uc-distribution__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--gray-500);
}

/* ───── Scorecard maximalist hero ─────────────────────────────────── */
.scorecard-hero {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 30% 30%, #f9f5e5 0%, #fff 60%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.scorecard-hero__body {
  padding: 32px 28px 24px;
  text-align: center;
  position: relative;
}
.scorecard-hero__halo {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,162,23,0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.scorecard-hero__content { position: relative; z-index: 1; }
.scorecard-hero__badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.scorecard-hero__label {
  font-size: 11px;
  color: var(--gray-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.scorecard-hero__value {
  font-size: 6.5rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 2px 0;
}
.scorecard-hero__value-pct {
  font-size: 3.5rem;
  color: var(--brand-gold);
}
.scorecard-hero__pct-callout {
  font-size: 14px;
  color: var(--tone-positive);
  font-weight: 700;
  margin-top: 4px;
}
.scorecard-hero__sub {
  font-size: 12.5px;
  color: var(--gray-600);
  margin-top: 2px;
}
.scorecard-hero__sub-strong { color: var(--gray-800); font-weight: 700; }
.scorecard-hero__spark-wrap {
  margin-top: 18px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.scorecard-hero__spark-label {
  font-size: 10px;
  color: var(--gray-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.scorecard-hero__spark-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-600);
  margin-top: 2px;
}
.scorecard-hero__spark-axis-end { color: var(--brand-gold); font-weight: 700; }
.scorecard-hero__footer {
  padding: 14px 24px;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  font-size: 12px;
  color: var(--gray-700);
  line-height: 1.55;
  text-align: center;
}
.scorecard-hero__footer a { color: var(--tone-info); text-decoration: none; }

/* ───── Distribution bar mobile legend (hidden on desktop) ─────────── */
.uc-distribution__legend {
  display: none;
  gap: 6px 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 11.5px;
  color: var(--gray-700);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--gray-200);
}
.uc-distribution__legend > span {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.uc-distribution__legend-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
}
.uc-distribution__legend-dot--gray { background: var(--gray-700); }
.uc-distribution__legend-dot--gold { background: var(--brand-gold); }
.uc-distribution__legend-dot--navy { background: var(--brand-navy); }

/* ───── UC Reach inline context card ──────────────────────────────── */
.uc-context__head {
  font-size: 11px;
  color: var(--gray-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.uc-context__body {
  margin: 0;
  font-size: 13.5px;
  color: var(--gray-800);
  line-height: 1.65;
}
.uc-context__body--cont {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--gray-200);
}
.uc-context__body strong { color: var(--brand-navy); }

/* ───── Mobile: collapse credential card to single column ─────────── */
@media (max-width: 720px) {
  .uc-credential__hero { grid-template-columns: 1fr; }
  .uc-credential__chart {
    border-left: none;
    border-top: 1px solid var(--gray-200);
  }
  .uc-credential__eyebrow { padding: 8px 16px; }
  .uc-credential__metric { padding: 18px 16px 14px; }
  .uc-credential__footer { padding: 12px 16px; font-size: 11.5px; }
  .uc-credential__value { font-size: 3.5rem; }
  .uc-credential__value-pct { font-size: 2rem; }
  .uc-credential__delta { font-size: 12.5px; }

  .scorecard-hero__body { padding: 24px 18px 18px; }
  .scorecard-hero__halo { width: 220px; height: 220px; top: 18px; }
  .scorecard-hero__value { font-size: 4.5rem; }
  .scorecard-hero__value-pct { font-size: 2.5rem; }
  .scorecard-hero__spark-axis { font-size: 10.5px; }
}

/* ───── Distribution bar: hide floating labels on phones, show legend ─ */
@media (max-width: 600px) {
  .uc-distribution { padding: 16px 14px; }
  .uc-distribution__title { font-size: 10.5px; }
  /* Hide floating labels; ticks stay visible */
  .uc-distribution__marker-label { display: none; }
  /* School pill shrinks — keep only the number, drop "This school" prefix */
  .uc-distribution__school-pill { padding: 3px 8px; font-size: 11px; }
  .uc-distribution__school-pill-prefix { display: none; }
  .uc-distribution__track { height: 32px; }
  .uc-distribution__bar { top: 12px; }
  .uc-distribution__marker { top: 2px; }
  .uc-distribution__marker-tick { height: 12px; }
  .uc-distribution__school { top: -6px; }
  .uc-distribution__school-tick { height: 10px; }
  .uc-distribution__axis { margin-top: 6px; }
  /* Show the legend (explains what the ticks mean since labels are hidden) */
  .uc-distribution__legend { display: flex; }
  .uc-context__body { font-size: 13px; }
}
