.go-shell-header .newsx-site-identity .go-site-light-logo,
.go-shell-header .newsx-site-identity .go-site-dark-logo,
.go-shell-topbar-brand .go-site-light-logo,
.go-shell-topbar-brand .go-site-dark-logo {
  display: flex;
  align-items: center;
}

.go-shell-header .newsx-site-identity .go-site-logo-image,
.go-shell-topbar-brand .go-site-logo-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 188px;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}

.go-shell-topbar-brand .go-site-logo-image {
  max-width: 176px;
  max-height: 42px;
}

.go-shell-header .go-offcanvas-site-brand .go-offcanvas-logo-image--open {
  display: block;
  width: 100%;
  height: auto;
  max-width: 188px;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
}

.go-shell-header .go-offcanvas-site-brand .go-offcanvas-logo-image--compact {
  display: block;
  width: auto;
  height: auto;
  max-width: 68px;
  max-height: 30px;
  object-fit: contain;
  object-position: center;
}

.go-shell-header .go-offcanvas-site-brand {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.go-shell-header .go-offcanvas-site-brand .newsx-site-identity,
.go-shell-header .go-offcanvas-site-brand .site-logo,
.go-shell-header .go-offcanvas-site-brand .custom-logo-link,
.go-shell-header .go-offcanvas-site-brand .go-offcanvas-logo {
  min-width: 0;
  max-width: 100%;
}

.go-shell-header .go-offcanvas-site-brand .go-offcanvas-logo--open {
  width: 100%;
}

.go-shell-header .go-offcanvas-header-actions {
  flex: 0 0 auto;
}

html:not(.dark):not([data-theme="dark"]) body:not(.dark):not(.dark-mode):not(.is-dark-theme):not(.newsx-dark-mode) .go-shell-header .go-offcanvas-site-brand .go-offcanvas-light-logo.go-offcanvas-logo--open {
  display: none !important;
}

html:not(.dark):not([data-theme="dark"]) body:not(.dark):not(.dark-mode):not(.is-dark-theme):not(.newsx-dark-mode) .go-shell-header .go-offcanvas-site-brand .go-offcanvas-light-logo.go-offcanvas-logo--compact {
  display: inline-flex !important;
}

:is(html.dark body, body.dark, body.dark-mode, body.is-dark-theme, body.newsx-dark-mode, html[data-theme="dark"] body, body[data-theme="dark"]) .go-shell-header .go-offcanvas-site-brand .go-offcanvas-dark-logo.go-offcanvas-logo--open {
  display: none !important;
}

:is(html.dark body, body.dark, body.dark-mode, body.is-dark-theme, body.newsx-dark-mode, html[data-theme="dark"] body, body[data-theme="dark"]) .go-shell-header .go-offcanvas-site-brand .go-offcanvas-dark-logo.go-offcanvas-logo--compact {
  display: inline-flex !important;
}

.go-shell-header .go-offcanvas-site-brand .go-offcanvas-logo-image--compact {
  max-width: 92px;
  max-height: 32px;
  object-position: left center;
}

body.go-desktop-shell-collapsed .go-shell-header .go-offcanvas-site-brand .go-offcanvas-logo-image--compact,
body.has-offcanvas-closed .go-shell-header .go-offcanvas-site-brand .go-offcanvas-logo-image--compact {
  max-width: 60px;
  max-height: 28px;
}

.go-shell-footer .newsx-footer-logo {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.go-shell-footer .newsx-footer-logo .go-footer-logo-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(240px, 100%);
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

.go-shell-footer .newsx-footer-logo .go-footer-logo-image--dark {
  display: none;
}

:is(html.dark body, body.dark, body.dark-mode, body.is-dark-theme, body.newsx-dark-mode, html[data-theme="dark"] body, body[data-theme="dark"]) .go-shell-footer .newsx-footer-logo .go-footer-logo-image--light {
  display: none !important;
}

:is(html.dark body, body.dark, body.dark-mode, body.is-dark-theme, body.newsx-dark-mode, html[data-theme="dark"] body, body[data-theme="dark"]) .go-shell-footer .newsx-footer-logo .go-footer-logo-image--dark {
  display: block !important;
}

@media (max-width: 960px) {
  .go-shell-header .newsx-site-identity .go-site-logo-image,
  .go-shell-topbar-brand .go-site-logo-image {
    max-width: 150px;
    max-height: 34px;
  }

  .go-shell-header .go-offcanvas-site-brand .go-offcanvas-logo-image--compact {
    max-width: 86px;
    max-height: 32px;
    object-position: left center;
  }

  .go-shell-footer .newsx-footer-logo .go-footer-logo-image {
    max-width: min(200px, 100%);
    max-height: 42px;
  }
}

@media (max-width: 640px) {
  .go-shell-header .go-offcanvas-header {
    gap: 12px;
  }

  .go-shell-header .go-offcanvas-header-actions {
    gap: 8px;
  }

  .go-shell-header .go-offcanvas-site-brand .go-offcanvas-logo-image--open {
    max-width: 100%;
    max-height: 30px;
  }

  .go-shell-header .go-offcanvas-site-brand .go-offcanvas-logo-image--compact {
    max-width: 82px;
    max-height: 30px;
  }
}
