:root {
    color-scheme: light;
    --docs-bg: #f5f6f8;
    --docs-surface: #fff;
    --docs-text: #1a1a1a;
    --docs-muted: #5c6370;
    --docs-accent: #003366;
    --docs-border: #d8dde6;
    --docs-code-bg: #eef1f5;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--docs-bg);
    color: var(--docs-text);
}

.docs-header {
    background: var(--docs-accent);
    color: #fff;
}

.docs-header-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.docs-brand,
.docs-back {
    color: inherit;
    text-decoration: none;
}

.docs-back {
    font-size: 0.9rem;
    opacity: 0.9;
}

.docs-back:hover,
.docs-brand:hover {
    text-decoration: underline;
}

.docs-layout {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: minmax(12rem, 16rem) 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }
}

.docs-nav {
    background: var(--docs-surface);
    border: 1px solid var(--docs-border);
    border-radius: 0.5rem;
    padding: 1rem;
    position: sticky;
    top: 1rem;
}

.docs-nav-title {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--docs-muted);
}

.docs-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.docs-nav li + li {
    margin-top: 0.25rem;
}

.docs-nav a {
    display: block;
    padding: 0.35rem 0.5rem;
    border-radius: 0.25rem;
    color: var(--docs-accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.docs-nav a:hover {
    background: var(--docs-code-bg);
}

.docs-nav a[aria-current="page"] {
    background: var(--docs-accent);
    color: #fff;
}

.docs-main {
    background: var(--docs-surface);
    border: 1px solid var(--docs-border);
    border-radius: 0.5rem;
    padding: 1.5rem 2rem;
    min-width: 0;
}

.docs-index-list {
    padding-left: 1.25rem;
}

.docs-index-list a {
    color: var(--docs-accent);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    line-height: 1.25;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.markdown-body h1:first-child {
    margin-top: 0;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body pre,
.markdown-body table {
    margin: 0.75em 0;
}

.markdown-body a {
    color: var(--docs-accent);
}

.markdown-body code {
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
    font-size: 0.9em;
    background: var(--docs-code-bg);
    padding: 0.1em 0.35em;
    border-radius: 0.2em;
}

.markdown-body pre {
    background: var(--docs-code-bg);
    padding: 1rem;
    overflow-x: auto;
    border-radius: 0.35rem;
}

.markdown-body pre code {
    padding: 0;
    background: none;
}

.markdown-body table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95rem;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid var(--docs-border);
    padding: 0.4rem 0.6rem;
    text-align: left;
}

.markdown-body th {
    background: var(--docs-code-bg);
}

.markdown-body blockquote {
    margin: 1em 0;
    padding-left: 1em;
    border-left: 4px solid var(--docs-border);
    color: var(--docs-muted);
}
