* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
    color: #0f1b16;
    background: #f5f7f6;
}

a {
    color: #0a7e5b;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    background: #0f1b16;
    color: #eef6f1;
    border-bottom: 1px solid #123328;
}

.topbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.brand-badge {
    background: #19c37d;
    color: #0f1b16;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-title {
    font-size: 18px;
}

.topbar-links a {
    margin-left: 18px;
    color: #d3f1e2;
    font-size: 14px;
}

.menu-toggle {
    margin-left: 18px;
    border: 1px solid #2b5644;
    background: transparent;
    color: #d3f1e2;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    display: none;
    gap: 4px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #d3f1e2;
    border-radius: 999px;
}

.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 70px);
}

.sidebar {
    background: #0f1b16;
    padding: 24px 18px 48px;
    color: #dfece6;
    overflow-y: auto;
    border-right: 1px solid #123328;
}

.sidebar h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7cc7ab;
    margin: 24px 0 8px;
}

.sidebar a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: #eaf5f0;
    font-size: 14px;
}

.sidebar a.active {
    background: #1a2a22;
    color: #19c37d;
    font-weight: 600;
}

.content {
    padding: 36px 42px 80px;
}

.doc {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 20px 40px rgba(12, 30, 22, 0.08);
}

.doc h1 {
    margin-top: 0;
    font-size: 30px;
}

.toc {
    background: #f0f7f3;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0 28px;
}

.toc-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #2b6851;
    margin-bottom: 10px;
}

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

.toc li {
    margin: 6px 0;
}

.toc a {
    color: #0a7e5b;
    font-size: 14px;
}

.toc-level-3 {
    margin-left: 16px;
}

.doc-body h2,
.doc-body h3,
.doc-body h4 {
    margin-top: 28px;
    color: #0f1b16;
}

.doc-body p {
    line-height: 1.7;
    color: #1c2d25;
}

.doc-body ul {
    padding-left: 20px;
    line-height: 1.7;
}

.doc-body blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    border-left: 4px solid #19c37d;
    background: #eef6f1;
    border-radius: 10px;
    color: #204438;
}

.doc-body blockquote p {
    margin: 0;
}

.doc-body code {
    background: #f1f5f3;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.95em;
}

.doc-body pre {
    background: #0f1b16;
    color: #eef6f1;
    padding: 18px;
    border-radius: 12px;
    overflow-x: auto;
    max-width: 100%;
}

.doc-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    display: inline-block;
    min-width: 100%;
    overflow-x: hidden;
}

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

    .sidebar {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 70px);
        transform: translateY(-120%);
        transition: transform 0.2s ease;
        z-index: 20;
        border-right: none;
        border-bottom: 1px solid #123328;
    }

    .content {
        padding: 24px;
    }

    .brand-title {
        display: none;
    }

    .doc-link {
        display: none;
    }

    .site-link {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
    }

    body.nav-open .sidebar {
        transform: translateY(0);
    }

    body.nav-open {
        overflow: hidden;
    }
    .doc {
        padding: 36px 10px;
    }

    .doc-body pre {
        max-width: calc(100vw - 70px);
    }
}

