:root { color-scheme: light; --bg: #f5f9fb; --surface: #fff; --text: #132633; --muted: #485f6d; --border: #cedce3; --accent: #006f7c; --code: #eaf1f5; }
:root[data-theme="dark"] { color-scheme: dark; --bg: #09121b; --surface: #111e2b; --text: #edf4fa; --muted: #bdcedb; --border: #344b5e; --accent: #63e2d7; --code: #1a2a3b; }
* { box-sizing: border-box; } body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } a { color: var(--accent); text-underline-offset: 3px; } button { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 5px 12px; cursor: pointer; } a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.docs-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 24px; height: 68px; padding: 0 32px; border-bottom: 1px solid var(--border); background: var(--surface); } .docs-brand { color: var(--text); font-size: 24px; font-weight: 800; letter-spacing: -.8px; text-decoration: none; } .docs-brand span { color: var(--accent); } .docs-label { color: var(--muted); font-size: 14px; } .docs-header-actions { margin-left: auto; display: flex; gap: 20px; align-items: center; font-size: 14px; }
.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 860px); justify-content: center; gap: 52px; padding: 32px; } .docs-nav { position: sticky; top: 90px; align-self: start; height: calc(100vh - 110px); overflow-y: auto; padding-right: 20px; font-size: 13px; line-height: 1.45; scrollbar-width: thin; } .docs-nav p { margin: 22px 0 8px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 1.1px; text-transform: uppercase; } .docs-nav p:first-child { margin-top: 0; } .docs-nav a { display: block; margin: 3px 0; padding: 6px 10px; color: var(--muted); text-decoration: none; border-radius: 6px; } .docs-nav a:hover, .docs-nav a[aria-current="page"] { color: var(--accent); background: var(--code); } .docs-nav a[aria-current="page"] { font-weight: 700; }
.docs-content { padding: 8px 0 48px; min-width: 0; } h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -.02em; scroll-margin-top: 94px; } h1 { margin: 0 0 24px; font-size: clamp(30px, 4vw, 43px); } h2 { margin: 42px 0 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 25px; } h3 { margin: 30px 0 10px; font-size: 20px; } p { margin: 0 0 18px; } ul, ol { padding-left: 25px; margin: 0 0 22px; } li { padding: 2px 0; } code { padding: 2px 5px; background: var(--code); border-radius: 4px; font-size: .88em; overflow-wrap: anywhere; } pre { padding: 18px 20px; background: var(--code); border: 1px solid var(--border); border-radius: 9px; overflow-x: auto; font-size: 14px; line-height: 1.65; } pre code { padding: 0; background: transparent; white-space: pre; overflow-wrap: normal; } blockquote { margin: 18px 0; padding: 12px 20px; border-left: 3px solid var(--accent); background: var(--code); color: var(--muted); } blockquote p:last-child { margin-bottom: 0; } img { max-width: 100%; height: auto; border-radius: 8px; } .table-scroll { overflow-x: auto; margin: 20px 0; } table { width: 100%; border-collapse: collapse; font-size: 14px; } th, td { text-align: left; vertical-align: top; padding: 11px 14px; border: 1px solid var(--border); } th { background: var(--code); } footer { margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
@media (max-width: 800px) { .docs-header { gap: 12px; padding: 0 18px; } .docs-label { display: none; } .docs-header-actions { gap: 12px; } .docs-layout { display: block; padding: 22px 20px; } .docs-nav { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 3px; padding: 0 0 20px; margin-bottom: 24px; border-bottom: 1px solid var(--border); } .docs-nav p { flex-basis: 100%; margin-top: 16px; } .docs-nav a { display: inline-block; font-size: 12px; padding: 4px 8px; margin: 0; } .docs-content { padding-top: 0; } }
