/* Autosummary tables: left-aligned */
.longtable.docutils {
    margin-left: 0;
    margin-right: auto;
}

/* Admonitions: normal font size, no left accent bar */
div.admonition {
    font-size: inherit !important;
    border-left: 0 !important;
}

/* Table borders and alternating row backgrounds */
body table.docutils tbody tr.row-odd,
body table.docutils tbody tr.row-even {
    background: transparent !important;
}

body table.docutils td,
body table.docutils th {
    border: 1px solid var(--color-foreground-border) !important;
    padding: 8px 12px;
}

body table.docutils thead th {
    background-color: #e8edf2 !important;
}

body table.docutils tbody tr.row-odd {
    background-color: #f5f5f5 !important;
}

/* Docstring section titles: normal case, bold, gray background */
dd p.rubric,
dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .field-list > dt,
.admonition > .admonition-title {
    text-transform: none !important;
    font-size: inherit !important;
    font-weight: 700 !important;
    background-color: #f5f5f5;
    padding: 4px 8px;
}

/* Constants page: lighter section headers */
#constants dd p.rubric {
    background-color: transparent;
    padding: 0;
    border-bottom: 1px solid #ccc;
}

/* Function signatures: normal weight, bold only for name and param names */
dt.sig.sig-object,
dt.sig.sig-object * {
    font-weight: 400 !important;
}

dt.sig.sig-object .sig-name,
dt.sig.sig-object .sig-name *,
dt.sig.sig-object .sig-param > .n,
dt.sig.sig-object .sig-param > .n * {
    font-weight: 700 !important;
}

/* Parameter/return descriptions: indented on new line (via custom.js) */
dl.field-list dd .param-desc {
    display: inline-block;
    padding-left: 1.5em;
}

/* Parameter lists: no bullets, keep indentation */
dl.field-list dd ul.simple {
    list-style: none !important;
    padding-left: 1.2em !important;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    body table.docutils thead th {
        background-color: #2a2e33 !important;
    }
    body table.docutils tbody tr.row-odd {
        background-color: #1e2227 !important;
    }
}

body[data-theme="dark"] table.docutils thead th {
    background-color: #2a2e33 !important;
}
body[data-theme="dark"] table.docutils tbody tr.row-odd {
    background-color: #1e2227 !important;
}
