/* The docs and API pages (docs.html, developers.html): orange on black, one column of reading. */
:root {
  --ink: #070608; --surface: #0d0b0f; --raised: #151117; --cream: #f4efe9; --muted: #aaa19b; --faint: #746b66;
  --line: rgba(244, 239, 233, 0.12); --orange: #ff7a18; --soft: #ffa052; --tint: rgba(255, 122, 24, 0.12);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 16px/1.7 "Poppins", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--soft); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--soft); outline-offset: 3px; border-radius: 6px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); background: rgba(7, 6, 8, 0.86); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand img { display: block; width: auto; height: 32px; }
.brand span { padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 20px; }
.top nav { display: flex; gap: 6px; }
.top nav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; color: var(--cream); font-size: 14px; font-weight: 500; text-decoration: none; }
.top nav a:hover { background: var(--raised); color: var(--cream); }
.top nav a.go { background: var(--orange); color: var(--ink); }
.top nav a.go:hover { background: var(--soft); }

.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.toc { position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 64px); overflow-y: auto; padding: 36px 0 40px; }
.toc p { margin: 18px 0 6px; color: var(--faint); font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.toc p:first-child { margin-top: 0; }
.toc a { display: block; padding: 5px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: 14px; text-decoration: none; }
.toc a:hover { color: var(--cream); border-left-color: var(--soft); }
.toc a.here { color: var(--cream); border-left-color: var(--orange); }

main { min-width: 0; padding: 40px 0 96px; }
.hero { padding: 8px 0 28px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: var(--orange); font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; }
.lede { max-width: 640px; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
section { padding-top: 44px; }
h2 { margin: 0 0 6px; font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
h2 + .sub { margin: 0 0 18px; color: var(--muted); }
h3 { margin: 30px 0 8px; font-size: 18px; font-weight: 600; }
p, li { color: #ddd6cf; }
ul, ol { padding-left: 1.25rem; }
li { margin: 6px 0; }
strong { color: var(--cream); font-weight: 600; }
code { padding: 1px 6px; border-radius: 6px; background: var(--raised); color: var(--soft); font: 13.5px var(--mono); overflow-wrap: anywhere; }
pre { margin: 14px 0; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
pre code { padding: 0; background: none; color: var(--cream); font-size: 13.5px; line-height: 1.65; overflow-wrap: normal; }
pre .c { color: var(--faint); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 22px 0 0; }
.card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, rgba(255, 122, 24, 0.07), transparent 60%), var(--surface); }
.card b { display: block; margin-bottom: 4px; color: var(--cream); font-weight: 600; }
.card span { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
a.card { text-decoration: none; transition: border-color 0.2s; }
a.card:hover { border-color: var(--orange); }

.note { margin: 18px 0; padding: 14px 16px; border: 1px solid rgba(255, 160, 82, 0.32); border-radius: 14px; background: var(--tint); color: #eadfd5; font-size: 15px; }
.note strong { color: var(--soft); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { position: relative; margin: 0; padding: 0 0 16px 44px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--orange); font-size: 13px; font-weight: 600; }

.table { margin: 14px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
td code { font-size: 12.5px; }
.yes { color: #7fdc9a; font-weight: 600; }
.part { color: var(--soft); font-weight: 600; }
.no { color: #ff8a7a; font-weight: 600; }

footer { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }

.toc-toggle { display: none; }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; max-height: none; padding: 16px 0 0; display: none; }
  .toc.open { display: block; }
  .toc-toggle { display: block; width: 100%; margin-top: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--cream); font: 500 15px "Poppins", system-ui, sans-serif; text-align: left; }
  .top nav a:not(.go) { display: none; }
  .brand { gap: 10px; }
  .brand img { height: 26px; }
  .brand span { padding-left: 10px; }
  main { padding-top: 24px; }
}
