:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --line: #d9e2ef;
    --ink: #10243a;
    --muted: #5b6c80;
    --accent: #0f6cbd;
    --accent-soft: #eaf4fd;
    --code: #0d1722;
    --code-ink: #e5edf5;
    --shadow: 0 18px 36px rgba(18, 38, 60, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
    color: var(--ink);
}

a {
    color: var(--accent);
    text-decoration: none;
}

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

.docs-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(247, 249, 252, 0.88);
    border-bottom: 1px solid rgba(217, 226, 239, 0.8);
}

.docs-topbar-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.docs-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--ink);
}

.docs-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d1b2a 0%, #0f6cbd 100%);
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-link-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.docs-link-chip {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
}

.docs-layout {
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px 22px 40px;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
}

.docs-sidebar {
    position: sticky;
    top: 76px;
    align-self: start;
}

.docs-sidebar-card,
.docs-content-card,
.docs-home-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.docs-sidebar-card {
    padding: 18px;
}

.docs-sidebar-label {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.docs-nav-group {
    display: grid;
    gap: 8px;
}

.docs-nav-heading {
    margin: 12px 0 4px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.docs-nav-link {
    display: block;
    padding: 11px 12px;
    border-radius: 14px;
    color: var(--ink);
    font-weight: 600;
    border: 1px solid transparent;
}

.docs-nav-link.subtle {
    background: #f8fbfd;
}

.docs-nav-link:hover,
.docs-nav-link.active {
    background: var(--accent-soft);
    border-color: #c7def3;
}

.docs-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.docs-breadcrumb a {
    color: rgba(255, 255, 255, 0.92);
}

.docs-breadcrumb span {
    color: rgba(255, 255, 255, 0.42);
}

.docs-breadcrumb-crumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.docs-backlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.docs-sidebar-note {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.docs-home-card,
.docs-content-card {
    overflow: hidden;
}

.docs-hero {
    padding: 28px 30px;
    background: linear-gradient(135deg, #0d1b2a 0%, #14375d 52%, #0f6cbd 100%);
    color: #fff;
}

.docs-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 12px;
}

.docs-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.docs-hero p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.6;
}

.docs-hero-actions {
    margin-top: 22px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
}

.docs-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
}

.docs-button.primary {
    color: #0f3152;
    background: #fff;
}

.docs-button.secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

.docs-body {
    padding: 26px 30px 30px;
}

.docs-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.docs-stat {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
}

.docs-stat-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.docs-stat-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    word-break: break-word;
}

.docs-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.docs-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.docs-section h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.docs-section p,
.docs-section li {
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
}

.docs-section ul,
.docs-section ol {
    margin: 14px 0 0;
    padding-left: 20px;
}

.docs-callout {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #cfe1f1;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6fd 100%);
    color: #244463;
    line-height: 1.6;
}

.docs-code {
    margin-top: 16px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #21374d;
    background: var(--code);
}

.docs-code-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.docs-code-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
}

.docs-code pre {
    margin: 0;
    padding: 16px;
    overflow: auto;
    white-space: pre-wrap;
    color: var(--code-ink);
    font-size: 13px;
    line-height: 1.6;
}

.docs-inline-code {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f0f6fb;
    padding: 7px 10px;
    font-family: "Courier New", monospace;
    font-size: 13px;
}

.docs-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.docs-mini-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
}

.docs-mini-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.docs-mini-card p {
    margin: 0;
}

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

    .docs-sidebar {
        position: static;
    }

    .docs-stat-grid,
    .docs-card-grid {
        grid-template-columns: 1fr;
    }

    .docs-topbar-inner,
    .docs-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    .docs-hero,
    .docs-body {
        padding-left: 20px;
        padding-right: 20px;
    }
}
