/*
 * Hand-authored Sphinx/Doxygen bridge fixes.
 *
 * The generated doxygen-awesome-sphinx-bridge.css contains rules extracted from
 * Doxygen and Doxygen Awesome. Keep local compatibility overrides here so the
 * PowerShell generator stays focused on CSS extraction and selector rewriting.
 */

/* Disable global theme image dimming and white image backing in dark mode. */
html[data-theme="dark"] img:not(.only-dark, .dark-light) {
    filter: none;
}

html[data-theme="dark"] .bd-content img:not(.only-dark, .dark-light) {
    background-color: transparent;
}

/* Compensate for hard-coded embedded Doxygen selectors after doxysphinx scoping. */
html[data-theme="dark"] .doxygen-content div.memitem div.memdoc dl dt {
    color: var(--page-foreground-color) !important;
}

html[data-theme="dark"] .doxygen-content #titlearea,
html[data-theme="dark"] .doxygen-content #projectname {
    color: var(--page-foreground-color);
}

html[data-theme="dark"] .doxygen-content .contents > p > code,
html[data-theme="dark"] .doxygen-content .contents > p > code a {
    color: var(--code-foreground);
}

html[data-theme="dark"] .doxygen-content div.header,
html[data-theme="dark"] .doxygen-content div.memdoc,
html[data-theme="dark"] .doxygen-content dl.reflist dd,
html[data-theme="dark"] .doxygen-content table.memberdecls .memSeparator {
    background: unset;
}

html[data-theme="dark"] .bd-content .doxygen-content img:not(.only-dark, .dark-light),
html[data-theme="dark"] .bd-content .doxygen-content img.footer {
    background-color: transparent;
    filter: none;
}

html[data-theme="dark"] .doxygen-content code,
html[data-theme="dark"] .doxygen-content code a {
    color: var(--code-foreground);
}
