.docsSectionPage {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 72vh;
    background: var(--bg-primary);
}

.docsSectionSidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    padding: 28px 22px;
    border-right: 1px solid var(--divider);
    background: var(--bg-secondary);
}

.docsBackLink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.docsBackLink:hover,
.docsSectionNav a:hover,
.docsSectionNav a.active {
    color: var(--accent-primary);
}

.docsSidebarLabel {
    margin: 38px 0 12px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.docsSectionNav {
    display: grid;
    gap: 4px;
}

.docsSectionNav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.docsSectionNav a.active {
    background: var(--surface-tertiary);
}

.docsSidebarSectionLink {
    width: 100%;
}

.docsSidebarPageNav {
    display: none;
    padding-left: 5px;
}

.docsSidebarSection:has(.docsSidebarSectionLink.active) .docsSidebarPageNav {
    display: grid;
}

.docsSidebarPageNav a {
    padding: 8px 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.docsSidebarPageNav a.active {
    background: transparent;
    color: var(--accent-primary);
}

.docsSectionContent {
    width: min(920px, calc(100% - 64px));
    margin: 0 auto;
    padding: 42px 0 90px;
}

.docsBreadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--text-muted);
    font-size: 13px;
}

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

.docsSectionHero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    margin-bottom: 56px;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 10%, rgba(199, 154, 36, .16), transparent 34%),
        var(--surface-primary);
}

.docsSectionHero > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface-tertiary);
}

.docsSectionHero > div {
    padding: 36px;
}

.docsSectionEyebrow {
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.docsSectionHero h1 {
    margin-top: 10px;
    color: var(--text-primary);
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
}

.docsSectionHero p {
    max-width: 680px;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.docsSectionDates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 13px;
}

.docsPageListHeading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.docsPageListHeading span {
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.docsPageListHeading h2 {
    margin-top: 6px;
    color: var(--text-primary);
    font-size: 28px;
}

.docsPageSearch {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 220px;
    padding: 10px 12px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--input-text);
}

.docsPageSearch:focus-within {
    border-color: var(--input-border-focus);
}

.docsPageSearch input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
}

.docsPageGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 280px));
    gap: 18px;
}

.docsPageCard {
    width: 100%;
    max-width: 280px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--surface-primary);
    overflow: hidden;
}

.docsPageCard:hover {
    transform: translateY(-2px);
}

.docsPageCard > a {
    display: grid;
    grid-template-columns: 1fr;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.docsPageImage,
.docsPageImagePlaceholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 11px 11px 0 0;
}

.docsPageImage {
    object-fit: cover;
}

.docsPageImagePlaceholder {
    display: grid;
    place-items: center;
    background: var(--surface-tertiary);
    color: var(--accent-primary);
    font-size: 9px;
    font-weight: 800;
}

.docsPageCardContent {
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 16px;
}

.docsPageCard h3 {
    color: var(--text-primary);
    font-size: 17px;
}

.docsPageCard p {
    margin: 8px 0 14px;
    color: var(--text-disabled);
    font-size: 14px;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.docsPageCardFooter {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.docsPageUpdated {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
}

.docsPageLink {
    color: var(--accent-primary);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.docsPagesEmpty,
.docsPagesNoResults {
    padding: 42px 24px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-secondary);
    text-align: center;
    background: var(--surface-primary);
}

.docsPagesEmpty h2 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.docsSectionNavigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
}

.docsSectionNavLink {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 92px;
    padding: 18px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--surface-primary);
    color: inherit;
    text-decoration: none;
}

.docsSectionNavLink:hover {
    border-color: var(--accent-primary);
}

.docsSectionNavLink span {
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.docsSectionNavLink strong {
    color: var(--text-primary);
    line-height: 1.35;
}

.docsSectionNavNext {
    grid-column: 2;
    text-align: right;
}

.docsMobileSidebarTrigger,
.docsMobileSidebarTop,
.docsMobileSidebarBackdrop {
    display: none;
}

.docsSidebarOpen {
    overflow: hidden;
}

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

    .docsMobileSidebarTrigger {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        justify-self: start;
        margin: 16px 16px 0;
        padding: 10px 14px;
        border: 1px solid var(--border-subtle);
        border-radius: 8px;
        background: var(--surface-primary);
        color: var(--text-primary);
        font-weight: 700;
        cursor: pointer;
    }

    .docsSectionSidebar {
        position: fixed;
        z-index: 1100;
        top: 0;
        left: 0;
        width: min(86vw, 320px);
        height: 100dvh;
        border-right: 0;
        border-bottom: 1px solid var(--border-primary);
        box-shadow: 12px 0 30px rgba(0, 0, 0, .18);
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

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

    .docsMobileSidebarTop {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        color: var(--text-primary);
        font-size: 18px;
        font-weight: 800;
    }

    .docsMobileSidebarClose {
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 50%;
        background: var(--danger);
        color: var(--text-inverse);
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .docsMobileSidebarBackdrop {
        position: fixed;
        z-index: 1090;
        inset: 0;
        background: rgba(0, 0, 0, .45);
    }

    .docsSectionSidebar.open + .docsSectionContent {
        pointer-events: none;
    }

    .docsSectionSidebar.open ~ .docsMobileSidebarBackdrop,
    body.docsSidebarOpen .docsMobileSidebarBackdrop {
        display: block;
    }

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

    .docsSidebarLabel {
        margin-top: 20px;
    }

}

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

    .docsPageCard {
        max-width: none;
    }
}

@media (max-width: 620px) {
    .docsSectionContent {
        width: min(100% - 32px, 920px);
        padding-top: 28px;
    }

    .docsSectionHero > div {
        padding: 26px 20px;
    }

    .docsPageListHeading {
        align-items: stretch;
        flex-direction: column;
    }

    .docsPageSearch {
        width: 100%;
    }

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

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

    .docsSectionNavNext {
        grid-column: 1;
    }
}