:root {
  --ts-wordmark-height: 42px;
  --ts-wordmark-height-mobile: 34px;
}

html body .ts-logo:has(.ts-wordmark-logo) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  overflow: visible !important;
  text-decoration: none !important;
}

html body .ts-wordmark-logo,
html body .ts-header-shell .ts-wordmark-logo,
html body .ts-mobile-menu .ts-wordmark-logo,
html body footer .ts-wordmark-logo,
html body .tsn-footer__bubble--brand .ts-wordmark-logo {
  display: block !important;
  box-sizing: border-box !important;
  width: auto !important;
  height: var(--ts-wordmark-height) !important;
  max-width: none !important;
  aspect-ratio: 8 / 3 !important;
  object-fit: contain !important;
  object-position: center !important;
}

html body .ts-header-shell .ts-wordmark-logo,
html body .ts-mobile-menu .ts-wordmark-logo {
  filter: brightness(0) saturate(100%) invert(13%) sepia(30%) saturate(3341%) hue-rotate(201deg) brightness(78%) contrast(112%) !important;
}

html body.ts-site-dark .ts-header-shell .ts-wordmark-logo,
html body.ts-site-dark .ts-mobile-menu .ts-wordmark-logo {
  filter: none !important;
}

html body footer .ts-wordmark-logo--footer,
html body .tsn-footer__bubble--brand .ts-wordmark-logo {
  width: auto !important;
  height: var(--ts-wordmark-height) !important;
  max-width: none !important;
  margin: 0 auto 14px !important;
  filter: none !important;
}

@media (max-width: 700px) {
  html body.home .ts-header-shell > .ts-logo:has(.ts-wordmark-logo) {
    display: inline-flex !important;
  }

  html body .ts-wordmark-logo,
  html body .ts-header-shell .ts-wordmark-logo,
  html body .ts-mobile-menu .ts-wordmark-logo,
  html body footer .ts-wordmark-logo,
  html body .tsn-footer__bubble--brand .ts-wordmark-logo {
    width: auto !important;
    height: var(--ts-wordmark-height-mobile) !important;
    max-width: none !important;
  }

  html body footer .ts-wordmark-logo--footer,
  html body .tsn-footer__bubble--brand .ts-wordmark-logo {
    height: var(--ts-wordmark-height-mobile) !important;
    margin-bottom: 12px !important;
  }
}
