/* CollegeFork — flat editorial data publication.
   Two weights (400/500), hairline borders, generous whitespace, one accent. */

:root {
  --accent: #5546a9;
  --accent-2: #5546a9;
  --accent-soft: #efedfb;
  --grad: #5546a9;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f3f1ed;
  --text: #191816;
  --muted: #68645d;
  --faint: #93a0b1;
  --border: #e7e3dc;
  --border-strong: #d2cdc3;
  --grid: #eeeae4;
  --pos: #1f9d63;
  --warn: #b07515;
  --radius: 12px;
  --maxw: 1160px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --sans: ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", system-ui, sans-serif;
}

:root[data-theme="dark"] {
  --accent: #4ba6ff;
  --accent-2: #5ee0f5;
  --accent-soft: #15273e;
  --grad: linear-gradient(118deg, #4ba6ff 0%, #5ee0f5 100%);
  --bg: #0d1117;
  --surface: #141a23;
  --surface-2: #1b222d;
  --text: #e8eef6;
  --muted: #95a2b4;
  --faint: #5f6c7e;
  --border: #232c38;
  --border-strong: #313c4b;
  --grid: #1d242f;
  --pos: #44c885;
  --warn: #d8a64e;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.num { font-variant-numeric: tabular-nums; }

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

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px); z-index: 20;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand:hover { text-decoration: none; }
.brand-mark {
  font-weight: 500; font-size: 18px; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand-tag { font-size: 12px; color: var(--muted); }
.topnav { display: flex; align-items: center; gap: 14px; }
.toplink { color: var(--muted); font-size: 13px; }
.toplink:hover { color: var(--accent); text-decoration: none; }
.field-select { display: flex; align-items: center; gap: 8px; }
.field-select-label { font-size: 12px; color: var(--muted); }
select, .btn {
  font-family: inherit; font-size: 14px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 6px 10px; cursor: pointer;
}
select:hover, .btn:hover { border-color: var(--accent); }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); cursor: pointer; font-size: 15px; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { border-color: var(--accent); }

/* ---------- layout ---------- */
.app { max-width: var(--maxw); margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 40px) 60px; }
.sitefoot {
  max-width: var(--maxw); margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 48px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px;
}
.sitefoot p { max-width: 60ch; margin: 0; }

.lede { color: var(--muted); max-width: 64ch; margin: 4px 0 0; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin: 0 0 4px;
}
h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 2px; }
.section { margin-top: 44px; }
.section-head { margin-bottom: 16px; }
.section-head p { color: var(--muted); margin: 4px 0 0; max-width: 60ch; font-size: 13.5px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}

/* ---------- methodology landing ---------- */
.landing-hero {
  min-height: 560px; display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(36px, 7vw, 92px); align-items: center; padding: clamp(56px, 9vw, 112px) 0;
}
.hero-copy h1 {
  max-width: 8ch; font-size: clamp(52px, 9vw, 104px); line-height: .9;
  letter-spacing: -.065em; margin: 14px 0 28px;
}
.hero-lede { max-width: 58ch; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; padding: 10px 15px; }
.btn.quiet { padding: 10px 15px; }
.btn:hover { text-decoration: none; }
.hero-proof { display: flex; flex-direction: column; gap: 12px; }
.coverage-card {
  display: grid; grid-template-columns: 1fr auto; gap: 5px 16px;
  padding: 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--muted); font-size: 12px;
}
.coverage-card:hover { border-color: var(--accent); text-decoration: none; }
.coverage-field { color: var(--text); font-weight: 500; font-size: 14px; }
.coverage-rate { grid-row: span 2; font-size: 30px; line-height: 1; color: var(--text); }
.coverage-leader { grid-column: 1 / -1; padding-top: 9px; margin-top: 5px; border-top: 1px solid var(--border); }
.landing-section {
  display: grid; grid-template-columns: 52px minmax(0, .8fr) minmax(280px, 1.2fr);
  gap: clamp(24px, 5vw, 64px); padding: 72px 0; border-top: 1px solid var(--border);
}
.section-number { color: var(--faint); font-size: 12px; padding-top: 5px; }
.landing-section h2, .landing-cta h2 {
  font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -.035em;
}
.landing-copy { color: var(--muted); font-size: 16px; line-height: 1.65; margin-top: 16px; }
.formula-card { align-self: start; padding: 26px; border-radius: var(--radius); background: var(--text); color: var(--bg); }
.formula-label { display: block; font-size: 11px; opacity: .62; text-transform: uppercase; letter-spacing: .06em; }
.formula-card code { display: block; margin: 28px 0; font-family: var(--mono); font-size: clamp(15px, 2vw, 19px); line-height: 1.55; }
.formula-card p { margin: 0; opacity: .7; font-size: 12.5px; line-height: 1.6; }
.method-section { grid-template-columns: 52px .7fr 1.3fr; scroll-margin-top: 90px; }
.method-steps { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.method-step { padding: 24px; min-height: 210px; background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.method-step:nth-child(2n) { border-right: 0; }
.method-step:nth-last-child(-n+2) { border-bottom: 0; }
.method-num { color: var(--accent); font-size: 11px; }
.method-step h3, .meaning-card h3, .indicator-card h3 { margin: 26px 0 8px; font-size: 15px; font-weight: 500; }
.method-step p, .indicator-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.honesty-section { grid-template-columns: 52px .55fr 1.45fr; }
.meaning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.meaning-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.meaning-card h3 { margin-top: 0; }
.meaning-card.positive { border-top: 3px solid var(--pos); }
.meaning-card.caution { border-top: 3px solid var(--warn); }
.meaning-card ul { margin: 18px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; }
.meaning-card li { margin: 9px 0; padding-left: 3px; }
.future-section { grid-template-columns: 52px .65fr 1.35fr; }
.indicator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.indicator-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.indicator-card h3 { margin: 18px 0 7px; }
.indicator-status { display: inline-block; padding: 3px 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.indicator-status.live { background: color-mix(in srgb, var(--pos) 13%, var(--surface)); color: var(--pos); }
.indicator-status.next { background: var(--accent-soft); color: var(--accent); }
.landing-cta { margin: 24px 0 72px; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius); background: var(--accent-soft); }
.landing-cta h2 { max-width: 16ch; margin-top: 8px; }
.field-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.field-action { display: flex; justify-content: space-between; gap: 20px; padding: 16px 18px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.field-action:hover { border-color: var(--accent); text-decoration: none; }
.field-action strong { color: var(--accent); font-weight: 500; }

/* Guided field journey */
.journey {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
.journey-step {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-right: 1px solid var(--border); color: var(--muted);
}
.journey-step:last-child { border-right: 0; }
.journey-step.active { color: var(--text); background: var(--accent-soft); }
.journey-step.done .journey-num { color: var(--pos); }
.journey-step.done .journey-num::after { content: " ✓"; }
.journey-num { font-size: 11px; color: var(--accent); }
.journey-step strong, .journey-step small { display: block; }
.journey-step strong { font-size: 13px; font-weight: 500; }
.journey-step small { font-size: 11px; margin-top: 1px; color: var(--muted); }
.journey.compact { margin-top: 20px; }
.journey.compact .journey-step { padding-block: 11px; }

/* Evidence/detail flows */
.dept-hero {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, .75fr);
  gap: 36px; align-items: end;
}
.dept-hero .section-head { margin-bottom: 0; }
.answer-card { border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; }
.answer-card > * { display: block; }
.answer-label {
  color: var(--accent); font-size: 10.5px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 7px;
}
.answer-card strong { font-size: 13px; font-weight: 500; }
.answer-card p { color: var(--muted); font-size: 11.5px; margin: 5px 0 0; }
.local-nav {
  display: flex; align-items: center; gap: 6px; margin-top: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.local-nav button {
  border: 0; background: none; font: inherit; cursor: pointer;
  padding: 5px 9px; border-radius: 6px; color: var(--muted); font-size: 11.5px;
}
.local-nav button:hover { color: var(--accent); background: var(--accent-soft); }
.anchor-section { scroll-margin-top: 88px; }
.source-panel {
  margin-top: 36px; padding: 18px 20px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
}
.source-panel > strong { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.source-panel .eyebrow { margin-bottom: 6px; }
.network-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--border);
}
.network-card { overflow-x: auto; }
.network-card .net-svg { min-width: 700px; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- stat row ---------- */
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 16px 18px; }
.stat-val { font-size: 26px; font-weight: 500; letter-spacing: -0.01em; }
.stat-val small { font-size: 14px; color: var(--faint); font-weight: 400; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- scatter ---------- */
.scatter-wrap { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.axis-line { stroke: var(--border-strong); stroke-width: 1; }
.grid-line { stroke: var(--grid); stroke-width: 1; }
.median-line { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.55; }
.axis-label { fill: var(--muted); font-size: 12px; }
.tick-label { fill: var(--faint); font-size: 10.5px; }
.quad-label { fill: var(--faint); font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
.dot { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; cursor: pointer; transition: r .12s ease; }
.dot.clickable { fill: var(--accent); stroke: var(--accent); }
.dot:hover { fill: var(--accent); stroke: var(--accent); }
.dot-label { fill: var(--text); font-size: 11.5px; cursor: pointer; }
.dot-label:hover { fill: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.legend .swatch { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.legend .swatch.filled { background: var(--accent); }
.legend .swatch.hollow { background: var(--surface); border: 1.5px solid var(--muted); }

/* ---------- ranking ---------- */
.toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.toggle button { border: 0; background: var(--surface); color: var(--muted); font-family: inherit; font-size: 13px; padding: 7px 14px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--grad); color: #fff; }
:root[data-theme="dark"] .toggle button[aria-pressed="true"] { color: #08111c; }

.controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 18px; }
.sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; margin-bottom: 20px; }
.slider label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.slider label .wname { color: var(--text); }
.slider label .wval { color: var(--accent); font-weight: 500; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

.rank-list { display: flex; flex-direction: column; gap: 2px; }
.rank-row { display: grid; grid-template-columns: 24px minmax(180px, 1fr) minmax(80px, 1fr) auto; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.rank-row:last-child { border-bottom: 0; }
.rank-pos { color: var(--faint); font-size: 13px; }
.rank-name { font-weight: 400; }
.rank-name a:hover { text-decoration: underline; }
.rank-identity { min-width: 0; display: flex; flex-direction: column; }
.rank-identity small { color: var(--faint); font-size: 10.5px; line-height: 1.35; }
.ranking-disclosure {
  margin: 16px 4px 0; color: var(--muted); font-size: 11.5px; line-height: 1.5;
}
.rank-bartrack { position: relative; }
.rank-bar { height: 7px; border-radius: 4px; background: var(--accent); opacity: 0.85; }
.rank-bar.lead { background: var(--grad); opacity: 1; }
.rank-bar.muted { background: var(--border-strong); }
.rank-val { font-size: 13.5px; color: var(--muted); min-width: 56px; text-align: right; }

/* Ranking workspace — inspired by progressive comparator and standings flows:
   one stable result surface, with the chosen method always visible beside it. */
.ranking-studio { scroll-margin-top: 90px; }
.studio-head {
  display: flex; align-items: end; justify-content: space-between; gap: 20px;
}
.rank-tabs {
  display: inline-flex; padding: 3px; border: 1px solid var(--border);
  border-radius: 9px; background: var(--surface-2);
}
.rank-tab {
  border: 0; border-radius: 6px; padding: 7px 11px; background: transparent;
  color: var(--muted); font: inherit; font-size: 12px; cursor: pointer;
}
.rank-tab[aria-selected="true"] {
  color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--border);
}
.studio-shell {
  display: grid; grid-template-columns: minmax(250px, .75fr) minmax(0, 1.5fr);
  min-height: 440px; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.ranking-controls { padding: 22px; border-right: 1px solid var(--border); background: var(--surface-2); }
.ranking-results { padding: 14px 22px 22px; }
.ranking-loading { color: var(--faint); padding: 28px 0; }
.method-badge, .axis-chip {
  display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px;
  border-radius: 99px; border: 1px solid var(--border-strong);
  color: var(--muted); background: var(--surface); font-size: 11px;
}
.method-badge.personal { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.control-copy { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.control-label > span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.control-label select { width: 100%; background: var(--surface); }
.result-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 70px; margin-bottom: 4px; border-bottom: 1px solid var(--border);
}
.result-summary > div:first-child strong, .result-summary > div:first-child span { display: block; }
.result-summary > div:first-child strong { font-size: 14px; font-weight: 500; }
.result-summary > div:first-child span { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.coverage { text-align: right; }
.coverage strong, .coverage span { display: block; }
.coverage strong { font-size: 18px; font-weight: 500; }
.coverage span { font-size: 10.5px; color: var(--muted); }
.weight-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.weight-head .control-copy { margin: 0; }
.weight-total { font-size: 11px; color: var(--accent); }
.weight-total.warn { color: var(--warn); }
.weight-list { display: flex; flex-direction: column; gap: 17px; margin-bottom: 16px; }
.weight-row {
  display: grid; grid-template-columns: 1fr 54px; gap: 7px 10px; align-items: center;
}
.weight-row > span { min-width: 0; }
.weight-row strong, .weight-row small { display: block; }
.weight-row strong { font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weight-row small { color: var(--faint); font-size: 10.5px; text-transform: capitalize; }
.weight-row input { grid-column: 1; }
.weight-row output { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-size: 12px; color: var(--accent); }

/* ---------- pedigree bars ---------- */
.bars { display: flex; flex-direction: column; gap: 7px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 34px; align-items: center; gap: 12px; font-size: 13.5px; }
.bar-name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { background: var(--surface-2); border-radius: 4px; height: 16px; position: relative; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 4px; opacity: 0.9; }
.bar-fill.lead { background: var(--grad); opacity: 1; }
.bar-fill.dim { background: var(--border-strong); opacity: 1; }
.bar-count { text-align: right; color: var(--muted); font-size: 13px; }

.callout { display: flex; flex-wrap: wrap; gap: 28px; margin: 4px 0 22px; }
.callout-item .big { font-size: 30px; font-weight: 500; letter-spacing: -0.01em; }
.callout-item .lbl { font-size: 12.5px; color: var(--muted); max-width: 26ch; }

/* ---------- roster table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.roster { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.roster th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; white-space: nowrap; }
.roster th.r, .roster td.r { text-align: right; font-variant-numeric: tabular-nums; }
.roster td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.roster tr:last-child td { border-bottom: 0; }
.roster tr:hover td { background: var(--surface); }
.fac-name { font-weight: 500; }
.fac-rank { color: var(--muted); font-size: 12px; }
.fac-areas { color: var(--faint); font-size: 12px; }
.phd { white-space: nowrap; }
.phd-year { color: var(--faint); }
.dash { color: var(--faint); }
.metric-uncertain { color: var(--faint); }

.pill { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 20px; border: 1px solid var(--border-strong); color: var(--muted); white-space: nowrap; }
.pill.review { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--border-strong)); }
.flag-dagger { color: var(--warn); cursor: help; }

.provenance { margin-top: 16px; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.provenance code { font-family: var(--mono); font-size: 11.5px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* ---------- network ---------- */
.net-svg { width: 100%; height: auto; display: block; }
.net-node { fill: var(--text); font-size: 12px; }
.net-node.dst { fill: var(--accent); font-weight: 500; }
.net-ribbon { fill: var(--accent); opacity: 0.12; transition: opacity .12s ease; }
.net-ribbon:hover { opacity: 0.52; }
.net-row { fill: var(--surface); }
.net-row:nth-of-type(4n + 1), .net-row:nth-of-type(4n + 2) { fill: var(--bg); }
.net-rank { fill: var(--faint); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.net-count { fill: var(--text); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.net-heading { fill: var(--text); font-size: 14px; font-weight: 500; }
.net-subheading { fill: var(--muted); font-size: 10.5px; }
.net-column-label {
  fill: var(--faint); font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em;
}
.network-stats { margin-top: 24px; }
.network-controls {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 20px;
}
.network-controls .route-search {
  margin-left: auto; min-width: min(260px, 100%); padding: 7px 10px;
  font: inherit; font-size: 13px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 8px;
}
.network-controls .route-search:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.network-subhead { margin-top: 0; }
.route-list { display: flex; flex-direction: column; gap: 14px; }
.route-group {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--bg);
}
.route-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 18px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.route-group-head h3 { margin: 1px 0 0; font-size: 15px; font-weight: 500; }
.route-kicker { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.route-total { color: var(--muted); font-size: 12px; white-space: nowrap; }
.route-rows { padding: 0 18px; }
.route-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.route-row:last-child { border-bottom: 0; }
.route-path { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); align-items: center; gap: 8px; }
.route-origin, .route-destination { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-origin { color: var(--muted); text-align: right; }
.route-destination { color: var(--text); font-weight: 500; }
.route-arrow { color: var(--accent); text-align: center; }
.route-count { color: var(--muted); font-size: 12px; min-width: 94px; text-align: right; }
.empty.compact { padding: 24px; }

/* ---------- misc ---------- */
.empty { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }
.empty strong { color: var(--text); font-weight: 500; }
.loading { color: var(--faint); padding: 40px 0; }
.tabnav { display: inline-flex; gap: 4px; margin-bottom: 8px; }
.tabnav a { font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 8px; }
.tabnav a.active { background: var(--accent-soft); color: var(--accent); }
.tabnav a:hover { text-decoration: none; background: var(--surface-2); }

.tooltip {
  position: fixed; pointer-events: none; z-index: 50; opacity: 0; transition: opacity .1s;
  background: var(--text); color: var(--bg); font-size: 12px; padding: 7px 10px;
  border-radius: 7px; max-width: 240px; line-height: 1.35;
}
.tooltip .tt-title { font-weight: 500; }
.tooltip.show { opacity: 1; }

.linkbtn { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.linkbtn:hover { text-decoration: underline; }

@media (max-width: 620px) {
  .brand-tag { display: none; }
  .field-select-label { display: none; }
  .rank-row { grid-template-columns: 22px 1fr; }
  .rank-row .rank-bartrack { display: none; }
  .callout { gap: 18px; }
  .network-controls .route-search { margin-left: 0; flex: 1 1 100%; }
  .route-row { grid-template-columns: 1fr; gap: 4px; }
  .route-path { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); }
  .route-count { text-align: right; }
  .journey { grid-template-columns: 1fr; }
  .journey-step { border-right: 0; border-bottom: 1px solid var(--border); }
  .journey-step:last-child { border-bottom: 0; }
  .studio-head { align-items: stretch; flex-direction: column; }
  .rank-tabs { width: 100%; }
  .rank-tab { flex: 1; padding-inline: 6px; }
  .studio-shell { grid-template-columns: 1fr; }
  .ranking-controls { border-right: 0; border-bottom: 1px solid var(--border); }
  .ranking-results { padding-inline: 14px; }
  .dept-hero { grid-template-columns: 1fr; gap: 20px; }
  .local-nav { overflow-x: auto; white-space: nowrap; }
  .network-summary { grid-template-columns: 1fr; }
  .toplink { display: none; }
  .landing-hero { grid-template-columns: 1fr; min-height: 0; padding: 54px 0; }
  .hero-copy h1 { font-size: clamp(58px, 20vw, 82px); }
  .landing-section, .method-section, .honesty-section, .future-section { grid-template-columns: 30px 1fr; gap: 20px; }
  .landing-section > :last-child { grid-column: 2; }
  .method-steps, .meaning-grid, .indicator-grid, .field-actions { grid-template-columns: 1fr; }
  .method-step { border-right: 0; border-bottom: 1px solid var(--border); min-height: 0; }
  .method-step:nth-last-child(2) { border-bottom: 1px solid var(--border); }
}

/* Disclosure block: data held out of a chart, named with its reason. */
.note {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border: 0.5px solid var(--border);
  border-left: 3px solid var(--warn, #ba7517);
  border-radius: 0 8px 8px 0;
  background: var(--surface-1, transparent);
  font-size: 13px;
  color: var(--text-2);
}
.note p { margin: 0 0 0.4rem; }
.note ul { margin: 0; padding-left: 1.1rem; }
.note li { margin: 0.2rem 0; line-height: 1.5; }
.note strong { color: var(--text); font-weight: 500; }
