/* static-page--docs */
body.static-page--docs {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-rgb: 37, 99, 235;
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-blue-rgb: 37, 99, 235;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: rgba(148, 163, 184, 0.24);
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-soft: #f8fafc;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.08);
    background-color: var(--bg-body);
    background-image:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
body.static-page--docs header {
    top: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}
body.static-page--docs nav a:hover {
    color: var(--accent-blue);
}
body.static-page--docs .btn-outline {
    background: rgba(255, 255, 255, 0.92);
}

body.static-page--docs.dark-mode .page-nav-fab,
body.static-page--docs.dark-mode .page-nav-drawer-close {
    color: #c4d4f6;
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(96, 122, 166, 0.36);
}

body.static-page--docs.dark-mode .page-nav-backdrop {
    background: rgba(2, 8, 23, 0.56);
}

.docs-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    margin: 0 0 44px;
    min-height: calc(100vh - 180px);
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #ffffff;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
    overflow: visible;
    align-items: start;
}
.docs-nav-panel {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-radius: 32px 0 0 32px;
}
.docs-nav-inner {
    position: static;
    padding: 24px 20px 30px;
}
.docs-nav-intro p {
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.75;
}
.docs-nav-eyebrow {
    font-size: 11px;
}
.docs-tree {
    display: grid;
    gap: 24px;
    margin-top: 28px;
}
.docs-nav-group-title {
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.docs-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}
.docs-nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.docs-nav-link:hover,
.docs-nav-link.is-active,
.docs-nav-link.is-current {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    transform: translateX(2px);
}

.docs-main-panel {
    min-width: 0;
    background: #ffffff;
    border-radius: 0 32px 32px 0;
}
.docs-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}
.docs-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 14px;
}
.docs-breadcrumbs a:hover {
    color: var(--accent-blue);
}
.docs-breadcrumbs .is-current {
    color: var(--text-main);
    font-weight: 600;
}
.docs-breadcrumb-separator {
    color: #cbd5e1;
}
.docs-search-shell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 280px);
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #f8fafc;
}
.docs-search-icon {
    color: #94a3b8;
    flex-shrink: 0;
}
.docs-search-input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-size: 14px;
}
.docs-search-input::placeholder {
    color: #94a3b8;
}

.docs-layout {
    display: block;
    padding: 40px 40px 56px;
}
.docs-article {
    min-width: 0;
    max-width: 800px;
}
.docs-article-header {
    display: grid;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.docs-article-header h1 {
    margin: 0;
    max-width: 700px;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}
.docs-article-header p {
    margin: 0;
    max-width: 720px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
}
.docs-empty-state {
    padding: 22px 24px;
    margin-bottom: 22px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #f8fafc;
}
.docs-empty-state strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}
.docs-empty-state p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}
.docs-reset-btn {
    margin-top: 16px;
    padding: 11px 18px;
    border: 0;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-blue);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.docs-article-body {
    display: grid;
    gap: 34px;
}
.docs-section + .docs-section {
    padding-top: 34px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}
.docs-h2 {
    margin: 0 0 16px;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}
.docs-h3 {
    margin: 24px 0 12px;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.docs-section p,
.docs-subsection p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.85;
}
.docs-list {
    margin: 0 0 18px;
    padding-left: 22px;
    color: var(--text-muted);
    line-height: 1.8;
}
.docs-list li + li {
    margin-top: 8px;
}
.docs-subsection + .docs-subsection {
    margin-top: 26px;
}

.docs-callout {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    margin: 22px 0;
    border-radius: 18px;
    border: 1px solid transparent;
}
.docs-callout-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}
.docs-callout-body strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.3;
}
.docs-callout-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
}
.docs-callout--tip {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
}
.docs-callout--tip strong,
.docs-callout--tip .docs-callout-icon {
    color: #1d4ed8;
}
.docs-callout--warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.24);
}
.docs-callout--warning strong,
.docs-callout--warning .docs-callout-icon {
    color: #a16207;
}
.docs-callout--info {
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.24);
}
.docs-callout--info strong,
.docs-callout--info .docs-callout-icon {
    color: #334155;
}

.docs-code-block {
    position: relative;
    margin: 22px 0;
    padding: 20px;
    border-radius: 20px;
    background: #0f172a;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}
.docs-code-label {
    position: absolute;
    top: 14px;
    right: 18px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.docs-code-block pre {
    margin: 0;
    overflow-x: auto;
    padding-top: 14px;
}
.docs-code-block code {
    color: #93c5fd;
    font-family: Consolas, 'SFMono-Regular', Menlo, Monaco, monospace;
    font-size: 14px;
    line-height: 1.8;
}

body.static-page--docs.dark-mode {
    --text-main: #e6eefc;
    --text-muted: #a7b6cc;
    --border: rgba(96, 122, 166, 0.34);
    --bg-body: #08111f;
    --bg-card: rgba(11, 19, 33, 0.96);
    --bg-soft: #0d1727;
    background-image:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30%),
        linear-gradient(180deg, #08111f 0%, #0e1728 100%);
}
body.static-page--docs.dark-mode header,
body.static-page--docs.dark-mode .docs-shell,
body.static-page--docs.dark-mode .docs-main-panel,
body.static-page--docs.dark-mode .docs-topbar,
    body.static-page--docs.dark-mode .docs-empty-state {
    background: rgba(11, 19, 33, 0.94);
}
body.static-page--docs.dark-mode .docs-nav-panel {
    background: linear-gradient(180deg, rgba(13, 23, 39, 0.98) 0%, rgba(11, 19, 33, 0.96) 100%);
}
body.static-page--docs.dark-mode .docs-search-shell,
body.static-page--docs.dark-mode .docs-nav-link,
body.static-page--docs.dark-mode .docs-feedback-btn {
    background: rgba(15, 23, 42, 0.92);
}
body.static-page--docs.dark-mode .docs-breadcrumbs,
body.static-page--docs.dark-mode .docs-nav-group-title,
body.static-page--docs.dark-mode .docs-search-icon {
    color: #94a3b8;
}
body.static-page--docs.dark-mode .docs-nav-link,
body.static-page--docs.dark-mode .docs-empty-state p,
body.static-page--docs.dark-mode .docs-section p,
body.static-page--docs.dark-mode .docs-subsection p,
body.static-page--docs.dark-mode .docs-list {
    color: #c4d4f6;
}
body.static-page--docs.dark-mode .docs-nav-link:hover,
body.static-page--docs.dark-mode .docs-nav-link.is-active,
body.static-page--docs.dark-mode .docs-nav-link.is-current {
    color: #93c5fd;
}
body.static-page--docs.dark-mode .docs-callout--tip {
    background: rgba(37, 99, 235, 0.14);
}
body.static-page--docs.dark-mode .docs-callout--warning {
    background: rgba(245, 158, 11, 0.14);
}
body.static-page--docs.dark-mode .docs-callout--info {
    background: rgba(148, 163, 184, 0.14);
}

@media (max-width: 920px) {
    .docs-shell {
        display: block;
        min-height: 0;
        margin: 24px 0 36px;
        border-radius: 24px;
        overflow: hidden;
    }

    .docs-nav-panel {
        position: static;
        top: auto;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 24px 24px 0 0;
    }

    .docs-main-panel {
        border-radius: 0 0 24px 24px;
    }

    .docs-topbar {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .docs-search-shell {
        width: 100%;
        min-width: 0;
    }

    .docs-layout {
        padding: 22px 18px 40px;
    }

    .docs-article {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .docs-shell {
        margin-top: 16px;
        border-radius: 18px;
    }

    .docs-nav-panel {
        border-radius: 18px 18px 0 0;
    }

    .docs-main-panel {
        border-radius: 0 0 18px 18px;
    }

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

    .docs-nav-intro p {
        display: none;
    }

    .docs-tree {
        gap: 14px;
        margin-top: 18px;
    }

    .docs-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .docs-nav-link {
        padding: 10px 12px;
    }

    .docs-article-header h1 {
        font-size: clamp(32px, 10vw, 44px);
    }

    .docs-article-header p {
        font-size: 16px;
        line-height: 1.7;
    }

    .docs-h2 {
        font-size: 28px;
    }

    .docs-code-block {
        padding: 18px 16px;
    }
}
