/* Skogviken TIOS API docs (/api_docs/*) */

.api-docs pre {
    background: var(--bs-tertiary-bg);
    border-radius: .5rem;
    padding: 1rem;
    overflow-x: auto;
    font-size: .825rem;
}

.api-docs pre code {
    color: var(--bs-body-color);
    background: transparent;
    padding: 0;
}

/* Inline code (outside <pre>) needs its own contrast, not the light <pre> color */
.api-docs :not(pre) > code {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-code-color);
    padding: .15em .4em;
    border-radius: .35rem;
    font-size: .875em;
    word-break: break-word;
}

.api-docs .endpoint {
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.api-docs .method-badge {
    font-family: monospace;
    font-weight: 700;
    min-width: 4.5rem;
    text-align: center;
}

.api-docs .method-get { background-color: #0d6efd; }
.api-docs .method-post { background-color: #198754; }
.api-docs .method-patch { background-color: #fd7e14; }
.api-docs .method-put { background-color: #6f42c1; }
.api-docs .method-delete { background-color: #dc3545; }

.api-docs .endpoint-path {
    font-family: monospace;
    font-size: 1rem;
    word-break: break-all;
}

.api-docs .api-docs-nav .list-group-item {
    color: var(--bs-secondary-color);
}

.api-docs .api-docs-nav .list-group-item.active-page {
    color: var(--bs-link-color);
    font-weight: 600;
}
