/* Public developer docs (/docs/*). Self-contained on purpose: the landing stylesheet
   is tuned for marketing sections, and these pages are long-form reference text. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --txt: #1b2330;
  --txt-muted: #4a5568;
  --line: #d9dee6;
  --accent: #0f6e8c;
  --accent-ink: #0b5870;
  --code-bg: #eef1f5;
  --warn-bg: #fff6e0;
  --warn-ink: #7a4b00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10151d;
    --bg-soft: #18202b;
    --txt: #e6eaf0;
    --txt-muted: #b3bcc9;
    --line: #2c3746;
    --accent: #5cc3e0;
    --accent-ink: #8ad6ec;
    --code-bg: #1d2633;
    --warn-bg: #2e2412;
    --warn-ink: #f2c46b;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 10; }
header.docs-nav { border-bottom: 1px solid var(--line); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
header.docs-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--txt); }
.brand span { color: var(--txt-muted); font-weight: 500; }
nav.docs-links { display: flex; gap: 1rem; flex-wrap: wrap; }
nav.docs-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
nav.docs-links a[aria-current="page"] { font-weight: 700; text-decoration: underline; }
main { padding: 2rem 0 4rem; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 .5rem; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: 0; }
.lead { color: var(--txt-muted); font-size: 1.05rem; margin-top: 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--code-bg); padding: 1rem; border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; }
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .25rem 1rem; padding: 0; list-style: none; }
.toc a { display: inline-block; min-height: 32px; }
.err {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  background: var(--bg-soft);
}
.err:target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.err header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: .5rem; }
.err .http { color: var(--txt-muted); font-size: .9rem; }
.err dl { margin: 0; }
.err dt { font-weight: 600; margin-top: .5rem; }
.err dd { margin: 0; }
.note { background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: .75rem 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.cards li { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; background: var(--bg-soft); }
.cards a { font-weight: 600; }
.cards p { margin: .35rem 0 0; color: var(--txt-muted); }
footer { border-top: 1px solid var(--line); color: var(--txt-muted); font-size: .9rem; padding: 1.5rem 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
