/* PixelCake documentation — the look of the site (pixelcake.dev): one
   typeface for the words and one for code, one orange accent, thin lines,
   square corners, light and dark. The colours are those of the logo.

   The page: the masthead of the site, then three columns on a wide screen
   (the navigation, the page, its table of contents), two on a medium one,
   one on a phone, where the navigation opens from the masthead. */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('./fonts/inter-latin-wght-normal.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: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/jetbrains-mono-latin-400-normal.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: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('./fonts/jetbrains-mono-latin-500-normal.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;
}

:root {
    --paper: #ffffff;
    --ink: #22313b;
    --muted: #5c6b76;
    --hair: rgba(34, 49, 59, 0.2);
    --accent: #f07d2a;
    --on-accent: #22313b;
    --block: #161b1f;
    --code-bg: #f3f5f7;
    --tint: #f7f8f9;
    --hover: rgba(34, 49, 59, 0.06);
    --mark: rgba(240, 125, 42, 0.3);
    --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --edge: 32px;
    --masthead: 71px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        --paper: #0b0b0b;
        --ink: #f4f6f8;
        --muted: #93a0aa;
        --hair: rgba(244, 246, 248, 0.2);
        --code-bg: #15191c;
        --tint: #111416;
        --hover: rgba(244, 246, 248, 0.07);
        --mark: rgba(240, 125, 42, 0.38);
        color-scheme: dark;
    }
}

:root[data-theme='dark'] {
    --paper: #0b0b0b;
    --ink: #f4f6f8;
    --muted: #93a0aa;
    --hair: rgba(244, 246, 248, 0.2);
    --code-bg: #15191c;
    --tint: #111416;
    --hover: rgba(244, 246, 248, 0.07);
    --mark: rgba(240, 125, 42, 0.38);
    color-scheme: dark;
}

/* A picture made in both themes: only one is shown */
.only-dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .only-dark {
        display: block;
    }

    :root:not([data-theme='light']) .only-light {
        display: none;
    }
}

:root[data-theme='dark'] .only-dark {
    display: block;
}

:root[data-theme='dark'] .only-light {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

main:focus {
    outline: none;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

.label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Who moves with the keyboard goes to the page first */
.skip {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 50;
    padding: 8px 12px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    text-decoration: none;
}

.skip:focus {
    top: 12px;
    color: var(--paper);
}

.page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--edge);
}

/* ── masthead ─────────────────────────────────────────────────────────── */

.masthead {
    border-bottom: 1px solid var(--ink);
    font-size: 14px;
    background: var(--paper);
}

.masthead-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 70px;
}

/* The logo is one of its own files, never typed, and never under 110 pixels */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    text-decoration: none;
}

.brand img {
    width: 132px;
    height: 38px;
}

.brand-docs {
    padding-left: 14px;
    border-left: 1px solid var(--hair);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand:hover .brand-docs {
    color: var(--accent);
}

.tools {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav a:not(.button) {
    text-decoration: none;
}

/* Shown only once the script that makes them work has run */
.search-open,
.menu-toggle,
.theme-toggle,
.copy,
.anchor {
    display: none;
}

.js .search-open,
.js .theme-toggle {
    display: inline-flex;
}

.search-open {
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 10px;
    border: 1px solid var(--hair);
    color: var(--muted);
    min-width: 180px;
}

.search-open:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.search-open svg {
    flex-shrink: 0;
    max-width: none;
}

.search-open .search-word {
    flex: 1;
    text-align: left;
}

kbd {
    font-family: var(--mono);
    font-size: 11px;
    padding: 0 5px;
    border: 1px solid var(--hair);
    color: var(--muted);
}

.theme-toggle {
    color: var(--muted);
}

.theme-toggle:hover {
    color: var(--accent);
}

/* The two languages: two letters, the one of the page marked */
.lang {
    display: inline-flex;
    flex-shrink: 0;
    border: 1px solid var(--hair);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.07em;
    line-height: 1;
}

.lang a,
.lang span {
    padding: 6px 8px;
    text-decoration: none;
}

.lang > * + * {
    border-left: 1px solid var(--hair);
}

.lang [aria-current] {
    background: var(--ink);
    color: var(--paper);
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.arrow {
    display: inline-block;
    flex-shrink: 0;
}

/* ── the three columns ───────────────────────────────────────────────── */

.docs {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    column-gap: 56px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    padding: 28px 4px 40px 0;
    font-size: 14.5px;
    line-height: 1.4;
    scrollbar-width: thin;
    scrollbar-color: var(--hair) transparent;
}

.sidebar ul {
    list-style: none;
}

.sidebar a {
    position: relative;
    display: block;
    padding: 4px 0 4px 15px;
    text-decoration: none;
    color: var(--ink);
}

.sidebar a:hover {
    color: var(--accent);
}

/* Where the reader is: in bold, after a pixel of the accent */
.sidebar a[aria-current='page'] {
    font-weight: 650;
}

.sidebar a[aria-current='page']::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    background: var(--accent);
}

.nav-home a {
    font-weight: 600;
}

.nav-group {
    margin-top: 22px;
}

.nav-group .label {
    margin-bottom: 6px;
}

.sidebar-more {
    display: none;
}

main {
    min-width: 0;
    padding: 40px 0 0;
}

.article.has-toc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    column-gap: 48px;
}

.article > * {
    grid-column: 1;
    min-width: 0;
}

.article.has-toc > .toc {
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: start;
    position: sticky;
    top: 28px;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
}

.page-head {
    max-width: 46rem;
    margin-bottom: 36px;
}

.crumb {
    margin-bottom: 10px;
}

h1 {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.lead {
    margin-top: 16px;
    font-size: 1.15rem;
    line-height: 1.45;
    letter-spacing: -0.008em;
    color: var(--muted);
}

/* ── the table of contents of a long page ────────────────────────────── */

.toc {
    font-size: 13.5px;
    line-height: 1.4;
}

.toc .label {
    margin-bottom: 8px;
}

.toc ol {
    list-style: none;
}

.toc ol ol {
    padding-left: 12px;
}

.toc a {
    display: block;
    padding: 3px 0 3px 10px;
    border-left: 1px solid var(--hair);
    color: var(--muted);
    text-decoration: none;
}

.toc a:hover,
.toc a.is-current {
    color: var(--ink);
    border-left-color: var(--accent);
}

/* ── the words of a page ─────────────────────────────────────────────── */

.prose {
    max-width: 46rem;
}

.prose > * + * {
    margin-top: 1em;
}

.prose h2 {
    margin-top: 56px;
    padding-top: 14px;
    border-top: 1px solid var(--ink);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.028em;
    text-wrap: balance;
}

.prose h3 {
    margin-top: 36px;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.prose h4 {
    margin-top: 28px;
    font-size: 1rem;
    font-weight: 600;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
    margin-top: 12px;
}

.prose > :first-child {
    margin-top: 0;
}

/* A heading has its link, seen under the pointer and with the keyboard */
.js .anchor {
    display: inline;
    margin-left: 0.35em;
    color: var(--muted);
    text-decoration: none;
    opacity: 0;
}

.prose :is(h2, h3, h4):hover .anchor,
.anchor:focus-visible {
    opacity: 1;
}

.anchor:hover {
    color: var(--accent);
}

.prose ul,
.prose ol {
    padding-left: 0;
    list-style: none;
}

.prose li + li {
    margin-top: 0.4em;
}

.prose ul > li {
    position: relative;
    padding-left: 20px;
}

/* A list whose bullet is a pixel */
.prose ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    background: var(--accent);
}

.prose ol {
    counter-reset: step;
}

.prose ol > li {
    position: relative;
    padding-left: 28px;
    counter-increment: step;
}

.prose ol > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.1em;
    font-family: var(--mono);
    font-size: 0.85em;
    color: var(--muted);
}

.prose li > ul,
.prose li > ol,
.prose li > p + p {
    margin-top: 0.4em;
}

.prose strong {
    font-weight: 650;
}

.prose hr {
    border: 0;
    border-top: 1px solid var(--hair);
    margin: 40px 0;
}

code {
    font-family: var(--mono);
    font-size: 0.88em;
}

:not(pre) > code {
    padding: 0.08em 0.3em;
    background: var(--code-bg);
    overflow-wrap: anywhere;
}

/* ── code, and the terminal ──────────────────────────────────────────── */

.code {
    position: relative;
}

.code pre {
    overflow-x: auto;
    padding: 14px 18px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.65;
    background: var(--code-bg);
    border: 1px solid var(--hair);
    white-space: pre;
    tab-size: 4;
}

.code pre code {
    font-size: inherit;
}

/* The terminal is dark in both themes, as it is in the app, and wraps a long
   line as the app does: the end of a reason is where it says why */
.terminal pre {
    background: var(--block);
    border-color: var(--hair);
    color: #dde3e8;
    font-size: 12.5px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.terminal .prompt,
.terminal .dim {
    color: #808d97;
}

.terminal .cmd {
    color: #ffffff;
    font-weight: 500;
}

.terminal .good {
    color: #63d391;
}

.terminal .bad {
    color: #ff8370;
}

/* The bar of the terminal window: what the example runs on, and its copy button */
.terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    padding: 5px 8px 5px 18px;
    background: #1f262b;
    border: 1px solid var(--hair);
    border-bottom: 0;
}

.terminal-title {
    margin-right: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9aa7b1;
}

.terminal-sample {
    font-size: 12.5px;
    color: #c3ccd3;
}

.js .code:not(.terminal) .copy {
    display: inline-block;
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--hair);
    opacity: 0;
}

.js .terminal .copy {
    display: inline-block;
    flex-shrink: 0;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #c3ccd3;
    background: none;
    border: 1px solid rgba(221, 227, 232, 0.3);
}

.code:hover .copy,
.copy:focus-visible,
.copy.done {
    opacity: 1;
}

@media (hover: none) {
    .js .code .copy {
        opacity: 1;
    }
}

.copy:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ── tables ──────────────────────────────────────────────────────────── */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.45;
}

th,
td {
    text-align: left;
    vertical-align: top;
    padding: 9px 18px 9px 0;
    border-top: 1px solid var(--hair);
}

th {
    font-weight: 650;
    border-top: 0;
    border-bottom: 1px solid var(--ink);
}

tr:last-child td {
    border-bottom: 1px solid var(--hair);
}

td:last-child,
th:last-child {
    padding-right: 0;
}

td code {
    white-space: nowrap;
}

/* ── boxes beside the text ───────────────────────────────────────────── */

.prose blockquote {
    padding-left: 16px;
    border-left: 2px solid var(--hair);
    color: var(--muted);
}

.callout {
    padding: 12px 16px 14px;
    background: var(--tint);
    border-left: 3px solid var(--ink);
}

.callout > * + * {
    margin-top: 0.6em;
}

.callout-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.callout-warning {
    border-left-color: var(--accent);
}

/* What is not simulated: said in a box of its own, never left out */
.callout-limits {
    background: none;
    border: 1px solid var(--hair);
    border-left: 3px solid var(--muted);
}

/* What is still to be written: dashed, as a button for what is not there yet on the site */
.callout-todo {
    background: none;
    border: 1px dashed var(--hair);
    color: var(--muted);
    font-size: 15px;
}

.stub-note {
    padding: 10px 14px;
    border: 1px dashed var(--muted);
    color: var(--muted);
    font-size: 14px;
}

/* ── figures, animations, videos ─────────────────────────────────────── */

.figure {
    margin-top: 28px !important;
    margin-bottom: 28px;
}

.shot {
    position: relative;
    border: 1px solid var(--hair);
}

.shot img,
.shot video {
    width: 100%;
    height: auto;
}

.video {
    position: relative;
}

figcaption {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--muted);
}

.media-toggle {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--block);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.media-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #22313b;
}

/* ── previous and next ───────────────────────────────────────────────── */

.pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 46rem;
    margin-top: 72px;
}

.pager a {
    display: block;
    padding-top: 12px;
    border-top: 1px solid var(--ink);
    text-decoration: none;
}

.pager a:hover {
    color: inherit;
    border-top-color: var(--accent);
}

.pager .label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pager-title {
    display: block;
    margin-top: 4px;
    font-size: 1.1rem;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.pager-next {
    text-align: right;
}

.pager-next .label {
    justify-content: flex-end;
}

.page-source {
    max-width: 46rem;
    margin-top: 28px;
    font-size: 13px;
    color: var(--muted);
}

/* ── footer ──────────────────────────────────────────────────────────── */

.footer {
    margin-top: 96px;
    border-top: 1px solid var(--ink);
    font-size: 13.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding-top: 18px;
    padding-bottom: 48px;
}

.footer .label {
    margin-bottom: 6px;
}

.footer .lang {
    display: flex;
    width: fit-content;
    margin-top: 10px;
}

/* ── search ──────────────────────────────────────────────────────────── */

.search-dialog {
    width: min(680px, calc(100vw - 32px));
    max-height: min(78vh, 720px);
    margin: 10vh auto 0;
    padding: 0;
    border: 1px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    overflow: hidden;
}

.search-dialog[open] {
    display: flex;
    flex-direction: column;
}

.search-dialog::backdrop {
    background: rgba(11, 11, 11, 0.5);
}

.search-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--hair);
}

.search-head .label {
    grid-column: 1 / -1;
}

.search-input {
    width: 100%;
    padding: 6px 0;
    font: inherit;
    font-size: 18px;
    color: var(--ink);
    background: none;
    border: 0;
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
}

.search-input:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

/* (the window has its own way to close; the field needs no cross of the browser) */
.search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.search-close {
    font-size: 13px;
    color: var(--muted);
}

.search-close:hover {
    color: var(--accent);
}

.search-status {
    padding: 8px 18px;
    font-size: 13px;
    color: var(--muted);
}

.search-results {
    list-style: none;
    overflow-y: auto;
    padding: 0 8px 12px;
}

.search-results a {
    display: block;
    padding: 9px 10px;
    text-decoration: none;
    border-top: 1px solid var(--hair);
}

.search-results li:first-child a {
    border-top: 0;
}

.search-results a:hover,
.search-results a:focus-visible {
    background: var(--hover);
    color: inherit;
    outline: none;
    box-shadow: inset 3px 0 0 var(--accent);
}

.result-title {
    display: block;
    font-weight: 650;
}

.result-crumb {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.result-text {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    color: var(--muted);
}

mark {
    background: var(--mark);
    color: inherit;
}

/* ── a word that something happened ──────────────────────────────────── */

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    padding: 8px 14px;
    background: var(--ink);
    color: var(--paper);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
}

.toast.shown {
    opacity: 1;
}

/* ── medium widths: the table of contents goes over the page ─────────── */

@media (max-width: 1180px) {
    .article.has-toc {
        display: block;
    }

    .article.has-toc > .toc {
        position: static;
        max-height: none;
        max-width: 46rem;
        margin-bottom: 36px;
        padding: 12px 0 14px;
        border-top: 1px solid var(--hair);
        border-bottom: 1px solid var(--hair);
    }

    .toc > ol {
        columns: 2;
        column-gap: 24px;
    }

    .toc li {
        break-inside: avoid;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ── narrow: one column, the navigation opens from the masthead ──────── */

@media (max-width: 900px) {
    :root {
        --edge: 20px;
    }

    .docs {
        display: block;
    }

    .js .menu-toggle {
        display: inline-flex;
        align-items: center;
        padding: 6px 10px;
        border: 1px solid var(--hair);
        font-size: 14px;
        font-weight: 600;
    }

    .menu-toggle[aria-expanded='true'] {
        background: var(--ink);
        color: var(--paper);
    }

    .nav-site,
    .nav-app {
        display: none !important;
    }

    .search-open {
        min-width: 0;
    }

    .search-open kbd {
        display: none;
    }

    /* Without the script the navigation is a list above the page */
    .sidebar {
        position: static;
        max-height: none;
        padding: 20px 0;
        border-bottom: 1px solid var(--hair);
    }

    .js .sidebar {
        display: none;
    }

    .js.nav-open .sidebar {
        display: block;
        position: fixed;
        z-index: 40;
        top: var(--masthead);
        left: 0;
        right: 0;
        bottom: 0;
        padding: 12px var(--edge) 40px;
        background: var(--paper);
        border-bottom: 0;
        overflow-y: auto;
    }

    .js.nav-open body {
        overflow: hidden;
    }

    .sidebar-more {
        display: flex;
        gap: 18px;
        margin-top: 28px;
        padding-top: 14px;
        border-top: 1px solid var(--hair);
    }

    .sidebar-more a {
        padding-left: 0;
    }

    main {
        padding-top: 28px;
    }
}

@media (max-width: 640px) {
    .brand-docs {
        display: none;
    }

    .brand img {
        width: 116px;
        height: 34px;
    }

    .tools,
    .nav {
        gap: 10px;
    }

    .search-open .search-word {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .search-open {
        padding: 7px 9px;
    }

    .theme-toggle {
        font-size: 13px;
    }

    .toc > ol {
        columns: 1;
    }

    .pager {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pager-next {
        text-align: left;
    }

    .pager-next .label {
        justify-content: flex-start;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .terminal pre {
        font-size: 11.5px;
        padding: 12px 14px;
    }

    .search-dialog {
        margin-top: 12px;
        max-height: calc(100vh - 24px);
    }
}

@media print {
    .masthead,
    .sidebar,
    .toc,
    .pager,
    .footer,
    .copy,
    .anchor,
    .search-dialog,
    .page-source {
        display: none !important;
    }

    .docs {
        display: block;
    }
}
