/* Targeted post-restore fixes. Loaded after the legacy override bundle. */
.theme-logo-slot {
    position: relative;
    display: grid;
    place-items: center;
}

.theme-logo {
    grid-area: 1 / 1;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    filter: none !important;
}

html[data-theme="dark"] .theme-logo--light,
html[data-theme="light"] .theme-logo--dark {
    display: none !important;
}

html[data-theme="dark"] .theme-logo--dark,
html[data-theme="light"] .theme-logo--light {
    display: block !important;
    filter: none !important;
}

html[data-theme] body > header.site-header img.site-brand-logo.theme-logo,
html[data-theme] body > header.site-header a:hover img.site-brand-logo.theme-logo,
html[data-theme] body > footer.site-footer img.theme-logo {
    filter: none !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.site-footer > .absolute.inset-0 {
    display: none !important;
}
