:root {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #f6f8fa;
    --surface-strong: #eef2f5;
    --text: #17202a;
    --muted: #607080;
    --border: #dbe3ea;
    --brand: #13b981;
    --brand-dark: #08795b;
    --accent: #ffd166;
    --code-bg: #edf6f2;
    --shadow: 0 18px 50px rgba(19, 34, 51, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.wiki-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 240px;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    border-right: 1px solid var(--border);
    background: #fbfcfd;
    padding: 22px 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 800;
}

.brand img {
    width: 32px;
    height: 32px;
}

.search {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 10px 12px;
    outline: none;
}

.search:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(19, 185, 129, 0.13);
}

.nav-group {
    margin-top: 24px;
}

.nav-title {
    display: block;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a,
.nav-list span {
    display: block;
    border-radius: 8px;
    padding: 8px 10px;
    color: #354553;
    font-size: 14px;
}

.nav-list a:hover,
.nav-list a.active {
    background: var(--surface-strong);
    color: var(--brand-dark);
}

.nav-list .disabled {
    color: #a2acb5;
}

.topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 20;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    padding: 12px 16px;
    backdrop-filter: blur(16px);
}

.menu-toggle {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 8px 10px;
    cursor: pointer;
}

.content {
    min-width: 0;
    padding: 48px min(7vw, 76px) 80px;
}

.hero {
    border-bottom: 1px solid var(--border);
    margin: -48px min(-7vw, -76px) 42px;
    padding: 56px min(7vw, 76px) 42px;
    background:
        linear-gradient(135deg, rgba(19, 185, 129, 0.12), rgba(255, 209, 102, 0.12)),
        #fbfcfd;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand);
}

h1,
h2,
h3 {
    line-height: 1.18;
    letter-spacing: 0;
}

h1 {
    max-width: 880px;
    margin: 14px 0 16px;
    font-size: clamp(34px, 6vw, 64px);
}

.lead {
    max-width: 850px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 9px 14px;
    font-weight: 800;
    cursor: pointer;
}

.button.primary {
    border-color: var(--brand);
    background: var(--brand);
    color: #06130f;
}

.doc-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.doc-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 18px;
    box-shadow: var(--shadow);
}

.doc-card span {
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.doc-card h2,
.doc-card h3 {
    margin: 8px 0;
    font-size: 22px;
}

.doc-card p {
    margin: 0 0 16px;
    color: var(--muted);
}

.article {
    max-width: 900px;
}

.article h2 {
    margin: 48px 0 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 30px;
}

.article h3 {
    margin: 28px 0 10px;
    font-size: 21px;
}

.article p,
.article li {
    color: #3c4a56;
}

.article ul {
    padding-left: 22px;
}

.article li + li {
    margin-top: 7px;
}

code {
    border: 1px solid #cfe7de;
    border-radius: 6px;
    background: var(--code-bg);
    color: #07543e;
    padding: 2px 6px;
    font-size: 0.94em;
}

.callout {
    border: 1px solid #bfe8db;
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    background: #f2fbf7;
    margin: 24px 0;
    padding: 16px 18px;
}

.callout strong {
    display: block;
    margin-bottom: 4px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.quick-links a {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: #314150;
    padding: 7px 11px;
    font-size: 14px;
    font-weight: 700;
}

.toc {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    border-left: 1px solid var(--border);
    background: #fff;
    padding: 34px 20px;
}

.toc strong {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
}

.toc a {
    display: block;
    border-left: 2px solid transparent;
    color: var(--muted);
    padding: 5px 0 5px 10px;
    font-size: 13px;
}

.toc a.active,
.toc a:hover {
    border-left-color: var(--brand);
    color: var(--brand-dark);
}

.footer-note {
    border-top: 1px solid var(--border);
    margin-top: 56px;
    padding-top: 24px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 1120px) {
    .wiki-shell {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .toc {
        display: none;
    }
}

@media (max-width: 820px) {
    .wiki-shell {
        display: block;
    }

    .topbar {
        display: flex;
    }

    .sidebar {
        position: fixed;
        inset: 57px auto 0 0;
        z-index: 30;
        width: min(84vw, 320px);
        height: auto;
        transform: translateX(-105%);
        transition: transform 180ms ease;
        box-shadow: var(--shadow);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content {
        padding: 28px 18px 56px;
    }

    .hero {
        margin: -28px -18px 32px;
        padding: 34px 18px 30px;
    }

    .doc-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 36px;
    }
}
