/* Bricolage Grotesque, Newsreader, Geist Mono: SIL Open Font License 1.1, fonts-OFL.txt */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(Bricolage-latin-ext.104b934993.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(Bricolage-latin.9fee080fcc.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(Newsreader-latin-ext.cbca001188.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(Newsreader-latin.01817351be.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap; src: url(Newsreader-italic-latin-ext.750e9629f5.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap; src: url(Newsreader-italic-latin.a99fb12768.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(GeistMono-latin-ext.745994b5cd.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(GeistMono-latin.5f3d6ad60f.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(Geist-latin-ext.58a6b173d5.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(Geist-latin.9b6f5ff45b.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* The docs of the ReflowPDF API, on the site's system (critic r2-04 Fix 9): the cool grey table of reflowpdf.com
   for ground, ink for text, ruled lists instead of boxes, Bricolage for the large headings only (its "t" carries a
   wide right side bearing that opens a gap at interface sizes: "posit ions", owner 04.11), Geist for the interface,
   Newsreader for reading, Geist Mono for code. Gold foil means one thing, as on the site: where you are (the current page, the
   section in view, focus). The theme follows the system, or the toggle (`data-theme` on <html>, theme.js). */
:root {
  --table: #e8eaed;
  --table-2: #dfe2e6;
  --paper: #ffffff;
  --ink: #15130f;
  --ink-2: #3a3833;
  --muted: #585b62;
  --rule: #c9ccd1;
  --rule-2: #d7dade;
  --foil: #e0a93e;
  --foil-wash: rgb(224 169 62 / 0.14);
  --code-bg: #15130f;
  --code-ink: #e9e6df;
  --code-2: #a8a49b;
  --code-rule: #2e2c29;
  --t-c: #8f8a80; --t-s: #b6d48e; --t-k: #f0a3c4; --t-n: #f2a48c; --t-p: #a3c8ea; --t-v: #d8b2f2; --t-f: #9fd8d0;
  --get: #1d6b48; --post: #1f56a3; --delete: #a8352a;
  --focus: var(--ink);
  --display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ui: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --read: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --table: #191817; --table-2: #211f1d; --paper: #23211e; --ink: #f1efea; --ink-2: #d5d1c8; --muted: #a8a49b;
    --rule: #3a3833; --rule-2: #2e2c29; --foil-wash: rgb(224 169 62 / 0.16); --code-bg: #100f0d; --code-rule: #2e2c29;
    --get: #6fcf9d; --post: #8fb8f0; --delete: #f08f82; --focus: var(--foil); color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --table: #191817; --table-2: #211f1d; --paper: #23211e; --ink: #f1efea; --ink-2: #d5d1c8; --muted: #a8a49b;
  --rule: #3a3833; --rule-2: #2e2c29; --foil-wash: rgb(224 169 62 / 0.16); --code-bg: #100f0d; --code-rule: #2e2c29;
  --get: #6fcf9d; --post: #8fb8f0; --delete: #f08f82; --focus: var(--foil); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
/* Glyphs at their true advances: Chromium on Linux at 1× otherwise rounds each glyph after hinting and opens gaps
   inside words ("posit ions", owner 04.11). */
body { margin: 0; background: var(--table); color: var(--ink); font: 400 18px/1.6 var(--read); font-optical-sizing: auto; text-rendering: geometricPrecision; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
/* The focus ring: ink on the light table (gold on grey is 1.8:1), gold on the dark one. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
code { font: 450 0.8em/1.4 var(--mono); background: var(--table-2); border-radius: 4px; padding: 0.1em 0.3em; overflow-wrap: break-word; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--table); padding: 8px 12px; z-index: 10; font-family: var(--ui); }
.skip:focus { left: 8px; }
.ui, .top, .side, .toc, table, .page-foot, figure.code figcaption, .tablist, .copy, .menu, .index-list, .fields, .search, h3 { font-family: var(--ui); }
.brand { font-family: var(--display); font-variation-settings: 'wdth' 100, 'opsz' 24; }

/* ── the bar: the site's mark and wordmark, the base URL, search, the proof pages, the theme, one primary action ── */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 24px;
  background: color-mix(in srgb, var(--table) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.brand svg { flex-shrink: 0; }
/* The mark's square is near-black: on the dark table it gets a hairline so it does not disappear. */
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .brand svg rect:first-child { stroke: rgb(255 255 255 / 0.22); stroke-width: 16; } }
:root[data-theme='dark'] .brand svg rect:first-child { stroke: rgb(255 255 255 / 0.22); stroke-width: 16; }
.brand-api { font-size: 12px; line-height: 20px; font-weight: 600; padding: 0 6px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); letter-spacing: 0; }
.top .base { font-size: 12.5px; color: var(--muted); background: none; padding: 0; }
.search-open { display: inline-flex; align-items: center; gap: 10px; min-width: 200px; height: 36px; padding: 0 10px 0 12px; margin-left: 8px; border-radius: 8px;
  background: var(--table-2); color: var(--muted); border: 1px solid var(--rule-2); font: 500 14.5px/1 var(--ui); cursor: pointer; }
.search-open:hover { color: var(--ink); border-color: var(--rule); }
.search-open kbd { margin-left: auto; font: 500 12px/1 var(--mono); padding: 3px 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--rule); }
.top-links { margin-left: auto; display: flex; gap: 6px; align-items: center; font-size: 15px; font-weight: 500; }
.top-links a { color: var(--ink-2); text-decoration: none; padding: 7px 9px; border-radius: 8px; }
.top-links a:hover { color: var(--ink); background: rgb(127 127 127 / 0.1); }
.top-links .key { margin-left: 6px; color: var(--table); background: var(--ink); font-weight: 600; padding: 8px 14px; }
.top-links .key:hover { color: var(--table); background: var(--ink); opacity: 0.9; }
.theme { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer; }
.theme:hover { color: var(--ink); background: rgb(127 127 127 / 0.1); }
.theme svg { width: 18px; height: 18px; }
.menu { display: none; margin-left: auto; font-size: 15px; font-weight: 600; background: none; color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; padding: 7px 12px; cursor: pointer; }

/* ── the shell ── */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; max-width: 1400px; margin: 0 auto; }
.shell.wide { grid-template-columns: 260px minmax(0, 1fr); }
.side { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; padding: 28px 16px 40px 24px; font-size: 15px; }
.side .group { margin: 24px 0 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.side .group:first-child { margin-top: 0; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { display: block; padding: 5px 12px; color: var(--ink-2); text-decoration: none; border-radius: 0 6px 6px 0; box-shadow: inset 2px 0 0 transparent; }
.side a:hover { color: var(--ink); background: rgb(127 127 127 / 0.08); }
.side a[aria-current='page'] { color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--foil); background: var(--foil-wash); }
.side .side-site { display: none; }
main { min-width: 0; padding: 48px 56px 72px; }
.page-head { max-width: 46rem; margin-bottom: 36px; }
h1, h2, h3 { font-weight: 600; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--display); }
h1 { font-size: clamp(2.125rem, 3.2vw, 2.875rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 16px; font-variation-settings: 'wdth' 100, 'opsz' 96; }
.lede { font-size: 21px; line-height: 1.45; color: var(--ink-2); margin: 0; max-width: 40rem; text-wrap: pretty; }
.body { max-width: 46rem; }
.wide .body { max-width: none; }
h2 { font-size: 27px; line-height: 1.2; letter-spacing: -0.012em; margin: 56px 0 14px; position: relative; font-variation-settings: 'wdth' 100, 'opsz' 32; }
h3 { font-size: 18px; line-height: 1.35; margin: 32px 0 8px; }
.anchor { margin-left: 8px; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 400; }
h2:hover .anchor, .anchor:focus { opacity: 1; }
p, li { color: var(--ink-2); text-wrap: pretty; }
p { margin: 0 0 16px; max-width: 40rem; }
ul { padding-left: 22px; margin: 0 0 18px; max-width: 40rem; }
li { margin: 6px 0; }
li::marker { color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }
/* A note: a rule above and below, not a tinted box. */
.note { margin: 28px 0; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); color: var(--ink-2); max-width: 40rem; }
.page-foot { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.page-foot a { color: var(--muted); }

/* ── on this page ── */
.toc { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; padding: 48px 20px 0 8px; font-size: 14px; }
.toc p { margin: 0 0 10px; font-weight: 600; color: var(--muted); font-size: 13px; }
.toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.toc li { margin: 0; }
.toc a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--foil); }

/* ── code: ink panels, as the site's stylesheet on the homepage ── */
figure.code { margin: 20px 0 26px; background: var(--code-bg); border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--code-rule); }
figure.code figcaption { padding: 10px 18px; font-size: 13px; font-weight: 500; color: var(--code-2); border-bottom: 1px solid var(--code-rule); }
.tablist { display: flex; gap: 2px; padding: 6px 10px 0; border-bottom: 1px solid var(--code-rule); overflow-x: auto; }
.tablist button { font: 500 13.5px/1 var(--ui); color: var(--code-2); background: none; border: 0; padding: 10px 11px 11px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tablist button:hover { color: var(--code-ink); }
.tablist button[aria-selected='true'] { color: #fff; border-bottom-color: var(--foil); }
.pane { position: relative; }
pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
pre code { display: block; font: 400 13.5px/1.62 var(--mono); color: var(--code-ink); background: none; border-radius: 0; padding: 0; white-space: pre; overflow-wrap: normal; }
.copy { position: absolute; top: 9px; right: 9px; font-size: 12.5px; font-weight: 500; color: var(--code-2); background: #26231f; border: 1px solid #3a3833; border-radius: 6px; padding: 6px 10px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.pane:hover .copy, .copy:focus { opacity: 1; }
/* On touch the button is always there: below the code, not over its first line. */
@media (hover: none) { .copy { opacity: 1; top: auto; bottom: 8px; } .pane pre { padding-bottom: 48px; } .search-open kbd { display: none; } }
.copy.done { color: var(--t-s); }
.t-c { color: var(--t-c); } .t-s { color: var(--t-s); } .t-k { color: var(--t-k); } .t-n { color: var(--t-n); } .t-p { color: var(--t-p); } .t-v { color: var(--t-v); } .t-f { color: var(--t-f); }

/* ── tables: ruled, on the table, no box ── */
.table { overflow-x: auto; margin: 18px 0 26px; border-top: 1px solid var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
th { font-weight: 600; font-size: 13.5px; color: var(--muted); }
td:first-child { color: var(--ink); min-width: 7rem; }
td:first-child code { white-space: nowrap; }
tr:target td { background: var(--foil-wash); }
td code, th code { font-size: 0.82em; }

/* ── the overview's index: a ruled list, name, what it is, the endpoint ── */
.index-list { margin: 22px 0 30px; border-top: 1px solid var(--ink); }
.index-list a { display: grid; grid-template-columns: 13rem minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); text-decoration: none; }
.index-list a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.index-list strong { font-size: 17px; }
.index-list span { font-size: 15px; line-height: 1.45; }
.index-list code { font-size: 12.5px; color: var(--muted); background: none; padding: 0; white-space: nowrap; }

@media (max-width: 720px) {
  .index-list a { grid-template-columns: minmax(0, 1fr); }
  /* Every table, a row a block: its first cell as the row's name, each other cell under its column's name. */
  .table { border-top: 1px solid var(--ink); }
  .table table, .table tbody, .table tr, .table td { display: block; }
  .table thead { display: none; }
  .table tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .table td { border: 0; padding: 2px 0; min-width: 0; }
  .table td:first-child { font-weight: 600; }
  .table td[data-label]::before { content: attr(data-label); display: block; margin-top: 6px; font-weight: 600; font-size: 13px; color: var(--muted); }
  .errors td:nth-child(2) { display: inline-block; margin-left: 10px; }
  .errors td:nth-child(2)::before { display: none; }
  .errors td:first-child { display: inline-block; }
}

/* ── the gallery ── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 0 28px; margin: 14px 0 30px; border-top: 1px solid var(--ink); }
.tpl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.tpl img { width: 150px; height: auto; aspect-ratio: 300 / 424; background: #fff; box-shadow: 0 1px 2px rgb(21 19 15 / 0.08), 0 8px 24px -16px rgb(21 19 15 / 0.35); }
.tpl h3 { margin: 2px 0 6px; font-size: 17px; }
.tpl p { font-size: 15px; line-height: 1.45; margin: 0 0 8px; }
.tpl .meta { font-family: var(--ui); font-size: 13.5px; color: var(--muted); }
.tpl .meta code { font-size: 12px; }
.tpl details summary { cursor: pointer; font-family: var(--ui); font-size: 14px; font-weight: 500; color: var(--ink); }
.tpl details figure.code { margin: 8px 0 0; max-height: 320px; overflow: auto; }

/* ── the reference ── */
.ref-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px 24px; margin: 0 0 34px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); font: 450 13.5px/1.4 var(--mono); }
.ref-index a { color: var(--ink-2); text-decoration: none; padding: 5px 0; }
.ref-group { display: flex; flex-direction: column; padding: 6px 0; }
.ref-tag { margin: 0 0 4px; font: 600 13px/1.4 var(--ui); color: var(--muted); }
.scope { font: 500 15px/1.5 var(--ui); color: var(--ink-2); }
.fields .headers { margin: 6px 0 0; padding-left: 18px; font-size: 15px; }
.fields .headers li { margin: 3px 0; }
.ref-index a:hover { color: var(--ink); text-decoration: underline; }
.method { display: inline-block; min-width: 46px; font: 600 11.5px/1 var(--mono); letter-spacing: 0.03em; padding: 4px 6px; border-radius: 4px; text-align: center; color: #fff; vertical-align: 2px; }
.m-get { background: var(--get); } .m-post { background: var(--post); } .m-delete { background: var(--delete); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .method { color: #15130f; } }
:root[data-theme='dark'] .method { color: #15130f; }
.op { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 40px; padding: 38px 0; border-top: 1px solid var(--rule); }
.op h2 { margin: 0 0 6px; font: 600 15.5px/1.4 var(--mono); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.op h2 .path { font-size: 15.5px; background: none; padding: 0; color: var(--ink); }
.op-summary { font-family: var(--display); font-variation-settings: 'wdth' 100, 'opsz' 32; font-weight: 600; font-size: 23px; line-height: 1.25; color: var(--ink); margin: 8px 0 12px; }
.op-code { position: sticky; top: 84px; align-self: start; }
.op-code figure.code { margin-top: 0; }
.fields { margin: 8px 0 20px; border-top: 1px solid var(--rule); }
.fields > div { padding: 10px 0; border-bottom: 1px solid var(--rule-2); }
.fields dt { font-size: 14.5px; }
.fields dt code { font-weight: 600; color: var(--ink); background: none; padding: 0; }
.fields .type { color: var(--muted); font: 400 12.5px var(--mono); }
.fields .type code { font-size: 12px; }
.fields .req { color: var(--delete); font-size: 12.5px; font-weight: 600; }
.fields dd { margin: 3px 0 0; font: 400 16px/1.5 var(--read); color: var(--ink-2); }
.status { display: inline-block; font: 600 12.5px/1 var(--mono); padding: 3px 6px; border-radius: 4px; background: var(--table-2); }
.s-2 { color: var(--get); } .s-4, .s-5 { color: var(--delete); }
.schemas-title { margin-top: 64px; padding-top: 30px; border-top: 2px solid var(--ink); }
.schema { max-width: 46rem; }
.schema h2 { font: 600 18px/1.3 var(--mono); }

/* ── search: a dialog over the page, its results by page and section ── */
.search { width: min(640px, calc(100vw - 32px)); max-height: min(70vh, 640px); margin: 12vh auto 0; padding: 0; border: 0; border-radius: 12px; background: var(--table); color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule), 0 24px 60px -20px rgb(21 19 15 / 0.5); overflow: hidden; }
.search::backdrop { background: rgb(21 19 15 / 0.35); }
.search form { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--rule); }
.search input { flex: 1; min-width: 0; height: 54px; border: 0; background: none; color: var(--ink); font: 500 17px/1 var(--ui); outline: none; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search .close { border: 0; background: none; color: var(--muted); font: 500 13px/1 var(--ui); padding: 6px; cursor: pointer; }
.search ol { list-style: none; margin: 0; padding: 6px; max-height: calc(min(70vh, 640px) - 56px); overflow-y: auto; }
.search li { margin: 0; }
.search li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.search li a span { display: block; font-size: 13px; color: var(--muted); }
.search li a strong { font-size: 15.5px; }
.search li a[aria-selected='true'] { background: var(--foil-wash); color: var(--ink); box-shadow: inset 3px 0 0 var(--foil); }
.search .empty { padding: 18px; color: var(--muted); font-size: 15px; }

/* ── small screens ── */
@media (max-width: 1240px) { .shell { grid-template-columns: 240px minmax(0, 1fr); } .toc { display: none; } .op { grid-template-columns: minmax(0, 1fr); } .op-code { position: static; } .top .base { display: none; } }
@media (max-width: 1020px) { .top-links .site-link { display: none; } .search-open { min-width: 0; } .search-open .label { display: none; } }
@media (max-width: 860px) {
  .shell, .shell.wide { grid-template-columns: minmax(0, 1fr); }
  .top { padding: 0 16px; gap: 8px; }
  .side { display: none; position: fixed; inset: 64px 0 0 0; height: auto; z-index: 4; background: var(--table); padding: 20px 16px 40px; }
  .side.open { display: block; }
  .side .side-site { display: block; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule); }
  .menu { display: inline-block; margin-left: 0; }
  .top-links { display: none; }
  .search-open { margin-left: auto; }
  main { padding: 32px 16px 56px; }
  .lede { font-size: 19px; }
  body { font-size: 17px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .tpl { grid-template-columns: 110px minmax(0, 1fr); }
  .tpl img { width: 110px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, .side, .toc, .copy, .tablist, .search { display: none !important; } .shell { display: block; } body { background: #fff; } pre code { white-space: pre-wrap; } }

/* The status page (`docs.js`, GET /v1/status). */
.svc { margin: 8px 0 30px; }
.svc-banner, .svc-scale { max-width: none; }
.svc-banner { margin: 0 0 18px; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); font-family: var(--ui); font-size: 16px; }
.svc-banner span { color: var(--muted); }
.svc-banner.is-operational strong { color: var(--get); }
.svc-banner.is-degraded strong, .svc-banner.is-down strong { color: var(--delete); }
.svc-parts { list-style: none; margin: 0; padding: 0; max-width: none; }
.svc-part { padding: 14px 0 12px; margin: 0; border-bottom: 1px solid var(--rule); }
.svc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 8px; font-family: var(--ui); }
.svc-name { font-weight: 600; min-width: 9em; color: var(--ink); }
.svc-state { font-size: 14px; font-weight: 500; }
.svc-state.is-operational { color: var(--get); }
.svc-state.is-down { color: var(--delete); }
.svc-state.is-unknown { color: var(--muted); }
.svc-uptime, .svc-latency { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.svc-days { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 28px; }
.svc-days .day { border-radius: 2px; background: var(--rule-2); }
.svc-days .day.is-good { background: var(--get); }
.svc-days .day.is-fair { background: var(--post); }
.svc-days .day.is-bad { background: var(--delete); }
.svc-scale { display: flex; justify-content: space-between; margin: 6px 0 0; font-family: var(--ui); font-size: 13px; color: var(--muted); }
.svc-incidents h3 { margin: 28px 0 8px; font-size: 17px; }
.svc-incidents ul { margin: 0; padding-left: 18px; }
.svc-none, .svc-wait { color: var(--muted); }
@media (max-width: 560px) { .svc-days { gap: 1px; height: 22px; } .svc-name { min-width: 0; } }
