.documentation-page {
    --docs-bg: #f6f7fb;
    --docs-bg-soft: #eef4ff;
    --docs-card: #ffffff;
    --docs-border: rgba(195, 198, 215, 0.72);
    --docs-shadow: 0 18px 48px rgba(22, 9, 13, 0.08);
    background: var(--docs-bg);
}

.documentation-page main {
    background: var(--docs-bg);
}

.documentation-page .landing2-nav-links a[aria-current="page"],
.documentation-page .landing2-mobile-menu a[aria-current="page"] {
    color: var(--l2-primary);
}

.docs-hero,
.docs-shell {
    width: min(100% - 64px, var(--l2-container));
    margin: 0 auto;
}

.docs-hero {
    padding: 42px 0 28px;
}

.docs-hero-inner {
    max-width: 760px;
}

.docs-eyebrow,
.docs-step-label {
    margin: 0 0 12px;
    color: var(--l2-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.docs-hero h1 {
    margin: 0;
    color: var(--l2-primary-dark);
    font-size: clamp(2.1rem, 4.6vw, 3.75rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.04;
}

.docs-hero p:last-child {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--l2-text-muted);
    font-size: clamp(1rem, 2vw, 1.24rem);
    line-height: 1.65;
}

.docs-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 0 0 72px;
}

.docs-toc {
    position: sticky;
    top: 104px;
    min-width: 0;
    border: 1px solid var(--docs-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 32px rgba(0, 32, 96, 0.06);
    backdrop-filter: blur(14px);
}

.docs-toc p {
    margin: 0;
    padding: 18px 18px 10px;
    color: var(--l2-primary-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

.docs-toc nav {
    display: grid;
    gap: 6px;
    padding: 0 10px 12px;
}

.docs-topic {
    border-radius: 10px;
}

.docs-topic[open] {
    background: rgba(238, 244, 255, 0.72);
}

.docs-topic summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    border-radius: 10px;
    padding: 10px 10px;
    color: var(--l2-primary-dark);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
    list-style: none;
}

.docs-topic summary::-webkit-details-marker {
    display: none;
}

.docs-topic summary::after {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 160ms ease;
}

.docs-topic[open] summary::after {
    transform: rotate(225deg) translateY(-1px);
}

.docs-toc a,
.docs-disabled-link {
    display: block;
    border-radius: 8px;
    margin: 0 6px 2px;
    padding: 8px 10px;
    color: var(--l2-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
}

.docs-topic-overview {
    color: var(--l2-primary-dark);
}

.docs-topic-overview.is-current {
    background: #ffffff;
    color: var(--l2-primary);
    box-shadow: 0 6px 16px rgba(0, 32, 96, 0.08);
}

.docs-disabled-link {
    color: rgba(66, 70, 85, 0.52);
}

.docs-toc a:hover {
    background: var(--docs-bg-soft);
    color: var(--l2-primary);
}

.docs-article {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.docs-section,
.docs-next {
    min-width: 0;
    border: 1px solid var(--docs-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--docs-shadow);
}

.docs-section {
    scroll-margin-top: 108px;
    padding: clamp(24px, 4vw, 42px);
}

.docs-section h2,
.docs-next h2 {
    margin: 0;
    color: var(--l2-primary-dark);
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
}

.docs-section p,
.docs-section li,
.docs-next p {
    color: var(--l2-text-muted);
    font-size: 1rem;
    line-height: 1.72;
}

.docs-section p {
    margin: 16px 0 0;
}

.docs-section ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding-left: 22px;
}

.docs-section strong {
    color: var(--l2-text);
    font-weight: 800;
}

.docs-screenshot {
    margin: 28px 0 0;
    overflow: hidden;
    border: 1px solid rgba(195, 198, 215, 0.82);
    border-radius: 14px;
    background: #f7f8fb;
    box-shadow: 0 16px 36px rgba(0, 32, 96, 0.12);
}

.docs-screenshot img {
    display: block;
    width: 100%;
    height: auto;
}

.docs-screenshot-phone {
    max-width: 430px;
}

.docs-next {
    display: grid;
    gap: 24px;
    padding: clamp(24px, 4vw, 42px);
}

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

.docs-next-grid article,
.docs-next-grid a {
    display: block;
    min-width: 0;
    border: 1px solid rgba(195, 198, 215, 0.68);
    border-radius: 12px;
    padding: 18px;
    background: #fbfcff;
    color: inherit;
}

.docs-next-grid article {
    opacity: 0.72;
}

.docs-next-grid a {
    box-shadow: 0 10px 24px rgba(0, 32, 96, 0.05);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.docs-next-grid a:hover {
    border-color: rgba(29, 99, 237, 0.38);
    box-shadow: 0 16px 30px rgba(0, 32, 96, 0.1);
    transform: translateY(-1px);
}

.docs-next-grid h3 {
    margin: 0;
    color: var(--l2-primary-dark);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
}

.docs-next-grid p {
    margin: 8px 0 14px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.docs-next-grid span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid rgba(195, 198, 215, 0.88);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--l2-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

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

    .docs-toc {
        position: static;
    }

    .docs-toc nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 759px) {
    .docs-hero,
    .docs-shell {
        width: min(100% - 32px, var(--l2-container));
    }

    .docs-hero {
        padding: 30px 0 22px;
    }

    .docs-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.04;
    }

    .docs-hero p:last-child {
        margin-top: 18px;
        font-size: 1rem;
    }

    .docs-shell {
        gap: 20px;
        padding-bottom: 56px;
    }

    .docs-next-grid {
        grid-template-columns: 1fr;
    }

    .docs-section,
    .docs-next {
        border-radius: 12px;
    }

    .docs-screenshot {
        margin-top: 22px;
        border-radius: 10px;
    }

    .docs-screenshot-phone {
        max-width: 100%;
    }
}
