:root {
    --ink: #17352c;
    --ink-soft: #526a62;
    --line: #d6e0dc;
    --surface-muted: #f3f6f4;
    --accent: #08785f;
    --accent-soft: #e4f4ed;
    --sidebar: #092d24;
    --sidebar-muted: #afc6bd;
    --mint: #45c29a;
}

body {
    background: var(--surface-muted);
    font-size: 14px;
    line-height: normal;
}

.site-header {
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    color: #fff;
    background: var(--sidebar);
    border-bottom: 1px solid #1d493c;
}

.site-logo { color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; }
.site-logo span { color: var(--mint); }

.site-docs-badge {
    padding: 3px 9px;
    border: 1px solid #276451;
    border-radius: 999px;
    color: #8cdec0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-home {
    margin-left: auto;
    padding: 7px 14px;
    border-radius: 6px;
    color: #8cdec0;
    font-size: 13px;
    text-decoration: none;
}

.site-home:hover { background: #164638; color: #fff; }

.layout { min-height: calc(100vh - 60px); }

.sidebar {
    position: sticky;
    top: 60px;
    width: 300px;
    height: calc(100vh - 60px);
    flex-basis: 300px;
    overflow-y: auto;
    border-right-color: #1d493c;
    background: var(--sidebar);
    padding: 12px 0 28px;
    line-height: 1.3;
}

.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 14px 12px;
    padding: 6px 8px;
    border-bottom: 1px solid #1d493c;
    color: var(--sidebar-muted);
    font-size: 12.5px;
    font-weight: 500;
    line-height: normal;
}

.sidebar .brand:hover { color: #fff; background: #164638; }

.home-icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.sidebar .nav-group { margin: 0 0 3px; }

.sidebar summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 9px 16px;
    border-radius: 4px;
    color: var(--mint);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: normal;
    list-style: none;
    text-transform: uppercase;
}

.sidebar summary::-webkit-details-marker { display: none; }

.sidebar summary::after {
    width: 5px;
    height: 5px;
    margin-left: auto;
    border-right: 1px solid #719084;
    border-bottom: 1px solid #719084;
    content: "";
    transform: rotate(-45deg);
}

.sidebar details[open] > summary::after { transform: rotate(45deg); }

.sidebar .nav-icon { width: 15px; font-size: 12px; }

.sidebar ul { margin: 0 0 7px; }
.sidebar li { margin: 0; }

.sidebar li a {
    display: block;
    border-radius: 3px;
    padding: 6px 16px 6px 36px;
    color: var(--sidebar-muted);
    font-size: 12.5px;
    line-height: 17.5px;
}

.sidebar li a:hover { color: #fff; background: #123d30; }

.sidebar li a[aria-current="page"] {
    color: #8cdec0;
    background: #174838;
    font-weight: 600;
}

main {
    max-width: 1100px;
    min-width: 0;
    margin: 0 auto;
    padding: 32px 40px 100px;
}

h1 { font-size: 28px; line-height: normal; }

.lead { font-size: 15px; line-height: normal; }

th { background: var(--surface-muted); }

.card {
    box-shadow: 0 2px 6px rgba(9, 45, 36, 0.03);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.card:hover {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(9, 45, 36, 0.08);
    transform: translateY(-2px);
}

@media (max-width: 820px) {
    .site-header { padding: 0 16px; }
    .sidebar {
        position: static;
        height: auto;
        max-height: 42vh;
        border-bottom-color: #1d493c;
        padding: 14px 16px;
    }
}
