/* DAVID API reference styles; existing tool pages retain their layout. */
.api-docs-nav[hidden] { display: none !important; }
body.docs-api-page .docs-sidebar-inner { max-height: 100vh; overflow-y: auto; }
.api-docs { max-width: 1100px; color: #212529; line-height: 1.6; }
.api-docs .api-docs-title { margin-top: 0; color: var(--ink); }
.api-docs .doc-section :is(h4,h5) { overflow-wrap: anywhere; }
.api-docs .api-docs-updated { color: #606870; font-size: .95rem; }
.api-docs a { overflow-wrap: anywhere; }
.api-docs code { color: #213b54; font-family: Consolas, Menlo, monospace; }
.api-docs pre { background: #f5f7f9; border: 1px solid #d9dfe5; padding: 1rem; overflow-x: auto; line-height: 1.5; }
.api-docs pre code { white-space: pre; font-size: .88rem; }
.api-docs .api-table-wrap { overflow-x: auto; margin: 1rem 0; }
.api-docs table { border-collapse: collapse; width: 100%; text-align: left; }
.api-docs th, .api-docs td { padding: .6rem .75rem; border: 1px solid #d9dfe5; vertical-align: top; }
.api-docs th { background: #eef3f8; }
.api-docs td { overflow-wrap: anywhere; }
.api-docs img { display: block; max-width: 100%; height: auto; margin: 1rem 0; }
.api-docs .api-workflow { max-width: 850px; }
.api-docs :is(h3,h4,h5)[id] { scroll-margin-top: 110px; }
@media (max-width: 800px) {
 body.docs-api-page .docs-sidebar-inner { position: static; max-height: none; }
 .api-docs { padding: 1rem !important; }
 .api-docs pre { max-width: 100%; }
}

.api-docs .api-reference-group { font-weight: 600; margin: 2rem 0 .75rem; color: var(--ink); }
