/*
 * paper-2026.css: page sheet for paper landing pages (first use:
 * cityscape-2024.html, built from cityscape-2024.qmd with _extensions/ern/paper).
 * Loads after ern-2026.css and adds only what the design system has no
 * component for. Tokens come from ern-2026.css; no new colours here.
 */

/* ─── Hero ─── */
.paper-hero { max-width: 74ch; }
.paper-hero h1 { font-size: 46px; }
.paper-hero h1 em { display: block; }
.jump { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ─── Stats (same pattern as the policy page's stat row) ─── */
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-bottom: 8px; }
.stat { border-top: 3px solid var(--ink); padding: 14px 2px 4px; }
.stat .v {
  font-size: 38px; font-weight: 650; line-height: 1.05; color: var(--ink);
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.stat .l { font-size: 13.5px; line-height: 1.45; color: var(--body); margin-top: 7px; }

/* ─── Two-column sections: text left, a list right ─── */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.split > * { min-width: 0; }
/* On wide screens the pipeline's heading and tool list stay in view while
   the five steps scroll past. */
@media (min-width: 1001px) {
  #pipeline .split > div:first-child { position: sticky; top: 110px; }
}
.split h2 { max-width: 18ch; }

h3 { color: var(--ink); }

/* The paper's sections, as a quiet numbered list on the tint */
.glance { background: var(--tint); border-top: 3px solid var(--ink); padding: 22px 26px 8px; margin-top: 30px; }
.glance h3 {
  font-size: 11px; font-weight: 800; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent-deep); margin: 0 0 14px;
}
.glance ol { list-style: none; counter-reset: g; margin: 0; padding: 0; }
.glance li {
  counter-increment: g; display: grid; grid-template-columns: 28px 1fr;
  column-gap: 6px; padding: 12px 0; border-top: 1px solid var(--rule);
  font-size: 14.5px; line-height: 1.5; color: var(--body);
}
.glance li::before {
  content: counter(g); grid-row: span 2;
  font-size: 13px; font-weight: 700; color: var(--accent-deep); font-variant-numeric: tabular-nums;
}
.glance li strong { color: var(--ink); font-weight: 600; }

/* ─── Contributions: six findings in a 3 × 2 grid ─── */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: 12px; }
.point { border-top: 1px solid rgba(25, 34, 44, 0.18); padding-top: 16px; }
.point h3 { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 0 0 10px; text-wrap: pretty; }
.point p { font-size: 14.5px; line-height: 1.65; color: var(--body); margin: 0; text-wrap: pretty; }
code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.92em;
  background: rgba(25, 34, 44, 0.06); border-radius: 3px; padding: 1px 5px;
}

/* ─── Pipeline ─── */
.pill-label { display: block; margin: 22px 0 10px; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.pills li {
  font-size: 13px; line-height: 1; color: var(--ink);
  border: 1px solid var(--rule); background: var(--paper);
  border-radius: 999px; padding: 8px 13px;
}
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li {
  counter-increment: s; position: relative;
  padding: 0 0 26px 58px; margin: 0;
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--ink); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
}
/* A hairline joins the numbered circles into one sequence */
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 42px; bottom: 4px;
  width: 1px; background: var(--rule);
}
.steps h3 { font-size: 17px; font-weight: 600; margin: 6px 0 6px; }
.steps p { font-size: 14.5px; line-height: 1.65; color: var(--body); margin: 0; text-wrap: pretty; }

/* ─── Findings table: rates shaded by value ─── */
.table-scroll { overflow-x: auto; margin-top: 28px; -webkit-overflow-scrolling: touch; }
.rates {
  width: 100%; max-width: 860px; border-collapse: collapse;
  font-size: 14.5px; font-variant-numeric: tabular-nums; background: var(--paper);
}
.rates caption {
  caption-side: top; text-align: left; padding-bottom: 12px;
  font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ink);
}
.rates th, .rates td { padding: 10px 14px; border-bottom: 1px solid var(--rule); text-align: left; }
.rates thead th {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid var(--ink);
}
.rates tbody th { font-weight: 500; color: var(--ink); white-space: nowrap; }
.rates .num { text-align: right; }
/* Tint by rate: 0% is white, 26% (the table's maximum) is about 40% red.
   Dark text on every cell keeps contrast well above AA. */
.rates td { background: rgba(249, 50, 43, calc(var(--v) / 26 * 0.4)); color: var(--ink); }
.rates .mark { color: var(--muted); margin-left: 1px; }
/* A rate resting on very few cases: white hatching over its tint, so the
   darkest cell in the table does not read as the firmest. */
.rates td.thin {
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0 3px, transparent 3px 8px);
}
.table-note { margin-top: 12px; max-width: 86ch; }

/* ─── Long-form reading sections ─── */
.longform { max-width: 820px; }
.longform h3 { font-size: 20px; font-weight: 600; margin: 34px 0 10px; }
.pull {
  margin: 30px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--accent);
}
.pull p { font-size: 20px; font-weight: 300; line-height: 1.55; color: var(--ink); margin: 0 0 10px; text-wrap: pretty; }
.pull cite { font-style: normal; font-size: 13px; color: var(--muted); }

/* ─── Policy context: a dated list ─── */
.laws { list-style: none; margin: 30px 0 0; padding: 0; }
.laws li {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px;
  padding: 18px 0; border-top: 1px solid rgba(25, 34, 44, 0.18);
}
.laws .year { font-size: 22px; font-weight: 300; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.laws h3 { font-size: 16.5px; font-weight: 600; margin: 0 0 4px; }
.laws p { font-size: 14.5px; line-height: 1.6; color: var(--body); margin: 0; }
.laws p.cite { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }

/* ─── Authors ─── */
.people { list-style: none; margin: 8px 0 24px; padding: 0; }
.people li { padding: 14px 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 2px; }
.people li:last-child { border-bottom: 1px solid var(--rule); }
.people strong { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.people span { font-size: 14.5px; color: var(--body); }
.acknowledgments { max-width: 82ch; }

/* ─── Responsive ─── */
@media (max-width: 1000px) {
  .statrow { grid-template-columns: 1fr 1fr; gap: 22px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .paper-hero h1 { font-size: 34px; }
  .points { grid-template-columns: 1fr; gap: 26px; }
  .pull p { font-size: 18px; }
}
@media (max-width: 560px) {
  .stat .v { font-size: 27px; }
  .laws li { grid-template-columns: 1fr; gap: 4px; }
  .rates { font-size: 13px; }
  .rates th, .rates td { padding: 8px 6px; }
  .rates thead th { font-size: 10px; letter-spacing: 0.04em; }
  .rates tbody th { white-space: normal; }
}
