/* Phases of Muon proofs.
   Layout: a single reading column (about 68ch) under a thin top bar; statements are ruled
   boxes, proofs are unboxed prose; drilling into a reference stacks full-screen sheets.
   Palette: cool paper and ink, one cobalt accent for links, Lean status as semantic colour. */
:root {
  --paper: #f6f7f9;
  --sheet: #ffffff;
  --ink: #1c2230;
  --ink-2: #4a5263;
  --ink-3: #7a8294;
  --rule: #d9dde5;
  --tint: #eef1f6;
  --accent: #2647a6;
  --accent-soft: #e3e9f7;
  --proved: #2f7d57;
  --cited: #b07a1c;
  --none: #9aa1ae;
  --progress: #7a5bb5;
  --shadow: 0 10px 40px rgba(20, 28, 45, .18);
  --f-body: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --f-ui: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --measure: 74ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12151c; --sheet: #181c25; --ink: #e3e6ec; --ink-2: #b4bac6; --ink-3: #8a91a0;
    --rule: #2c323f; --tint: #1f2430; --accent: #8fa8f0; --accent-soft: #232c45;
    --proved: #5fbf8c; --cited: #e0ad55; --none: #6d7484; --progress: #a98ce0;
    --shadow: 0 10px 40px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12151c; --sheet: #181c25; --ink: #e3e6ec; --ink-2: #b4bac6; --ink-3: #8a91a0;
  --rule: #2c323f; --tint: #1f2430; --accent: #8fa8f0; --accent-soft: #232c45;
  --proved: #5fbf8c; --cited: #e0ad55; --none: #6d7484; --progress: #a98ce0;
  --shadow: 0 10px 40px rgba(0, 0, 0, .5); color-scheme: dark;
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }  /* guard: stray pixels (e.g. MathJax assistive markup) never scroll the page */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.sc { font-variant: small-caps; letter-spacing: .02em; }
code { font-family: var(--f-mono); font-size: .86em; overflow-wrap: anywhere; }
.muted { color: var(--ink-3); }

/* top bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--sheet); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--sheet); border-bottom: 1px solid var(--rule); }
.topbar-in, .foot-in, .content {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brand { font-family: var(--f-ui); font-weight: 600; font-size: 17px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--accent) 0 35%, transparent 36%), var(--accent-soft); border: 1px solid var(--accent); }
.brand-sub { font-weight: 400; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
nav a { font-family: var(--f-ui); font-size: 15px; color: var(--ink-2); margin-left: 18px; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 0; }

.content { padding-block: 28px 64px; }
.content > article, .content > section { max-width: var(--measure); margin-inline: auto; }
.kind-home .content > section { max-width: none; }
.foot { border-top: 1px solid var(--rule); background: var(--sheet); }
.foot-in { padding-block: 18px; font-family: var(--f-ui); font-size: 14px; color: var(--ink-3); }

/* type */
h1 { font-family: var(--f-ui); font-weight: 600; font-size: 30px; line-height: 1.2; letter-spacing: -.005em; text-wrap: balance; margin: 6px 0 18px; }
h2, h3, h4 { font-family: var(--f-ui); font-weight: 600; text-wrap: balance; }
h2 { font-size: 21px; margin: 34px 0 10px; }
h3 { font-size: 17px; margin: 26px 0 8px; }
.h-num { color: var(--ink-3); font-weight: 500; margin-right: 6px; font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--f-ui); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 8px; }
.panel-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 10px; }
.p { margin: 0 0 .85em; }
.runin, .skhead { font-weight: 600; }
.fn { font-size: .86em; color: var(--ink-2); }
.fn::before { content: " ("; } .fn::after { content: ")"; }

/* math */
.md { overflow-x: auto; overflow-y: hidden; margin: .6em 0 .9em; padding: 2px 0; }
.md mjx-container[display="true"] { margin: .3em 0 !important; }
mjx-container { color: inherit; }
.mi mjx-container { display: inline-block; }
.mi.mi-wide { display: block; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }

/* statements */
.thm { background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 3px; padding: 14px 18px 6px; margin: 18px 0; }
.thm-definition, .thm-assumption, .thm-hypothesis { border-left-color: var(--ink-3); }
.thm-remark { border-left-color: var(--rule); background: transparent; }
.thm-head { font-family: var(--f-ui); margin-bottom: 6px; }
.thm-name { font-weight: 600; color: var(--ink); }
.thm-title { color: var(--ink-2); }
.thm-body { font-style: normal; }
.proof { margin: 12px 0 20px; }
.proof-head { font-style: italic; margin-bottom: 4px; }
.qed { text-align: right; color: var(--ink-3); }
.proof-fold > summary { font-family: var(--f-ui); font-size: 14px; color: var(--ink-3); cursor: pointer; }
.sketch { background: var(--tint); border-radius: 3px; padding: 12px 18px 4px; margin: 14px 0; }
ol.enumerate, ul.itemize, ul.description { list-style: none; padding-left: 0; margin: .4em 0 .9em; }
ol.enumerate > li, ul.itemize > li, ul.description > li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 2px; margin: .25em 0; }
.li-mark { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.li-body { min-width: 0; }
.li-body > .p:last-child { margin-bottom: .2em; }
.fig { margin: 22px 0; }
img.tikz { max-width: 100%; height: auto; }
:root[data-theme="dark"] img.tikz { filter: invert(.88) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img.tikz { filter: invert(.88) hue-rotate(180deg); } }
.fig img { display: block; margin: 0 auto; background: #fff; border-radius: 2px; }
figcaption { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.fig-num { font-family: var(--f-ui); font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 14px 0; }
table { border-collapse: collapse; font-size: 15px; }
td, th { border-bottom: 1px solid var(--rule); padding: 5px 10px; text-align: left; vertical-align: top; }
th { font-family: var(--f-ui); font-weight: 600; }
.diagram-note { font-family: var(--f-ui); font-size: 14px; color: var(--ink-3); border: 1px dashed var(--rule); padding: 10px; text-align: center; }

/* chips and panels */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.chip { font-family: var(--f-ui); font-size: 13px; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 10px; display: inline-flex; align-items: center; gap: 6px; background: var(--sheet); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--none); }
.lean-proved .dot { background: var(--proved); } .lean-cited .dot { background: var(--cited); }
.lean-progress .dot { background: var(--progress); }
.deps h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 6px; }
.dep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 28px 0 10px; border-top: 1px solid var(--rule); padding-top: 16px; }
.deps ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.deps li { margin: 2px 0; }
.deps ul.inline { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.lean-panel { border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 18px; }
.lean-status { margin-bottom: 8px; }
.decl { margin: 4px 0; font-size: 15px; }
.decl summary { cursor: pointer; }
.decl .src { font-family: var(--f-ui); font-size: 13px; margin-left: 6px; }
pre.lean { font-family: var(--f-mono); font-size: 12.5px; line-height: 1.45; background: var(--tint); border-radius: 3px; padding: 10px 12px; overflow-x: auto; white-space: pre; }
.certs { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.needs { margin: 18px 0; }
.need { border-bottom: 1px solid var(--rule); padding: 6px 0; }
.need > summary { font-family: var(--f-ui); cursor: pointer; color: var(--ink-2); }
.note { margin: 22px 0; }
.note.pending { border: 1px dashed var(--rule); padding: 8px 16px; border-radius: 3px; }
.open-proof-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0; }
.open-proof { font-family: var(--f-ui); font-weight: 600; font-size: 16px; background: var(--accent); color: var(--sheet); padding: 9px 18px; border-radius: 3px; }
.open-proof:hover { text-decoration: none; filter: brightness(1.08); }
.ch-item { border-top: 1px solid var(--rule); padding-top: 6px; margin-top: 26px; }
.open-proof.small { font-size: 14px; padding: 5px 12px; }
.open-proof-row .muted { font-family: var(--f-ui); font-size: 14px; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; border-top: 1px solid var(--rule); margin-top: 22px; }
.meta h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.engine-pill { font-family: var(--f-ui); font-size: 14px; border: 1px solid var(--rule); border-radius: 3px; padding: 2px 8px; background: var(--sheet); }

/* section pages */
.secnav { display: flex; flex-wrap: wrap; gap: 4px; font-family: var(--f-ui); font-size: 14px; margin-bottom: 14px; }
.secnav a { padding: 2px 7px; border-radius: 3px; color: var(--ink-2); }
.secnav a.on { background: var(--accent); color: var(--sheet); }
ol.toc { list-style: none; padding: 0; font-family: var(--f-ui); font-size: 15px; columns: 2 260px; margin: 0 0 24px; }
.pn { display: flex; justify-content: space-between; font-family: var(--f-ui); margin-top: 40px; }

/* home */
.hero { max-width: var(--measure); margin: 6px auto 8px; }
.hero h1 { font-size: 44px; margin-bottom: 10px; }
.lede { font-size: 19px; color: var(--ink-2); }
.stat-row { display: flex; flex-wrap: wrap; gap: 28px; margin: 18px 0; font-family: var(--f-ui); color: var(--ink-2); font-size: 14px; }
.stat-row .big { display: block; font-size: 30px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--f-ui); }
.downloads a { border: 1px solid var(--rule); background: var(--sheet); border-radius: 3px; padding: 6px 12px; }
.sky { position: relative; margin: 26px auto 10px; max-width: 1040px; }
.sky-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.seg button { font-family: var(--f-ui); font-size: 14px; background: var(--sheet); color: var(--ink-2); border: 0; padding: 6px 12px; cursor: pointer; }
.seg button.on { background: var(--accent); color: var(--sheet); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--f-ui); font-size: 13px; color: var(--ink-3); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; background: var(--none); }
.lg.lean-proved { background: var(--proved); } .lg.lean-cited { background: var(--cited); }
.constellation, .dag { width: 100%; height: auto; display: block; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; }
.dag-wrap { overflow-x: auto; }
.dag { min-width: 720px; }
.ring { fill: none; stroke: var(--rule); stroke-dasharray: 2 5; }
.edge { stroke: var(--accent); stroke-opacity: .10; stroke-width: 1; transition: stroke-opacity .15s; }
.edge.hot { stroke-opacity: .7; stroke-width: 1.5; }
.star { fill: var(--none); stroke: var(--sheet); stroke-width: 1.2; transition: r .15s; }
.star.lean-proved { fill: var(--proved); } .star.lean-cited { fill: var(--cited); }
.star.role-definition, .star.role-assumption { fill: var(--sheet); stroke: var(--ink-3); stroke-width: 1.4; }
.star.role-remark { opacity: .65; }
.star-link:hover .star, .star-link:focus .star, .star.hot { stroke: var(--ink); stroke-width: 2; }
.hub { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.2; }
.hub-label { font-family: var(--f-ui); font-size: 13px; font-weight: 600; fill: var(--accent); pointer-events: none; }
.hub-link:hover .hub { fill: var(--accent); } .hub-link:hover .hub-label { fill: var(--sheet); }
.ch-label { font-family: var(--f-ui); font-size: 15px; fill: var(--ink-2); }
.dag-edge { stroke: var(--ink-3); stroke-opacity: .12; stroke-width: .6; }
.dag-node { fill: var(--none); } .dag-node.lean-proved { fill: var(--proved); } .dag-node.lean-cited { fill: var(--cited); }
.dag-node.is-top { stroke: var(--ink); stroke-width: 1.2; }
.band-label { font-family: var(--f-ui); font-size: 12px; fill: var(--ink-3); }
.band-rule { stroke: var(--rule); stroke-width: .6; }
.sky-note { font-family: var(--f-ui); font-size: 14px; color: var(--ink-3); margin: 8px 2px; }
.tip { position: absolute; z-index: 4; pointer-events: none; font-family: var(--f-ui); font-size: 13px; background: var(--ink); color: var(--paper); padding: 4px 8px; border-radius: 3px; max-width: 320px; }
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px 28px; max-width: 1040px; margin: 30px auto 0; }
.ch-card h3 { margin: 0 0 6px; font-size: 17px; }
.ch-card h3 a { color: var(--ink); }
.ch-card ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.ch-card li { margin: 3px 0; }
.res-num { font-family: var(--f-ui); font-weight: 500; white-space: nowrap; }
.res-title { color: var(--ink-2); }
.res-list { list-style: none; padding: 0; }
.res-list .res { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.bib { padding-left: 0; list-style: none; font-size: 15px; }
.bib li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); margin: 6px 0; }
.bib-n { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* sheets: drilling into a reference */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15, 20, 32, .35); z-index: 20; }
.sheet {
  position: fixed; inset: 0; z-index: 21; background: var(--paper); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  box-shadow: var(--shadow); animation: sheet-in .18s ease-out;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
@keyframes sheet-in { from { transform: translateY(14px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } .edge, .star { transition: none; } }
.sheet-bar {
  position: sticky; top: 0; z-index: 2; background: var(--sheet); border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 10px; padding-block: 8px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  font-family: var(--f-ui); font-size: 14px;
}
.sheet-close { font-family: var(--f-ui); font-size: 14px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); border-radius: 3px; padding: 4px 10px; cursor: pointer; white-space: nowrap; }
.sheet-close:hover { border-color: var(--accent); color: var(--accent); }
.crumbs { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; color: var(--ink-3); scrollbar-width: none; }
.crumbs button { font: inherit; border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; }
.crumbs .sep { color: var(--rule); }
.crumbs .cur { color: var(--ink); font-weight: 600; }
.sheet-page { font-family: var(--f-ui); font-size: 13px; white-space: nowrap; }
.sheet .content { padding-top: 22px; }
.sheet-loading { font-family: var(--f-ui); color: var(--ink-3); padding: 40px 0; text-align: center; }

/* hover preview of a statement */
.peek { position: absolute; z-index: 30; max-width: min(560px, calc(100vw - 32px)); background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); padding: 10px 14px; font-size: 15px; }
.peek .thm { border: 0; padding: 0; margin: 0; background: transparent; }
.peek-hint { font-family: var(--f-ui); font-size: 12px; color: var(--ink-3); margin-top: 4px; }
:target, .flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--accent-soft); } to { background: transparent; } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 25px; }
  .hero h1 { font-size: 34px; }
  nav a { margin-left: 12px; }
  .thm { padding: 10px 12px 4px; }
  ol.enumerate > li { grid-template-columns: 2.6em minmax(0, 1fr); }
  .sheet-page { display: none; }
}

/* Research landing page: paper links, its abstract, and companion resources. */
.kind-landing .content > section { max-width: 86ch; }
.landing-hero { padding: 20px 0 24px; }
.landing-hero .eyebrow { margin-bottom: 16px; }
.landing-hero h1 { font-size: 38px; letter-spacing: -.015em; line-height: 1.18; margin-bottom: 16px; }
.landing-hero h1 > span:last-child { display: block; font-size: 29px; font-weight: 400; letter-spacing: 0; margin-top: 5px; }
.landing-authors { font-family: var(--f-ui); font-size: 15px; color: var(--ink-2); margin: 0 0 20px; }
.landing-downloads { display: flex; flex-wrap: wrap; gap: 8px 26px; font-family: var(--f-ui); font-size: 17px; }
.primary-link { font-weight: 600; }
.landing-abstract, .landing-resources { border-top: 1px solid var(--rule); padding: 20px 0 12px; }
.landing-abstract h2, .landing-resources h2 { margin: 0 0 14px; font-size: 22px; }
.landing-abstract .p { line-height: 1.75; }
.landing-resources p { margin: 0 0 16px; }
.research-links { margin: 0; padding-left: 20px; }
.research-links li { padding: 0 0 10px; }

/* A theorem and its formal statements, with explicit correspondence controls. */
.kind-compare .content, .kind-compare .topbar-in { max-width: 1500px; }
.kind-compare .content > section { max-width: none; }
.compare-intro { padding: 4px 0 20px; }
.compare-intro > p { max-width: 88ch; font-size: 16px; margin: 10px 0; }
.compare-intro h1 { font-size: 36px; margin: 8px 0 12px; }
.compare-links { display: flex; flex-wrap: wrap; gap: 6px 24px; font-family: var(--f-ui); font-size: 15px; }
.compare-intro .compare-instructions { font-family: var(--f-ui); color: var(--ink-2); max-width: none; }
.compare-jumps { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-family: var(--f-ui); font-size: 14px; margin: 16px 0 12px; }
.compare-jumps > span { margin-right: 5px; color: var(--ink-2); }
.compare-jumps button { font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; padding: 4px 12px; cursor: pointer; }
.compare-jumps button:hover, .compare-jumps button.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.compare-jumps .clear-match { margin-left: auto; color: var(--ink-2); background: transparent; }
.alignment-note { border-left: 3px solid var(--accent); padding: 10px 15px; background: var(--accent-soft); font-family: var(--f-ui); font-size: 15px; min-height: 80px; }
.alignment-label { display: block; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.alignment-description { color: var(--ink-2); }
.comparison-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.comparison-column { min-width: 0; border: 1px solid var(--rule); border-radius: 4px; background: var(--sheet); overflow: hidden; }
.comparison-heading { display: flex; gap: 10px; justify-content: space-between; align-items: center; min-height: 86px; padding: 13px 18px; border-bottom: 1px solid var(--rule); }
.comparison-heading .eyebrow { display: block; font-size: 11px; margin: 0 0 5px; }
.comparison-heading h2 { margin: 0; font-size: 18px; }
.column-meta { font-family: var(--f-ui); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.comparison-heading select { font: 500 17px var(--f-ui); color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; padding: 5px 26px 5px 8px; max-width: 100%; }
.comparison-scroll { height: 68vh; min-height: 420px; max-height: 900px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.written-scroll { padding: 16px 18px; font-size: 15px; line-height: 1.6; }
.written-scroll .thm { background: transparent; border: 0; padding: 0; margin: 0; }
.written-scroll .thm-head { display: none; }
.written-scroll .md { font-size: .94em; }
.written-scroll .align-target { border-bottom: 1px dotted var(--ink-3); border-radius: 2px; cursor: pointer; scroll-margin: 30px; }
.written-scroll .align-target[data-align="hyp"] { border: 0; }
.written-scroll .is-matched { background: var(--accent-soft); outline: 1px solid var(--accent); outline-offset: 2px; }
.written-scroll .is-pinned { box-shadow: inset 3px 0 var(--accent); }
.formal-reading { margin: 26px 0 4px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.formal-reading h3 { margin: 15px 0 8px; }
.source-caption { padding: 10px 13px; font-family: var(--f-ui); font-size: 12px; color: var(--ink-2); border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.compare-code { font-family: var(--f-mono); font-size: 12px; line-height: 1.75; margin: 0; padding: 12px 0 18px; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.compare-code > code { font: inherit; }
.code-line { display: grid; grid-template-columns: 42px minmax(0, 1fr); padding: 1px 12px 1px 0; min-height: 23px; }
.line-number { color: var(--ink-3); text-align: right; padding: 0 9px 0 3px; user-select: none; font-size: 10px; }
.line-code { min-width: 0; }
.code-line.align-target { cursor: pointer; border-left: 3px solid transparent; }
.code-line.align-target:hover { background: var(--tint); }
.code-line.is-matched { background: var(--accent-soft); border-left-color: var(--accent); }
.code-line.is-matched .line-number { color: var(--accent); font-weight: 500; }
.code-line.is-pinned { border-left-width: 3px; }
.definition-label { font-size: 14px; font-weight: 500; border-top: 1px solid var(--rule); margin: 0; padding: 12px 13px 0; }
.compare-after { color: var(--ink-2); font-size: 15px; padding-top: 18px; }
.compare-after p { max-width: 95ch; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .column-meta { display: none; }
  .compare-code { font-size: 11px; }
}
@media (max-width: 700px) {
  .landing-hero { padding: 10px 0 24px; }
  .landing-hero h1 { font-size: 31px; }
  .landing-hero h1 > span:last-child { font-size: 24px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-scroll { height: 56vh; min-height: 300px; }
  .comparison-heading { min-height: 76px; }
  .compare-intro h1 { font-size: 29px; }
  .compare-jumps .clear-match { margin-left: 0; }
  .alignment-note { min-height: 115px; }
  .compare-code { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .comparison-scroll { scroll-behavior: auto; } }
