/* Folio's typesetting, scoped to `.folio`.
 *
 * GENERATED from Resources/app.css by package/build.sh — do not edit. Every
 * rule is confined to a `.folio` root so this can be linked from a host page
 * without touching the host's own elements, which `folio.css` would.
 *
 * Use it when Folio's HTML is rendered at build time and lives in the page:
 *
 *   const html = FolioMarkdown.render(markdown);   // no DOM needed
 *   `<div class="folio"><article class="content">${html}</article></div>`
 *
 * `.folio` is the page root's stand-in, so it paints Folio's paper and carries
 * the palette; `theme` is `data-folio-theme="light|dark"` on it (`<folio-doc>`
 * spells the same thing `theme="…"`), and `--folio-measure` still works.
 *
 * This is the document half of Folio's stylesheet — the same rules the
 * component inlines. The reader chrome (scrubber, outline, find, lightbox) is
 * not scoped-and-inert here; it is not here at all, because a build-time
 * renderer cannot produce the markup it selects. It ships in folio-reader.js.
 */

/* --- host de-contamination (generated) ------------------------------------ *
 * Everything below this line is Folio's stylesheet. This is the clean sheet it
 * is written against: inside `.folio`, the host page's author styles are rolled
 * back to the user agent's. Specificity is deliberately (0,1,0) — one class —
 * so every scoped rule below outranks it, and so does anything the host aims at
 * `.folio`'s insides on purpose. Bare element selectors, the failure mode this
 * exists for, do not.
 *
 * SVG and MathML are left alone, element and insides: their presentation
 * attributes (fill, stroke, d, width, height; mathcolor, mathsize) count as
 * author styles of no specificity, so `all: revert` would wipe them and an
 * inline chart would lose its curve. `:where()` keeps the rule at (0,1,0).
 *
 * Islands are left alone too: an element marked data-folio-island, and all of
 * it, keeps the host's styles — a widget inside a document stays the widget.
 * -------------------------------------------------------------------------- */
.folio { all: revert; }
.folio *:where(:not(svg, svg *, math, math *, .folio [data-folio-island], .folio [data-folio-island] *)) { all: revert; }

/* Folio — reader stylesheet */

/* One palette, both themes, each value written once. `light-dark()` chooses from
   the element's `color-scheme`, which replaces a second `prefers-color-scheme`
   block that was a hand-maintained copy of these colours — and which only ever
   matched `:root`, so inside a shadow root (where `:root` matches nothing) the
   embed had no dark mode at all. It also makes the theme *declarable*: an
   attribute can set `color-scheme` and win over the media query without the
   palette existing twice. */
.folio {
  color-scheme: light dark;   /* follow the OS unless something below overrides */

  --_folio-paper: var(--folio-paper, light-dark(#FAF9F6, #161513));
  --_folio-ink: var(--folio-ink, light-dark(#1C1B19, #E8E5DF));
  --_folio-ink-2: var(--folio-ink-secondary, light-dark(#6E6A63, #98938A));
  --_folio-ink-3: var(--folio-ink-tertiary, light-dark(#76716A, #85807A));   /* ≥4.5:1 on paper in both themes (WCAG AA) */
  --_folio-hairline: var(--folio-rule, light-dark(rgba(28, 27, 25, 0.12), rgba(232, 229, 223, 0.15)));
  --_folio-hairline-soft: light-dark(rgba(28, 27, 25, 0.07), rgba(232, 229, 223, 0.08));
  --_folio-code-bg: var(--folio-code-background, light-dark(rgba(28, 27, 25, 0.045), rgba(232, 229, 223, 0.055)));
  --_folio-accent: var(--folio-accent, light-dark(#3D5AC8, #93A8F4));
  --_folio-mark: var(--folio-find-highlight, light-dark(rgba(255, 200, 60, 0.45), rgba(255, 190, 60, 0.30)));

  --_folio-fs: var(--folio-font-size, 1.1875rem);          /* body size, adjustable */
  --_folio-compact-fs: calc(var(--folio-font-size, 1.1875rem) * 0.842);   /* density="compact"/"auto": ~16px */
  /* A host can hand Folio its own column: set `--folio-measure` anywhere above
     the element and it inherits through the shadow boundary. Named separately
     from `--_folio-measure` so a host cannot collide with an internal by accident, and
     so "use my column" stays a declaration rather than a fork of this file —
     rather than an edit to this file. */
  --_folio-measure: var(--folio-measure, 42rem);

  /* figures and charts: every series colour is at least 3:1 against the paper
     and every label 4.5:1, in both themes (package/build.sh checks it) */
  --_folio-chart-1: var(--folio-chart-1, light-dark(#2F5FB3, #7FA6F0));
  --_folio-chart-2: var(--folio-chart-2, light-dark(#B35900, #F0A050));
  --_folio-chart-3: var(--folio-chart-3, light-dark(#2E7D4F, #6CC08C));
  --_folio-chart-4: var(--folio-chart-4, light-dark(#B33A5E, #F08AA8));
  --_folio-chart-5: var(--folio-chart-5, light-dark(#6B4FA0, #B49CEB));
  --_folio-chart-6: var(--folio-chart-6, light-dark(#1D7680, #5CC8CF));
  --_folio-chart-axis: var(--folio-chart-axis, light-dark(#6E6A63, #98938A));
  --_folio-chart-label: var(--folio-chart-label, light-dark(#5E5A54, #A8A39A));
  --_folio-chart-grid: var(--folio-chart-grid, light-dark(rgba(28, 27, 25, 0.10), rgba(232, 229, 223, 0.12)));
  --_folio-figure-surface: var(--folio-figure-surface, transparent);

  --_folio-serif: var(--folio-serif, ui-serif, "New York", Charter, Georgia, serif);
  --_folio-sans: var(--folio-sans, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif);
  --_folio-mono: var(--folio-mono, ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace);
  /* titles (h1, h2) and small labels (h5, h6, callout titles, .folio-label):
     the serif and the sans unless a host names a display face or a label face */
  --_folio-display: var(--folio-display, var(--_folio-serif));
  --_folio-label: var(--folio-label, var(--_folio-sans));

  /* code palette */
  --_folio-tok-comment: light-dark(#79726A, #8C867D);   /* AA on code background */
  --_folio-tok-keyword: light-dark(#B04A2F, #E0937A);
  --_folio-tok-string: light-dark(#3D6B36, #A3C495);
  --_folio-tok-number: light-dark(#8A5A00, #D9B36A);
  --_folio-tok-title: light-dark(#34548A, #92B0E8);
  --_folio-tok-type: light-dark(#6E4FA3, #B79FE0);
}

/* An explicit theme beats the OS. `color-scheme` inherits, so setting it on the
   root of the tree — the host element of a shadow tree, or a `.folio` wrapper in
   the light DOM — reaches every `light-dark()` underneath it. `theme="auto"`
   needs no rule: it is the declaration above. */
.folio[data-folio-theme="light"] { color-scheme: light; }
.folio[data-folio-theme="dark"] { color-scheme: dark; }

/* ---------- embedded blocks: theme, surface, density, writing ----------
   A page is not the only place a document lives: a card, a dialog, a side
   panel, a notes timeline. These are the switches for those places — on a
   `.folio` block as data-folio-* attributes, on <folio-doc> as attributes of
   the same name — so a host sets one attribute instead of writing overrides.
   None of them applies in the app or the full-page reader. */

/* theme="inherit": follow the color-scheme of whatever the document sits in,
   so a host's own `:root { color-scheme: dark }` (or its card's) drives Folio
   with no script and nothing to keep in step — blocks created later included.
   A host that declares no color-scheme gets light. */
.folio[data-folio-theme="inherit"] { color-scheme: inherit; }

/* surface="inherit": paint no paper, so the container's own surface shows.
   Overflow fades and the lightbox still mix toward --folio-paper: a host whose
   card is not Folio's paper sets --folio-paper to the card's colour too. */
.folio[data-folio-surface="inherit"] { background: transparent; }

/* density="compact": a card's or a panel's scale rather than a page's — ~16px
   text, a heading ramp a third as steep, tighter rhythm, no page margins and
   no measure of its own (the container is the measure; --folio-measure still
   caps it). Sizes come from --_folio-compact-fs, not em, so they are the same at any
   depth of markup, and so "auto" can apply them from a container query.

   density="auto": compact while the block is narrower than 40rem, page scale
   when it is wider — one document that reads right in a card, a panel and a
   page. It makes the block a size container (container-type: inline-size), so
   the block must take its width from its parent (block layout, or a grid or
   flex item that stretches), never from its own content. */
.folio[data-folio-density="compact"] > *:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: var(--_folio-compact-fs); line-height: 1.55; }
.folio[data-folio-density="compact"] .content:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: var(--_folio-compact-fs); line-height: 1.55; max-width: var(--folio-measure, none); margin: 0; padding: 0; }
.folio[data-folio-density="compact"] h1:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: calc(var(--_folio-compact-fs) * 1.5); margin: 1.5em 0 0.5em; }
.folio[data-folio-density="compact"] h2:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: calc(var(--_folio-compact-fs) * 1.3); margin: 1.4em 0 0.45em; }
.folio[data-folio-density="compact"] h3:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: calc(var(--_folio-compact-fs) * 1.14); margin: 1.3em 0 0.4em; }
.folio[data-folio-density="compact"] h4:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: calc(var(--_folio-compact-fs) * 1); margin: 1.2em 0 0.35em; }
.folio[data-folio-density="compact"] h5:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio[data-folio-density="compact"] h6:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: calc(var(--_folio-compact-fs) * 0.78); margin: 1.2em 0 0.35em; }
.folio[data-folio-density="compact"] .content > h1:first-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: calc(var(--_folio-compact-fs) * 1.5); margin-top: 0; }
.folio[data-folio-density="compact"] .content > h1:first-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::after { display: none; }
.folio[data-folio-density="compact"] :is(h1, h2, h3, h4, h5, h6):first-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin-top: 0; }
.folio[data-folio-density="compact"] p:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin: 0 0 0.8em; }
.folio[data-folio-density="compact"] ul:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio[data-folio-density="compact"] ol:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin: 0 0 0.8em; }
.folio[data-folio-density="compact"] > :last-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio[data-folio-density="compact"] .content > :last-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin-bottom: 0; }
.folio[data-folio-density="auto"] { container: folio / inline-size; }
@container folio (max-width: 40rem) {
  .folio[data-folio-density="auto"] > *:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: var(--_folio-compact-fs); line-height: 1.55; }
  .folio[data-folio-density="auto"] .content:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: var(--_folio-compact-fs); line-height: 1.55; max-width: var(--folio-measure, none); margin: 0; padding: 0; }
  .folio[data-folio-density="auto"] h1:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: calc(var(--_folio-compact-fs) * 1.5); margin: 1.5em 0 0.5em; }
  .folio[data-folio-density="auto"] h2:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: calc(var(--_folio-compact-fs) * 1.3); margin: 1.4em 0 0.45em; }
  .folio[data-folio-density="auto"] h3:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: calc(var(--_folio-compact-fs) * 1.14); margin: 1.3em 0 0.4em; }
  .folio[data-folio-density="auto"] h4:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: calc(var(--_folio-compact-fs) * 1); margin: 1.2em 0 0.35em; }
  .folio[data-folio-density="auto"] h5:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio[data-folio-density="auto"] h6:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: calc(var(--_folio-compact-fs) * 0.78); margin: 1.2em 0 0.35em; }
  .folio[data-folio-density="auto"] .content > h1:first-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: calc(var(--_folio-compact-fs) * 1.5); margin-top: 0; }
  .folio[data-folio-density="auto"] .content > h1:first-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::after { display: none; }
  .folio[data-folio-density="auto"] :is(h1, h2, h3, h4, h5, h6):first-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin-top: 0; }
  .folio[data-folio-density="auto"] p:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin: 0 0 0.8em; }
  .folio[data-folio-density="auto"] ul:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio[data-folio-density="auto"] ol:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin: 0 0 0.8em; }
  .folio[data-folio-density="auto"] > :last-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio[data-folio-density="auto"] .content > :last-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin-bottom: 0; }
}

/* .folio-editable: a textarea (or a contenteditable) inside a .folio block
   that writes in the face, size, rhythm and measure the block reads in, so a
   host's Write ⇄ Read toggle does not change the document's voice. Folio does
   not edit; this is typography for the host's own editor. Grows with its text
   where the browser can (field-sizing). */
.folio .folio-editable:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--_folio-measure);
  min-height: 6lh;
  margin: 0 auto;
  padding: 0;
  font: inherit;
  line-height: inherit;
  color: var(--_folio-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  resize: vertical;
  field-sizing: content;
  caret-color: var(--_folio-accent);
  tab-size: 4;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.folio .folio-editable:focus-visible:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { box-shadow: 0 0 0 2px color-mix(in srgb, var(--_folio-accent) 35%, transparent); border-radius: 3px; }
.folio .folio-editable:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::placeholder { color: var(--_folio-ink-3); opacity: 1; }

/* ---------- the press: book typography a host switches on ----------
   What a book designer does that a reading app does not by default. Each is
   an attribute, a class or a token; none of them costs a byte of script, and
   none applies unless asked for. */

/* prose="book": a book's paragraphs — first-line indents and no gaps between
   them, no indent after a heading, a break or a quotation, an opening mark on
   quotations, a 36rem measure, hyphenation in the document's language */
.folio[data-folio-prose="book"] { --_folio-measure: var(--folio-measure, 36rem); }
.folio[data-folio-prose="book"] p:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin: 0; text-indent: 1.4em; hyphens: auto; -webkit-hyphens: auto; }
.folio[data-folio-prose="book"] :is(h1, h2, h3, h4, h5, h6, hr, blockquote, ul, ol, pre, table, figure, .callout, .folio-figure, .code-block, .folio-standfirst) + p:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio[data-folio-prose="book"] p:first-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { text-indent: 0; }
.folio[data-folio-prose="book"] :is(ul, ol, pre, table, figure, blockquote, .callout, .code-block, .folio-figure):where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin-block: 1.1em; }
.folio[data-folio-prose="book"] blockquote:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { border: 0; padding-inline: 1.4em; font-style: normal; color: var(--_folio-ink); }
.folio[data-folio-prose="book"] blockquote > p:first-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before { content: "\201C"; margin-inline-start: -0.42em; }
.folio[data-folio-prose="book"] hr:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin: 1.6em 0; }

/* data-folio-dropcap, on the .folio block or on any section in it: a drop
   cap on its first paragraph (CSS initial-letter where the browser has it, a
   float where not) and a small-caps first line */
.folio[data-folio-dropcap] > p:first-of-type:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio[data-folio-dropcap] > .content > p:first-of-type:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio [data-folio-dropcap] > p:first-of-type:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { text-indent: 0; }
.folio[data-folio-dropcap] > p:first-of-type:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::first-letter, .folio[data-folio-dropcap] > .content > p:first-of-type:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::first-letter, .folio [data-folio-dropcap] > p:first-of-type:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::first-letter { -webkit-initial-letter: 3; initial-letter: 3; font-family: var(--_folio-display); font-weight: 600; margin-inline-end: 0.1em; color: var(--_folio-ink); }
.folio[data-folio-dropcap] > p:first-of-type:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::first-line, .folio[data-folio-dropcap] > .content > p:first-of-type:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::first-line, .folio [data-folio-dropcap] > p:first-of-type:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::first-line { font-variant-caps: small-caps; letter-spacing: 0.03em; }
@supports not ((initial-letter: 3) or (-webkit-initial-letter: 3)) {
  .folio[data-folio-dropcap] > p:first-of-type:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::first-letter, .folio[data-folio-dropcap] > .content > p:first-of-type:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::first-letter, .folio [data-folio-dropcap] > p:first-of-type:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::first-letter { float: inline-start; font-size: 3.5em; line-height: 0.82; padding: 0.06em 0.08em 0 0; }
}

/* .folio-standfirst: the paragraph that introduces a piece, in the
   document's own voice — serif italic, a step up, no box */
.folio .folio-standfirst:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-style: italic; font-size: 1.12em; line-height: 1.55; color: var(--_folio-ink); margin: 0 0 1.4em; text-indent: 0; }

/* .folio-label: a kicker or an apparatus label, in the label face (tracked
   small capitals of the sans unless --folio-label says otherwise);
   data-brackets sets it as [ LABEL ] */
.folio .folio-label:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-family: var(--_folio-label); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--_folio-ink-2); }
.folio .folio-label[data-brackets]:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before { content: "[\2009"; }
.folio .folio-label[data-brackets]:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::after { content: "\2009]"; }

/* .folio-excerpt: a preview of a piece, cut at --folio-excerpt-lines lines (3) */
.folio .folio-excerpt:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--folio-excerpt-lines, 3); line-clamp: var(--folio-excerpt-lines, 3); overflow: hidden; }

.folio, .folio *:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { box-sizing: border-box; }

.folio {
  margin: 0;
  padding: 0;
  background: var(--_folio-paper);
}

.folio { scrollbar-width: none; }

/* Embedding: the app owns a page, an embed owns a box. `body` and `:root` match
   nothing inside a shadow root, so without these the typography and the paper
   simply don't apply and the document inherits the host site's font — legible
   proof of which is that it renders dark ink on whatever colour the host is. */
/* dropped (shadow-root only): :host */
.folio :where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::-webkit-scrollbar, .folio::-webkit-scrollbar { display: none; }

.folio {
  font-family: var(--_folio-serif);
  font-size: var(--_folio-fs);
  line-height: 1.65;
  color: var(--_folio-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.folio :where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::selection, .folio::selection { background: rgba(150, 160, 220, 0.30); }

.folio .content:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  overflow-wrap: break-word;
  max-width: var(--_folio-measure);
  margin: 0 auto;
  padding: var(--folio-title-space, 4.5rem) 2.5rem 7rem;
}
/* the space above the first line: a page's on a page, not a third of a phone
   screen (--folio-title-space sets both) */
@media (max-width: 600px) { .folio .content:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { padding-top: var(--folio-title-space, 2rem); } }

/* ---------- prose ---------- */

.folio h1:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio h2:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio h3:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio h4:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio h5:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio h6:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  font-family: var(--_folio-serif);
  font-weight: 600;
  line-height: 1.22;
  color: var(--_folio-ink);
  position: relative;
  text-wrap: balance;
}

.folio h1:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: 2.1em;  margin: 2.6em 0 0.7em; letter-spacing: -0.015em; }
.folio h2:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: 1.5em;  margin: 2.2em 0 0.6em; letter-spacing: -0.01em; }
.folio h3:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: 1.18em; margin: 1.8em 0 0.5em; }
.folio h4:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: 1em;    margin: 1.6em 0 0.4em; }
.folio h1:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio h2:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-family: var(--_folio-display); }
.folio h5:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio h6:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  font-family: var(--_folio-label);
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--_folio-ink-2);
  margin: 1.6em 0 0.4em;
}

.folio .content > h1:first-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  margin-top: 0;
  font-size: 2.5em;
}
.folio .content > h1:first-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::after {
  content: "";
  display: block;
  width: 2.2rem;
  border-bottom: 1px solid var(--_folio-hairline);
  margin-top: 0.55em;
}

.folio .heading-anchor:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  position: absolute;
  /* Hung in the margin, but never further out than the margin is wide: a
     2.1em heading's mark hung 4px off a phone's screen (2026-11-22).
     Positioned, not hung in flow: a float or inline-block hanging outside
     the column was measured to make Chrome lay every heading out again on
     every frame of a window drag (94 ms a step on 20,000 headings, against
     0.2), and the cost positioned boxes do carry — a paint layer each, which
     made hit tests walk 20,000 of them — went when the reading place stopped
     hit-testing (see recordReadingPlace). */
  inset-inline-start: max(-1.1em, -2.25rem);
  width: 1.1em;
  font-size: 0.8em;
  font-family: var(--_folio-sans);
  font-weight: 400;
  color: var(--_folio-ink-3);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  line-height: inherit;
  /* a site with its own section links turns these off: --folio-permalinks: none */
  display: var(--folio-permalinks, inline);
}
.folio h1:hover .heading-anchor:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio h2:hover .heading-anchor:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio h3:hover .heading-anchor:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio h4:hover .heading-anchor:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio h5:hover .heading-anchor:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio h6:hover .heading-anchor:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .heading-anchor:focus-visible:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { opacity: 1; }

/* Present to a screen reader, absent from the page. `clip-path: inset(50%)`
   rather than `display: none` or `visibility: hidden`, either of which would
   take the name back out of the accessibility tree and undo the point of
   having it. */
.folio .visually-hidden:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.folio p:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin: 0 0 1.1em; text-wrap: pretty; }
/* The reader marks the blocks near the screen (updateNear in app.js); the
   rest break greedily until they come near — WebKit's pretty is a whole-
   paragraph line breaker, and a window drag paid for every paragraph. */
.folio .content[data-folio-wrap="near"] > p:not([data-folio-near]):where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .content[data-folio-wrap="near"] > :not([data-folio-near]) p:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { text-wrap: wrap; }
@media print { .folio .content[data-folio-wrap="near"] p:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { text-wrap: pretty; } }

.folio a:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  color: var(--_folio-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--_folio-accent) 35%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.folio a:hover:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { text-decoration-color: var(--_folio-accent); }

.folio strong:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-weight: 650; }

.folio blockquote:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  margin: 1.6em 0;
  padding-inline: 1.4em 0;
  border-inline-start: 2px solid var(--_folio-hairline);
  color: var(--_folio-ink-2);
  font-style: italic;
}
.folio blockquote strong:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: var(--_folio-ink); }
.folio blockquote blockquote:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin: 0.8em 0; }
/* Nesting deeper than anyone writes by hand (exports, generated notes) must
   not walk the text off the page: from the third level each step indents at
   most 7% of what is left, so the column shrinks geometrically instead of
   running out; from the eleventh it stops indenting at all. 500 levels used
   to put the text 2,561 px to the right. */
.folio blockquote blockquote blockquote:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio :is(ul, ol) :is(ul, ol) :is(ul, ol):where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { padding-inline-start: min(1.4em, 7%); }
.folio blockquote blockquote blockquote blockquote blockquote blockquote blockquote blockquote blockquote blockquote blockquote:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  padding-inline-start: 0; border-inline-start-width: 0; margin-block: 0.4em;
}
.folio :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol):where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  padding-inline-start: 0;
}

.folio ul:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio ol:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { padding-inline-start: 1.6em; margin: 0 0 1.1em; }
.folio li:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin: 0.3em 0; }
.folio li > p:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin-bottom: 0.5em; }
.folio ul:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { list-style: none; }
/* The dash is positioned against its own item. At its static position (no
   containing block, no offsets) it landed a line off inside containers that
   animate their height — a grid-row accordion, hidden="until-found". */
.folio ul > li:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { position: relative; }
.folio ul > li:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before {
  content: "–";
  position: absolute;
  top: 0;
  inset-inline-start: -1.4em;
  color: var(--_folio-ink-3);
}
.folio ul.contains-task-list > li:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before { content: none; }

/* task lists */
.folio .task-list-item:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { position: relative; }
.folio .task-list-item input[type="checkbox"]:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  appearance: none;
  width: 0.95em;
  height: 0.95em;
  border: 1.5px solid var(--_folio-ink-3);
  border-radius: 4px;
  margin-inline-end: 0.55em;
  vertical-align: -0.12em;
  position: relative;
}
.folio .task-list-item input[type="checkbox"]:checked:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  background: var(--_folio-ink-2);
  border-color: var(--_folio-ink-2);
}
.folio .task-list-item input[type="checkbox"]:checked:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::after {
  content: "";
  position: absolute;
  left: 0.24em; top: 0.06em;
  width: 0.28em; height: 0.5em;
  border: solid var(--_folio-paper);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.folio .task-list-item input[type="checkbox"]:checked + label:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .task-list-item input[type="checkbox"]:checked ~ *:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  color: var(--_folio-ink-3);
}

/* A live box says so by behaving like a control — it takes the pointer and it
   takes focus. A box Folio will not write stays exactly the box it has always
   been, which is the honest way for the difference to read: one is a control,
   the other is a picture of one. */
.folio .task-list-item input[type="checkbox"]:enabled:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { cursor: pointer; }
.folio .task-list-item input[type="checkbox"]:enabled:hover:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { border-color: var(--_folio-ink-2); }
.folio .task-list-item input[type="checkbox"]:focus-visible:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  outline: 2px solid var(--_folio-accent);
  outline-offset: 2px;
}

.folio hr:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  border: none;
  margin: 3em 0;
  text-align: center;
}
.folio hr:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::after {
  content: var(--folio-ornament, "···");
  display: block;
  font-size: 1.1em;
  letter-spacing: 0.8em;
  margin-left: 0.8em; /* optical centering vs letter-spacing */
  color: var(--_folio-ink-3);
}

/* ---------- code ---------- */

.folio code:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  font-family: var(--_folio-mono);
  font-size: 0.82em;
  background: var(--_folio-code-bg);
  border-radius: 5px;
  padding: 0.15em 0.4em;
}

.folio .code-block:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  position: relative;
  margin: 1.5em 0;
}
.folio .code-block pre:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  margin: 0;
  background: var(--_folio-code-bg);
  border-radius: 10px;
  padding: 1.05em 1.25em;
  overflow-x: auto;
  line-height: 1.55;
}
/* a fenced block is a left-to-right artifact even when the prose around it
   runs the other way — indentation is meaningless mirrored */
.folio .content pre:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { direction: ltr; }
.folio .code-block pre code:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.8em;
}
.folio .code-block:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before {
  content: attr(data-lang);
  position: absolute;
  top: 0.65em;
  right: 1em;
  font-family: var(--_folio-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--_folio-ink-3);
  pointer-events: none;
}
.folio .code-block[data-lang=""]:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before { content: none; }

.folio .hljs-comment:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-quote:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: var(--_folio-tok-comment); font-style: italic; }
.folio .hljs-keyword:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-selector-tag:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-literal:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-tag:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: var(--_folio-tok-keyword); }
.folio .hljs-string:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-regexp:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-addition:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: var(--_folio-tok-string); }
.folio .hljs-number:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-symbol:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-bullet:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-meta:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-link:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: var(--_folio-tok-number); }
.folio .hljs-title:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-section:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-name:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-attribute:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-attr:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-selector-id:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-selector-class:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: var(--_folio-tok-title); }
.folio .hljs-type:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-class .hljs-title:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-built_in:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-template-variable:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .hljs-variable:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: var(--_folio-tok-type); }
.folio .hljs-deletion:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: var(--_folio-tok-keyword); }
.folio .hljs-emphasis:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-style: italic; }
.folio .hljs-strong:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-weight: 600; }

/* ---------- tables ---------- */

.folio table:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  border-collapse: collapse;
  margin: 1.6em 0;
  width: 100%;
  font-size: 0.88em;
  font-family: var(--_folio-sans);
  line-height: 1.5;
  display: block;
  overflow-x: auto;
}
.folio th:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio td:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  text-align: start;
  padding-block: 0.55em;
  padding-inline: 0 1em;
  border-bottom: 1px solid var(--_folio-hairline-soft);
  vertical-align: top;
}
.folio th:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  font-weight: 600;
  font-size: 0.92em;
  border-bottom: 1px solid var(--_folio-hairline);
}
.folio tr:last-child td:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { border-bottom: none; }

/* ---------- figures & media ---------- */

/* raw <svg> written into a document is a picture, and fits the column like
   one (a 2,400 px one made the page scroll sideways); the reader's own SVG —
   maths, diagrams, charts, icons — is placed by its own rules */
.folio .content > svg:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .content :is(p, li, blockquote, figure, td, th) > svg:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { max-width: 100%; height: auto; }

.folio img:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio video:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.folio figure:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  margin: 2em 0;
  text-align: center;
}
.folio figcaption:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  font-family: var(--_folio-sans);
  font-size: 0.72em;
  color: var(--_folio-ink-2);
  margin-top: 0.9em;
  line-height: 1.5;
}

/* ---------- callouts ---------- */

.folio .callout:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  margin: 1.6em 0;
  padding: 0.9em 1.25em;
  border-radius: 10px;
  background: var(--_folio-code-bg);
  border-inline-start: 3px solid var(--_folio-ink-3);
  font-size: 0.94em;
}
.folio .callout p:last-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin-bottom: 0; }
.folio .callout-title:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  font-family: var(--_folio-label);
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.5em;
  color: var(--_folio-ink-2);
}
.folio .callout-note:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { border-inline-start-color: #5B7BD5; }
.folio .callout-tip:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { border-inline-start-color: #4F9153; }
.folio .callout-important:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { border-inline-start-color: #8A63C9; }
.folio .callout-warning:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { border-inline-start-color: #C08A2D; }
.folio .callout-caution:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { border-inline-start-color: #C05B4D; }
.folio .callout-note      .callout-title:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: #5B7BD5; }
.folio .callout-tip       .callout-title:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: #4F9153; }
.folio .callout-important .callout-title:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: #8A63C9; }
.folio .callout-warning   .callout-title:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: #C08A2D; }
.folio .callout-caution   .callout-title:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: #C05B4D; }

/* ---------- math ---------- */

.folio .math[data-tex]:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .math-block[data-tex]:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  font-family: var(--_folio-mono);
  font-size: 0.85em;
  color: var(--_folio-ink-2);
}
.folio .math .katex:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .math-block .katex:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: var(--_folio-ink); font-size: 1.06em; }
.folio .math-block:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  margin: 1.6em 0;
  text-align: center;
  overflow-x: auto;
}

/* ---------- wikilinks ---------- */

.folio a.wikilink:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  text-decoration-style: dotted;
}

/* ---------- outline sidebar ---------- */

/* ---- figures: ::: figure, numbered and captioned ------------------------ */
.folio .folio-figure:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  margin: 2em 0;
  background: var(--_folio-figure-surface);
}
.folio .folio-figure > p:only-of-type:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin: 0; }
.folio .folio-figure img:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .folio-figure svg:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .folio-figure video:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
.folio .folio-figure figcaption:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  margin-top: 0.7em;
  font-family: var(--_folio-sans);
  font-size: 0.82em;
  line-height: 1.45;
  color: var(--_folio-ink-2);
}
.folio .folio-figure .fig-label:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: var(--_folio-ink); font-weight: 600; }
/* wide and full figures leave the measure, centred on it */
.folio .folio-figure[data-width="wide"]:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  width: min(calc(100vw - 4rem), 64rem);
  margin-inline: calc(50% - min(calc(100vw - 4rem), 64rem) / 2);
}
.folio .folio-figure[data-width="full"]:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  width: calc(100vw - 2rem);
  margin-inline: calc(50% - (100vw - 2rem) / 2);
}
.folio .fig-ref:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { white-space: nowrap; }
.folio .fig-ref.is-missing:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: var(--_folio-ink-3); border-bottom: 1px dotted var(--_folio-ink-3); }

/* ---- charts: ```chart, drawn by the renderer ---------------------------- */
.folio .folio-chart-block:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin: 1.8em 0; background: var(--_folio-figure-surface); }
.folio .folio-chart:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { display: block; width: 100%; height: auto; font-family: var(--_folio-sans); overflow: visible; }
.folio .folio-chart .chart-title:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { fill: var(--_folio-ink); font-size: 14px; font-weight: 600; }
.folio .folio-chart .chart-label:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { fill: var(--_folio-chart-label); font-size: 12px; font-variant-numeric: tabular-nums; }
.folio .folio-chart .chart-grid:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { stroke: var(--_folio-chart-grid); stroke-width: 1; }
.folio .folio-chart .chart-axis:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { stroke: var(--_folio-chart-axis); stroke-width: 1; }
.folio .folio-chart path.chart-series:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.folio .folio-chart path.chart-1:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { stroke: var(--_folio-chart-1); } .folio .folio-chart rect.chart-1:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { fill: var(--_folio-chart-1); }
.folio .folio-chart path.chart-2:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { stroke: var(--_folio-chart-2); } .folio .folio-chart rect.chart-2:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { fill: var(--_folio-chart-2); }
.folio .folio-chart path.chart-3:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { stroke: var(--_folio-chart-3); } .folio .folio-chart rect.chart-3:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { fill: var(--_folio-chart-3); }
.folio .folio-chart path.chart-4:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { stroke: var(--_folio-chart-4); } .folio .folio-chart rect.chart-4:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { fill: var(--_folio-chart-4); }
.folio .folio-chart path.chart-5:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { stroke: var(--_folio-chart-5); } .folio .folio-chart rect.chart-5:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { fill: var(--_folio-chart-5); }
.folio .folio-chart path.chart-6:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { stroke: var(--_folio-chart-6); } .folio .folio-chart rect.chart-6:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { fill: var(--_folio-chart-6); }
.folio .chart-data:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin-top: 0.4em; font-family: var(--_folio-sans); font-size: 0.8em; color: var(--_folio-ink-2); }
.folio .chart-data summary:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { cursor: pointer; }
.folio .chart-data table:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin-top: 0.5em; }

/* ---------- frontmatter ---------- */

.folio .frontmatter:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  font-family: var(--_folio-sans);
  font-size: 0.72rem;
  color: var(--_folio-ink-2);
  border: 1px solid var(--_folio-hairline-soft);
  border-radius: 10px;
  padding: 0.9em 1.2em;
  margin: 0 0 2.5em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em 1.8em;
}
.folio .frontmatter .fm-item:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { display: flex; gap: 0.5em; min-width: 0; max-width: 100%; }
/* a flex item cannot shrink below its longest unbreakable run; `anywhere`
   (unlike `break-word`) lowers that minimum, so a URL wraps */
.folio .frontmatter .fm-item > :last-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { min-width: 0; overflow-wrap: anywhere; }
.folio .frontmatter .fm-key:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--_folio-ink-3);
}

/* ---------- footnotes ---------- */

/* The marker itself — `sup.footnote-ref` — is set with `sup.cite` under
   citations below. They are the same typographic object, and letting them drift
   apart is how one apparatus ends up with two conventions in it. */
.folio a.footnote-backref:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  text-decoration: none;
  color: var(--_folio-ink-3);
}
.folio a.footnote-backref:hover:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: var(--_folio-accent); }
.folio .footnotes:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  margin-top: 4em;
  font-size: 0.82em;
  color: var(--_folio-ink-2);
}
.folio .footnotes-sep:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin: 3em 0 1.5em; }
.folio .footnotes-sep:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::after { content: ""; }
.folio .footnotes-sep:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  border-bottom: 1px solid var(--_folio-hairline-soft);
  width: 6rem;
  text-align: start;
}
.folio .footnotes ol:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { padding-inline-start: 1.2em; }

/* ---------- citations ---------- */

/* The marker is a superior numeral, not a badge. Two things make it one.
   It is set in the document's own face at the size a superior is cut at — a
   marker in a different family is the seam you see first, and it is the whole
   complaint about apparatus bolted on afterwards. And it is raised by
   `position: relative`, which paints the glyph above the baseline without
   layout ever hearing about it.
   `line-height: 0` is the other half, and the load-bearing one: an inline box
   with no leading contributes nothing to the line box, so a paragraph carrying
   markers sets to exactly the rhythm of one without. The UA default —
   `vertical-align: super` at `font-size: smaller` — does the opposite: it opens
   the line box by a couple of px, once, on whichever lines happen to carry a
   marker, and that uneven leading down a page is the tell. */
.folio sup.cite:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio sup.footnote-ref:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  font-size: 0.64em;
  line-height: 0;
  vertical-align: baseline;      /* beats the UA's `super` */
  position: relative;
  top: -0.42em;                  /* ≈0.27em of body — the figure's cap meets the text's */
  font-variant-numeric: lining-nums tabular-nums;
  margin-inline-start: 0.08em;   /* clear of the word before it, still tight to it */
  white-space: nowrap;
}
.folio sup.cite a:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio sup.footnote-ref a:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  font-family: inherit;          /* a superior belongs to the text, not to the UI */
  font-weight: 550;              /* figures this small need a hair more colour to hold */
  color: var(--_folio-accent);
  text-decoration: none;
  /* the hit target is bought in the block direction, where there is room: inline
     padding also has to sit between the figures of a run, and 0.16em there was
     enough to turn "3,4,5" into "3 , 4 , 5". Neither axis touches the line box. */
  padding: 0.35em 0.08em;
  border-radius: 3px;
}
.folio sup.cite a:hover:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio sup.footnote-ref a:hover:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio sup.cite a:focus-visible:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio sup.footnote-ref a:focus-visible:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  background: color-mix(in srgb, var(--_folio-accent) 16%, transparent);
}
.folio sup.cite a:focus-visible:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio sup.footnote-ref a:focus-visible:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  outline: 1.5px solid var(--_folio-accent);
  outline-offset: 0;
}
/* followed a back-link here: say which marker you came back to, then stop */
.folio sup.cite a:target:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio sup.footnote-ref a:target:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { background: var(--_folio-mark); }

/* A sentence carrying three sources must read as three numbers, not as one long
   one. The separation is space — about four fifths of a figure's width, which
   is more than sits between a word and the marker after it, so a run reads as a
   run and its members read as separate.
   Print would set them "3,4,5", and a comma is the stronger separator. It is
   not here because CSS cannot ask for it correctly: `sup.cite + sup.cite` is
   the only hook the markup offers, and the sibling combinator skips text, so it
   also matches two markers with a whole sentence between them — which puts a
   comma in front of a marker that opens a clause. A gap that misfires the same
   way is invisible; a comma that misfires is a wrong glyph in the prose. The
   run needs a hook of its own before the comma can come back.
   No wrap handling is needed: two inline boxes with no whitespace between them
   offer no break opportunity, so a run cannot split across lines. */
.folio sup.cite + sup.cite:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin-inline-start: 0.3em; }

/* ---------- the reference list ---------- */

.folio .references:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  margin-top: 4em;
  font-size: 0.82em;             /* the apparatus sets a size down, as the footnotes do */
  color: var(--_folio-ink-2);
}
/* the same short rule the footnotes open with, so the two apparatus blocks read
   as one register rather than as two conventions that met in a document */
.folio .references:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before {
  content: "";
  display: block;
  width: 6rem;
  border-top: 1px solid var(--_folio-hairline-soft);
  margin-bottom: 1.5em;
}
.folio .references h5:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin-top: 0; }

.folio .reference-list:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  list-style: none;              /* the figure is drawn below, where it can be aligned */
  padding-inline-start: 0;
  margin: 0;
}

/* A reference list, set as one. The entry starts at a fixed rail and every
   wrapped line returns to it; the figure lives in the indent, right-aligned so
   9 and 10 agree on the period, in tabular figures so the column is a column.
   `counter(list-item)` rather than a counter of our own: that one belongs to
   the <ol>, so `start` and `value` still mean what they say if a host ever
   renumbers. The indent is padding on the entry rather than on the list so the
   figure sits *inside* the entry's box — which is what lets `:target` below
   highlight an entry with its number instead of beside it. */
.folio .reference:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  position: relative;
  padding-inline-start: 2.6em;
  /* enough that an entry which wraps onto a second line still reads as one
     entry rather than as two; run-on entries need the space between them to be
     larger than the space inside them */
  margin: 0.7em 0;
  overflow-wrap: anywhere;       /* a bare URL does not get to widen the page */
}
.folio .reference:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before {
  content: counter(list-item) ".";
  position: absolute;
  inset-inline-start: 0;
  width: 2.1em;
  text-align: end;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--_folio-ink-3);
}

/* The label is the entry; that it is also a link is not the point of it. A
   reference list in accent blue with a rule under every line is a list of links
   — which is the thing this is trying not to be. Ink, and a hairline that only
   becomes a link when you go looking for one. */
.folio .ref-target:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  color: var(--_folio-ink);
  text-decoration-color: var(--_folio-hairline-soft);
  text-underline-offset: 2px;    /* a rule under a whole block of entries reads as
                                    texture; keeping it close keeps it a hairline */
}
.folio .ref-target:hover:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: var(--_folio-accent); text-decoration-color: var(--_folio-accent); }

/* Domain and status are the quieter register — sans, a size down, ink-3: the
   voice figcaptions and the colophon are already set in. */
.folio .ref-domain:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .ref-status:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  font-family: var(--_folio-sans);
  font-size: 0.84em;
  color: var(--_folio-ink-3);
}
.folio .ref-domain:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  margin-inline-start: 0.55em;
  white-space: nowrap;           /* a hostname broken across lines is unreadable */
}
.folio .ref-status:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin-inline-start: 0.55em; }

/* `data-status` is the host's vocabulary and we will not have seen all of it,
   so what gets drawn is the *presence* of a status: one small mark before the
   word, coloured by a custom property. A value we have never met takes the
   default and sets correctly — quiet ink, hollow mark — which is the only
   behaviour that survives a word we did not anticipate.
   Two shifts are worth making, and both move only the mark. `ok` and `self` are
   the expected outcomes, so they stay hollow and a clean list is a column of
   empty rings. The ones that mean "this is not quite the source you asked for"
   fill in, and the eye finds them without reading a line. */
.folio .ref-status:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  --_folio-ref-mark: var(--_folio-ink-3);
  --_folio-ref-fill: var(--_folio-ref-mark);
}
.folio .ref-status[data-status="ok"]:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .ref-status[data-status="self"]:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { --_folio-ref-fill: transparent; }
.folio .ref-status[data-status="paywall"]:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .ref-status[data-status="archived"]:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { --_folio-ref-mark: var(--_folio-tok-number); }
.folio .ref-status:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  border: 1px solid var(--_folio-ref-mark);
  border-radius: 50%;
  background: var(--_folio-ref-fill);
  vertical-align: 0.03em;
  margin-inline-end: 0.4em;
}

/* The back-link is furniture: findable, never the first thing seen. */
.folio .ref-back:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  margin-inline-start: 0.5em;
  color: var(--_folio-ink-3);
  text-decoration: none;
}
.folio .ref-back:hover:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: var(--_folio-accent); }
.folio .ref-back + .ref-back:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin-inline-start: 0.3em; }

/* Arriving from a marker: the entry says so, in the yellow the find bar already
   uses, and says nothing else. `outline` rather than padding, because the
   highlight wants air around it and the entry must not move to get it. */
.folio .reference:target:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  background: color-mix(in srgb, var(--_folio-mark) 55%, transparent);
  outline: 0.35em solid color-mix(in srgb, var(--_folio-mark) 55%, transparent);
  border-radius: 4px;
}

/* ---------- sidenotes ---------- */

/* Folio's measure is 42rem inside whatever the window is. Past a point there is
   a margin either side of it doing nothing, and that margin is where a
   scholarly edition has always put its notes.
   The mechanism is a float with a negative inline-end margin: width + gap comes
   back off the margin, so the float's margin box lands entirely outside the
   column and no line of text is shortened by it. A float — not absolute
   positioning — because `clear` makes two notes from adjacent lines stack
   instead of overlap, and overlapping is the failure mode that actually shows
   up in a document with a dense apparatus. A float takes the top of the line
   box it appears in, so a note emitted beside its marker lands beside its
   marker; one emitted after the paragraph lands at the paragraph's foot, which
   is the best that can be had without measuring text.
   Below the width where the margin exists there is nowhere to put it, so it is
   not put anywhere and the end list carries the document. `screen and` is doing
   that job for print too — paper has one apparatus, never two. */
.folio .sidenote:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { display: none; }

@media screen and (min-width: 1140px) {
  .folio .sidenote:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
    --_folio-sidenote-w: 12rem;
    --_folio-sidenote-gap: 1.6rem;
    display: block;
    float: inline-end;
    clear: inline-end;
    width: var(--_folio-sidenote-w);
    margin-inline-end: calc(-1 * (var(--_folio-sidenote-w) + var(--_folio-sidenote-gap)));
    margin-block: 0.3em 1.1em;
    font-size: 0.75em;
    line-height: 1.5;
    color: var(--_folio-ink-2);
    text-align: start;
    hyphens: auto;               /* 12rem is a narrow measure; let words break */
  }
  /* the note carries its own number, in the marker's treatment at the note's
     size — a margin note that does not say which marker it answers is decoration */
  .folio .sidenote:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before {
    content: attr(data-ref);
    font-size: 0.8em;
    font-weight: 550;
    font-variant-numeric: lining-nums;
    color: var(--_folio-accent);
    line-height: 0;
    position: relative;
    top: -0.4em;
    margin-inline-end: 0.35em;
  }
  .folio .sidenote p:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin: 0 0 0.5em; }
  .folio .sidenote p:last-child:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin-bottom: 0; }
}

/* ---------- blocked remote content ---------- */

/* A blocked image keeps its element — restoring is then a matter of putting the
   reference back — but stands in as a quiet ruled rectangle instead of the
   broken-image glyph an empty src would otherwise draw. The alt text stays on
   the element for assistive tech; painting it transparent keeps it off the page,
   where a figure already repeats it as a caption and 500 of them would shout. */
.folio .content img.remote-blocked:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  display: inline-block;
  width: 3.4em;
  aspect-ratio: 16 / 10;
  vertical-align: -0.35em;
  background: var(--_folio-code-bg);
  border: 1px solid var(--_folio-hairline-soft);
  border-radius: 5px;
  color: transparent;
  overflow: hidden;
  cursor: default;
}
.folio .content figure > img.remote-blocked:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  display: block;
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
  border-radius: 6px;
  vertical-align: baseline;
}

/* ---------- print ---------- */

@media print {
  .folio { font-size: 11pt; }
  .folio .content:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { max-width: none; padding: 0; }
  .folio .code-block pre:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { overflow-x: visible; white-space: pre-wrap; }

  /* Paper gets the list, never both — sidenotes are already off, because the
     query that turns them on is `screen and`. What is left is the apparatus
     behaving like print: an entry does not straddle a page, a back-link is a
     dead control on paper, and blue ink is a claim a laser printer cannot keep. */
  .folio .reference:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { break-inside: avoid; }
  /* on screen ink-3 is a legible quiet; on paper, at 8pt, it is a grey the
     printer half-keeps — and the figure is the one part of an entry a reader
     has to match against a marker */
  .folio .reference:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before { color: var(--_folio-ink-2); }
  .folio .ref-back:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { display: none; }
  .folio sup.cite a:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio sup.footnote-ref a:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .ref-target:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: inherit; }
}

/* The native window draws its title over the top of the page
   (fullSizeContentView), so text scrolling up would print through the title.
   A paper-coloured band fades it out. App only: index.html marks its root. */
.folio[data-folio-app] body:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before {
  content: ''; position: fixed; inset: 0 0 auto 0; height: 40px;
  background: linear-gradient(var(--_folio-paper) 55%, transparent);
  z-index: 45; pointer-events: none;
}
@media print { .folio[data-folio-app] body:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before { display: none; } }

/* Reduced motion: no recede, no fans, no flashes — state changes, instantly. */
@media (prefers-reduced-motion: reduce) {
  .folio, .folio *:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio *:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before, .folio *:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* While the spine is fanned out its labels sit over the right of the page.
   A paper wash behind them keeps the labels legible and the body text from
   reading through them; it arrives with the labels and leaves with them. */
.folio[data-folio-app] body:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::after {
  content: ''; position: fixed; top: 0; right: 0; bottom: 0; width: 360px;
  background: linear-gradient(to left, var(--_folio-paper) 62%, transparent);
  opacity: 0; pointer-events: none; z-index: 50;   /* under the track (51) and labels (52) */
  transition: opacity .18s ease;
}

@media print { .folio[data-folio-app] body:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::after { display: none; } }

/* MathML — what exports, Quick Look and MCP renders carry (KaTeX's MathML
   output: no fonts or script to ship). STIX Two Math ships with macOS. */
.folio math:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-family: "STIX Two Math", "Latin Modern Math", math; }
.folio .math-block math:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: 1.25em; }
.folio .math-block[data-typeset]:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { overflow-x: auto; text-align: center; margin: 1.2em 0; }

.folio .code-block:hover:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before, .folio .code-block:focus-within:where(:not(.folio [data-folio-island], .folio [data-folio-island] *))::before { opacity: 0; }

/* ---------- tables: numbers stay whole ---------- */

.folio table:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-variant-numeric: tabular-nums; }
.folio th[style*="right"]:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio td[style*="right"]:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { white-space: nowrap; }

/* ---------- Word documents (FolioEngine/Docx.swift) ---------- */

/* A Word document's colours, exactly as written in light mode; in dark mode
   blended toward the reader's ink and paper so they stay legible rather than
   dark-on-dark. The colour travels as a custom property, so the document's
   value is data and these rules decide how it is shown. */
.folio .content .docx-color:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { color: light-dark(var(--docx-fg), color-mix(in srgb, var(--docx-fg) 55%, var(--_folio-ink))); }
.folio .content .docx-shade:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { background: light-dark(var(--docx-bg), color-mix(in srgb, var(--docx-bg) 32%, var(--_folio-paper))); }
.folio .content table.docx-table:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { border-collapse: collapse; }
.folio .content table.docx-table th:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .content table.docx-table td:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) {
  border: 1px solid var(--_folio-hairline); padding: 0.4em 0.6em; vertical-align: top;
}
.folio .content table.docx-table th:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-weight: 600; }
.folio .content figure.docx-chart:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin: 2em 0; text-align: left; }
.folio .content .docx-chart-svg:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { display: block; width: 100%; height: auto; color: var(--_folio-ink); }
.folio .content .docx-chart-data:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin-top: 0.6em; font: 0.8em/1.4 var(--_folio-sans); color: var(--_folio-ink-2); }
.folio .content .docx-chart-data summary:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { cursor: pointer; }
.folio .content .docx-chart-data table:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { font-size: 1em; }
.folio .content .docx-chart-open:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { margin: 0.5em 0 0; font: 0.8em/1.4 var(--_folio-sans); }
/* a drawn Windows metafile was made for a white page: keep it on one */
.folio .content img.docx-metafile:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { background: #fff; border-radius: 4px; }
@media print { .folio .content .docx-chart-data:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)), .folio .content .docx-chart-open:where(:not(.folio [data-folio-island], .folio [data-folio-island] *)) { display: none; } }

/* === moizs.com on Folio ==================================================
   Everything above is Folio's own scoped stylesheet, vendored untouched from
   the Folio repo (see scripts/folio/README.md). Everything below is this site's
   layer on top of it, and the only place the long-form typography is adjusted.
   scripts/build-essays.mjs joins the two into one cached file.

   It speaks only Folio's public contract, the --folio-* properties, so a Folio
   update cannot rename anything out from under it.

   The face is the site's, Manrope. The site chose one face on 2026-09-20 (the
   book in a system serif read as a separate website, and a system serif renders
   differently on every machine), and the owner kept that choice when the essays
   moved to Folio: Folio sets the measure, the rhythm, the lists, the quotes and
   the notes; the letters are the site's. */

.folio {
    --folio-serif: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --folio-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* the site's own body size, the one the essays had before Folio: 18px on a wide screen */
    --folio-font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --folio-measure: 100%;                 /* the page sets the column, as on every other page */
    --folio-paper: transparent;            /* the site's paper, not a second one laid on it */
    --folio-ink: var(--color-text);
    --folio-ink-secondary: var(--color-text-secondary);
    --folio-ink-tertiary: var(--color-text-tertiary);
    --folio-rule: var(--color-border);
    --folio-accent: var(--color-link);
    line-height: 1.75;
    overflow-x: visible;                   /* the heading links hang in the margin */
}
/* Folio's palette follows color-scheme; the site's follows data-theme. One decides the other. */
[data-theme="light"] .folio { color-scheme: light; }
[data-theme="dark"] .folio { color-scheme: dark; }

.folio .content { padding: 0; }
.folio a:hover { color: var(--color-link-hover); text-decoration-color: currentColor; }

/* A heading's link hangs in the left margin. Below 900px there is no margin to
   hang it in, so it is not shown; the heading's id still takes a link. */
@media (max-width: 899px) { .folio { --folio-permalinks: none; } }

/* On a phone, the reader kit's measured density: 17px on 1.65 leading. */
@media (max-width: 520px) {
    .folio { --folio-font-size: 1.0625rem; line-height: 1.65; }
    .folio .content > h1:first-child { font-size: 2.1em; }
}

/* The interactive figures are the page's own objects and keep the site's interface type. */
.folio .fig, .folio .reel { font-family: var(--font-sans, 'Manrope', sans-serif); }

@media print {
    .folio { color-scheme: light; --folio-permalinks: none; }
}
