@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url(fonts/outfit-latin-600-normal.woff2) format("woff2") }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url(fonts/outfit-latin-700-normal.woff2) format("woff2") }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2") }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2") }
/* Documentation sub-pages (rev 4.3). The product page's system: frost/ink/slate/fjord/ember, Outfit + Source Sans 3,
   the dusk mark. Layout: a docs rail on the left, one reading column of about 74ch, "On this page" on the right from
   1180 px; under 900 px the rail folds into a menu above the text. Rendered markdown only ever gets classes from the
   generator, so every rule below is reachable from a real document. */
:root {
  --bg: #f3f8fc; --surface: #ffffff; --surface-2: #eef4f9; --ink: #0f2233; --ink-2: #4d5d6c; --line: #d6e0e8;
  --accent: #026aa8; --accent-ink: #ffffff; --heat: #b4501a; --heat-mark: #d2601f; --ok: #1c7350; --well: #e8f0f6;
  --stage: #ffffff; --code-bg: #eef4f9;
  --f-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 12px; --mk-line: #026aa8; --mk-heat: #d2601f;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b1a28; --surface: #11263a; --surface-2: #16304a; --ink: #eaf2f8; --ink-2: #a9bccb; --line: #24405a;
  --accent: #4fb3f0; --accent-ink: #0b1a28; --heat: #f08a3c; --heat-mark: #f08a3c; --ok: #3cc488; --well: #16304a;
  --stage: #ffffff; --code-bg: #0e2133; --mk-line: #4fb3f0; --mk-heat: #f08a3c; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0b1a28; --surface: #11263a; --surface-2: #16304a; --ink: #eaf2f8; --ink-2: #a9bccb; --line: #24405a;
  --accent: #4fb3f0; --accent-ink: #0b1a28; --heat: #f08a3c; --heat-mark: #f08a3c; --ok: #3cc488; --well: #16304a;
  --stage: #ffffff; --code-bg: #0e2133; --mk-line: #4fb3f0; --mk-heat: #f08a3c; color-scheme: dark }

* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { background: var(--bg); color: var(--ink); font: 17px/1.6 var(--f-body); margin: 0 }
a { color: var(--accent) }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 20 }
.skip:focus { left: 12px }
.eyebrow { font: 600 .74rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 }

/* top bar, shared with the product page */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line) }
.top .bar { max-width: 90rem; margin: 0 auto; padding-inline: 20px; display: flex; align-items: center; gap: 16px; min-height: 60px }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); font: 700 1.05rem var(--f-display); white-space: nowrap }
.brand span { overflow: hidden; text-overflow: ellipsis }
.brand svg { width: 30px; height: 30px; flex: none }
.top nav.links { display: flex; gap: 2px }
.top nav.links a { padding: 7px 11px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem }
.top nav.links a:hover, .top nav.links a[aria-current] { background: var(--well); color: var(--ink) }
.top .act { display: flex; gap: 8px; margin-left: auto; flex: none }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none }
.iconbtn svg { width: 20px; height: 20px }
@media (max-width: 640px) { .top nav.links { display: none } }

/* three-column docs layout */
.docwrap { max-width: 90rem; margin: 0 auto; padding-inline: 20px; display: grid; grid-template-columns: 15rem minmax(0, 1fr) 14rem; gap: 40px; align-items: start }
@media (max-width: 1180px) { .docwrap { grid-template-columns: 14rem minmax(0, 1fr) } aside.toc { display: none } }
@media (max-width: 900px) { .docwrap { grid-template-columns: minmax(0, 1fr); gap: 0 } }
nav.side, aside.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); max-height: calc(100vh - 96px); overflow: auto; padding-block: 28px }
nav.side ol, aside.toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px }
nav.side a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.3 }
nav.side a:hover { background: var(--well); color: var(--ink) }
nav.side a[aria-current="page"] { background: var(--surface); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent) }
nav.side summary { list-style: none; cursor: default }
nav.side summary::-webkit-details-marker { display: none }
aside.toc a { display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .88rem; line-height: 1.35 }
aside.toc a:hover { color: var(--ink); border-left-color: var(--accent) }
@media (max-width: 900px) {
  nav.side { position: static; max-height: none; padding-block: 16px 0 }
  nav.side details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 8px }
  nav.side summary { cursor: pointer; padding: 10px 6px; font: 600 .95rem var(--f-body); color: var(--ink); display: flex; justify-content: space-between }
  nav.side summary::after { content: "▾"; color: var(--ink-2) }
  nav.side details[open] summary::after { content: "▴" }
  nav.side ol { margin: 0 0 6px }
}

/* the rendered document */
main.prose { min-width: 0; padding-block: 36px 24px; max-width: 76ch }
.prose > :first-child { margin-top: 0 }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--f-display); line-height: 1.2; text-wrap: balance; scroll-margin-top: 80px; position: relative }
.prose h1 { font-size: clamp(2rem, 4.4vw, 2.7rem); letter-spacing: -.015em; margin: 10px 0 18px }
.prose h2 { font-size: 1.6rem; margin: 2.4em 0 .6em; padding-top: 1.1em; border-top: 1px solid var(--line) }
.prose h3 { font-size: 1.22rem; margin: 1.9em 0 .5em }
.prose h4 { font-size: 1.02rem; margin: 1.6em 0 .4em }
.prose .anchor { position: absolute; left: -1.1em; padding-right: .3em; color: var(--ink-2); text-decoration: none; opacity: 0; font-weight: 400 }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose h4:hover .anchor, .prose .anchor:focus { opacity: 1 }
.prose p, .prose ul, .prose ol, .prose dl { margin: 0 0 1em }
.prose li { margin: .25em 0 }
.prose li > p { margin: .3em 0 }
.prose strong { font-weight: 600; color: var(--ink) }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0 }
.prose hr + h2 { border-top: 0; padding-top: 0; margin-top: 0 }
.prose code { font-family: var(--f-mono); font-size: .86em; background: var(--code-bg); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere }
.prose pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; overflow-x: auto; font: .85rem/1.55 var(--f-mono); margin: 0 0 1.2em }
.prose pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal }
.prose blockquote { margin: 0 0 1.2em; padding: 12px 18px; background: var(--well); border-radius: var(--r); color: var(--ink) }
.prose blockquote > :last-child { margin-bottom: 0 }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--heat-mark); border-radius: 0 var(--r) var(--r) 0 }
.prose .callout .label { display: block; font: 600 .74rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--heat); margin-bottom: 4px }
.prose .tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin: 0 0 1.3em }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; font-variant-numeric: tabular-nums }
.prose th, .prose td { text-align: left; padding: 9px 13px; border-bottom: 1px solid var(--line); vertical-align: top }
.prose th { font: 600 .74rem var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--well) }
.prose tr:last-child td { border-bottom: 0 }
.prose img { max-width: 100%; height: auto; display: block }
.prose .fig { margin: 0 0 1.3em; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--stage) }
.prose .fig img { margin-inline: auto; max-height: 820px; width: auto }
.prose .badge { display: inline-block; font: 600 .78rem var(--f-body); color: var(--ink-2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; margin: 0 4px 4px 0; text-decoration: none }
.prose details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px; margin: 0 0 1.2em }
.prose details > summary { cursor: pointer; padding: 10px 0; font-weight: 400 }
.prose details[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 12px }
.prose pre.mermaid { background: var(--stage); color: #0f2233; text-align: center; font-family: var(--f-body) }
.prose pre.mermaid:not([data-processed]) { text-align: left; font-family: var(--f-mono); color: var(--ink-2); background: var(--code-bg) }

/* prev / next and source line */
nav.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px }
nav.pn a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--ink) }
nav.pn a:hover { border-color: var(--accent) }
nav.pn a.next { text-align: right; grid-column: 2 }
nav.pn b { font: 600 1rem var(--f-display); color: var(--accent) }
nav.pn span { font-size: .8rem; color: var(--ink-2) }
p.src { margin-top: 20px; font-size: .88rem; color: var(--ink-2) }
footer.site { border-top: 1px solid var(--line); background: var(--surface); margin-top: 56px }
footer.site .bar { max-width: 90rem; margin: 0 auto; padding: 24px 20px 32px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: .9rem; color: var(--ink-2) }
.bmc { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 600 .95rem var(--f-body); text-decoration: none }
.bmc svg { width: 18px; height: 18px; flex: none }
.bmc:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)) }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth } }
