/* ── 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; }

/* 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 checkboxes ─────────────────────────────────────────────── */
.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; }
.audit-hero p  { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 1.75rem; font-size: 1rem; line-height: 1.7; }
.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; }
}

@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; }
}
