/* Motivox brand mark — theme-aware light/dark swap + hard size caps */
.motivox-logo {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 0;
  max-width: 100%;
  overflow: hidden;
  vertical-align: middle;
}

.motivox-logo__img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  flex-shrink: 0;
}

.motivox-logo__img--dark {
  display: none;
}

html[data-theme="dark"] .motivox-logo:not(.motivox-logo--on-dark) .motivox-logo__img--light {
  display: none;
}

html[data-theme="dark"] .motivox-logo:not(.motivox-logo--on-dark) .motivox-logo__img--dark {
  display: block;
}

.motivox-logo--on-dark .motivox-logo__img--light {
  display: none !important;
}

.motivox-logo--on-dark .motivox-logo__img--dark {
  display: block !important;
}

.motivox-logo--compact {
  max-height: 1.75rem;
}

.motivox-logo--compact .motivox-logo__img {
  height: 1.75rem !important;
  max-height: 1.75rem !important;
}

.motivox-logo--header {
  max-height: 2rem;
}

.motivox-logo--header .motivox-logo__img {
  height: 2rem !important;
  max-height: 2rem !important;
}

.motivox-logo--hero {
  max-height: 7.5rem;
}

.motivox-logo--hero .motivox-logo__img {
  height: 7.5rem !important;
  max-height: 7.5rem !important;
}

.motivox-logo--auth {
  max-height: 7rem;
}

.motivox-logo--auth .motivox-logo__img {
  height: 7rem !important;
  max-height: 7rem !important;
}

/* Brand link wrappers — never let the mark blow the header */
.ga-landing-brand,
.bo-brand,
.tech-header__mark.bo-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  max-height: 2.5rem;
  overflow: hidden;
}

.ga-landing-brand:hover {
  opacity: 0.9;
}

.ga-home-brand,
.ga-home-brand--hero {
  display: flex;
  justify-content: center;
  max-width: 16rem;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.ga-home-brand--hero {
  max-width: 14rem;
  max-height: 8rem;
}

.portal-brand__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-height: 1.75rem;
  overflow: hidden;
}

.portal-brand__logo .motivox-logo__img {
  height: 1.75rem !important;
  max-height: 1.75rem !important;
  width: auto !important;
}

@media (max-width: 899px) {
  .auth-shell__logo .motivox-logo,
  .auth-shell__logo .motivox-logo__img {
    max-height: 2.75rem !important;
    height: 2.75rem !important;
  }
}
