/* ==========================================================================
   SCIENTIFIC — the hero (founder's artifact, 2026-09-30). Loaded after
   x-scientific.css, whose @font-face rules (SourceSerifX, KarlaX) it reuses.
   Rules only, no boxes, no radius, no motion; color appears only inside the
   figure. Classes are sch-* so nothing collides with the paper's sc-* rules;
   tokens are scoped to the hero.
   ========================================================================== */

.sch {
  --sch-paper: #FCFCFA; --sch-ink: #1E2226; --sch-ink-2: #555C63; --sch-rule: #C9CDD1; --sch-link: #2C6E8A;
  --sch-serif: "SourceSerifX", "Source Serif 4", Georgia, serif;
  --sch-sans: "KarlaX", "Helvetica Neue", Arial, sans-serif;
  --sch-fig-type: 13px;

  container-type: inline-size;
  display: block;
  background: var(--sch-paper); color: var(--sch-ink);
  font-family: var(--sch-serif);
  padding: 0 max(20px, 4cqi) 40px;
}
.sch * { box-sizing: border-box; }
.sch a { color: var(--sch-link); }
.sch :focus-visible { outline: 2px solid var(--sch-ink); outline-offset: 3px; }

/* In the page: full width of the page column, rising behind the empty top bar. */
.sc-page .sch { margin: calc(-3rem - var(--s2, 0.5rem)) calc(-1 * var(--s6, 2rem)) 0; }
@media (max-width: 60rem) { .sc-page .sch { margin-inline: calc(-1 * var(--s4, 1rem)); } }

/* ---------- Masthead = the mock nav: wordmark + this page's sections, numbered
   in reading order. Left-aligned so the site's action cluster keeps the right. */
.sch-mast {
  display: flex; align-items: center; gap: 36px;
  padding: 26px 0 16px; border-bottom: 2px solid var(--sch-ink);
  font-family: var(--sch-sans);
}
/* Wide screens: the masthead leads at the top and the action bar sits under its
   row, above the rule (founder, 2026-10-01: nav on top, the bar below). */
@media (min-width: 60.0625rem) { .sch-mast { padding-top: 22px; padding-bottom: 70px; } }
.sch .sch-mark { color: var(--sch-ink); text-decoration: none; font: 500 19px/1 var(--sch-sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.sch-toc ol { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.sch .sch-toc a { color: var(--sch-ink); text-decoration: none; font: 500 12px/1 var(--sch-sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.sch .sch-toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sch-toc b { font-weight: 500; font-variant-numeric: tabular-nums; margin-right: .7em; color: var(--sch-ink-2); }

/* ---------- Title block ---------- */
.sch-kind { margin: 34px 0 0; font: 500 12px/1.4 var(--sch-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sch-ink-2); }
.sch-title {
  margin: 18px 0 0; max-width: 15em;
  font: 600 clamp(38px, 6.6cqi, 80px)/1.02 var(--sch-serif); font-optical-sizing: auto;
  letter-spacing: -.025em;
}
.sch-dek { margin: 22px 0 0; max-width: 40em; font: 400 clamp(18px, 1.9cqi, 22px)/1.45 var(--sch-serif); color: var(--sch-ink-2); }
.sch-dek code { font-size: .85em; }
.sch-abstract { margin: 30px 0 0; max-width: 44em; font: 400 clamp(17px, 1.75cqi, 20px)/1.55 var(--sch-serif); }
.sch-abstract strong { font-weight: 600; }
.sch .sch-cite { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-variant-numeric: tabular-nums; }   /* not colour alone (WCAG 1.4.1) */
.sch .sch-cite:hover { text-decoration: underline; }

/* The control: a ruled label, no fill, instant. A checkbox, so it needs no script;
   it hides the hero's body text and the paper's body text below. */
.sch-bare-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sch-control {
  display: inline-block; margin: 24px 0 0; padding: 0 0 6px;
  border-bottom: 1px solid var(--sch-ink); color: var(--sch-ink); cursor: pointer;
  font: 500 13px/1.3 var(--sch-sans); letter-spacing: .02em;
}
.sch-bare-in:focus-visible + .sch-control { outline: 2px solid var(--sch-ink); outline-offset: 3px; }
.sch-on { display: none; }
.sch-bare-in:checked + .sch-control .sch-off { display: none; }
.sch-bare-in:checked + .sch-control .sch-on { display: inline; }
.sch:has(.sch-bare-in:checked) .sch-body { visibility: hidden; }
.sc-page:has(.sch-bare-in:checked) .sc-sec .sc-body { display: none; }

/* ---------- Fig. 1 ---------- */
.sch-fig { margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--sch-rule); }
.sch-plot {
  display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto auto;
  font: 400 var(--sch-fig-type)/1.3 var(--sch-sans); color: var(--sch-ink);
  max-width: 880px;
}
.sch-ylab { grid-row: 1; grid-column: 1; writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; margin-right: 12px; white-space: nowrap; }
.sch-yticks { grid-row: 1; grid-column: 2; position: relative; width: 26px; height: clamp(230px, 30cqi, 340px); }
.sch-yticks span { position: absolute; right: 11px; transform: translateY(50%); font-variant-numeric: tabular-nums; }
.sch-yticks span::after { content: ""; position: absolute; right: -8px; top: 50%; width: 6px; border-top: 1px solid var(--sch-ink); }
.sch-area {
  grid-row: 1; grid-column: 3; position: relative;
  border-left: 1.5px solid var(--sch-ink); border-bottom: 1.5px solid var(--sch-ink);
  display: grid; grid-template-columns: repeat(var(--k, 3), 1fr); align-items: end;
}
.sch-bar { position: relative; justify-self: center; width: min(96px, 56%); height: calc(var(--n) / var(--max) * 100%); }
.sch-bar--open { background: transparent; border: 1.5px solid var(--sch-ink); border-bottom: 0; }
.sch-bar output { position: absolute; bottom: 100%; left: 0; right: 0; padding-bottom: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.sch-xticks { grid-row: 2; grid-column: 3; display: grid; grid-template-columns: repeat(var(--k, 3), 1fr); padding-top: 10px; text-align: center; }
.sch-xticks span { padding: 0 6px; }
.sch-xlab { grid-row: 3; grid-column: 3; text-align: center; padding-top: 14px; }

.sch-cap { margin: 22px 0 0; max-width: 62em; font: 400 15px/1.55 var(--sch-sans); color: var(--sch-ink); }
.sch-cap strong { font-weight: 700; }
.sch .sch-data {
  display: inline-block; margin-top: 22px; padding-bottom: 6px;
  border-bottom: 1px solid var(--sch-ink); color: var(--sch-ink); text-decoration: none;
  font: 500 13px/1 var(--sch-sans); letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- Contents strip: cites the supplementary sections it opens ---------- */
.sch-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 44px 0 0; padding: 0; list-style: none; border-top: 1.5px solid var(--sch-ink);
}
.sch-strip li { padding: 22px 24px 6px; border-left: 1px solid var(--sch-rule); }
.sch-strip li:first-child { border-left: 0; padding-left: 0; }
.sch .sch-strip a { display: grid; grid-template-columns: 44px 1fr; row-gap: 12px; color: inherit; text-decoration: none; }
.sch-strip b { font: 500 12px/1.4 var(--sch-sans); letter-spacing: .1em; color: var(--sch-ink-2); font-variant-numeric: tabular-nums; }
.sch-strip span { font: 500 12px/1.4 var(--sch-sans); letter-spacing: .12em; text-transform: uppercase; }
.sch-strip p { grid-column: 2; margin: 0; font: 400 16px/1.45 var(--sch-serif); color: var(--sch-ink-2); }
.sch-strip a:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Narrow ---------- */
@container (max-width: 760px) {
  .sch-mast { flex-wrap: wrap; row-gap: 18px; }
  .sch-toc { flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .sch-toc ol { gap: 22px; }
  .sch-strip { grid-template-columns: 1fr; }
  .sch-strip li { border-left: 0; border-top: 1px solid var(--sch-rule); padding: 18px 0 14px; }
  .sch-strip li:first-child { border-top: 0; }
  .sch-xticks span { font-size: 12px; }
}

/* Tap area (audit 2026-10-01): the links were 11–16px tall. Padding grows
   the hit area, the matching negative margin keeps the line where it was. */
.sch .sch-toc a { padding-block: 10px; margin-block: -10px; }
