/* ZIPs: EB Garamond on paper, Iosevka for identifiers and quiet navigation. */
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-semibolditalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Iosevka";
  src: url("fonts/iosevka.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Iosevka symbols";
  src: url("fonts/iosevka.woff2") format("woff2");
  unicode-range: U+2190-21FF, U+2200-22FF;
  font-display: swap;
}
@font-face {
  font-family: "Garamond Math";
  src: url("fonts/garamond-math.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Garamond Math Sans";
  src: url("fonts/garamond-math.woff2") format("woff2");
  unicode-range: U+1D5A0-1D66F, U+1D7E2-1D7F5;
  size-adjust: 93.9%;
  font-display: swap;
}
@font-face {
  font-family: "Iosevka Math";
  src: url("fonts/iosevka-math.woff2") format("woff2");
  unicode-range: U+1D670-1D6A3, U+1D7F6-1D7FF;
  size-adjust: 77.9%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --text: "EB Garamond", "Iosevka symbols", Garamond, "Times New Roman", serif;
  --mono: "Iosevka", ui-monospace, monospace;
  --body: 1.25rem;
  --xh: .405;
  --paper: #fbfaf8;
  --ink: #2b2a28;
  --muted: #68655f;
  --rule: #dedbd5;
  --green: #2d6a4a;
  --surface: #f1efeb;
  --plate-pad: 0;
  --plate-blend: multiply;
  --light-display: inline;
  --dark-display: none;
  --gutter: 1.25rem;
  --bar-height: 3.5rem;
  --measure: calc(36 * var(--body));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #141414;
    --ink: #e8e6e3;
    --muted: #a6a29c;
    --rule: #383838;
    --green: #8cc7a4;
    --surface: #20201e;
    --plate-pad: .6em;
    --plate-blend: normal;
    --light-display: none;
    --dark-display: inline;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141414;
  --ink: #e8e6e3;
  --muted: #a6a29c;
  --rule: #383838;
  --green: #8cc7a4;
  --surface: #20201e;
  --plate-pad: .6em;
  --plate-blend: normal;
  --light-display: none;
  --dark-display: inline;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-height) + 1.25rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--body);
  line-height: 1.5;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
}
a { color: var(--green); text-underline-offset: .17em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: var(--green); color: var(--paper); }
b, strong { font-weight: 600; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 600; text-wrap: balance; }
h1 { margin: 0 0 .45em; font-size: clamp(2.15rem, 4vw, 3rem); font-weight: 400; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.2em; }
p { margin: 0 0 1em; }
hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--rule); }
img, svg, video { max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button, select, input[type="search"] {
  min-height: 2.75rem;
  border: 1px solid var(--rule);
  border-radius: .2rem;
  background: var(--paper);
}
button, select { cursor: pointer; padding: .4rem .75rem; }
button:hover { border-color: var(--muted); }
input[type="search"] { width: 100%; min-width: 0; padding: .5rem .8rem; }
input::placeholder { color: var(--muted); opacity: 1; }
summary { cursor: pointer; }
summary::marker { color: var(--muted); }
.skip-link {
  position: fixed;
  top: .5rem;
  left: var(--gutter);
  z-index: 100;
  padding: .5rem 1rem;
  background: var(--paper);
  border: 1px solid var(--green);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* The running head remains small; native controls remain easy to touch. */
.site-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  min-height: var(--bar-height);
  padding: .25rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.25;
}
.site-bar .wordmark {
  margin-right: auto;
  color: var(--ink);
  font-size: 1.15rem;
  font-variant-caps: small-caps;
  letter-spacing: .04em;
  white-space: nowrap;
}
.site-bar a { text-decoration: none; }
.site-bar a:hover { text-decoration: underline; }
.site-bar nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 1.25rem; }
.site-bar nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); }
.site-bar nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: .35em; }
.reader-tools { display: flex; align-items: center; gap: 1rem; }
.theme { position: relative; }
.theme > summary {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .4rem .25rem;
  color: var(--muted);
  list-style: none;
}
.theme > summary::-webkit-details-marker { display: none; }
.theme > summary::after {
  content: "";
  width: .4em;
  height: .4em;
  margin-left: .5em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-.1em) rotate(45deg);
}
.theme[open] > summary { color: var(--ink); }
.theme .themes {
  position: absolute;
  top: calc(100% + .25rem);
  right: 0;
  z-index: 21;
  display: flex;
  flex-direction: column;
  min-width: 9rem;
  margin: 0;
  padding: .25rem;
  border: 1px solid var(--rule);
  border-radius: .2rem;
  background: var(--paper);
  box-shadow: 0 .3rem 1rem #0000000d;
}
.themes legend { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.themes label { display: flex; align-items: center; gap: .65rem; min-height: 2.75rem; padding: .5rem .75rem; color: var(--muted); cursor: pointer; }
.themes label:hover { color: var(--ink); text-decoration: underline; }
.themes label:has(:checked) { color: var(--ink); font-weight: 600; }
.themes label:has(:focus-visible) { outline: 2px solid var(--green); outline-offset: -2px; }
.themes input { flex: none; margin: 0; accent-color: var(--green); }
.themes input:focus-visible { outline: none; }
.site-footer {
  width: 100%;
  max-width: 76rem;
  margin: 2.5rem auto 0;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}
.site-footer p { margin-bottom: .5rem; }
body[data-page="document"] > .site-footer {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Catalogue: stable column widths prevent revision histories stealing title space. */
.catalogue { width: 100%; max-width: 76rem; margin: 0 auto; padding: 3.5rem var(--gutter) 1.5rem; }
.page-heading { max-width: 46rem; margin-bottom: 2.25rem; }
.eyebrow {
  margin: 0 0 .75rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .09em;
  line-height: 1.5;
  text-transform: uppercase;
}
.subtitle { font-size: 1.2em; line-height: 1.4; margin-bottom: .65rem; }
.source-note { color: var(--muted); font-size: 1rem; }
.filters {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) repeat(3, minmax(8rem, .42fr)) auto;
  align-items: end;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
}
.filters label { display: flex; flex-direction: column; gap: .35rem; min-width: 0; color: var(--muted); }
.filters :is(input, select, button) { width: 100%; min-width: 0; color: var(--ink); }
#result-count { margin: 1.1rem 0 .8rem; color: var(--muted); font-size: 1rem; }
.zip-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.zip-table th {
  padding: .65rem .75rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
}
.zip-table th:nth-child(1) { width: 6.5rem; }
.zip-table th:nth-child(3) { width: 21%; }
.zip-table th:nth-child(4) { width: 14%; }
.zip-table th:nth-child(5) { width: 11%; }
.zip-table td { padding: .8rem .75rem; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.35; overflow-wrap: anywhere; }
.zip-table :is(th, td):first-child { padding-left: 0; }
.zip-table :is(th, td):last-child { padding-right: 0; }
.zip-table tbody tr:hover { background: var(--surface); }
.zip-number { font-family: var(--mono); font-size: .9rem; font-variant-numeric: tabular-nums; }
.zip-number a { display: inline-block; padding-block: .15rem; }
.zip-title > a { display: block; padding-block: .1rem; }
.zip-title .row-note { display: block; margin-top: .3rem; color: var(--muted); font-size: .85em; }
.zip-status, .zip-category { color: var(--muted); font-size: 1.05rem; }
.zip-status { white-space: normal; }
.zip-created { color: var(--muted); font-family: var(--mono); font-size: .8rem; font-variant-numeric: tabular-nums; }
#empty-state { padding: 2rem 0; color: var(--muted); }

/* Reader and its independently scrolling table of contents. */
.reader {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  min-width: 0;
  margin: 0 auto;
  padding: 3rem var(--gutter) 1.5rem;
  overflow-wrap: anywhere;
}
.document-heading { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.document-heading h1 { font-size: clamp(2rem, 3.5vw, 2.6rem); }
.document-status { margin: 1rem 0; color: var(--muted); font-size: 1.05rem; white-space: normal; }
.metadata {
  display: grid;
  grid-template-columns: minmax(6rem, max-content) minmax(0, 1fr);
  gap: .3rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 1.05rem;
  line-height: 1.45;
}
.metadata dt { color: var(--muted); }
.metadata dd { min-width: 0; margin: 0; white-space: pre-line; }
.metadata dd p { margin-bottom: .35em; }
.document-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: 1rem; }
.document-links a { display: inline-block; padding-block: .35rem; }
.provenance { margin: 0 0 2rem; padding: .75rem 1rem; border-left: 2px solid var(--green); background: var(--surface); font-size: 1rem; }
.provenance p { margin: .5em 0 0; }
.contents {
  margin: 1.25rem var(--gutter) 0;
  padding: .5rem 0;
  border-block: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.4;
}
.contents > summary { min-height: 2.75rem; padding: .65rem 0; color: var(--muted); }
.contents nav { padding: .5rem 0 1rem; }
.contents ol { list-style: none; margin: 0; padding: 0; }
.contents li { margin: .15rem 0; padding-left: calc((var(--toc-depth) - 1) * 1rem); }
.contents a { display: block; padding: .3rem .15rem; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.contents a:hover { color: var(--ink); text-decoration: underline; }
.contents a[aria-current="location"] { color: var(--green); font-weight: 600; }

/* Canonical rst2html5 and MultiMarkdown content, not a replacement renderer. */
.zip-content { min-width: 0; }
.zip-content :is(h1, h2) { margin: 2.25rem 0 .8rem; font-size: 1.5em; }
.zip-content h3 { margin: 1.8rem 0 .65rem; font-size: 1.2em; }
.zip-content :is(h4, h5, h6) { margin: 1.5rem 0 .5rem; font-size: 1em; }
.zip-content .permalink { margin-left: .4em; color: var(--muted); font-size: .7em; font-weight: 400; text-decoration: none; }
.zip-content .permalink:hover { color: var(--green); text-decoration: underline; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.zip-content :is(ul, ol) { padding-left: 1.5em; margin: .7em 0 1.1em; }
.zip-content li { margin: .25em 0; }
.zip-content li > :is(ul, ol) { margin-block: .35em; }
.zip-content li > p { margin-bottom: .5em; }
.zip-content dt { font-weight: 600; }
.zip-content dd { margin: .35em 0 1em 1.5em; }
.zip-content blockquote { margin: 1.25em 0; padding: .1em 0 .1em 1.25em; border-left: 2px solid var(--rule); }
.zip-content blockquote > :last-child { margin-bottom: 0; }
.zip-content :is(.admonition, aside.note, aside.warning) { margin: 1.5em 0; padding: 1rem 1.25rem; border-left: 2px solid var(--green); background: var(--surface); }
.zip-content .admonition-title { font-weight: 600; }
.zip-content details { margin: 1.25em 0; padding: .6em 0; border-block: 1px solid var(--rule); }
.zip-content details > summary { min-height: 2.75rem; padding: .35em 0; }
.zip-content details[open] > summary { margin-bottom: .5em; }
code, kbd, samp, pre, tt {
  font-family: var(--mono);
  font-size: 1em;
  font-size-adjust: ex-height var(--xh);
  font-variant-ligatures: none;
  hyphens: none;
  -webkit-hyphens: none;
}
:not(pre) > code {
  display: inline-grid;
  grid-template-columns: minmax(0, max-content);
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
  text-indent: 0;
}
.nobr { white-space: nowrap; }
.nobr > code { white-space: normal; max-width: calc(100% - 1em); }
a > code { text-decoration: underline 1px; text-underline-offset: .17em; }
a:hover > code { text-decoration-thickness: 2px; }
pre {
  max-width: 100%;
  margin: 1.25em 0;
  padding: 1rem;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-size: .875em;
  line-height: 1;
  tab-size: 4;
  white-space: pre;
  overflow-wrap: normal;
}
pre :is(code, samp) { font-size: inherit; overflow-wrap: normal; }
.zip-content table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  margin: 1.4em 0;
  border: 0;
  border-collapse: collapse;
  font-size: .9em;
  line-height: 1.4;
  text-align: left;
}
/* Whole words set the column minimum; narrow screens scroll the table instead of splitting them. */
.zip-content :is(th, td) { padding: .45em .7em; border: 0; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: break-word; }
.zip-content th { font-weight: 600; }
.zip-content :is(th, td):first-child { padding-left: 0; }
.zip-content :is(th, td):last-child { padding-right: 0; }
.zip-content caption { margin-bottom: .5em; text-align: left; color: var(--muted); }
.zip-content :is(td, th) > :last-child { margin-bottom: 0; }
/* Cell code breaks at source-inserted <wbr>, rather than splitting identifiers. */
.zip-content :is(td, th) code:not(pre > code) { display: inline-block; overflow-wrap: normal; }
.zip-content :is(td, th) > p { margin: 0 0 .4em; }
.zip-content figure { margin: 1.5em 0; max-width: 100%; }
.zip-content figcaption { margin-top: .5em; font-size: .9em; color: var(--muted); }
.zip-content img { vertical-align: middle; }
.zip-content img:not(.section-anchor), .zip-content code.mermaid > svg {
  padding: var(--plate-pad);
  background: #fff;
  mix-blend-mode: var(--plate-blend);
}
.zip-content figure > img { display: block; margin-inline: auto; }
.zip-content pre:has(> code.mermaid) { padding: 0; border: 0; background: none; overflow: visible; }
.zip-content code.mermaid { display: block; }
.zip-content code.mermaid > svg { display: block; max-width: 100%; height: auto; }
.zip-content .lightmode { display: var(--light-display) !important; }
.zip-content .darkmode { display: var(--dark-display) !important; }
.zip-content .reserved { color: var(--muted); }
.zip-content .section-anchor { font-size: .75em; }
.zip-content img.section-anchor { width: .8em; height: .8em; }
.zip-content .headerlink { margin-left: .35em; font-size: .75em; text-decoration: none; }
math { font-family: "Garamond Math Sans", "Iosevka Math", "Garamond Math", math; font-feature-settings: "ss03"; white-space: nowrap; text-align: start; }
/* Native MathML prose and joined punctuation use the body face, not mathsf identifiers. */
math mtext { font-family: var(--text); font-style: normal; font-feature-settings: normal; }
math mtext[mathvariant="italic"] { font-style: italic; }
math[display="block"], .zip-content div.math, .zip-content .math.block, .zip-content .math.display {
  display: block;
  max-width: 100%;
  margin: 1.25em 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: .3em;
  text-align: center;
  overflow-wrap: normal;
}
.zip-content span.math { display: inline-block; max-width: 100%; overflow-x: auto; overflow-y: hidden; overflow-wrap: normal; vertical-align: middle; }
.zip-content .katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-block: .3em; }
.zip-content div.math :is(math[display="block"], .katex-display),
.zip-content .katex-display math[display="block"] { margin: 0; padding: 0; overflow: visible; }
.zip-content div.math + p:has(> br:only-child),
.zip-content p:has(> br:only-child):has(+ div.math) { display: none; }

/* These masks only mark an edge with hidden content; site.js measures the scroller. */
.more-r { mask-image: linear-gradient(to right, #000 calc(100% - 2.5em), transparent); }
.more-l { mask-image: linear-gradient(to right, transparent, #000 2.5em); }
.more-l.more-r { mask-image: linear-gradient(to right, transparent, #000 2.5em, #000 calc(100% - 2.5em), transparent); }

.zip-content :is(.footnotes, .citations, .footnote-list, .citation-list) { margin-top: 0; font-size: .875em; }
.zip-content :is(.footnotes, .citations) hr { display: none; }
.zip-content :is(.footnotes, .citations) ol { padding-left: 2.6em; }
.zip-content :is(.footnotes, .citations) li { margin: .1em 0; padding-left: 0; }
.zip-content :is(.footnotes, .citations) li > p { margin: 0; }
.zip-content :is(.footnotes, .citations) ::marker { color: var(--muted); }
.zip-content :is(aside.footnote, .citation) { margin: 0 0 .3em; }
.zip-content :is(dl.footnote, dl.citation) { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .2em .7em; }
.zip-content :is(dl.footnote, dl.citation) > dd { margin: 0; }
.zip-content :is(.footnote-reference, .footnote_reference, .footnote-ref, a.footnote > sup) { font-size: .8em; vertical-align: super; line-height: 0; }
.zip-content :is(.footnote, .citation) .label { font-variant-numeric: tabular-nums; }
/* RST writes a separate table for every reference, not a scrollable data table. */
.zip-content table.footnote { display: table; width: 100%; margin: 0 0 .3em; font-size: .875em; }
.zip-content table.footnote :is(th, td) { border: 0; padding: .1em 0; }
.zip-content table.footnote th { width: 2.6em; padding-right: .7em; font-weight: 400; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.zip-content table.footnote th::before { content: "["; }
.zip-content table.footnote th::after { content: "]"; }
.zip-content table.footnote td { overflow-wrap: anywhere; }
.document-pagination { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 3rem; padding: 1.25rem 0; border-block: 1px solid var(--rule); font-size: 1rem; }
.document-pagination > :last-child { margin-left: auto; text-align: right; }
.related { margin-top: 2rem; font-size: 1.05rem; }
.related h2 { font-size: 1.2em; }
.related ul { padding-left: 1.25em; }

/* Search and upgrade pages share the reading measure. */
body[data-page="search"] #query { margin: .5rem 0; }
#search-results { margin: 1.5rem 0; padding: 0; list-style: none; }
#search-results > :is(article, li, .search-result) { padding: 1.25rem 0; border-top: 1px solid var(--rule); }
#search-results h2 { margin: 0 0 .6rem; font-size: 1.3em; }
#search-results p { margin-bottom: .65em; }
#search-results :is(.search-meta, .result-meta) { color: var(--muted); font-size: .9em; }
mark { background: var(--surface); color: var(--green); font-weight: 600; }
.search-form { display: flex; align-items: end; gap: 1rem; max-width: var(--measure); }
.search-form label { flex: 1; min-width: 0; font-size: 1rem; color: var(--muted); }
.search-form button { margin-bottom: .5rem; font-size: 1rem; }
.search-results { list-style: none; padding: 0; max-width: var(--measure); }
.search-result { padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.search-title { font-size: 1.3em; }
.search-excerpt { margin-top: .6rem; }
.upgrade-list { margin-top: 2.5rem; }
.upgrade { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.upgrade h2 { margin: .25rem 0 .75rem; font-size: 1.6em; }
.upgrade ul { padding-left: 1.25em; }

@media (min-width: 1120px) {
  body[data-page="document"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--measure) + 2 * var(--gutter))) minmax(0, 1fr);
  }
  body[data-page="document"] > .site-bar { grid-column: 1 / -1; }
  body[data-page="document"] > .contents {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    top: calc(var(--bar-height) + 1rem);
    align-self: start;
    justify-self: end;
    width: 100%;
    max-width: 17rem;
    max-height: calc(100dvh - var(--bar-height) - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 2.5rem 0 0;
    padding: 0 1.5rem 1rem var(--gutter);
    border: 0;
  }
  body[data-page="document"] > .reader { grid-column: 2; grid-row: 2; }
  body[data-page="document"] > .site-footer { grid-column: 2; }
}
@media (max-width: 850px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .filters > :first-child { grid-column: 1 / -1; }
  .catalogue { padding-top: 2.5rem; }
  .site-bar { gap: .25rem 1rem; }
  .site-bar nav { gap: 0 1rem; }
}
@media (max-width: 700px) {
  :root { --bar-height: 6.5rem; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-bar { padding-inline: var(--gutter); gap: 0 .75rem; }
  .site-bar .wordmark { flex: 1; }
  .site-bar nav { order: 2; flex-basis: 100%; }
  .page-heading { margin-bottom: 1.5rem; }
  .reader { padding-top: 2rem; }
  .document-heading { margin-bottom: 2rem; }
  .zip-table { display: block; }
  .zip-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .zip-table tbody { display: block; }
  .zip-table tr {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr);
    gap: .25rem .75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .zip-table td { display: block; padding: 0; border: 0; }
  .zip-number { grid-column: 1; grid-row: 1 / 4; padding-top: .25rem !important; }
  .zip-title { grid-column: 2 / -1; grid-row: 1; }
  .zip-status { grid-column: 2 / -1; grid-row: 2; }
  .zip-category { grid-column: 2; grid-row: 3; font-size: .95rem; }
  .zip-created { grid-column: 3; grid-row: 3; align-self: center; text-align: right; }
  .metadata { gap: .35rem .75rem; font-size: 1rem; }
  .document-pagination { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  :root { --body: 1.125rem; }
}
@media (max-width: 420px) {
  :root { --gutter: 1rem; }
  .filters { gap: .75rem; }
  .site-bar { gap: 0 .5rem; }
  .site-bar button { padding-inline: .5rem; }
  .site-bar nav { justify-content: space-between; gap: 0 .5rem; }
  .zip-table tr { gap: .3rem .65rem; }
  .zip-created { font-size: .75rem; }
  .metadata { grid-template-columns: minmax(5rem, max-content) minmax(0, 1fr); }
}

@media print {
  @page { margin: 18mm; }
  :root, :root[data-theme] {
    color-scheme: light;
    --paper: #fff;
    --ink: #000;
    --muted: #444;
    --rule: #ccc;
    --green: #000;
    --surface: #f5f5f5;
    --plate-pad: 0;
    --plate-blend: multiply;
    --light-display: inline;
    --dark-display: none;
  }
  body, body[data-page="document"] { display: block; font-size: 12pt; line-height: 1.4; }
  .site-bar, .site-footer, .skip-link, .contents, .filters, .document-pagination, .document-links, .related, #result-count { display: none !important; }
  .reader, .catalogue { width: 100%; max-width: none; padding: 0; margin: 0; }
  .document-heading { margin-bottom: 1.5rem; }
  h1, h2, h3, h4, h5, h6 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  figure, .upgrade, .zip-table tr { break-inside: avoid; }
  a { color: inherit; }
  pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .zip-content table { display: table; width: 100%; font-size: .8em; }
  .zip-content :is(table, pre, div.math, span.math, .math.block, .math.display, .katex-display), .table-scroll, math[display="block"] { overflow: visible; }
  .more-l, .more-r, .more-l.more-r { mask-image: none; }
  .zip-table { display: table; font-size: 10pt; }
  .zip-table thead { position: static; display: table-header-group; width: auto; height: auto; clip-path: none; white-space: normal; }
  .zip-table tbody { display: table-row-group; }
  .zip-table tr { display: table-row; }
  .zip-table td { display: table-cell; padding: .5em; border-bottom: 1px solid var(--rule); }
  .zip-table .zip-created { text-align: left; }
  .zip-table :is(.zip-number, .zip-created) { font-size: 8pt; }
  .zip-table :is(.zip-status, .zip-category) { font-size: 9pt; }
}
