body {
    background: #f5f7fb;
    color: #1f2937;
}

.api-docs-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 18px 56px;
}

.api-docs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 24px;
}

.api-docs-title-block,
.api-docs-status {
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    padding: 24px;
}

.api-docs-kicker {
    margin: 0 0 10px;
    color: #28732c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.api-docs-title-block h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: 0;
    color: #102a43;
}

.api-docs-lede {
    margin: 0;
    max-width: 780px;
    font-size: 17px;
    line-height: 1.7;
    color: #435569;
}

.api-docs-status h2,
.api-docs-section h2,
.api-docs-section h3 {
    margin-top: 0;
    color: #102a43;
    letter-spacing: 0;
}

.api-docs-status dl {
    margin: 0;
}

.api-docs-status dt {
    margin-top: 14px;
    color: #66788a;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.api-docs-status dd {
    margin: 5px 0 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.api-docs-grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.api-docs-toc {
    position: sticky;
    top: 16px;
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    padding: 16px;
}

.api-docs-toc h2 {
    margin: 0 0 10px;
    font-size: 16px;
}

.api-docs-toc a {
    display: block;
    padding: 8px 0;
    color: #28732c;
    font-weight: 700;
    text-decoration: none;
}

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

.api-docs-section {
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    padding: 24px;
}

.api-docs-section p,
.api-docs-section li {
    line-height: 1.7;
    color: #435569;
}

.api-docs-section code {
    background: #eef2f6;
    color: #102a43;
    border: 1px solid #dce5ef;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.92em;
}

.api-docs-code code {
    background: transparent;
    color: inherit;
    border: 0;
    border-radius: 0;
    padding: 0;
    font-size: inherit;
}

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

.api-docs-endpoint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 9px 12px;
    border-radius: 6px;
    background: #eef7ef;
    color: #16491a;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.api-docs-method {
    min-width: 46px;
    color: #ffffff;
    background: #28732c;
    border-radius: 4px;
    padding: 3px 7px;
    text-align: center;
    font-size: 12px;
}

.api-docs-code {
    margin: 14px 0 0;
    background: #111827;
    color: #e5eef7;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
}

.api-docs-note {
    border-left: 4px solid #28732c;
    background: #f0f8f1;
    padding: 12px 14px;
    border-radius: 0 6px 6px 0;
}

.api-docs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    overflow: hidden;
}

.api-docs-table th,
.api-docs-table td {
    border: 1px solid #dce5ef;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.api-docs-table th {
    background: #f2f6fa;
    color: #102a43;
}

@media (max-width: 880px) {
    .api-docs-hero,
    .api-docs-grid {
        grid-template-columns: 1fr;
    }

    .api-docs-toc {
        position: static;
    }
}
