/* Careers are hard — v9 technical, progressive disclosure */
:root {
  --bg: #f4f5f8;
  --bg-2: #eef0f4;
  --bg-dark: #0b1020;
  --paper: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --line-dark: rgba(226, 232, 240, 0.14);
  --accent: #4f46e5;
  --accent-2: #6366f1;
  --accent-dark: #3730a3;
  --accent-soft: #eef2ff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --rose: #e11d48;
  --header-h: 60px;
  --shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  --radius: 10px;
  --radius-sm: 8px;
  --max: 1040px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  overflow-wrap: break-word;
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--accent); }
button, input, select { font-family: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
p { margin: 0 0 0.75rem; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 40;
}
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.muted { color: var(--ink-soft); }
.tiny { font-size: 0.8rem; color: var(--ink-soft); font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.hidden { display: none !important; }
.kicker, .eyebrow, .hero-kicker, .crumbs {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

/* Header — always dark */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: var(--bg-dark);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #f8fafc;
  min-width: 0;
}
.brand-mark {
  height: 28px;
  width: auto;
  max-width: none;
  display: block;
  flex: 0 0 auto;
}
.brand-name {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  color: #f8fafc;
}
.nav { display: flex; gap: 0.1rem; align-items: center; }
.nav a {
  text-decoration: none;
  color: #94a3b8;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-dark);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-dark);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  place-items: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #e2e8f0;
  border-radius: 2px;
  position: relative;
  content: "";
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }

/* Home hero — fills the first viewport */
.hero {
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
  color: #e2e8f0;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.22) 0%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -20%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.14) 0%, transparent 68%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.4rem 0 3rem;
}
.hero-kicker {
  color: #a5b4fc;
  margin: 0 0 0.85rem;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.8rem;
  font-weight: 400;
}
.hero h1 {
  color: #f8fafc;
  font-size: clamp(1.55rem, 3.6vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
  max-width: 18ch;
}
.cmd-form { position: relative; margin: 0 0 1rem; }
.cmd {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 8px;
  padding: 0 1rem;
  min-height: 56px;
}
.cmd:focus-within {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}
.cmd-prompt {
  font-family: var(--mono);
  color: #34d399;
  font-size: 1rem;
  flex: 0 0 auto;
}
.cmd input[type="search"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #f8fafc;
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 0.9rem 0;
  outline: none;
  border-radius: 0;
}
.cmd input[type="search"]::placeholder { color: #64748b; }
.cmd input[type="search"]::-webkit-search-decoration,
.cmd input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.cmd-caret {
  width: 7px;
  height: 1.05em;
  background: #34d399;
  flex: 0 0 auto;
  animation: caret-blink 1.1s steps(1) infinite;
  display: none;
}
.cmd:not(.has-value) .cmd-caret { display: block; }
.cmd:not(.has-value):focus-within .cmd-caret { display: none; }
@keyframes caret-blink { 50% { opacity: 0; } }

.search-pop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #111827;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 8px;
  overflow: auto;
  max-height: min(20rem, 50vh);
  z-index: 20;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.search-pop a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.08);
  font-size: 0.95rem;
}
.search-pop a:last-child { border-bottom: 0; }
.search-pop a:hover,
.search-pop a.is-active {
  background: rgba(79, 70, 229, 0.28);
}
.search-kind {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5b4fc;
  min-width: 5.5rem;
}
.search-meta { color: #94a3b8; font-size: 0.8rem; margin-left: auto; }
.search-empty { padding: 0.85rem 1rem; color: #94a3b8; font-family: var(--mono); font-size: 0.8rem; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.ex-chip {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #e2e8f0;
  text-decoration: none;
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
}
.ex-chip:hover {
  border-color: #818cf8;
  color: #fff;
  background: rgba(79, 70, 229, 0.25);
}
.hero-alt {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #94a3b8;
}
.hero-alt a { color: #a5b4fc; text-decoration: none; border-bottom: 1px solid rgba(165, 180, 252, 0.4); }
.hero-alt a:hover { color: #fff; border-color: #fff; }

/* Below the fold */
.section { padding: 3.2rem 0; }
.section + .section { padding-top: 0; }
.section-head { margin-bottom: 1.25rem; }
.section-head h2 { margin: 0 0 0.25rem; font-size: 1.35rem; }

/* 3 steps + path diagram */
.steps-block {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.path-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 1.75rem;
  flex-wrap: wrap;
}
.path-node {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  border: 1px solid var(--line);
  background: var(--accent-soft);
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
}
.path-line {
  width: 36px;
  height: 1px;
  background: var(--ink);
  position: relative;
  margin: 0 0.15rem;
  flex: 0 0 36px;
}
.path-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem 0.8rem;
  align-items: start;
}
.step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #fff;
  background: var(--accent);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}
.steps h2, .steps p { margin: 0; }
.steps h2 { font-size: 0.98rem; letter-spacing: -0.02em; }
.steps p { color: var(--ink-soft); font-size: 0.92rem; }

/* Browse fields — icon + name only */
.field-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
}
.field-tile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  min-height: 52px;
}
.field-tile:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.field-tile span.name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
}
.field-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.field-icon .icon-svg { width: 16px; height: 16px; display: block; }
.field-more {
  display: inline-flex;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.field-more:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  background: var(--paper);
}
.site-footer p { margin: 0; font-size: 0.8rem; color: var(--ink-soft); }
.site-footer a { color: var(--ink-soft); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-nav a { text-decoration: none; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost, .copy-btn {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover, .copy-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.copy-btn { padding: 0.3rem 0.6rem; font-family: var(--mono); font-size: 0.72rem; cursor: pointer; border-radius: 6px; }
.copy-btn.copied { border-color: var(--emerald); color: var(--emerald); }

/* Page hero (inner pages) */
.page-hero { padding: 2rem 0 1.25rem; }
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-hero .lead { font-size: 1.05rem; max-width: 42rem; }
.crumbs { margin: 0 0 0.8rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.field-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0 0 1rem;
}
.field-title-row .field-icon { width: 44px; height: 44px; border-radius: 10px; }
.field-title-row .field-icon .icon-svg { width: 22px; height: 22px; }
.field-title-row h1 { margin: 0 0 0.3rem; }
.field-title-row .lead { margin: 0; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 0.6rem;
  padding: 0;
}
.stat-row > div {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
}
.stat-row dt {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.2rem;
}
.stat-row dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
}

/* Folds / details */
.fold {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  margin: 0 0 0.85rem;
  padding: 0;
}
.fold > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1.1rem;
  font-weight: 650;
  font-family: var(--display);
  letter-spacing: -0.02em;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: "+";
  float: right;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--ink-soft);
}
.fold[open] > summary::after { content: "–"; }
.fold .fold-body, .fold .howto, .fold .compare-chart { padding: 0 1.1rem 1.1rem; border-top: 1px solid var(--line); }
.howto { background: transparent; border: 0; padding: 1rem 0 0; }
.howto h2 { font-size: 1.15rem; }
.howto-paths { display: grid; gap: 0.5rem; margin: 0.75rem 0; }
.path-card { border: 1px solid var(--line); border-radius: 8px; padding: 0.2rem 0.8rem; background: var(--bg); }
.path-card summary { cursor: pointer; font-weight: 600; padding: 0.55rem 0; }
.path-card p { color: var(--ink-soft); }
.howto-tags { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.howto-tags h3 { font-size: 0.85rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.guide-list { margin: 0; padding: 0; list-style: none; }
.guide-list li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.15rem;
  font-size: 0.92rem;
}
.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--emerald);
}
.intern-callout {
  border: 1px solid #a7f3d0;
  background: var(--emerald-soft);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 0.8rem 0;
}
.intern-callout h3 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.intern-callout p { margin: 0; }
.note { font-size: 0.88rem; color: var(--ink-soft); }
.year-block { margin-top: 1rem; }
.year-stepper, .year-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0.6rem 0 0.8rem;
  flex-wrap: wrap;
}
.year-tab {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.4rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.year-tab.is-active, .year-tab[aria-selected="true"] {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}
.step-line { flex: 1; height: 1px; background: var(--line); min-width: 12px; }
.year-tab .step-num { display: none; }
.year-panel { font-size: 0.95rem; }

/* Charts */
.chart-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.chart-head h2 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.chart-toggle { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.chart-toggle button {
  background: var(--paper);
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.chart-toggle button:last-child { border-right: 0; }
.chart-toggle button[aria-pressed="true"] { background: var(--bg-dark); color: #fff; }
.chart-caption { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 0.8rem; }
.hbar-row, .compare-row, .hero-bar-row {
  display: grid;
  grid-template-columns: 10rem 1fr auto;
  gap: 0.6rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.hbar-row:last-child, .compare-row:last-child { border-bottom: 0; }
.hbar-name, .compare-name { font-weight: 600; overflow-wrap: anywhere; }
.bar-track {
  display: block;
  height: 6px;
  background: var(--bg-2);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.bar-fill.growth { background: var(--emerald); }
.bar-fill.decline { background: var(--rose); }
.hbar-meta, .bar-value {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}
.compare-row {
  grid-template-columns: 8.5rem 1fr 4.2rem 1fr 3.2rem;
}
.compare-chart { margin: 0.75rem 0 0; }

/* Career cards — compact first view */
.career-list { display: grid; gap: 0.7rem; }
.career {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  max-width: 100%;
}
.career-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: start;
}
.career-head h3 { margin: 0; font-size: 1.05rem; }
.career-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  margin: 0.15rem 0 0;
}
.mini-stat { min-width: 8.5rem; }
.mini-stat b {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-right: 0.35rem;
}
.mini-stat .val { font-family: var(--mono); font-size: 0.85rem; font-weight: 500; }
.mini-bar {
  display: block;
  height: 4px;
  background: var(--bg-2);
  border-radius: 99px;
  margin-top: 0.25rem;
  position: relative;
  overflow: hidden;
}
.mini-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.mini-bar.growth i { background: var(--emerald); }
.mini-bar.decline i { background: var(--rose); }
.mini-bar .tick {
  position: absolute;
  top: -1px;
  width: 1px;
  height: 6px;
  background: #94a3b8;
}
.career-details { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.career .desc { color: var(--ink-soft); font-size: 0.95rem; }
.majors { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.4rem 0; }
.tag, .title-chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  background: var(--bg);
}
.badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
}
.badge.much, .badge.faster { color: var(--emerald); border-color: #a7f3d0; }
.badge.decline { color: var(--rose); border-color: #fecdd3; }
.ooh { font-size: 0.85rem; display: inline-block; margin-top: 0.5rem; }
.stat-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.5rem 0; }
.pill-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  min-width: 8rem;
  background: var(--bg);
}
.pill-top { font-size: 0.85rem; }
.pill-top b { font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); display: block; }

/* Titles accordion */
.title-box { border: 1px solid var(--line); border-radius: 8px; margin: 0.6rem 0; background: var(--bg); }
.title-box summary { cursor: pointer; padding: 0.6rem 0.8rem; list-style: none; }
.title-box summary::-webkit-details-marker { display: none; }
.title-summary-text { display: flex; gap: 0.6rem; align-items: baseline; }
.title-summary-label { font-weight: 650; }
.title-summary-count { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-soft); }
.title-body { padding: 0 0.8rem 0.8rem; }
.title-search-label { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin: 0 0 0.3rem; }
.title-search-row { display: flex; gap: 0.5rem; align-items: flex-start; }
.title-search-line {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.title-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 0.6rem; }
.title-item, .title-result {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}
.title-blurb { font-size: 0.88rem; color: var(--ink-soft); margin: 0.35rem 0; }
.title-also, .title-meta { font-size: 0.8rem; color: var(--ink-soft); margin: 0; }
.title-group-name { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0.8rem 0 0.3rem; }
.title-intro { font-size: 0.92rem; color: var(--ink-soft); }

/* Majors + quiz + titles pages */
.filters, .title-search-row, .title-filters {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}
input[type="search"], select {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  min-width: 0;
}
input[type="search"]:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
#major-search, #title-search { flex: 1; min-width: 12rem; }
.major-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.major-btn {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
}
.major-btn strong { display: block; font-family: var(--display); }
.major-btn small { color: var(--ink-soft); font-family: var(--mono); font-size: 0.7rem; }
.major-btn[aria-pressed="true"], .major-btn:hover { border-color: var(--accent); }
.quiz-card, .result-field {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin: 0 0 0.8rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
.quiz-q { font-size: 1.2rem; }
.options { display: grid; gap: 0.45rem; margin: 0.8rem 0; }
.option {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
}
.option:hover { border-color: var(--accent); }
.progress { height: 3px; background: var(--line); border-radius: 99px; margin: 0.4rem 0 0.9rem; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.quiz-nav { margin-top: 0.6rem; }
.match-bar { height: 4px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.match-bar span { display: block; height: 100%; background: var(--accent); }
.match-label { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-soft); margin: 0.3rem 0 0; }
.title-results { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.title-example {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  cursor: pointer;
}
.empty { color: var(--ink-soft); }
.source-panel {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.data-lead { max-width: 42rem; }

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero :focus-visible { outline-color: #a5b4fc; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    display: none;
    position: absolute;
    right: 1rem;
    top: var(--header-h);
    flex-direction: column;
    background: #111827;
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    padding: 0.4rem;
    min-width: 180px;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .howto-tags, .title-grid, .title-results { grid-template-columns: 1fr; }
  .hbar-row { grid-template-columns: 1fr auto; }
  .hbar-row .bar-track { grid-column: 1 / -1; }
  .compare-row { grid-template-columns: 1fr auto; }
  .compare-row .bar-track, .compare-row .g-track { grid-column: 1 / -1; }
  .stat-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-inner { padding: 1.6rem 0 2rem; }
  .hero h1 { max-width: none; }
  .cmd-caret { display: none !important; }
  .cmd input[type="search"] { font-size: 0.82rem; }
  .path-diagram { gap: 0.35rem; }
  .path-line { width: 20px; flex-basis: 20px; }
  .career-head { grid-template-columns: 1fr; }
  .field-tiles { grid-template-columns: 1fr 1fr; }
  .major-list { grid-template-columns: 1fr; }
  .title-search-row { flex-direction: column; }
  .copy-btn { align-self: flex-start; }
  .career, .quiz-card, .field-tile { max-width: 100%; }
  .badge { white-space: normal; }
}
