@charset "UTF-8";

/* ============================================================
   SaaS Niche Finder — public research site
   Shared Linear DESIGN.md foundation: near-black canvas,
   charcoal surfaces, hairline rules, restrained lavender,
   compact sans typography and evidence-first information.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% -10%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 38rem),
    linear-gradient(to right, rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px;
  mask-image: linear-gradient(to bottom, #000 0, rgba(0,0,0,.56) 560px, transparent 980px);
}
::selection { background: var(--accent); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.035em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin: .35em 0; }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }
code, .mono { font-family: var(--font-mono); font-size: .86em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-small);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.page { width: var(--page); margin: 0 auto; }
.quiet { color: var(--ink-muted); }
.small { font-size: .82rem; line-height: 1.55; }
.tiny { font-size: .72rem; line-height: 1.5; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- Shared masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--canvas) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(130%);
}
.masthead__issue {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 100%;
  min-height: 44px;
  text-decoration: none;
}
.wordmark__image {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 25px);
  font-size: 12px;
}
.nav a { text-decoration: none; color: var(--muted); transition: color .18s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav__cta {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  padding: 7px 10px !important;
  color: var(--ink-muted) !important;
  background: var(--surface-2);
}
.nav__cta:hover { color: var(--ink) !important; border-color: #4b4d56; background: var(--surface-3); }

/* ---------- Shared type ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-hover);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  flex: none;
}
.kicker--plain::before { display: none; }
.kicker--blue::before { background: var(--accent-hover); }
.kicker--green::before { background: var(--success); }
.label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.deck {
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 64ch;
  text-wrap: pretty;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-muted);
}
.arrow-link:hover { color: var(--accent-hover); }
.arrow-link span { transition: transform .3s var(--ease); }
.arrow-link:hover span { transform: translateX(4px); }
.app-link {
  display: block;
  color: inherit;
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
}
.app-link:hover .app-name { color: var(--accent-hover); }
.data .app-link { width: auto; }

/* ---------- Home: hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(290px, .72fr);
  gap: clamp(40px, 7vw, 108px);
  padding: clamp(58px, 8vw, 108px) 0 clamp(38px, 5vw, 66px);
  align-items: start;
}
.hero__main { min-width: 0; }
.hero h1 {
  margin: 18px 0 24px;
  font-size: clamp(3.25rem, 7vw, 6.7rem);
  line-height: .94;
  letter-spacing: -.065em;
  max-width: 10ch;
}
.hero h1 em {
  color: var(--accent-hover);
  font-style: normal;
  box-shadow: inset 0 -.09em color-mix(in srgb, var(--accent) 68%, transparent);
}
.hero .deck { max-width: 53ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-small);
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .18s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--canvas); transform: translateY(-1px); }
.btn--ghost { background: var(--surface-2); color: var(--ink-muted); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-3); color: var(--ink); border-color: #4b4d56; }

.definition {
  border: 1px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 10px;
  padding: 16px 18px 17px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, var(--surface-1)), var(--surface-1));
  font-size: .88rem;
  line-height: 1.55;
  box-shadow: 0 16px 44px rgba(0,0,0,.22);
}
.definition > .label { display: flex; justify-content: space-between; gap: 12px; }
.definition__body {
  margin: 15px 0 20px;
  font-size: 1.1rem;
  line-height: 1.48;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: pretty;
}
.definition__body strong { font-weight: 600; }
.definition dl { margin: 0; border-top: 1px solid var(--line); }
.definition dl > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.definition dt {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: 1.6;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.definition dd { margin: 0; color: var(--ink-muted); font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.definition__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Home: snapshot ---------- */
.snapshot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-1);
}
.snapshot__item {
  min-width: 0;
  padding: 19px 18px 20px;
  border-right: 1px solid var(--line);
}
.snapshot__item:last-child { border-right: 0; }
.snapshot__num {
  display: block;
  font-size: clamp(1.65rem, 2.4vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.snapshot__label { display: block; margin-top: 9px; font-size: .76rem; line-height: 1.45; color: var(--ink-muted); }
.snapshot__note { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* ---------- Home: search ---------- */
.search-band {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-1);
}
.search-band h2 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -.03em; }
.search-band p { margin: 7px 0 0; font-size: .78rem; color: var(--muted); }
.search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}
.search-form:focus-within {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 1px;
}
.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 13px;
  font-size: .92rem;
  color: var(--ink);
}
.search-form input::placeholder { color: var(--muted); opacity: 1; }
.search-form input:focus { outline: none; }
.search-form button {
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--line-strong);
  background: var(--surface-3);
  color: var(--ink-muted);
  padding: 0 14px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.search-form button:hover { background: var(--surface-4); color: var(--ink); }
.search-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: .02em;
  color: var(--muted);
}
.search-examples a { text-decoration: none; color: var(--ink-muted); border-bottom: 1px solid var(--line-strong); }
.search-examples a:hover { color: var(--accent-hover); border-color: var(--accent); }

/* ---------- Home: sections and paths ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding-top: clamp(38px, 5vw, 60px); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 30px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 3.2rem); max-width: 15ch; }
.section-head p { max-width: 48ch; margin: 0; color: var(--ink-muted); font-size: .88rem; }
@media (min-width: 761px) {
  #research-directions, #document-scanning, #habit-groups { scroll-margin-top: 100px; }
}
.paths { border-top: 1px solid var(--line-strong); }
.path {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.05fr) minmax(0, 1.45fr) 26px;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .18s, padding .25s var(--ease);
}
.path:hover { background: var(--surface-1); padding-left: 10px; padding-right: 10px; }
.path__num { font-family: var(--font-mono); font-size: var(--text-label); color: var(--muted); }
.path__title { font-size: clamp(1.12rem, 1.8vw, 1.48rem); line-height: 1.16; letter-spacing: -.025em; }
.path__desc { font-size: .82rem; color: var(--ink-muted); line-height: 1.55; }
.path__go { font-family: var(--font-mono); font-size: 14px; color: var(--muted); text-align: right; transition: transform .25s var(--ease), color .25s; }
.path:hover .path__go { transform: translateX(5px); color: var(--accent-hover); }

/* ---------- Home: reviewed niche spread ---------- */
.spread {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: start;
}
.spread__note {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-1);
  padding: 20px;
}
.spread__note h3 { font-size: 1.3rem; line-height: 1.2; margin: 11px 0 12px; letter-spacing: -.03em; }
.spread__note p { font-size: .82rem; color: var(--ink-muted); }
.spread__note .label { display: block; margin-top: 20px; }
.spread__note ul { padding-left: 0; list-style: none; margin: 8px 0 0; }
.spread__note li { padding: 8px 0; border-top: 1px solid var(--line); font-size: .79rem; line-height: 1.5; color: var(--ink-muted); }
.inline-margin { margin-top: 18px; }

/* ---------- Data tables ---------- */
.table-scroll-hint { display: none; }
.table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-1);
}
.table-wrap::-webkit-scrollbar { height: 7px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}
.data th {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 10px 11px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-muted);
}
.data tr:last-child td { border-bottom: 0; }
.data td.num, .data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data td a { color: inherit; text-decoration: none; }
.data td a:hover { color: var(--accent-hover); }
.data .app-name { font-weight: 500; color: var(--ink); }
.data .app-desc { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.data tbody tr { transition: background .14s; }
.data tbody tr:hover { background: var(--surface-2); }
.table-note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: .02em;
  color: var(--muted);
}
.table-note a { color: var(--ink-muted); }
.table-note a:hover { color: var(--accent-hover); }

/* ---------- Home: latest research ---------- */
.research-list { border-top: 1px solid var(--line-strong); }
.research-item {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr) 40px;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  align-items: start;
  transition: background .18s;
}
.research-item:hover { background: var(--surface-1); }
.research-item:hover h3 { color: var(--accent-hover); }
.research-item__type {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: 1.65;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 5px;
}
.research-item__type b { display: block; color: var(--accent-hover); font-weight: 500; margin-bottom: 3px; }
.research-item h3 { font-size: clamp(1.08rem, 1.8vw, 1.46rem); line-height: 1.2; transition: color .18s; }
.research-item p { margin: 7px 0 0; font-size: .82rem; color: var(--ink-muted); max-width: 72ch; }
.research-item__go { font-family: var(--font-mono); font-size: 14px; color: var(--muted); text-align: right; padding-top: 3px; transition: transform .25s var(--ease); }
.research-item:hover .research-item__go { transform: translateX(5px); color: var(--accent-hover); }

/* ---------- Home: evidence band ---------- */
.evidence-band {
  margin-top: clamp(22px, 4vw, 38px);
  padding: clamp(50px, 7vw, 84px) 0;
  border-block: 1px solid var(--line-strong);
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--accent) 9%, var(--surface-1)), var(--surface-1) 58%);
}
.evidence-band h2 { color: var(--ink); font-size: clamp(1.9rem, 3.8vw, 3.3rem); max-width: 17ch; margin: 14px 0; }
.evidence-band .deck { color: var(--ink-muted); max-width: 62ch; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border-top: 1px solid var(--line-strong); }
.evidence-cell { padding: 20px 26px 4px 0; border-right: 1px solid var(--line-strong); }
.evidence-cell:last-child { border-right: 0; padding-right: 0; }
.evidence-cell + .evidence-cell { padding-left: 26px; }
.evidence-cell b { display: block; font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-hover); margin-bottom: 11px; }
.evidence-cell p { font-size: clamp(1.02rem, 1.5vw, 1.28rem); line-height: 1.4; color: var(--ink); margin: 0; letter-spacing: -.02em; }
.evidence-cell span { display: block; margin-top: 12px; font-size: .76rem; line-height: 1.55; color: var(--muted); }
.band-link { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-strong); padding: 36px 0 28px; background: var(--surface-1); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .65fr)); gap: 34px; }
.footer-brand .wordmark__image { width: 216px; }
.footer-brand p { max-width: 36ch; margin: 14px 0 0; font-size: .78rem; color: var(--muted); }
.footer-col h3 { font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-col a { display: block; width: fit-content; margin: 7px 0; font-size: .78rem; text-decoration: none; color: var(--ink-muted); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Article pages ---------- */
.article-head {
  padding: clamp(44px, 7vw, 82px) 0 34px;
  border-bottom: 1px solid var(--line-strong);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--line-strong); }
.article-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 242px;
  gap: clamp(34px, 6vw, 82px);
  align-items: end;
}
.article-head h1 {
  font-size: clamp(2.45rem, 5.3vw, 4.9rem);
  line-height: .98;
  letter-spacing: -.058em;
  max-width: 18ch;
  text-wrap: balance;
}
.article-head .deck { margin-top: 22px; max-width: 60ch; }
.article-meta {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-1);
  padding: 5px 13px;
}
.article-meta dl { margin: 0; }
.article-meta dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.article-meta dl > div:last-child { border-bottom: 0; }
.article-meta dt {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-meta dd { min-width: 0; margin: 0; font-size: 12px; text-align: right; color: var(--ink-muted); overflow-wrap: anywhere; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: var(--success);
  background: var(--success-soft);
}
.status--lead,
.status--rejected { color: var(--danger); background: var(--danger-soft); }
.status--guide { color: var(--accent-hover); background: var(--accent-soft); }
.status--method { color: var(--ink-muted); background: var(--surface-3); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--article)) 218px;
  gap: clamp(38px, 6vw, 90px);
  padding: clamp(42px, 6vw, 72px) 0 24px;
  align-items: start;
}
.article-body { min-width: 0; color: var(--ink-muted); font-size: .98rem; line-height: 1.78; }
.article-body > p, .article-body > ul, .article-body > ol { max-width: 70ch; }
.article-body > p:first-child { color: var(--ink); }
.article-body h2 {
  color: var(--ink);
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  line-height: 1.12;
  margin: 2.25em 0 .58em;
  letter-spacing: -.04em;
  scroll-margin-top: 100px;
  text-wrap: balance;
}
.article-body h2:first-of-type { margin-top: 0; }
.article-body h3 { color: var(--ink); font-size: 1.17rem; margin: 1.7em 0 .4em; letter-spacing: -.025em; }
.article-body p { text-wrap: pretty; }
.article-body a { color: var(--ink-muted); text-decoration-color: var(--line-strong); }
.article-body a:hover { color: var(--accent-hover); text-decoration-color: var(--accent); }
.article-body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
  font-size: 1.15rem;
  line-height: 1.55;
  letter-spacing: -.02em;
  color: var(--ink);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body figure { margin: 2.2em 0; }
.article-body figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: var(--text-label); line-height: 1.5; letter-spacing: .03em; color: var(--muted); }
.article-body .data { margin: 1.8em 0 2em; }
.article-body .table-wrap .data { margin: 0; }
.article-body .data + .table-note { margin-top: -1.3em; }

.answer {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  margin: 0 0 2.3em;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--surface-1);
}
.answer__label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: 1.5;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-hover);
  padding-top: 4px;
}
.answer p { margin: 0; font-size: clamp(1.12rem, 1.8vw, 1.36rem); line-height: 1.5; letter-spacing: -.025em; color: var(--ink); }
.answer p + p { margin-top: .62em; font-size: .88rem; line-height: 1.65; letter-spacing: 0; color: var(--ink-muted); }
.answer strong { font-weight: 600; }

.callout {
  max-width: 70ch;
  margin: 1.8em 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 7px;
  background: var(--surface-1);
}
.callout__label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 7px;
}
.callout p { margin: 0; font-size: .84rem; line-height: 1.65; }
.callout p + p { margin-top: .65em; }
.callout--warning { border-left-color: var(--danger); }
.callout--warning .callout__label { color: var(--danger); }

.evidence-list { margin: 1.8em 0; }
.evidence-list .evidence-row:first-child { border-top: 1px solid var(--line-strong); }
.evidence-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); }
.evidence-row:last-child { border-bottom: 1px solid var(--line); }
.evidence-row dt { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-hover); padding-top: 4px; }
.evidence-row dd { margin: 0; font-size: .87rem; line-height: 1.65; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.8em 0; border-top: 1px solid var(--line-strong); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); margin: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--text-label); color: var(--muted); padding-top: 4px; }
.steps h3 { margin: 0 0 5px; font-size: 1.05rem; letter-spacing: -.02em; }
.steps p { margin: 0; font-size: .85rem; color: var(--ink-muted); max-width: 62ch; }

.aside {
  position: sticky;
  top: 98px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-1);
  padding: 14px;
  font-size: .76rem;
  line-height: 1.55;
}
.aside h2 { font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.aside ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.aside li { counter-increment: toc; margin: 0; border-bottom: 1px solid var(--line); }
.aside li:last-child { border-bottom: 0; }
.aside li a { display: grid; grid-template-columns: 22px 1fr; gap: 5px; padding: 8px 0; text-decoration: none; color: var(--ink-muted); }
.aside li a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--text-label); color: var(--muted); padding-top: 2px; }
.aside li a:hover { color: var(--ink); }
.aside__note { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--text-label); line-height: 1.65; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }

.article-foot { border-top: 1px solid var(--line-strong); margin-top: 20px; padding: 25px 0 0; }
.article-foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.article-foot h2 { font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.article-foot ul { list-style: none; padding: 0; margin: 0; }
.article-foot li { border-top: 1px solid var(--line); padding: 8px 0; font-size: .82rem; }
.article-foot a { text-decoration: none; color: var(--ink-muted); }
.article-foot a:hover { color: var(--accent-hover); }

.sources { margin-top: 2.7em; border-top: 1px solid var(--line-strong); padding-top: 14px; }
.sources h2 { font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.sources ol { padding-left: 1.35em; margin: 0; }
.sources li { font-size: .78rem; line-height: 1.62; color: var(--muted); margin: 7px 0; overflow-wrap: anywhere; }
.sources a { color: var(--ink-muted); }
.sources a:hover { color: var(--accent-hover); }

/* ---------- Index / library pages ---------- */
.index-head { padding: clamp(48px, 7vw, 84px) 0 30px; border-bottom: 1px solid var(--line-strong); }
.index-head h1 { font-size: clamp(2.7rem, 5.8vw, 5.3rem); line-height: .96; letter-spacing: -.06em; max-width: 17ch; text-wrap: balance; }
.index-head .deck { margin-top: 20px; }
.index-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(38px, 6vw, 90px);
  padding: clamp(36px, 5vw, 58px) 0 0;
  align-items: start;
}
.index-side {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-1);
  padding: 15px;
  font-size: .78rem;
  line-height: 1.58;
  color: var(--ink-muted);
}
.index-side h2 { font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.index-side dl { margin: 0; }
.index-side dl > div { border-bottom: 1px solid var(--line); padding: 8px 0; }
.index-side dl > div:last-child { border-bottom: 0; }
.index-side dt { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.index-side dd { margin: 3px 0 0; }
.index-side .btn { width: 100%; margin-top: 16px; }
.entry-list { border-top: 1px solid var(--line-strong); }
.entry {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 28px;
  gap: 22px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  align-items: start;
  transition: background .18s;
}
.entry:hover { background: var(--surface-1); }
.entry:hover h2 { color: var(--accent-hover); }
.entry__meta {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: 1.7;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.entry__meta b { display: block; color: var(--accent-hover); font-weight: 500; }
.entry h2 { font-size: clamp(1.12rem, 1.9vw, 1.48rem); line-height: 1.2; letter-spacing: -.03em; transition: color .18s; }
.entry p { margin: 7px 0 0; font-size: .82rem; color: var(--ink-muted); max-width: 72ch; }
.entry__go { font-family: var(--font-mono); font-size: 14px; color: var(--muted); text-align: right; padding-top: 3px; transition: transform .25s var(--ease); }
.entry:hover .entry__go { transform: translateX(4px); color: var(--accent-hover); }
.entry-list--spaced { margin-top: 18px; }
.entry--static { cursor: default; }
.entry--static h2, .entry--static .entry__go, .entry--static .entry__meta b { color: var(--ink-muted); }
.entry--static .entry__go { color: var(--muted); }
.entry--static:hover { background: transparent; }
.entry--static:hover h2 { color: var(--ink-muted); }
.entry--static:hover .entry__go { transform: none; }

/* ---------- Utility blocks and headline scale ---------- */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); }
.split-2 > * { min-width: 0; }
.spread > *, .article-layout > *, .index-layout > *, .hero > * { min-width: 0; }
.stack-lg > * + * { margin-top: clamp(28px, 4vw, 44px); }
.display--lg { font-size: clamp(1.85rem, 3.2vw, 2.9rem); }
.display--md { font-size: clamp(1.75rem, 3vw, 2.55rem); }
.display--sm { font-size: clamp(1.55rem, 2.7vw, 2.25rem); }
.display--xs { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.display--sub { margin: 46px 0 6px; }
.display--tight { max-width: 18ch; margin: 12px 0 14px; }
.deck--compact { font-size: .94rem; margin-bottom: 24px; }
.deck--narrow { max-width: 62ch; }
.prose-narrow { max-width: 66ch; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { margin: 8px 0; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .6rem !important; }
.mt-2 { margin-top: 1.2rem !important; }
.mt-3 { margin-top: 2rem !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__main > *, .definition, .snapshot, .search-band {
    animation: rise .72s var(--ease) both;
  }
  .hero h1 { animation-delay: .05s; }
  .hero .deck { animation-delay: .1s; }
  .hero__actions { animation-delay: .15s; }
  .definition { animation-delay: .13s; }
  .snapshot { animation-delay: .19s; }
  .search-band { animation-delay: .24s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (min-width: 1041px) and (max-height: 760px) {
  .hero { padding-top: 48px; padding-bottom: 34px; }
  .hero h1 { font-size: clamp(3rem, 5.9vw, 5.2rem); }
}

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; gap: 38px; }
  .hero h1 { max-width: 11ch; }
  .definition { max-width: 580px; }
  .snapshot { grid-template-columns: 1fr 1fr; }
  .snapshot__item:nth-child(2) { border-right: 0; }
  .snapshot__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .spread { grid-template-columns: 1fr; }
  .spread__note { max-width: 580px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; display: none; }
  .article-head__grid { grid-template-columns: 1fr; }
  .article-meta { max-width: 360px; }
  .index-layout { grid-template-columns: 1fr; }
  .index-side { max-width: 430px; }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-cell, .evidence-cell + .evidence-cell { border-right: 0; border-bottom: 1px solid var(--line-strong); padding: 18px 0; }
  .evidence-cell:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .masthead__issue { display: none; }
  .masthead { position: static; }
  .masthead__bar { min-height: 58px; align-items: flex-start; flex-direction: column; padding: 12px 0 0; gap: 10px; }
  .wordmark__image { width: 216px; }
  .nav { width: 100%; flex-wrap: wrap; gap: 9px 17px; padding-bottom: 12px; }
  .nav a { white-space: nowrap; }
  .nav__cta { display: none; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(2.85rem, 13.4vw, 4.5rem); max-width: 9ch; }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .snapshot { grid-template-columns: 1fr; }
  .snapshot__item { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; }
  .snapshot__item:last-child { border-bottom: 0; }
  .search-band { grid-template-columns: 1fr; gap: 17px; align-items: start; padding: 20px; }
  .section-head { flex-direction: column; align-items: start; gap: 10px; margin-bottom: 24px; }
  .path { grid-template-columns: 34px minmax(0, 1fr); gap: 8px 13px; padding: 16px 0; }
  .path__desc { grid-column: 2; }
  .path__go { display: none; }
  .research-item { grid-template-columns: 1fr 24px; gap: 9px 13px; padding: 16px 0; }
  .research-item__type { grid-column: 1; padding-top: 0; }
  .research-item__type b { display: inline; margin-right: 6px; }
  .research-item__go { grid-column: 2; grid-row: 1 / span 2; }
  .entry { grid-template-columns: 1fr 22px; gap: 8px 11px; padding: 16px 0; }
  .entry__meta { grid-column: 1; padding-top: 0; }
  .entry__meta b { display: inline; margin-right: 6px; }
  .entry__go { grid-column: 2; grid-row: 1 / span 2; }
  .article-head { padding-top: 34px; }
  .article-head h1 { font-size: clamp(2.28rem, 10.8vw, 3.5rem); }
  .answer { grid-template-columns: 1fr; gap: 6px; padding: 16px; }
  .evidence-row { grid-template-columns: 1fr; gap: 4px; }
  .article-foot__grid { grid-template-columns: 1fr; }
  .data { min-width: 620px; }
  .table-scroll-hint { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
  .article-body > .table-scroll-hint { max-width: none; }
  .table-wrap { max-width: 100%; }
  .table-note { flex-direction: column; gap: 5px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .article-body h2 { scroll-margin-top: 20px; }
}

@media (max-width: 430px) {
  .definition dl > div { grid-template-columns: 92px minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .search-form { flex-wrap: wrap; }
  .search-form input { flex: 1 0 100%; }
  .search-form button { min-height: 40px; border-left: 0; border-top: 1px solid var(--line-strong); width: 100%; justify-content: center; }
}

@media print {
  .masthead, .site-footer, .aside, .search-band, .hero__actions, .table-scroll-hint { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  body::before { display: none; }
  .article-layout { display: block; padding-top: 20px; }
  .article-body { color: #111; }
  a { text-decoration: none; }
}
