/* Workaround: sphinx-book-theme does not support configuring the default mode yet.
   See https://github.com/executablebooks/sphinx-book-theme/issues/750 */
.theme-switch-button {
    display: none !important;
}

.bd-main .bd-content .bd-article-container {
    max-width: 100%;
}

.table tbody tr:hover {
    --pst-color-table-row-hover-bg: transparent;
    background-color: transparent !important;
}

/* Bootstrap fakes row hover via box-shadow on cells; reset both the variable and the shadow */
.table tbody tr:hover > td,
.table tbody tr:hover > th {
    --bs-table-bg-state: initial;
    box-shadow: none !important;
}

p:has(.darktable) + table th {
    background-color: #232323;
    color: #ffffff;
}

.wip-banner {
    color: #d10014;
    font-size: 2rem;
    font-weight: 700;
}

.wip-banner__icon {
    display: inline-block;
    min-width: 1.5em;
    margin-right: 0.35em;
    border-radius: 999px;
    background-color: #d10014;
    color: #ffffff;
    line-height: 1.5em;
    text-align: center;
}

p:has(.col5) + table th {
    background-color: #d10014;
    color: #ffffff;
    border-radius: 8px;
    margin: 8px;
    padding: 8px;
}
