/* CareerPaycheck — editorial data design.
   Fraunces for display, Public Sans for text. Both OFL, self-hosted. */

:root {
  color-scheme: light;
  --paper: #f3eee4;
  --paper-2: #fffcf7;
  --ink: #1c1612;
  --muted: #4a433b;
  --line: #e0d5c4;
  --pine: #0c6b52;
  --pine-deep: #084838;
  --coral: #c43324;
  --coral-hot: #e23d2b;
  --gold: #a86b00;
  --track: #e7e0d2;
  --bed: #d4c9b6;
  --range: #6fa890;
  --mid: #0c6b52;
  --shadow: 0 18px 50px rgba(28, 22, 18, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Public Sans", "Segoe UI", sans-serif;
  --step-0: 1.0625rem;
  --measure: 68ch;
  --wrap: 1120px;
  --radius: 0px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.25rem;
  --space-7: 3.5rem;
  --space-8: 5rem;
  --header-h: 3.75rem;
  --q1: #d7efe3;
  --q2: #8fd0b3;
  --q3: #2f9d74;
  --q4: #146b4d;
  --q5: #083528;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #16130f;
    --paper-2: #201c18;
    --ink: #f4efe6;
    --muted: #d2c6b8;
    --line: #3c352e;
    --pine: #9dceba;
    --pine-deep: #c5e4d6;
    --coral: #ffb4a2;
    --coral-hot: #ff8d72;
    --gold: #e6c07b;
    --track: #2c2823;
    --bed: #3a342c;
    --range: #3e6d5b;
    --mid: #9dceba;
    --shadow: none;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #16130f;
  --paper-2: #201c18;
  --ink: #f4efe6;
  --muted: #d2c6b8;
  --line: #3c352e;
  --pine: #9dceba;
  --pine-deep: #c5e4d6;
  --coral: #ffb4a2;
  --coral-hot: #ff8d72;
  --gold: #e6c07b;
  --track: #2c2823;
  --bed: #3a342c;
  --range: #3e6d5b;
  --mid: #9dceba;
  --shadow: none;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f3eee4;
  --paper-2: #fffcf7;
  --ink: #1c1612;
  --muted: #4a433b;
  --line: #e0d5c4;
  --pine: #0c6b52;
  --pine-deep: #084838;
  --coral: #c43324;
  --coral-hot: #e23d2b;
  --gold: #a86b00;
  --track: #e7e0d2;
  --bed: #d4c9b6;
  --range: #6fa890;
  --mid: #0c6b52;
}

@font-face {
  font-family: Fraunces;
  src: url("/fonts/fraunces-560.woff2") format("woff2");
  font-weight: 560;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("/fonts/fraunces-560-italic.woff2") format("woff2");
  font-weight: 560;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-440.woff2") format("woff2");
  font-weight: 440;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-620.woff2") format("woff2");
  font-weight: 620;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 440;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

img, svg { max-width: 100%; }
a { color: var(--pine-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.8rem;
  z-index: 10;
}
.skip:focus { top: 0.6rem; }

.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin-inline: auto; }
.wrap-narrow { width: min(740px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}
.brand-mark { width: 34px; height: 34px; display: block; flex: none; }
.embed-foot { display: flex; align-items: center; gap: 0.45rem; }
.embed-foot .brand-mark { width: 22px; height: 22px; }
.brand-name {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-name em { font-style: italic; color: var(--coral); }
.nav { display: flex; gap: 1.05rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.nav a:hover { color: var(--pine-deep); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-bars,
.nav-bars::before,
.nav-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-bars::before,
.nav-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-bars::before { top: -6px; }
.nav-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bars::after { top: 0; transform: rotate(-45deg); }
.theme-link {
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.theme-link:hover { color: var(--pine-deep); }
.theme-btn, .text-btn, .copy-btn {
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}
.theme-btn:hover, .text-btn:hover, .copy-btn:hover { background: var(--ink); color: var(--paper); }

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 620;
  margin: 0 0 0.7rem;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.6rem;
}
h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.15rem); margin-top: 0; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.dek { font-size: 1.15rem; color: var(--muted); max-width: var(--measure); }
.answer {
  font-size: 1.2rem;
  max-width: 62ch;
}
.answer strong { font-weight: 620; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: end;
  padding: 4.5rem 0 2.5rem;
}
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.2rem); }
.hero-stat {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  padding: 1rem 0 0;
  box-shadow: none;
}
.hero-stat .figure {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--coral);
  margin: 0 0 0.55rem;
}
.hero-stat p { color: var(--muted); font-size: 0.95rem; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.section { padding: 4rem 0 0; }
.wrap > h2 { margin-top: 3.25rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.card-grid, .path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.card, .path-card {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 1.2rem 1.4rem 1.3rem 0;
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 100%;
  box-shadow: none;
}
.card:last-child, .path-card:last-child { border-right: 0; }
.card:not(:first-child), .path-card:not(:first-child) { padding-left: 1.4rem; }
.path-card:hover, .card:hover { border-right-color: var(--line); }
.path-card:hover h2, .card:hover strong { color: var(--pine-deep); }
.path-card .num, .stat .num {
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.path-card h2, .card h2 { font-size: 1.45rem; margin-top: 0; }

.stat-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.6rem 0 1.2rem;
}
.stat {
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
}
.stat.is-headline { border-top: 2px solid var(--ink); }
.stat span { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }

.panel {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1.1rem 0 0.2rem;
  margin: 0.4rem 0 1.4rem;
  box-shadow: none;
}
.strip { width: 100%; height: auto; display: block; }
.pct-chart { margin-top: 0.4rem; }
.pct-stage { position: relative; padding: 3.1rem 0 3.3rem; }
.pct-track {
  position: relative;
  height: 12px;
  border-radius: 0;
  background: var(--bed);
  margin: 0.35rem 0 0.15rem;
}
.pct-range {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--range);
}
.pct-mid {
  position: absolute;
  top: -3px;
  height: 18px;
  border-radius: 0;
  background: var(--mid);
}
.pct-ends {
  display: none;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
.pct-ends span:last-child { text-align: right; }
.pct-tick {
  position: absolute;
  top: -10px;
  width: 2px;
  height: 28px;
  margin-left: -1px;
  background: var(--coral-hot);
  border-radius: 0;
  box-shadow: 0 0 0 1.5px var(--paper);
  z-index: 1;
}
.pct-pins {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.pct-pins li {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}
.pct-pins .is-above { top: 0; }
.pct-pins .is-below { bottom: 0; }
.pct-pins .is-start { transform: none; text-align: left; }
.pct-pins .is-end { transform: translateX(-100%); text-align: right; }
.pct-pins span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pct-pins strong {
  font-size: 0.95rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}
.pct-pins .is-median strong { color: var(--coral); }
.offer-mark {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: var(--ink);
  transform: rotate(45deg);
  z-index: 2;
}
.pct-readout {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  list-style: none;
}
.pct-chart.is-stacked .pct-pins { display: none; }
.pct-chart.is-stacked .pct-stage { padding: 0.4rem 0 0; }
.pct-chart.is-stacked .pct-readout {
  position: static;
  width: auto;
  height: auto;
  margin: 0.9rem 0 0;
  overflow: visible;
  clip: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}
.pct-chart.is-stacked .pct-readout li { border-top: 1px solid var(--line); padding-top: 0.4rem; }
.pct-chart.is-stacked .pct-readout .is-median { border-top-color: var(--coral); }
.pct-chart.is-stacked .pct-readout .is-median strong { color: var(--coral); }
.hero-stat .pct-chart .pct-pins { display: none; }
.hero-stat .pct-chart .pct-stage { padding: 0.45rem 0 0.15rem; }
.hero-stat .pct-chart .pct-readout {
  position: static;
  width: auto;
  height: auto;
  margin: 0.7rem 0 0;
  overflow: visible;
  clip: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.hero-stat .pct-chart .pct-readout li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.28rem 0;
}
.hero-stat .pct-chart .pct-readout li span,
.hero-stat .pct-chart .pct-readout li strong { display: inline; }
.hero-stat .pct-chart .pct-readout .is-median strong { color: var(--coral); }
.hero-stat .pct-readout { grid-template-columns: 1fr; gap: 0; }
.hero-stat .pct-readout li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding: 0.28rem 0;
}
.legend-note { flex-basis: 100%; margin-top: 0.35rem; }
.pct-readout span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pct-readout strong {
  display: block;
  font-size: clamp(0.78rem, 2.2vw, 1.05rem);
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.figure-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-jobs { color: var(--muted); font-size: 0.95rem; margin: 0.15rem 0 0.55rem; }
.mean-note {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.mean-note strong { color: var(--ink); font-weight: 620; }
.stat.is-headline .num { font-size: clamp(2.8rem, 5vw, 4.1rem); color: var(--coral); letter-spacing: -0.04em; }
.stat:not(.is-headline) .num { font-size: 1.35rem; color: var(--ink); }
.legend-item { display: inline-flex; align-items: center; gap: 0.3rem; margin-right: 0.45rem; }
.bar-legend { font-family: var(--sans); font-size: 15px; fill: var(--muted); }
.strip-base { stroke: var(--line); stroke-width: 2; }
.strip-range { fill: var(--track); }
.strip-mid { fill: var(--mid); }
.strip-median { stroke: var(--coral-hot); stroke-width: 2; }
.strip-median-halo { stroke: var(--paper); stroke-width: 6; }
.strip-dot { fill: var(--paper); stroke: var(--coral-hot); stroke-width: 2; }
.strip-label, .bar-value { font-family: var(--sans); font-size: 14px; fill: var(--ink); font-variant-numeric: tabular-nums; }
.strip-name, .bar-label { font-family: var(--sans); font-size: 13px; fill: var(--muted); letter-spacing: 0.02em; }
.bar-annotation { font-family: var(--sans); font-size: 12px; fill: var(--coral); font-weight: 620; }
.bar-track { fill: var(--track); }
.bar-fill { fill: var(--mid); }
.bar-national { stroke: var(--coral-hot); stroke-width: 2; }
.bars { width: 100%; height: auto; }

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.table-scroll table { width: max-content; min-width: 100%; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption {
  text-align: left;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  padding: 0.9rem 0 0.35rem;
  caption-side: top;
}
th, td { padding: 0.7rem 0.85rem 0.7rem 0; text-align: left; border-top: 1px solid var(--line); vertical-align: baseline; }
thead th { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 620; }
tbody th { font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 620; }
td.num, th.num { text-align: right; padding-left: 1rem; padding-right: 0.4rem; white-space: nowrap; }
td.num:last-child, th.num:last-child { padding-right: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }

.crumbs { font-size: 0.9rem; color: var(--muted); margin: 1.1rem 0 0.4rem; }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; }

.callout {
  border-left: 4px solid var(--coral-hot);
  padding: 0.2rem 0 0.2rem 1rem;
  margin: 1rem 0 1.3rem;
  max-width: 68ch;
}
.keystat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
  padding: 1.05rem 1.15rem;
  margin: 1.4rem 0;
}
.keystat p { margin: 0; }
.keystat .copy-btn { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 45%, transparent); }
.keystat .copy-btn:hover { background: var(--paper); color: var(--ink); }
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.weigh {
  background: transparent;
  border-radius: 0;
  padding: 0.75rem 1.2rem 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
}
.weigh h3 { margin-bottom: 0.4rem; }
.prose { max-width: 68ch; }
.prose p, .angle { font-size: 1.08rem; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}
.faq summary { cursor: pointer; font-weight: 620; min-height: 44px; display: flex; align-items: center; }
.faq p { color: var(--muted); margin: 0.55rem 0 0.2rem; }

.ad-slot {
  margin: 2.5rem 0;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.map-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 1rem; align-items: start; }
.us-map { width: 100%; height: auto; }
.us-map path {
  stroke: var(--paper);
  stroke-width: 1;
  cursor: pointer;
}
.us-map path:hover, .us-map path:focus { stroke: var(--ink); stroke-width: 1.6; }
.map-tip {
  min-height: 3.2rem;
  font-variant-numeric: tabular-nums;
}
.legend { display: flex; gap: 0.15rem; align-items: flex-start; flex-wrap: wrap; margin: 0.6rem 0 0.9rem; font-size: 0.78rem; color: var(--muted); }
.legend-item { flex-direction: column; align-items: stretch; gap: 0.3rem; margin-right: 0.35rem; min-width: 5.5rem; }
.swatch { width: 100%; height: 8px; border-radius: 0; display: block; }
.map-tip { font-size: 1.2rem; color: var(--ink); line-height: 1.35; letter-spacing: -0.02em; }

.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: 0.85rem; font-weight: 620; margin-bottom: 0.3rem; }
select, input[type="number"], input[type="text"], input[type="email"], input[type="search"] {
  width: 100%;
  font: inherit;
  font-size: max(16px, 1rem);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.55rem 0.1rem;
  min-height: 44px;
}
select:focus-visible, input:focus-visible { outline-offset: 4px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0; }
.band-result {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.caveat {
  background: transparent;
  border-radius: 0;
  border-left: 2px solid var(--ink);
  padding: 0.15rem 0 0.15rem 1rem;
  margin: 1.4rem 0;
  max-width: 68ch;
}
.tool-figure {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--coral);
  margin: 0 0 0.35rem;
  font-variant-numeric: tabular-nums;
}
.tool-grid > div { border-top: 1px solid var(--ink); padding-top: 1rem; }
.tool-facts { margin: 0.8rem 0 0; }
.tool-facts div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.4rem 0;
}
.tool-facts dt { color: var(--muted); font-size: 0.88rem; }
.tool-facts dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 620; text-align: right; }

.site-footer {
  border-top: 1px solid var(--ink);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  margin-top: 4.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.2rem; }
.site-footer a { color: var(--ink); }
.footer-brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--serif); font-size: 1.4rem; color: var(--ink); letter-spacing: -0.03em; }
.footer-brand em { font-style: italic; color: var(--coral); }
.footer-brand .brand-mark { width: 28px; height: 28px; }

.alpha-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.15rem;
  margin: 1.4rem 0 0.4rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--ink);
}
.alpha-index a {
  text-decoration: none;
  border: 0;
  border-radius: 0;
  min-width: 1.6rem;
  text-align: center;
  padding: 0.25rem 0.2rem;
  color: var(--ink);
  font-weight: 620;
}
.alpha-index a:hover { color: var(--pine-deep); }
.directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.5rem;
}
.directory a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
}
.directory a:hover { color: var(--pine-deep); }
.directory .pay { color: var(--muted); font-variant-numeric: tabular-nums; float: none; white-space: nowrap; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: transparent;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.embed-code, code#embed-code, code#map-link {
  font-size: 0.82rem;
  padding: 0.7rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  display: block;
  overflow-x: auto;
  background: transparent;
}
.source-list { color: var(--muted); font-size: 0.92rem; }
.note { color: var(--muted); font-size: 0.92rem; }

@media (max-width: 860px) {
  .pct-pins { display: none; }
  .pct-stage { padding: 0.2rem 0 0.15rem; }
  .pct-readout, .pct-chart.is-stacked .pct-readout, .hero-stat .pct-readout, .home-band .pct-readout {
    position: static;
    width: auto;
    height: auto;
    margin: 0.55rem 0 0;
    overflow: visible;
    clip: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.85rem;
  }
  .pct-readout li, .hero-stat .pct-readout li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.45rem;
    border-top: 1px solid var(--line);
    padding: 0.38rem 0;
    min-width: 0;
  }
  .pct-readout .is-median { grid-column: 1 / -1; order: -1; }
  .pct-readout strong { font-size: clamp(0.78rem, 3.5vw, 1rem); }
}
.hrow {
  display: grid;
  grid-template-columns: 7.25rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin: 0.7rem 0;
}
.htrack { display: block; height: 6px; border-radius: 0; background: var(--track); }
.hfill { display: block; height: 6px; border-radius: 0; background: var(--mid); }
.hlabel { color: var(--muted); font-size: 0.9rem; }
.hrow strong { font-variant-numeric: tabular-nums; font-size: 0.95rem; }

@media (max-width: 860px) {
  .hero, .card-grid, .path-grid, .stat-row, .two, .map-layout, .tool-grid, .footer-grid, .directory { grid-template-columns: 1fr; }
  .card, .path-card { border-right: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .path-grid, .card-grid { border-top: 0; }
  .card:first-child, .path-card:first-child { border-top: 1px solid var(--ink); }
  :root { --header-h: calc(3rem + env(safe-area-inset-top)); }
  .header-inner { min-height: 3rem; gap: 0.4rem; }
  .brand { min-height: 44px; }
  .brand-name { font-size: 1.12rem; }
  .nav-toggle { display: inline-flex; }
  .nav a, .nav .theme-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
  }
  .nav .theme-link {
    border-top: 1px solid var(--line);
    margin-top: 0.35rem;
    padding-top: 0.15rem;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .header-inner { position: relative; }
  h1 { font-size: clamp(2.1rem, 10vw, 3.2rem); }
  .keystat { grid-template-columns: 1fr; }
}

@media (min-width: 1100px) {
  .directory { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .pct-mid, .hfill, .bar-fill { transition: none; }
}

.fold { border-top: 1px solid var(--line); margin: 0.15rem 0 0.35rem; }
.fold > summary {
  cursor: pointer;
  font-weight: 620;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::marker { content: ""; }
.fold > summary::before {
  content: "+";
  font-family: var(--serif);
  color: var(--coral);
  font-size: 1.35rem;
  line-height: 1;
  width: 1rem;
  flex: none;
}
.fold[open] > summary::before { content: "\2212"; }
.fold > :not(summary) { padding-bottom: 0.65rem; }
.lead {
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 0.1rem 0 0.75rem;
  max-width: 38ch;
}
.phone-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.85rem 0 0.35rem;
}
.phone-hero.is-compact { min-height: 0; padding: 1.15rem 0 0.15rem; }
.phone-hero h1 { margin-bottom: 0.75rem; }
.phone-hero .stat.is-headline {
  border: 0;
  padding: 0;
  margin: 0 0 0.15rem;
}
.phone-hero .stat.is-headline span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 620;
}
.phone-hero .stat.is-headline .num,
.phone-hero .figure {
  font-family: var(--serif);
  font-size: clamp(3.15rem, 15vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--coral);
  margin: 0 0 0.35rem;
}
.phone-hero .lead-chart { border: 0; margin: 0.2rem 0 0; padding: 0; }
.phone-hero .figure-kicker { margin-bottom: 0.15rem; }
.compare-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1rem;
  margin-bottom: 0.35rem;
}
.compare-pair .tool-figure { font-size: clamp(1.7rem, 8vw, 2.8rem); line-height: 1.05; margin: 0; }
.pair-name { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.92rem; }
.match-line {
  max-width: 40rem;
  margin: 1.35rem 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.45;
}
.site-footer { padding-bottom: calc(3rem + env(safe-area-inset-bottom)); }

@media (max-width: 860px) {
  .home-stack { display: flex; flex-direction: column; }
  .home-stack .home-top { display: contents; }
  .home-stack .phone-hero { order: 1; }
  .home-stack .trades-peek { order: 2; padding-top: 0.4rem; }
  .home-stack .path-wrap { order: 3; }
  .home-stack .home-kicker,
  .home-stack .home-more,
  .home-stack .hero-aside { order: 4; }
  .home-stack .phone-hero,
  .home-stack .home-kicker,
  .home-stack .home-more,
  .home-stack .hero-aside {
    width: min(var(--wrap), calc(100% - 2rem));
    margin-inline: auto;
  }
  .trades-peek .wrap { display: flex; flex-direction: column; }
  .trades-peek .section-head { order: 1; margin-bottom: 0.45rem; }
  .trades-peek .table-scroll { order: 2; overflow-x: hidden; }
  .trades-peek .table-scroll table { width: 100%; min-width: 0; }
  .trades-peek td, .trades-peek th { white-space: normal; }
  .trades-peek td.num, .trades-peek th.num { white-space: nowrap; }
  .trades-peek .fold { order: 3; }
  .trades-peek .trade-note { order: 4; margin-top: 0.65rem; }
  .career-top { display: flex; flex-direction: column; }
  .career-top .phone-hero { order: 1; }
  .career-top > .stat-row { order: 2; }
  .career-top > .rest { order: 3; display: flex; flex-direction: column; }
  .career-top > .crumbs,
  .career-top > .kicker,
  .career-top > .dek,
  .career-top > .fold { order: 4; }
  .rest > .peek { order: 1; }
  .rest > * { order: 2; }
  .pct-track { height: 16px; }
  .pct-mid { height: 22px; top: -3px; }
  .pct-ends { display: flex; }
  .phone-hero.is-compact .kicker {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .career-top > .stat-row { margin: 0.2rem 0 0.4rem; }
  .career-top > .stat-row .stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    min-height: 44px;
  }
  .career-top > .stat-row .num { font-size: 1.15rem; }
  .compare-page { display: flex; flex-direction: column; }
  .compare-hero { order: 1; }
  .compare-page .preset-row, .compare-page .tool-grid { order: 2; }
  .compare-page > .fold { order: 3; }
  .compare-page .tool-grid .tool-figure,
  .compare-page .tool-grid .figure-kicker { display: none; }
  .hrow { grid-template-columns: minmax(4.4rem, 6.2rem) minmax(0, 1fr) auto; gap: 0.4rem; }
  .directory a { min-height: 44px; align-items: center; }
  .alpha-index a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .text-btn, .copy-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .preset-row .text-btn { padding-left: 0.85rem; padding-right: 0.85rem; }
  .site-footer a { display: inline-flex; min-height: 44px; align-items: center; }
  .keystat .copy-btn { justify-content: center; }
}

@media (min-width: 700px) and (max-width: 860px) {
  .phone-hero:not(.is-compact) h1 { font-size: clamp(2.6rem, 6vw, 3.4rem); }
  .phone-hero:not(.is-compact) .stat.is-headline .num,
  .phone-hero:not(.is-compact) .figure { font-size: clamp(4rem, 10vw, 5.4rem); }
}

@media (min-width: 861px) {
  .phone-hero { min-height: 0; padding: 0; display: block; }
  .phone-hero.is-compact .lead,
  .phone-hero.is-compact .figure,
  .phone-hero.is-compact .figure-kicker { display: none; }
  .fold { border: 0; margin: 0; }
  .fold > summary { display: none; }
  .fold > :not(summary) { display: block; padding-bottom: 0; }
  .career-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    column-gap: 1.25rem;
    align-items: start;
    padding-top: 0.4rem;
  }
  .career-top .phone-hero { display: contents; }
  .career-top .lead { display: none; }
  .career-top .crumbs { grid-column: 1 / -1; grid-row: 1; }
  .career-top > .kicker { grid-column: 1 / -1; grid-row: 2; }
  .career-top h1 { grid-column: 1 / -1; grid-row: 3; }
  .career-top .dek { grid-column: 1 / -1; grid-row: 4; }
  .career-top .answer-fold { grid-column: 1 / -1; grid-row: 5; }
  .career-top .stat.is-headline { grid-column: 1; grid-row: 6; align-self: end; border-top: 2px solid var(--ink); padding-top: 0.55rem; }
  .career-top > .stat-row {
    grid-column: 2 / -1;
    grid-row: 6;
    grid-template-columns: 1fr 1fr 1fr;
    align-self: end;
    margin: 0;
  }
  .career-top .lead-chart { grid-column: 1 / -1; grid-row: 7; }
  .career-top .chart-fold { grid-column: 1 / -1; grid-row: 8; }
  .career-top .rest { grid-column: 1 / -1; grid-row: 9; }
  .home-top {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
      "kicker fk"
      "title fig"
      "copy band"
      "copy aside";
    column-gap: 4rem;
    align-items: end;
    padding: 4.5rem 0 2.5rem;
  }
  .home-top .phone-hero { display: contents; }
  .home-kicker { grid-area: kicker; }
  .home-top h1 { grid-area: title; font-size: clamp(3rem, 6.4vw, 5.2rem); }
  .home-more { grid-area: copy; align-self: start; }
  .home-top .figure-kicker { grid-area: fk; }
  .home-top .figure {
    grid-area: fig;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--coral);
    margin: 0 0 0.55rem;
  }
  .home-band { grid-area: band; }
  .hero-aside { grid-area: aside; }
  .home-top .lead { display: none; }
  .home-band .pct-pins { display: none; }
  .home-band .pct-stage { padding: 0.45rem 0 0.15rem; }
  .home-band .pct-chart.is-stacked .pct-readout,
  .home-band .pct-readout {
    position: static;
    width: auto;
    height: auto;
    margin: 0.7rem 0 0;
    overflow: visible;
    clip: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .home-band .pct-chart.is-stacked .pct-readout li,
  .home-band .pct-readout li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    border-top: 1px solid var(--line);
    padding: 0.28rem 0;
  }
  .home-band .pct-readout .is-median { grid-column: auto; order: 0; }
  .home-band .pct-readout .is-median strong { color: var(--coral); }
  .compare-hero { padding-top: 1.5rem; }
  .compare-hero .compare-pair,
  .compare-hero #compare-band,
  .compare-hero .lead { display: none; }
}
