@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/literata-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/literata-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0102-0111, U+0114-0129, U+012C-0140, U+0143-014B, U+014E-0169, U+016C-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/literata-greek-opsz-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/literata-latin-opsz-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/literata-latin-ext-opsz-italic.woff2") format("woff2");
  unicode-range: U+0102-0111, U+0114-0129, U+012C-0140, U+0143-014B, U+014E-0169, U+016C-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/literata-greek-opsz-italic.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/literata-macron-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-0101, U+0112-0113, U+012A-012B, U+0141-0142, U+014C-014D, U+016A-016B;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/literata-macron-opsz-italic.woff2") format("woff2");
  unicode-range: U+0100-0101, U+0112-0113, U+012A-012B, U+0141-0142, U+014C-014D, U+016A-016B;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-next-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-next-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-next-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-next-latin-700-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-next-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-next-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-next-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-next-latin-ext-700-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fbf9f5;
  --paper-2: #f2eee6;
  --ink: #1d1b18;
  --ink-2: #45403a;
  --muted: #6b645a;
  --rule: #ddd6ca;
  --line: #958d7f;
  --mark: #efe3bd;
  --measure: 33.5em;
  --gutter: 1rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161513;
    --paper-2: #201e1b;
    --ink: #e8e3d9;
    --ink-2: #cbc4b7;
    --muted: #a39b8e;
    --rule: #38342f;
    --line: #7d7568;
    --mark: #4b4227;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161513;
  --paper-2: #201e1b;
  --ink: #e8e3d9;
  --ink-2: #cbc4b7;
  --muted: #a39b8e;
  --rule: #38342f;
  --line: #7d7568;
  --mark: #4b4227;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: rgb(128 128 128 / 0.16); background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.0625rem, 0.96rem + 0.42vw, 1.25rem);
  line-height: 1.6;
  font-kerning: normal;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
[id] { scroll-margin-top: 1.5rem; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
sup { font-size: 0.72em; line-height: 0; position: relative; vertical-align: baseline; top: -0.48em; }
mark { background: var(--mark); color: inherit; padding: 0 0.1em; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip { position: absolute; left: var(--gutter); top: -10rem; z-index: 10; background: var(--paper); padding: 0.4rem 0.7rem; }
.skip:focus { top: 0.5rem; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1.5rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.1rem var(--gutter) 0;
  font-size: 0.875rem;
}
.site-title { text-decoration: none; letter-spacing: 0.06em; color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1.25rem; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); }
.site-header { position: relative; }
.text-toggle { min-height: 24px; font: inherit; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
.text-toggle:hover, .text-toggle[aria-expanded="true"] { color: var(--ink); }
.nw { white-space: nowrap; }
.site-footer { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 5rem auto 0; padding: 0 var(--gutter) 3rem; color: var(--muted); }
.site-footer > :first-child { padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.site-footer p { margin: 0 0 0.35rem; font-size: 0.8rem; }

.doc { padding: 0 var(--gutter); }
.doc-body { max-width: var(--measure); margin: 0 auto; }
.doc-head { margin: 3.5rem 0 2.6rem; }
.doc-head h1 { font-size: clamp(1.95rem, 1.45rem + 2vw, 2.7rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.005em; margin: 0 0 0.9rem; }
.kicker { display: block; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); line-height: 1.4; margin-bottom: 0.9rem; }
.doc-title { display: block; }
.doc-meta, .legend { font-size: 0.85rem; color: var(--muted); margin: 0; }
.legend { margin-top: 0.9rem; }

.prose p { margin: 0; text-indent: 1.4em; hanging-punctuation: first; }
.prose > p:first-child, .prose .hx + p, .prose .salutation + p { text-indent: 0; }
.prose .hx { position: relative; }
.prose .hx2 { margin: 2.6em 0 0.9em; }
.prose .hx3 { margin: 1.9em 0 0.6em; }
.prose h2 { font-size: 1.3em; font-weight: 400; line-height: 1.3; margin: 0; }
.prose h3 { font-size: 1.05em; font-style: italic; font-weight: 400; line-height: 1.35; margin: 0; }
.prose ol, .prose ul { margin: 1em 0; padding-left: 1.6em; }
.prose li { margin: 0.35em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--muted); }

.np { position: relative; }
.pnum, .hanchor {
  position: absolute;
  text-align: right;
  text-indent: 0;
  text-decoration: none;
  color: var(--muted);
  opacity: 0;
  -webkit-user-select: none;
  user-select: none;
}
.pnum { left: -3.6rem; width: 2.8rem; top: 0; font-size: 0.68em; line-height: 2.353; font-style: normal; font-variant-numeric: tabular-nums; }
.hanchor { left: -2.2rem; width: 1.4rem; top: 0; font-size: 0.85rem; line-height: inherit; font-style: normal; }
.np:hover > .pnum, .pnum:focus-visible, .np:target > .pnum, .show-pnums .pnum,
.hx:hover > .hanchor, .hanchor:focus-visible, .bib-entry:hover > .hanchor, .bib-entry:target > .hanchor { opacity: 1; }
:root:has(#show-pnums:checked) .pnum { opacity: 1; }
.np:target, .bib-entry:target, .change:target { background: var(--paper-2); box-shadow: -0.5em 0 0 var(--paper-2), 0.5em 0 0 var(--paper-2); }
.pnum-toggle { font-size: 0.85rem; color: var(--muted); margin: 0.9rem 0 0; }
.pnum-toggle input { accent-color: var(--ink); margin: 0 0.45em 0 0; vertical-align: -0.1em; }

@media (max-width: 55.99rem) {
  .pnum { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 1; }
  .pnum:focus-visible, .show-pnums .pnum, .np:target > .pnum {
    position: static; width: auto; height: auto; overflow: visible; clip-path: none; margin-right: 0.45em; line-height: inherit;
  }
  :root:has(#show-pnums:checked) .pnum { position: static; width: auto; height: auto; overflow: visible; clip-path: none; margin-right: 0.45em; line-height: inherit; }
  .prose .hx { display: flex; align-items: baseline; gap: 0.6em; }
  .prose .hx > :first-child { flex: 1; }
  .prose .hanchor { position: static; opacity: 0.55; }
}
@media (hover: none) and (min-width: 56rem) {
  .hanchor { opacity: 0.55; }
}

.figure { margin: 2.4em 0; }
.figure-svg { display: block; width: 100%; max-width: 26rem; height: auto; margin: 0 auto; font-family: inherit; }
.fig-ink { stroke: var(--ink); fill: none; }
.fig-faint { stroke: var(--line); fill: none; }
.fig-text, .fig-dot { fill: var(--ink); }
.fig-muted { fill: var(--muted); }
.figure figcaption { max-width: 26rem; margin: 1.1em auto 0; font-size: 0.85rem; line-height: 1.5; color: var(--ink-2); }
.figure-label { letter-spacing: 0.02em; }

.outline { display: none; }
.outline ol { list-style: none; margin: 0; padding: 0; }
.outline ol ol { padding-left: 0.9rem; }
.outline a { display: block; min-height: 24px; padding: 0.2rem 0 0.2rem 0.7rem; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.outline a:hover { color: var(--ink); }
.outline a[aria-current="true"] { color: var(--ink); border-left-color: var(--ink); }
.outline-title { margin: 0 0 0.5rem 0.7rem; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.outline-inline { margin: 1.6rem 0 0; font-size: 0.9rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.outline-inline summary { cursor: pointer; padding: 0.55rem 0; color: var(--ink-2); }
.outline-inline nav { padding: 0 0 0.8rem; }
.outline-inline ol { list-style: none; margin: 0; padding: 0; }
.outline-inline ol ol { padding-left: 1rem; }
.outline-inline a { display: block; padding: 0.2rem 0; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.outline-inline a:hover { text-decoration: underline; }
@media (min-width: 80rem) {
  .doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr); }
  .doc-grid > .doc-body { grid-column: 2; grid-row: 1; margin: 0; max-width: none; }
  .doc-grid > .outline {
    display: block;
    grid-column: 1; grid-row: 1;
    justify-self: end; align-self: start;
    width: 12.5rem;
    margin: 13rem 4rem 0 0;
    position: sticky; top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    font-size: 0.8rem;
  }
  .outline-inline { display: none; }
}

.note-ref { margin-left: 0.08em; font-size: 0.68em; line-height: 0; vertical-align: super; font-variant-numeric: lining-nums; text-decoration: none; }
.note-ref:hover { text-decoration: underline; }
.note { display: none; }
.note:target, .note.is-open {
  display: block; margin: 0.55em 0 0.75em; padding: 0.6em 0.85em;
  border-left: 2px solid var(--rule); background: var(--paper-2);
  font-size: 0.82rem; line-height: 1.5; font-style: normal; text-indent: 0; color: var(--ink-2);
}
.note-n { margin-right: 0.25em; color: var(--muted); font-variant-numeric: tabular-nums; }
.note-p { display: block; }
.note-p + .note-p { margin-top: 0.45em; }
.note-n + .note-p { display: inline; }
.note-back { display: block; margin-top: 0.4em; font-size: 0.75rem; color: var(--muted); }
@media (min-width: 80rem) {
  .note, .note:target, .note.is-open {
    display: block; float: right; clear: right;
    width: 12.5rem; margin: 0.2em -15rem 0.8em 0; padding: 0;
    border: 0; background: none;
    font-size: 0.78rem; line-height: 1.45; font-style: normal; text-indent: 0; color: var(--ink-2);
  }
  .note:target, .note.is-flash { box-shadow: -0.4em 0 0 var(--paper-2), 0.4em 0 0 var(--paper-2); background: var(--paper-2); }
  .note-back { display: none; }
}
.mm { font-style: normal; text-indent: 0; }
.mm-side { display: none; }
.mm-k { font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.mm a { text-decoration-color: var(--rule); }
.mm a:hover { text-decoration-color: currentColor; }
.mm-end .mm-x { display: block; width: fit-content; margin: 0.5em 0 0.15em; font-size: 0.8rem; line-height: 1.45; color: var(--ink-2); text-decoration: none; }
.mm-end .mm-x .mm-t { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
@media (min-width: 80rem) {
  .mm-side { display: block; float: right; clear: right; width: 12.5rem; margin: 0.3em -15rem 0.8em 0; font-size: 0.78rem; line-height: 1.4; color: var(--ink-2); }
  .mm-end { display: none; }
  .mm-side > a { display: block; margin-bottom: 0.7em; }
  .mm-side .mm-k { display: block; margin-bottom: 0.1em; }
  .mm-side .mm-c, .mm-side .mm-x { text-decoration: none; }
  .mm-side .mm-c .mm-t, .mm-side .mm-x .mm-t { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
  .mm-side .mm-c:hover .mm-t, .mm-side .mm-x:hover .mm-t { text-decoration-color: currentColor; }
  .mm-side .mm-c .mm-k::before { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin: 0 0.5em 0.1em 0.1em; border: 1px solid var(--muted); transform: rotate(45deg); }
}
.table-wrap { margin: 1.4em 0; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.85rem; line-height: 1.45; }
.prose th, .prose td { padding: 0.4em 0.7em 0.4em 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose thead th { border-bottom-color: var(--line); font-weight: 600; }
.prose .ta-right { text-align: right; }
.prose .ta-center { text-align: center; }

.part-contents { margin: 3rem 0 0; }
.part-contents h2 { margin: 0 0 0.9rem; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.part-contents ol { list-style: none; margin: 0; padding: 0; }
.part-contents li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: 0.7rem; margin: 0 0 0.55rem; }
.part-contents li > a { grid-column: 2; text-decoration: none; }
.part-contents li > a:hover { text-decoration: underline; }
.part-num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.part-story > a { font-style: italic; }

.pager { display: flex; justify-content: space-between; gap: 1.5rem; margin: 4rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--rule); font-size: 0.9rem; }
.pager a { max-width: 48%; text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager a[rel="next"] { margin-left: auto; text-align: right; }
.pager-dir { display: block; margin-bottom: 0.15rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.versions h2 { font-size: 1rem; font-weight: 400; margin: 3rem 0 0.5rem; }
.versions ul { margin: 0; padding-left: 1.2em; font-size: 0.9rem; }
.version-notice { margin: 2.5rem 0 0; padding: 0.8rem 1rem; border: 1px solid var(--rule); background: var(--paper-2); font-size: 0.9rem; }

.letter p { text-indent: 0; margin: 0 0 1em; }
.letter .salutation { font-style: italic; margin: 0 0 1.3em; }
.letter-second { position: relative; margin-top: 3.4em; padding-top: 3.4em; }
.letter-second::before { content: ""; position: absolute; top: 0; left: 50%; width: 2.5em; margin-left: -1.25em; border-top: 1px solid var(--rule); }
.letter .closing { margin: 2.6em 0 0; text-align: right; font-style: italic; }

.doc-commitments .prose p { text-indent: 0; margin: 0 0 1.1em; }
a.cite-n { padding: 0.3em 0.55em; margin: 0 -0.55em; }
a.cite-n:focus-visible { outline-offset: -0.3em; }
.forthcoming {
  color: var(--muted);
  text-decoration: underline dotted;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: help;
}

.bib-list { list-style: none; margin: 0; padding: 0; }
.bib-entry { position: relative; margin: 0 0 1em; padding-left: 1.6em; text-indent: -1.6em; }
.bib-entry .hanchor { left: -2.4rem; text-indent: 0; }
@media (max-width: 55.99rem) {
  .bib-entry .hanchor { position: static; margin-left: 0.4em; opacity: 0.55; }
}
.bib-note { display: block; margin-top: 0.3em; text-indent: 0; font-size: 0.9em; line-height: 1.5; color: var(--ink-2); }

.toc-list { list-style: none; margin: 0 0 2.4rem; padding: 0; }
.toc-item { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: 0.7rem; margin: 0 0 1.4rem; }
.toc-num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc-title { margin: 0; }
.toc-title a { text-decoration: none; }
.toc-title a:hover { text-decoration: underline; }
.toc-revised { font-size: 0.78rem; font-style: italic; color: var(--muted); }
.toc-time { margin: 0.1rem 0 0; font-size: 0.8rem; color: var(--muted); }
.toc-sections { margin: 0.35rem 0 0; font-size: 0.85rem; line-height: 1.6; color: var(--muted); }
.toc-sections a { color: var(--ink-2); text-decoration-color: var(--rule); }
.toc-part-title { margin: 2.8rem 0 1.5rem 2.9rem; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.toc-part-name { display: block; margin-top: 0.4rem; font-size: 1.35rem; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--ink); }
.toc-part-title a, .toc-volume-title a { text-decoration: none; }
.toc-part-title a:hover .toc-part-name { text-decoration: underline; text-decoration-color: var(--line); }
.toc-volume { margin: 3.6rem 0 0; }
.toc-volume-title { margin: 0 0 2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.toc-volume-name { display: block; margin-top: 0.45rem; font-size: 1.6rem; line-height: 1.25; letter-spacing: 0; text-transform: none; color: var(--ink); }
.toc-volume > .toc-part:first-of-type .toc-part-title { margin-top: 2.2rem; }
.toc-story .toc-title { font-style: italic; }
.toc-volume + .toc-back { margin-top: 3.6rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.toc-downloads { margin: 2.5rem 0 0 2.9rem; font-size: 0.9rem; color: var(--ink-2); }
.toc-more { margin: 0.4rem 0 0 2.9rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.toc-more p { margin: 0 0 1.1rem; }
.toc-more a { text-decoration: none; }
.toc-more a:hover { text-decoration: underline; text-decoration-color: var(--line); }
.toc-more-gloss { display: block; font-size: 0.8rem; color: var(--muted); }

.gl-letters ul { display: flex; flex-wrap: wrap; gap: 0.2rem 0.4rem; list-style: none; margin: 0 0 2.4rem; padding: 0; }
.gl-letters a { display: inline-block; min-width: 1.75rem; min-height: 1.75rem; padding: 0.15rem 0.35rem; text-align: center; text-decoration: none; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 2px; font-size: 0.85rem; }
.gl-letters a:hover { border-color: var(--line); color: var(--ink); }
.glossary { margin: 0; }
.gl-entry { margin: 0 0 2.2rem; }
.gl-entry dt { margin: 0 0 0.45rem; font-size: 1.35rem; line-height: 1.3; }
.gl-entry dfn { font-style: normal; }
.gl-entry dd { margin: 0; }
.gl-def { margin: 0 0 0.8rem; }
.gl-in { margin: 0 0 0.4rem; font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.gl-quote { margin: 0 0 0.25rem; padding-left: 1rem; border-left: 1px solid var(--rule); font-size: 0.92rem; color: var(--ink-2); }
.gl-quote p { margin: 0; }
.gl-source { margin: 0 0 0.9rem 1rem; font-size: 0.8rem; color: var(--muted); }
.gl-source a { color: inherit; }
.gl-see { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--ink-2); }
.gl-entry:target dt { background: var(--paper-2); box-shadow: -0.5em 0 0 var(--paper-2), 0.5em 0 0 var(--paper-2); }
.explore-intro p { margin: 0 0 1.6rem; }
.explore h2 { margin: 2.8rem 0 1rem; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.cf fieldset { min-width: 0; margin: 0 0 1.5rem; padding: 0; border: 0; }
.cf legend { margin: 0 0 0.5rem; padding: 0; font-size: 1.02rem; }
.cf-choice { display: block; margin: 0.3rem 0; padding-left: 1.7em; text-indent: -1.7em; line-height: 1.45; cursor: pointer; }
.cf-choice input { width: 1.05em; height: 1.05em; margin: 0 0.6em 0 0; vertical-align: -0.12em; accent-color: var(--ink); }
.cf-field { display: block; margin: 0.4rem 0 0.9rem 1.7em; font-size: 0.9rem; }
.cf-field > span:first-child { display: block; margin-bottom: 0.2rem; color: var(--ink-2); }
.cf select, .cf input[type="number"] { max-width: 100%; min-height: 2.1rem; padding: 0.25rem 0.4rem; font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; }
.cf input[type="number"] { width: 12rem; }
.cf-functional { display: block; }
.cf-functional[hidden], .cf-custom[hidden] { display: none; }
.cf-reset button, .cs-use, .lad-stop, .lad-set { min-height: 2.1rem; padding: 0.3rem 0.85rem; font: inherit; font-size: 0.88rem; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
.cf-reset button:hover, .cs-use:hover, .lad-stop:hover, .lad-set:hover, .lad-step:hover { border-color: var(--ink); }
.cost-out { margin: 0.6rem 0 0; padding: 0.2rem 0 0.2rem 1rem; border-left: 2px solid var(--line); scroll-margin-top: 1.5rem; }
.cost-out:focus { outline: none; }
.cost-out:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.cost-out p { margin: 0 0 0.7rem; }
.cost-match { font-size: 0.88rem; color: var(--ink-2); }
.cs-list { list-style: none; margin: 0; padding: 0; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.cost-table caption { caption-side: bottom; padding-top: 0.7rem; text-align: left; font-size: 0.8rem; color: var(--muted); }
.cost-table th, .cost-table td { padding: 0.45em 0.7em 0.45em 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-weight: 400; }
.cost-table thead th { border-bottom-color: var(--line); color: var(--ink-2); font-size: 0.8rem; }
.cost-table tbody th { color: var(--ink); }
@media (max-width: 30rem) {
  .cost-table { display: flex; flex-direction: column; }
  .cost-table caption { order: 1; display: block; }
  .cost-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cost-table tbody, .cost-table tr, .cost-table th { display: block; }
  .cost-table tbody { border-top: 1px solid var(--line); }
  .cost-table tr { padding: 0.5rem 0 0.4rem; border-bottom: 1px solid var(--rule); }
  .cost-table th, .cost-table td { padding: 0.1rem 0; border: 0; }
  .cost-table td { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
  .cost-table td::before { content: attr(data-label); color: var(--muted); }
  .cost-table td > span { flex: none; white-space: nowrap; }
}
.cf-choice:has(input:disabled) { color: var(--muted); cursor: default; }
.cs { margin: 0 0 2.2rem; }
.cs-title { margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 400; font-style: italic; }
.cs-quote { margin: 0 0 0.25rem; padding-left: 1rem; border-left: 1px solid var(--rule); }
.cs-quote p, .rung-quote p, .lad-quote p { margin: 0; }
.cs-source, .rung-src { margin: 0 0 0.6rem 1rem; font-size: 0.8rem; color: var(--muted); }
.cs-source a, .rung-src a { color: inherit; }
.cs-model { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--ink-2); }
.cs-model-k { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 0.3em; }
.cs-load { margin: 0; }
.cs:target .cs-title { background: var(--paper-2); box-shadow: -0.5em 0 0 var(--paper-2), 0.5em 0 0 var(--paper-2); }
.explore-callout { margin: 0 0 2.4rem; padding: 1rem 1.1rem 0.4rem; background: var(--paper-2); border-left: 3px solid var(--ink); }
.explore-callout h2 { margin: 0 0 0.6rem; color: var(--ink); }
.explore-callout > p:first-of-type { margin: 0 0 0.9rem; }
.explore-callout .cs-quote { font-size: 0.95rem; }
.explore-notes ul { margin: 0; padding-left: 1.2em; font-size: 0.88rem; color: var(--ink-2); }
.explore-notes li { margin: 0 0 0.5rem; }
.explore-note { font-size: 0.9rem; color: var(--muted); }
.rung-title { margin: 0 0 0.35rem; font-size: 1.02rem; }
.rung-size { display: block; font-size: 0.8rem; color: var(--muted); }
.rung-quote { margin: 0 0 0.25rem; padding-left: 1rem; border-left: 1px solid var(--rule); font-size: 0.95rem; }
.explore-intro .rung-quote { margin-top: -0.4rem; }
.lad { margin: 2.6rem 0 0; }
.lad-grid {
  display: grid; grid-template-columns: 15rem minmax(0, 1fr); column-gap: 1.8rem; align-items: start;
  grid-template-areas: "fig now" "fig verdict" "controls controls";
}
.lad-figure { grid-area: fig; margin: 0 0 0.6rem; }
.lad-panel { grid-area: now; }
.lad-verdicts { grid-area: verdict; }
.lad-controls { grid-area: controls; margin: 0.8rem 0 0; }
.lad-svg { display: block; width: 100%; height: auto; font-family: inherit; }
.lad-rail { stroke: var(--ink); stroke-width: 1.2; }
.lad-rung { stroke: var(--line); stroke-width: 0.8; }
.lad-major { stroke: var(--ink); stroke-width: 1; }
.lad-scale { fill: var(--muted); font-size: 10.5px; }
.lad-sup { font-size: 7.5px; }
.lad-dot { fill: var(--ink); }
.lad-name { fill: var(--ink-2); font-size: 11.5px; }
.lad-floor-g { display: none; }
.lad.is-live .lad-floor-g { display: inline; }
.lad-below { fill: var(--paper); fill-opacity: 0.78; }
.lad-name.lad-out { fill: var(--muted); font-style: italic; }
.lad-dot.lad-out { fill: var(--paper); stroke: var(--muted); stroke-width: 1; }
.lad-stop[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.lad-floor { stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; }
.lad-now { margin: 0 0 0.6rem; }
.lad-len { display: block; font-size: 1.7rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.lad-what { display: block; min-height: 1.5em; font-style: italic; color: var(--ink-2); }
.lad-count { margin: 0 0 1.1rem; font-size: 0.95rem; color: var(--ink-2); }
.lad-quote { margin: 0 0 0.25rem; padding-left: 1rem; border-left: 2px solid var(--ink); font-size: 0.95rem; }
.lad-label { display: block; margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--ink-2); }
.lad-slider { display: flex; align-items: center; gap: 0.6rem; }
.lad-slider input { flex: 1; min-width: 0; height: 2.4rem; margin: 0; accent-color: var(--ink); cursor: pointer; }
.lad-step { flex: none; width: 2.5rem; height: 2.5rem; padding: 0; font: inherit; font-size: 1.25rem; line-height: 1; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
.lad-ends { display: flex; justify-content: space-between; margin: 0 3.1rem 1rem; font-size: 0.78rem; color: var(--muted); }
.lad-stops { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0; }
.lad-stops-k { margin-right: 0.2rem; font-size: 0.88rem; color: var(--muted); }
.lad-list { list-style: none; margin: 0; padding: 0; }
.lad-mark { margin: 0 0 2rem; padding-left: 1rem; border-left: 1px solid var(--rule); scroll-margin-top: 1rem; }
.lad-mark.is-floor { border-left: 3px solid var(--ink); padding-left: calc(1rem - 2px); }
.lad-mark.is-below { border-left-style: dashed; }
.lad-mark.is-below .rung-title, .lad-mark.is-below .rung-quote { color: var(--muted); }
.lad-mark .rung-quote { padding-left: 0; border-left: 0; }
.lad-mark .rung-src { margin-left: 0; }
.lad-mark-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted); }
.lad-mark:target .rung-title { background: var(--paper-2); box-shadow: -0.5em 0 0 var(--paper-2), 0.5em 0 0 var(--paper-2); }
@media (max-width: 34rem) {
  .lad-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "fig" "controls" "now" "verdict"; }
  .lad-figure { width: min(15rem, 100%); margin: 0 auto 0.4rem; }
  .lad-controls { margin: 0 0 1.4rem; }
}
.change-day h2 { margin: 2.4rem 0 0.8rem; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.change-list { list-style: none; margin: 0; padding: 0; }
.change { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); column-gap: 0.6em; align-items: baseline; margin: 0 0 0.8rem; }
.change-kind { font-size: 0.85em; color: var(--muted); }
.change-summary { grid-column: 2; margin: 0.2rem 0 0; font-size: 0.9em; color: var(--ink-2); }

.home { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.home-title { margin: 5rem 0 2.2rem; font-weight: 400; line-height: 1.1; }
.home-name { display: block; font-size: min(clamp(2.5rem, 1.8rem + 3.2vw, 3.7rem), 11.5vw); letter-spacing: 0.01em; }
.home-sub { display: block; margin-top: 0.7rem; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem); font-style: italic; color: var(--ink-2); line-height: 1.3; }
.home-desc { margin: 0 0 2.8rem; }
.epigraph { margin: 0 0 2.6rem; padding-left: 1.4rem; font-size: 0.95rem; line-height: 1.55; color: var(--ink-2); }
.epigraph blockquote { margin: 0; font-style: italic; }
.epigraph blockquote em { font-style: normal; }
.epigraph p { margin: 0; }
.epigraph p + p { margin-top: 0.8em; }
.ep-line { display: block; padding-left: 1.6em; text-indent: -1.6em; }
.ep-in1 { padding-left: 3.2em; }
.ep-in2 { padding-left: 4.8em; }
.ep-in3 { padding-left: 6.4em; }
.epigraph br { display: none; }
.epigraph figcaption { margin-top: 0.85rem; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.home-links ul { list-style: none; margin: 0 0 3rem; padding: 0; border-top: 1px solid var(--rule); }
.home-links li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.home-links a { text-decoration: none; }
.home-links a:hover { text-decoration: underline; }
.home-gloss { margin-left: 0.35em; font-size: 0.9em; font-style: italic; color: var(--muted); }
.home-latest h2 { margin: 0 0 0.6rem; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.home-latest-title { margin: 0; }
.home-latest-meta { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--muted); }
.home-downloads { margin: 3rem 0 0; font-size: 0.95rem; color: var(--ink-2); }
.resume { margin: 0 0 2.4rem; font-style: italic; }
.doc-contents .resume { margin: 0 0 2rem 2.9rem; }

.search-form label { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.search-row { display: flex; gap: 0.8rem; align-items: center; }
.search-form input { flex: 1; min-width: 0; padding: 0.35rem 0; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.search-form button { padding: 0.3rem 0.9rem; font: inherit; font-size: 0.9rem; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
.search-form button:hover { border-color: var(--ink); }
.search-status { margin: 1.3rem 0; font-size: 0.9rem; color: var(--muted); }
.search-filters { margin: 1rem 0 0; font-size: 0.88rem; }
.search-filters summary { cursor: pointer; min-height: 24px; color: var(--ink-2); }
.search-form .sf-choice label { display: inline; margin: 0; font-size: inherit; color: var(--ink-2); }
.sf-groups { display: flex; flex-wrap: wrap; gap: 0.4rem 2.4rem; margin: 0.8rem 0 0; }
.sf-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.sf-group legend { margin: 0 0 0.35rem; padding: 0; font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.sf-choice { margin: 0 0 0.3rem; }
.sf-choice input { accent-color: var(--ink); margin: 0 0.45em 0 0; vertical-align: -0.1em; }
.sf-actions { margin: 0.6rem 0 0; }
.search-form .sf-clear { padding: 0; font: inherit; font-size: 0.82rem; color: var(--ink-2); background: none; border: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; min-height: 24px; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-result { margin: 0 0 1.9rem; }
.search-result h2 { margin: 0 0 0.3rem; font-size: 1.05em; font-weight: 400; }
.search-sections { list-style: none; margin: 0.3rem 0 0; padding: 0 0 0 1rem; border-left: 1px solid var(--rule); font-size: 0.95rem; }
.search-excerpt { margin: 0.15rem 0 0.7rem; font-size: 0.9rem; color: var(--ink-2); }

.text-panel {
  position: absolute; z-index: 40; top: calc(100% + 0.5rem); right: var(--gutter);
  width: min(23rem, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - 6rem); max-height: calc(100dvh - 6rem); overflow-y: auto;
  padding: 1rem 1.1rem 0.9rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.14);
  font-size: 0.9rem; line-height: 1.45;
}
.tp-group { margin: 0 0 0.95rem; padding: 0; border: 0; min-width: 0; }
.tp-group legend { margin: 0 0 0.4rem; padding: 0; font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.tp-choice { position: relative; display: inline-block; margin: 0 0.3rem 0.35rem 0; }
.tp-choice input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tp-choice span { display: inline-block; min-height: 2.1rem; padding: 0.32rem 0.7rem; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-2); }
.tp-choice input:hover + span { border-color: var(--ink-2); }
.tp-choice input:checked + span { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tp-choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.tp-choice input[value="legible"] + span { font-family: "Atkinson Hyperlegible Next", Verdana, sans-serif; }
.tp-remember { margin: 0.2rem 0 0.3rem; }
.tp-remember input, .keys-switch input { accent-color: var(--ink); margin: 0 0.45em 0 0; vertical-align: -0.1em; }
.tp-note { margin: 0 0 0.85rem; font-size: 0.78rem; color: var(--muted); }
.tp-place { margin-top: 0.4rem; }
.tp-actions, .keys-actions, .offline-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; }
.tp-close { margin-left: auto; }
.tp-keys { margin: 0.7rem 0 0; }
.tp-keys button { padding: 0; font: inherit; font-size: 0.82rem; color: var(--ink-2); background: none; border: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; min-height: 24px; }
.tp-keys button:hover { color: var(--ink); text-decoration-color: currentColor; }
@media (hover: none) and (pointer: coarse) {
  .tp-keys { display: none; }
}

.tp-actions button, .keys-actions button, .offline-actions button, .doc-actions button,
.hits-bar button, .speech-bar button {
  min-height: 2.1rem; padding: 0.3rem 0.85rem;
  font: inherit; font-size: 0.86rem; line-height: 1.3; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
}
.tp-actions button:hover, .keys-actions button:hover, .offline-actions button:hover, .doc-actions button:hover,
.hits-bar button:hover, .speech-bar button:hover { border-color: var(--ink); }

:root[data-size="s"] { font-size: 90%; }
:root[data-size="l"] { font-size: 112.5%; }
:root[data-size="xl"] { font-size: 125%; }
:root[data-spacing="close"] body { line-height: 1.45; }
:root[data-spacing="loose"] body { line-height: 1.9; word-spacing: 0.05em; }
:root[data-spacing="loose"] .prose li { margin: 0.6em 0; }
:root[data-measure="narrow"] { --measure: 28em; }
:root[data-measure="wide"] { --measure: 40em; }
:root[data-face="legible"] body { font-family: "Atkinson Hyperlegible Next", Verdana, Tahoma, sans-serif; }

.doc-actions { margin: 1rem 0 0; }
.doc-actions[hidden] { display: none; }

.toll { margin: 3.2rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--rule); font-size: 0.86rem; line-height: 1.55; color: var(--muted); font-variant-numeric: tabular-nums; }
.toll a { color: inherit; }

.offline { margin: 3rem 0 0 2.9rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.offline h2 { margin: 0 0 0.8rem; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.offline-status { margin: 0 0 0.9rem; font-size: 0.9rem; color: var(--ink-2); }

mark.search-hit { padding: 0; background: var(--mark); }
mark.search-hit.is-current { outline: 2px solid var(--ink); outline-offset: 1px; border-radius: 1px; }
.np.is-current, .np.is-speaking { background: var(--paper-2); box-shadow: -0.5em 0 0 var(--paper-2), 0.5em 0 0 var(--paper-2); }
::highlight(speech) { background-color: var(--mark); color: var(--ink); }

.hits-bar, .speech-bar {
  position: fixed; z-index: 30; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: calc(100vw - 1.5rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 8px 26px rgb(0 0 0 / 0.16);
  font-size: 0.85rem; line-height: 1.4;
}
.hits-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; width: max-content; padding: 0.5rem 0.7rem; }
.hits-count { margin: 0; color: var(--ink-2); }
.hits-buttons { display: flex; gap: 0.4rem; margin: 0; }
.speech-bar { width: min(40rem, calc(100vw - 1.5rem)); padding: 0.65rem 0.8rem 0.55rem; }
.speech-bar[hidden] { display: none; }
.sp-status { margin: 0 0 0.5rem; color: var(--ink-2); }
.sp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.sp-field { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); }
.sp-field[hidden] { display: none; }
.sp-field select { min-height: 2.1rem; max-width: 12rem; padding: 0.2rem 0.3rem; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; }
.sp-stop { margin-left: auto; }
.is-listening body { padding-bottom: 10rem; }
.has-hits .speech-bar { bottom: 5.5rem; }
@media (max-width: 40rem), (max-height: 30rem) {
  .hits-bar, .speech-bar {
    left: 0; right: 0; bottom: 0; transform: none; width: auto; max-width: none;
    padding: 0.55rem var(--gutter) max(0.6rem, env(safe-area-inset-bottom));
    border-width: 1px 0 0; border-radius: 0; box-shadow: 0 -4px 18px rgb(0 0 0 / 0.1);
  }
  .sp-status { margin-bottom: 0.45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .is-listening body { padding-bottom: 10rem; }
  .has-hits body { padding-bottom: 6rem; }
  .has-hits .speech-bar { bottom: var(--hits-h, 5.5rem); }
}
@media (max-width: 40rem) {
  .hits-bar { display: block; }
  .hits-count { margin-bottom: 0.4rem; }
  .hits-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
  .sp-controls > button { padding-left: 0.2rem; padding-right: 0.2rem; }
  .sp-prev, .sp-play, .sp-next, .sp-stop { grid-row: 1; }
  .sp-stop { grid-column: 4; margin-left: 0; }
  .sp-field { grid-row: 2; grid-column: span 2; min-width: 0; }
  .sp-controls:has(.sp-voices[hidden]) .sp-speed { grid-column: 1 / -1; }
  .sp-field select { flex: 1; min-width: 0; max-width: none; }
}
@media (max-height: 30rem) and (min-width: 40.01rem) {
  .hits-bar { justify-content: space-between; padding-top: 0.4rem; padding-bottom: max(0.4rem, env(safe-area-inset-bottom)); }
  .speech-bar { padding-top: 0.4rem; padding-bottom: max(0.45rem, env(safe-area-inset-bottom)); }
  .sp-status { margin-bottom: 0.35rem; }
  .sp-controls { flex-wrap: nowrap; }
  .is-listening body { padding-bottom: 6.5rem; }
  .has-hits body { padding-bottom: 4rem; }
}

.keys-dialog {
  width: min(30rem, calc(100vw - 2rem)); padding: 1.4rem 1.5rem 1.1rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 14px 44px rgb(0 0 0 / 0.22);
}
.keys-dialog::backdrop { background: rgb(0 0 0 / 0.38); }
.keys-dialog h2 { margin: 0 0 0.9rem; font-size: 1.15rem; font-weight: 400; }
.keys-list { margin: 0 0 1rem; font-size: 0.9rem; }
.keys-list div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.8rem; padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }
.keys-list dt, .keys-list dd { margin: 0; }
.keys-list dd { color: var(--ink-2); }
kbd { display: inline-block; min-width: 1.7em; padding: 0 0.35em; font-family: inherit; font-size: 0.85em; line-height: 1.55; text-align: center; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; }
.keys-switch { margin: 0 0 0.2rem; font-size: 0.88rem; }
.keys-note { margin: 0 0 1rem; font-size: 0.78rem; color: var(--muted); }

.nf-opening { margin: 14vh 0 9vh; }
.nf-opening blockquote { margin: 0; }
.nf-opening p { margin: 0; font-size: 1.3em; line-height: 1.45; font-style: italic; color: var(--ink-2); }
.nf-opening figcaption { margin-top: 1rem; font-size: 0.8rem; color: var(--muted); }
.nf-opening figcaption a { color: inherit; }
.doc-notfound .doc-head { margin-top: 0; }

.whole-sub { margin: -0.4rem 0 1rem; font-size: 1.1rem; font-style: italic; color: var(--ink-2); }
.doc-whole .epigraph { margin-top: 2.4rem; }
.whole-toc { margin: 0 0 3rem; padding: 1.2rem 0 0.4rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.whole-toc h2 { margin: 0 0 0.8rem; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.whole-toc ol { list-style: none; margin: 0 0 0.8rem; padding: 0; font-size: 0.92rem; }
.whole-toc li { margin: 0 0 0.35rem; }
.whole-toc a { text-decoration-color: var(--rule); }
.whole-toc-volume, .whole-toc-part { margin-top: 0.9rem !important; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.whole-toc-volume a, .whole-toc-part a { color: var(--muted); text-decoration: none; }
.whole-toc-doc { padding-left: 1.2rem; }
.whole-toc-doc + .whole-toc-back { margin-top: 0.9rem !important; }
.whole-divider { margin: 5rem 0 2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.whole-name { display: block; margin-top: 0.45rem; font-size: 1.5rem; font-style: italic; line-height: 1.25; letter-spacing: 0; text-transform: none; color: var(--ink); }
.whole-part { border-top: 0; padding-top: 0; }
.whole-doc { margin: 0 0 4rem; }
.whole-heading { margin: 3.6rem 0 1.6rem; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); font-weight: 400; line-height: 1.2; }
.whole-title { display: block; }
.whole-opening { margin: 0 0 3rem; }
.whole-back-link { margin: 2.4rem 0 0; font-size: 0.82rem; }
.whole-back-link a { color: var(--muted); }
.whole-story .whole-title { font-style: italic; }
.whole-work .prose h3 { margin: 2.6em 0 0.9em; font-size: 1.3em; font-style: normal; font-weight: 400; line-height: 1.3; }
.whole-work .prose h4 { margin: 1.9em 0 0.6em; font-size: 1.05em; font-style: italic; font-weight: 400; line-height: 1.35; }
.prose :is(h2, h3, h4) + p { text-indent: 0; }

@media print {
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --paper: #fff; --paper-2: #fff; --ink: #000; --ink-2: #222; --muted: #555; --rule: #bbb; --line: #888;
    color-scheme: light;
  }
  @page { margin: 2cm 2.2cm; }
  body { font-size: 10.5pt; line-height: 1.45; }
  .site-header, .site-footer, .outline, .outline-inline, .pnum-toggle, .pager, .pnum, .hanchor,
  .skip, .text-toggle, .search-form, .legend, .resume, .home-links, .home-downloads, .part-contents, .mm, .gl-letters, .cost-calc, .cs-load, .lad-controls, .lad-mark-foot,
  .whole-toc, .whole-back-link, .text-panel, .speech-bar, .hits-bar, .doc-actions, .toll, .offline, .keys-dialog { display: none !important; }
  mark.search-hit, .np.is-current, .np.is-speaking { background: none; box-shadow: none; outline: none; }
  .doc, .home { padding: 0; }
  .doc-body, .home { max-width: none; }
  .doc-head { margin: 0 0 1.6rem; }
  a { text-decoration: none; }
  .forthcoming { text-decoration: none; font-style: italic; }
  .prose p { orphans: 3; widows: 3; }
  .hx, h1, h2, h3 { break-after: avoid; }
  .whole-divider, .whole-doc { break-before: page; }
  .whole-divider + .whole-doc { break-before: avoid; }
  .figure, .bib-entry { break-inside: avoid; }
  .np:target, .bib-entry:target, .change:target { background: none; box-shadow: none; }
  .note { display: block !important; float: none !important; width: auto !important; margin: 0.35em 0 0.6em !important; padding: 0 0 0 0.8em !important; border-left: 1px solid #bbb !important; background: none !important; box-shadow: none !important; font-size: 0.85em !important; }
  .note-back { display: none !important; }
  .table-wrap { overflow: visible; }
}
