/* fonts/fonts.css */
/* Caprasimo and Figtree, served by this site rather than by Google Fonts (#196).
 *
 * The design system's stylesheet used to @import them from fonts.googleapis.com, so every
 * page view sent the visitor's IP address and user-agent to Google, analytics consent or not,
 * and softon.dev/privacy had to say so. These are the same files Google served for the same
 * request -- the latin and latin-ext subsets of Caprasimo 400 and of Figtree, one variable font
 * covering its 400, 600 and 700 -- declared exactly as Google's stylesheet declared them, with
 * the URLs pointed here. Both are under the SIL Open Font License 1.1, whose text and each
 * font's copyright line are beside them: OFL-Caprasimo.txt and OFL-Figtree.txt.
 *
 * Each url carries ?v= and the first eight hex digits of the file's sha256, so the site's
 * static handler can cache it as immutable and a changed file is a new URL. fonts_test.go
 * fails if a file changes without its query. */

/* latin-ext */
@font-face {
  font-family: 'Caprasimo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/caprasimo-latin-ext.woff2?v=8cbef7cd) 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Caprasimo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/caprasimo-latin.woff2?v=8be0594f) 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;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/figtree-latin-ext.woff2?v=f153aa07) 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/figtree-latin.woff2?v=8330490a) 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;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/figtree-latin-ext.woff2?v=f153aa07) 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/figtree-latin.woff2?v=8330490a) 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;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/figtree-latin-ext.woff2?v=f153aa07) 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/figtree-latin.woff2?v=8330490a) 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;
}
/* ds/styles.css */
/* softon.dev — Fieldwork: warm paper, precise type and a signal-orange accent. */
:root {
  color-scheme: light;
  --color-bg: #f8f7f3;
  --color-surface: #ffffff;
  --color-text: #252620;
  --color-accent: #bd4323;
  --color-accent-2: #bd4323;
  --color-divider: #deded4;

  --color-neutral-100: #f1f0e9;
  --color-neutral-200: #e9e8de;
  --color-neutral-300: #d7d8cc;
  --color-neutral-400: #b7baab;
  --color-neutral-500: #858a79;
  --color-neutral-600: #6b705f;
  --color-neutral-700: #5c6152;
  --color-neutral-800: #3b4034;
  --color-neutral-900: #20271e;

  --color-accent-100: #fcf0e9;
  --color-accent-200: #f8dfce;
  --color-accent-300: #edb28d;
  --color-accent-400: #e88c60;
  --color-accent-500: #d9693f;
  --color-accent-600: #a83b1e;
  --color-accent-700: #a03a20;
  --color-accent-800: #823019;
  --color-accent-900: #5f2516;

  --color-accent-2-100: #fcf0e9;
  --color-accent-2-200: #f8dfce;
  --color-accent-2-300: #edb28d;
  --color-accent-2-400: #e88c60;
  --color-accent-2-500: #d9693f;
  --color-accent-2-600: #a83b1e;
  --color-accent-2-700: #a03a20;
  --color-accent-2-800: #823019;
  --color-accent-2-900: #5f2516;

  --font-heading: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading-weight: 650;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 4px #25262004;
  --shadow-md: 0 8px 30px #25262008;
  --shadow-lg: 0 24px 64px #25262012;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font: 400 15px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); line-height: 1.2; letter-spacing: -.035em; margin: 0 0 var(--space-2); }
h1 { font-size: 42px; } h2 { font-size: 32px; } h3 { font-size: 24px; } h4 { font-size: 20px; } h5 { font-size: 16px; } h6 { font-size: 13px; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent-700); text-underline-offset: 4px; }
a:hover { color: var(--color-accent-800); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption, .text-muted { color: var(--color-neutral-700); }
figcaption { font-size: 12px; margin-top: var(--space-2); }
:focus-visible { outline: 3px solid var(--color-accent-500); outline-offset: 4px; }
::selection { background: var(--color-accent-200); color: var(--color-accent-900); }
.hr { height: 1px; border: 0; margin: var(--space-6) 0; background: var(--color-divider); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius-sm); font: 600 14px/1.4 var(--font-body); text-decoration: none; cursor: pointer; color: var(--color-text); background: transparent; transition: background .16s, border-color .16s, box-shadow .16s, transform .16s; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: 0 1px 2px #073d361a, inset 0 1px 0 #ffffff14; }
.btn-primary:hover { background: var(--color-accent-600); color: #fff; }
.btn-primary:active { background: var(--color-accent-800); }
.btn-secondary { border-color: var(--color-divider); background: var(--color-surface); }
.btn-secondary:hover { background: var(--color-neutral-100); border-color: var(--color-neutral-400); color: var(--color-text); }
.btn-ghost { color: var(--color-neutral-700); }
.btn-ghost:hover { background: var(--color-neutral-100); color: var(--color-text); }
.btn-icon { width: 42px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); }

.field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--color-neutral-300); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); font: 400 14px/1.5 var(--font-body); caret-color: var(--color-accent); transition: border-color .16s, box-shadow .16s; }
.input::placeholder { color: var(--color-neutral-600); opacity: 1; }
.input:hover { border-color: var(--color-neutral-400); }
.input:focus-visible { outline: 0; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-100); }
textarea.input { min-height: 100px; resize: vertical; border-radius: var(--radius-sm); }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio .dot { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--color-neutral-400); }
.radio input:checked + .dot { border-color: var(--color-accent); background: var(--color-accent); box-shadow: inset 0 0 0 4px var(--color-bg); }
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--color-divider); border-radius: var(--radius-sm); }
.seg-opt { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 13px; cursor: pointer; }
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent-100); color: var(--color-accent-800); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

.card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.card-kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-700); }
.card-title { font: 600 18px/1.3 var(--font-heading); letter-spacing: -.025em; }
.card-body { margin: 0; font-size: 14px; color: var(--color-neutral-700); flex: 1; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-neutral-700); }
.elev-sm { box-shadow: var(--shadow-sm); } .elev-md { box-shadow: var(--shadow-md); } .elev-lg { box-shadow: var(--shadow-lg); }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1.5 var(--font-body); padding: 3px 9px; border-radius: 5px; letter-spacing: .01em; }
.tag-accent, .tag-accent-2 { background: var(--color-accent-100); color: var(--color-accent-700); }
.tag-neutral { background: var(--color-neutral-200); color: var(--color-neutral-700); }
.tag-outline { border: 1px solid var(--color-divider); color: var(--color-neutral-700); }

/* One responsive header. The native checkbox keeps its menu usable without JavaScript. */
.nav { position: relative; z-index: 30; display: flex; align-items: center; gap: 28px; min-height: 88px; padding: 18px max(32px, calc((100% - 1280px) / 2)); background: var(--color-bg); border-bottom: 1px solid var(--color-divider); }
.nav a { text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--color-neutral-700); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-accent-700); }
.nav a.nav-brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; font: 750 26px/1 var(--font-heading); letter-spacing: -.055em; color: var(--color-text); }
.nav-brand > span > span { color: var(--color-neutral-600); font-weight: 400; }
.brand-symbol { width: 30px; height: 30px; color: var(--color-accent); flex: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav .nav-links .btn-primary { color: #fff; font-size: 12px; }
.nav .nav-signin { margin-left: 20px; color: var(--color-text); }
.nav .docsearch { flex: 1; max-width: 320px; margin: 0; }
.nav .docsearch .input { min-height: 38px; background: var(--color-neutral-100); font-size: 12px; }
.nav-toggle, .nav-toggle-label { display: none; }
.nav-toggle-label { margin: 0; }
.nav .inline { margin: 0; }
.nav .link { border: 0; padding: 6px 0; background: transparent; color: var(--color-neutral-700); font: 600 13px var(--font-body); cursor: pointer; }
.skip-link { position: absolute; left: 24px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--color-text); color: #fff; border-radius: 6px; }
.skip-link:focus { top: 12px; }
@media (max-width: 1100px) {
  .nav { gap: 20px; padding-inline: 24px; }
  .nav-links { gap: 20px; }
  .nav .docsearch { max-width: 240px; }
  .nav .nav-signin { margin-left: 0; }
}
@media (max-width: 960px) {
  .nav { flex-wrap: wrap; min-height: 72px; gap: 12px; padding: 16px 24px; }
  .nav .docsearch { margin-left: auto; }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
  .nav-toggle-label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--color-divider); border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; }
  .nav-toggle-label svg { width: 16px; height: 16px; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--color-accent-500); outline-offset: 3px; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 12px; border-top: 1px solid var(--color-divider); }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links > a, .nav-links .inline { padding: 10px 4px; }
  .nav .nav-links .btn { margin-top: 8px; padding: 12px 18px; }
}
@media (max-width: 560px) { .nav { padding-inline: 20px; } .nav .docsearch { display: none; } }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--color-divider); background: var(--color-neutral-100); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; color: var(--color-neutral-700); }
.table td { padding: 15px 16px; border-bottom: 1px solid var(--color-divider); vertical-align: top; }
.table tbody tr:hover { background: var(--color-neutral-100); }
.dialog-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: #17232466; }
.dialog { width: min(440px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.dialog-title { font: 600 22px var(--font-heading); }
.dialog-body { font-size: 14px; color: var(--color-neutral-700); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Shared keyboard entry point; keep its target visible below a sticky header. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 560px) { .input { font-size: 16px; } }
/* docs.css */
/* Reference and editorial pages. Shared Fieldwork tokens, independent layouts. */
:root { --leading: 28px; --edge: clamp(20px, 3vw, 40px); --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
body { text-wrap: pretty; }
.nav { position: sticky; top: 0; z-index: 30; min-height: 84px; padding-inline: max(28px, calc((100% - 1424px) / 2)); }
.nav .docsearch { max-width: 280px; }
.nav .docsearch .input { background: transparent; min-height: 40px; }
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr) 170px; gap: 0 44px; max-width: 1480px; margin: 0 auto; padding-inline: var(--edge); align-items: start; }
.side { position: sticky; top: 84px; height: calc(100vh - 84px); overflow-y: auto; padding: 32px 24px 48px 0; border-right: 1px solid var(--color-divider); scrollbar-width: thin; scrollbar-color: var(--color-neutral-300) transparent; }
.switch-wrap { position: relative; }
.switch-wrap > summary { list-style: none; }
.switch-wrap > summary::-webkit-details-marker { display: none; }
.switch { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--color-neutral-300); border-radius: 9px; background: var(--color-surface); box-shadow: var(--shadow-sm); cursor: pointer; }
.switch .lbl { display: block; margin-bottom: 6px; color: var(--color-neutral-600); font: 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.switch .val { font: 600 15px/1.4 var(--font-heading); }
.switch .caret { margin-left: auto; color: var(--color-accent); font-size: 12px; transition: transform .15s; }
.switch-wrap[open] .caret { transform: rotate(180deg); }
.switch-menu { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 8px 0 0; padding: 6px; border: 1px solid var(--color-divider); border-radius: 9px; background: var(--color-surface); }
.switch-menu a { display: block; padding: 8px 10px; border-radius: 5px; color: var(--color-neutral-700); font-size: 13px; text-decoration: none; }
.switch-menu a:hover, .switch-menu a[aria-current="page"], .switch-menu [aria-selected="true"] a { background: var(--color-accent-100); color: var(--color-accent-700); }
.tree { margin-top: 30px; }
.tree h4 { margin: 28px 0 12px; color: var(--color-neutral-600); font: 10px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.tree h4:first-child { margin-top: 0; }
.tree ul { display: flex; flex-direction: column; gap: 3px; list-style: none; margin: 0; padding: 0; }
.tree a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px; color: var(--color-neutral-700); font-size: 13px; line-height: 1.45; text-decoration: none; }
.tree a:hover { color: var(--color-text); background: var(--color-neutral-200); }
.tree a[aria-current="page"] { color: var(--color-accent-700); background: var(--color-accent-100); box-shadow: inset 2px 0 var(--color-accent); font-weight: 600; }
.tree .m { min-width: 2.6em; color: var(--color-accent-700); font: 600 9px var(--mono); }
.tree .soon, .toc .soon { display: block; padding: 9px 10px; color: var(--color-neutral-700); font-size: 12px; cursor: default; }
.tree .soon::after, .toc .soon::after { content: " soon"; display: inline-block; margin-left: 6px; padding: 1px 4px; border: 1px solid var(--color-divider); border-radius: 3px; font: 8px/1.6 var(--mono); text-transform: uppercase; }
main { min-width: 0; padding: 44px 0 88px; }
.crumbs { margin: 0 0 20px; color: var(--color-neutral-600); font: 11px/1.7 var(--mono); }
.crumbs a { color: inherit; text-decoration: none; }
h1.doc { margin: 0; font-size: clamp(36px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.05em; font-weight: 650; }
.lede { max-width: 62ch; margin: 24px 0 0; color: var(--color-neutral-700); font-size: 16px; line-height: 1.9; }
h2.doc { margin: 48px 0 16px; padding-top: 8px; font-size: 28px; line-height: 1.25; letter-spacing: -.035em; }
h3.doc { margin: 32px 0 12px; font-size: 20px; line-height: 1.35; letter-spacing: -.025em; }
p.doc, li.doc { max-width: 70ch; color: var(--color-neutral-700); font-size: 15px; line-height: 1.9; }
p.doc { margin-bottom: 16px; }
.doc-list { padding-left: 20px; }
code { padding: 2px 5px; border-radius: 4px; background: var(--color-neutral-200); font: .85em var(--mono); }
.doc code, .lede code { overflow-wrap: anywhere; }
.endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; padding: 15px 18px; border: 1px solid var(--color-neutral-300); border-radius: 9px; background: var(--color-surface); }
.endpoint .verb { padding: 4px 8px; border: 1px solid #d6e0cc; border-radius: 5px; background: #eef3e8; color: #43622e; font: 600 10px var(--mono); letter-spacing: .04em; }
.endpoint .path { min-width: 0; overflow-wrap: anywhere; font: 12px/1.7 var(--mono); }
.endpoint .copy { margin-left: auto; min-height: 30px; padding: 5px 8px; color: var(--color-neutral-700); font-size: 11px; text-decoration: none; }
.endpoint .status-note { margin-left: auto; color: var(--color-neutral-600); font: 10px var(--mono); }
.tbl-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--color-divider); border-radius: 10px; background: var(--color-surface); scrollbar-width: thin; }
.table { font-size: 13px; }
.table th { padding: 14px 16px; background: var(--color-neutral-100); font: 500 10px/1.6 var(--mono); }
.table td { padding: 15px 16px; line-height: 1.8; color: var(--color-neutral-700); }
.table td:first-child { color: var(--color-text); }
.table tr:last-child td { border-bottom: 0; }
.table code { background: var(--color-bg); font-size: 11px; overflow-wrap: anywhere; }
.table td:first-child code { white-space: nowrap; overflow-wrap: normal; }
.table .req { color: var(--color-accent-700); font: 600 9px var(--mono); text-transform: uppercase; }
.code { position: relative; overflow: hidden; margin-top: 20px; border: 1px solid #41493a; border-radius: 10px; background: var(--color-neutral-900); box-shadow: var(--shadow-sm); }
.code-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 60px 0 10px; border-bottom: 1px solid #ffffff18; }
.code-tab { position: relative; padding: 11px 12px; border: 0; border-radius: 0; background: transparent; color: #bac7b0; font: 400 11px/1.5 var(--font-body); cursor: pointer; }
.code-tab[aria-selected="true"] { color: #fff; }
.code-tab[aria-selected="true"]::after { content: ""; position: absolute; bottom: -1px; left: 12px; right: 12px; height: 2px; background: #edb28d; }
.code-tab:hover { color: #fff; }
.code pre { overflow-x: auto; margin: 0; padding: 24px; color: #e0e7d9; font: 12px/1.9 var(--mono); }
.code .c { color: #aebda2; } .code .k { color: #c4d5b5; } .code .s { color: #edb28d; }
.code-copy { position: absolute; top: 13px; right: 12px; padding: 5px 8px; border: 1px solid #ffffff24; border-radius: 4px; background: transparent; color: #c2ccba; font: 10px var(--font-body); cursor: pointer; }
.code-copy:hover { background: #ffffff12; color: #fff; }
.tryit { margin-top: 32px; padding: 28px; border: 1px solid var(--color-neutral-300); border-radius: 12px; background: var(--color-neutral-100); }
.tryit h3 { margin-bottom: 16px; font-size: 21px; font-weight: 600; }
.try-explanation { margin-bottom: 20px; color: var(--color-neutral-700); font-size: 13px; line-height: 1.8; }
.tryit form { margin: 0; }
.tryit .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tryit .try-query { flex: 1 1 240px; }
.tryit .out { overflow-x: auto; margin: 18px 0 0; padding: 20px; border-radius: 8px; background: var(--color-neutral-900); color: #e0e7d9; font: 11px/1.9 var(--mono); }
.tryit .status { color: #43622e; font: 11px var(--mono); }
.tryit .try-meta, .tryit .try-note { display: block; font: 11px/1.8 var(--mono); }
.tryit .try-meta { color: #edb28d; }
.tryit .try-note { color: #bac7b0; margin-bottom: 10px; }
#try-out.htmx-request { opacity: .55; }
.anno { max-width: 74ch; padding: 22px 26px; margin-top: 28px; border: 1px solid var(--color-accent-200); border-left: 3px solid var(--color-accent); border-radius: 8px; background: var(--color-accent-100); }
.anno b { display: block; margin-bottom: 6px; color: var(--color-accent-800); font-weight: 600; }
.anno p, .anno ul { margin: 0; color: var(--color-neutral-700); font-size: 14px; line-height: 1.85; }
.anno ul { margin-top: 10px; padding-left: 20px; }
.toc { position: sticky; top: 84px; padding-top: 46px; }
.toc h2 { margin: 0 0 16px; color: var(--color-neutral-600); font: 10px/1.6 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.toc ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--color-divider); list-style: none; }
.toc a { display: block; color: var(--color-neutral-700); font-size: 12px; line-height: 1.7; text-decoration: none; }
.toc a:hover, .toc a[aria-current="location"] { color: var(--color-accent); }
.toc h2.toc-actions { margin-top: 32px; }
.toc .soon { padding: 0; font-size: 12px; }
.pager { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; margin-top: 44px; border-top: 1px solid var(--color-divider); }
.pager .btn { max-width: 100%; white-space: normal; text-align: left; font-size: 12px; }
.docs-tree-toggle, .docs-tree-label, .docs-mobile-search { display: none; }
/* Editorial pages have a generous reading column and their own contents rail. */
.shell-prose { grid-template-columns: minmax(0, 1fr) 170px; gap: 80px; max-width: 1120px; }
.shell-prose main { padding-top: 72px; }
.shell-prose h1.doc { font-size: clamp(38px, 4.3vw, 58px); letter-spacing: -.055em; }
.shell-prose .lede { margin-bottom: 30px; font-size: 18px; }
.shell-prose .toc { padding-top: 74px; }
.shell-prose .post-meta { margin-top: 22px; }
.shell-solo { grid-template-columns: minmax(0, 1fr); max-width: 960px; }
.shell-solo main { padding-top: 76px; }
.shell-solo h1.doc { font-size: clamp(44px, 5vw, 68px); }
.post-meta { margin: 0 0 16px; color: var(--color-neutral-600); font: 10px/1.8 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.post-index { margin: 40px 0 0; padding: 0; list-style: none; counter-reset: posts; }
.post-index > li { position: relative; padding: 36px 34px 36px 70px; border-top: 1px solid var(--color-divider); counter-increment: posts; transition: background .2s; }
.post-index > li::before { content: "0" counter(posts); position: absolute; left: 0; top: 38px; color: var(--color-accent); font: 12px var(--mono); }
.post-index > li:hover { background: var(--color-neutral-100); }
.post-index h2.doc { margin: 0 0 16px; padding: 0; font-size: 30px; }
.post-index h2.doc a { color: var(--color-text); text-decoration: none; }
.post-index h2.doc a::after { content: " ↗"; color: var(--color-accent); font-size: .7em; }
.post-index h2.doc a:hover { color: var(--color-accent); }
.post-index p.doc { margin-bottom: 0; }
.post-list { margin: 20px 0 0; padding-left: 20px; }
.post-list > li { margin-bottom: 12px; }
.post-list + p.doc { margin-top: 20px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.post-quote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--color-accent); }
.post-quote p:last-child { margin-bottom: 0; }
.post-pre { margin: 0; padding: 24px; color: #e0e7d9; font: 12px/1.9 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.post code, .post-index code { padding: 2px 5px; border-radius: 4px; background: var(--color-neutral-200); font: .85em var(--mono); }
.post .code code { padding: 0; background: none; }
.post .tbl-wrap { margin-top: 28px; }
@media (max-width: 1200px) {
  .shell { grid-template-columns: 220px minmax(0, 1fr); gap: 30px; }
  .toc { display: none; }
  .shell-prose, .shell-solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
  .nav .docsearch { max-width: 220px; }
}
@media (max-width: 960px) { .nav .docsearch { margin-left: auto; max-width: 320px; } }
@media (max-width: 820px) {
  .shell { display: block; padding-inline: 24px; }
  .side { position: static; height: auto; padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--color-divider); }
  .docs-tree-toggle { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; }
  .docs-tree-label { display: flex; align-items: center; justify-content: space-between; min-height: 38px; font-size: 13px; font-weight: 600; cursor: pointer; }
  .docs-tree-label span { color: var(--color-accent); }
  .docs-tree-toggle:focus-visible + .docs-tree-label { outline: 3px solid var(--color-accent-500); outline-offset: 3px; }
  .docs-sidebar-body { display: none; padding: 20px 0 8px; }
  .docs-tree-toggle:checked ~ .docs-sidebar-body { display: block; }
  .docs-mobile-search { display: flex; gap: 8px; margin-bottom: 20px; }
  .docs-mobile-search .input { min-width: 0; font-size: 16px; }
  .docs-mobile-search .btn { font-size: 12px; }
  main { padding-top: 32px; }
  .shell-prose main, .shell-solo main { padding-top: 42px; }
  h1.doc { font-size: 38px; }
}
@media (max-width: 560px) {
  .nav { padding-inline: 20px; }
  .nav .docsearch { display: none; }
  .shell { padding-inline: 22px; }
  h1.doc { font-size: 36px; }
  h2.doc { font-size: 26px; }
  .lede { font-size: 15px; line-height: 1.85; }
  .shell-prose .lede { font-size: 16px; }
  p.doc, li.doc { font-size: 14px; }
  .endpoint { padding: 13px; gap: 8px; }
  .endpoint .path { flex: 1; font-size: 10px; }
  .endpoint .copy { margin-left: 0; }
  .table { min-width: 440px; font-size: 12px; }
  .table td, .table th { padding: 12px; }
  .tryit { padding: 20px; }
  .code pre, .post-pre { padding: 20px 16px; font-size: 11px; }
  .post-index > li { padding: 28px 0 28px 36px; }
  .post-index > li::before { top: 31px; font-size: 10px; }
  .post-index h2.doc { font-size: 25px; }
}
.docs-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; max-width: 1400px; margin-inline: auto; padding: 28px var(--edge); border-top: 1px solid var(--color-divider); color: var(--color-neutral-700); }
.docs-footer-brand { color: var(--color-text); font-size: 22px; font-weight: 700; letter-spacing: -.055em; text-decoration: none; }
.docs-footer-brand span { color: var(--color-neutral-600); font-weight: 400; }
.docs-footer > span { font-size: 11px; }
.docs-footer > div { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
.docs-footer > div a { color: var(--color-neutral-700); font-size: 11px; text-decoration: none; }
.docs-footer > div a:hover { color: var(--color-accent); }
@media (max-width: 600px) { .docs-footer { gap: 18px; } .docs-footer > div { width: 100%; margin-left: 0; gap: 20px; } }
