﻿.docs-page {
    padding-top: 84px;
    background:
        linear-gradient(180deg, #f4f5f7 0%, #f4f5f7 100%);
    color: #0f172a;
}

.docs-page .grid-overlay,
.docs-page .ambient {
    display: none;
}

.docs-container {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 24px;
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 56px;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: 108px;
    border-radius: 10px;
    border: 1px solid #d8dee6;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

.sidebar-content {
    padding: 18px;
}

.sidebar-search {
    margin-bottom: 18px;
}

.sidebar-search input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
}

.sidebar-search input:focus {
    outline: 2px solid rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.28);
}

.sidebar-nav {
    display: grid;
    gap: 16px;
}

.nav-section {
    display: grid;
    gap: 10px;
}

.nav-section-title {
    margin: 0;
    padding: 0 10px;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.nav-section-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}

.nav-section-list a:hover {
    background: #f8fafc;
    color: #0f172a;
}

.nav-section-list a.active {
    background: #eef4ff;
    border-color: rgba(37, 99, 235, 0.14);
    color: #173b75;
}

.docs-main {
    min-width: 0;
}

.docs-content {
    border-radius: 12px;
    border: 1px solid #d8dee6;
    background: #ffffff;
    padding: 38px;
    box-shadow: none;
}

.docs-content h1,
.docs-content h2,
.docs-content h3,
.docs-content h4 {
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.docs-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.25rem);
}

.docs-intro {
    margin: 16px 0 0;
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 68ch;
}

.docs-kicker {
    display: inline-flex;
    margin: 0 0 12px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #d8dee6;
    background: #f7f8fa;
    color: #425466;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    padding: 28px;
    border-radius: 10px;
    background: #f7f8fa;
    border: 1px solid #d8dee6;
}

.docs-masthead-actions {
    display: grid;
    gap: 12px;
    align-content: start;
}

.docs-highlight-grid,
.docs-grid,
.quick-links-grid {
    display: grid;
    gap: 16px;
}

.docs-highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.docs-highlight-card,
.docs-card,
.quick-link,
.docs-download-option {
    border-radius: 10px;
    border: 1px solid #d8dee6;
    background: #ffffff;
    box-shadow: none;
}

.docs-highlight-card,
.docs-card {
    padding: 22px;
}

.docs-highlight-card p,
.docs-card p,
.docs-content p,
.docs-content li,
.quick-link span,
.docs-content blockquote,
.docs-download-copy p,
.docs-download-copy li {
    color: #475569;
}

.docs-highlight-card p,
.docs-card p {
    margin: 12px 0 0;
}

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

.docs-card h3 {
    font-size: 1.2rem;
}

.docs-card ul {
    margin: 16px 0 0;
    padding-left: 18px;
}

.docs-card li + li {
    margin-top: 8px;
}

.docs-card a,
.docs-content a {
    color: #1d4ed8;
    text-decoration: none;
}

.docs-card a:hover,
.docs-content a:hover {
    text-decoration: underline;
}

.docs-quick-links {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.docs-quick-links h2 {
    font-size: 1.7rem;
}

.quick-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.quick-link:hover {
    transform: none;
    box-shadow: none;
    background: #f7f8fa;
}

.quick-link svg {
    flex-shrink: 0;
    color: #31558f;
}

.docs-content h2 {
    margin-top: 34px;
    font-size: 1.8rem;
}

.docs-content h3 {
    margin-top: 24px;
    font-size: 1.28rem;
}

.docs-content h4 {
    margin-top: 20px;
    font-size: 1.08rem;
}

.docs-content p,
.docs-content ul,
.docs-content ol,
.docs-content pre,
.docs-content blockquote,
.docs-content table,
.docs-download-showcase {
    margin: 14px 0 0;
}

.docs-content ul,
.docs-content ol {
    padding-left: 22px;
}

.docs-content li + li {
    margin-top: 8px;
}

.docs-content code {
    padding: 2px 6px;
    border-radius: 8px;
    background: #eef4ff;
    color: #0f172a;
    font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 0.92rem;
}

.docs-content pre {
    overflow-x: auto;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #0f172a;
    color: #e2e8f0;
}

.docs-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.docs-content blockquote {
    padding: 14px 16px;
    border-left: 3px solid #1d4ed8;
    background: #f8fafc;
    border-radius: 12px;
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.docs-content th,
.docs-content td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.docs-content th {
    background: #f8fafc;
    color: #0f172a;
}

.docs-content img {
    margin-top: 18px;
    border-radius: 10px;
    box-shadow: none;
}

.docs-download-showcase {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.docs-download-option {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 22px;
}

.docs-download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #f3f6fb;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.docs-download-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.docs-download-icon svg {
    width: 30px;
    height: 30px;
}

.docs-download-copy h3 {
    margin-top: 4px;
}

.docs-download-meta {
    margin: 0;
    color: #31558f;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-download-copy p {
    margin-top: 10px;
}

.docs-download-copy ul {
    margin-top: 14px;
}

.docs-download-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.docs-download-action-stack {
    display: grid;
    gap: 10px;
}

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

    .docs-sidebar {
        position: static;
    }
}

@media (max-width: 900px) {
    .docs-masthead,
    .docs-highlight-grid,
    .docs-download-option {
        grid-template-columns: 1fr;
    }

    .docs-download-action,
    .docs-download-action-stack {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .docs-container {
        width: min(1280px, calc(100% - 24px));
        padding-top: 20px;
    }

    .docs-content {
        padding: 24px;
        border-radius: 22px;
    }

    .docs-grid,
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}
