/* Whitepaper layout: sticky contents on the left, one reading column on the right */
.wp { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 24px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14px; }
.toc .k, .doc > .k { display: block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ox); }
.toc ol { list-style: none; margin-top: 12px; counter-reset: s; }
.toc li { counter-increment: s; }
.toc a { display: block; padding: 6px 0 6px 12px; color: var(--dim); font-weight: 600; text-decoration: none; border-left: 2px solid var(--line); }
.toc a::before { content: counter(s, decimal-leading-zero) "  "; color: var(--faint); font-family: "DM Mono", monospace; font-weight: 400; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--ox); }
.doc { max-width: 760px; }
.doc h1 { font: italic 600 clamp(44px, 6vw, 72px)/1.02 "Newsreader", serif; letter-spacing: -.025em; margin: 10px 0 18px; }
.doc h1 em { color: var(--ox); }
.doc h2 { font: italic 600 clamp(30px, 3.6vw, 40px)/1.1 "Newsreader", serif; margin-bottom: 18px; scroll-margin-top: 24px; }
.doc h2 .n { font: 400 .45em "DM Mono", monospace; color: var(--faint); vertical-align: middle; margin-right: 12px; font-style: normal; }
.doc h3 { font: 700 22px/1.25 "Newsreader", serif; margin: 26px 0 8px; }
.doc p, .doc li { font-size: 17.5px; line-height: 1.65; color: var(--dim); }
.doc p { margin-bottom: 14px; }
.doc b { color: var(--ink); }
.doc ul, .doc ol.steps { padding-left: 22px; margin-bottom: 16px; }
.doc li { margin: 4px 0; }
.doc a { font-weight: 600; }
.doc section { padding: 34px 0 30px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.doc section:first-of-type { border-top: 0; }
.doc figure { margin: 6px 0 22px; }
.doc figure img { width: 100%; height: auto; display: block; border-radius: 16px; border: 1.5px solid var(--line); }
.doc .mono { overflow-wrap: anywhere; color: var(--ink); }
.doc .callout { margin: 0 0 18px; }
.doc .callout p { color: var(--bone); margin: 0; font-size: 18px; }
.doc .callout b, .doc .callout .mono { color: var(--bone); }
.doc .addr-list p { margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.tag { border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; background: var(--paper); border: 1.5px solid var(--line); }
.tag-ox { background: var(--ox); color: var(--bone); border-color: var(--ox); }
.formula { background: var(--ink); color: var(--bone); border-radius: 16px; padding: 18px 22px; margin: 6px 0 18px; font-size: 18px; line-height: 1.5; }
.formula em { font: 500 1em "DM Mono", monospace; color: var(--brass-hi); font-style: normal; }
.nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 920px) {
  .wp { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .toc { position: static; margin-bottom: 8px; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
  .toc a { border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--paper); }
  .toc a::before { content: none; }
  .doc p, .doc li { font-size: 16.5px; }
}
