:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1d2939;
    background: #f7f8fa;
    font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; font-size: 15px; line-height: 1.65; }
a { color: #1e5fb8; text-underline-offset: 0.16em; }
a:hover { color: #10427f; }
.api-header, .api-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; }
.api-header { padding: 0.85rem max(1.25rem, calc((100vw - 1180px) / 2)); border-bottom: 1px solid #e4e7ec; }
.api-brand { color: #101828; font-weight: 700; text-decoration: none; }
.api-header nav, .api-footer { display: flex; gap: 1.25rem; }
.api-header nav a, .api-footer a { color: #475467; text-decoration: none; }
.api-shell { max-width: 1400px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.api-layout { display: grid; grid-template-columns: 190px minmax(0, 760px); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.api-sidebar { position: sticky; top: 1.25rem; display: grid; gap: 0.45rem; padding: 0.5rem 0; font-size: 0.88rem; }
.api-sidebar strong { margin-bottom: 0.4rem; color: #101828; }
.api-sidebar a { color: #475467; text-decoration: none; }
.api-sidebar a:hover { color: #1e5fb8; }
.api-eyebrow { margin: 0 0 0.4rem; color: #667085; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.api-doc-content h1 { margin: 0 0 0.6rem; color: #101828; font-size: clamp(2rem, 5vw, 2.65rem); line-height: 1.15; letter-spacing: -0.035em; }
.api-lead { margin: 0 0 1.75rem; color: #475467; font-size: 1.1rem; }
.api-doc-content section { padding: 1.8rem 0 0.3rem; border-top: 1px solid #eaecf0; margin-top: 1.7rem; scroll-margin-top: 1rem; }
.api-doc-content h2 { margin: 0 0 0.65rem; color: #101828; font-size: 1.42rem; line-height: 1.3; }
.api-doc-content h3 { margin: 1.5rem 0 0.45rem; color: #1d2939; font-size: 1.05rem; }
.api-doc-content p { margin: 0.65rem 0; }
.api-doc-content ul { padding-left: 1.25rem; }
.api-doc-content li { padding: 0.12rem 0; }
.api-callout { padding: 1rem 1.15rem; border: 1px solid #d0d5dd; border-radius: 0.5rem; background: #f9fafb; }
.api-callout > strong { display: block; margin-bottom: 0.2rem; }
.api-callout > code { color: #101828; font-weight: 600; }
.api-callout p { margin-bottom: 0; color: #475467; }
.api-doc-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.api-doc-content pre { max-width: 100%; overflow-x: auto; margin: 0.85rem 0 1rem; padding: 1rem 1.1rem; border: 1px solid #eaecf0; border-radius: 0.5rem; background: #f8fafc; color: #101828; font-size: 0.88rem; line-height: 1.55; tab-size: 2; }
.endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin: 0.8rem 0; padding: 0.55rem 0.75rem; border: 1px solid #eaecf0; border-radius: 0.45rem; background: #fff; }
.endpoint span { min-width: 3.3rem; color: #176b45; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; }
.endpoint code { color: #101828; font-weight: 600; }
.endpoint small { margin-left: auto; color: #667085; }
.api-footer { width: min(1400px, calc(100% - 2.5rem)); margin: 0 auto; padding: 0.85rem 0; justify-content: center; border-top: 1px solid #e4e7ec; font-size: 0.88rem; }
@media (max-width: 760px) {
    .api-header { align-items: flex-start; }
    .api-header nav { flex-wrap: wrap; justify-content: flex-end; gap: 0.45rem 0.9rem; font-size: 0.88rem; }
    .api-shell { padding-top: 1.25rem; }
    .api-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .api-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 0.4rem 0.85rem; padding: 0.75rem; border: 1px solid #eaecf0; border-radius: 0.5rem; background: #f9fafb; }
    .api-sidebar strong { flex-basis: 100%; }
    .api-footer { flex-wrap: wrap; }
}
