/*
 * Midair manual — what the shared theme does not already cover.
 */

@media (prefers-color-scheme: dark) {
    /*
     * The theme bleaches the wordmark with `filter: brightness(0) invert(1)`,
     * because it assumes a black PNG. Ours is not black: the mark carries two
     * corporate-blue dots that the filter would flatten to white along with
     * the rest. We ship a real white wordmark instead, so swap the image in
     * and drop the filter.
     *
     * Both files are cropped to the same box, so the swap does not move the
     * wordmark. Guarded by @supports: where image replacement through
     * `content` is unavailable, the theme's filter stays and the logo is still
     * legible.
     */
    @supports (content: url("logo16_midair_white.png")) {
        .branding-link img,
        .site-sidebar img.logo,
        img.logo {
            content: url("logo16_midair_white.png");
            filter: none;
        }
    }
}
