/*
 * The flowjs website. Its material is what Flow does with a page: a line, and the stations a scroll
 * comes to rest on - so the look of a transit line's signs: Overpass, drawn after the lettering of
 * road and transit signage (Delve Withrington, SIL Open Font License), with Overpass Mono for code;
 * black ink on paper, one signal yellow for the stations, the current place and what one acts on.
 * At night the sign is lit: light ink on a dark ground, the same yellow.
 */
@font-face { font-family: "Overpass"; font-weight: 400; font-display: swap; src: url("../fonts/overpass-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 600; font-display: swap; src: url("../fonts/overpass-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 800; font-display: swap; src: url("../fonts/overpass-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass Mono"; font-weight: 400; font-display: swap; src: url("../fonts/overpass-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass Mono"; font-weight: 600; font-display: swap; src: url("../fonts/overpass-mono-latin-600-normal.woff2") format("woff2"); }

:root {
    --paper: #f6f6f2;
    --sheet: #ffffff;
    --ink: #16181b;
    --soft: #5c6067;
    --line: #d5d6d0;
    --signal: #f2b000;
    --on-signal: #16181b;
    --mark: rgba(242, 176, 0, .32);
    --head: 3.75rem;
    --font: "Overpass", "Segoe UI", system-ui, sans-serif;
    --mono: "Overpass Mono", ui-monospace, Menlo, Consolas, monospace;
    color-scheme: light;

    /* omnidocs' layout and palette, in the site's colours. */
    --omnidocs-bg: var(--paper);
    --omnidocs-fg: var(--ink);
    --omnidocs-muted: var(--soft);
    --omnidocs-line: var(--line);
    --omnidocs-soft: var(--sheet);
    --omnidocs-accent: var(--ink);
    --omnidocs-top: calc(var(--head) + 1rem);
    --omnidocs-drawer-top: var(--head);
    --omnidocs-mono: var(--mono);
    --omnidocs-sidebar: 16rem;
}
@media (prefers-color-scheme: dark) {
    :root {
        --paper: #121417;
        --sheet: #1a1d21;
        --ink: #ecebe5;
        --soft: #a3a6ac;
        --line: #2e3237;
        --signal: #ffc519;
        --on-signal: #121417;
        --mark: rgba(255, 197, 25, .25);
        color-scheme: dark;
    }
    /* The signature: white at night, never the site's colours. */
    .site-foot .ga-credits { --ga-credits-ink: #fff; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head) + .5rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); overflow-x: clip; }
a { color: inherit; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 3px; }
code, kbd, pre { font-family: var(--mono); }
:not(pre) > code { padding: .05em .3em; font-size: .88em; background: var(--sheet); border: 1px solid var(--line); border-radius: 3px; overflow-wrap: anywhere; }
kbd { display: inline-block; padding: 0 .4em; font-size: .82em; line-height: 1.5; background: var(--sheet); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: .5rem; z-index: 100; padding: .4rem .8rem; background: var(--signal); color: var(--on-signal); }
.wrap { width: 100%; max-width: 78rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

.button { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; font: 600 .95rem/1.2 var(--font); color: var(--on-signal); background: var(--signal); border: 2px solid var(--signal); border-radius: 999px; text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(1.05); }
.button.is-line { color: var(--ink); background: transparent; border-color: var(--ink); }

/* ---- the header: the line's mark, the pages, the search ------------------------------ */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: transform .25s ease; }
.site-head.sticky-top:not(.show) { /* Sticky moves it with an inline top */ }
.site-head-in { display: flex; align-items: center; gap: 1.25rem; height: 100%; max-width: 78rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.site-mark { display: inline-flex; align-items: center; gap: .55rem; font: 800 1.3rem/1 var(--font); letter-spacing: -.01em; text-decoration: none; }
.site-mark-line { width: 2.6rem; height: .7rem; overflow: visible; }
.site-mark-line path { stroke: var(--ink); stroke-width: 3; }
.site-mark-line circle { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.site-mark-line circle:nth-of-type(2) { fill: var(--signal); stroke: var(--signal); }
.site-nav { display: flex; gap: .25rem; }
.site-nav a { padding: .4rem .7rem; font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 999px; }
.site-nav a:hover { background: var(--sheet); }
.site-nav a[aria-current] { background: var(--ink); color: var(--paper); }
.site-search { margin-left: auto; display: inline-flex; align-items: center; gap: .6rem; min-width: 14rem; padding: .4rem .5rem .4rem .9rem; font: inherit; font-size: .92rem; color: var(--soft); background: var(--sheet); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.site-search:hover { border-color: var(--ink); color: var(--ink); }
.site-search .omnidocs-search-keys { margin-left: auto; display: inline-flex; gap: .25rem; }
.site-github { display: inline-flex; width: 1.5rem; height: 1.5rem; color: var(--ink); }
.site-github svg { width: 100%; height: 100%; fill: currentColor; }
@media (max-width: 52rem) {
    /* Two rows on a phone: the mark, the search and GitHub; under them the pages. */
    :root { --head: 6.1rem; }
    .site-head-in { flex-wrap: wrap; align-content: center; gap: .35rem .6rem; }
    .site-nav { order: 3; flex-basis: 100%; gap: .1rem; overflow-x: auto; scrollbar-width: none; }
    .site-nav a { padding: .3rem .65rem; font-size: .9rem; white-space: nowrap; }
    .site-search { min-width: 0; padding: .35rem .65rem; }
    .site-search .omnidocs-search-label { display: none; }
}
@media (max-width: 26rem) { .site-search .omnidocs-search-keys kbd + kbd { display: none; } }

/* ---- the showcase: a line of stations ------------------------------------------------- */
.stop { padding: clamp(3rem, 9vh, 6rem) 0; border-bottom: 1px solid var(--line); }
.hero { min-height: calc(100vh - var(--head)); min-height: calc(100svh - var(--head)); display: flex; align-items: center; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1.5rem; color: var(--soft); font-weight: 600; }
.badge { padding: .15rem .6rem; font: 600 .85rem/1.5 var(--mono); color: var(--on-signal); background: var(--signal); border-radius: 999px; }
.hero h1 { margin: 0 0 1.25rem; max-width: 18ch; font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -.025em; }
.hero-lead { max-width: 44rem; margin: 0 0 2rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--soft); }
.hero-install { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 3rem; }
.hero-install code { padding: .6rem 1rem; font-size: .95rem; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 999px; cursor: copy; }
.hero-install code.is-copied { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }

/* The line map: the modules as stations, the line running through them. */
.line ol { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 1rem; margin: 0; padding: 0; list-style: none; }
.line ol::before { content: ""; position: absolute; left: 0; right: 0; top: .7rem; height: 4px; background: var(--ink); border-radius: 2px; }
.line a { position: relative; display: grid; justify-items: start; gap: .1rem; padding-top: 2.1rem; text-decoration: none; }
.line .station { position: absolute; top: 0; left: 0; width: 1.6rem; height: 1.6rem; background: var(--paper); border: 4px solid var(--ink); border-radius: 50%; transition: background .15s, transform .15s; }
.line a:hover .station, .line a:focus-visible .station { background: var(--signal); transform: scale(1.15); }
.line b { font-size: 1.05rem; }
.line small { font: 400 .78rem/1.35 var(--mono); color: var(--soft); }
/* A station's modules break between names, never inside one: the line itself never wraps (five columns). */
.line small span { white-space: nowrap; }
.hint { margin: 2.2rem 0 0; color: var(--soft); font-size: .95rem; }
@media (max-width: 44rem) {
    .line ol { grid-template-columns: 1fr; gap: .9rem; padding-left: .05rem; }
    .line ol::before { left: .7rem; right: auto; top: .2rem; bottom: .2rem; width: 4px; height: auto; }
    .line a { padding: 0 0 0 2.6rem; }
}

.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: start; }
.demo-head { grid-column: 1 / -1; max-width: 48rem; }
.demo-module { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 clamp(.9rem, 1.5vw, 1.25rem); font: 600 .85rem/1.4 var(--mono); color: var(--soft); }
.demo-module .station, .demo-head .station { display: inline-block; width: .95rem; height: .95rem; background: var(--signal); border: 3px solid var(--ink); border-radius: 50%; }
.demo-module a { color: var(--soft); }
.demo-head h2 { margin: .1em 0 .75rem; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.demo-head p { margin: 0; color: var(--soft); }
.demo-head .demo-module, .scene-copy .demo-module { margin-bottom: clamp(.9rem, 1.6vw, 1.25rem); }
.demo { min-width: 0; padding: 1.25rem; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: .9rem; }
.demo-code { min-width: 0; }
.demo-code .doc-code { margin: 0 0 1rem; }
.demo-code .doc-code pre { max-height: 26rem; }
@media (max-width: 64rem) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }
.demo-bar { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .5rem; font-size: .85rem; color: var(--soft); }
.demo-bar output { font: 600 .85rem/1.4 var(--mono); color: var(--ink); }
.demo-scroller { height: 18rem; overflow-y: auto; overscroll-behavior: contain; padding: .5rem; margin-bottom: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: .6rem; scroll-padding-top: .5rem; }
.card { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; margin-bottom: .5rem; background: var(--sheet); border: 1px solid var(--line); border-left: 6px solid var(--ink); border-radius: .4rem; font-weight: 600; }
.card b { display: inline-grid; place-items: center; flex: none; width: 1.8rem; height: 1.8rem; font: 800 .95rem/1 var(--font); color: var(--on-signal); background: var(--signal); border-radius: 50%; }
.card.is-a, .card.is-b, .card.is-c { min-height: 9rem; }
.card.is-tall { flex-wrap: wrap; min-height: 36rem; }
.card.is-barely { min-height: 18.5rem; }
.tall-mark { flex-basis: 100%; margin-top: 11rem; color: var(--soft); font-weight: 400; }
.demo-row { display: flex; gap: .75rem; overflow-x: auto; padding: .5rem; background: var(--paper); border: 1px solid var(--line); border-radius: .6rem; scroll-padding-left: .5rem; }
.tile { flex: none; display: grid; place-items: end start; width: 9.5rem; height: 6.5rem; margin: 0; padding: .7rem; font-weight: 800; color: var(--paper); background: var(--ink); border-radius: .5rem; }
.tile:nth-child(odd) { background: var(--signal); color: var(--on-signal); }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1rem; }
.counters div { padding: .9rem; background: var(--paper); border-radius: .5rem; }
.counters dt { font-size: .85rem; color: var(--soft); }
.counters dd { margin: .2rem 0 0; font: 800 2.4rem/1 var(--font); }
.demo-try { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .9rem; }
.demo-try a { font-weight: 600; }
.demo-note { margin: 0; font-size: .92rem; color: var(--soft); }
.demo-note output { color: var(--ink); font-weight: 600; }
.sortable { margin: 0 0 1rem; padding: 0; list-style: none; }
.sortable li { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; margin-bottom: .4rem; font-weight: 600; background: var(--paper); border: 1px solid var(--line); border-radius: .4rem; }
.sortable .grip { padding: .1rem .35rem; font-size: 1.1rem; line-height: 1; color: var(--soft); background: none; border: 0; cursor: grab; touch-action: none; }
.sortable li.is-dragging { opacity: .6; }
.sortable .is-sortable-placeholder { height: 2.6rem; border: 2px dashed var(--signal); background: transparent; }
.demo-out { min-height: 6.5rem; margin: 0; padding: .9rem; font-size: .85rem; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper); border: 1px solid var(--line); border-radius: .4rem; }
.demo-out.ajaxer-call { border-color: var(--signal); }
.end { border-bottom: 0; }
.end h2 { margin: 0 0 1.25rem; font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
.start-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 52rem) { .start-grid { grid-template-columns: minmax(0, 1fr); } }
.start-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 0; }

/* ---- code frames (omnidocs' conventions) ------------------------------------------------- */
.doc-code { position: relative; }
.doc-code pre { margin: 0; padding: 1rem 1.1rem; font-size: .86rem; line-height: 1.6; color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-radius: .5rem; overflow-x: auto; tab-size: 4; }
.doc-code-caption { padding: .4rem 1.1rem; font: 600 .8rem/1.4 var(--mono); color: var(--ink); background: var(--signal); color: var(--on-signal); border: 0; border-radius: .5rem .5rem 0 0; }
.doc-code-caption + pre { border-top-left-radius: 0; border-top-right-radius: 0; }
.doc-code[data-lang]:not(:has(.doc-code-caption))::before { content: attr(data-lang); position: absolute; top: .45rem; right: 4.2rem; font: 600 .7rem/1.6 var(--mono); color: var(--soft); text-transform: lowercase; }
.doc-code-copy { font-family: var(--font); }

/* ---- the documentation: one page beside its sidebar ---------------------------------------- */
.doc { padding: 2rem 0 4rem; }
.doc-side { font-size: .93rem; }
.doc-pages { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 1.5rem; }
.doc-pages a { padding: .3rem .7rem; font-weight: 600; font-size: .88rem; text-decoration: none; border: 1.5px solid var(--line); border-radius: 999px; }
.doc-pages a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.doc-side-title { margin: 0 0 .5rem; font-weight: 800; }
/* The table of contents as a line: each section a station, the one read lit. */
.doc .omnidocs-toc > ul { position: relative; }
.doc .omnidocs-toc > ul::before { content: ""; position: absolute; left: .45rem; top: .5rem; bottom: .5rem; width: 3px; background: var(--line); border-radius: 2px; }
.doc .omnidocs-toc a { position: relative; padding: .3rem .5rem .3rem 1.6rem; border: 0; color: var(--soft); background: none; }
.doc .omnidocs-toc > ul > li > a { color: var(--ink); }
.doc .omnidocs-toc > ul > li > a::before { content: ""; position: absolute; left: .15rem; top: .62rem; width: .65rem; height: .65rem; background: var(--paper); border: 3px solid var(--ink); border-radius: 50%; }
.doc .omnidocs-toc ul ul a { padding-left: 2.1rem; }
.doc .omnidocs-toc a.is-current { color: var(--ink); font-weight: 700; background: var(--mark); border-radius: 0 999px 999px 0; }
.doc .omnidocs-toc a.is-current::before, .doc .omnidocs-toc li.is-open > a::before { background: var(--signal); border-color: var(--ink); }
.doc .omnidocs-toc small { color: var(--soft); font-weight: 400; }
/* A disclosure of the contents (omnidocs): the station - its dot and its name - opens and closes its
   entries; the small arrow beside it goes to the section. */
.doc .omnidocs-toc-head { position: relative; }
.doc .omnidocs-toc-disclose { position: relative; padding: .3rem .5rem .3rem 1.6rem; color: var(--ink); font-weight: 600; border-left: 0; }
.doc .omnidocs-toc-dot { position: absolute; left: .15rem; top: .62rem; width: .65rem; height: .65rem; background: var(--paper); border: 3px solid var(--ink); border-radius: 50%; }
.doc .omnidocs-toc-disclose[aria-expanded="true"] .omnidocs-toc-dot { background: var(--signal); border-color: var(--ink); }
.doc .omnidocs-toc-disclose:hover { background: var(--sheet); border-radius: 0 999px 999px 0; }
.doc .omnidocs-toc-head:has(.is-current) .omnidocs-toc-disclose { color: var(--ink); font-weight: 700; background: var(--mark); border-radius: 0 999px 999px 0; }
.doc .omnidocs-toc .omnidocs-toc-go { width: 1.8rem; height: 1.8rem; color: var(--soft); }
.doc .omnidocs-toc .omnidocs-toc-go::before { content: none; }
.doc .omnidocs-toc .omnidocs-toc-go:hover { color: var(--ink); background: var(--sheet); }
.doc .omnidocs-toc .omnidocs-toc-go.is-current { color: var(--ink); background: none; }
.doc .omnidocs-toc-entry.is-group > .omnidocs-toc-head .omnidocs-toc-name { text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.doc .omnidocs-toc-children { padding-bottom: .2rem; }

/* The groups of the API reference, in the page (omnidocs' OnePage, div.doc-group) and on its index. */
.prose .doc-group { margin: 4.5rem 0 -2.6rem; }
.prose .doc-group-title { margin: 0; font: 800 .85rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--soft); }
.prose .doc-group-title::before { content: ""; display: inline-block; width: .7rem; height: .7rem; margin-right: .5rem; vertical-align: -.05em; background: var(--signal); border: 3px solid var(--ink); border-radius: 50%; }
.prose .api-index { margin: 1rem 0 0; }
.prose .api-group { margin: 0 0 1.75rem; }
.prose .api-group-title { margin: 0 0 .6rem; font: 800 .85rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--soft); }
.prose .api-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: .9rem; margin: 0; padding: 0; list-style: none; }
.prose .api-card { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: .8rem; }
.prose .api-card p { margin: 0; }
.prose .api-card-name a { text-decoration: none; }
.prose .api-card-name code { padding: 0; font: 800 1.1rem/1.2 var(--mono); background: none; border: 0; }
.prose .api-card-name a:hover code { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; }
.prose .api-card-about { font-size: .92rem; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.prose .api-card-counts { margin-top: auto !important; font: 600 .78rem/1.5 var(--mono); color: var(--ink); word-spacing: .1em; }
.prose .api-card-links { display: flex; gap: .4rem; }
.prose .api-card-links a { padding: .2rem .65rem; font-size: .82rem; font-weight: 600; text-decoration: none; border: 1.5px solid var(--ink); border-radius: 999px; }
.prose .api-card-links a:hover { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.doc-head { margin: 0 0 2rem; }
.doc-kicker { margin: 0 0 clamp(.75rem, 1.2vw, 1rem); font: 600 .85rem/1.4 var(--mono); color: var(--soft); }
.doc-head h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.doc-lead { max-width: 46rem; color: var(--soft); }
.prose { max-width: 50rem; overflow-wrap: break-word; }
.prose h2 { margin: 3rem 0 .8rem; font-size: 1.65rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.prose h3 { margin: 2.2rem 0 .6rem; font-size: 1.25rem; font-weight: 800; }
.prose h4 { margin: 1.8rem 0 .5rem; font-size: 1.05rem; font-weight: 800; }
.prose h2.doc-part-title { margin-top: 4rem; padding-top: 1.2rem; border-top: 4px solid var(--ink); font-size: 2rem; }
.prose .doc-part-home > :first-child { margin-top: 0; }
.prose .heading-anchor { margin-left: .4rem; text-decoration: none; }
.prose .heading-anchor::after { content: "#"; color: var(--line); font-weight: 400; }
.prose :is(h2, h3, h4):hover .heading-anchor::after { color: var(--signal); }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { padding: .45rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { border-bottom: 2px solid var(--ink); white-space: nowrap; }
.prose img { max-width: 100%; height: auto; }
.prose .doc-code { margin: 1rem 0 1.2rem; }
.prose blockquote { margin: 1.2rem 0; padding: .1rem 1rem; border-left: 4px solid var(--line); color: var(--soft); }
.prose blockquote.doc-callout { padding: .8rem 1rem; color: var(--ink); background: var(--sheet); border-left-color: var(--signal); border-radius: 0 .5rem .5rem 0; }
.prose blockquote.doc-callout::before { content: attr(data-label); display: block; margin-bottom: .2rem; font-weight: 800; }
.prose .doc-version { display: inline-block; margin-left: .45rem; padding: 0 .45rem; font: 600 .62em/1.6 var(--mono); vertical-align: .3em; color: var(--on-signal); background: var(--signal); border-radius: 999px; letter-spacing: 0; }
.prose .api-kind { margin-left: .35rem; font: 400 .72rem/1 var(--mono); color: var(--soft); vertical-align: middle; }
.prose .api-declaration { margin: -.3rem 0 .6rem; font-size: .82rem; }
.prose .api-source { color: var(--soft); }
.prose .api-params dt { margin-top: .5rem; }
.prose .api-params dd { margin-left: 1rem; }
.prose h2 > code, .prose h3 > code { padding: 0; background: none; border: 0; font-size: .9em; }
.part-edit { margin: 1.5rem 0 0; font-size: .85rem; }
.part-edit a { color: var(--soft); text-decoration-color: var(--line); }
.lost-in { padding: 6rem clamp(1rem, 4vw, 2.5rem); }
.lost-in h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 1rem; }

/* ---- omnidocs' palette, in the site's colours ----------------------------------------------- */
.omnidocs-panel { border: 1.5px solid var(--ink); border-radius: .9rem; }
.omnidocs-hit.is-active { background: var(--mark); outline: 0; }
.omnidocs-hit mark { background: var(--mark); }
.omnidocs-hit-kind { font-family: var(--mono); }

/* ---- the footer ------------------------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); }
.site-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; max-width: 78rem; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2.5rem); }
.site-foot-sign { display: flex; align-items: center; gap: 1.25rem; }
.site-foot-name { margin: 0; padding-left: 1.25rem; border-left: 2px dotted var(--line); line-height: 1.3; }
.site-foot-name b { display: block; font-size: 1.15rem; }
.site-foot-name span { font: 400 .8rem/1.4 var(--mono); color: var(--soft); }
.site-foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0; padding: 0; list-style: none; font-size: .92rem; }

/* Transparent's progress bar, in the signal colour. */
html.loading #loader, #loader { position: fixed; z-index: 90; }

@media (prefers-reduced-motion: reduce) { .site-head, .line .station { transition: none; } }

/* ---- round 2: the features at their size --------------------------------------------------- */
.demo-lead { margin: 0; max-width: 46rem; color: var(--soft); font-size: clamp(1.02rem, 1.4vw, 1.15rem); }
.feature.is-major { background: var(--sheet); border-bottom: 1px solid var(--line); }
.feature.is-major .demo-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.gets { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.75rem; padding: 0; list-style: none; }
.gets li { padding: .45rem .8rem; font-size: .92rem; background: var(--paper); border: 1px solid var(--line); border-radius: .6rem; }
.gets.is-compact { display: grid; gap: .6rem; margin: 0 0 1rem; }
.gets.is-compact li { background: var(--sheet); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.demo-card { min-width: 0; padding: 1.25rem; background: var(--paper); border: 1.5px solid var(--ink); border-radius: .9rem; }
.demo-card h3 { margin: 0 0 .9rem; font-size: 1.3rem; font-weight: 800; }
.demo-card .doc-code { margin: 1rem 0 0; }
.demo-card.is-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.demo-card.is-wide h3 { grid-column: 1 / -1; margin: 0; }
@media (max-width: 64rem) { .feature-grid, .demo-card.is-wide { grid-template-columns: minmax(0, 1fr); } }
.switch { display: inline-flex; margin: 0 0 .9rem; padding: .2rem; background: var(--sheet); border: 1px solid var(--line); border-radius: 999px; }
.switch button { padding: .35rem .9rem; font: 600 .9rem/1.2 var(--font); color: var(--soft); background: none; border: 0; border-radius: 999px; cursor: pointer; }
.switch button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.switch button[data-bar-look="rainbow"][aria-pressed="true"] { color: #16181b; background: linear-gradient(90deg, #ff3b30, #ff9500, #ffcc00, #34c759, #5ac8fa, #007aff, #af52de); }
.bar-timeline { display: block; min-height: 2.6rem; margin: 0 0 .8rem; padding: .55rem .75rem; font: 400 .82rem/1.5 var(--mono); background: var(--sheet); border: 1px solid var(--line); border-radius: .4rem; overflow-wrap: anywhere; }
:root.bar-rainbow {
    --transparent-bar-height: 4px;
    --transparent-bar-background: linear-gradient(90deg, #ff3b30, #ff9500, #ffcc00, #34c759, #5ac8fa, #007aff, #af52de, #ff3b30);
    --transparent-bar-size: 200% 100%;
    --transparent-bar-duration: 1.4s;
    --transparent-bar-done: linear-gradient(90deg, #ff3b30, #ffcc00, #34c759, #007aff, #af52de);
}
:root { --transparent-bar-color: var(--signal); }

/* The framed browser (FlowFrame): the flagship of the Navigation station. */
.demo-card.is-flagship { display: grid; gap: 1rem; margin: 0 0 1.25rem; padding: clamp(1rem, 2vw, 1.5rem); background: var(--paper); }
.flagship-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem 1.5rem; align-items: baseline; }
.flagship-head h3 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
@media (max-width: 52rem) { .flagship-head { grid-template-columns: minmax(0, 1fr); } }
.browser { min-width: 0; overflow: hidden; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: .8rem; box-shadow: 0 .8rem 2rem rgb(0 0 0 / .08); }
.browser-bar { --b: 2.1rem; position: relative; display: flex; align-items: center; gap: .35rem; padding: .5rem .6rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.browser-dots { display: inline-flex; gap: .3rem; margin-right: .35rem; }
.browser-dots i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--line); }
.browser-dots i:first-child { background: var(--signal); }
/* The arrows: an icon centred in a box the height of the address field - grid, no line box to shift it. */
.browser-icon { display: inline-grid; place-items: center; flex: none; width: var(--b); height: var(--b); padding: 0; line-height: 1; color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-radius: .45rem; cursor: pointer; }
.browser-icon svg { display: block; width: 1rem; height: 1rem; }
.browser-icon:hover:not(:disabled) { border-color: var(--ink); }
.browser-icon:disabled { color: var(--line); cursor: default; }
.browser-bar input { flex: 1; min-width: 0; height: var(--b); padding: 0 .8rem; font: 400 .85rem/1 var(--mono); color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-radius: 999px; }
.browser.flow-frame-loading .browser-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: linear-gradient(90deg, transparent, var(--signal) 30%, var(--signal) 70%, transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: frame-bar 1.1s ease-in-out infinite; }
@keyframes frame-bar { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .browser.flow-frame-loading .browser-bar::after { animation: none; background-size: 100% 100%; } }
.browser-view { height: clamp(26rem, 62vh, 40rem); overflow: auto; overscroll-behavior: contain; background: #fbf8f3; color: #2b2622; }
@media (max-width: 44rem) {
    .browser-dots { display: none; }
    .browser-bar { --b: 2.25rem; padding: .45rem; }
    .browser-view { height: 72svh; }
    .demo-card.is-flagship { margin-inline: calc(-1 * clamp(1rem, 4vw, 2.5rem) + .25rem); border-radius: .6rem; padding: .75rem; }
}
.frame-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.frame-stats div { padding: .65rem .8rem; background: var(--sheet); border: 1px solid var(--line); border-radius: .5rem; }
.frame-stats dt { font-size: .8rem; color: var(--soft); }
.frame-stats dd { margin: .1rem 0 0; font: 800 1.35rem/1.2 var(--font); }
@media (max-width: 36rem) { .frame-stats { grid-template-columns: minmax(0, 1fr); } .frame-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; } }
.demo-more summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.demo-more[open] summary { margin-bottom: .6rem; }
.frame-standalone { padding: 2rem clamp(1rem, 4vw, 2.5rem) 4rem; max-width: 60rem; }
.browser.is-standalone .browser-view { height: auto; }

/* Kiln & Kettle, the shop in the frame: its own look, warm paper and clay - another site. */
.kk { --kk-ink: #2b2622; --kk-soft: #6f655c; --kk-clay: #b5532f; --kk-line: #e6ddd2; min-height: 100%; display: flex; flex-direction: column; font: 400 .95rem/1.55 Georgia, "Iowan Old Style", "Palatino Linotype", serif; color: var(--kk-ink); }
.kk > :not(.kk-head):not(.kk-foot) { margin-inline: clamp(1rem, 3vw, 2rem); }
.kk-head { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; padding: .7rem clamp(1rem, 3vw, 2rem); background: rgb(251 248 243 / .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--kk-line); margin-bottom: 1.25rem; }
.kk .kk-logo { display: inline-flex; align-items: center; gap: .45rem; color: var(--kk-clay); text-decoration: none; font: 700 1.1rem/1 Georgia, serif; letter-spacing: .01em; }
.kk-logo svg { width: 1.6rem; height: 1.6rem; }
.kk-logo span { color: var(--kk-ink); }
.kk-logo i { color: var(--kk-clay); }
.kk-menu { display: flex; flex-wrap: wrap; gap: .1rem .9rem; font: 600 .82rem/1.4 var(--font); text-transform: uppercase; letter-spacing: .06em; }
.kk-menu a { color: var(--kk-soft); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.kk-menu a:hover { color: var(--kk-ink); }
.kk-menu a[aria-current] { color: var(--kk-ink); border-bottom-color: var(--kk-clay); }
.kk h1 { margin: 0 0 .5rem; font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.15 Georgia, serif; letter-spacing: -.01em; }
.kk a { color: inherit; text-decoration-color: var(--kk-clay); }
.kk-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.kk-hero img, .kk-wide { display: block; width: 100%; height: auto; border-radius: .6rem; }
.kk-wide { margin: .5rem 0 1rem; max-width: 36rem; }
@media (max-width: 40rem) { .kk-hero { grid-template-columns: minmax(0, 1fr); } }
.kk-kicker { margin: 0 0 .3rem; font: 600 .75rem/1.4 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--kk-clay); }
.kk-lead { color: var(--kk-soft); }
.kk .kk-button { display: inline-block; padding: .5rem 1.05rem; font: 700 .85rem/1.2 var(--font); color: #fff; background: var(--kk-clay); border: 0; border-radius: .35rem; text-decoration: none; cursor: pointer; }
.kk-title { margin: 1.6rem 0 .7rem; font: 700 1.15rem/1.3 Georgia, serif; }
.kk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .9rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.kk-grid.is-small { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
.kk-grid a { display: grid; gap: .15rem; text-decoration: none; }
.kk-grid img { width: 100%; height: auto; border-radius: .45rem; transition: transform .2s; }
.kk-grid a:hover img { transform: translateY(-2px); }
.kk-grid b { margin-top: .3rem; font-weight: 700; }
.kk-grid span { font: 400 .8rem/1.3 var(--font); color: var(--kk-soft); }
.kk-crumbs { margin: 0 0 .8rem; font: 400 .82rem/1.4 var(--font); color: var(--kk-soft); }
.kk-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.kk-item img { width: 100%; height: auto; border-radius: .6rem; }
@media (max-width: 40rem) { .kk-item { grid-template-columns: minmax(0, 1fr); } }
.kk-price { margin: 0 0 .6rem; font: 700 1.25rem/1.2 var(--font); color: var(--kk-clay); }
.kk-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0 0 1rem; font: 400 .82rem/1.4 var(--font); }
.kk-facts dt { color: var(--kk-soft); }
.kk-facts dd { margin: 0; font-weight: 600; }
.kk-list { padding-left: 1.2rem; }
.kk-slow { padding: .5rem .75rem; font: 400 .82rem/1.45 var(--font); background: #f6ead8; border-left: 3px solid #d99a2b; border-radius: 0 .35rem .35rem 0; }
.kk-form { display: grid; gap: .75rem; max-width: 28rem; }
.kk-form label { display: grid; gap: .25rem; font: 600 .85rem/1.3 var(--font); }
.kk-form input, .kk-form textarea { padding: .5rem .65rem; font: 400 .95rem/1.4 var(--font); color: var(--kk-ink); background: #fff; border: 1px solid #d7ccbf; border-radius: .35rem; }
.kk-form p { margin: 0; }
.kk-note { font-style: italic; }
.kk-foot { margin-top: auto; padding: 1.25rem clamp(1rem, 3vw, 2rem); font: 400 .78rem/1.4 var(--font); color: var(--kk-soft); border-top: 1px solid var(--kk-line); }
.kk > .kk-foot { margin-inline: 0; margin-top: 2rem; }

/* The Scrolling station: three panels (Sticky, StickyStops, StickyScenes), one station of the line. */
.panel-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; }
.panel-tabs a { padding: .45rem .9rem; font-size: .9rem; text-decoration: none; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; }
.panel-tabs a b { margin-right: .3rem; }
.panel-tabs a.highlight, .panel-tabs a:hover { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.panel { margin-top: clamp(2rem, 5vh, 3.5rem); padding-top: clamp(1.5rem, 3vh, 2.25rem); border-top: 2px solid var(--ink); scroll-margin-top: .5rem; }
.panel-head { grid-column: 1 / -1; max-width: 48rem; margin-bottom: 1rem; }
.panel-head h3 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.panel .demo { background: var(--paper); }

/* The scene, read sideways (StickyScenes, data-scene-axis="x"): the laptop on its stage, the track of
   three panels over it - scrolled to the side, snapped to each step; the cards travel with their panel,
   so an arrived card is always whole. */
.scene-x { position: relative; margin: 0 0 1.25rem; border: 1.5px solid var(--ink); border-radius: .9rem; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, var(--paper), var(--sheet) 75%); }
.sticky-scene.scene-x .scene-stage { position: relative; height: clamp(24rem, 62vh, 34rem); }
.scene-object { position: absolute; inset: 0 0 5.5rem 0; display: grid; place-items: center; perspective: 1400px; perspective-origin: 50% 30%; pointer-events: none; }
.scene-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
.scene-track::-webkit-scrollbar { display: none; }
.scene-track:focus-visible { outline: 3px solid var(--signal); outline-offset: -3px; }
.scene-panel { flex: 0 0 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 1rem 1rem; scroll-snap-align: start; scroll-snap-stop: always; }
.scene-card { display: grid; gap: .15rem; width: min(30rem, 100%); padding: .7rem .95rem; background: var(--sheet); border: 1px solid var(--line); border-left: 5px solid var(--signal); border-radius: .5rem; box-shadow: 0 .4rem 1rem rgb(0 0 0 / .06); }
.scene-card span { font-size: .9rem; color: var(--soft); }
.scene-hint { position: absolute; right: 1rem; top: 42%; font: 800 2rem/1 var(--font); color: var(--ink); }
.scene-meter { position: absolute; left: 1rem; top: .8rem; font: 600 .8rem/1.4 var(--mono); color: var(--soft); pointer-events: none; }
.laptop {
    --w: min(26rem, 64vw);
    --p: var(--scene-progress, 0);
    --open: clamp(0, calc((var(--p) - .5) * 2), 1);
    position: relative; width: var(--w); height: calc(var(--w) * .62);
    transform-style: preserve-3d;
    transform: translateY(calc(var(--w) * (-.32 + .27 * var(--open)))) rotateX(calc(-30deg + var(--p) * 18deg)) rotateY(calc(-42deg + min(1, var(--p) * 2) * 42deg));
}
.laptop-base, .laptop-lid { position: absolute; left: 0; width: 100%; height: 100%; transform-style: preserve-3d; border-radius: .7rem; }
/* The hinge is the container's bottom edge: the base hangs from it, turned flat towards the reader, its keys
   up; the lid stands on it, closed flat over the keys at first (its screen down), open over the second half. */
.laptop-base { top: 100%; transform-origin: 50% 0; transform: rotateX(90deg); background: linear-gradient(180deg, #d7d9dd, #b9bcc2); box-shadow: 0 0 0 1px rgb(0 0 0 / .12) inset; }
.laptop-keys { position: absolute; left: 8%; right: 8%; top: 7%; height: 46%; border-radius: .3rem; background: repeating-linear-gradient(90deg, #2a2d32 0 7%, transparent 7% 7.8%), repeating-linear-gradient(180deg, transparent 0 14%, #b9bcc2 14% 17%); background-color: #2a2d32; opacity: .9; }
.laptop-pad { position: absolute; left: 34%; right: 34%; top: 60%; height: 30%; border-radius: .4rem; background: #c6c9ce; box-shadow: 0 0 0 1px rgb(0 0 0 / .12) inset; }
.laptop-lid { bottom: 0; transform-origin: 50% 100%; transform: translateY(-3px) rotateX(calc(-90deg + var(--open) * 100deg)); }
.laptop-screen, .laptop-back { position: absolute; inset: 0; border-radius: .7rem; backface-visibility: hidden; }
.laptop-screen { padding: 4%; background: #111317; box-shadow: 0 0 0 2px #2d3036 inset; }
.laptop-back { display: grid; place-items: center; transform: rotateX(180deg); background: linear-gradient(135deg, #e3e5e8, #b4b7bd); }
.laptop-back span { font: 800 1.4rem/1 var(--font); color: rgb(0 0 0 / .25); }
.mini-site { position: relative; display: grid; align-content: start; gap: .5rem; height: 100%; padding: 6% 7%; background: #f6f6f2; border-radius: .25rem; color: #16181b; opacity: calc(var(--open) * 1.2 - .2); }
.mini-site .mini-bar { position: absolute; left: 0; top: 0; height: 3px; width: calc(var(--open) * 100%); background: linear-gradient(90deg, #ff3b30, #ff9500, #ffcc00, #34c759, #5ac8fa, #007aff, #af52de); }
.mini-site svg { width: 28%; overflow: visible; }
.mini-site svg path { stroke: #16181b; stroke-width: 3; }
.mini-site svg circle { fill: #f6f6f2; stroke: #16181b; stroke-width: 3; }
.mini-site svg circle:nth-of-type(2) { fill: #f2b000; stroke: #f2b000; }
.mini-site b { font-size: clamp(.9rem, 2.2vw, 1.6rem); font-weight: 800; }
.mini-site i { display: block; height: .45rem; width: 80%; background: #d5d6d0; border-radius: 999px; }
.mini-site i.is-short { width: 50%; background: #f2b000; }
@media (max-width: 44rem) {
    .sticky-scene.scene-x .scene-stage { height: 30rem; }
    .scene-object { inset: 2.6rem 0 7.5rem 0; }
    .laptop { --w: min(16rem, 66vw); }
    .scene-card span { font-size: .84rem; }
    .scene-hint { top: 38%; right: .6rem; }
}

/* Sortable: a list, and a tree. */
.sortable-demos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.25rem; margin: 1.25rem 0; }
@media (max-width: 64rem) { .sortable-demos { grid-template-columns: minmax(0, 1fr); } }
.sortable-demos h3 { margin: 0 0 .8rem; font-size: 1.15rem; font-weight: 800; }
.tree, .tree ol { margin: 0; padding: 0; list-style: none; }
.tree ol { padding-left: 1.6rem; }
.tree li { margin: 0 0 .35rem; }
.tree ol li:first-child { margin-top: .35rem; }
.tree-row { display: flex; align-items: center; gap: .45rem; min-height: 2.3rem; padding: .2rem .6rem; font-weight: 600; background: var(--paper); border: 1px solid var(--line); border-radius: .4rem; }
.tree ol .tree-row { font-weight: 400; }
.tree-row small { margin-left: auto; font: 400 .75rem/1.3 var(--mono); color: var(--soft); }
.tree .grip { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; padding: 0; font-size: 1.1rem; line-height: 1; color: var(--soft); background: none; border: 0; border-radius: .3rem; cursor: grab; touch-action: none; }
.tree .grip:focus-visible { color: var(--ink); }
.tree-toggle { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; padding: 0; color: var(--ink); background: none; border: 0; border-radius: .3rem; cursor: pointer; }
.tree-toggle[hidden] { display: inline-grid; visibility: hidden; }
.tree-toggle svg { width: 1rem; height: 1rem; transition: transform .15s; }
.tree .is-collapsed > .tree-row .tree-toggle svg { transform: rotate(-90deg); }
.tree li.is-dragging { opacity: .55; position: relative; z-index: 3; }
.tree li.is-held > .tree-row { border-color: var(--signal); box-shadow: 0 0 0 2px var(--signal); }
.tree .is-tree-marker { position: relative; height: 0; margin: 0; list-style: none; }
.tree .is-tree-marker::before { content: ""; position: absolute; left: 0; right: 0; top: -.2rem; height: 3px; background: var(--signal); border-radius: 2px; }
.tree .is-tree-marker::after { content: ""; position: absolute; left: -.35rem; top: -.45rem; width: .55rem; height: .55rem; background: var(--paper); border: 3px solid var(--signal); border-radius: 50%; }
.tree-out { margin: .9rem 0 0; padding: .7rem .8rem; max-height: 14rem; overflow: auto; font: 400 .78rem/1.5 var(--mono); background: var(--paper); border: 1px solid var(--line); border-radius: .4rem; white-space: pre-wrap; }
@media (prefers-reduced-motion: reduce) { .tree-toggle svg { transition: none; } }

/* Ajaxer: a name, the last ones. */
.ajaxer-count { font: 600 .85rem/1.4 var(--mono); }
.ajaxer-name { margin: .2rem 0 .6rem; min-height: 1.2em; font: 800 clamp(1.9rem, 4.4vw, 3rem)/1.1 var(--font); letter-spacing: -.02em; }
.ajaxer-name.is-new { animation: ajaxer-name .35s ease-out; }
@keyframes ajaxer-name { from { opacity: .2; transform: translateY(.3rem); } }
[data-demo="ajaxer"].ajaxer-call .ajaxer-name { opacity: .45; }
.ajaxer-history { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 1.9rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.ajaxer-history li { padding: .2rem .6rem; font-size: .85rem; color: var(--soft); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .ajaxer-name.is-new { animation: none; } }

/* The consent panel, as omnibase/consent draws it (a cookie button, a floating panel), in the site's colours. */
.fc { --_size: 2.6rem; position: relative; display: inline-block; vertical-align: middle; }
.fc.is-corner { --fc-gutter: 1rem; position: fixed; left: max(var(--fc-gutter), env(safe-area-inset-left, 0px)); bottom: max(var(--fc-gutter), env(safe-area-inset-bottom, 0px)); z-index: 60; }
/* The demo moves the corner button (data-corner) when the panel follows it. */
.fc.is-corner[data-corner^="top"] { top: max(var(--fc-gutter), env(safe-area-inset-top, 0px)); bottom: auto; }
.fc.is-corner[data-corner$="right"] { right: max(var(--fc-gutter), env(safe-area-inset-right, 0px)); left: auto; }
.fc.is-corner[data-corner$="center"] { left: 50%; translate: -50% 0; }
.fc.is-corner[data-corner="top-left"], .fc.is-corner[data-corner="top-right"], .fc.is-corner[data-corner="top-center"] { z-index: 60; }
body:has(.fc.is-corner[data-corner^="top"]) .site-head { z-index: 50; }
.fc-button { display: inline-grid; place-items: center; width: var(--_size); height: var(--_size); padding: 0; color: var(--ink); background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 50%; box-shadow: 0 .3rem .9rem rgb(0 0 0 / .12); cursor: pointer; transition: background .15s, color .15s; }
.fc-button:hover, .fc-button[aria-expanded="true"] { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.fc-icon { width: 58%; height: 58%; display: block; }
.fc-panel { position: absolute; bottom: calc(100% + .6rem); left: 0; z-index: 70; box-sizing: border-box; width: min(22rem, calc(100vw - 2rem)); padding: 1rem 1.1rem; font-size: .9rem; line-height: 1.5; color: var(--ink); background: var(--sheet); border: 1.5px solid var(--ink); border-radius: .9rem; box-shadow: 0 1rem 2.4rem rgb(0 0 0 / .18); text-align: left; }
.fc-panel[hidden], .fc-panel [hidden] { display: none; }
.fc.is-section .fc-panel { bottom: auto; top: calc(100% + .6rem); }
/* Floating (a first visitor): where the library says - data-cookie-position, --cookie-gap (1.6). */
.fc.is-floating .fc-panel { --g: var(--cookie-gap, 1rem); position: fixed; inset: auto auto var(--g) var(--g); translate: none; }
.fc.is-floating .fc-panel[data-cookie-position^="top"] { top: var(--g); bottom: auto; }
.fc.is-floating .fc-panel[data-cookie-position$="right"] { right: var(--g); left: auto; }
.fc.is-floating .fc-panel[data-cookie-position$="center"] { left: 50%; right: auto; translate: -50% 0; }
/* Next to the floating cookie button it follows (data-cookie-following): past it, aligned with it. */
.fc.is-corner .fc-panel[data-cookie-following] { position: fixed; inset: auto auto var(--cookie-follow-block) var(--cookie-follow-inline); translate: none; }
.fc.is-corner .fc-panel[data-cookie-following][data-cookie-position^="top"] { top: var(--cookie-follow-block); bottom: auto; }
.fc.is-corner .fc-panel[data-cookie-following][data-cookie-position$="right"] { right: var(--cookie-follow-inline); left: auto; }
.fc.is-corner .fc-panel[data-cookie-following][data-cookie-position$="center"] { left: 50%; right: auto; translate: -50% 0; }
.cookie-where { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin: 0 0 1rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: .5rem; }
.cookie-where legend { padding: 0 .3rem; font-weight: 700; font-size: .9rem; }
.cookie-where label { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; }
.cookie-where select { font: inherit; padding: .25rem .4rem; color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-radius: .35rem; }
.cookie-where input[type="range"] { width: 7rem; accent-color: var(--signal); }
.cookie-where output { font: 600 .8rem/1 var(--mono); min-width: 3ch; }
@media (prefers-reduced-motion: no-preference) { .fc-panel:not([hidden]) { animation: fc-in .3s cubic-bezier(.2, .9, .3, 1.1) both; } }
@keyframes fc-in { from { opacity: 0; transform: translateY(.6rem); } }
.fc-panel p { margin: 0 0 .6rem; }
.fc-title { font-weight: 800; font-size: 1rem; }
.fc-text { color: var(--soft); }
.fc-implicit { font-size: .82rem; color: var(--soft); }
.fc-count { display: inline-block; min-width: 1.4ch; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.fc-count.is-tick { animation: fc-tick .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fc-tick { from { transform: scale(1.6); } }
/* Refusing as easy as accepting: the two buttons the same size, the same weight, side by side. */
.fc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.fc-actions button { min-height: 2.4rem; padding: .35rem .6rem; font: 700 .9rem/1.2 var(--font); color: var(--paper); background: var(--ink); border: 1.5px solid var(--ink); border-radius: .5rem; cursor: pointer; }
.fc-actions button:hover { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.fc-more { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .6rem; }
.fc-link { padding: 0; font: inherit; font-size: .85rem; color: var(--soft); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.fc-save { min-height: 2rem; padding: .25rem .8rem; font: 700 .85rem/1.2 var(--font); color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: .5rem; cursor: pointer; }
.fc-categories { display: grid; gap: .75rem; margin: 0 0 .9rem; padding: 0; list-style: none; max-height: min(20rem, 50vh); overflow: auto; overscroll-behavior: contain; }
.fc-category-head { display: grid; grid-template-columns: auto 1fr; gap: .1rem .65rem; align-items: start; cursor: pointer; }
.fc-category-head input { appearance: none; -webkit-appearance: none; position: relative; width: 2.2rem; height: 1.25rem; margin: .1rem 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 1rem; cursor: pointer; transition: background .15s; }
.fc-category-head input::after { content: ""; position: absolute; top: 50%; left: .15rem; width: .85rem; height: .85rem; background: var(--soft); border-radius: 50%; transform: translateY(-50%); transition: left .15s, background .15s; }
.fc-category-head input:checked { background: var(--signal); border-color: var(--signal); }
.fc-category-head input:checked::after { left: calc(100% - 1rem); background: var(--on-signal); }
.fc-category-head input:disabled { cursor: not-allowed; opacity: .6; }
.fc-category-text { display: grid; }
.fc-category-text strong { font-weight: 700; }
.fc-category-text small, .fc-required { font-size: .8rem; color: var(--soft); font-style: normal; }
@media (prefers-reduced-motion: reduce) { .fc-category-head input, .fc-category-head input::after, .fc-button { transition: none; } .fc-count.is-tick { animation: none; } }
.cookie-demo-row { display: flex; align-items: center; gap: .9rem; margin: 0 0 1rem; }
.check { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--signal); }
.cookie-dot-line { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: .92rem; color: var(--soft); }
.cookie-dot-line output { color: var(--ink); font-weight: 600; }
.cookie-dot { flex: none; width: 1.4rem; height: 1.4rem; border: 3px solid var(--ink); border-radius: 50%; background: var(--paper); transition: background .3s, box-shadow .3s; }
.cookie-dot.is-on { background: var(--signal); box-shadow: 0 0 0 .4rem var(--mark); }
@media (prefers-reduced-motion: reduce) { .cookie-dot { transition: none; } }

.demo-grid.is-code { align-items: start; }
.demo-grid.is-code .doc-code { margin: 1rem 0 0; }
