/* ==========================================================================
   styles.css — hand-written, no framework.
   Light and dark are chosen separately rather than inverted: the dark palette
   is warmer and lower-contrast than a flipped light palette would be.
   Accent is the teal off the jacket in the photo.
   ========================================================================== */

:root {
  --page:        #fbfbf9;
  --surface:     #ffffff;
  --surface-2:   #f4f4f0;
  --ink:         #14171a;
  --ink-2:       #454d54;
  --muted:       #767f86;
  --rule:        #e6e5df;
  --rule-strong: #d3d2ca;
  --accent:      #0e7c70;
  --accent-ink:  #0a6459;
  --accent-soft: #e2f1ee;
  --shadow:      0 1px 2px rgba(20,23,26,.05), 0 6px 18px -10px rgba(20,23,26,.18);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 46rem;
  --wide: 64rem;
  --r: 12px;
}

:root[data-theme="dark"] {
  --page:        #101318;
  --surface:     #171b22;
  --surface-2:   #1e232c;
  --ink:         #e9ecf1;
  --ink-2:       #aab3bf;
  --muted:       #7b8592;
  --rule:        #262c36;
  --rule-strong: #39414e;
  --accent:      #4fd1c5;
  --accent-ink:  #5fded1;
  --accent-soft: #16302e;
  --shadow:      0 1px 2px rgba(0,0,0,.35), 0 8px 22px -12px rgba(0,0,0,.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page:        #101318;
    --surface:     #171b22;
    --surface-2:   #1e232c;
    --ink:         #e9ecf1;
    --ink-2:       #aab3bf;
    --muted:       #7b8592;
    --rule:        #262c36;
    --rule-strong: #39414e;
    --accent:      #4fd1c5;
    --accent-ink:  #5fded1;
    --accent-soft: #16302e;
    --shadow:      0 1px 2px rgba(0,0,0,.35), 0 8px 22px -12px rgba(0,0,0,.6);
  }
}

/* ---------- base ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-color: color-mix(in oklab, var(--accent) 40%, transparent);
    text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface); padding: .7rem 1rem; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -.018em; margin: 0; }
p { margin: 0 0 1.1rem; }

.eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .55rem;
}
.lede { font-size: 1.12rem; color: var(--ink-2); line-height: 1.6; }
.dot { color: var(--rule-strong); margin: 0 .45rem; }

/* ---------- header -------------------------------------------------------- */

header.site {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1.2rem;
  padding: .7rem 1.4rem;
  background: color-mix(in oklab, var(--page) 88%, transparent);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--mono); font-size: .95rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -.02em;
}
.wordmark::before { content: "~/"; color: var(--muted); }
.mainnav { display: flex; gap: .3rem; margin-right: auto; }
.mainnav a {
  color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: .35rem .65rem; border-radius: 8px;
}
.mainnav a:hover { background: var(--surface-2); color: var(--ink); }
.mainnav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.hdr-right { display: flex; align-items: center; gap: .15rem; }
.socials { display: flex; gap: .1rem; }
.socials a, .themebtn {
  display: grid; place-items: center; width: 2rem; height: 2rem;
  color: var(--muted); border-radius: 8px; background: none; border: 0; padding: 0; cursor: pointer;
}
.socials a:hover, .themebtn:hover { background: var(--surface-2); color: var(--ink); }
.socials svg, .themebtn svg { width: 1.05rem; height: 1.05rem; }

/* ---------- layout -------------------------------------------------------- */

main { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.4rem 4rem; min-width: 0; }
main.home, main.listing { max-width: var(--wide); }

.band { margin: 3.6rem 0 0; }
.sec {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 0 0 1.1rem;
}
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.sec-row .sec { margin: 0; }
.more { font-size: .88rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* ---------- hero ---------------------------------------------------------- */

.hero { display: flex; gap: 2.2rem; align-items: flex-start; }
/* A cut-out illustration, so no frame of any kind: no circle, no border, no
   card behind it. It sits directly on the page and keeps its own proportions. */
.hero-side { flex: none; width: 210px; display: flex; flex-direction: column; gap: 1rem; }

/* identity block under the photo: where I am, and where to find me */
.idlinks { list-style: none; margin: 0; padding: 0; }
.idlinks li {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: .2rem 0; font-size: .82rem; line-height: 1.45; color: var(--ink-2);
}
.idlinks svg { width: .95rem; height: .95rem; flex: none; margin-top: .2rem; color: var(--muted); }
.idlinks a { color: var(--ink-2); text-decoration: none; }
.idlinks a:hover { color: var(--accent-ink); text-decoration: underline; }
.idlinks li:hover svg { color: var(--accent); }

.avatar {
  width: 100%; height: auto;
  /* the artwork is cropped mid-jacket, so without this it ends in a hard
     horizontal line. Fading the last sliver lets it dissolve into the page
     in either theme. Delete these two lines to get the straight edge back. */
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 84%, transparent 99%);
}
.hero-text { min-width: 0; }
.hero h1 { font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 2.5rem); margin-bottom: .7rem; }
.hero .intro p { color: var(--ink-2); }
/* the three emphasised phrases in the hero are underlined as well as bold.
   Scoped to .hero so <strong> stays plain everywhere else. */
.hero strong {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, var(--accent) 60%, transparent);
}
.hero .intro p:last-child { margin-bottom: 0; }
.hero-cta { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.btn {
  display: inline-block; padding: .55rem 1.1rem; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: .92rem; font-weight: 600; border: 1px solid transparent;
}
:root[data-theme="dark"] .btn:not(.ghost) { color: #06241f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.ghost) { color: #06241f; } }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }

/* ---------- cards --------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: .9rem; }
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 1.1rem 1.2rem 1rem; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--rule-strong); }
.card-link { text-decoration: none; color: inherit; }
.card h3 { font-family: var(--serif); font-size: 1.12rem; margin-bottom: .4rem; }
.card-link:hover h3 { color: var(--accent-ink); }
.card-sum { color: var(--ink-2); font-size: .92rem; margin-bottom: .8rem; }
.card-meta {
  margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem;
  font-family: var(--mono); font-size: .74rem; color: var(--muted);
}
.card-meta a { text-decoration: none; font-weight: 600; }
.card-meta a:hover { text-decoration: underline; }
.card.proj .chips { margin-bottom: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip {
  font-family: var(--mono); font-size: .7rem; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 5px; padding: .1rem .4rem;
}

.tag {
  font-family: var(--mono); font-size: .72rem; text-decoration: none;
  color: var(--accent-ink); background: var(--accent-soft);
  border-radius: 5px; padding: .12rem .45rem;
}
.tag:hover { filter: brightness(.97); text-decoration: none; }
.tag span { color: var(--muted); }
.tagrow { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }

/* ---------- empty state -------------------------------------------------- */

.emptystate {
  border: 1px dashed var(--rule-strong); border-radius: var(--r);
  padding: 1.4rem 1.5rem; background: var(--surface-2);
  color: var(--ink-2); font-size: .95rem; max-width: 40rem;
}
.emptystate p { margin: 0; }

/* ---------- natural units converter -------------------------------------- */

.nuc { font-size: .95rem; }
.nuc .small { font-size: .82rem; }
.nuc .mono { font-family: var(--mono); font-size: .85em; }
.nuc-sysrow { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .7rem; }
.nuc-systems { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 10px; overflow: hidden; }
.nuc-systems button {
  border: 0; background: var(--surface); color: var(--ink-2); cursor: pointer;
  padding: .45rem .95rem; font-size: .88rem; font-weight: 600;
}
.nuc-systems button + button { border-left: 1px solid var(--rule); }
.nuc-systems button[aria-pressed="true"] { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .nuc-systems button[aria-pressed="true"] { color: #06241f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nuc-systems button[aria-pressed="true"] { color: #06241f; }
}

.nuc-input {
  width: 100%; border: 1px solid var(--rule-strong); border-radius: var(--r);
  background: var(--surface); color: var(--ink);
  font-family: var(--mono); font-size: 1.05rem; padding: .85rem 1rem;
}
.nuc-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.nuc-input.small { font-size: .9rem; padding: .55rem .8rem; margin-top: .6rem; }
.nuc-input::placeholder { color: var(--muted); }

.nuc-reads {
  display: flex; align-items: center; gap: .7rem; overflow-x: auto;
  background: var(--surface-2); border: 1px solid var(--rule); border-top: 0;
  border-radius: 0 0 var(--r) var(--r); padding: .5rem 1rem; min-height: 2.4rem;
}
.nuc-reads-label { flex: none; font-size: .66rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); }

.nuc-resultbox {
  margin-top: 1rem; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 1.1rem 1.2rem; min-height: 5rem; box-shadow: var(--shadow);
}
.nuc-value-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.nuc-value { font-size: 1.65rem; color: var(--ink); overflow-x: auto; }
.nuc-info { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: .7rem; padding-top: .55rem;
  border-top: 1px solid var(--rule); font-size: .8rem; color: var(--muted); }
.nuc-conv { color: var(--accent-ink); font-weight: 600; }
.nuc-err { color: var(--critical, #d03b3b); font-family: var(--mono); font-size: .9rem; margin: 0; }

.nuc-copyrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--ink-2); }
.nuc-copyrow label { display: flex; align-items: center; gap: .4rem; font-weight: 600; }
.nuc-copyrow input[type=number] { width: 3.4rem; text-align: center; font-family: var(--mono);
  border: 1px solid var(--rule-strong); border-radius: 7px; background: var(--surface);
  color: var(--ink); padding: .2rem; }
.nuc-copyrow input[type=checkbox] { accent-color: var(--accent); }
.nuc-copyrow code { flex: 1 1 10rem; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; background: var(--surface-2); border: 1px solid var(--rule);
  border-radius: 7px; padding: .3rem .55rem; font-family: var(--mono); }

.nuc-btn {
  border: 1px solid var(--rule-strong); border-radius: 7px; background: none;
  color: var(--ink-2); font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .25rem .6rem; cursor: pointer; flex: none;
}
.nuc-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.nuc-btn.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .nuc-btn.solid { color: #06241f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nuc-btn.solid { color: #06241f; }
}

.nuc-head { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .5rem; }
.nuc-usedbox { margin-top: 1rem; background: var(--surface-2); border: 1px solid var(--rule);
  border-radius: var(--r); padding: .9rem 1.2rem; }
.nuc-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .2rem 1rem; padding: .4rem 0; border-bottom: 1px solid var(--rule); font-size: .88rem; }
.nuc-row:last-child { border-bottom: 0; }
.nuc-sym { font-family: var(--mono); font-weight: 700; color: var(--accent-ink);
  background: none; border: 0; padding: 0; }
.nuc-cite { font-size: .72rem; white-space: nowrap; text-decoration-style: dotted; }

.nuc-fold { margin-top: 1rem; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--surface); padding: 0 1.2rem; }
.nuc-fold > summary { cursor: pointer; padding: .8rem 0; font-size: .8rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.nuc-fold > :last-child { margin-bottom: 1rem; }
.nuc-histlist { list-style: none; margin: .4rem 0 0; padding: 0; }
.nuc-hist { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; width: 100%;
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule);
  padding: .45rem 0; cursor: pointer; color: var(--ink); }
.nuc-hist:hover { background: var(--surface-2); }
.nuc-hist .ok { color: var(--good-text, #0a7a3d); }
.nuc-hist .bad { color: var(--critical, #d03b3b); }
.nuc-tag { font-family: var(--mono); font-size: .62rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--rule-strong); border-radius: 5px; padding: .05rem .35rem; }

.nuc-lookup { margin-top: 1.6rem; }
.nuc-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.nuc-chip { border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface);
  color: var(--ink-2); font-size: .8rem; padding: .25rem .75rem; cursor: pointer; }
.nuc-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .nuc-chip[aria-pressed="true"] { color: #06241f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nuc-chip[aria-pressed="true"] { color: #06241f; }
}
.nuc-ent { margin-top: .7rem; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--surface); padding: .9rem 1.2rem; }
.nuc-ent-head { font-size: 1.02rem; }
.nuc-plabel { flex: 0 0 8rem; }
.nuc-pval { flex: 1; min-width: 8rem; }

.nuc-refcols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 1rem; }
@media (max-width: 720px) { .nuc-refcols { grid-template-columns: 1fr; } }

/* ---------- arxiv watcher ------------------------------------------------ */

.axw-customrow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .7rem; }
.axw-customrow[hidden] { display: none; }   /* display:flex beats the UA's [hidden] rule */
.axw-customrow label { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--ink-2); }
.axw-customrow .nuc-input { width: 9rem; margin-top: 0; }
.axw-addrow { display: flex; gap: .5rem; align-items: center; }
.axw-addrow .nuc-input { margin-top: 0; flex: 1; }
.axw-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.axw-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--accent-soft); color: var(--accent-ink);
  border-radius: 999px; padding: .22rem .4rem .22rem .75rem;
  font-size: .84rem; font-weight: 500;
}
.axw-x {
  border: 0; background: none; cursor: pointer; color: var(--accent-ink);
  font-size: 1rem; line-height: 1; padding: 0 .3rem; border-radius: 50%;
}
.axw-x:hover { background: color-mix(in oklab, var(--accent) 25%, transparent); }
.axw-go { margin-top: 1.4rem; border: 0; cursor: pointer; font-family: var(--sans); }
#axw-status { margin-top: .8rem; }
.axw-paper { padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.axw-paper:last-child { border-bottom: 0; }
.axw-title { margin: 0 0 .2rem; font-size: .98rem; font-weight: 600; line-height: 1.45; }
.axw-title a { color: var(--ink); text-decoration: none; }
.axw-title a:hover { color: var(--accent-ink); text-decoration: underline; }
.axw-meta { margin: 0; font-size: .8rem; color: var(--muted); }
.axw-cat { font-family: var(--mono); font-size: .72rem; color: var(--accent-ink);
  background: var(--accent-soft); border-radius: 5px; padding: .05rem .4rem; margin-left: .3rem; }
.axw-when { font-family: var(--mono); font-size: .72rem; margin-left: .3rem; }
.axw-abs { margin-top: .35rem; }
.axw-abs summary { cursor: pointer; font-size: .78rem; color: var(--muted); }
.axw-abs p { font-size: .86rem; color: var(--ink-2); margin: .4rem 0 0; }

/* ---------- boxed section bands (physics page) --------------------------- */

.boxtitle {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: var(--r); padding: .75rem 1.2rem; margin: 3rem 0 1.4rem;
  box-shadow: var(--shadow);
}

/* ---------- listing / page heads ------------------------------------------ */

.pagehead { margin-bottom: 2.4rem; }
.pagehead h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4.5vw, 2.3rem); margin-bottom: .6rem; }
.year {
  font-family: var(--mono); font-size: .8rem; color: var(--muted); font-weight: 500;
  margin: 2.2rem 0 .9rem; padding-bottom: .4rem; border-bottom: 1px solid var(--rule);
}

/* ---------- article ------------------------------------------------------- */

.posthead { margin-bottom: 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--rule); }
.posthead h1 { font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 2.45rem); margin-bottom: .7rem; }

.toc {
  background: var(--surface-2); border-radius: var(--r); padding: 1rem 1.2rem;
  margin-bottom: 2rem; border: 1px solid var(--rule);
}
.toc-h { font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .5rem; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { padding: .12rem 0; font-size: .9rem; }
.toc li.lvl3 { padding-left: 1rem; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }

.prose { font-size: 1.05rem; }
.prose h2 {
  font-family: var(--serif); font-size: 1.55rem; margin: 2.6rem 0 .9rem; scroll-margin-top: 5rem;
}
.prose h3 { font-size: 1.15rem; margin: 2rem 0 .7rem; scroll-margin-top: 5rem; }
.prose > p:first-child { font-size: 1.1rem; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose li > ul, .prose li > ol { margin: .45rem 0 0; }
.prose img { border-radius: var(--r); margin: 1.6rem 0; border: 1px solid var(--rule); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.6rem 0; }

.anchor {
  color: var(--rule-strong); text-decoration: none; margin-left: .45rem;
  opacity: 0; font-weight: 400;
}
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }

.prose blockquote {
  margin: 1.6rem 0; padding: .2rem 0 .2rem 1.2rem;
  border-left: 3px solid var(--accent); color: var(--ink-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose code {
  font-family: var(--mono); font-size: .875em;
  background: var(--surface-2); border: 1px solid var(--rule);
  border-radius: 5px; padding: .08em .32em;
}

.codeblock { position: relative; margin: 1.6rem 0; }
.codeblock pre {
  margin: 0; overflow-x: auto; background: var(--surface-2);
  border: 1px solid var(--rule); border-radius: var(--r); padding: 1rem 1.1rem;
  line-height: 1.6;
}
.codeblock code {
  font-family: var(--mono); font-size: .855rem; background: none; border: 0; padding: 0;
  color: var(--ink);
}
.codelang {
  position: absolute; top: .5rem; right: .7rem; z-index: 1;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.tok-kw  { color: #9333ea; font-weight: 500; }
.tok-str { color: #0f766e; }
.tok-com { color: var(--muted); font-style: italic; }
.tok-num { color: #b45309; }
:root[data-theme="dark"] .tok-kw  { color: #c99bf5; }
:root[data-theme="dark"] .tok-str { color: #6fd7c4; }
:root[data-theme="dark"] .tok-num { color: #e0a860; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tok-kw  { color: #c99bf5; }
  :root:not([data-theme="light"]) .tok-str { color: #6fd7c4; }
  :root:not([data-theme="light"]) .tok-num { color: #e0a860; }
}

.tablewrap { overflow-x: auto; margin: 1.6rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.postnav {
  display: grid; grid-template-columns: 1fr 1fr; gap: .9rem;
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--rule);
}
.pn {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
  border: 1px solid var(--rule); border-radius: var(--r); padding: .8rem 1rem; background: var(--surface);
}
.pn:hover { border-color: var(--rule-strong); }
.pn span { display: block; font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-bottom: .25rem; }
.pn.next { text-align: right; }

/* ---------- footer -------------------------------------------------------- */

footer.site {
  border-top: 1px solid var(--rule); margin-top: 4rem;
  padding: 2rem 1.4rem 3rem;
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  max-width: var(--wide); margin-inline: auto; flex-wrap: wrap;
}
.foot-name { font-weight: 600; margin: 0 0 .2rem; font-size: .95rem; }
.foot-note { color: var(--muted); font-size: .85rem; margin: 0; }
.foot-links { display: flex; gap: .1rem; }

/* ---------- narrow -------------------------------------------------------- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  header.site { gap: .7rem; padding: .6rem .9rem; flex-wrap: wrap; }
  .mainnav { order: 3; width: 100%; margin: 0; }
  .mainnav a { padding: .3rem .5rem; font-size: .88rem; }
  .hdr-right { margin-left: auto; }
  main { padding: 2rem 1.1rem 3rem; }
  .hero { flex-direction: column; gap: 1.3rem; }
  .hero-side { width: 100%; }
  .avatar { width: 150px; }
  .postnav { grid-template-columns: 1fr; }
  .pn.next { text-align: left; }
  .cards { grid-template-columns: 1fr; }
}

@media print {
  header.site, footer.site, .toc, .postnav, .hero-cta { display: none; }
  body { background: #fff; color: #000; }
  main { max-width: none; }
}

/* ---------- arXiv stats tool ---------------------------------------------- */
/* Charts of arXiv submissions by field, month and topic (/tools/arxiv-stats/).
   Everything is scoped to .axs; the chart code is assets/tools/arxiv_stats.js and
   the data are assets/tools/arxiv_stats*.data.js — all copied from the arXivTrends
   project (see the .js header). --s1..--s7 are a colourblind-safe series set. */

main.tool { max-width: var(--wide); }
.post-page .posthead .lede p { margin: 0 0 .6rem; }
.post-page .posthead .lede p:last-child { margin-bottom: 0; }

:root {
  --context: #d9dbd7;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #4a3aa7; --s7: #e34948;
}
:root[data-theme="dark"] {
  --context: #2e3540;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #9085e9; --s7: #e66767;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --context: #2e3540;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #9085e9; --s7: #e66767;
  }
}

.axs .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 1.6rem 0 .6rem; }
.axs .seg { display: inline-flex; padding: 2px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface); }
.axs .seg button { border: 0; background: none; padding: 4px 13px; border-radius: 999px; font: inherit; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.axs .seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
/* instant hover/focus description for the controls that need one */
.axs [data-hint] { position: relative; }
.axs [data-hint]:hover::after, .axs [data-hint]:focus-visible::after {
  content: attr(data-hint); position: absolute; top: calc(100% + 8px); left: 0; z-index: 5;
  width: max-content; max-width: 17rem; padding: 6px 9px; pointer-events: none;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink);
  font-size: .8rem; font-weight: 400; line-height: 1.4; text-align: left; white-space: normal;
}
.axs .add { min-width: 14rem; padding: 5px 13px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface); font: inherit; font-size: .86rem; color: var(--ink); }
/* sizing only: the buttons carry .ghost, so the site's .btn.ghost sets colour, background and border */
.axs .btn { padding: 5px 13px; border: 1px solid var(--rule-strong); border-radius: 999px; font: inherit; font-size: .86rem; cursor: pointer; }
.axs .btn:hover, .axs .chip:hover { border-color: var(--muted); }

.axs .legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 32px; }
.axs .chip { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px 2px 9px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface); font-size: .86rem; color: var(--ink); cursor: pointer; }
.axs .chip i { width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.axs .chip .x { color: var(--muted); }
.axs .msg { font-size: .86rem; color: var(--ink-2); }

.axs figure { position: relative; margin: .5rem 0 0; padding: 10px 6px 4px 2px; }
.axs .fig-title { margin: 2.4rem 0 .1rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.25; text-wrap: balance; }
/* "A few things to look for" gets its own heading class, so the contents list (built from .fig-title) skips it */
.axs .lookfor { margin: 0 0 1.8rem; }
.axs .lookfor h2 { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.axs .lookfor ul { margin: 0; padding-left: 1.2rem; }
.axs .lookfor li { margin: .4rem 0; color: var(--ink-2); line-height: 1.6; }
.axs .lookfor li b { color: var(--ink); font-weight: 600; }
.axs .lookfor p { margin: .7rem 0 0; color: var(--ink-2); }
.axs svg { display: block; -webkit-user-select: none; user-select: none; }
.axs svg text { font-family: var(--sans); }
.axs .frame { fill: none; stroke: var(--ink); stroke-width: 2; shape-rendering: crispEdges; }
.axs .grid { stroke: var(--rule); stroke-width: 1; }
.axs .tick { font-size: 12.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.axs .ylab { font-size: 12.5px; fill: var(--muted); }
.axs .credit { font-size: 12px; fill: var(--muted); }
.axs .credit a tspan { fill: var(--ink-2); }
.axs .credit a:hover tspan { text-decoration: underline; }
.axs .ctx { fill: none; stroke: var(--context); stroke-width: 1; }
.axs .hl { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.axs .hover { fill: none; stroke: var(--ink-2); stroke-width: 1.75; }
/* all-of-arXiv line: solid ink on a page-coloured casing so it separates from the lines behind it */
.axs .total-case { fill: none; stroke: var(--page); stroke-width: 6; stroke-linejoin: round; }
.axs .total { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.axs .lab { font-size: 13px; font-weight: 600; fill: var(--ink); }
.axs .halo { paint-order: stroke; stroke: var(--page); stroke-width: 4px; stroke-linejoin: round; }
.axs .note { stroke: var(--muted); stroke-dasharray: 3 3; }
.axs .note-t { font-size: 12px; fill: var(--muted); }
.axs .note-g { opacity: .3; transition: opacity .15s; }
.axs .note-g.on { opacity: 1; }
.axs .note-g.on .note { stroke: var(--ink-2); }
.axs .note-g.on .note-t { fill: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .axs .note-g { transition: none; } }
.axs .cross { stroke: var(--rule-strong); }
.axs .brush { fill: var(--accent); fill-opacity: .12; stroke: var(--accent); stroke-opacity: .6; }
.axs .zoom-t { font-size: 12px; fill: var(--muted); }
.axs .dl-row { display: flex; justify-content: flex-end; margin-top: 4px; }  /* right edge set to the plot frame in draw() */
.axs .dl { padding: 3px 11px; font-size: .8rem; }

.axs .tip { position: absolute; top: 0; left: 0; min-width: 170px; padding: 8px 11px; background: var(--surface); border: 1.5px solid var(--ink); font-size: .84rem; line-height: 1.5; pointer-events: none; font-variant-numeric: tabular-nums; z-index: 4; }
.axs .tip .when { font-weight: 600; margin-bottom: 2px; }
.axs .tip .avg { font-weight: 400; color: var(--muted); }
.axs .tip .row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; }
.axs .tip .row.on { font-weight: 600; }
.axs .tip .sw { width: 12px; height: 3px; border-radius: 2px; background: var(--c); }
.axs .tip .hint { margin-top: 3px; color: var(--muted); font-size: .78rem; }

/* table of contents and usage note */
.axs .toc { max-width: 46rem; margin: 1.4rem 0 0; padding: 12px 18px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); }
.axs .toc-h { margin: 0 0 4px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.axs .toc ol { margin: 0; padding-left: 1.3em; columns: 2 19rem; column-gap: 32px; font-size: .92rem; }
.axs .toc li { break-inside: avoid; margin: 2px 0; }
.axs .toc a { color: var(--ink-2); text-decoration: none; }
.axs .toc a:hover { color: var(--ink); text-decoration: underline; }
.axs .fig-title { scroll-margin-top: 16px; }
.axs .how-to { max-width: 46rem; margin: 1.1rem 0 0; font-size: .86rem; color: var(--ink-2); }

/* figures added after the two line charts */
.axs .season-hover { fill: none; stroke: var(--ink); stroke-width: 1.5; pointer-events: none; }
.axs .explain { max-width: 46rem; margin: 8px 0 0; font-size: .92rem; color: var(--ink-2); }
.axs .explain p { margin: 0 0 8px; }
.axs .explain b { color: var(--ink); font-weight: 600; }
.axs .explain .formula { margin: 12px 0; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); text-align: center; }
.axs .explain .formula .sep { margin: 0 1.2em; font-family: var(--sans); font-size: .86rem; color: var(--muted); }
.axs .conc-fields { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.axs .conc-fields .chip[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; border-style: dashed; background: none; }
.axs .conc-alt { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.axs .rk path { fill: none; stroke: var(--muted); stroke-opacity: .45; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.axs .rk circle { fill: var(--muted); fill-opacity: .6; }
.axs .rk.on path { stroke: var(--c); stroke-opacity: 1; stroke-width: 3; }
.axs .rk.on circle { fill: var(--c); fill-opacity: 1; }
.axs .rk.hov:not(.on) path { stroke: var(--ink); stroke-opacity: 1; stroke-width: 3; }
.axs .rk.hov:not(.on) circle { fill: var(--ink); fill-opacity: 1; }
.axs .rk-lab { font-size: 12.5px; fill: var(--ink-2); }
.axs .rk-lab.on { fill: var(--ink); font-weight: 600; }
.axs .dbl-bar { fill: var(--accent); }
.axs .dbl-bar.neg { fill: var(--muted); }
.axs .dbl-val { font-size: 12.5px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.axs .dbl-hov { fill: var(--surface-2); }
.axs .tm-bar { fill: var(--accent); }
.axs svg text.xl-small { font-size: 10px; }   /* matrix and topic labels on a phone */
.axs svg text.tw-phone { font-size: 9px; }

@media (max-width: 560px) {
  .axs .add { min-width: 0; flex: 1; }
}

/* ---------- LZ simulation post (/blog/lz-simulated-response/) ----------------------------------------
   Scoped to .lzs. Source of truth: this file; the draft lived in ~/Dropbox/LZ/blog_draft. --muted is
   darkened here only, to pass WCAG AA for small text; the same values could replace the site tokens. */
.lzs { --muted:#687077; }
:root[data-theme="dark"] .lzs { --muted:#848e9b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lzs { --muted:#848e9b; } }
/* ---------- new for this post: tiles and charts --------------------------- */

.lzs td.num, .lzs th.num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.lzs td b { font-weight:600; }
.lzs .draftnote { font-size:.86rem; color:var(--ink-2); background:var(--surface-2); border:1px dashed var(--rule-strong);
  border-radius:var(--r); padding:.7rem 1rem; margin:0 0 2rem; }
.lzs .tiles { display:grid; grid-template-columns:repeat(4, 1fr); gap:.7rem; margin:1.8rem 0 2.2rem; }
.lzs .tile { background:var(--surface); border:1px solid var(--rule); border-radius:var(--r); padding:.8rem .9rem .75rem; }
.lzs .tile-v { font-family:var(--serif); font-size:1.75rem; font-weight:600; line-height:1.1; color:var(--ink); font-variant-numeric:tabular-nums; }
.lzs .tile-v small { font-size:.95rem; color:var(--muted); font-weight:500; }
.lzs .tile-l { font-size:.8rem; line-height:1.4; color:var(--ink-2); margin-top:.35rem; }
@media (max-width: 720px) { .lzs .tiles { grid-template-columns:1fr 1fr; } }

.lzs figure.chart { position:relative; margin:1.8rem 0 2rem; }
.lzs .fig-title { font-family:var(--serif); font-size:1.12rem; font-weight:600; line-height:1.3; margin:0 0 .15rem; color:var(--ink); }
.lzs .fig-sub { font-size:.84rem; color:var(--muted); margin:0 0 .5rem; line-height:1.45; }
.lzs .legend { display:flex; flex-wrap:wrap; gap:.25rem 1rem; margin:.3rem 0 .2rem; font-size:.82rem; color:var(--ink-2); }
.lzs .legend span { display:inline-flex; align-items:center; gap:.4rem; }
.lzs .legend i { display:inline-block; width:12px; height:12px; border-radius:3px; background:var(--c); }
.lzs .legend i.line { height:3px; width:16px; border-radius:2px; }
.lzs .legend i.ring { width:11px; height:11px; border-radius:50%; background:none; border:2px solid var(--muted); }
.lzs .legend i.diam { width:10px; height:10px; border-radius:1px; transform:rotate(45deg); background:var(--s2); }
.lzs .legend i.bar { width:18px; height:3px; border-radius:2px; background:var(--s1); position:relative; }
.lzs .legend i.bar::after { content:""; position:absolute; left:5px; top:-3.5px; width:9px; height:9px; border-radius:50%; background:var(--s1); }
.lzs svg.plot { display:block; width:100%; overflow:visible; -webkit-user-select:none; user-select:none; }
.lzs svg text { font-family:var(--sans); }
.lzs .grid { stroke:var(--rule); stroke-width:1; shape-rendering:crispEdges; }
.lzs .axis { stroke:var(--rule-strong); stroke-width:1; shape-rendering:crispEdges; }
.lzs .tick { font-size:12px; fill:var(--muted); font-variant-numeric:tabular-nums; }
.lzs .axlab { font-size:12px; fill:var(--muted); }
.lzs .rowlab { font-size:12.5px; fill:var(--ink-2); }
.lzs .rowlab.b { fill:var(--ink); font-weight:600; }
.lzs .val { font-size:12px; fill:var(--ink-2); font-variant-numeric:tabular-nums; }
.lzs .grp { font-size:11px; fill:var(--muted); font-weight:600; letter-spacing:.07em; text-transform:uppercase; }
.lzs .halo { paint-order:stroke; stroke:var(--page); stroke-width:4px; stroke-linejoin:round; }
.lzs .hit { fill:transparent; cursor:default; }
.lzs .hov { fill:var(--surface-2); }
.lzs .cross { stroke:var(--rule-strong); stroke-width:1; }
.lzs .tip { position:absolute; top:0; left:0; z-index:5; min-width:9rem; max-width:17rem; padding:7px 10px; pointer-events:none;
  background:var(--surface); color:var(--ink); border:1.5px solid var(--ink); font-size:.8rem; line-height:1.45; font-variant-numeric:tabular-nums; }
.lzs .tip b { font-weight:600; }
.lzs .tip .m { color:var(--muted); }
.lzs details.data { margin-top:.4rem; font-size:.85rem; }
.lzs details.data summary { cursor:pointer; color:var(--muted); font-size:.8rem; }
.lzs details.data .tablewrap { margin:.6rem 0 0; }
.lzs details.data table { font-size:.82rem; }

/* ---------- catalogs and comparison ------------------------------------- */
.lzs .filters { display:flex; flex-wrap:wrap; gap:.4rem .5rem; align-items:center; margin:1rem 0 .4rem; }
.lzs .chipbtn { font:inherit; font-size:.76rem; font-family:var(--mono); border:1px solid var(--rule-strong); background:var(--surface);
  color:var(--ink-2); border-radius:999px; padding:.14rem .6rem; cursor:pointer; }
.lzs .chipbtn[aria-pressed="true"] { background:var(--accent-soft); color:var(--accent-ink); border-color:transparent; font-weight:600; }
.lzs .chipbtn span { color:var(--muted); font-weight:400; margin-left:.25rem; }
.lzs .search { flex:1 1 12rem; min-width:0; font:inherit; font-size:.88rem; padding:.35rem .8rem; border:1px solid var(--rule-strong);
  border-radius:999px; background:var(--surface); color:var(--ink); }
.lzs select.search { flex:0 1 auto; }
.lzs .count { font-size:.8rem; color:var(--muted); margin:.2rem 0 .6rem; }
.lzs .cat { border-top:1px solid var(--rule); }
.lzs details.pc { border-bottom:1px solid var(--rule); }
.lzs details.pc { scroll-margin-top:5rem; }
.lzs details.pc.flash { animation:lzs-flash 1.6s ease-out; }
@keyframes lzs-flash { from { background:var(--accent-soft); } to { background:transparent; } }
@media (prefers-reduced-motion: reduce) { .lzs details.pc.flash { animation:none; outline:2px solid var(--accent); } }
.lzs details.pc > summary { list-style:none; cursor:pointer; padding:.6rem .1rem; display:grid; grid-template-columns:auto 1fr; gap:.1rem .7rem; align-items:baseline; }
.lzs details.pc > summary::-webkit-details-marker { display:none; }
.lzs details.pc > summary:hover .pt { color:var(--accent-ink); }
.lzs .pid { font-family:var(--mono); font-size:.74rem; color:var(--muted); white-space:nowrap; }
.lzs .pt { font-size:.95rem; font-weight:600; line-height:1.4; color:var(--ink); }
.lzs .pm { grid-column:2; font-size:.76rem; color:var(--muted); display:flex; flex-wrap:wrap; gap:.3rem .5rem; align-items:center; }
.lzs .pm .tag { font-size:.68rem; padding:.05rem .4rem; }
.lzs .pline { grid-column:2; font-size:.88rem; color:var(--ink-2); line-height:1.5; }
.lzs .pb { padding:.1rem .1rem .9rem; font-size:.9rem; color:var(--ink-2); line-height:1.55; }
.lzs .pb p { margin:.35rem 0; }
.lzs .pb b { color:var(--ink); font-weight:600; }
.lzs .pb ul { margin:.2rem 0 .4rem; padding-left:1.1rem; }
.lzs .pb li { margin:.15rem 0; }
.lzs .rel { font-family:var(--mono); font-size:.7rem; border-radius:4px; padding:.02rem .35rem; border:1px solid var(--rule-strong); color:var(--ink-2); }
.lzs .rel.contradicts { border-color:var(--s2); }
.lzs .more-btn { margin:.8rem 0 0; font:inherit; font-size:.85rem; border:1px solid var(--rule-strong); background:var(--surface); color:var(--ink);
  border-radius:999px; padding:.35rem 1rem; cursor:pointer; }
.lzs .verdict { font-family:var(--mono); font-size:.7rem; white-space:nowrap; border-radius:4px; padding:.05rem .4rem; background:var(--surface-2); color:var(--ink-2); }
.lzs .verdict.agree { background:var(--accent-soft); color:var(--accent-ink); }
.lzs table.cmp { table-layout:fixed; }
.lzs table.cmp td { font-size:.86rem; }
.lzs table.cmp th:nth-child(1) { width:19%; } .lzs table.cmp th:nth-child(2), .lzs table.cmp th:nth-child(3) { width:33%; } .lzs table.cmp th:nth-child(4) { width:15%; }
.lzs table.cmp .verdict { white-space:normal; display:inline-block; line-height:1.35; }
.lzs table.cmp.g3 th:nth-child(1) { width:40%; } .lzs table.cmp.g3 th:nth-child(2) { width:42%; } .lzs table.cmp.g3 th:nth-child(3) { width:18%; }
.lzs table.cmp td:first-child { min-width:8rem; }
@media (max-width: 720px) { .lzs table.cmp { table-layout:auto; } .lzs table.cmp td { min-width:11rem; } }

/* ---------- collapsible source blocks ------------------------------------ */
.lzs details.fold { margin:1.2rem 0; border:1px solid var(--rule); border-radius:var(--r); background:var(--surface); padding:0 1.1rem; }
.lzs details.fold > summary { cursor:pointer; padding:.75rem 0; font-size:.8rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-2); }
.lzs details.fold > summary:hover { color:var(--accent-ink); }
.lzs details.fold[open] > summary { border-bottom:1px solid var(--rule); margin-bottom:.8rem; }
.lzs details.fold p { font-size:.92rem; color:var(--ink-2); }
.lzs pre.plain { margin:0 0 1rem; overflow-x:auto; background:var(--surface-2); border:1px solid var(--rule); border-radius:8px;
  padding:.8rem .9rem; font-family:var(--mono); font-size:.76rem; line-height:1.55; color:var(--ink); white-space:pre; }
.lzs pre.plain.long { white-space:pre-wrap; max-height:32rem; overflow-y:auto; }

/* ---------- short version boxes ------------------------------------------ */
.lzs .svbox { background:var(--surface); border:1px solid var(--rule); border-radius:var(--r); padding:1rem 1.2rem .3rem; margin:1.1rem 0; box-shadow:var(--shadow); }
.lzs .svbox h3 { margin:0 0 .7rem; font-size:1.05rem; }
.lzs .svbox.agree { border-left:4px solid var(--accent); }
.lzs .svbox.differ { border-left:4px solid var(--s2); }
.lzs .svbox ul { margin-bottom:.8rem; }
@media (max-width: 720px) { .lzs .svbox { padding:.9rem .9rem .2rem; } }

/* ---------- collapsible catalogs ----------------------------------------- */
.lzs details.catfold { margin:2.2rem 0 0; border:1px solid var(--rule); border-radius:var(--r); background:var(--surface); padding:0 1.2rem; }
.lzs details.catfold > summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:.7rem; padding:1rem 0; }
.lzs details.catfold > summary::-webkit-details-marker { display:none; }
.lzs details.catfold > summary::before { content:""; flex:none; width:.55rem; height:.55rem; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted);
  transform:rotate(-45deg); transition:transform .15s ease; margin-left:.1rem; }
.lzs details.catfold[open] > summary::before { transform:rotate(45deg); }
.lzs details.catfold > summary h2 { font-family:var(--serif); font-size:1.45rem; margin:0; scroll-margin-top:5rem; }
.lzs details.catfold > summary:hover h2 { color:var(--accent-ink); }
.lzs details.catfold[open] > summary { border-bottom:1px solid var(--rule); margin-bottom:.9rem; }
.lzs details.catfold > .prose > p { font-size:.98rem; color:var(--ink-2); }
.lzs details.catfold > .catalog { padding-bottom:1rem; }
@media (prefers-reduced-motion: reduce) { .lzs details.catfold > summary::before { transition:none; } }
@media (max-width: 720px) { .lzs details.catfold { padding:0 .8rem; } .lzs details.catfold > summary h2 { font-size:1.2rem; } }

/* ---------- disclaimer ---------------------------------------------------- */
.lzs .disclaimer { margin:0 0 1.6rem; padding:.9rem 1.1rem; border:1px solid color-mix(in oklab, var(--s4) 55%, var(--rule));
  border-left:4px solid var(--s4); border-radius:var(--r); background:color-mix(in oklab, var(--s4) 9%, var(--surface)); }
.lzs .disclaimer p { margin:0; font-size:.93rem; line-height:1.6; color:var(--ink); }
.lzs .disclaimer b { font-weight:700; }

/* only the article's first prose paragraph is a lede, not the first of every later .prose block */
.lzs .prose ~ .prose > p:first-child { font-size:inherit; color:var(--ink); }

/* ---------- sidenotes (pure CSS; margin column >= 75rem, tap-to-reveal below) ---------- */
:root { --sn-w:15.5rem; --sn-gap:2.5rem; --sn-col:calc(var(--sn-w) + var(--sn-gap)); }
.lzs { counter-reset:sn; }
.lzs .sn-ref { counter-increment:sn; cursor:pointer; }
.lzs .sn-ref::after { content:counter(sn); font-family:var(--sans); font-size:.72em; font-weight:600;
  vertical-align:super; line-height:0; color:var(--accent-ink); padding:0 .12em 0 .1em; font-variant-numeric:tabular-nums; }
.lzs .sn::before { content:counter(sn) ". "; font-weight:600; color:var(--accent-ink); font-variant-numeric:tabular-nums; }
.lzs .sn { font-size:.84rem; line-height:1.5; color:var(--ink-2); font-weight:400; }
.lzs .vh, .lzs .sn-toggle { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.lzs .sn-toggle:focus-visible + .sn-ref { outline:2px solid var(--accent); outline-offset:2px; border-radius:3px; }
@media (max-width: 74.99rem) {
  .lzs .sn { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .lzs .sn-toggle:checked ~ .sn { position:static; width:auto; height:auto; overflow:visible; clip-path:none;
    display:block; margin:.45rem 0 .7rem; padding:.55rem .8rem; background:var(--surface-2);
    border-left:2px solid var(--accent); border-radius:0 8px 8px 0; }
  .lzs .sn-toggle:checked + .sn-ref::after { background:var(--accent-soft); border-radius:4px; }
}
@media (min-width: 75rem) {
  main.with-notes { max-width:calc(var(--maxw) + var(--sn-col)); padding-right:calc(1.4rem + var(--sn-col)); }
  main.with-notes .lzs .sn-toggle { display:none; }
  main.with-notes .lzs .sn-ref { cursor:default; }
  main.with-notes .lzs .sn { float:right; clear:right; width:var(--sn-w);
    margin:.25rem calc(-1 * var(--sn-col)) .6rem 0; position:relative; }
  main.with-notes .lzs .svbox .sn { margin-right:calc(-1 * var(--sn-col) - 1.2rem - 1px); }
  .lzs figure.chart, .lzs .tablewrap, .lzs details.catfold, .lzs .svbox { clear:right; }
}
@media print {
  .lzs .sn { position:static; width:auto; height:auto; clip-path:none; float:none; display:block;
    margin:.3rem 0 .5rem 1.2rem; font-size:9pt; }
}

/* ---------- comparison table: verdicts that scan, wider on desktop, cards on phones ---------- */
.lzs .verdict { font-family:var(--sans); font-size:.78rem; font-weight:600; letter-spacing:0; line-height:1.35;
  padding:.12rem .55rem; border-radius:6px; border:1px solid transparent; }
.lzs .verdict::before { content:""; display:inline-block; width:.5em; height:.5em; border-radius:50%;
  margin-right:.4em; vertical-align:.06em; background:var(--muted); }
.lzs .verdict.agree::before { background:var(--accent); }
.lzs .verdict.differ { background:color-mix(in oklab, var(--s2) 14%, var(--surface)); color:var(--ink); }
.lzs .verdict.differ::before { background:var(--s2); }
.lzs .verdict.missed { background:transparent; color:var(--ink); border:1px dashed var(--s2); }
.lzs .verdict.missed::before { background:transparent; box-shadow:inset 0 0 0 1.5px var(--s2); }
@media (min-width: 64rem) {
  .lzs .tablewrap.wide { width:min(var(--wide), 100vw - 4rem); margin-inline:calc((100% - min(var(--wide), 100vw - 4rem)) / 2); }
  .lzs .tablewrap.wide table.cmp td { font-size:.9rem; }
}
@media (min-width: 75rem) {
  main.with-notes .lzs .tablewrap.wide { width:auto; margin-left:0; margin-right:calc(-1 * var(--sn-col)); }
}
@media (max-width: 720px) {
  .lzs table.cmp, .lzs table.cmp tbody { display:block; }
  .lzs table.cmp thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .lzs table.cmp tr { display:flex; flex-direction:column; gap:.4rem; padding:1rem 0; border-bottom:1px solid var(--rule); }
  .lzs table.cmp td { display:block; min-width:0; padding:0; border:0; font-size:.92rem; }
  .lzs table.cmp td:nth-child(1) { font-size:1rem; }
  .lzs table.cmp td:nth-child(4) { order:1; } .lzs table.cmp td:nth-child(2) { order:2; } .lzs table.cmp td:nth-child(3) { order:3; }
  .lzs table.cmp td:nth-child(2)::before, .lzs table.cmp td:nth-child(3)::before { display:block; margin:.2rem 0 .1rem;
    font-size:.7rem; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); }
  .lzs table.cmp td:nth-child(2)::before { content:"Simulation"; }
  .lzs table.cmp td:nth-child(3)::before { content:"arXiv"; }
}

/* ---------- section rhythm ---------- */
.lzs .prose h2 { margin-top:3.2rem; padding-top:1.5rem; border-top:1px solid var(--rule); }
.lzs .prose h2 + h3 { margin-top:1.1rem; }
.lzs .svbox h3 { font-family:var(--serif); font-size:1.2rem; }

/* ---------- quieter citation links (underline kept for WCAG G183) ---------- */
.lzs a[href^="#sim-"], .lzs a[href^="https://arxiv.org/abs/"] {
  text-decoration-color:color-mix(in oklab, var(--accent) 22%, transparent); font-variant-numeric:tabular-nums; }
.lzs a[href^="#sim-"]:hover, .lzs a[href^="https://arxiv.org/abs/"]:hover { text-decoration-color:var(--accent); }

/* ---------- numbered contents, collapsible on phones ---------- */
.lzs .toc summary.toc-h { cursor:pointer; margin:0; }
.lzs .toc details[open] summary.toc-h { margin-bottom:.5rem; }
.lzs .toc ul { counter-reset:toc; }
.lzs .toc li { counter-increment:toc; }
.lzs .toc li::before { content:counter(toc) "."; display:inline-block; width:1.4rem; color:var(--muted); font-variant-numeric:tabular-nums; }

/* ---------- catalog affordances ---------- */
.lzs details.pc[open] > summary .pt { color:var(--accent-ink); }
.lzs .pb { margin-left:.15rem; padding-left:1rem; border-left:2px solid color-mix(in oklab, var(--accent) 35%, transparent); }
.lzs details.catfold > summary::after { content:"Show"; margin-left:auto; font-size:.8rem; color:var(--muted); }
.lzs details.catfold[open] > summary::after { content:"Hide"; }
