html:has(body.maus-header-logo-only) {
    background-color: #000;
}

.maus-logo-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 1rem 1.25rem;
    box-sizing: border-box;
    background: #000;
    border-bottom: none;
    box-shadow: none;
}

/* Utrymme så innehåll inte hamnar under fixed header; samma ton som header så ingen vit rand syns */
body.maus-header-logo-only {
    padding-top: 5.5rem;
    scroll-padding-top: 5.5rem;
    background-color: #000;
}

body.admin-bar .maus-logo-header {
    top: 32px;
}

body.admin-bar.maus-header-logo-only {
    padding-top: calc(5.5rem + 32px);
    scroll-padding-top: calc(5.5rem + 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .maus-logo-header {
        top: 46px;
    }

    body.admin-bar.maus-header-logo-only {
        padding-top: calc(5.5rem + 46px);
        scroll-padding-top: calc(5.5rem + 46px);
    }
}

.maus-logo-header__inner {
    max-width: 92.5rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem 1rem;
}

/*
 * Lithium-sidor: samma 76rem-räls och sidpadding som .lithium-proof__container (style.css + lithium_proof.css)
 * så språkväljaren linjerar med blocken under.
 */
body.page-has-lithium-blocks .maus-logo-header {
    padding-left: 0;
    padding-right: 0;
}

body.page-has-lithium-blocks .maus-logo-header__inner {
    max-width: 76rem;
    width: 100%;
    box-sizing: border-box;
    padding-left: 3.125rem;
    padding-right: 3.125rem;
}

body.page-has-lithium-blocks .maus-logo-header__link img {
    max-height: 3.5rem;
}

body.page-has-lithium-blocks.maus-header-logo-only {
    padding-top: 6.25rem;
    scroll-padding-top: 6.25rem;
}

body.admin-bar.page-has-lithium-blocks.maus-header-logo-only {
    padding-top: calc(6.25rem + 32px);
    scroll-padding-top: calc(6.25rem + 32px);
}

@media only screen and (max-width: 991px) {
    body.page-has-lithium-blocks .maus-logo-header__inner {
        padding-left: 1.875rem;
        padding-right: 1.875rem;
    }
}

@media only screen and (max-width: 767px) {
    body.page-has-lithium-blocks .maus-logo-header {
        padding-left: 0;
        padding-right: 0;
    }

    body.page-has-lithium-blocks .maus-logo-header__inner {
        padding-left: 1.125rem;
        padding-right: 1.125rem;
    }

    body.page-has-lithium-blocks .maus-logo-header__link img {
        max-height: 2.85rem;
    }

    body.page-has-lithium-blocks.maus-header-logo-only {
        padding-top: 5.5rem;
        scroll-padding-top: 5.5rem;
    }

    body.admin-bar.page-has-lithium-blocks.maus-header-logo-only {
        padding-top: calc(5.5rem + 46px);
        scroll-padding-top: calc(5.5rem + 46px);
    }
}

.maus-logo-header__inner .maus-lang-switcher {
    margin-left: auto;
    flex-shrink: 0;
}

.maus-logo-header__link {
    display: inline-block;
    line-height: 0;
    flex-shrink: 0;
}

.maus-logo-header__link:focus-visible {
    outline: 2px solid rgba(204, 0, 19, 0.85);
    outline-offset: 4px;
    border-radius: 0.25rem;
}

.maus-logo-header__link img {
    display: block;
    height: auto;
    max-height: 2.75rem;
    width: auto;
}

@media only screen and (max-width: 767px) {
    .maus-logo-header {
        padding: 0.85rem 1.125rem;
    }

    .maus-logo-header__link img {
        max-height: 2.35rem;
    }

    body.maus-header-logo-only {
        padding-top: 5rem;
        scroll-padding-top: 5rem;
    }

    body.admin-bar.maus-header-logo-only {
        padding-top: calc(5rem + 46px);
        scroll-padding-top: calc(5rem + 46px);
    }
}
