@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
             src: url("fonts/plex/IBMPlexSans-Roman.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 100 700; font-display: swap;
             src: url("fonts/plex/IBMPlexSans-Italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
             src: url("fonts/jetbrains/JetBrainsMono-Roman.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: italic; font-weight: 100 800; font-display: swap;
             src: url("fonts/jetbrains/JetBrainsMono-Italic.woff2") format("woff2"); }

:root {
    color-scheme: light;
    --os-paper: #f9f8f5;
    --os-surface: #f1efea;
    --os-rule: #dedbd3;
    --os-ink: #171716;
    --os-muted: #6a6861;
    --os-faint: #a09d95;
    --os-ok: #2c6a3e;
    --os-ok-bg: #e6efe4;
    --os-bad: #9d2b22;
    --os-bad-bg: #f6e4e0;
    --os-warn: #7d5200;
    --os-warn-bg: #f5ecd6;
    --os-code-keyword: #7b3f8c;
    --os-code-title: #1f5b8f;
    --os-code-type: #2c6a64;
    --os-code-literal: #8a5a14;
    --os-serif: "CMU Serif", "Latin Modern Roman", "Computer Modern", "Times New Roman", serif;
    --os-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --os-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --os-paper: #12141a;
        --os-surface: #1b1e25;
        --os-rule: #31353e;
        --os-ink: #e6e7ea;
        --os-muted: #9a9ea8;
        --os-faint: #646975;
        --os-ok: #93cfa1;
        --os-ok-bg: #182a23;
        --os-bad: #eda59c;
        --os-bad-bg: #342025;
        --os-warn: #e7c277;
        --os-warn-bg: #2d281c;
        --os-code-keyword: #cfa6dd;
        --os-code-title: #9cc3ea;
        --os-code-type: #8ccbc1;
        --os-code-literal: #e2bd7e;
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --os-paper: #12141a;
    --os-surface: #1b1e25;
    --os-rule: #31353e;
    --os-ink: #e6e7ea;
    --os-muted: #9a9ea8;
    --os-faint: #646975;
    --os-ok: #93cfa1;
    --os-ok-bg: #182a23;
    --os-bad: #eda59c;
    --os-bad-bg: #342025;
    --os-warn: #e7c277;
    --os-warn-bg: #2d281c;
    --os-code-keyword: #cfa6dd;
    --os-code-title: #9cc3ea;
    --os-code-type: #8ccbc1;
    --os-code-literal: #e2bd7e;
}
@media print {
    :root, :root[data-theme] {
        color-scheme: light !important;
        --os-paper: #fff !important;
        --os-surface: #fff !important;
        --os-rule: #999 !important;
        --os-ink: #000 !important;
        --os-muted: #333 !important;
        --os-faint: #666 !important;
        --os-ok: #000 !important;
        --os-ok-bg: #fff !important;
        --os-bad: #000 !important;
        --os-bad-bg: #fff !important;
        --os-warn: #000 !important;
        --os-warn-bg: #fff !important;
        --os-code-keyword: #000 !important;
        --os-code-title: #000 !important;
        --os-code-type: #000 !important;
        --os-code-literal: #000 !important;
    }
}
:root {
  --bg: var(--os-paper); --surface: var(--os-surface); --border: var(--os-rule); --text: var(--os-ink);
  --muted: var(--os-muted); --faint: var(--os-faint);
  --ok: var(--os-ok); --ok-bg: var(--os-ok-bg); --bad: var(--os-bad); --bad-bg: var(--os-bad-bg);
  --warn: var(--os-warn); --warn-bg: var(--os-warn-bg);
  --sans: var(--os-sans); --mono: var(--os-mono);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans);
       font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
main { max-width: 46rem; margin: 0 auto; padding: 0.5rem 16px 4rem; }
a, a:visited { color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
    text-underline-offset: 0.2em; text-decoration-color: var(--faint); }
a:hover, a:focus { text-decoration-color: currentColor; }
:focus-visible { outline: 1.5px solid var(--text); outline-offset: 3px; }
h1, h2, h3 { color: var(--text); font-weight: 700; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 2.2rem; letter-spacing: -0.02em; margin: 0.2em 0 0.3em; overflow-wrap: anywhere; }
h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h3 { font-size: 1.05rem; }
code, pre { font-family: var(--mono); font-size: 0.85em; font-variant-numeric: normal;
            font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }
code { overflow-wrap: anywhere; }
code.copy { border-bottom: 1px dotted transparent; }
a:has(> code:only-child):not(:hover):not(:focus-visible) { text-decoration-color: transparent; }
code.copy:hover, code.copy:focus-visible { border-bottom-color: var(--text); outline: none; }
code.copy.copied::after { content: " copied"; font-family: var(--sans); font-size: 0.85em; color: var(--ok); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead { font-size: 1.05rem; }
.abstract { font-style: italic; white-space: pre-line; }
.kicker { margin: 0; color: var(--muted); font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
          letter-spacing: 0.06em; }
.creators { margin: 0.2em 0; font-style: italic; }
.page-head { margin-bottom: 1.6rem; }
.page-head .chips { display: flex; flex-wrap: wrap; gap: 0.4em; align-items: center; }
section.block { margin: 2.2rem 0; }
.math { font-style: italic; }
.loading { color: var(--muted); }
[hidden] { display: none !important; }

header.site { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3em 1.2em;
              max-width: 46rem; margin: 0 auto 2rem; padding: 1.4rem 16px 0; }
header.site .brand { display: inline-flex; align-items: center; gap: 0.45em; font-size: 1.05rem;
                     color: var(--text); text-decoration: none; align-self: center; }
header.site .archive-name { color: var(--muted); }
header.site .archive-name a { color: inherit; text-decoration: none; }
header.site .archive-name a:hover { color: var(--text); }
header.site .nav { display: flex; gap: 1.5em; margin-left: auto; font-size: 0.82rem; }
header.site .nav a { color: var(--muted); text-decoration: none; }
header.site .nav a:hover, header.site .nav a.current { color: var(--text); font-weight: inherit; }
img.symbol { width: 20px; height: 20px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img.symbol { filter: invert(1); } }
:root[data-theme="dark"] img.symbol { filter: invert(1); }
footer.site { max-width: 46rem; margin: 0 auto; padding: 1rem 16px 2.5rem; color: var(--muted);
              font-size: 0.78rem; line-height: 1.5; }
footer.site a { color: inherit; }

.theme-control { position: fixed; top: 0.7rem; right: 0.8rem; z-index: 10; margin: 0; }
.theme-control .theme-toggle { display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
    border: 0; border-radius: 50%; background: var(--bg); color: var(--faint); cursor: pointer; }
.theme-control .theme-toggle::before { content: ""; width: 13px; height: 13px;
    border: 1.5px solid currentColor; border-radius: 50%;
    background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.theme-control .theme-toggle:hover { color: var(--text); }
.theme-control .theme-toggle:focus-visible { outline: 1.5px solid var(--text); outline-offset: 2px; }
@media screen and (max-width: 60rem) { header.site { padding-right: 3rem; } }
@media print { .theme-control { display: none !important; } }

dl.facts { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.35em 1.4em;
           margin: 0.8em 0; font-size: 0.94rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.chip { display: inline-block; padding: 0.05em 0.6em; border-radius: 999px; font-size: 0.75rem; line-height: 1.6;
        background: var(--surface); color: var(--text); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.alert { margin: 1em 0; padding: 0.8em 1.1em; background: var(--surface); border-radius: 4px; }
.alert.bad { background: var(--bad-bg); }
.alert.warn { background: var(--warn-bg); }
.error-box { margin: 1em 0; padding: 0.8em 1.1em; border-radius: 4px; background: var(--bad-bg); }
.error-box p { margin: 0.3em 0; }
.error-box .url { overflow-wrap: anywhere; font-family: var(--mono); font-size: 0.85em; }
.section-ref { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.note { overflow-wrap: anywhere; }
ul.notices { padding-left: 1.2em; }
ul.notices li.about-this { font-weight: 600; }
ul.notices li.replaced { opacity: 0.7; }
.unsafe-link { color: var(--bad); }
li::marker { color: var(--faint); }

ol.objects, ol.members { list-style: none; margin: 0.6em 0; padding: 0; }
ol.objects li.object, ol.members li.member { padding: 0.9em 0; border-bottom: 1px solid var(--border); }
ol.objects li.object:first-child, ol.members li.member:first-child { border-top: 1px solid var(--border); }
li.object .main .title { font-size: 1.06rem; font-weight: 600; }
li.object .main .creators { display: block; font-size: 0.92rem; }
li.object .side { font-size: 0.8rem; color: var(--muted); }
li.object .side .id { color: var(--muted); }
li.object.unreadable .main .title::after { content: " (cannot be read)"; color: var(--bad); font-weight: 400; font-size: 0.85rem; }
li.member .member-head { font-size: 1.04rem; }
li.member .member-head .title { font-weight: 600; }
li.member .n { color: var(--muted); font-size: 0.85rem; }
li.member .creators { font-size: 0.92rem; }
ul.pins { margin: 0.3em 0; padding-left: 1.2em; font-size: 0.88rem; }
.member .results, .member .nested { margin-top: 0.3em; }
.member .nested ol.members { margin-left: 0.4em; padding-left: 0.9em; border-left: 1px solid var(--border); }
.member .nested ol.members li.member:first-child { border-top: 0; }
.resolved { margin: 0.3em 0; }
details.problems { font-size: 0.875rem; }
ol.versions { padding-left: 1.4em; }
ol.versions li { margin: 0.35em 0; }
ol.versions li.shown, table tr.shown td { background: var(--surface); }
ol.versions .change { font-style: italic; color: var(--muted); }
ul.plain { padding-left: 1.2em; }
a.current { font-weight: 600; text-decoration: none; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.88rem; line-height: 1.45;
        border-bottom: 1px solid var(--text); }
th, td { text-align: left; padding: 0.5em 1em 0.5em 0; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
     vertical-align: bottom; border-top: 1px solid var(--text); border-bottom-color: var(--text); }
td.num { text-align: right; white-space: nowrap; }
table.files td:first-child { overflow-wrap: anywhere; }
.controls { display: flex; flex-wrap: wrap; gap: 0.5em; align-items: center; margin: 0.6em 0; }
input, select, button { font: inherit; color: inherit; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--text); }
input[type="text"], input[type="search"], input[type="url"], select {
  padding: 0.4em 0.6em; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); }
input[type="search"] { flex: 1 1 14rem; min-width: 0; }
button, a.button { padding: 0.4em 0.9em; border: 1px solid var(--border); border-radius: 4px; background: var(--bg);
                   cursor: pointer; text-decoration: none; color: var(--text); }
button:hover, a.button:hover { border-color: var(--muted); }
button.small { padding: 0.15em 0.6em; font-size: 0.85rem; }
button.primary { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
button:disabled { opacity: 0.5; cursor: default; }
form.open { display: grid; gap: 0.5em; margin: 1em 0; max-width: 40rem; }
form.open label { font-weight: 600; }
form.open button { justify-self: start; }
details.json { margin: 0.5em 0; }
details.json summary { cursor: pointer; }
details.json pre { max-height: 32rem; overflow: auto; padding: 0.9em 1.1em; background: var(--surface);
                   border-radius: 4px; font-size: 0.78rem; line-height: 1.55; }
details.json .j-key { color: var(--os-code-title); }
details.json .j-string, details.json .j-number, details.json .j-literal { color: var(--os-code-literal); }
fieldset.options { border: 1px solid var(--border); border-radius: 4px; padding: 0.6em 1em; }
fieldset.options label { display: block; margin: 0.3em 0; }

.progress progress { width: 100%; height: 0.5em; accent-color: var(--text); }
.verdict { margin: 1em 0; padding: 0.8em 1.1em; border-radius: 4px; background: var(--surface); }
.verdict.ok { background: var(--ok-bg); }
.verdict.bad { background: var(--bad-bg); }
.verdict p { margin: 0.2em 0; }
details.group { margin: 0; padding: 0.5em 0; border-bottom: 1px solid var(--border); }
details.group summary { cursor: pointer; }
ul.findings { margin: 0.4em 0; padding-left: 0.4em; list-style: none; font-size: 0.9rem; }
ul.findings li { margin: 0.35em 0; overflow-wrap: anywhere; }
label.toggle { display: inline-flex; align-items: center; gap: 0.2em; }
ul.not-checked { font-size: 0.9rem; }

@media (max-width: 40rem) {
  h1 { font-size: 1.7rem; }
  dl.facts { grid-template-columns: 1fr; gap: 0 0; }
  dl.facts dd { margin-bottom: 0.5em; }
  header.site .nav { margin-left: 0; width: 100%; }
}
