.docs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.docs-top-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.docs-top-nav a {
    color: var(--navy-800);
    font-weight: 800;
    text-decoration: none;
}

.docs-top-nav a[aria-current="page"] {
    color: var(--blue-500);
}

.button.small {
    min-height: 42px;
    padding: 0 16px;
    font-size: .9rem;
}

.docs-shell {
    width: min(1480px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.docs-sidebar {
    position: relative;
}

.docs-sidebar-inner {
    position: sticky;
    top: 24px;
    padding: 32px 0;
}

.docs-sidebar-title {
    display: block;
    margin-bottom: 15px;
    color: var(--navy-950);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

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

.docs-sidebar nav a {
    padding: 9px 12px;
    border-left: 2px solid transparent;
    border-radius: 0 8px 8px 0;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.docs-sidebar nav a:hover {
    color: var(--blue-500);
    border-left-color: var(--blue-500);
    background: rgba(22,137,247,.06);
}

.docs-content {
    min-width: 0;
    padding: 54px 0 100px;
}

.docs-hero {
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 10%, rgba(22,137,247,.11), transparent 38%),
        linear-gradient(135deg, #fff, #f8fbff);
    box-shadow: 0 24px 60px rgba(7,24,63,.08);
}

.docs-hero h1 {
    margin: 17px 0 18px;
    color: var(--navy-950);
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.docs-hero > p {
    max-width: 850px;
    margin: 0;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.7;
}

.docs-section {
    padding: 72px 0 0;
    scroll-margin-top: 30px;
}

.docs-section-heading {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.docs-step {
    flex: 0 0 auto;
    min-width: 44px;
    padding-top: 6px;
    color: var(--blue-500);
    font-size: .85rem;
    font-weight: 950;
    letter-spacing: .08em;
}

.docs-section-heading h2 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.docs-section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.docs-grid {
    display: grid;
    gap: 18px;
}

.docs-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-card,
.docs-example,
.docs-callout {
    border-radius: 16px;
}

.docs-card {
    padding: 25px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 12px 35px rgba(7,24,63,.05);
}

.docs-card h3 {
    margin: 0 0 15px;
    color: var(--navy-950);
    font-size: 1.12rem;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 25px;
    color: var(--muted);
    line-height: 1.55;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #0f9f6e;
    font-weight: 950;
}

.docs-callout {
    margin-top: 20px;
    padding: 20px 22px;
    border-left: 4px solid var(--blue-500);
    background: #eff8ff;
}

.docs-callout.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.docs-callout strong {
    display: block;
    color: var(--navy-950);
}

.docs-callout p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.docs-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .91rem;
}

.docs-table th,
.docs-table td {
    padding: 15px 17px;
    vertical-align: top;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.docs-table th {
    color: var(--navy-950);
    background: #f7faff;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.docs-table td {
    color: var(--muted);
    line-height: 1.5;
}

.docs-table tbody tr:last-child td {
    border-bottom: 0;
}

.docs-table code,
.docs-definition code,
.docs-example code,
.docs-muted code,
.docs-accordion code {
    color: #0b4f8c;
    overflow-wrap: anywhere;
}

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

.docs-process article {
    min-height: 190px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}

.docs-process article > span {
    color: var(--blue-500);
    font-size: .8rem;
    font-weight: 950;
    letter-spacing: .08em;
}

.docs-process h3 {
    margin: 30px 0 10px;
    color: var(--navy-950);
    font-size: 1.05rem;
}

.docs-process p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
}

.docs-example {
    margin-top: 18px;
    padding: 22px;
    color: var(--muted);
    background: #071b4a;
}

.docs-example strong {
    color: #fff;
}

.docs-example pre {
    margin: 14px 0;
    padding: 17px;
    overflow-x: auto;
    border: 1px solid #bfd8f3;
    border-radius: 10px;
    color: #0b4f8c;
    background: #eaf4ff;
}

.docs-example p {
    margin: 0;
    color: #b7c9de;
    line-height: 1.55;
}

.docs-definition {
    margin: 0;
}

.docs-definition > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.docs-definition > div:last-child {
    border-bottom: 0;
}

.docs-definition dt {
    color: var(--navy-950);
    font-weight: 850;
}

.docs-definition dd {
    margin: 0;
    color: var(--muted);
}

.docs-muted {
    color: var(--muted);
    line-height: 1.6;
}

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

.status-doc {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.status-doc strong {
    display: inline-block;
    margin-bottom: 10px;
}

.status-doc p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
}

.status-doc.success strong { color: #166534; }
.status-doc.warning strong { color: #92400e; }
.status-doc.failed strong { color: #991b1b; }
.status-doc.neutral strong { color: var(--navy-800); }

.docs-accordion {
    display: grid;
    gap: 10px;
}

.docs-accordion details {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}

.docs-accordion summary {
    padding: 18px 20px;
    color: var(--navy-950);
    font-weight: 850;
    cursor: pointer;
}

.docs-accordion details p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--muted);
    line-height: 1.65;
}

.docs-cta {
    margin-top: 80px;
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 1px solid rgba(22,137,247,.22);
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(103,232,249,.12),
        rgba(22,137,247,.07)
    );
}

.docs-cta h2 {
    margin: 11px 0 7px;
    color: var(--navy-950);
}

.docs-cta p {
    margin: 0;
    color: var(--muted);
}

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

    .docs-sidebar {
        display: none;
    }

    .docs-content {
        padding-top: 30px;
    }

    .docs-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .docs-shell {
        width: min(100% - 24px, 1480px);
    }

    .docs-top-nav > a:first-child {
        display: none;
    }

    .docs-hero {
        padding: 28px 22px;
    }

    .docs-grid.two,
    .docs-process,
    .docs-status-grid {
        grid-template-columns: 1fr;
    }

    .docs-definition > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .docs-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}
