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

.docs-content {
    color: #d0d8e4;
}

.docs-kicker {
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.docs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #9fb2c7;
}

.docs-meta span {
    border: 1px solid var(--border);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--surface);
}

.docs-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.4rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.15);
    color: #bfdbfe;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.docs-content section {
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.docs-content section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.docs-header {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.docs-content h1,
.docs-content h2,
.docs-content h3,
.docs-content h4 {
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.docs-content h1 {
    font-size: 2.25rem;
    line-height: 1.15;
}

.docs-content h2 {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-top: 0.4rem;
    position: relative;
}

.docs-content h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    margin-top: 0.5rem;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.8), rgba(56, 189, 248, 0));
}

.docs-content h3 {
    font-size: 1.2rem;
    line-height: 1.35;
}

.docs-content p {
    color: inherit;
    line-height: 1.7;
}

.docs-content a {
    color: #7dd3fc;
    text-decoration: none;
}

.docs-content a:hover {
    color: #bae6fd;
}

.docs-content ul,
.docs-content ol {
    margin: 0;
    padding-left: 1.25rem;
    color: inherit;
}

.docs-content ul {
    list-style: disc;
}

.docs-content ol {
    list-style: decimal;
}

.docs-content li {
    margin: 0.35rem 0;
}

.docs-content code {
    color: #86efac;
    background: rgba(16, 185, 129, 0.12);
    padding: 0.12rem 0.35rem;
    border-radius: 0.4rem;
    font-size: 0.9em;
}

.docs-content pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    overflow-x: auto;
    color: #e2e8f0;
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.25);
}

.docs-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.95em;
}

.docs-toc {
    position: sticky;
    top: 24px;
    align-self: start;
    padding: 0.5rem 0 0.5rem 1.5rem;
    border-left: 1px solid var(--border);
}

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

    .docs-toc {
        position: static;
        border-left: none;
        padding-left: 0;
    }
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: inherit;
}

.docs-content th,
.docs-content td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding: 0.6rem 0.5rem;
    text-align: left;
}

.docs-content th {
    color: #e2e8f0;
    font-weight: 600;
}

.docs-endpoint-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
}

.docs-endpoint-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
    border-radius: 0.2rem;
    border: 1px solid var(--border);
    background: rgba(59, 130, 246, 0.08);
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1;
}

.docs-endpoint-pill code {
    background: transparent;
    padding: 0;
    color: inherit;
}
