/* API-documentatie; de opbouw (kop, inhoudsopgave, artikel) komt uit views/over/over.style.css. */

.api-part {
    margin: 0 0 4px !important; padding-top: 8px;
    font: 600 13px var(--font-ui) !important; letter-spacing: .04em; color: var(--sky);
}
.api-article section + .api-part { margin-top: 24px !important; padding-top: 32px; border-top: 3px solid var(--line); }
.api-toc-group { padding: 14px 14px 4px; margin-left: -2px; font: 600 12.5px var(--font-ui); color: var(--sky); }
.api-toc-group:first-child { padding-top: 0; }

.api-article code { font: 0.86em/1.4 ui-monospace, Consolas, 'Cascadia Mono', monospace; background: var(--mist); padding: 1px 5px; border-radius: 5px; }
.api-code {
    margin: 12px 0 22px; padding: 14px 18px; border-radius: 12px; overflow-x: auto;
    background: #0F1638; color: #E6EBFF; font: 13.5px/1.6 ui-monospace, Consolas, 'Cascadia Mono', monospace;
}
:root[data-theme="donker"] .api-code { background: #070B22; }
.api-code code { background: none; padding: 0; font: inherit; color: inherit; white-space: pre; }

.api-steps { padding-left: 1.3em; font: 18px/1.7 var(--font-text); }
.api-steps li { margin-bottom: 4px; }
.api-article ul { font: 17px/1.7 var(--font-text); padding-left: 1.2em; }
.api-article ul li { margin-bottom: 6px; }

.api-facts { display: grid; gap: 10px; margin: 8px 0 24px; padding: 18px 22px; background: var(--mist); border-radius: 16px; }
.api-facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.api-facts dt { font-weight: 500; font-size: 15px; color: var(--muted); }
.api-facts dd { margin: 0; font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.api-facts code { background: var(--surface); }

.api-table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 15px; }
.api-table th { text-align: left; font: 500 13px var(--font-ui); color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--line); }
.api-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.api-table td:first-child { white-space: nowrap; }

/* Lange regels code mogen de kolom niet oprekken: alleen het codeblok scrolt. */
.api-article { min-width: 0; }
@media (max-width: 900px) {
    .over-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .api-facts div { grid-template-columns: 1fr; gap: 2px; }
    .api-table, .api-table tbody, .api-table tr, .api-table td { display: block; }
    .api-table thead { display: none; }
    .api-table tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
    .api-table td { border: 0; padding: 2px 0; white-space: normal !important; }
}
