﻿:root { color-scheme:light dark; font:15px/1.6 system-ui,sans-serif; --surface:#fff; --bg:#f6f7f9; --ink:#20242c; --muted:#555e6c; --line:#dce0e6; }
@media(prefers-color-scheme:dark){ :root { --surface:#19191b; --bg:#101011; --ink:#f5f5f5; --muted:#ababba; --line:#34343a; } }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--bg); }
header { background:var(--surface); border-bottom:1px solid var(--line); }
nav,main { max-width:960px; margin:auto; padding:16px 24px; }
nav { display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
nav strong { margin-right:auto; }
a { color:inherit; text-underline-offset:4px; }
.intro { padding:32px 0; }
.eyebrow { font-size:.75rem; letter-spacing:.1em; font-weight:650; }
h1 { margin:0; font-size:clamp(2rem,6vw,3rem); line-height:1.1; }
h2 { font-size:1.25rem; margin:0 0 12px; }
p,label { color:var(--muted); }
.panel,details { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px; }
.panel { margin-bottom:28px; }
details { margin-bottom:8px; }
summary { cursor:pointer; overflow-wrap:anywhere; }
summary strong { display:inline-block; min-width:6ch; }
pre { overflow:auto; padding:12px; border-radius:8px; background:var(--bg); }
button,input,textarea { font:inherit; border:1px solid var(--line); border-radius:8px; padding:8px 12px; }
button { background:var(--ink); color:var(--surface); cursor:pointer; font-weight:650; }
button:disabled { opacity:.55; cursor:default; }
input,textarea { width:100%; background:var(--surface); color:var(--ink); }
textarea { margin-top:12px; }
#status { margin-left:8px; }
:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.guide-layout { display:grid; grid-template-columns:210px minmax(0,1fr); max-width:1200px; margin:auto; }
.guide-layout main { width:100%; }
#sections { position:sticky; top:0; display:grid; gap:4px; align-content:start; max-height:100vh; overflow:auto; }
#sections button { text-align:left; background:transparent; color:var(--ink); border-color:transparent; font-weight:500; }
#sections button[aria-pressed="true"] { background:var(--surface); border-color:var(--line); }
.endpoint-section { margin-block:24px; }
details h3 { font-size:.9rem; margin-bottom:4px; }
@media(max-width:700px) {
  .guide-layout { grid-template-columns:minmax(0,1fr); }
  #sections { position:static; display:flex; flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; }
  #sections button { flex:none; }
}
