

.hl.lean {
  white-space: pre;
  font-weight: normal;
  font-style: normal;
  font-size: inherit;
}

.hl.lean .keyword {
  color: var(--verso-code-keyword-color,);
  font-weight: var(--verso-code-keyword-weight, bold);
  font-style: var(--verso-code-keyword-style, normal);
  font-family: var(--verso-code-keyword-font-family,);
}

.hl.lean .const {
  color: var(--verso-code-const-color,);
  font-weight: var(--verso-code-const-weight, normal);
  font-style: var(--verso-code-const-style, normal);
  font-family: var(--verso-code-const-font-family,);
}

.hl.lean .var {
  color: var(--verso-code-var-color,);
  font-weight: var(--verso-code-var-weight, normal);
  font-style: var(--verso-code-var-style, italic);
  font-family: var(--verso-code-var-font-family,);

  position: relative;
}

.hl.lean .literal, .hl.lean .unknown {
  color: var(--verso-code-color,);
  font-weight: normal;
  font-style: normal;
  font-family: var(--verso-code-font-family,);
}

/* These lexically-classified token kinds default to the `.unknown` appearance. The rule follows
   `.const` so it wins for the `anon-ctor` tokens, which also carry the `const` class. */
.hl.lean .anon-ctor,
.hl.lean .number,
.hl.lean .char,
.hl.lean .comment,
.hl.lean .punctuation,
.hl.lean .delim,
.hl.lean .wildcard {
  color: var(--verso-code-color,);
  font-weight: normal;
  font-style: normal;
  font-family: var(--verso-code-font-family,);
}

.hover-container {
  width: 0;
  height: 0;
  position: relative;
  display: inline;
}

.hl.lean a {
  color: inherit;
  text-decoration: currentcolor underline dotted;
}

.hl.lean a:hover {
  text-decoration: currentcolor underline solid;
}

/* Links inside tooltips show their underline only when hovered. */
.tippy-box .hl.lean a {
  text-decoration: none;
}

.hl.lean .hover-info {
  white-space: normal;
}

.hl.lean .token .hover-info {
  display: none;
  position: absolute;
  color: var(--verso-tooltip-color, black);
  background-color: var(--verso-tooltip-bg-color, #e5e5e5);
  border: 1px solid var(--verso-tooltip-border-color, black);
  padding: 0.5rem;
  z-index: 300;
}

.hl.lean .hover-info.messages {
  max-height: 10rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding: 0 0.5rem 0 0;
  display: block;
}

.hl.lean .hover-info code {
  white-space: pre-wrap;
  background: none;
}

.hl.lean .hover-info code:not(.verso-message) {
  color: var(--verso-tooltip-color, black);
}

.hl.lean .hover-info.messages > code {
  padding: 0.5rem;
  display: block;
  width: fit-content;
}

.hl.lean .hover-info.messages > code:only-child {
  margin: 0;
}

.hl.lean .hover-info.messages > code {
  margin: 0.1rem;
}

.hl.lean .hover-info.messages > code:not(:first-child) {
  margin-top: 0rem;
}

.hl.lean {
}

.hl.lean.block {
  display: block;
}

.hl.lean.inline {
  display: inline;
  white-space: pre-wrap;
}

.hl.lean * {
}

.hl.lean .token {
  transition: all 0.25s; /* Slight fade for highlights */
}

@media (hover: hover) {
  /* Hovered content nested in a collapsed tactic region keeps its plain background: the
     region's proof state is the tooltip that appears there, and its label is what
     highlights. `:where` keeps the exclusion out of the specificity computation. */
  .hl.lean .token.binding-hl,
  .hl.lean :is(.literal, .token.typed, .token[data-verso-hover]):hover:not(:where(.tactic:has(> .tactic-toggle:not(:checked)) > label *)) {
    background-color: var(--verso-code-hover-bg-color, #eeeeee);
    border-radius: 2px;
    transition: none;
  }

  /* Within a hovered message span, token hover backgrounds are removed so the span's own
     hover background shows across the whole span. The exception is a hovered documented
     token, which keeps its background because its tooltip is the one shown. */
  .hl.lean .has-info:hover .token.binding-hl:not(:hover),
  .hl.lean .has-info:hover .token.binding-hl:not([data-verso-hover]),
  .hl.lean .has-info:hover .literal:hover:not([data-verso-hover]),
  .hl.lean .has-info:hover .token.typed:hover:not([data-verso-hover]) {
    background-color: transparent;
  }
}


.hl.lean .has-info .token:not(.tactic-state):not(.tactic-state *), .hl.lean .has-info .inter-text:not(.tactic-state):not(.tactic-state *) {
  text-decoration-style: wavy;
  text-decoration-line: underline;
  text-decoration-thickness: from-font;
  text-decoration-skip-ink: none;
}

/*
The underline color comes from the nearest enclosing message span: each severity's span rule
sets `--verso--region-indicator-color`, which inherits, so a region nested inside one of
another severity keeps its own indicator color.
*/
.hl.lean .has-info :not(.tactic-state):not(.tactic-state *) {
  text-decoration-color: var(--verso--region-indicator-color);
}

.hl.lean .has-info .hover-info {
  display: none;
  position: absolute;
  transform: translate(0.25rem, 0.3rem);
  color: var(--verso-tooltip-color, black);
  border: 1px solid var(--verso-tooltip-border-color, black);
  padding: 0.5rem;
  z-index: 400;
  text-align: left;
}

.hl.lean .has-info.error {
  --verso--region-indicator-color: var(--verso-error-indicator-color, #ff0000);
  --verso--region-hover-color: var(--verso-code-error-hover-color, currentcolor);
  --verso--region-hover-bg-color: var(--verso-code-error-hover-bg-color, #ffb3b3);
  color: var(--verso-code-error-color, currentcolor);
  background-color: var(--verso-code-error-bg-color, transparent);
}

/*
The hover highlight follows the tooltip: a message span highlights only when its own tooltip
is the one that appears. When a hovered nested message span, a hovered documented token, or
a hovered collapsed tactic label shows its own tooltip instead, the message span does not
highlight. A span nested in a collapsed tactic region likewise stays plain, because hovering
it shows the region's proof state; `:where` keeps that exclusion out of the specificity
computation.

The hover colors come from `--verso--region-hover-color` and `--verso--region-hover-bg-color`,
which each severity's span rule sets. This keeps the hover conditions in this one rule, and
because the properties inherit, a region nested inside one of another severity keeps its own
hover colors.
*/
@media (hover: hover) {
  .hl.lean .has-info:hover:not(:has(.has-info:hover)):not(:has([data-verso-hover]:hover)):not(:has(.tactic > label:hover + .tactic-toggle:not(:checked))):not(:where(.tactic:has(> .tactic-toggle:not(:checked)) > label *)) {
    color: var(--verso--region-hover-color, currentcolor);
    background-color: var(--verso--region-hover-bg-color, transparent);
  }
}

.hl.lean .hover-info.messages > code.error {
  background-color: var(--verso-tooltip-error-bg-color, #e5e5e5);
  border-left: 0.2rem solid var(--verso-tooltip-error-border-color, #ffb3b3);
}

/*
A tooltip that shows only messages of the box's own severity leaves severity styling to the
box itself. When messages of several severities share the tooltip, or a `mixed` tooltip
combines messages with other content (such as documentation), each message keeps its
severity accent to distinguish them.
*/
.tippy-box .hl.lean.mixed > .hover-info.messages {
  margin-bottom: 0.5rem;
}

.tippy-box[data-theme~='error'] .hl.lean:not(.mixed) .hover-info.messages:not(:has(> code.warning)):not(:has(> code.information)) > code.error {
  background: none;
  border: none;
}

.error .verso-message, .error .verso-message .token, .error .verso-message label {
  color: var(--verso-message-error-color, #cc0000);
}

.error .verso-message .case-label:has(input[type="checkbox"])::before {
  background-color: var(--verso-message-error-color, #cc0000) !important;
}

.hl.lean .has-info.warning {
  --verso--region-indicator-color: var(--verso-warning-indicator-color, #e7a71d);
  --verso--region-hover-color: var(--verso-code-warning-hover-color, currentcolor);
  --verso--region-hover-bg-color: var(--verso-code-warning-hover-bg-color, #ffd580);
  color: var(--verso-code-warning-color, currentcolor);
  background-color: var(--verso-code-warning-bg-color, transparent);
}

.hl.lean .hover-info.messages > code.warning {
  background-color: var(--verso-tooltip-warning-bg-color, #e5e5e5);
  border-left: 0.2rem solid var(--verso-tooltip-warning-border-color, #ffd580);
}

.lean-output {
  border-left: 0.2em solid transparent;
  padding: 0 0 0 0.5em;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.lean-output.error {
  border-color: var(--verso-output-error-color, var(--verso-error-indicator-color, #ff0000));
}

.lean-output.information {
  border-color: var(--verso-output-info-color, var(--verso-info-indicator-color, #4777ff));
}

.lean-output.warning {
  border-color: var(--verso-output-warning-color, var(--verso-warning-indicator-color, #e7a71d));
}

.tippy-box[data-theme~='warning'] .hl.lean:not(.mixed) .hover-info.messages:not(:has(> code.error)):not(:has(> code.information)) > code.warning {
  background: none;
  border: none;
}

.warning .verso-message, .warning .verso-message .token, .warning .verso-message label {
  color: var(--verso-message-warning-color, currentcolor);
}

.warning .verso-message .case-label:has(input[type="checkbox"])::before {
  background-color: var(--verso-message-warning-color, currentcolor) !important;
}


.hl.lean .has-info.information {
  --verso--region-indicator-color: var(--verso-info-indicator-color, #4777ff);
  --verso--region-hover-color: var(--verso-code-info-hover-color, currentcolor);
  --verso--region-hover-bg-color: var(--verso-code-info-hover-bg-color, #4777ff);
  color: var(--verso-code-info-color, currentcolor);
  background-color: var(--verso-code-info-bg-color, transparent);
}


.hl.lean .hover-info.messages > code.information {
  background-color: var(--verso-tooltip-info-bg-color, #e5e5e5);
  border-left: 0.2rem solid var(--verso-tooltip-info-border-color, #4777ff);
}

.tippy-box[data-theme~='info'] .hl.lean:not(.mixed) .hover-info.messages:not(:has(> code.error)):not(:has(> code.warning)) > code.information {
  background: none;
  border: none;
}

.information .verso-message, .information .verso-message .token, .information .verso-message label {
  color: var(--verso-message-info-color, currentcolor);
}

.information .verso-message .case-label:has(input[type="checkbox"])::before {
  background-color: var(--verso-message-info-color, currentcolor) !important;
}

.hl.lean div.docstring {
  font-family: var(--verso-text-font-family, sans-serif);
  white-space: normal;
  max-width: calc(min(40rem, 90vw));
  width: max-content;
}

.hl.lean div.docstring > :last-child {
  margin-bottom: 0;
}

.hl.lean div.docstring > :first-child {
  margin-top: 0;
}

.hl.lean .hover-info .sep {
  display: block;
  width: auto;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0;
  height: 1px;
  border-top: 1px solid var(--verso-tooltip-separator-color, #ccc);
}

.hl.lean code {
  font-family: var(--verso-code-font-family);
}

.hl.lean .tactic-state {
  display: none;
  position: relative;
  width: fit-content;
  border: 1px solid var(--verso-tactic-state-border-color, #888888);
  border-radius: 0.1rem;
  padding: 0.5rem;
  font-family: sans-serif;
  color: var(--verso-tactic-state-color, black);
  background-color: var(--verso-tactic-state-bg-color, white);
}

.hl.lean.popup .tactic-state {
  position: static;
  display: block;
  width: auto;
  border: none;
  padding: 0.5rem;
  font-family: sans-serif;
  background-color: var(--verso-tactic-state-bg-color, white);
}


.hl.lean .tactic {
  position: relative;
  display: inline;
  vertical-align: top;
  /* Without these, mobile Safari will start making font sizes inconsistent when its text size adjustment feature is triggered.*/
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.hl.lean .tactic:has(> .tactic-toggle:checked) {
  display: inline-grid;
  grid-template-columns: 1fr;
}

.hl.lean .tactic-toggle:checked ~ .tactic-state {
  display: inline-block;
  vertical-align: top;
  grid-row: 2;
  justify-self: start;
}

.hl.lean .tactic > label {
  position: relative;
  grid-row: 1;
  display: inline;
}

@media (hover: hover) {
  /* Highlight a region on hover only when its own toggle is unchecked, and only the innermost
     hovered region: `label:hover` bubbles to ancestor labels, so suppress the highlight on a region
     whose label contains a more deeply nested hovered tactic label. The region's proof state is the
     tooltip for everything else in its label, so the label keeps its highlight while any of that
     content is hovered. */
  .hl.lean .tactic:has(> .tactic-toggle:not(:checked)) > label:hover:not(:has(.tactic > label:hover)) {
    background-color: var(--verso-code-hover-bg-color, #eeeeee);
  }
}

.hl.lean .tactic-toggle {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  height: 0;
  width: 0;
  z-index: -10;
}

.hl.lean .tactic > label::after {
  content: "";
  border: 1px solid var(--verso-tactic-toggle-color, #bbbbbb);
  /* These need to be em, not rem, to scale with the font */
  border-radius: 1em;
  height: 0.25em;
  vertical-align: middle;
  width: 0.6em;
  margin-left: 0.1em;
  margin-right: 0.1em;
  display: inline-block;
  transition: all 0.5s;
}

/*
@media (hover: hover) {
  .hl.lean .tactic > label:hover::after {
    border: 1px solid #aaaaaa;
    background-color: #aaaaaa;
    transition: all 0.5s;
  }
}
*/

.hl.lean .tactic > label:has(+ .tactic-toggle:checked)::after {
  border: 1px solid var(--verso-tactic-toggle-checked-color, #999999);
  background-color: var(--verso-tactic-toggle-checked-color, #999999);
  transition: all 0.5s;
}

.hl.lean .tactic-state .goal + .goal {
  margin-top: 1.5em;
}

/*
Some CSS frameworks customize details/summary in ways not compatible with Verso's output.
*/

.hl.lean details {
  display: block !important;
  margin: 0;
}

.hl.lean details summary {
  display: list-item !important;
  margin: 0;
}

.hl.lean details summary:focus {
  outline: none;
  outline-offset: none;
  color: inherit;
}

.hl.lean ul > li {
  margin-bottom: 0;
}

.hl.lean details summary::marker {
  display: inline !important;
}

.hl.lean details > summary:first-of-type {
  list-style-type: disclosure-closed;
  list-style-position: inside;
}

.hl.lean details[open] > summary:first-of-type {
  list-style-type: disclosure-open;
}

.hl.lean details summary::before, .hl.lean details summary::after {
  content: "" !important;
  background: none;
  display: none;
}

.hl.lean .tactic-state summary {
  /* These need to be em, not rem, to scale with the font */
  margin-left: -0.5em;
}

.hl.lean .tactic-state details {
  /* These need to be em, not rem, to scale with the font */
  padding-left: 0.5em;
}

.hl.lean .case-label {
  display: block;
  position: relative;
}

.hl.lean .case-label input[type="checkbox"] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  height: 0;
  width: 0;
  z-index: -10;
}

.hl.lean .case-label:has(input[type="checkbox"])::before {
  display: inline-block;
  background-color: currentcolor;
  content: ' ';
  transition: ease 0.2s;
  margin-right: 0.7em;
  clip-path: polygon(100% 0, 0 0, 50% 100%);
  width: 0.6em;
  height: 0.6em;
  vertical-align: middle;
}

.hl.lean .case-label:has(input[type="checkbox"]:not(:checked))::before {
  transform: rotate(-90deg);
}

.hl.lean .case-label:has(input[type="checkbox"]) {

}

.hl.lean .case-label:has(input[type="checkbox"]:checked) {

}


.hl.lean .labeled-case > :not(:first-child) {
  max-height: 0px;
  display: block;
  overflow: hidden;
  transition: max-height 0.1s ease-in;
  /* These need to be em, not rem, to scale with the font */
  margin-left: 0.5em;
  margin-top: 0.1em;
}

.hl.lean .labeled-case:has(.case-label input[type="checkbox"]:checked) > :not(:first-child) {
  max-height: 100%;
}


.hl.lean .goal-name::before {
  font-style: normal;
  content: "case ";
}

.hl.lean .goal-name {
  font-style: italic;
  font-family: var(--verso-code-font-family);
  color: inherit;
}

.hl.lean .hypotheses {
  display: table;
}

.hl.lean .hypothesis {
  display: table-row;
}

.hl.lean .hypothesis > * {
  display: table-cell;
}


.hl.lean .hypotheses .colon {
  text-align: center;
  /* This needs to be em, not rem, to scale with the font */
  min-width: 1em;
}

.hl.lean .hypotheses .name {
  text-align: right;
}

.hl.lean .hypotheses .name,
.hl.lean .hypotheses .type,
.hl.lean .conclusion .type {
  font-family: var(--verso-code-font-family);
}

.tippy-box {
  /* Without these, mobile Safari will start making font sizes inconsistent when its text size adjustment feature is triggered.*/
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/*
Tippy's stylesheet paints each arrow's fill triangle with the arrow element's `color` (its
placement-specific `::before` rules use `border-color: initial`, which is `currentcolor`),
and its border extension paints the outline triangle with the box's border color. Setting
`color` on the arrow therefore matches it to the tooltip background for every placement.
*/
.tippy-box[data-theme~='lean'] {
  background-color: var(--verso-tooltip-bg-color, #e5e5e5);
  color: var(--verso-tooltip-color, black);
  border: 1px solid var(--verso-tooltip-border-color, black);
}
.tippy-box[data-theme~='lean'] > .tippy-arrow {
  color: var(--verso-tooltip-bg-color, #e5e5e5);
}

.tippy-box[data-theme~='message'][data-placement^='top'] > .tippy-arrow::before {
  border-width: 11px 11px 0;
}
.tippy-box[data-theme~='message'][data-placement^='top'] > .tippy-arrow::after {
  bottom: -11px;
  border-width: 11px 11px 0;
}
.tippy-box[data-theme~='message'][data-placement^='bottom'] > .tippy-arrow::before {
  border-width: 0 11px 11px;
}
.tippy-box[data-theme~='message'][data-placement^='bottom'] > .tippy-arrow::after {
  top: -11px;
  border-width: 0 11px 11px;
}
.tippy-box[data-theme~='message'][data-placement^='left'] > .tippy-arrow::before {
  border-width: 11px 0 11px 11px;
}
.tippy-box[data-theme~='message'][data-placement^='left'] > .tippy-arrow::after {
  right: -11px;
  border-width: 11px 0 11px 11px;
}

.tippy-box[data-theme~='message'][data-placement^='right'] > .tippy-arrow::before {
  border-width: 11px 11px 11px 0;
}
.tippy-box[data-theme~='message'][data-placement^='right'] > .tippy-arrow::after {
  left: -11px;
  border-width: 11px 11px 11px 0;
}



.tippy-box[data-theme~='warning'] {
  background-color: var(--verso-tooltip-warning-bg-color, #e5e5e5);
  color: var(--verso-tooltip-warning-color, black);
  border: 3px solid var(--verso-tooltip-warning-border-color, #ffd580);
}
.tippy-box[data-theme~='warning'] > .tippy-arrow {
  color: var(--verso-tooltip-warning-bg-color, #e5e5e5);
}

.tippy-box[data-theme~='error'] {
  background-color: var(--verso-tooltip-error-bg-color, #e5e5e5);
  color: var(--verso-tooltip-error-color, black);
  border: 3px solid var(--verso-tooltip-error-border-color, #ffb3b3);
}
.tippy-box[data-theme~='error'] > .tippy-arrow {
  color: var(--verso-tooltip-error-bg-color, #e5e5e5);
}

.tippy-box[data-theme~='info'] {
  background-color: var(--verso-tooltip-info-bg-color, #e5e5e5);
  color: var(--verso-tooltip-info-color, black);
  border: 3px solid var(--verso-tooltip-info-border-color, #4777ff);
}
.tippy-box[data-theme~='info'] > .tippy-arrow {
  color: var(--verso-tooltip-info-bg-color, #e5e5e5);
}

.tippy-box[data-theme~='tactic'] {
  background-color: var(--verso-tactic-state-bg-color, white);
  color: var(--verso-tactic-state-color, black);
  border: 1px solid var(--verso-tactic-state-border-color, #888888);
}
.tippy-box[data-theme~='tactic'] > .tippy-arrow {
  color: var(--verso-tactic-state-bg-color, white);
}

.extra-doc-links {
  list-style-type: none;
  margin-left: 0;
  padding: 0;
}

.extra-doc-links > li {
  display: inline-block;
}

.extra-doc-links > li:not(:last-child)::after {
  content: '|';
  display: inline-block;
  margin: 0 0.25em;
}

.verso-message .trace {
  display: block;
}

.verso-message .trace > summary::marker {
  color: var(--verso-text-color, black);
}

.verso-message .trace-children {
  margin: 0;
  padding: 0;
}

.verso-message .trace-children > li {
  list-style-type: none;
  margin-left: 1.5em;
}

.verso-message .trace-children > li:not(:has(.trace)) {
  margin-left: 0;
}

.verso-message .trace-class {
  color: color-mix(in srgb, currentColor 70%, transparent);
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.verso-message .text {
  white-space: pre-wrap;
}


.checked-lean-example [data-lean-inspect] { cursor: help; }
.checked-lean-example [data-lean-inspect]:focus-visible {
  outline: 2px solid var(--link, #395985); outline-offset: 2px;
}
.checked-lean-info {
  position: fixed; z-index: 12000; box-sizing: border-box;
  width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px);
  overflow: auto; padding: 0; border: 1px solid var(--rule, #888);
  background: var(--bg, #fff); color: var(--ink, #171717);
  box-shadow: 0 4px 20px var(--shadow, #0003); font: 1rem/1.5 sans-serif;
  --verso-code-color: var(--ink, #171717); --verso-code-const-color: var(--ink, #171717);
  --verso-code-keyword-color: var(--ink, #171717); --verso-code-var-color: var(--ink, #171717);
  --verso-code-font-family: var(--font-mono, monospace); --verso-text-color: var(--ink, #171717);
}
.checked-lean-info-header { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 4px 6px 4px 14px; border-bottom: 1px dotted var(--rule, #888); }
.checked-lean-info-header > span { font-size: 0.85em; }
.checked-lean-info button { min-width: 44px; min-height: 44px; cursor: pointer;
  background: var(--panel, #eee); color: inherit; border: 1px solid var(--rule-soft, #ccc);
  font: inherit; }
.checked-lean-info button:focus-visible { outline: 2px solid var(--link, #395985); }
.checked-lean-info-body { padding: 12px 14px; overflow: auto; }
.checked-lean-info-body > .hl.lean { display: block; font-size: 0.9em; }
.checked-lean-info-body .hover-info { display: block; }
.checked-lean-info-body .checked-lean-documentation { white-space: pre-wrap; }
.checked-lean-info-error { white-space: normal; }
@media print { .checked-lean-info { display: none; } }

@font-face {
  font-family: 'Source Serif 4';
  src: url('/_fonts/SourceSerif4-Text-BASIC-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/_fonts/SourceSerif4-Text-BASIC-RegularItalic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/_fonts/SourceSerif4-Text-BASIC-Semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/_fonts/SourceSerif4-Text-BASIC-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/_fonts/SourceSerif4-Text-BASIC-BoldItalic.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/_fonts/SourceSans3-BASIC-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/_fonts/SourceSans3-BASIC-Semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: optional;
}
@font-face {
  font-family: 'STIX Two Math';
  src: local('STIX Two Math'), url('/_fonts/STIXTwoMath-Subset.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #fff;
  --ink: #111;
  --ink-soft: #333;
  --muted: #555;
  --rule: #9a9a9a;
  --rule-soft: #d6d6d6;
  --panel: #f3f3f3;
  --link: #222;
  --link-visited: #4a4a4a;
  --focus: #7c2d12;
  --shadow: rgba(0, 0, 0, 0.08);
  --font-serif: 'Source Serif 4', 'Source Serif Pro', Charter, Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  --syn-kw: #007020;
  --syn-type: #902000;
  --syn-num: #317b56;
  --syn-str: #4070a0;
  --syn-com: #467580;
  --syn-fun: #06287e;
  --syn-op: #666666;
  --syn-pp: #986300;
  --syn-var: #19177c;
  --syn-err: #cc0000;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #151515;
  --ink: #eeeeee;
  --ink-soft: #d9d9d9;
  --muted: #b8b8b8;
  --rule: #777;
  --rule-soft: #3a3a3a;
  --panel: #202020;
  --link: #f0f0f0;
  --link-visited: #d0d0d0;
  --focus: #f6a15a;
  --shadow: rgba(0, 0, 0, 0.35);
  --syn-kw: #8ec07c;
  --syn-type: #d3869b;
  --syn-num: #83a598;
  --syn-str: #b8bb26;
  --syn-com: #948577;
  --syn-fun: #fabd2f;
  --syn-op: #a89984;
  --syn-pp: #fe8019;
  --syn-var: #83a598;
  --syn-err: #fb4934;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #151515;
    --ink: #eeeeee;
    --ink-soft: #d9d9d9;
    --muted: #b8b8b8;
    --rule: #777;
    --rule-soft: #3a3a3a;
    --panel: #202020;
    --link: #f0f0f0;
    --link-visited: #d0d0d0;
    --focus: #f6a15a;
    --shadow: rgba(0, 0, 0, 0.35);
    --syn-kw: #8ec07c;
    --syn-type: #d3869b;
    --syn-num: #83a598;
    --syn-str: #b8bb26;
    --syn-com: #948577;
    --syn-fun: #fabd2f;
    --syn-op: #a89984;
    --syn-pp: #fe8019;
    --syn-var: #83a598;
    --syn-err: #fb4934;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Apple's touch devices expose the reader's chosen text size as the system
   body font: 17px at the default setting, up to 33px and beyond with the
   accessibility sizes. Take the root size from it, so that every rem in this
   stylesheet follows Dynamic Type and Vision Pro's text size. body restores
   the site's own typeface and its regular weight: the system body font of
   visionOS is heavier than 400, and inherited it made Safari there choose
   the semibold face for all prose and the bold italic for every italic.
   Desktop browsers match neither condition, and their root stays at the
   reader's browser setting. */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  @media (pointer: coarse) { html { font: -apple-system-body; } }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 1rem; z-index: 20; background: var(--panel); padding: 0.35rem 0.6rem; }
.skip-link:focus { left: 1rem; }
.site-header { position: relative; }
.site-mark {
  position: absolute;
  top: 0;
  display: block;
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  font-size: 56px;
  font-weight: 700;
  line-height: 72px;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 6px var(--bg);
}
.site-mark:visited { color: var(--ink); }
.site-nav {
  display: grid;
  border-top: 1px dotted var(--rule);
  border-left: 1px dotted var(--rule);
}
.site-nav a {
  display: block;
  padding: 0.42rem 0.5rem 0.36rem;
  border-right: 1px dotted var(--rule);
  border-bottom: 1px dotted var(--rule);
  color: var(--ink);
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
}
.site-nav a:hover { background: var(--panel); }
.site-main { width: min(895px, calc(100vw - 48px)); margin: 0 auto 3rem; }
.site-main article { position: relative; padding-bottom: var(--sidenote-extra-space, 0px); }
.site-footer {
  width: min(895px, calc(100vw - 48px));
  margin: 3.5rem auto 2.2rem;
  padding-top: 0.9rem;
  border-top: 1px dotted var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
}
.site-footer a, .site-footer a:visited { color: var(--muted); }
.home-page, .page-body, .post-body { margin: 0; }
.home-intro { margin: 0 0 2.4rem; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 200px);
  gap: 38px;
  align-items: start;
}
.home-portrait {
  margin: 0;
  border: 1px solid var(--rule-soft);
  background: var(--panel);
  box-shadow: 0 2px 12px var(--shadow);
}
.home-portrait img {
  display: block;
  width: 100%;
  height: auto;
}
.home-portrait figcaption {
  padding: 0.3rem 0.5rem 0.38rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-align: right;
}
/* The home page's one heading. It reads as the opening sentence, so it is
   set as body text. */
.home-lede {
  margin: 0;
  color: var(--ink);
  font-size: 1em;
  font-weight: 400;
  line-height: 1.62;
}
.smallcaps { font-variant-caps: small-caps; font-weight: 700; letter-spacing: 0.03em; }
.home-note {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.95em;
}
.directory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 2.2rem;
}
.directory-section + .directory-section { margin-top: 2rem; }
.directory-section h2, .post-directory h2, .category-directory h2 {
  margin: 0 0 0.75rem;
  border-bottom: 1px dotted var(--rule);
  color: var(--ink-soft);
  font-size: 1.5rem;
  line-height: 1.05;
  font-variant-caps: small-caps;
}
.post-directory { margin-top: 1.8rem; }
.link-list, .post-list, .category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.link-list li, .post-list > li, .category-list li {
  position: relative;
  margin: 0.42rem 0;
  padding-left: 1.15rem;
}
.link-list li::before, .post-list > li::before, .category-list li::before {
  content: '*';
  position: absolute;
  left: 0;
  color: var(--muted);
  font-weight: 700;
}
.link-list a, .post-list a.title { text-decoration-style: dotted; }
.link-list .metadata, .post-list .metadata {
  white-space: nowrap;
  margin: 0 0 0 0.45rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
}
.feature-rule {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin: 3.1rem auto 2.7rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.latest-blog { margin-top: 1.5rem; }
.article-header h1, .post-header h1 {
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-size: 2.3em;
  font-weight: 600;
  font-variant-caps: small-caps;
  line-height: 1.08;
}
.post-header, .article-header { text-align: center; margin: 0.5rem 0 2rem; }
[data-section-heading] { position: relative; padding-inline-end: 38px; }
.prose .heading-permalink { position: absolute; inset-inline-end: 0; top: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; min-height: 32px; padding: 0; border: 0; text-decoration: none;
  color: var(--muted); opacity: 0.3; font: normal 1.1rem var(--font-serif); }
.heading-permalink::before { content: '¶'; }
[data-section-heading]:hover > .heading-permalink, .heading-permalink:focus-visible { opacity: 1; }
.heading-permalink:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.section-link-feedback { position: fixed; z-index: 80; inset-inline-start: 50%; bottom: 24px;
  transform: translateX(-50%); padding: 10px 18px; border: 1px solid var(--rule);
  background: var(--bg); color: var(--ink); box-shadow: 0 2px 10px var(--shadow);
  font: 0.875rem var(--font-sans); text-align: center; max-width: calc(100vw - 32px); }
.section-link-feedback:empty { display: none; }
@media (max-width: 700px) {
  [data-section-heading] { padding-inline-end: 48px; }
  .prose .heading-permalink { width: 44px; min-height: 44px; opacity: 0.65; }
}
.article-meta, .metadata, #page-metadata {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--font-sans);
}
#page-metadata { margin: 0; }
.page-description {
  margin: 0 0 0.8rem;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.backlinks {
  clear: both;
  margin-top: 3rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9em;
}
details.collapse {
  scroll-margin-top: 4rem;
  margin: 1rem 0;
  border: 1px dotted var(--rule-soft);
  background: var(--panel);
  padding: 0 0.8rem;
}
details.collapse > summary {
  position: relative;
  scroll-margin-top: 4rem;
  cursor: pointer;
  padding: 0.45rem 44px 0.45rem 0;
  min-height: 44px;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  list-style-position: inside;
}
details.collapse > summary:hover { color: var(--ink); }
.prose .fold-permalink {
  position: absolute; inset-inline-end: 0; top: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; min-height: 44px; padding: 0; text-decoration: none;
  color: var(--muted); opacity: 0.5; font: normal 1.1rem var(--font-serif);
}
details.collapse > summary:hover > .fold-permalink, .fold-permalink:focus-visible { opacity: 1; }
.fold-permalink:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
details.collapse[open] > summary { border-bottom: 1px dotted var(--rule-soft); margin-bottom: 0.5rem; }
.backlinks h2 {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-caps: small-caps;
}
#page-metadata .sep { margin: 0 0.35rem; color: var(--rule); }
#page-metadata .page-tags { margin-top: 0.35rem; letter-spacing: 0.02em; }
#page-metadata .page-tags .tag {
  display: inline-block;
  margin: 0 0.25rem;
  padding: 0.05rem 0.4rem;
  border: 1px dotted var(--rule-soft);
  color: var(--muted);
}
.metadata .author + .author::before { content: ', '; }
.post-body .categories { display: inline-flex; gap: 0.4rem; margin: 0.45rem 0 0; padding: 0; list-style: none; }
.post-body .categories li { margin: 0; }
.post-body .categories a { color: var(--muted); }
.prose p, .post-body p {
  margin: 1rem 0 0;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.prose p + p, .post-body p + p { margin-top: 0.12rem; text-indent: 1.75em; }
.prose ul, .prose ol, .prose blockquote, .prose pre, .prose table, .prose figure { margin-top: 1rem; }
.prose a, .post-body .prose a { text-decoration-color: var(--rule); overflow-wrap: anywhere; }
.prose a:hover, .post-body .prose a:hover { text-decoration-color: currentColor; }
.prose h1, .post-body .prose h1 { margin: 2.2rem 0 0.8rem; font-size: 1.6rem; line-height: 1.12; }
.prose h2, .post-body h2 { margin: 2rem 0 0.7rem; font-size: 1.4rem; line-height: 1.15; }
.prose h3, .post-body h3 { margin: 1.6rem 0 0.5rem; font-size: 1.1rem; line-height: 1.2; }
.prose h4, .post-body h4 { margin: 1.4rem 0 0.4rem; font-size: 1rem; line-height: 1.25; font-variant-caps: small-caps; }
.prose ul, .post-body ul, .prose ol, .post-body ol { padding-left: 1.6rem; }
.prose li { margin: 0.25rem 0; }
.prose img { max-width: 100%; height: auto; display: block; margin: 1.4rem auto; }
/* A figure wants the full column: it starts below the contents box. */
.prose figure { margin: 1.6rem 0; clear: left; }
.prose figcaption { text-align: center; color: var(--muted); font-size: 0.85em; margin-top: 0.4rem; }
.prose blockquote {
  /* Its own formatting context: beside the floated contents box the quotation
     starts at the box's edge, instead of running its background and rule
     behind the box. */
  display: flow-root;
  margin: 1.15rem 0;
  padding: 0.1rem 1.1rem;
  border-left: 3px solid var(--rule);
  background: var(--panel);
}
.prose blockquote blockquote {
  border-left-color: var(--muted);
  background: transparent;
  border-top: 1px dotted var(--rule-soft);
  border-bottom: 1px dotted var(--rule-soft);
}
.prose hr { border: none; height: 1px; margin: 2.5rem auto; background: var(--rule-soft); }
.prose table {
  border-collapse: collapse;
  margin: 1.5rem auto;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.4;
}
.prose th, .prose td { border: 1px solid var(--rule); padding: 0.32rem 0.62rem; text-align: left; }
.prose thead th { border-bottom-width: 2px; background: var(--panel); }
.prose .table-wrapper { overflow-x: auto; }
.prose code, .post-body code { font-family: var(--font-mono); font-size: 0.85em; }
.prose :not(pre) > code { background: var(--panel); padding: 0.05em 0.3em; border: 1px solid var(--rule-soft); }
.prose code.math {
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 1em;
  padding: 0;
}
.prose pre {
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  padding: 0.65rem 0.85rem;
  overflow-x: auto;
  line-height: 1.45;
  font-size: 0.9em;
}
.prose pre code { background: none; border: none; padding: 0; }
.prose form {
  box-sizing: border-box; max-width: 100%; margin: 1.5rem 0; padding: 1.1rem;
  border: 1px solid var(--rule-soft); background: var(--panel); color: var(--ink);
}
.prose form label { display: block; margin: 0.7rem 0; }
.prose form input[type="text"], .prose form input[type="email"], .prose form textarea {
  display: block; box-sizing: border-box; width: 100%; max-width: 100%;
  padding: 0.6em; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule); border-radius: 0;
}
.prose form input[type="submit"] {
  box-sizing: border-box; max-width: 100%; min-height: 44px; height: auto !important;
  padding: 0.6em 1.25em; font: 600 0.85rem var(--font-sans); cursor: pointer;
  color: var(--bg); background: var(--ink); border: 1px solid var(--ink); border-radius: 0;
}
.prose #mc_embed_signup {
  box-sizing: border-box; width: auto !important; max-width: 100%;
  font: inherit !important; color: var(--ink); background: var(--panel) !important;
}
.prose #mc_embed_signup form { margin: 0 !important; padding: 1.1rem !important; }
.prose #mc_embed_signup .mc-field-group { width: 100%; }
.prose #mc_embed_signup .brandingLogo { text-indent: 0; }
.prose #mc_embed_signup .brandingLogo img { max-width: 100%; height: auto; }
code span.kw, code span.cf { color: var(--syn-kw); font-weight: 600; }
code span.dt { color: var(--syn-type); }
code span.dv, code span.bn, code span.fl { color: var(--syn-num); }
code span.st, code span.ch, code span.sc, code span.vs, code span.ss { color: var(--syn-str); }
code span.co, code span.do, code span.an, code span.cv, code span.in { color: var(--syn-com); font-style: italic; }
code span.fu { color: var(--syn-fun); }
code span.op { color: var(--syn-op); }
code span.pp, code span.bu, code span.ex, code span.at { color: var(--syn-pp); }
code span.va, code span.cn, code span.im { color: var(--syn-var); }
code span.al, code span.er { color: var(--syn-err); font-weight: 600; }
/* The renderer marks the one paragraph that can carry a cap; see
   GwernPort.Markdown.DropCap for the rule and what is proved about it. */
.post-body .prose > p.drop-cap::first-letter,
.post-body .prose > section:first-child > p.drop-cap::first-letter {
  float: left;
  font-size: 3.9em;
  line-height: 0.82;
  padding: 0.05em 0.08em 0 0;
  font-weight: 400;
}
/* The cap is 3.9em * (0.82 + 0.05) = 3.4em of body text tall. A paragraph at
   least that tall keeps the cap out of the paragraph below. */
.post-body .prose p.drop-cap { min-height: 3.4em; }
/* Mathematics is typeset at build time as MathML. A browser stretches a
   delimiter or a radical only with a font that has a MATH table. STIX Two
   Math ships with macOS, iOS, iPadOS and visionOS; its font-face rule above
   uses that copy and serves a subset to every other device. `math` is the
   platform's own math font, for a character the subset lacks. */
math { font-family: "STIX Two Math", math; }
/* A formula the build left as TeX, for the script its page loads. */
.math.display { display: block; overflow-x: auto; overflow-y: hidden; padding: 0.2rem 0; }
/* MathML does not break lines and WebKit does not scroll a math element, so
   the box around a display formula scrolls and its control stays in view. */
.math-display-group { display: block; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.math-display-group > math { padding: 0.3rem 0 0.7rem; }
.math-source-tools { display: flex; justify-content: flex-end; position: sticky; left: 0; }
.math-copy-button {
  color: var(--muted); background: transparent; border: 1px dotted var(--rule-soft);
  border-radius: 2px; min-height: 32px; padding: 4px 10px; cursor: pointer;
  font: 0.75rem var(--font-sans);
}
.math-copy-button[hidden] { display: none; }
.math-copy-button:hover { color: var(--ink); border-color: var(--rule); }
.math-copy-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 700px) { .math-copy-button { min-height: 44px; } }
mjx-container[display='true'] { overflow-x: auto; overflow-y: hidden; max-width: 100%; }
/* MathJax keeps a hidden copy of each formula for screen readers. Unstyled,
   it is wider than the drawn formula: that made every inline formula on a
   phone a scroller of a few pixels, and let the page scroll sideways at some
   desktop widths. It is clipped to nothing either way; hold it to the width
   of the formula it describes. */
mjx-container > mjx-assistive-mml { max-width: 100%; }
#TOC {
  float: left;
  max-width: min(300px, 46%);
  margin: 0.3rem 1.7rem 0.9rem 0;
  padding: 0.55rem 0.95rem 0.7rem;
  border: 1px solid var(--rule-soft);
  background: var(--panel);
  font-family: var(--font-sans);
  font-size: 0.8em;
  line-height: 1.5;
}
#TOC .toc-title {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-caps: small-caps;
  cursor: pointer;
  min-height: 32px;
  padding: 5px 0;
}
#TOC details:not([open]) > .toc-title { margin-bottom: 0; }
#TOC .toc-title:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
#TOC ul { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
#TOC ul ul { padding-left: 1.05rem; }
#TOC li { margin: 0.16rem 0; counter-increment: toc; }
#TOC li::before { content: counters(toc, '.') ' '; color: var(--muted); }
#TOC > details > ul > li::before { font-weight: 700; }
#TOC a { text-decoration: none; }
#TOC a:hover { text-decoration: underline; text-decoration-style: dotted; }
.citation a[href^='#ref-'] { white-space: nowrap; }
.bibliography {
  clear: both;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.bibliography h2 { margin-top: 0; }
.bibliography-list {
  margin: 0;
  padding-left: 1.5rem;
  font-size: 0.88em;
}
.bibliography-entry { margin: 0.5rem 0; padding-left: 0.2rem; }
.bibliography-entry:target {
  background: var(--panel);
  outline: 0.2rem solid var(--panel);
}
.bibliography-authors { font-variant-numeric: oldstyle-nums; }
.bibliography-year { color: var(--muted); white-space: nowrap; }
.footnotes {
  clear: both;
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85em;
}
.footnotes hr { display: none; }
.footnotes > ol > li { scroll-margin-top: 4rem; }
a.footnote-ref { text-decoration: none; font-weight: 600; padding: 0.35em 0.4em; margin: -0.35em -0.4em; }
a.footnote-back { text-decoration: none; margin-left: 0.3em; }
body.sidenotes-active .footnotes { margin-top: 0; border-top: 0; }
body.sidenotes-active .footnotes > ol { margin: 0; }
.footnotes li.sidenote-footnote { margin: 0; list-style: none; }
.sidenote-footnote::before { content: attr(data-footnote-number) '. '; font-weight: 700; }
.footnotes li:target { outline: 1px dotted var(--rule); outline-offset: 5px; }
.sidenote-authored {
  display: inline;
  color: var(--muted);
  font-size: 0.88em;
}
.sidenote-authored::before { content: ' ('; }
.sidenote-authored::after { content: ')'; }
.sidenote-generated { display: none; }
@media (min-width: 1407px) {
  .sidenote {
    display: block;
    position: absolute;
    left: calc(100% + 36px);
    width: min(320px, calc((100vw - 895px) / 2 - 56px));
    font-size: 0.76rem;
    line-height: 1.5;
    text-align: left;
    opacity: 0.92;
  }
  .sidenote p { margin: 0 0 0.4em; text-align: left; }
  .sidenote p:first-of-type { display: inline; }
  .sidenote .sidenote-number { font-weight: 700; }
  .sidenote:hover { opacity: 1; }
  /* Shown while the pointer rests on the note's reference in the text. */
  .sidenote.sidenote-marked { opacity: 1; outline: 1px dotted var(--rule); outline-offset: 5px; }
  .sidenote-authored::before, .sidenote-authored::after { content: none; }
}
main a[data-link-icon]::after {
  content: '\2009' attr(data-link-icon);
  font-size: 0.6em;
  vertical-align: 0.28em;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
}
main a.external-marker::after {
  content: '\2009\2197';
  font-size: 0.62em;
  vertical-align: 0.25em;
  color: var(--muted);
}
main a.pdf-marker::after {
  content: '\2009PDF';
  font-size: 0.55em;
  vertical-align: 0.3em;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.gwern-ann { border-bottom: 1px dotted var(--ink); cursor: help; text-decoration: none; }
.manuscript-notice { clear: both; margin: 1.4rem 0; padding: 0.8rem 1rem; border: 1px solid var(--rule); background: var(--panel); font-family: var(--font-sans); font-size: 0.78em; }
.manuscript-notice p { margin: 0 0 0.4rem; }
.manuscript-notice nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }

.link-popup {
  position: fixed;
  z-index: 40;
  width: min(520px, calc(100vw - 24px));
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 10px 32px var(--shadow);
  font-size: 0.82rem;
  line-height: 1.42;
}
.link-popup.pinned { border-color: var(--focus); box-shadow: 0 12px 36px var(--shadow); }
.link-popup-titlebar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.5rem;
  border-bottom: 1px dotted var(--rule-soft);
  background: var(--panel);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
}
.link-popup-titlebar a.link-popup-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.link-popup-pin, .link-popup-close {
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 0.15rem;
}
.link-popup-pin[aria-pressed='true'] { color: var(--focus); }
.link-popup-archive { color: var(--muted); text-decoration: none; font-size: 0.85rem; line-height: 1; }
.link-popup-archive:hover { color: var(--ink); }
.link-popup-pin:hover, .link-popup-close:hover { color: var(--ink); }
.link-popup-body {
  max-height: min(26rem, 55vh);
  overflow: auto;
  padding: 0.6rem 0.85rem 0.7rem;
}
.link-popup-body article { position: static; }
.link-popup-body .post-header { margin: 0 0 0.8rem; text-align: center; }
.link-popup-body .post-header h1 { font-size: 1.3em; }
.link-popup-body .TOC { display: none; }
.link-popup-body .backlinks { margin-top: 1.2rem; }
.link-popup-status { margin: 0; color: var(--muted); font-style: italic; }
.link-popup .sidenote-authored {
  display: inline;
  position: static;
  width: auto;
  color: var(--muted);
  font: inherit;
  opacity: 1;
}
.link-popup .sidenote-authored::before { content: ' ('; }
.link-popup .sidenote-authored::after { content: ')'; }
.link-popup-note p:first-of-type { display: inline; }
.link-popup-wiki img { float: right; max-width: 120px; height: auto; margin: 0 0 0.5rem 0.6rem; }
.link-popup-annotation .annotation-meta {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
}
.link-popup.popin { left: max(8px, calc(50vw - 360px)) !important; top: auto !important; bottom: 8px;
  width: min(calc(100vw - 16px), 720px) !important; max-height: calc(100dvh - 24px);
  display: flex; flex-direction: column; font-size: 0.9rem; }
.link-popup.popin .link-popup-titlebar { cursor: default; flex: 0 0 auto; padding: 0.2rem 0.5rem; font-size: 0.82rem; }
.link-popup.popin .link-popup-title { white-space: normal; line-height: 1.3; padding: 0.6rem 0; }
.link-popup.popin .link-popup-pin { display: none; }
.link-popup.popin .link-popup-close, .link-popup.popin .link-popup-archive {
  min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.link-popup.popin .link-popup-body { min-height: 0; max-height: 65dvh; overflow: auto; overscroll-behavior: contain; }
.link-popup-footer { display: none; }
.link-popup.popin .link-popup-footer { display: flex; justify-content: center; flex: 0 0 auto;
  border-top: 1px solid var(--rule-soft); font: 0.8rem var(--font-sans); }
.link-popup-footer a { flex: 1; min-height: 52px; display: flex; align-items: center; justify-content: center;
  padding: 0 1rem; color: var(--ink); background: var(--panel); font-weight: 600; }
.link-popup :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.image-focus-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; color: #f5f5f5;
  background: #101010;
  overflow: hidden;
}
.image-focus-overlay[open] {
  display: flex;
  flex-direction: column;
}
.image-focus-overlay::backdrop { background: rgba(0,0,0,.7); }
.image-focus-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  flex: 0 0 auto; font: 0.875rem var(--font-sans); }
.image-focus-toolbar button, .image-focus-toolbar a {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center;
  justify-content: center; padding: 6px 12px; border: 1px solid #777; border-radius: 3px;
  color: #fff; background: #262626; font: inherit; text-decoration: none; cursor: pointer;
}
.image-focus-toolbar button:disabled { color: #777; border-color: #444; cursor: default; }
.image-focus-counter { margin-inline: auto; white-space: nowrap; }
.image-focus-stage { flex: 1 1 auto; min-height: 0; overflow: auto;
  display: flex; padding: 8px; overscroll-behavior: contain;
  cursor: zoom-out; touch-action: pan-x pan-y pinch-zoom;
}
.image-focus-stage img { display: block; flex: 0 0 auto; max-width: 94vw; max-height: 100%;
  width: auto; height: auto; margin: auto; object-fit: contain; user-select: none; }
.image-focus-overlay.actual img, .image-focus-overlay.sized img { max-width: none; max-height: none; }
.image-focus-stage.pannable { cursor: grab; }
.image-focus-stage.dragging { cursor: grabbing; }
.image-focus-zoom-controls { display: flex; align-items: center; gap: 6px; }
.image-focus-zoom-status { min-width: 4ch; text-align: center; font-variant-numeric: tabular-nums; }
.image-focus-toolbar [hidden] { display: none; }
.image-focus-caption { margin: 0; padding: 10px 20px 16px; max-height: 20dvh; overflow: auto;
  flex: 0 0 auto; color: #eee; font: 0.875rem/1.45 var(--font-sans); text-align: center; }
.image-focus-overlay :focus-visible { outline: 3px solid #e4c27a; outline-offset: 2px; }
main .prose img[role=button] { cursor: zoom-in; }
main .prose img[role=button]:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
@media(max-width:600px) {
  .image-focus-toolbar { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; padding: 8px; }
  .image-focus-toolbar button, .image-focus-toolbar a { padding: 6px 8px; font-size: 0.8125rem; }
  .image-focus-counter { font-size: 0.75rem; grid-column: 3; grid-row: 1; }
  .image-focus-toolbar button:last-child { grid-column: 4; grid-row: 1; }
  .image-focus-toolbar button[aria-pressed] { grid-column: 1 / 3; grid-row: 2; }
  .image-focus-toolbar a { grid-column: 3 / 5; grid-row: 2; }
  .image-focus-zoom-controls { grid-column: 1 / 5; grid-row: 3; justify-content: center; }
  .image-focus-zoom-controls button { min-width: 64px; }
  .image-focus-caption { padding: 8px 12px 12px; font-size: 0.8125rem; }
}
.search-overlay {
  position: fixed;
  inset: 8vh 0 auto;
  width: min(620px, calc(100vw - 24px));
  max-width: none;
  max-height: 84vh;
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--bg);
  overflow: auto;
  overscroll-behavior: contain;
}
.search-overlay::backdrop { background: rgba(0, 0, 0, 0.4); }
.search-overlay[hidden], .search-overlay:not([open]) { display: none; }
.search-panel {
  width: 100%;
  background: var(--bg);
  box-shadow: 0 14px 40px var(--shadow);
}
.search-header { display: flex; align-items: center; justify-content: space-between; padding: 0.25rem 0.8rem; font: 600 0.9rem var(--font-sans); }
.search-close { min-width: 44px; min-height: 44px; color: var(--ink); background: transparent; border: none; font: inherit; cursor: pointer; }
.search-status, .search-hint { padding: 0.4rem 0.8rem; font: 0.75rem/1.4 var(--font-sans); color: var(--muted); }
.search-hint { border-top: 1px dotted var(--rule); }
.search-panel :focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.search-input {
  width: 100%;
  border: none;
  border-bottom: 1px dotted var(--rule);
  background: var(--panel);
  color: var(--ink);
  padding: 0.6rem 0.8rem;
  font: 400 1rem var(--font-sans);
  outline: none;
}
.search-results {
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  max-height: min(50vh, 24rem);
  overflow: auto;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}
.search-results li { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.3rem 0.85rem; }
.search-results li.selected { background: var(--panel); }
.search-results a { text-decoration: none; flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; overflow-wrap: anywhere; }
.search-results .search-meta { align-self: center; }
.search-meta { color: var(--muted); font-size: 0.75rem; white-space: nowrap; }
.reader-toolbar { position: fixed; z-index: 10; }
.reader-settings > summary {
  display: flex; align-items: center; justify-content: center;
  list-style: none; cursor: pointer;
  background: var(--bg); color: var(--muted);
  font: 32px/1 var(--font-sans); border-radius: 4px;
}
.reader-settings > summary::-webkit-details-marker { display: none; }
.reader-settings[open] > summary { background: var(--panel); color: var(--ink); }
.reader-toolbar-panel {
  position: absolute; right: 0; top: calc(100% + 6px);
  display: flex; gap: 8px; padding: 10px;
  max-width: calc(100vw - 24px);
  border: 1px solid var(--rule-soft); background: var(--bg);
  box-shadow: 0 4px 16px var(--shadow);
}
.toolbar-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 44px;
  border: 1px dotted var(--rule);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 6px var(--shadow);
  font: 700 0.75rem var(--font-sans);
  cursor: pointer;
  text-decoration: none;
}
a.toolbar-button, a.toolbar-button:visited { color: var(--ink); }
.toolbar-button.preview-preference { width: 80px; flex-shrink: 0; }
.toolbar-button[aria-pressed='true'] { outline: 2px solid var(--focus); }
.computed-example { margin: 1.5em 0; border: 1px solid var(--rule-soft); }
.prose .computed-example figcaption { text-align: left; margin: 0; padding: 0.5em 1em;
  font-family: var(--font-sans); font-size: 0.75em; font-variant-caps: small-caps; }
.prose .computed-example pre { margin: 0; border: 0; border-radius: 0; overflow-x: auto; }
.computed-result { border-top: 1px dotted var(--rule); background: var(--panel); }
.source-example { margin: 1em 0; min-width: 0; }
.prose .source-example figcaption { text-align: left; font: 0.8rem var(--font-sans); }
.prose .source-example pre { max-height: 38rem; overflow: auto; tab-size: 2; }
.checked-lean-example { margin: 1.5em 0; min-width: 0; border: 1px solid var(--rule-soft);
  --verso-code-color: var(--ink); --verso-code-keyword-color: var(--ink);
  --verso-code-const-color: var(--ink); --verso-code-var-color: var(--ink);
  --verso-code-font-family: var(--font-mono); --verso-text-color: var(--ink); }
.prose .checked-lean-example > figcaption { margin: 0; padding: 0.5em 1em;
  text-align: left; font: 0.8rem var(--font-sans); border-bottom: 1px solid var(--rule-soft); }
.checked-lean-scroll { max-width: 100%; overflow-x: auto; padding: 0.8em 1em; box-sizing: border-box; }
.checked-lean-scroll > code.hl.lean.block { margin: 0; min-width: max-content;
  padding: 0; border: 0; background: none; color: var(--ink); font-size: 0.85em; }
.checked-lean-scroll:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.checked-lean-documentation { white-space: pre-wrap; }
.checked-lean-scroll .tactic { position: relative; }
.checked-lean-scroll .hl.lean .tactic-toggle { width: 1px; height: 1px; }
.checked-lean-scroll .tactic:has(> .tactic-toggle:focus-visible) > label {
  outline: 2px solid var(--link); outline-offset: 3px; }
.checked-lean-scroll .hl.lean .token.binding-hl,
.checked-lean-scroll .hl.lean .tactic > label:hover { background: var(--panel); }
.checked-lean-scroll .hl.lean .tactic-state { background: var(--panel); color: var(--ink); }
/* A Verso page copied from the content tree and carried by the site shell.
   Its own styles load first and name black and white outright; these rules
   put its title, byline and Lean code in the theme's inks, in both schemes. */
.copied-publication {
  --verso-code-color: var(--ink); --verso-code-keyword-color: var(--ink);
  --verso-code-const-color: var(--ink); --verso-code-var-color: var(--ink);
  --verso-code-font-family: var(--font-mono); --verso-text-color: var(--ink); }
.copied-publication article > h1 { margin: 0.5rem 0 0.6rem; color: var(--ink);
  font-size: 2.3em; font-weight: 600; font-variant-caps: small-caps; line-height: 1.08;
  text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.copied-publication article > .metadata { display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0 0.7rem; margin: 0 0 2rem; }
.copied-publication code.hl.lean.block { margin-top: 1rem; padding: 0.65rem 0.85rem;
  background: var(--panel); border: 1px solid var(--rule-soft); color: var(--ink);
  line-height: 1.45; font-size: 0.9em; }
.copied-publication code.hl.lean.block:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.copied-publication .hl.lean code { padding: 0; border: 0; background: none; }
.copied-publication .hl.lean .token.binding-hl,
.copied-publication .hl.lean .token.typed:hover,
.copied-publication .hl.lean .literal.string:hover,
.copied-publication .hl.lean .has-info:hover,
.copied-publication .hl.lean .tactic > label:hover { background-color: var(--rule-soft); }
.copied-publication .hl.lean .tactic-state { background-color: var(--bg); color: var(--ink);
  border-color: var(--rule); }
.prose pre:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.computed-label { display: block; padding: 0.5em 1em 0; font: 0.75em var(--font-sans); }
.machine, .checked-theorem { clear: both; margin: 1.8em 0; border: 1px solid var(--rule-soft); background: var(--bg); }
.prose .machine > figcaption, .prose .checked-theorem > figcaption {
  margin: 0; padding: 0.7em 1em; text-align: left;
  font: 600 0.88em var(--font-sans); border-bottom: 1px solid var(--rule-soft);
}
.machine [hidden] { display: none; }
.machine-safety { padding: 0.55em 1em; font: 600 0.75em var(--font-sans); border-bottom: 1px dotted var(--rule-soft); }
.machine-safety.safe { color: #216142; background: #eef6f0; }
.machine-safety.unsafe { color: #912a27; background: #ffefed; }
.machine-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.machine-lane { min-width: 0; padding: 0.8em; }
.machine-lane + .machine-lane { border-left: 1px dotted var(--rule-soft); }
.prose .machine-lane h3 { margin: 0 0 0.7em; font: 700 0.8em var(--font-sans); }
.prose .machine-program { list-style: none; margin: 0; padding: 0; }
.prose .machine-instruction { display: flex; align-items: baseline; gap: 0.6em; margin: 0; padding: 0.6em 0.3em;
  border-left: 3px solid transparent; font-size: 0.72em; line-height: 1.5; }
.prose .machine-instruction code { background: none; border: none; box-shadow: none; padding: 0;
  white-space: normal; font: inherit; font-family: var(--font-mono); }
.machine-line-number { flex: 0 0 1em; color: var(--muted); font: 0.9em var(--font-mono); }
.machine-instruction.current { border-left-color: var(--ink); background: var(--panel); font-weight: 700; }
.critical .machine-instruction.current { border-left-color: #b95630; }
.machine-facts { display: flex; flex-wrap: wrap; gap: 1.5em; margin: 0; padding: 0.7em 1em; border-block: 1px dotted var(--rule-soft); }
.machine-facts > div { display: flex; gap: 0.5em; align-items: baseline; font-size: 0.7em; }
.machine-facts dt { color: var(--muted); font-family: var(--font-sans); }
.machine-facts dd { margin: 0; }
.prose .machine-facts dd code { font-size: 1em; }
.machine-actions, .machine-history { display: flex; flex-wrap: wrap; gap: 0.5em; padding: 0.65em 1em; }
.machine button { min-height: 44px; padding: 0.35em 0.8em; border: 1px solid var(--rule-soft);
  color: var(--ink); background: var(--panel); font: 600 0.75em var(--font-sans); cursor: pointer; }
.machine-actions button { flex: 1; }
.machine button:disabled { opacity: 0.5; cursor: default; }
.machine button:hover:not(:disabled) { border-color: var(--ink); }
.machine-history { border-top: 1px dotted var(--rule-soft); }
.prose .machine-status { margin: 0; padding: 0.2em 1.2em 1em; text-indent: 0; text-align: left; font: 0.72em/1.5 var(--font-sans); }
.compiled-machine { margin: 1.5em 0; }
.compiled-machine .machine { margin-bottom: 0; }
.machine-kernel { padding: 0.65em 1em; border: 1px solid var(--rule-soft); border-top: 0; }
.prose .machine-kernel p { margin: 0; text-indent: 0; text-align: left; font: 0.72em/1.5 var(--font-sans); }
.prose .machine-kernel-count { margin-top: 0.3em; color: var(--muted); }
.machine-kernel button { min-height: 44px; margin-top: 0.6em; padding: 0.4em 0.8em; font: 0.75em var(--font-sans); }
.machine:not(.show-comparison) .machine-comparison { display: none; }
.machine-order > button { margin: 0 1em 0.8em; }
.machine-comparison { border-top: 1px dotted var(--rule-soft); padding: 0.8em; }
.prose .machine-comparison p { text-align: left; text-indent: 0; margin: 0; }
.prose .machine-comparison-result { font: 0.8rem/1.5 var(--font-sans); padding-bottom: 1em; }
.machine-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1em; }
.prose .machine-path h4 { margin: 0 0 0.7em; font: 600 0.8rem var(--font-sans); text-align: center; }
.machine-path-node { padding: 0.7em; border: 1px solid var(--rule-soft); border-radius: 3px; background: var(--panel); }
.machine-path-node strong { font: 600 0.84rem var(--font-sans); }
.prose .machine-path-node p { font: 0.84rem/1.5 var(--font-sans); margin: 0.4em 0; }
.machine-path-node small { display: block; color: var(--muted); font: 0.75rem/1.4 var(--font-sans); }
.machine-path-arrow { text-align: center; padding: 0.4em; font: 0.75rem/1.5 var(--font-sans); }
.prose .machine-comparison-note { margin-top: 1em; color: var(--muted); font: 0.75rem/1.5 var(--font-sans); }
.theorem-name { padding: 0.65em 1em 0; overflow-wrap: anywhere; font: 0.8rem/1.5 var(--font-mono); }
.prose .theorem-name code { font: inherit; padding: 0; border: 0; background: none; }
.prose .checked-theorem pre { margin: 0; padding: 1em; border: none; background: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.prose .theorem-assumptions { margin: 0; padding: 0.6em 1em; text-indent: 0; text-align: left;
  font: 0.7em var(--font-sans); border-top: 1px dotted var(--rule-soft); color: var(--muted); }
:root[data-theme='dark'] .machine-safety.safe { color: #a7dbba; background: #1c3025; }
:root[data-theme='dark'] .machine-safety.unsafe { color: #ffbcb2; background: #3b2321; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .machine-safety.safe { color: #a7dbba; background: #1c3025; }
  :root:not([data-theme='light']) .machine-safety.unsafe { color: #ffbcb2; background: #3b2321; }
}
@media (max-width: 500px) {
  .machine-paths { grid-template-columns: 1fr; }
  .prose .machine-path-node p { font-size: 0.875rem; }
  .machine-path-node small { font-size: 0.8rem; }
  .machine-lane { padding: 0.6em 0.35em; }
  .prose .machine-instruction { font-size: 0.72em; gap: 0.25em; }
  .machine-line-number { font-size: 1em; }
  .machine-facts { gap: 0.8em; }
  .machine-history button { font-size: 0.7em; }
}
body.reader-mode .site-main { width: min(740px, calc(100vw - 48px)); }
body.reader-mode .site-header, body.reader-mode .site-footer { display: none; }
body.reader-mode .site-main { margin-top: 3rem; }
body.reader-mode .sidenote-authored {
  position: static; display: inline; width: auto; font-size: 0.88em;
}
body.reader-mode .sidenote-authored::before { content: ' ('; }
body.reader-mode .sidenote-authored::after { content: ')'; }
@media (min-width: 761px) and (max-width: 1130px) {
  .site-mark { font-size: 42px; line-height: 52px; }
}
body.reader-mode .directory-grid { grid-template-columns: 1fr; }
/* Below the width at which the text column is full, the contents box stops
   floating: the breakpoint and why are in GwernPort.Browser.Layout. */
@media (max-width: 942px) {
  #TOC { float: none; max-width: none; margin: 0.3rem 0 1.1rem; }
}
/* Above the text and wider than a phone, the contents run in two columns, so
   a long list does not fill the first screen. */
@media (min-width: 600px) and (max-width: 942px) {
  #TOC > details > ul { columns: 2; column-gap: 2rem; }
  #TOC > details > ul > li { break-inside: avoid; }
}
@media (max-width: 760px) {
  body { font-size: 1.125rem; }
  /* A title scales with the phone's width, so a fourteen-letter word such as
     "Mathematicians" stays whole. A longer word is hyphenated where the
     language allows, and broken anywhere only as the last resort. */
  .post-header h1, .article-header h1 { font-size: min(2.3em, 9.5vw); hyphens: auto; overflow-wrap: anywhere; }
  .site-mark { font-size: 38px; line-height: 50px; border-width: 2px; box-shadow: inset 0 0 0 4px var(--bg); }
  .site-nav a { font-size: min(0.75rem, 5vw); padding: 0.38rem 0.2rem; }
  .site-main { width: min(100% - 28px, 680px); }
  .site-footer { width: min(100% - 28px, 680px); }
  .home-hero { grid-template-columns: 1fr; gap: 22px; }
  .home-portrait { width: min(100%, 200px); }
  .directory-grid { grid-template-columns: 1fr; gap: 28px; }
  #TOC .toc-title { min-height: 44px; padding: 10px 0; }
  .prose p, .post-body p { text-align: left; }
  /* A formula wider than the screen scrolls inside its own box. The padding
     (cancelled by the margin) keeps a tall or subpixel-wide formula from being
     clipped or turned into a scroller of one pixel. */
  .math.inline, .math-wide { display: inline-block; max-width: 100%; overflow-x: auto;
    overflow-y: hidden; vertical-align: middle; text-indent: 0;
    padding: 0.4em 1px; margin: -0.4em -1px; }
  .prose p:has(> .math.inline:first-child), .prose p:has(> .math-wide:first-child),
  .post-body p:has(> .math.inline:first-child),
  .post-body p:has(> .math-wide:first-child) { text-indent: 0; }
}
/* Titles and descriptions break into lines of similar length. */
.post-header h1, .article-header h1, .page-description { text-wrap: balance; }
#page-metadata .page-status, #page-metadata .page-confidence,
#page-metadata .page-importance { font-style: italic; }
/* The abstract: one paragraph a reader may stop after. */
.abstract > blockquote {
  margin: 0 0 1.6rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--rule-soft);
  border-left: 1px solid var(--rule-soft);
  background: var(--panel);
  font-size: 0.95em;
}
.abstract > blockquote > p { margin: 0; text-indent: 0; }
/* An epigraph: a quotation set apart, with its source on the last line. */
.prose .epigraph { margin: 1.5rem auto 2rem; max-width: 34rem; }
.prose .epigraph > blockquote {
  border: 0; background: transparent; padding: 0; font-style: italic; text-align: left;
}
.prose .epigraph .epigraph-attribution {
  font-style: normal; text-align: right; color: var(--muted); font-size: 0.9em;
}
/* The author's remarks inside quoted or transcribed text. */
.prose .editorial { font-family: var(--font-sans); font-size: 0.9em; color: var(--muted); }
/* Verse keeps its own line breaks and is never justified or hyphenated. */
.prose .poem {
  margin: 1.4rem 0 1.4rem 1.5rem;
  text-align: left; hyphens: none; overflow-x: auto;
  counter-reset: poem-line;
}
.prose .poem p { margin: 0 0 1rem; text-indent: 0; text-align: left; }
.prose .poem .poem-line { display: block; padding-left: 2em; text-indent: -2em; }
.prose .poem.numbered { margin-left: 0; padding-left: 2.4rem; }
.prose .poem.numbered .poem-line { counter-increment: poem-line; position: relative; }
.prose .poem.numbered .poem-line:nth-of-type(5n)::after {
  content: counter(poem-line);
  position: absolute; right: 100%; margin-right: 0.8em;
  color: var(--muted); font: 0.75em var(--font-sans); text-indent: 0;
}
noscript.script-notice { display: block; margin: 0.4rem 0; color: var(--muted);
  font: 0.78rem var(--font-sans); text-align: right; }
/* Header geometry, printed from GwernPort.Browser.Header, which proves it never overlaps; edit it there. */
.site-header { width: min(895px, calc(100vw - 48px)); margin: 22px auto 46px; }
.site-mark { right: calc(100% + 22px); width: 82px; height: 82px; }
.site-nav { grid-template-columns: repeat(6, minmax(84px, 1fr)); }
.reader-toolbar { top: 14px; right: 12px; }
.reader-settings > summary { width: 44px; height: 44px; }
@media (min-width: 761px) and (max-width: 1130px) {
  .site-header { display: grid; grid-template-columns: 62px 1fr; gap: 16px; }
  .site-mark { position: static; width: 62px; height: 62px; }
}
@media (min-width: 761px) and (max-width: 1030px) {
  .site-header { width: auto; margin-left: max(24px, calc((100vw - 895px) / 2)); margin-right: 68px; }
  .reader-toolbar { position: absolute; top: 31px; }
  body.reader-mode .site-main { margin-top: 87px; }
}
@media (min-width: 1407px) and (max-width: 1718px) {
  .reader-toolbar { position: absolute; }
}
@media (max-width: 760px) {
  .site-header { display: grid; align-content: start; min-height: 114px; width: min(100% - 28px, 680px); grid-template-columns: 58px 1fr; gap: 14px; margin-top: 14px; margin-bottom: 32px; }
  .site-mark { position: static; width: 58px; height: 58px; }
  .site-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reader-toolbar { position: absolute; top: 84px; right: auto; left: calc(max(14px, (100vw - 680px) / 2) + 7px); }
  .reader-toolbar-panel { right: auto; left: -7px; width: min(300px, calc(100vw - 28px)); max-width: none; }
  body.reader-mode .reader-toolbar { top: 14px; }
  body.reader-mode .site-main { margin-top: 70px; }
}
/* Controls for a finger or the eyes, printed from GwernPort.Browser.Targets; edit them there. */
@media (pointer: coarse) {
  /* coarse-target {"name": "site mark", "selector": ".site-mark", "shape": "sized", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "navigation link", "selector": ".site-nav a", "shape": "centered", "width": 60, "height": 60, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "settings button", "selector": ".reader-settings > summary", "shape": "sized", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "settings choice", "selector": ".toolbar-button", "shape": "sized", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "skip link", "selector": ".skip-link", "shape": "sized", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "contents toggle", "selector": "#TOC .toc-title", "shape": "sized", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "contents entry", "selector": "#TOC a", "shape": "row", "width": 44, "height": 48, "spacing": 48, "dense": true} */
  /* coarse-target {"name": "list entry", "selector": ".link-list a, .post-list a.title, .category-list a", "shape": "row", "width": 44, "height": 48, "spacing": 48, "dense": true} */
  /* coarse-target {"name": "footnote reference", "selector": "a.footnote-ref", "shape": "halo", "width": 44, "height": 44, "spacing": null, "dense": false} */
  /* coarse-target {"name": "footnote return link", "selector": "a.footnote-back", "shape": "halo", "width": 44, "height": 44, "spacing": null, "dense": false} */
  /* coarse-target {"name": "heading permalink", "selector": ".prose .heading-permalink", "shape": "centered", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "fold permalink", "selector": ".prose .fold-permalink", "shape": "centered", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "fold summary", "selector": "details.collapse > summary", "shape": "sized", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "copy formula button", "selector": ".math-copy-button", "shape": "sized", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "footer link", "selector": ".site-footer a", "shape": "centered", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "preview title", "selector": ".link-popup-title", "shape": "sized", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "preview pin", "selector": ".link-popup-pin", "shape": "centered", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "preview archive link", "selector": ".link-popup-archive", "shape": "centered", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "preview close", "selector": ".link-popup-close", "shape": "centered", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "preview open", "selector": ".link-popup-open", "shape": "sized", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "search field", "selector": ".search-input", "shape": "sized", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "search close", "selector": ".search-close", "shape": "sized", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  /* coarse-target {"name": "search result", "selector": ".search-results a", "shape": "sized", "width": 44, "height": 48, "spacing": 48, "dense": true} */
  /* coarse-target {"name": "image viewer control", "selector": ".image-focus-toolbar button, .image-focus-toolbar a", "shape": "sized", "width": 44, "height": 44, "spacing": 60, "dense": false} */
  .site-mark { min-width: 44px; min-height: 44px; }
  .site-nav a { min-width: 60px; min-height: 60px; display: inline-flex; align-items: center; justify-content: center; }
  .reader-settings > summary { min-width: 44px; min-height: 44px; }
  .toolbar-button { min-width: 44px; min-height: 44px; }
  .skip-link { min-width: 44px; min-height: 44px; }
  #TOC .toc-title { min-width: 44px; min-height: 44px; }
  #TOC a { min-width: 44px; min-height: 48px; display: flex; align-items: center; }
  .link-list a, .post-list a.title, .category-list a { min-width: 44px; min-height: 48px; display: flex; align-items: center; }
  a.footnote-ref { position: relative; }
  a.footnote-ref::after { content: ''; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
  a.footnote-back { position: relative; }
  a.footnote-back::after { content: ''; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
  .prose .heading-permalink { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .prose .fold-permalink { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  details.collapse > summary { min-width: 44px; min-height: 44px; }
  .math-copy-button { min-width: 44px; min-height: 44px; }
  .site-footer a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .link-popup-title { min-width: 44px; min-height: 44px; }
  .link-popup-pin { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .link-popup-archive { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .link-popup-close { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .link-popup-open { min-width: 44px; min-height: 44px; }
  .search-input { min-width: 44px; min-height: 44px; }
  .search-close { min-width: 44px; min-height: 44px; }
  .search-results a { min-width: 44px; min-height: 48px; }
  .image-focus-toolbar button, .image-focus-toolbar a { min-width: 44px; min-height: 44px; }
  .site-footer a { margin-inline: 8px; }
  .link-popup-titlebar { gap: 16px; }
  .image-focus-toolbar, .image-focus-zoom-controls { gap: 16px; }
  [data-section-heading] { padding-inline-end: 48px; }
  .prose .heading-permalink { opacity: 0.65; }
  .link-list li, .post-list > li, .category-list li { display: flex; align-items: center; min-height: 48px; margin-block: 0; }
  .link-list li::before, .post-list > li::before, .category-list li::before { top: 50%; transform: translateY(-50%); }
  #TOC li { margin-block: 0; }
  #TOC li::before { content: none; }
  #TOC a::before { content: counters(toc, '.'); flex: 0 0 auto; margin-inline-end: 0.45em; color: var(--muted); }
  #TOC > details > ul > li > a::before { font-weight: 700; }
  #TOC .toc-title { padding-block: 10px; }
}

.evidence-ledger { clear: both; margin: 1.8em 0; }
.prose .evidence-ledger table { width: 100%; margin: 0; }
.prose .evidence-ledger caption { caption-side: top; padding: 0 0 0.7em; text-align: left;
  color: var(--muted); font: 0.8rem/1.5 var(--font-sans); }
.prose .evidence-ledger th, .prose .evidence-ledger td { vertical-align: top; }
.prose .evidence-ledger .evidence-area th { background: var(--panel); font-weight: 600; }
.prose .evidence-ledger .evidence-status { white-space: nowrap; font-weight: 600; }
.prose .evidence-ledger .evidence-source { display: block; margin-top: 0.35em; color: var(--muted); }
.prose .evidence-ledger code { overflow-wrap: anywhere; padding: 0; border: 0; background: none; }
@media print {
  /* Paper is white: print the light palette whatever the screen shows. */
  :root, :root[data-theme='dark'], :root:not([data-theme='light']) {
    --ink: #111;
    --ink-soft: #333;
    --muted: #555;
    --link: #222;
    --link-visited: #4a4a4a;
    --syn-kw: #007020;
    --syn-type: #902000;
    --syn-num: #317b56;
    --syn-str: #4070a0;
    --syn-com: #467580;
    --syn-fun: #06287e;
    --syn-op: #666666;
    --syn-pp: #986300;
    --syn-var: #19177c;
    --syn-err: #cc0000;
    color-scheme: light; --bg: #fff; --ink: #000;
    --muted: #444; --panel: #fff; --rule: #888; --rule-soft: #bbb; }
  body { background: #fff; color: #000; }
  /* Controls have no use on paper. The selectors match the specificity of
     the rules that show them. */
  .backlinks, .similars, .prose .heading-permalink, .prose .fold-permalink,
  .math-source-tools, .link-popup, .section-link-feedback, .search-overlay { display: none; }
  #TOC { float: none; max-width: none; margin: 0 0 1.2rem; break-inside: avoid; }
  /* Paper cannot scroll: long lines of code and wide formulas wrap or show whole. */
  .prose pre, .prose pre code { white-space: pre-wrap; overflow-wrap: anywhere; overflow: visible; }
  .prose .table-wrapper, .math.display, mjx-container[display='true'] { overflow: visible; }
  #TOC details > ul { display: block !important; }
  #TOC details::details-content { content-visibility: visible !important; }
  .site-header, .reader-toolbar, .skip-link, .site-footer { display: none; }
  .site-main { width: auto; margin: 0; }
  a { color: black; }
}
