:root {
    color-scheme: light;
    --bg: #f5f6f1;
    --panel: #ffffff;
    --text: #17201b;
    --muted: #66736a;
    --line: #d9ded5;
    --accent: #156f64;
    --accent-soft: #dcefeb;
    --code-bg: #10201d;
    --code-text: #eef8f4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 24px;
    background: rgba(245, 246, 241, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.brand {
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.page-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow: auto;
    padding: 24px 18px;
    background: #edf0e8;
    border-right: 1px solid var(--line);
}

.sidebar-home,
.sidebar a {
    display: block;
    padding: 7px 9px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.sidebar a:hover,
.sidebar a.is-active,
.sidebar-home.is-active {
    color: var(--text);
    background: var(--accent-soft);
}

details {
    margin-top: 10px;
}

summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}

.sidebar-links {
    margin-top: 6px;
}

.content {
    width: min(100%, 1040px);
    padding: 42px clamp(22px, 5vw, 72px) 72px;
}

.home-hero {
    max-width: 760px;
    margin-bottom: 34px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.12;
}

h2 {
    margin: 34px 0 14px;
    font-size: 24px;
    line-height: 1.25;
}

h3 {
    margin: 24px 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.lead {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.quick-link-grid,
.article-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.quick-link-card,
.article-group {
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.quick-link-card h3,
.article-group h3 {
    margin-top: 0;
}

.quick-link-card a,
.article-group a {
    display: block;
    margin-top: 8px;
    color: var(--accent);
    font-weight: 700;
}

.doc-article {
    max-width: 760px;
}

.doc-article h1 {
    margin-bottom: 24px;
}

.doc-article p,
.doc-article li {
    color: #303b35;
}

.doc-article a {
    color: var(--accent);
    font-weight: 700;
}

code {
    padding: 0.12em 0.28em;
    border-radius: 4px;
    background: #e6ebe3;
    font-size: 0.92em;
}

pre {
    overflow: auto;
    padding: 16px;
    border-radius: 8px;
    background: var(--code-bg);
}

pre code {
    padding: 0;
    color: var(--code-text);
    background: transparent;
}

@media (max-width: 860px) {
    .site-header {
        position: static;
    }

    .page-layout {
        display: block;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .content {
        padding-top: 30px;
    }

    h1 {
        font-size: 34px;
    }
}