:root { --bg: #ffffff; --fg: #1d2129; --muted: #5f6673; --line: #e3e6eb; --accent: #3d63dd; --code: #f5f6f8; --type: #8a5a00; }
@media (prefers-color-scheme: dark) { :root { --bg: #14161a; --fg: #e6e8eb; --muted: #9aa1ad; --line: #2a2e35; --accent: #7c9cff; --code: #1c1f24; --type: #e2b866; } }
* { box-sizing: border-box; }
body { margin: 0; display: flex; font: 15px/1.55 "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--fg); }
nav { position: sticky; top: 0; height: 100vh; overflow-y: auto; width: 270px; flex-shrink: 0; padding: 18px 16px; border-right: 1px solid var(--line); }
nav .brand { font-weight: 600; font-size: 17px; margin-bottom: 12px; }
nav h3 { margin: 18px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
nav ul { list-style: none; margin: 0; padding: 0; }
nav a { display: block; padding: 2px 6px; border-radius: 4px; color: var(--fg); text-decoration: none; }
nav a:hover { background: var(--code); }
#search { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
main { flex: 1; min-width: 0; max-width: 980px; padding: 24px 40px 80px; }
.meta { color: var(--muted); }
h2.group { margin-top: 40px; padding-bottom: 6px; border-bottom: 2px solid var(--line); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
section.class { padding: 8px 0 20px; border-bottom: 1px solid var(--line); }
section.class > h2 { margin: 16px 0 4px; font-size: 22px; }
section.class h3 { margin: 18px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.badges { color: var(--muted); margin: 0 0 8px; }
.badges a { color: var(--accent); }
.member { margin: 6px 0; padding: 8px 12px; background: var(--code); border-radius: 6px; }
.member p { margin: 4px 0 0; color: var(--muted); white-space: pre-line; }
section.class > p.doc { white-space: pre-line; }
code { font: 13.5px/1.5 Consolas, "Cascadia Code", monospace; }
.fn { font-weight: 600; }
.type, .returns { color: var(--type); }
.hidden { display: none !important; }
@media (max-width: 760px) { body { display: block; } nav { position: static; height: auto; width: auto; border-right: 0; border-bottom: 1px solid var(--line); } main { padding: 16px; } }