/* Apex CX Research — design system.
   "Research instrument": deep-indigo ink on cool paper, hairline rules,
   grid discipline, mono figures. Cyan #00B4D8 appears ONLY where data or
   emphasis lives — rules, figure labels, active states — never as wash.
   DM Sans for text; IBM Plex Mono for figures, units, labels, numerics.
   Signature: the FIG. annotation system — hairline-framed elements with
   tiny mono captions, a plotted cover plate, and a standards register.
   One canonical file per brand. */

:root {
  /* palette — pure achromatic white ground.
     Apex was #f4f6f9 and nexus-cx-partners was #faf9f7: two light grounds 2.5 L*
     apart, which is why they read as the same site. Apex takes the research
     genre's own convention instead — Distill.pub and The Pudding both publish on
     untinted #ffffff and carry every bit of structure in hairlines — making it the
     network's only achromatic ground (chroma 0, so it shares a temperature with
     nobody). Nexus moves to a mid-tone warm stone. */
  --bg: #ffffff;
  --surface: #F7F9FB;         /* raised panels now read AGAINST white, not on it */
  --surface-2: #eef1f6;
  --ink: #1A1A2E;
  --ink-2: #383850;
  --muted: #62657c;
  --faint: #9a9db2;
  --primary: #1A1A2E;
  --primary-2: #24243B;
  --accent: #00B4D8;          /* cyan — data signal only */
  --accent-2: #007b95;        /* AA cyan for small text on light */
  --link: #0b6e88;
  --accent-tint: #e2f6fb;
  --accent-ink: #063947;
  --line: #d9dee8;            /* hairline */
  --line-2: #c4cbd8;
  --grid-line: rgba(26, 26, 46, 0.055);

  /* form */
  --radius: 3px;
  --maxw: 1104px;
  --prose: 38rem;             /* ~68–70ch measure at prose size */
  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* spacing scale — single 4px-based rhythm used across new components */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* motion */
  --fast: 160ms cubic-bezier(.3,.7,.3,1);
  --med: 240ms cubic-bezier(.3,.7,.3,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #06222b; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; display: block; }
svg { display: block; }
time, .num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
/* skip link — first tabbable element on every page */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 60;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--fast);
}
.skip-link:focus-visible { top: 0; outline-offset: 0; }
.dot { color: var(--line-2); padding: 0 2px; }

/* mono label voice — everywhere small text carries structure */
.kicker, .lead-label, .section-label, .idx, .index-meta, .article-meta, .back,
.hero-note, .nav-cta, .fig-cap, .tag, .more, .footer-nav a, .rt,
.reg-k, .byline-mark, .plate text {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--med);
}
.masthead.is-scrolled { box-shadow: 0 1px 0 var(--line-2), 0 6px 18px rgba(26,26,46,.06); }
/* centered laboratory header — wordmark on the axis, nav rail beneath a hairline */
.masthead-in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: auto; padding-top: 14px; column-gap: 24px;
}
.masthead-est {
  grid-column: 1; grid-row: 1; justify-self: start;
  font-family: var(--mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint); white-space: nowrap;
}
.brand { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; font-size: 1.02rem; white-space: nowrap; }
.brand-mark { border-radius: 6px; }
.nav {
  grid-column: 1 / -1; grid-row: 2; justify-content: center;
  display: flex; gap: 26px; margin: 12px 0 0; padding: 9px 0 11px;
  border-top: 1px solid var(--line); width: 100%;
}
.nav a {
  color: var(--ink-2); font-weight: 500; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 0; border-bottom: 1px solid transparent; transition: color var(--fast), border-color var(--fast);
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav-cta {
  grid-column: 3; grid-row: 1; justify-self: end;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: var(--primary); border: 1px solid var(--line-2); background: var(--surface);
  padding: 11px 16px; border-radius: var(--radius);
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.nav-cta:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--surface-2);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px;
  border-bottom: 1px solid var(--line);
}
/* ambient plotting canvas — sits above the static grid, below content */
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* centered "report cover" hero — rule-framed title block over the signature plate */
.hero-in {
  position: relative; z-index: 1;
  padding: 52px 24px 44px; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr;
  gap: 0; justify-items: center; text-align: center;
}
.hero-main {
  grid-row: 1; display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 720px;
  border-top: 1px solid var(--ink); border-bottom: 3px double var(--line-2);
  padding: 30px 0 26px;
}
.kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 500;
  color: var(--accent-2); margin: 0 0 20px; padding: 0 0 10px; position: relative;
}
.kicker::before { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 26px; height: 2px; background: var(--accent); }
.hero-title {
  font-size: clamp(2.7rem, 6.2vw, 4.4rem); line-height: .98; letter-spacing: -.045em;
  font-weight: 700; margin: 0 0 16px; text-wrap: balance;
}
.hero-sub {
  font-size: 1.16rem; line-height: 1.55; color: var(--ink); max-width: 30em;
  margin: 0 auto 24px; text-wrap: balance;
}
.hero-signup { display: flex; gap: 8px; max-width: 480px; width: 100%; flex-wrap: wrap; justify-content: center; margin: 0 auto; }
.hero-signup input {
  flex: 1; min-width: 220px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.hero-signup input::placeholder { color: var(--faint); }
.hero-signup input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-tint); }
.hero-signup button {
  padding: 12px 20px; border-radius: var(--radius); border: 1px solid var(--primary);
  background: var(--primary); color: #fff; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: background var(--fast), transform var(--fast);
}
.hero-signup button:hover { background: var(--primary-2); }
.hero-signup button:active { transform: translateY(1px); }
/* signup async states (classes set by the capture script) */
.hero-signup button.is-wait, .prose button.is-wait { background: var(--ink-2); border-color: var(--ink-2); cursor: progress; }
.hero-signup button.is-done, .prose button.is-done { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.hero-signup button.is-err, .prose button.is-err { background: var(--surface); border-color: #b3423f; color: #93312e; }
.hero-note { font-size: .72rem; letter-spacing: .05em; color: var(--muted); margin: 16px 0 0; }

/* research-programme strip — real taxonomy, set as a ruled mono register */
.coverage-strip {
  width: 100%; margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.coverage-strip-h {
  font-family: var(--mono); font-size: .6rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
}
.coverage-list {
  list-style: none; margin: 0; padding: 0; counter-reset: prog;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px;
}
.coverage-list li {
  counter-increment: prog; display: inline-flex; align-items: baseline; gap: 7px;
  font-size: .84rem; font-weight: 600; color: var(--ink);
}
.coverage-list li::before {
  content: counter(prog, decimal-leading-zero);
  font-family: var(--mono); font-size: .62rem; font-weight: 500;
  color: var(--accent-2); font-variant-numeric: tabular-nums;
}

/* ---------- hero signature plate (FIG. 01) — frontispiece exhibit below the cover ---------- */
.hero-fig { grid-row: 2; justify-self: center; align-self: start; width: 100%; max-width: 560px; margin: 38px 0 0; }
.hero-fig .fig-cap { text-align: center; }
.plate { display: block; width: 100%; height: auto;
  filter: drop-shadow(0 10px 26px rgba(26,26,46,.08)); }
.plate text { font-variant-numeric: tabular-nums; }
.plate-frame { fill: var(--surface); stroke: var(--line-2); stroke-width: 1; }
.plate-strip { stroke: var(--line); stroke-width: 1; }
.plate-grid line { stroke: var(--grid-line); stroke-width: 1; }
.plate-axis { stroke: var(--ink); stroke-width: 1.25; }
.plate-tick { stroke: var(--ink-2); stroke-width: 1; }
.plate-fit { fill: none; stroke: var(--accent-2); stroke-width: 1.4; stroke-dasharray: 4 3; stroke-linecap: round; }
.plate-whisker { stroke: var(--accent-2); stroke-width: 1.15; stroke-linecap: round; opacity: .85; }
.plate-pt { fill: var(--accent); }
.plate-focus { fill: var(--accent); stroke: var(--surface); stroke-width: 1.6; }
.plate-reticle { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.plate-reticle-a { fill: none; stroke: var(--accent-2); stroke-width: 1.1; stroke-linecap: round; }
.plate-emblem-ring { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-dasharray: 3.1 1.9; }
.plate-emblem-dot { fill: var(--accent); }
.plate-brand { fill: var(--muted); font-size: 9px; letter-spacing: .18em; font-weight: 600; }
.plate-illus { fill: var(--accent-2); font-size: 8px; letter-spacing: .2em; font-weight: 600; }
.plate-num { fill: var(--muted); font-size: 8.5px; }
.plate-axtitle { fill: var(--ink-2); font-size: 8.5px; letter-spacing: .12em; font-weight: 500; }
.plate-legend { fill: var(--muted); font-size: 8px; letter-spacing: .09em; }
.fig-cap {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin: var(--sp-3) 2px 0; display: block;
}
.fig-cap b { color: var(--accent-2); font-weight: 600; }

/* load choreography (hero) */
@media (prefers-reduced-motion: no-preference) {
  .hero-main > * { animation: rise .6s cubic-bezier(.3,.7,.3,1) both; }
  .hero-main > :nth-child(2) { animation-delay: 60ms; }
  .hero-main > :nth-child(3) { animation-delay: 120ms; }
  .hero-main > :nth-child(4) { animation-delay: 180ms; }
  .hero-main > :nth-child(5) { animation-delay: 220ms; }
  .hero-fig { animation: plate-in .8s cubic-bezier(.3,.7,.3,1) both .14s; }
  .js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s cubic-bezier(.3,.7,.3,1), transform .45s cubic-bezier(.3,.7,.3,1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes plate-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- standards register (research authority) ---------- */
.register { background: var(--surface); border-bottom: 1px solid var(--line); }
.register-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.reg-cell { padding: var(--sp-5) var(--sp-6); }
.reg-cell:first-child { padding-left: 0; }
.reg-cell:last-child { padding-right: 0; }
.reg-cell + .reg-cell { border-left: 1px solid var(--line); }
.reg-k {
  display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .62rem; font-weight: 600;
  color: var(--accent-2); margin: 0 0 var(--sp-2);
}
.reg-v { display: block; font-size: .95rem; line-height: 1.55; color: var(--ink); max-width: 34ch; }
.reg-cell--mark .reg-v { display: flex; align-items: flex-start; gap: 10px; }
.mark { flex: 0 0 auto; margin-top: 1px; width: 22px; height: 22px; }
.mark-ring { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.mark-dot { fill: var(--accent); }
.mark-cross { stroke: var(--accent-2); stroke-width: 1.4; stroke-linecap: round; }

/* ---------- feed ---------- */
.feed { padding: 56px 24px 32px; }

/* section head — FIG. annotation */
.index-head { display: flex; align-items: baseline; gap: 16px; margin: 48px 0 0; }
.section-label {
  text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600;
  color: var(--ink); margin: 0; white-space: nowrap;
}
.section-label .fig-no { color: var(--accent-2); margin-right: 10px; font-weight: 500; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.section-label-tag { color: var(--accent-2); }
.section-rule { flex: 1; height: 1px; background: var(--line); align-self: center; }

/* lead / featured — hairline-framed figure */
.lead {
  display: block; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 34px 38px 30px; position: relative;
  transition: border-color var(--fast), box-shadow var(--med);
}
.lead::before {
  content: ""; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform var(--med);
}
.lead:hover { border-color: var(--ink); box-shadow: 0 8px 28px rgba(26,26,46,.07); }
.lead:hover::before { transform: scaleY(1); }
.lead-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.lead-label { text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; font-weight: 600; color: var(--accent-2); }
.lead-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin: 0 0 12px; max-width: 26em; text-wrap: balance; }
.lead-sub { font-size: 1.06rem; color: var(--ink-2); max-width: 40em; margin: 0 0 22px; }
.lead-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.more { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); font-weight: 600; white-space: nowrap; transition: color var(--fast); }
.lead:hover .more { color: var(--accent-2); }

/* ---------- research register (homepage index) ----------
   A REAL <table>, using the CSS table layout algorithm. No other site in the
   network lays out its index with a table — frontline uses multi-column
   fragmentation, nexus a grid lattice, operator normal flow, ventures flex.
   Refs: Markets Insider's quote table, U.S. Graphics' spec sheets, and the
   metadata-rail proportions of Distill/Pew study indexes. Thumbnail-free by
   construction: only 5 of 24 studies carry art, and research indexes carry none. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.studies { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 14px 0 0; }
.studies thead th {
  text-align: left; font-family: var(--mono);
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--ink); padding: 0 14px 10px 0;
}
.studies thead th.c-meta { text-align: right; padding-right: 0; }
.studies td { border-bottom: 1px solid var(--line); padding: 16px 14px 16px 0; vertical-align: baseline; }
.studies tbody { counter-reset: rec; }
.studies tr.rec { counter-increment: rec; transition: background var(--fast); }
.studies tr.rec:hover td { background: var(--surface); }

/* cell 1 — reference number over the study type, so the page reads as a register
   you consult rather than a feed you scroll (Pew / Distill convention) */
.studies .c-no { width: 5.5rem; }
.rec-no {
  display: block; font-family: var(--mono); font-size: .8rem; font-weight: 500;
  color: var(--faint); font-variant-numeric: tabular-nums;
}
.rec-no::before { content: counter(rec, decimal-leading-zero); }
.rec-kind {
  display: block; margin-top: 5px; font-family: var(--mono);
  font-size: .58rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2);
}
/* cell 2 — the elastic body cell */
.studies .c-body { width: auto; }
.rec-title {
  display: block; font-size: 1.14rem; line-height: 1.3; letter-spacing: -.02em;
  font-weight: 600; color: var(--ink); text-wrap: balance; transition: color var(--fast);
}
.studies tr.rec:hover .rec-title { color: var(--accent-2); }
.rec-excerpt { display: block; margin-top: 6px; font-size: .93rem; line-height: 1.55; color: var(--ink-2); max-width: 46em; }
/* cell 3 — dates form a hard vertical spine down the right edge */
.studies .c-meta {
  width: 9rem; text-align: right; font-family: var(--mono);
  font-size: .7rem; letter-spacing: .04em; color: var(--muted);
  font-variant-numeric: tabular-nums; padding-right: 0;
}
td.c-meta .rt { display: block; margin-top: 5px; color: var(--faint); }

/* a real table's known weak point is small screens: stack it rather than scroll it */
@media (max-width: 640px) {
  .studies thead { display: none; }
  .studies tr.rec { display: block; border-bottom: 1px solid var(--line); padding: 15px 0; }
  .studies td { display: block; width: auto; border-bottom: 0; padding: 0; }
  td.c-no { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
  .rec-no, .rec-kind { display: inline-block; margin: 0; }
  td.c-meta { text-align: left; margin-top: 8px; }
  td.c-meta .rt { display: inline-block; margin: 0 0 0 10px; }
}

/* research index — numbered rows, baseline-aligned mono numerals.
   Still used by the RELATED list on article pages (.index-list--compact). */
.index-list { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: idx; border-top: 1px solid var(--ink); }
.index-row { border-bottom: 1px solid var(--line); }
/* research index — no thumbnails: only 5 of 24 studies carry one, and a ruled
   register reads more like an index of evidence than a card list would. */
.index-link {
  display: flex; align-items: baseline; gap: 26px; padding: 22px 18px 22px 14px;
  position: relative; transition: background var(--fast);
}
.index-link::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 200ms cubic-bezier(.3,.7,.3,1);
}
.index-row:hover .index-link { background: var(--surface); }
.index-row:hover .index-link::before { transform: scaleX(1); }
.idx { counter-increment: idx; font-size: .8rem; color: var(--faint); font-weight: 500; min-width: 30px; flex: 0 0 auto; transition: color var(--fast); }
.idx::before { content: counter(idx, decimal-leading-zero); }
.index-row:hover .idx { color: var(--accent-2); }
.index-main { flex: 1 1 auto; min-width: 0; }
.index-top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.index-title { display: block; font-size: 1.24rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; margin-bottom: 7px; transition: color var(--fast); text-wrap: balance; }
.index-row:hover .index-title { color: var(--accent-2); }
.index-excerpt { display: block; color: var(--ink-2); font-size: .95rem; line-height: 1.6; max-width: 46em; }
.index-meta { flex: 0 0 auto; text-align: right; font-size: .72rem; letter-spacing: .03em; color: var(--muted); display: flex; flex-direction: column; gap: 5px; min-width: 100px; }
.index-meta .rt { color: var(--faint); }
.index-list--compact .index-link { padding: 18px 14px; align-items: baseline; }
.index-list--compact .index-title { font-size: 1.05rem; margin-bottom: 0; }

/* tag chip — squared mono */
.tag {
  display: inline-block; text-transform: uppercase; letter-spacing: .09em;
  font-size: .62rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-tint);
  border: 1px solid rgba(0, 180, 216, 0.3); padding: 3px 8px; border-radius: 2px; white-space: nowrap;
}
.byline { color: var(--muted); font-size: .84rem; font-weight: 500; }
.byline-mark { color: var(--accent-2); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.byline-sep { color: var(--line-2); padding: 0 2px; }
.empty { color: var(--muted); padding: 40px 0; }

/* ---------- article ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50;
  background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none;
}
.article { padding: 8px 0 56px; }
.article-head { padding-top: 40px; max-width: var(--prose); }
.back { color: var(--muted); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; transition: color var(--fast); }
.back:hover { color: var(--accent-2); }
.article-meta { display: flex; align-items: center; gap: 8px; margin: 26px 0 18px; font-size: .74rem; letter-spacing: .03em; color: var(--muted); flex-wrap: wrap; }
.article-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; margin: 0 0 18px; text-wrap: balance; }
/* the summary reads as a labelled report abstract (studies only, not static pages) */
.article:not(.page) .lede {
  font-size: 1.08rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 24px;
  max-width: 60ch; border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
  background: var(--surface); padding: 16px 20px 15px; border-radius: 0 var(--radius) var(--radius) 0;
}
.article:not(.page) .lede::before {
  content: "Abstract"; display: block; font-family: var(--mono);
  font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 8px;
}
.page .lede, .lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 20px; text-wrap: balance; max-width: 40ch; }
.article-head .byline { padding-bottom: 24px; border-bottom: 2px solid var(--ink); display: inline-flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.page .article-head { padding-bottom: 4px; border-bottom: 1px solid var(--ink); }
.page .article-head h1 { margin-bottom: 12px; }
.page .lede { margin-bottom: 28px; }

/* prose — 17–19px, ~68ch, numbered H2 counters */
.prose { max-width: var(--prose); padding-top: 34px; font-size: 1.06rem; color: var(--ink-2); counter-reset: h2; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  counter-increment: h2;
  font-size: 1.5rem; letter-spacing: -.02em; font-weight: 700; color: var(--ink);
  margin: 52px 0 16px; padding-top: 22px; border-top: 1px solid var(--ink); text-wrap: balance;
}
.prose h2::before {
  content: counter(h2, decimal-leading-zero) "."; display: block;
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em;
  color: var(--accent-2); margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.prose h3 { font-size: 1.18rem; letter-spacing: -.01em; font-weight: 600; color: var(--ink); margin: 34px 0 10px; text-wrap: balance; }
.prose p { margin: 0 0 19px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin: 8px 0; padding-left: 4px; }
.prose ul li::marker { content: "—  "; color: var(--accent-2); }
.prose ol li::marker { color: var(--accent-2); font-family: var(--mono); font-size: .88em; font-weight: 500; font-variant-numeric: tabular-nums; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a {
  color: var(--link); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; text-decoration-color: rgba(11,110,136,.4); transition: text-decoration-color var(--fast);
}
.prose a:hover { text-decoration-color: var(--link); text-decoration-thickness: 2px; }
.prose a:visited { color: #4d5a86; text-decoration-color: rgba(77,90,134,.4); }
.prose a:visited:hover { text-decoration-color: #4d5a86; }
/* external references — small mono cue, kept quiet */
.prose a[href^="http"]::after { content: "\2197"; font-family: var(--mono); font-size: .72em; margin-left: 3px; color: var(--muted); }

/* ---------- key-takeaways findings box (JS-tagged; unstyled fallback reads fine) ---------- */
.takeaways {
  margin: 30px 0 34px; padding: var(--sp-5) var(--sp-5) var(--sp-4);
  background: var(--surface); border: 1px solid var(--line-2); border-top: 2px solid var(--ink);
  border-radius: 0 0 var(--radius) var(--radius); position: relative;
}
.takeaways::before {
  content: "FINDINGS"; display: block; font-family: var(--mono); font-size: .62rem;
  letter-spacing: .16em; color: var(--accent-2); font-weight: 600; margin-bottom: var(--sp-2);
}
.takeaways > p { margin: 0 0 var(--sp-3); font-weight: 600; color: var(--ink); font-size: .98rem; }
.takeaways > p strong { color: inherit; }
.takeaways ul, .takeaways ol { margin: 0; padding-left: 20px; }
.takeaways li { margin: 7px 0; font-size: .97rem; }

/* ---------- FAQ register (JS-tagged h2#faq + h3/p pairs) ---------- */
.prose h2.faq-head { border-top-width: 2px; counter-reset: faq; }
.prose h3.faq-q {
  margin: 26px 0 8px; padding: 0 0 0 44px; position: relative; font-size: 1.06rem; line-height: 1.45;
}
.prose h3.faq-q::before {
  content: "Q" counter(faq, decimal-leading-zero);
  counter-increment: faq;
  position: absolute; left: 0; top: .18em;
  font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em;
  color: var(--accent-2); font-variant-numeric: tabular-nums;
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 2px; padding: 2px 6px;
}
.prose .faq-a { border-left: 1px solid var(--line); margin-left: 12px; padding-left: 31px; }

/* ---------- table scroll wrapper (JS-wrapped) ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 28px 0; }
.table-scroll .prose-table, .table-scroll table { margin: 0; min-width: 520px; }
.prose td.num, .prose td:where([align="right"]) { text-align: right; }

/* methodology callout */
.prose blockquote {
  margin: 30px 0; padding: 18px 22px 16px; border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent); background: var(--surface);
  color: var(--ink-2); font-size: 1rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote::before {
  content: "NOTE"; display: block; font-family: var(--mono); font-size: .62rem;
  letter-spacing: .14em; color: var(--accent-2); font-weight: 600; margin-bottom: 8px;
}
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: 12px; }

.prose code { font-family: var(--mono); background: var(--accent-tint); color: var(--accent-ink); padding: 1px 6px; border-radius: 2px; font-size: .85em; }
.prose pre {
  font-family: var(--mono); background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
  padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; font-size: .82rem; line-height: 1.6;
  margin: 26px 0; -webkit-overflow-scrolling: touch;
}
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose img { border-radius: var(--radius); margin: 26px 0; border: 1px solid var(--line); }

/* data tables — hairlines, tabular numerals */
.prose table {
  width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .92rem;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  font-variant-numeric: tabular-nums;
}
.prose th {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; color: var(--ink); text-align: left; padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.prose td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr { transition: background var(--fast); }
.prose tbody tr:hover { background: var(--surface); }
.prose td:last-child, .prose th:last-child { padding-right: 0; }

/* forms rendered inside prose (contact / newsletter pages) */
.prose form { margin: 28px 0; padding: 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); max-width: 480px; }
.prose label { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-weight: 600; }
.prose input, .prose textarea, .prose select {
  width: 100%; padding: 11px 13px; margin: 0 0 16px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; font-size: .95rem;
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
.prose input::placeholder, .prose textarea::placeholder { color: var(--faint); }
.prose input:focus, .prose textarea:focus, .prose select:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-tint); background: var(--surface); }
.prose button, .prose input[type="submit"] {
  width: auto; padding: 11px 20px; border-radius: var(--radius); border: 1px solid var(--primary);
  background: var(--primary); color: #fff; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: background var(--fast), transform var(--fast);
}
.prose button:hover, .prose input[type="submit"]:hover { background: var(--primary-2); }
.prose button:active { transform: translateY(1px); }

/* ---------- related ---------- */
.related { padding: 8px 24px 64px; }

/* ---------- footer ---------- */
.footer { background: var(--primary); color: #c7cbe0; margin-top: 56px; border-top: 3px solid var(--accent); }
.footer-in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; padding: 48px 24px 40px; align-items: start; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-name { color: #fff; font-weight: 700; letter-spacing: -.01em; }
.footer-tag { color: #8f93ad; font-size: .84rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; }
.footer-nav a { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #c7cbe0; transition: color var(--fast); }
.footer-nav a:hover { color: var(--accent); }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; color: #8b8fa9; font-size: .78rem; line-height: 1.65; max-width: 56em; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .register-in { grid-template-columns: 1fr; }
  .reg-cell { padding: 18px 0; }
  .reg-cell:first-child { padding-top: var(--sp-1); }
  .reg-cell + .reg-cell { border-left: 0; border-top: 1px solid var(--line); }
  .reg-v { max-width: 60ch; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .masthead-in { grid-template-columns: auto 1fr; padding-top: 12px; column-gap: 14px; }
  .masthead-est { display: none; }   /* would overlap the wordmark once row 1 is 2-col */
  .brand { grid-column: 1; justify-self: start; }
  .nav-cta { grid-column: 2; grid-row: 1; }
  /* keep nav reachable on mobile: full-width scrollable row, not hidden */
  .nav { justify-content: flex-start; margin-top: 10px; gap: 18px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 11px 0; }               /* ≥40px touch target on mobile */
  .footer-nav a { padding: 10px 0; }
  .back { display: inline-block; padding: 10px 0; }
  .hero-in { padding: 48px 24px 42px; }
  .hero-fig { max-width: 300px; margin-top: 28px; }
  .feed { padding: 40px 24px 20px; }
  .lead { padding: 24px 20px 22px; }
  .index-head { margin-top: 36px; }
  .index-link { flex-wrap: wrap; gap: 8px 16px; padding: 20px 12px 20px 10px; }
  .idx { min-width: 24px; }
  .index-meta { flex-direction: row; gap: 12px; text-align: left; width: 100%; padding-left: 40px; }
  .prose td, .prose th { padding-right: 10px; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

/* ── article images (hero + card thumbs) ─────────────────────────────── */
.lead-thumb { display:block; width:100%; height:220px; object-fit:cover; border:1px solid var(--line-2); border-radius:6px; margin:18px 0 20px; }
/* hero figure framed as a numbered exhibit plate */
.post-hero { margin: 8px auto 28px; border: 1px solid var(--line-2); background: var(--surface); padding: 10px 10px 0; border-radius: 8px; max-width: var(--prose); }
.post-hero img { display:block; width:100%; aspect-ratio:2/1; object-fit:cover; border:1px solid var(--line); border-radius:4px; }
.post-hero::after {
  content: "Exhibit — illustrative"; display: block; padding: 9px 2px 10px;
  font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
@media (max-width:640px){ .lead-thumb{ height:150px; } }
