/* veil — site styles
   Crisp neutral ground, Geist throughout. Dark and light themes; system
   preference by default, explicit choice via [data-theme] set by theme.js.
   All color in OKLCH. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg:      oklch(0.145 0.005 260);
  --surface: oklch(0.18 0.006 260);
  --border:  oklch(0.27 0.008 260);
  --ink:     oklch(0.93 0.005 260);
  --muted:   oklch(0.71 0.008 260);
  --accent:  oklch(0.76 0.07 268);
  --accent-dim: oklch(0.60 0.05 268);
  --selection-bg: oklch(0.40 0.06 268);
  --selection-ink: oklch(0.97 0.003 260);

  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);

  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;

    --bg:      oklch(0.985 0.002 260);
    --surface: oklch(0.958 0.004 260);
    --border:  oklch(0.885 0.006 260);
    --ink:     oklch(0.22 0.012 260);
    --muted:   oklch(0.46 0.014 260);
    --accent:  oklch(0.47 0.11 268);
    --accent-dim: oklch(0.60 0.07 268);
    --selection-bg: oklch(0.88 0.045 268);
    --selection-ink: oklch(0.20 0.012 260);
  }
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg:      oklch(0.985 0.002 260);
  --surface: oklch(0.958 0.004 260);
  --border:  oklch(0.885 0.006 260);
  --ink:     oklch(0.22 0.012 260);
  --muted:   oklch(0.46 0.014 260);
  --accent:  oklch(0.47 0.11 268);
  --accent-dim: oklch(0.60 0.07 268);
  --selection-bg: oklch(0.88 0.045 268);
  --selection-ink: oklch(0.20 0.012 260);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 2rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  transition: background-color 200ms var(--ease-out-quint), color 200ms var(--ease-out-quint);
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-ink);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in oklch, var(--accent) 45%, transparent);
  transition: color 150ms var(--ease-out-quint), text-decoration-color 150ms var(--ease-out-quint);
}
a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

p { margin: 0 0 var(--space-sm); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2.5rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand .mark { color: var(--ink); }
.head-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm) clamp(0.9rem, 2.5vw, 1.5rem);
}
.site-head nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.8rem, 2.5vw, 1.4rem);
}
.site-head nav a {
  font-size: 0.925rem;
  color: var(--muted);
  text-decoration: none;
}
.site-head nav a:hover { color: var(--ink); }
.site-head nav a[aria-current="page"] { color: var(--ink); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 150ms var(--ease-out-quint), border-color 150ms var(--ease-out-quint);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); }

/* icon visibility: show the theme you'd switch to */
.icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .icon-moon { display: block; }
}
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

/* ---------- column ---------- */

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ---------- masthead ---------- */

.home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 12vh;
}
.home .masthead { padding-block: var(--space-xl) 0; }

.masthead {
  padding-block: clamp(3rem, 9vh, 5.5rem) clamp(2rem, 5vh, 3.5rem);
}
.masthead h1 {
  font-size: clamp(2.1rem, 1.6rem + 2.6vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 var(--space-lg);
  text-wrap: balance;
}
.page-title {
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0 0 var(--space-md);
}
.intro {
  color: var(--muted);
  max-width: 60ch;
}
.intro + .intro { margin-top: var(--space-sm); color: var(--ink); }

/* ---------- sections ---------- */

.section {
  padding-block: clamp(2.5rem, 6vh, 3.75rem);
  border-top: 1px solid var(--border);
}
.section:first-child { border-top: none; padding-top: clamp(2.5rem, 8vh, 4.5rem); }
/* tighten the seam when a small section (e.g. Contact) follows another */
.section:has(+ #contact) { padding-bottom: var(--space-md); }
#contact { padding-top: var(--space-md); }

/* lead sections: short pages where a few sentences carry the whole page */
.lead p {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 56ch;
}
.lead p + p { margin-top: var(--space-md); }

.contact-email {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  font-weight: 500;
  margin-bottom: var(--space-2xs);
}
.contact-email a {
  color: var(--ink);
  text-decoration-color: color-mix(in oklch, var(--accent) 55%, transparent);
}
.contact-email a:hover { color: var(--accent); }
.contact-note {
  color: var(--muted);
  font-size: 0.95rem;
}

h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-md);
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

.section-intro {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: var(--space-lg);
}

/* ---------- research directions (collapsible) ---------- */

.direction { border-top: 1px solid var(--border); }
.direction:last-of-type { border-bottom: 1px solid var(--border); }

.direction summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: var(--space-md);
  cursor: pointer;
  list-style: none;
}
.direction summary::-webkit-details-marker { display: none; }
.direction summary .chevron {
  flex: none;
  color: var(--muted);
  transition: transform 260ms var(--ease-out-quint), color 150ms var(--ease-out-quint);
}
.direction summary:hover .chevron { color: var(--ink); }
:root:not(.js) .direction[open] summary .chevron,
:root.js .direction.expanded summary .chevron { transform: rotate(180deg); }

/* With JS (:root.js, set pre-paint in <head>): details stay open, .expanded
   toggles, and grid-rows animate. Collapsed is the default, so the page can
   never paint expanded. Without JS these rules are inert and details is native. */
:root.js .direction-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 260ms var(--ease-out-quint),
              opacity 200ms var(--ease-out-quint),
              visibility 0s linear 260ms;
}
:root.js .direction.expanded .direction-content {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows 320ms var(--ease-out-quint),
              opacity 260ms var(--ease-out-quint),
              visibility 0s linear 0s;
}
.direction-inner {
  overflow: hidden;
  min-height: 0;
}
.direction-inner > :last-child {
  margin-bottom: var(--space-lg);
}

.questions {
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
}
.questions li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: var(--space-xs);
  max-width: 62ch;
}
.questions li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--accent-dim);
}

.more-link {
  display: inline-block;
  margin-top: var(--space-lg);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}
.more-link:hover { color: var(--ink); }

/* ---------- people ---------- */

.group-label {
  margin-top: var(--space-lg);
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 500;
}
.member-list {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
}
.member-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--border);
}
.member-list li:last-child { border-bottom: 1px solid var(--border); }
.member-glyph { flex: none; color: var(--muted); opacity: 0.7; }
.member-name {
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
a.member-name:hover { color: var(--accent); }

/* ---------- notes ---------- */

.note-list {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
}
.note-list li {
  padding-block: 1rem;
  border-top: 1px solid var(--border);
}
.note-list li:last-child { border-bottom: 1px solid var(--border); }
.note-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}
.note-desc {
  margin: var(--space-2xs) 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 60ch;
}
.note-list a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.note-list a:hover { color: var(--accent); }
.note-date {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  margin: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: var(--space-md);
  font-size: 0.925rem;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { color: var(--ink); }

article .note-date { margin: calc(-1 * var(--space-xs)) 0 var(--space-md); }

.note-toc-rail { display: none; }
.note-toc-mobile {
  margin: 0 0 var(--space-lg);
  border-block: 1px solid var(--border);
}
.note-toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}
.note-toc-mobile summary::-webkit-details-marker { display: none; }
.note-toc-mobile summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 400;
}
.note-toc-mobile[open] summary::after { content: "−"; }
.note-toc-mobile nav {
  max-height: 58svh;
  padding: var(--space-xs) 0 var(--space-sm);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.toc-list,
.toc-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc-list > li + li { margin-top: var(--space-xs); }
.toc-list ol {
  margin: var(--space-2xs) 0 0 0.2rem;
  padding-left: var(--space-xs);
  border-left: 1px solid var(--border);
}
.toc-list ol li + li { margin-top: 0.15rem; }
.toc-link {
  display: block;
  padding-block: 0.15rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  text-decoration: none;
  text-wrap: pretty;
}
.toc-link-section {
  color: color-mix(in oklch, var(--ink) 82%, var(--muted));
  font-weight: 550;
}
.toc-link:hover,
.toc-link[aria-current="location"] {
  color: var(--ink);
}
.toc-link[aria-current="location"] { font-weight: 600; }

.note-layout > .section {
  border-top: 0;
  padding-top: clamp(2.5rem, 8vh, 4.5rem);
}

.note-byline {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  column-gap: var(--space-md);
  row-gap: 0.2rem;
  align-items: baseline;
  margin: 0 0 var(--space-lg);
}
.note-byline-label {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.note-authors {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-weight: 550;
  letter-spacing: -0.006em;
}
.note-authors sup,
.note-contributions sup {
  position: relative;
  top: -0.15em;
  font-size: 0.68em;
  line-height: 0;
}
.note-contributions {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
.note-contributions a { color: inherit; }

.prose { max-width: 62ch; }
.prose .note-dek {
  margin: 0 0 var(--space-md);
  max-width: 58ch;
  font-size: clamp(1.08rem, 1.03rem + 0.25vw, 1.18rem);
  line-height: 1.6;
  letter-spacing: -0.01em;
}
.claim-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 var(--space-xl);
  border-block: 1px solid var(--border);
}
.claim-status p {
  margin: 0;
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  font-size: 0.9rem;
  line-height: 1.55;
}
.claim-status p + p {
  padding-right: 0;
  padding-left: var(--space-md);
  border-left: 1px solid var(--border);
}
.claim-status p:nth-child(3):last-child {
  grid-column: 1 / -1;
  padding-left: 0;
  border-top: 1px solid var(--border);
  border-left: 0;
}
.claim-status strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.prose h1 {
  margin: var(--space-xl) 0 var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.014em;
  text-wrap: balance;
}
.prose h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: var(--space-lg) 0 var(--space-sm);
}
.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: var(--space-md) 0 var(--space-xs);
}
.prose :is(h1, h2, h3)[id] { scroll-margin-top: 2rem; }
.prose ul, .prose ol {
  margin: 0 0 var(--space-sm);
  padding-left: 1.4rem;
}
.prose li { margin-bottom: var(--space-2xs); }
.prose .citation {
  position: relative;
  top: -0.08em;
  margin-left: 0.12em;
  font-size: 0.7em;
  font-weight: 550;
  line-height: 0;
  white-space: nowrap;
}
.prose .citation a {
  color: var(--accent-dim);
  text-decoration: none;
}
.prose .citation a:hover { color: var(--ink); }
.prose .table-caption {
  max-width: 72ch;
  margin: var(--space-md) 0 var(--space-xs);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.prose .table-caption strong {
  color: var(--ink);
  font-weight: 600;
}
.prose table {
  display: block;
  max-width: 100%;
  margin: 0 0 var(--space-md);
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9rem;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.prose th, .prose td {
  padding: 0.35rem 0.55rem;
  border-bottom: 1px solid var(--border);
  text-align: right;
}
.prose th:first-child, .prose td:first-child {
  padding-left: 0;
  text-align: left;
}
.prose table:has(th:nth-child(6)) {
  font-size: 0.82rem;
}
.prose table:has(th:nth-child(6)) :is(th, td) {
  padding: 0.3rem 0.4rem;
}
.prose table:has(th:nth-child(6)) :is(th, td):first-child {
  width: 12rem;
  min-width: 12rem;
  white-space: normal;
}
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 0 0 var(--space-md);
}
.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
}
.prose blockquote {
  margin: 0 0 var(--space-sm);
  padding-left: 1.25rem;
  border-left: 1px solid var(--border);
  color: var(--muted);
}
.prose img { max-width: 100%; height: auto; }
.prose .note-figure {
  width: min(64rem, calc(100vw - 2rem));
  max-width: none;
  margin: var(--space-xl) 0;
  margin-left: 50%;
  transform: translateX(-50%);
}
.note-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  background: white;
}
.note-figure figcaption {
  max-width: 80ch;
  margin: 0.7rem auto 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.result-figure {
  border-block: 1px solid var(--border);
  padding-block: var(--space-md);
}
.result-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.result-panel {
  min-width: 0;
  padding: 0 var(--space-lg) var(--space-xs);
}
.result-panel + .result-panel { border-left: 1px solid var(--border); }
.result-panel-head {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: var(--space-xs);
  align-items: baseline;
  margin-bottom: var(--space-md);
}
.result-panel-letter {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}
.prose .result-panel h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.005em;
}
.result-panel-head p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}
.result-bars {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}
.result-bars > div { min-width: 0; }
.result-bars dt {
  margin-bottom: 0.18rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-bars dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.8rem;
  gap: var(--space-xs);
  align-items: center;
  margin: 0;
}
.result-bars dd > span {
  display: block;
  height: 0.45rem;
  overflow: hidden;
  background: var(--surface);
}
.result-bars dd > span::after {
  display: block;
  width: calc(var(--value) * 100%);
  height: 100%;
  background: var(--ink);
  content: "";
}
.result-bars > div:first-child dd > span::after { background: var(--accent); }
.result-bars strong {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}
.prose .references {
  margin-top: var(--space-md);
  padding-left: 1.55rem;
  font-size: 0.86rem;
  line-height: 1.55;
}
.prose .references li {
  margin-bottom: var(--space-sm);
  padding-left: 0.35rem;
  scroll-margin-top: 2rem;
}
.prose .references li::marker {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.reference-back {
  margin-left: 0.18em;
  color: var(--muted);
  text-decoration: none;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-lg) 0;
}
.prose .katex { font-size: 1.05em; }
.prose .katex-display {
  max-width: 100%;
  margin: var(--space-md) 0;
  padding-block: 0.2rem 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

@media (min-width: 75rem) {
  .note-page {
    max-width: 80rem;
    padding-inline: var(--space-sm);
  }
  .note-layout {
    display: grid;
    grid-template-columns: 12rem minmax(0, 64rem);
    column-gap: 2rem;
    align-items: start;
  }
  .note-layout > .section {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: min(46rem, 100%);
  }
  .note-toc-rail {
    display: block;
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    min-width: 0;
  }
  .note-toc {
    position: sticky;
    top: var(--space-md);
    max-height: calc(100svh - 3rem);
    margin-top: clamp(2.5rem, 8vh, 4.5rem);
    padding-right: var(--space-sm);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
  .note-toc-title {
    margin: 0 0 var(--space-xs);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 600;
  }
  .note-toc .toc-list > li + li { margin-top: 0.65rem; }
  .note-toc .toc-link {
    padding-block: 0.12rem;
    font-size: 0.76rem;
    line-height: 1.35;
  }
  .note-toc-mobile { display: none; }
  .note-page .prose .note-figure {
    width: min(64rem, calc(100vw - 16rem));
  }
}

@media (max-width: 40rem) {
  .site-head {
    align-items: flex-start;
    padding-block: 1.15rem;
  }
  .head-right {
    width: 100%;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
  }
  .site-head nav {
    min-width: 0;
    gap: 0.65rem;
  }
  .site-head nav a { font-size: 0.84rem; }
  .section:first-child,
  .note-layout > .section { padding-top: 2.5rem; }
  .note-byline {
    display: block;
  }
  .note-byline-label { margin-bottom: 0.2rem; }
  .note-authors { margin-bottom: 0.15rem; }
  .claim-status {
    display: block;
    padding-block: 0;
  }
  .claim-status p {
    padding: var(--space-sm) 0;
  }
  .claim-status p + p {
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .prose .note-figure {
    width: calc(100vw - 1.5rem);
    margin-block: var(--space-lg);
  }
  .note-figure figcaption {
    padding-inline: 0.25rem;
  }
  .result-panels { grid-template-columns: 1fr; }
  .result-panel { padding: 0 0 var(--space-md); }
  .result-panel + .result-panel {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .result-bars dt { white-space: normal; }
}

/* ---------- reading lists ---------- */

.reading-label {
  margin: var(--space-md) 0 var(--space-2xs);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.reading {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reading li { margin-bottom: var(--space-2xs); }

/* ---------- empty states ---------- */

.empty {
  color: var(--muted);
  max-width: 60ch;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 2rem);
  margin-top: var(--space-md);
}

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

.site-foot {
  display: flex;
  justify-content: center;
  padding: var(--space-md) clamp(1.25rem, 5vw, 2.5rem) var(--space-lg);
}
.site-foot p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
