.hmv-campaign-logo {
  width: 112px !important;
  height: auto !important;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  /* White source pixels blend into the light platform surface. */
  mix-blend-mode: normal;
  background: #fff !important;
  box-shadow: none !important;
  border: 0 !important;
}
/* Keep the full campaign artwork legible and preserve its natural 1672:941 ratio. */
.hmv-logo.hmv-campaign-logo {
  width: 112px !important;
  height: 63.03px !important;
  max-width: 100%;
  object-fit: contain;
  padding: 0 !important;
  border-radius: 0;
  flex-shrink: 0;
}
.section-head .hmv-logo.hmv-campaign-logo {
  width: min(220px, 65vw) !important;
  height: auto !important;
  aspect-ratio: 1672 / 941;
}
.footer-logo.hmv-campaign-logo {
  width: 140px !important;
  height: auto;
  aspect-ratio: 1672 / 941;
  padding: 0;
  object-fit: contain;
}
@media (max-width: 480px) {
  .hmv-logo.hmv-campaign-logo { width: 96px !important; height: 54.03px !important; }
  .section-head .hmv-logo.hmv-campaign-logo { width: min(220px, 65vw) !important; height: auto !important; }
}

body:has(.hmv-campaign-logo) .hmv-topbar::after {
  background-image: url('/static/branding/logo_hmv_25.webp');
}

/* The full artwork already contains the hospital name; give navigation room. */
body:has(.brand-logo.hmv-campaign-logo) .nav .brand { min-width: unset; flex-shrink: 0; }
body:has(.brand-logo.hmv-campaign-logo) .nav .brand-text { display: none; }
body:has(.brand-logo.hmv-campaign-logo) .nav-actions .btn { width: auto; white-space: nowrap; }
@media (max-width: 1200px) {
  body:has(.brand-logo.hmv-campaign-logo) .nav-links { display: none; }
  body:has(.brand-logo.hmv-campaign-logo) .burger { display: flex; }
}
@media (max-width: 520px) {
  body:has(.brand-logo.hmv-campaign-logo) .nav-inner { gap: 12px; }
  body:has(.brand-logo.hmv-campaign-logo) .nav-actions .btn-primary { display: none; }
}
