/* Reading layout adapted from Andréa Gourion’s article template, release 55. The monograph uses the Latin Modern fonts licensed in fonts/. */
@font-face { font-family: 'Latin Modern Roman'; src: url('fonts/lmroman10-regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Latin Modern Roman'; src: url('fonts/lmroman10-italic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Latin Modern Roman'; src: url('fonts/lmroman10-bold.otf') format('opentype'); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Latin Modern Roman'; src: url('fonts/lmroman10-bolditalic.otf') format('opentype'); font-weight: 600 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Latin Modern Math'; src: url('fonts/latinmodern-math.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }

@font-face { font-family: 'Critical Line Math Scripts'; src: url('fonts/critical-line-math-scripts.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }

@font-face { font-family: 'Critical Line Additional Signs'; src: url('fonts/critical-line-additional-signs.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0428, U+2605; }

:root {
  color-scheme: light;
  --paper: #fefdfa;
  --ink: #15191c;
  --ink-soft: #565e63;
  --line: #b9b4a8;
  --line-strong: #8b8f90;
  --copper: #9c4121;
  --math-blue: #1c5d86;
  --math-green: #116c65;
  --focus: var(--copper);
  --page-gutter: clamp(1.25rem, 5vw, 3rem);
  --content-max: 75rem;
  --reading-max: 41rem;
  --font-text: 'Latin Modern Roman', 'Latin Modern Math', 'Critical Line Math Scripts', 'Critical Line Additional Signs', Georgia, serif;
  --font-math: 'Latin Modern Math', 'Critical Line Math Scripts', 'Critical Line Additional Signs', math;
  --font-sans: var(--font-text);
  --font-code: ui-monospace, Consolas, 'Courier New', monospace;
  --text-size: clamp(1.125rem, 1rem + .55vw, 1.25rem);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { min-width: 0; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.62; }
a { color: inherit; }
img, svg, canvas, video { display: block; max-inline-size: 100%; block-size: auto; }
iframe { max-inline-size: 100%; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
main > * { min-width: 0; }

.page-shell { width: min(calc(100% - (2 * var(--page-gutter))), var(--content-max)); margin-inline: auto; }
.skip-link { position: fixed; top: max(.75rem, env(safe-area-inset-top)); left: max(.75rem, env(safe-area-inset-left)); z-index: 100; transform: translateY(-180%); background: var(--ink); color: white; padding: .65rem 1rem; }
.skip-link:focus { transform: none; }


/* A link is typography: the text in ink, a thin copper rule under it. */
a { color: inherit; text-decoration-color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--copper); }
.text-link { color: inherit; text-decoration-line: underline; text-decoration-color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.text-link:hover { color: var(--copper); }
.sc { font-variant-caps: all-small-caps; letter-spacing: .05em; }
.onum { font-variant-numeric: oldstyle-nums; }
.text-button { padding: .6rem 0; margin: -.6rem 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.text-button:hover { color: var(--copper); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 2.75rem; min-height: 2.75rem; padding: .3rem 1.4rem; border: 1px solid currentColor; border-radius: 0; background: transparent; color: inherit; font-family: var(--font-text); font-size: clamp(1.25rem, 1.1rem + .7vw, 1.4rem); font-weight: 400; line-height: 1.1; font-variant-caps: all-small-caps; letter-spacing: .05em; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { color: var(--copper); }
.button-secondary { padding-inline: 0; border-color: transparent; justify-content: flex-start; }

.site-header, .site-footer { background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: var(--text-size); line-height: 1.5; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; padding-block: .9rem; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: .9rem; min-height: 2.75rem; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.site-header .brand-symbol { --simplex-size: 2.4rem !important; --simplex-edge: var(--ink) !important; --simplex-paper: var(--paper) !important; width: 2.4rem; height: 2.4rem; margin: 0; }
.brand-copy { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1; font-variant-caps: all-small-caps; letter-spacing: .05em; white-space: nowrap; }
.brand-copy strong { font-weight: 400; }
.desktop-nav { margin-left: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: clamp(.95rem, 1.85vw, 1.75rem); font-size: clamp(1.12rem, 1.55vw, 1.34rem); line-height: 2.75rem; font-variant-caps: all-small-caps; letter-spacing: .05em; }
.desktop-nav a, .mobile-navigation-panel nav a, .footer-links a { color: inherit; text-decoration: none; }
.desktop-nav a:hover, .mobile-navigation-panel nav a:hover, .footer-links a:hover { color: var(--copper); }
.desktop-nav a[aria-current='page'], .footer-links a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: .32em; }

.mobile-menu-button { display: none; margin-left: auto; min-width: 4rem; min-height: 2.75rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 1.16em; font-variant-caps: all-small-caps; letter-spacing: .05em; text-align: right; cursor: pointer; }
.mobile-menu-button:hover { color: var(--copper); }
.mobile-navigation-panel, .contents-title { display: none; }

@media (max-width: 60rem) {
  .desktop-nav { display: none; }
  .mobile-menu-button { display: block; }
  .site-header .brand-symbol { --simplex-size: 2rem !important; width: 2rem; height: 2rem; }
  .brand { gap: .75rem; }
  /* The contents open in the flow of the page, between two rules. */
  .mobile-navigation-panel { display: block; flex: 1 0 100%; padding: .2rem 0 .6rem; border-top: 1px solid var(--ink); }
  .mobile-navigation-panel nav a { display: flex; align-items: baseline; gap: .6rem; min-height: 2.75rem; padding-top: .55rem; font-size: 1.16em; }
  .site-header.is-open .brand-copy { display: none; }
  .site-header.is-open .brand { min-width: 2.75rem; }
  .contents-title { display: block; margin-left: 0; font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1; font-variant-caps: all-small-caps; letter-spacing: .05em; }
  .contents-number { flex: none; width: 1.1rem; }
  .contents-leader { flex: 1; min-width: 1rem; border-bottom: 1px dotted var(--ink-soft); }
  .contents-here { color: var(--copper); }
}

.site-footer { margin-top: 4.5rem; }
.colophon { display: flex; flex-wrap: wrap; gap: 1.4rem 5rem; padding-block: 1.6rem 3rem; border-top: 1px solid var(--ink); }
.colophon p { margin: 0; }
.colophon-main { flex: 999 1 24rem; min-width: 0; }
.colophon-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .9rem; }
.footer-name { font-size: 1.2em; }
.footer-links { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: 0 1.9rem; font-size: 1.08em; line-height: 2.75rem; font-variant-caps: all-small-caps; letter-spacing: .05em; }
.colophon-contact { flex: 1 1 15rem; font-size: .88em; line-height: 1.6; }
.colophon-contact .language-switch { font-size: 1.14em; }
.colophon-rights { color: var(--ink-soft); }

.article { font-family: var(--font-text); font-size: var(--text-size); line-height: 1.5; }
.article :where(p, ol, ul, dl, figure) { margin: 0; }
.article h1 { max-width: none; margin: 0; font-size: clamp(2.1rem, 3.6vw, 3rem); font-weight: 400; line-height: 1.1; letter-spacing: 0; text-wrap: balance; }
/* A numbered section, as in a paper: number and title in semi-bold under a rule; subsections in italic. */
.article h2 { max-width: none; margin: 0; padding-top: 1.6rem; border-top: 1px solid var(--ink); font-family: inherit; font-size: 1.5em; font-weight: 600; line-height: 1.2; letter-spacing: 0; }
.article h3 { max-width: none; margin: 0; font-size: 1.24em; font-weight: 400; font-style: italic; line-height: 1.22; letter-spacing: 0; }
.article h3 + p, .article h3 + .measure > p:first-child { margin-top: .6rem; }
.article p + p { margin-top: .5rem; }
.section-number { margin-right: .5em; font-style: normal; }
.article h2 .section-number { margin-right: 1em; }
.article-section { margin-top: 3.4rem; scroll-margin-top: 1rem; }
.article-section.home-work { margin-top: 4rem; }
.section-lead { margin-top: .4rem; font-style: italic; }
.measure { max-width: 41rem; }
.article h2 + .measure { margin-top: 1rem; }
.article h2 + .text-and-margin { margin-top: 1.2rem; }
.small { font-size: .88em; }
.role { color: var(--ink-soft); }

.copper { color: var(--copper); }
.math-blue { color: var(--math-blue); }
.math-green { color: var(--math-green); }
.section-end { margin-top: 2.4rem; }
.figure-caption { margin: .5rem 0 0; font-size: .824em; line-height: 1.4; }

.article-head { padding-top: 2.6rem; }
.article-head > .measure { margin-top: 1.2rem; }
.page-contents { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .9rem; margin-top: 1.2rem; font-size: .88em; }
.page-contents-label { color: var(--ink-soft); font-size: 1.14em; }
.article .page-contents :is(ol, ul) { display: flex; flex-wrap: wrap; gap: 0 .9rem; padding: 0; list-style: none; }
.page-contents li:not(:last-child)::after { content: '·'; margin-left: .9rem; }
.page-contents a { display: inline-block; padding-block: .75rem; }
.article-head + .article-section { margin-top: 2.6rem; }

.article .article-subtitle { margin-top: .6rem; font-size: 1.2em; font-style: italic; line-height: 1.3; }
.article .head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; margin-top: 1.3rem; }

.article .research-figure { display: grid; grid-template-columns: minmax(0, var(--reading-max)) minmax(0, 1fr); column-gap: var(--margin-gap, 4.4rem); row-gap: .5rem; align-items: end; border: 0; background: none; }
.article .research-figure .figure-stage { display: block; min-height: 0; padding: 0; background: none; }
.article .research-figure-svg { max-width: none; }
.article .research-figure figcaption { display: block; max-width: var(--margin-max, 20.6rem); padding: 0; border: 0; color: inherit; font: inherit; font-size: .825em; line-height: 1.42; letter-spacing: 0; }
.article .research-figure-wide { grid-template-columns: minmax(0, 1fr); }
.article .research-figure-wide figcaption { max-width: var(--reading-max); }

.opening-hero { display: grid; grid-template-columns: minmax(17rem, 2fr) minmax(0, 3.4fr); grid-template-rows: auto 1fr; grid-template-areas: 't f' 'c f'; gap: 1.2rem 2.5rem; align-items: start; padding-block: 2.6rem 2.2rem; }
.opening-title { grid-area: t; display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }
.byline { font-size: 1.04em; line-height: 1.35; }
.byline .sc { font-size: 1.115em; }
.opening-figure { grid-area: f; justify-self: end; display: block; width: 100%; max-width: 46rem; height: auto; overflow: hidden; cursor: crosshair; }
.opening-caption { grid-area: c; align-self: end; font-size: .85em; line-height: 1.4; }
.abstract { display: flex; flex-wrap: wrap; gap: 1.2rem 5rem; padding-top: 1.6rem; border-top: 1px solid var(--ink); }
.abstract > p { flex: 999 1 26rem; max-width: 41rem; }
.abstract > nav { flex: 1 1 14rem; }
.contents { padding: 0; list-style: none; }
.contents a { display: inline-block; padding-block: .4rem; }
.contents li:first-child a { padding-top: 0; }

@media (max-width: 52rem) {
  .opening-hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: 't' 'f' 'c'; padding-block: 2rem 1.8rem; }
  .opening-figure { justify-self: start; }
}

.text-and-margin { display: flex; flex-wrap: wrap; gap: 1.5rem 5rem; margin-top: 2.6rem; }
.text-and-margin > :first-child { flex: 999 1 26rem; max-width: 41rem; min-width: 0; }
.text-and-margin > :is(figure, aside) { flex: 1 1 16rem; max-width: 26rem; min-width: 0; }
/* Book navigation and reading apparatus */
body { font-synthesis: small-caps; font-kerning: normal; font-variant-ligatures: common-ligatures; }
button, input, select, textarea, summary { font-family: inherit; color: inherit; }
[hidden] { display: none !important; }
.print-only { display: none; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .65rem 1rem; background: var(--ink); color: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
img.opening-figure, svg.opening-figure:not([tabindex]) { cursor: default; }
.brand > :is(img,svg) { width: 2.4rem; height: 2.4rem; flex: none; }
.article .page-opener { padding-top: 2.6rem; }
.page-opener > .measure, .page-opener > .lede, .page-opener > .lead { margin-top: 1.2rem; }
.page-opener > :is(p, .lead, .lede), .chapter > :is(p, ul, ol, dl, details, aside), .chapter section > :is(p, ul, ol, dl), .textpage > :is(p, ul, ol, dl, details), .reading > :is(p, ul, ol, dl) { max-width: var(--reading-max); }
.opening .abstract > .contents { flex: 1 1 14rem; }
.opening-caption a { white-space: normal; }
.figure-actions { display: block; margin-top: .3em; }
.figure-actions .text-button { margin: 0; padding: .15em 0; }
.declaration-index { font-size: .85em; overflow-wrap: anywhere; }
.declaration-index dt { margin-top: .85em; }
.declaration-index dd { margin-left: 0; }
.pathlist { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1.35rem; }
.pathlist { gap: .25rem .6rem; margin-block: 1rem; }
.pathlist > span { color: var(--ink-soft); }
.reading, .chapter, .textpage { min-width: 0; }
.article :is(.book-kicker, .eyebrow, .source-id) { font-variant-caps: all-small-caps; letter-spacing: .05em; color: var(--ink-soft); }
.article :is(.book-kicker, .eyebrow) { margin: 0 0 .4rem; font-size: .98em; }
.chapter, .textpage, .page-opener { overflow-wrap: break-word; }
.chapter { margin-top: 3.4rem; scroll-margin-top: 1rem; }
.chapter:first-child { margin-top: 0; }
.chapter > :is(h3, h4), .chapter section > :is(h3, h4), .textpage > h3 { margin: 1.5rem 0 .5rem; }
.chapter h4 { font-size: 1.08em; font-weight: 600; line-height: 1.3; }
.chapter > :is(h2, header) + *, .textpage > h2 + *, .chapter section > h2 + * { margin-top: .7rem; }
.chapter .lead, .chapter .lede { margin-block: .7rem 1.3rem; }
.chapter li + li, .textpage li + li { margin-top: .2rem; }
.chapter :is(ol,ul), .textpage :is(ol,ul) { padding-inline-start: 1.35em; }
#book-references > ol { padding-inline-start: 6ch; }
.textpage > h2:not(:first-child), .chapter h2:not(:first-child), .chapter section > h2 { margin-top: 2.2rem; }
:is(.chapter, .textpage, .reading) :is(p, details, aside, li, th, td, dd) { overflow-wrap: anywhere; }
:is(details, .source-panel) { margin-block: .95rem; }
details { padding: .4rem 0; border-block: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
summary::marker { color: var(--copper); }
details[open] > summary { margin-bottom: .65rem; }
details p + p { margin-top: .5rem; }
code, pre { font-family: var(--font-code); font-size: .78em; }
code { overflow-wrap: anywhere; }
pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
.source-note, .audit-note, .chapter aside { padding-block: .55rem; margin-block: 1.1rem; border-block: 1px solid var(--ink); }
.chapter .equation, .chapter .eq, .chapter .formula, .equation-block, math[display="block"] { display: block; max-width: 100%; margin-block: 1.05rem; padding: .15rem .1rem; overflow-x: auto; text-align: center; }
math { font-family: var(--font-math); font-weight: 400; font-style: normal; }
.equation, .eq, .formula { font-family: var(--font-text); font-weight: 400; }
:is(h1, h2, h3, h4, h5, h6, th, dt, strong, b, summary) :is(i, var) { font-weight: 400; }
.equation-number { display: block; text-align: right; font-size: .8em; color: var(--ink-soft); }
.refno { margin-left: .15rem; font-size: .7em; line-height: 1; vertical-align: super; white-space: nowrap; }
.refno a { text-decoration: none; color: var(--copper); }
.passage-references { font-size: .87em; line-height: 1.45; }
.passage-contribute { font-size: .82em; line-height: 1.45; color: var(--ink-soft); }
.task-area { display: inline-block; margin-right: .55rem; font-size: .84em; font-variant-caps: all-small-caps; letter-spacing: .05em; color: var(--copper); }
.hero-secondary { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .92em; color: var(--ink-soft); }
.claim-id-tag { display: inline-block; font-size: .84em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.role-badge, .status-badge { display: inline-block; margin-right: .45rem; padding: .06rem .42rem; border: 1px solid var(--line-strong); font-size: .78em; line-height: 1.35; letter-spacing: .02em; color: var(--ink-soft); vertical-align: baseline; }
.role-core { border-color: var(--copper); color: var(--copper); }
.status-interface { border-color: var(--math-blue); color: var(--math-blue); }
.audit-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: .85rem 0 1.25rem; padding: .5rem .75rem; border-block: 1px solid var(--line); font-size: .88em; color: var(--ink-soft); }
.audit-toolbar button[aria-pressed="true"] { color: var(--copper); border-color: var(--copper); font-weight: 600; }
.counter-grid, .tracks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); gap: 1rem 1.4rem; margin: 1.15rem 0; }
.counter-card, .track-card { padding: .85rem 1rem; border: 1px solid var(--line); background: var(--paper); min-width: 0; }
.counter-card h3, .track-card h3 { margin: 0 0 .4rem; font-size: 1.06em; line-height: 1.28; }
.counter-card p, .track-card p { margin: .38rem 0 0; font-size: .92em; line-height: 1.45; }
.track-card--primary { border-color: var(--copper); }
.track-kicker { display: block; margin-bottom: .22rem; font-size: .8em; font-variant-caps: all-small-caps; letter-spacing: .05em; color: var(--copper); }
.methodology-box { margin: 1.15rem 0; padding: .85rem 1rem; border-block: 1px solid var(--ink); font-size: .91em; line-height: 1.46; }
.methodology-box h3 { margin: 0 0 .35rem; font-size: 1.02em; }
.methodology-box p { margin: .38rem 0 0; }
.correspondence { color: var(--ink-soft); font-size: .88em; }
.correspondence ul { margin-block: .4rem; }
.theorem-register h4 { margin-bottom: .3rem; }
.printed-detail { font-size: .92em; }
.tablewrap { max-width: 100%; overflow-x: auto; }
table { border-collapse: collapse; margin-block: 1rem; max-width: 100%; width: 100%; font-size: .9em; line-height: 1.38; }
th, td { padding: .4rem .65rem .4rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { border-bottom-color: var(--ink); }
.records { list-style: none; padding-left: 0 !important; }
.records > li, .proofnode, .gloss dl > div { margin: 0; padding-block: .8rem; border-top: 1px solid var(--line); }
.proofnode p, .records li p { margin: .25rem 0; }
.source-id { margin-right: .45rem; }
.gloss dt { font-weight: 600; }
.gloss dd { margin: .25rem 0 0; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .9rem; margin: 1.2rem 0; }
.filters label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem; max-width: 100%; font-size: .92em; }
.filters input { width: min(20rem, 100%); }
.filters select { max-width: 100%; }
.filters input, select, .reset, .print, .correspondence-btn { padding: .3rem .65rem; border: 1px solid var(--line-strong); border-radius: 0; background: var(--paper); font: inherit; }
.reset, .print, .correspondence-btn { cursor: pointer; }
.micro { font-size: .84em; color: var(--ink-soft); }
.book-entry { padding-block: 1.15rem; }
.book-entry + .book-entry { border-top: 1px solid var(--line); }
.article .book-entry h3 { margin: 0; }
.article .book-entry p { margin-top: .45rem; }
.article .experiment-index { padding: 0; list-style: none; }
.article .figure-label { color: var(--ink-soft); font-size: .9em; }
.article .chapter-navigation { margin-top: 2rem; }
.chapter-guide { margin: .8rem 0 1.5rem; line-height: 1.75; }
.chapter-guide a { display: inline-block; }
.article .chapter .measure > h3, .article .chapter section h3 { margin: 1.7rem 0 .6rem; }
.article .chapter .measure > h4 { margin: 1.3rem 0 .45rem; }
.article .chapter .measure > h6 { margin: 1em 0 .3em; font: 600 1em/1.3 var(--font-text); }
.article .chapter .measure > h5 { margin: 1.15em 0 .35em; font: italic 1em/1.3 var(--font-text); }
.article .reference-plate { width: min(100%, 46rem); margin: 1.25rem 0; }
.reference-plate img { display: block; width: 100%; height: auto; }
.site-header noscript { display: none; }
/* Each experiment has a complete, static initial state. */
.lab { min-width: 0; margin: 1.8rem 0; padding: .85rem 0 1.15rem; border-block: 1px solid var(--ink); background: transparent; }
.lab :is(var, .math-coordinates) { font-weight: 400; }
.lab var sub { font-style: normal; }
.lab .labhead { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.lab .eyebrow { margin-bottom: .25rem; }
.lab h4 { margin: .2rem 0 .35rem; font: italic 1.24em/1.22 var(--font-text); }
.lab [data-controls], .lab .reset { display: none; }
.lab.ready [data-controls] { display: flex; }
.lab.ready .reset { display: inline-block; }
.controls { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem 1.4rem; margin: .8rem 0; }
.lab label { display: grid; gap: .16rem; min-width: 7.75rem; max-width: 100%; font-size: .85em; }
.lab label output { margin-left: .35rem; font-variant-numeric: tabular-nums; }
.lab select { min-height: 2.5rem; width: 100%; cursor: pointer; }
.lab input[type="range"] { width: 100%; height: 2.5rem; min-height: 2.5rem; margin: 0; accent-color: var(--copper); cursor: pointer; }
.lab .reset { min-height: 2.5rem; font-size: .85em; }
.lab .plot { display: block; width: 100%; max-height: 20rem; }
.plot text { fill: var(--ink-soft); font: 13px var(--font-text); }
.plot .grid { stroke: var(--line); stroke-width: .65; }
.plot :is(.ink, .rust, .dash, .dots, .axis, .faint) { fill: none; stroke-linecap: round; stroke-width: 2.25; }
.plot .ink { stroke: var(--math-green); }
.plot .rust, .plot .dash { stroke: var(--copper); }
.plot .dash { stroke-dasharray: 6 4; }
.plot .dots { stroke: var(--math-blue); stroke-dasharray: 1 4; }
.plot .axis, .plot .faint { stroke: var(--ink-soft); stroke-width: 1; }
.plot .faint { stroke-dasharray: 2 4; }
.lab .metrics { display: flex; flex-wrap: wrap; gap: .5rem 1.65rem; margin: .5rem 0; padding-top: .6rem; border-top: 1px solid var(--line); }
.metrics dt { color: var(--ink-soft); font-size: .8em; }
.metrics dd { margin: 0; font-variant-numeric: lining-nums tabular-nums; }
.lab figcaption { margin: .55rem 0; font-size: .855em; line-height: 1.42; }
.lab .method, .lab details { font-size: .86em; }
.lab .tablewrap { max-height: 23rem; }
.lab details { border-bottom: 0; padding-block: .45rem; margin-bottom: 0; }
.lab .rank-grid { table-layout: fixed; width: min(100%, 29rem); margin: 1rem auto; font-variant-numeric: lining-nums tabular-nums; }
.lab .carry-table { width: min(100%, 30rem); margin: 1rem auto; font-variant-numeric: lining-nums tabular-nums; }
.carry-table :is(th, td) { text-align: right; padding: .35em; }
[data-lab="localization-kernel"] .carry-table thead th { white-space: nowrap; }
[data-lab="parabolic-shell"] .carry-table :is(th, td) { padding-inline: .2em; }
[data-lab="parabolic-shell"] .carry-table :is(thead th, td) { white-space: nowrap; }
@media (max-width: 390px) {
  [data-lab="weight-circle-spectrum"] .carry-table thead th {
    padding-inline: .2em;
    font-size: .92em;
    white-space: nowrap;
  }
}
.density-table th:first-child { text-align: left; }
.density-table tr > :last-child { width: 5em; white-space: nowrap; }
.carry-table caption, .rank-grid caption { caption-side: top; margin-bottom: .4rem; text-align: center; font-style: italic; }
.rank-grid :is(th, td) { padding: .35em .15em; text-align: center; vertical-align: middle; }
.rank-grid tr > :first-child, .rank-grid tr > :last-child { width: 18%; }
.rank-grid tbody td:not(.rank-sum) { border: 1px solid var(--line); font-size: 1.16em; }
.rank-grid .rank-positive { color: var(--math-green); background: #edf3ee; font-weight: 400; }
.rank-grid .rank-negative { color: var(--copper); background: #f7ede6; font-weight: 400; }
.rank-grid .rank-zero, .rank-grid .rank-sum { color: var(--ink-soft); }
.rank-grid tbody tr:last-child td:not(.rank-sum) { border-top-color: var(--ink); }
.rank-grid tbody td:nth-child(5) { border-left-color: var(--ink); }
.rank-grid tfoot :is(th, td) { border-top: 1px solid var(--ink); border-bottom: 0; }

@media (max-width: 60rem) {
  .article .research-figure { grid-template-columns: minmax(0,1fr); }
  .article .research-figure figcaption { grid-column: 1; max-width: var(--reading-max); }
  .brand > :is(img,svg) { width: 2rem; height: 2rem; }
  .site-header noscript { display: block; flex-basis: 100%; }
  .site-header noscript nav { gap: 0 .9rem; margin: 0; }

}
@media (max-width: 52rem) {
  .article .page-opener { padding-top: 2rem; }
}
@media (max-width: 40rem) {
  .article .page-contents :is(ol, ul) { display: block; flex-basis: 100%; }
  .page-contents li:not(:last-child)::after { content: none; }
  .lab .plot { max-height: none; }
  .header-inner { column-gap: .8rem; }
  .lab .plot text { font-size: 20px; }
  .lab .controls { gap: .4rem 1rem; }
  .lab label { min-width: 6.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
  .button, .mobile-menu-button, .reset, .print { border: 1px solid ButtonText; }
  .header-inner, .colophon, .article h2, .abstract { border-color: CanvasText; }
  .plot :is(.ink, .rust, .dash, .dots, .axis, .faint) { stroke: CanvasText; }
}
@media print {
  @page {
    margin: .55in;
    @bottom-left { content: "The Critical Line"; font: 8pt "Latin Modern Roman", Georgia, serif; color: #514c45; }
    @bottom-right { content: counter(page); font: 8pt "Latin Modern Roman", Georgia, serif; color: #514c45; }
  }
  @page :first {
    @bottom-left { content: none; }
    @bottom-right { content: none; }
  }
  body, main.article { background: white; color: black; font: 10.5pt/1.38 var(--font-text); }
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
  .site-header, .site-footer, .skip, .skip-link, .button, .chapter-navigation, .passage-contribute, .audit-toolbar, .mobile-print-note, .filters, button, input, select, [role="button"], .controls, .lab.ready [data-controls], [data-share] { display: none !important; }
  .page-shell, .measure, .textpage, .reading { width: 100%; max-width: none; }
  .article-section, .article .page-opener { padding: 0; margin: 0; }
  .chapter { break-before: page; margin: 0; border: 0; }
  .chapter:first-child { break-before: auto; }
  h1, h2, h3, h4, h5, h6, summary { break-after: avoid-page; }
  figure, tr, .metrics, .equation, .eq, .formula, math { break-inside: avoid; }
  #book-references li { break-inside: avoid; }
  thead { display: table-header-group; }
  .chapter p { orphans: 3; widows: 3; }
  .article .chapter .measure { max-width: none; }
  .tablewrap, .lab .tablewrap, .chapter .equation, .chapter .eq, .chapter .formula, math[display="block"] { overflow: visible; max-height: none; }
  .lab { margin: .65rem 0; padding: .35rem 0; }
  .lab .plot { max-height: 46mm; }
  .lab figcaption, .lab .method, .printed-detail { font-size: 9pt; }
  .print-only { display: block; }
  .chapter details > .print-only { display: none; }
  details.correspondence { display: none !important; }
  details::details-content { display: block !important; content-visibility: visible !important; }
  summary { list-style: none; }
  a { color: inherit; }
}


.chapter > .measure > h3 { margin-top:1.65rem; }
.print-contents { margin-top:1.5rem; }
.print-contents figure { width:min(100%, 29rem); margin:1rem 0; }
.print-contents h2 { margin-top:1.7rem; }
.print-contents ol { margin-top:.65rem; }

/* Segmented chapter status bars, macro-blueprint SVG, 3-level outlines, sticky proof rail & 14x10 archive matrix */
.chapter-meter { margin-top: .55rem; }
.chapter-meter--compact { margin-block: .45rem .35rem; max-width: 34rem; }
.status-bar { display: flex; width: 100%; height: 5px; border: 1px solid var(--line-strong); background: #f2efe9; overflow: hidden; }
.status-bar .seg { display: block; height: 100%; }
.status-bar .seg-core { background: var(--copper); }
.status-bar .seg-infra { background: var(--math-green); }
.status-bar .seg-interface { background: var(--math-blue); }
.status-pills { margin-top: .32rem !important; line-height: 1.45; }
.stat-pill { white-space: nowrap; }
.stat-pill--if { color: var(--math-blue); }
.stat-pill--clean { color: var(--math-green); }
.stat-pill--human { font-variant-numeric: lining-nums tabular-nums; }
.dot { display: inline-block; width: .48rem; height: .48rem; border-radius: 50%; margin-right: .32rem; vertical-align: .05em; }
.dot-core { background: var(--copper); }
.dot-infra { background: var(--math-green); }
.dot-clean { background: var(--math-green); }
.dot-interface { background: transparent; border: 1.5px solid var(--math-blue); }

.chapter-outline { margin-top: .6rem; padding: .3rem 0; border-top: 1px dotted var(--line); border-bottom: 0; font-size: .9em; }
.chapter-outline > summary { font-weight: 400; font-size: .92em; color: var(--ink-soft); }
.chapter-outline > summary:hover { color: var(--copper); }
.outline-groups { margin-top: .35rem; }
.outline-group { margin: 0; padding: .28rem 0 .28rem .55rem; border-top: 1px dotted var(--line); border-bottom: 0; }
.outline-group > summary { font-weight: 400; font-size: .95em; }
.outline-range { font-variant-numeric: lining-nums tabular-nums; color: var(--copper); margin-right: .25rem; }
.outline-jump { margin: .15rem 0 .3rem !important; }
.outline-list { margin: .35rem 0 .15rem; padding-inline-start: 1.2rem; list-style: none; }
.outline-list li { padding-block: .14rem; line-height: 1.4; }
.outline-num { display: inline-block; min-width: 2.35rem; font-variant-numeric: lining-nums tabular-nums; color: var(--ink-soft); }
.outline-badges { margin-left: .3rem; }
.mini-badge { display: inline-block; padding: 0 .32rem; border: 1px solid var(--line); font-size: .76em; line-height: 1.35; font-variant-numeric: lining-nums tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.mini-badge--core { border-color: var(--copper); color: var(--copper); }
.mini-badge--infra { border-color: var(--math-green); color: var(--math-green); }
.mini-badge--if { border-color: var(--math-blue); color: var(--math-blue); border-style: dashed; }

.blueprint-legend { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; margin: .8rem 0 .65rem; }
.blueprint-scroll { width: 100%; max-width: 100%; overflow-x: auto; padding-bottom: .3rem; border-block: 1px solid var(--ink); background: var(--paper); }
.macro-blueprint { display: block; width: 100%; min-width: 52rem; height: auto; font-family: var(--font-text); }
.macro-blueprint text { font-family: var(--font-text); fill: var(--ink); }
.bp-band-label { font-size: 10px; letter-spacing: .07em; fill: var(--ink-soft) !important; }
.bp-band-label--if { fill: var(--math-blue) !important; }
.bp-link { text-decoration: none; cursor: pointer; }
.bp-card { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1; transition: stroke .12s, fill .12s; }
.bp-node--clean .bp-card { stroke: var(--math-green); }
.bp-node--clean .bp-accent { fill: var(--math-green); }
.bp-node--interface .bp-card { fill: #fbf7f2; stroke: var(--ink); }
.bp-node--interface .bp-accent { fill: var(--copper); }
.bp-node--formal .bp-card { fill: #f4f7fa; stroke: var(--math-blue); stroke-width: 1.25; stroke-dasharray: 5 3.5; }
.bp-link:hover .bp-card, .bp-link:focus-visible .bp-card { stroke: var(--copper); stroke-width: 1.8; }
.bp-kicker { font-size: 9.4px; letter-spacing: .06em; fill: var(--ink-soft) !important; }
.bp-kicker--if { fill: var(--math-blue) !important; }
.bp-title { font-size: 13.5px; font-weight: 600; }
.bp-sub { font-size: 11.2px; font-style: italic; fill: var(--ink-soft) !important; }
.bp-meta { font-size: 10.3px; fill: var(--ink-soft) !important; font-variant-numeric: lining-nums tabular-nums; }
.bp-edge { fill: none; stroke: #6e757a; stroke-width: 1.25; transition: opacity .14s, stroke-width .14s; }
.bp-edge--dashed { stroke: var(--math-blue); stroke-dasharray: 4.5 3.5; stroke-width: 1.15; opacity: .82; }
.macro-blueprint.has-focus .bp-edge { opacity: .16; }
.macro-blueprint.has-focus .bp-edge.is-highlighted { opacity: 1; stroke-width: 2.1; }

.proof-breadcrumb { position: sticky; top: 0; z-index: 25; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; margin-top: .9rem; padding-block: .42rem; border-block: 1px solid var(--line); background: var(--paper); }
.proof-breadcrumb-trail { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .48rem; min-width: 0; }
.proof-rail { display: none; margin-top: .75rem; padding: .75rem .9rem; border: 1px solid var(--line-strong); background: var(--paper); font-size: .84em; line-height: 1.42; }
.proof-rail.is-open { display: block; }
.rail-heading { margin: 0 0 .45rem !important; color: var(--ink-soft); font-size: .92em; }
.rail-group { margin: 0; padding: .28rem 0; border-top: 1px dotted var(--line); border-bottom: 0; }
.rail-group > summary { font-weight: 600; font-size: .94em; }
.rail-sections, .rail-chapters { margin: .25rem 0; padding-inline-start: 0 !important; list-style: none; }
.rail-sections li, .rail-chapters li { padding-block: .14rem; }
.rail-sections a, .rail-chapters a { text-decoration: none; display: inline; }
.rail-sections a:hover, .rail-chapters a:hover { text-decoration: underline; color: var(--copper); }
.rail-sections a.is-active, .rail-chapters li.is-current a { color: var(--copper); font-weight: 600; }
.rail-sec-num { font-variant-numeric: lining-nums tabular-nums; color: var(--ink-soft); margin-right: .15rem; }
.rail-spine { margin-top: .65rem; border-bottom: 0; }

@media (min-width: 72rem) {
  .proof-breadcrumb { position: static; background: transparent; }
  .proof-drawer-toggle { display: none; }
  .chapter-with-rail { display: grid; grid-template-columns: minmax(0, var(--reading-max)) minmax(15rem, 22rem); column-gap: clamp(2rem, 4vw, 4.4rem); align-items: start; }
  .chapter-with-rail > .proof-rail { display: block; position: sticky; top: 1.2rem; max-height: calc(100vh - 2.4rem); overflow-y: auto; margin-top: 0; border: 0; border-left: 1px solid var(--line); padding: .15rem 0 .4rem 1.1rem; }
}

.matrix-wrap { margin-top: 1rem; }
.archive-matrix th, .archive-matrix td { padding: .38rem .48rem .38rem 0; font-variant-numeric: lining-nums tabular-nums; }
.archive-matrix .num-col { text-align: right; padding-inline: .35rem; white-space: nowrap; }
.archive-matrix .zero-cell { color: var(--line-strong); }
.archive-matrix .active-cell a { text-decoration: none; color: var(--copper); font-weight: 600; }
.archive-matrix .active-cell a:hover { text-decoration: underline; }
.archive-matrix .total-col { border-left: 1px solid var(--line); padding-left: .55rem; }
.mod-num { display: inline-block; min-width: 1.45rem; color: var(--ink-soft); font-weight: 400; }
.mod-scope { display: block; font-weight: 400; margin-top: .1rem; }

@media print {
 .proof-breadcrumb, .proof-rail, .proof-drawer-toggle, .chapter-outline { display: none !important; }
 .print-contents figure { width:125mm; max-width:100%; margin:6mm 0; }
 .print-contents figure img { display:block; width:100%; height:auto; }
 .print-contents .figure-caption { font-size:9pt; }
 .print-contents ol { line-height:1.38; }
 .print-contents { margin:0; }
}
