.docs-layout {
    align-items: start;
    gap: 52px;
}

.docs-nav {
    display: grid;
    gap: 24px;
    position: sticky;
    top: 108px;
    align-self: start;
}

.docs-nav__group {
    display: grid;
    gap: 4px;
}

.docs-nav__group strong {
    margin: 0 0 5px 12px;
    color: #53657d;
    font: 700 12px/1.4 "Manrope", sans-serif;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.docs-nav__group a {
    display: block;
    padding: 7px 12px;
    border-left: 2px solid transparent;
    border-radius: 0 7px 7px 0;
    color: #42546b;
    font-size: 14px;
    text-decoration: none;
}

.docs-nav__group a:hover {
    background: #f4f7fb;
    color: #004aad;
    text-decoration: none;
}

.docs-nav__group a.is-active {
    border-left-color: #004aad;
    background: #eaf2ff;
    color: #004aad;
    font-weight: 700;
}

.docs-article {
    min-width: 0;
    max-width: 900px;
}

.docs-article > header {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.docs-article > header h1 {
    margin: 7px 0 14px;
}

.docs-article > header .lede {
    margin: 0;
}

.docs-eyebrow {
    color: #004aad;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.docs-cards,
.endpoint-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.docs-card,
.endpoint-card {
    display: block;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.docs-card:hover,
.endpoint-card:hover {
    border-color: #84adff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .07);
    text-decoration: none;
    transform: translateY(-2px);
}

.docs-card strong,
.endpoint-card strong {
    display: block;
    margin-bottom: 7px;
    font: 700 17px/1.35 "Manrope", sans-serif;
}

.docs-card p,
.endpoint-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.endpoint-card code {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #eaf2ff;
    color: #004aad;
    font-size: 12px;
    font-weight: 800;
}

.docs-article section {
    scroll-margin-top: 105px;
}

.docs-article section h2 {
    margin-bottom: 12px;
}

.docs-article section h3 {
    margin-top: 28px;
}

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

.docs-article table code {
    white-space: nowrap;
}

.docs-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.docs-next span,
.docs-next strong {
    display: block;
}

.docs-next span {
    color: var(--muted);
    font-size: 12px;
}

.docs-next strong {
    margin-top: 3px;
}

.http-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.http-method {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 6px;
    background: #dcfae6;
    color: #067647;
    font: 800 12px/1.4 "DM Sans", sans-serif;
}

.field-table td:first-child {
    width: 210px;
}

.field-table td:nth-child(2) {
    width: 120px;
    color: var(--muted);
}

@media (max-width: 800px) {
    .docs-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .docs-nav {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        width: 100%;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--line);
    }

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

    .docs-cards,
    .endpoint-list {
        grid-template-columns: 1fr;
    }

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

    .docs-article table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    .docs-article pre {
        max-width: 100%;
        overflow-x: auto;
    }

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