/* Copied from docs-web/shell/docs.css by tool/site/docs_build.mjs: edit that one. */
/* Routr's docs family: help.goroutr.com, goroutr.com/guides and developer.goroutr.com, in the manner of Paddle's docs
   (docs/design/website/docs-style.html, decided 24 November 2026). One copy, in docs-web/shell/; tool/site/docs_build.mjs
   copies it to each site. Routr's own tokens (tracking-web/public/site/site.css, design-tokens/colors.json): warm paper and ink,
   Plus Jakarta Sans to read, Bricolage Grotesque for a page's title, IBM Plex Mono for code, amber only on the one go
   button. Hairlines, tonal steps, no shadows but the floating search and sheets, and never a stripe down one side. */

:root {
  --canvas: #F5F3EE; --surface: #FFFFFF; --muted: #F0EDE6; --line: #E4E0D7; --line2: #D3CDC1;
  --rail: #EFECE5; --soft: rgb(21 19 15 / .055); --soft2: rgb(21 19 15 / .085);
  --ink: #15130F; --body: #2A2721; --ink2: #5E594F; --ink3: #8F897D;
  --accent: #E8B23E; --on-accent: #15130F;
  --code: #FFFFFF; --code-ink: #2A2721; --kw: #8A5A00; --str: #3E6B1F; --num: #6E4AA8;
  --float: 0 24px 64px -16px rgb(21 19 15 / .28), 0 0 0 1px rgb(21 19 15 / .06);
  --top: 60px; --railw: 76px; --menuw: 260px; --box: #15130F; --mark-edge: transparent;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --canvas: #0E0D0B; --surface: #191714; --muted: #24211C; --line: #2B2721; --line2: #3E3A32;
  --rail: #121110; --soft: rgb(244 241 234 / .06); --soft2: rgb(244 241 234 / .1);
  --ink: #F4F1EA; --body: #DAD5CB; --ink2: #A8A296; --ink3: #7A7469;
  --accent: #F2C658; --on-accent: #15130F;
  --code: #151311; --code-ink: #DAD5CB; --kw: #E8B95A; --str: #A6CF7E; --num: #C3A6F2;
  --float: 0 24px 64px -16px rgb(0 0 0 / .7), 0 0 0 1px rgb(244 241 234 / .08);
  --box: #8F897D; --mark-edge: #3E3A32;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 24px); }
body { margin: 0; background: var(--canvas); color: var(--body); font: 500 16px/1.6 "Plus Jakarta Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.i { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: -.125em; }
.mono, code, kbd, pre { font-family: "IBM Plex Mono", ui-monospace, monospace; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ── The top bar ─────────────────────────────────────────────────────── */
.dt { position: sticky; top: 0; z-index: 40; height: var(--top); display: grid; grid-template-columns: calc(var(--railw) + var(--menuw)) 1fr auto; align-items: center; background: var(--canvas); border-bottom: 1px solid var(--line); }
.dt .l { display: flex; align-items: center; gap: 12px; padding-left: 22px; min-width: 0; }
.dt .l .pick { margin-left: 8px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font: 800 21px/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.04em; }
.brand svg { width: 30px; height: 30px; }
.dt .sep { width: 1px; height: 22px; background: var(--line); }
.pick { height: 36px; display: inline-flex; align-items: center; gap: 9px; padding: 0 10px 0 11px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.pick .i { font-size: 17px; color: var(--ink2); }
.pick .i.c { font-size: 13px; color: var(--ink3); margin-left: 2px; }
.pick:hover, .pick.on { background: var(--soft); }
.dt .c { display: flex; justify-content: center; }
.find { width: 380px; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 13px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink3); font-size: 14.5px; background: var(--surface); text-align: left; }
.find .i { font-size: 17px; color: var(--ink2); }
.find span { flex: 1; }
kbd { font-size: 11.5px; font-weight: 600; color: var(--ink2); padding: 2px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); background: var(--canvas); }
.dt .r { display: flex; align-items: center; gap: 8px; padding-right: 22px; }
.ib { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--ink2); font-size: 19px; }
.ib:hover { background: var(--soft); color: var(--ink); }
.go { height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.only-phone { display: none !important; }

/* The product picker's menu. */
.pmenu { position: fixed; top: calc(var(--top) - 6px); left: 140px; z-index: 60; width: 300px; padding: 6px; border-radius: 14px; background: var(--surface); box-shadow: var(--float); display: none; }
.pmenu.open { display: block; }
.pmenu button { width: 100%; display: grid; grid-template-columns: 36px 1fr 18px; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; text-align: left; }
.pmenu button:hover, .pmenu button.on { background: var(--soft); }
.pmenu .pi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pmenu b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.pmenu small { display: block; font-size: 13px; color: var(--ink3); }
.pmenu .ck { font-size: 16px; color: var(--ink); visibility: hidden; }
.pmenu button.on .ck { visibility: visible; }
.pmenu p { margin: 4px 8px 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink3); }

/* ── The shell: rail, menu, page ─────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--railw) var(--menuw) minmax(0, 1fr); }
.folded .shell { grid-template-columns: var(--railw) minmax(0, 1fr); }
.folded .shell > .menu { display: none; }
.rail { position: sticky; top: var(--top); height: calc(100vh - var(--top)); background: var(--rail); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0; }
.rail a { width: 60px; display: grid; justify-items: center; gap: 5px; padding: 6px 0 7px; text-decoration: none; color: var(--ink3); font-size: 11px; font-weight: 600; letter-spacing: .01em; border-radius: 12px; }
.rail a span.box { width: 40px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-size: 21px; color: var(--ink2); }
.rail a:hover span.box { background: var(--soft); color: var(--ink); }
.rail a.on { color: var(--ink); }
.rail a.on span.box { background: var(--ink); color: var(--canvas); }
.rail .fold { margin-top: auto; width: 60px; display: grid; justify-items: center; padding: 6px 0 7px; border-radius: 12px; }
.rail .fold span.box { width: 40px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-size: 21px; color: var(--ink3); }
.rail .fold:hover span.box { background: var(--soft); color: var(--ink); }

.menu { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; border-right: 1px solid var(--line); padding: 22px 14px 40px; scrollbar-width: thin; }
.menu .mh { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 2px; font-size: 15px; font-weight: 700; color: var(--ink); }
.menu .mh .v { font: 600 11.5px/1 "IBM Plex Mono", monospace; color: var(--ink2); padding: 4px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.menu .for { margin: 6px 10px 0; font-size: 12.5px; color: var(--ink3); }
.menu .for button { font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.menu h4 { margin: 22px 10px 6px; font: 700 11.5px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.menu .grp + .grp:not(:has(h4)) { margin-top: 18px; }
.menu a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14.5px; line-height: 1.35; color: var(--ink2); text-decoration: none; }
.menu a:hover { color: var(--ink); background: var(--soft); }
.menu a.on { background: var(--soft2); color: var(--ink); font-weight: 600; }
.menu .sub { margin: 2px 0 6px 10px; padding-left: 10px; }
.menu .sub a { font-size: 13.5px; padding: 4px 10px; color: var(--ink3); }
.menu .sub a.here { color: var(--ink); font-weight: 600; }
.menu .gone { display: none; }

.page { min-width: 0; padding: 44px 56px 0; display: grid; grid-template-columns: minmax(0, 680px) 240px; justify-content: space-between; column-gap: 56px; align-items: start; }
.page.api { padding-left: 44px; padding-right: 40px; grid-template-columns: minmax(0, 1fr) 420px; column-gap: 48px; }
.dt .site { font-size: 15px; font-weight: 600; color: var(--ink2); white-space: nowrap; text-decoration: none; }
.dt .site:hover { color: var(--ink); }
[data-noside] .page { grid-template-columns: minmax(0, 1000px); justify-content: start; }
.page > main { min-width: 0; }

/* ── The reading column ──────────────────────────────────────────────── */
.crumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13.5px; color: var(--ink3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .i { font-size: 11px; }
h1.t { margin: 0; font: 700 42px/1.08 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.where { margin: 20px 0 0; display: grid; gap: 7px; font-size: 14.5px; color: var(--ink2); }
.where div { display: flex; align-items: center; gap: 9px; }
.where .i { font-size: 17px; color: var(--ink3); }
.where b { color: var(--ink); font-weight: 600; }
.head-rule { height: 1px; background: var(--line); margin: 30px 0 4px; }
.prose { font-size: 17px; line-height: 1.72; color: var(--body); }
.prose p { margin: 18px 0; text-wrap: pretty; }
.prose h2 { margin: 52px 0 6px; font: 700 22px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: -.015em; color: var(--ink); scroll-margin-top: calc(var(--top) + 24px); }
.prose h3 { margin: 30px 0 4px; font: 700 17px/1.4 "Plus Jakarta Sans", sans-serif; color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line2); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose b { color: var(--ink); font-weight: 650; }
.prose ul { padding-left: 22px; margin: 14px 0; }
.prose ul li { margin: 8px 0; padding-left: 4px; }
.prose ul li::marker { color: var(--ink3); }
.prose code { font-size: .84em; font-weight: 600; color: var(--ink); background: var(--muted); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }

/* Code, tables and endpoint headings in the reading column (the API's pages). */
.prose pre { margin: 18px 0; padding: 14px 16px; border-radius: 12px; background: var(--code); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; }
.prose pre code { background: none; padding: 0; font-size: 13px; line-height: 1.65; font-weight: 500; color: var(--code-ink); white-space: pre; }
.prose h2 code { font-size: .8em; background: none; padding: 0; white-space: normal; letter-spacing: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; line-height: 1.55; }
.prose th { text-align: left; font: 700 11.5px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line2); }
.prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
.prose .fields .f { font-size: 15px; }

/* Steps: a number in a hairline ring, then the step. */
.steps { list-style: none; padding: 0; margin: 18px 0; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin: 0 0 16px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line2); display: grid; place-items: center; font: 600 12.5px/1 "IBM Plex Mono", monospace; color: var(--ink); }

/* Which product's steps: a capsule switch, remembered with the top bar's picker. */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--muted); margin: 14px 0 4px; }
.tabs button { height: 34px; padding: 0 14px 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.tabs button .i { font-size: 16px; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(21 19 15 / .08), 0 0 0 1px var(--line); }
/* Without JavaScript both products' steps show, one after the other, and the switch hides. */
.js [data-for]:not(.on) { display: none; }
html:not(.js) [data-tabs] { display: none; }
/* The menu the build writes into each page waits for docs.js, which moves it into the shell. */
.js body > nav.menu { display: none; }
html:not(.js) body > nav.menu { padding: 16px; border-bottom: 1px solid var(--line); }
.tabs + .tabnote { margin: 4px 0 0; font-size: 13px; color: var(--ink3); }

/* A quiet note: a tonal box, an icon, no stripe. */
.note { display: grid; grid-template-columns: 20px 1fr; gap: 12px; margin: 24px 0; padding: 14px 16px; border-radius: 12px; background: var(--muted); font-size: 15.5px; line-height: 1.6; color: var(--ink2); }
.note .i { font-size: 19px; color: var(--ink2); margin-top: 2px; }
.note b { color: var(--ink); }
.note p { margin: 0; }
.note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.note a:hover { text-decoration-color: var(--ink); }

/* A drawing in the page: thin boxes and arrows, as HTML so it stacks on a phone. */
.flow { margin: 26px 0 8px; display: flex; align-items: stretch; gap: 0; }
.flow .bx { flex: 1; min-width: 0; padding: 12px 12px 13px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--box); font-size: 13.5px; line-height: 1.35; color: var(--ink); font-weight: 600; }
.flow .bx small { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--ink2); }
.flow .bx .mono { font-size: 12px; font-weight: 600; }
.flow .bx.quiet { box-shadow: inset 0 0 0 1px var(--line2); background: transparent; }
.flow .ar { flex: 0 0 26px; display: grid; place-items: center; color: var(--box); }
.flow .ar svg { width: 26px; height: 10px; overflow: visible; }
.flow-below { display: grid; grid-template-columns: 1fr 26px 1fr 26px 1fr 26px 1fr 26px 1fr; margin: 0 0 22px; }
.flow-below .drop { display: flex; flex-direction: column; align-items: center; color: var(--ink2); }
.flow-below .drop svg { width: 10px; height: 30px; }
.flow-below .drop span { white-space: nowrap; font-size: 13px; color: var(--ink2); padding: 6px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line2); }
.figcap { font-size: 13px; color: var(--ink3); margin: 0 0 8px; }

/* A sample table drawn in the page. */
.sheet { margin: 22px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; }
.sheet td:nth-child(3), .sheet td:nth-child(4), .sheet td:nth-child(5) { white-space: nowrap; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th { text-align: left; font: 600 12.5px/1.2 "IBM Plex Mono", monospace; color: var(--ink); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--muted); }
.sheet td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--body); vertical-align: top; }
.sheet tr:last-child td { border-bottom: 0; }
.sheet .n { color: var(--ink3); font: 600 12px/1 "IBM Plex Mono", monospace; width: 28px; }

/* The end of a page: previous and next, then a line to write in. */
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 64px 0 0; }
.pn a { display: block; padding: 16px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.pn a:hover { background: var(--soft); }
.pn small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink3); }
.pn b { display: block; margin-top: 4px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.pn a.next { text-align: right; }
.pn a.next small { justify-content: flex-end; }
.ask { margin: 22px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14.5px; color: var(--ink2); }
.ask button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--muted); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ask button .i { font-size: 16px; }

/* ── The right column: on this page, related pages ───────────────────── */
.side { position: sticky; top: calc(var(--top) + 40px); padding-top: 4px; font-size: 14px; }
.side h5 { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.side ol, .side ul { list-style: none; margin: 0; padding: 0; }
.side li a { display: block; padding: 5px 0; color: var(--ink3); text-decoration: none; line-height: 1.4; }
.side li a:hover { color: var(--ink); }
.side li a.here { color: var(--ink); font-weight: 600; }
.side .rel { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.side .rel:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.side .rel a { display: flex; align-items: baseline; gap: 8px; }
.side .rel a em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink3); padding: 1px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }

/* ── The footer: Home's, word for word ───────────────────────────────── */
.foot { grid-column: 1 / -1; margin-top: 88px; padding: 26px 0 34px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink2); }
.foot .brand { font-size: 17px; gap: 7px; }
.foot .brand svg { width: 22px; height: 22px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot small { margin-left: auto; margin-right: 56px; font-size: 13px; color: var(--ink3); }


/* ── Search ───────────────────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgb(21 19 15 / .28); display: none; }
:root[data-theme="dark"] .scrim { background: rgb(0 0 0 / .55); }
.scrim.open { display: block; }
.sbox { position: fixed; z-index: 90; top: 88px; left: 50%; transform: translateX(-50%); width: 640px; max-height: calc(100vh - 140px); display: none; flex-direction: column; border-radius: 16px; background: var(--surface); box-shadow: var(--float); overflow: hidden; }
.sbox.open { display: flex; }
.sbox .in { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
.sbox .in .i { font-size: 20px; color: var(--ink2); }
.sbox .in input { flex: 1; border: 0; outline: 0; background: none; font: inherit; color: inherit; }
.sbox .in .caret { width: 1.5px; height: 22px; background: var(--ink); margin-left: -10px; }
.sbox .res { overflow-y: auto; padding: 6px 8px 8px; }
.sbox h6 { margin: 12px 10px 4px; font: 700 11.5px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.sbox .hit { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: start; padding: 9px 10px; border-radius: 10px; text-decoration: none; }
.sbox .hit .i { font-size: 18px; color: var(--ink2); margin-top: 1px; }
.sbox .hit b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.sbox .hit small { display: block; font-size: 13px; color: var(--ink3); margin-top: 1px; }
.sbox .hit mark { background: none; color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sbox .hit .gt { color: var(--ink3); }
.sbox .hit small code { font: 600 12px/1 "IBM Plex Mono", monospace; color: var(--ink2); }
.sbox .hit .k { opacity: 0; font-size: 16px; color: var(--ink2); margin-top: 2px; }
.sbox .hit.sel { background: var(--soft2); }
.sbox .hit.sel .k { opacity: 1; }
.sbox .none { padding: 18px 12px 6px; }
.sbox .none b { display: block; font-size: 15.5px; color: var(--ink); font-weight: 600; }
.sbox .none p { margin: 4px 0 0; font-size: 14px; color: var(--ink2); }
.sbox .ft { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink3); background: var(--canvas); }
.sbox .ft span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sbox .ft .r { margin-left: auto; }

/* ── The API's pages: method boxes, fields and the code beside them ──── */
.ep { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; padding: 11px 12px 11px 14px; border-radius: 12px; background: var(--muted); font: 600 14px/1 "IBM Plex Mono", monospace; color: var(--ink); }
.ep .m { font-weight: 700; letter-spacing: .02em; }
.ep .p { flex: 1; color: var(--ink2); }
.ep .p em { font-style: normal; color: var(--ink); }
.ep .cp { font-size: 16px; color: var(--ink3); }
.fields { margin: 14px 0 6px; border-top: 1px solid var(--line); }
.fields .f { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--body); }
.fields .f > div:first-child { display: block; line-height: 1.5; }
.fields .f code { font-size: 13.5px; font-weight: 600; color: var(--ink); background: none; padding: 0; white-space: normal; word-break: break-word; }
.fields .f .ty { display: block; margin-top: 3px; font: 500 12.5px/1.3 "IBM Plex Mono", monospace; color: var(--ink3); }
.fields .f .req { display: inline-block; margin-top: 7px; font: 700 10.5px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding: 4px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line2); }
.fields .f p { margin: 0; }
.fields .f p code { font-size: 13px; background: var(--muted); padding: 1px 5px; border-radius: 5px; }
.codecol { position: sticky; top: calc(var(--top) + 32px); display: grid; gap: 14px; }
.panel { border-radius: 14px; background: var(--code); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.panel .ph { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 8px 0 10px; border-bottom: 1px solid var(--line); }
.panel .ph button { height: 30px; padding: 0 11px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink3); }
.panel .ph button.on { color: var(--ink); background: var(--soft2); }
.panel .ph .ttl { margin-left: auto; font: 600 12px/1 "IBM Plex Mono", monospace; color: var(--ink3); padding-right: 6px; }
.panel .ph .ib { width: 30px; height: 30px; font-size: 16px; }
.panel pre { margin: 0; padding: 14px 16px 16px; font-size: 12.5px; line-height: 1.7; color: var(--code-ink); overflow-x: auto; white-space: pre; }
.panel .k { color: var(--kw); } .panel .s { color: var(--str); } .panel .n { color: var(--num); } .panel .c { color: var(--ink3); }
.panel .cap { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink3); }

/* ── Help's home ──────────────────────────────────────────────────────── */
.prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 0; }
.prod { border-radius: 18px; background: var(--surface); padding: 18px 18px 14px; display: flex; flex-direction: column; }
.prod .ph { display: grid; gap: 12px; margin-bottom: 14px; }
.prod .pi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.prod b { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.prod small { display: block; font-size: 13px; color: var(--ink3); }
.prod ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.prod li a { display: block; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.35; color: var(--body); text-decoration: none; }
.prod li a:hover { color: var(--ink); }
.prod .all { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.prod .all .i { font-size: 14px; }
.toc2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 40px; margin: 10px 0 0; }
.toc2 h4 { margin: 18px 0 4px; font: 700 11.5px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.toc2 a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.toc2 a span { display: inline-flex; gap: 8px; color: var(--ink3); font-size: 16px; align-items: center; }
.toc2 a:hover { color: var(--ink2); }
.box2 { margin: 18px 0 0; padding: 18px 20px; border-radius: 18px; background: var(--muted); display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.box2 .pi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; color: var(--ink); background: var(--surface); }
.box2 b { display: block; font-size: 15.5px; color: var(--ink); font-weight: 700; }
.box2 p { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.box2 p a { color: var(--ink); }
.cards4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 0; }
.cards4 a { display: block; padding: 16px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.cards4 a:hover { background: var(--soft); }
.cards4 a small { display: block; margin-top: 4px; font-weight: 500; color: var(--ink3); font-size: 13px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn2 { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--muted); color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.btn2.line { background: none; box-shadow: inset 0 0 0 1px var(--line2); }
.btn2 .i { font-size: 17px; }

/* ── Between a laptop and a phone: the right column folds under the title ── */
.fold-toc { display: none; }
.inline-panel { display: none; }
@media (max-width: 1239px) {
  .inline-panel { display: block; margin: 18px 0 8px; }
  .page { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .page.api { grid-template-columns: minmax(0, 720px); }
  .page > .side { display: none; }
  .codecol { display: none; }
  .fold-toc { display: block; }
}

/* ── A phone ──────────────────────────────────────────────────────────── */
.fold-toc { margin: 22px 0 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.fold-toc > button { width: 100%; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 14px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.fold-toc > button .i { font-size: 17px; color: var(--ink2); }
.fold-toc > button .c { margin-left: auto; transition: transform .2s; }
.fold-toc ol { list-style: none; margin: 0; padding: 0 14px 10px 41px; display: none; }
.fold-toc.open ol { display: block; }
.fold-toc.open > button .c { transform: rotate(180deg); }
.fold-toc li a { display: block; padding: 7px 0; font-size: 14.5px; color: var(--ink2); text-decoration: none; border-top: 1px solid var(--line); }
.rel-end { display: none; }

@media (max-width: 899px) {
  :root { --top: 56px; }
  .dt { grid-template-columns: 1fr auto; padding: 0 8px 0 16px; }
  .dt .l { padding-left: 0; }
  .dt .l .sep, .dt .l .pick, .dt .c, .dt .r .go, .dt .r .theme { display: none; }
  .dt .r { padding-right: 0; gap: 2px; }
  .only-phone { display: grid !important; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail, .menu { display: none; }
  .page, .page.api { padding: 26px 16px 0; grid-template-columns: minmax(0, 1fr); }
  h1.t { font-size: 34px; }
  .prose { font-size: 16.5px; line-height: 1.7; }
  .prose h2 { font-size: 20px; margin-top: 44px; }
  .tabs { display: flex; }
  .tabs button { flex: 1; justify-content: center; padding: 0 8px; font-size: 13.5px; }
  .flow { flex-direction: column; }
  .flow .ar { flex-basis: 22px; }
  .flow .ar svg { transform: rotate(90deg); width: 22px; }
  .flow-below { display: flex; padding-left: 22px; }
  .flow-below .drop { align-items: flex-start; }
  .flow-below .drop svg { display: none; }
  .pn { grid-template-columns: 1fr; }
  .ask { flex-direction: column; align-items: flex-start; }
  .rel-end { display: block; margin: 44px 0 0; }
  .rel-end h5 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
  .rel-end a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); text-decoration: none; }
  .rel-end a em { font-style: normal; font-size: 12px; color: var(--ink3); }
  .foot { gap: 14px 18px; margin-top: 56px; }
  .foot small { margin-left: 0; margin-right: 0; width: 100%; }
  .prods { grid-template-columns: 1fr; }
  .toc2, .cards4 { grid-template-columns: 1fr; }
  .fields .f { grid-template-columns: 1fr; gap: 6px; }
  .prose table { display: block; overflow-x: auto; }
  .prose pre code { font-size: 12px; }
  .sheet { overflow-x: auto; }
  .sheet table { min-width: 640px; }
  .panel pre { font-size: 12px; }
  .fields .f .ty { display: inline; margin: 0 0 0 8px; }
  .fields .f .req { margin: 0 0 0 8px; }
  .sbox { top: 0; left: 0; transform: none; width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
  .sbox .ft { display: none; }
}

/* The phone's menu: a sheet from the left with the sections as a switch, the product picker, then the list. */
.msheet { position: fixed; inset: 0; z-index: 90; width: 100%; background: var(--canvas); display: none; flex-direction: column; box-shadow: var(--float); }
.msheet.open { display: flex; }
.msheet .mt { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); }
.msheet .seg { display: flex; gap: 2px; margin: 14px 16px 0; padding: 3px; border-radius: 12px; background: var(--muted); }
.msheet .seg a { flex: 1; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink2); text-decoration: none; }
.msheet .seg a .i { font-size: 17px; }
.msheet .seg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.msheet .pick { margin: 12px 16px 0; width: calc(100% - 32px); height: 44px; justify-content: flex-start; }
.msheet .pick .c { margin-left: auto; }
.msheet .menu { display: block; position: static; height: auto; flex: 1; border: 0; padding: 8px 6px 20px; }
.msheet .menu .mh { display: none; }
.msheet .mb { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.msheet .mb .go { flex: 1; justify-content: center; height: 44px; }
.msheet .mb .ib { box-shadow: inset 0 0 0 1px var(--line); width: 44px; height: 44px; }

/* Help's home runs wider for its cards; its sentences keep a reading measure. */
[data-noside] .prose p, [data-noside] .box2 p { max-width: 680px; }
