/* Remove logo backlighting in the site header and footer without resizing. */
.header.header--inner.header--modern .header__logo,
.home-new-header__logo,
body:not(.page-home):not(.page-profile6) > .footer .footer__logo,
.page-profile6 .account-inline-footer .footer .footer__logo,
body.page-home .footer .footer__logo {
    border-color: transparent;
    background: transparent;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
}

.header.header--inner.header--modern .header__logo img,
.home-new-header__logo img,
body:not(.page-home):not(.page-profile6) > .footer .footer__logo img,
.page-profile6 .account-inline-footer .footer .footer__logo img,
body.page-home .footer .footer__logo img {
    filter: none;
    box-shadow: none;
    text-shadow: none;
}

/* The original production mark uses sprite.svg#logo-2 (238x58).
   Preserve intrinsic SVG fill colors; never apply saturate/contrast/filter. */
.header.header--inner.header--modern .header__logo .logo__icon {
    display: block;
    flex: 0 0 auto;
    width: 158px;
    height: auto;
    aspect-ratio: 238 / 58;
    margin: 0;
}
.header.header--inner:not(.header--modern) .header__logo .logo__icon {
    display: block;
    width: 238px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 238 / 58;
    margin: 0;
}
body:not(.page-home):not(.page-profile6) > .footer .footer__logo .logo__icon,
.page-profile6 .account-inline-footer .footer .footer__logo .logo__icon,
body.page-home .footer .footer__logo .logo__icon {
    display: block;
    width: 138px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 238 / 58;
    margin: 0;
}
.header .header__logo .logo__icon svg,
.footer .footer__logo .logo__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    opacity: 1;
    filter: none;
    box-shadow: none;
    mix-blend-mode: normal;
}
@media (max-width: 1079px) {
    .header.header--inner .header__logo .logo__icon {
        width: 150px;
        max-width: 100%;
        height: auto;
    }
}

/* Native 238:58 proportions are preserved on mobile too. */
.header.header--inner .header__logo > img {
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: none;
}
@media (max-width: 1079px) {
    .header.header--inner .header__logo > img {
        width: 150px;
        height: auto;
        max-height: 37px;
    }
}
