/* Keep the Meridian footer mark at its natural ratio on every template. */
.home #footer.site-footer .footer-top > img,
body:not(.home) #site-footer.global-site-footer .footer-brand img {
  position: static !important;
  inset: auto !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: 170px !important;
  max-width: 170px !important;
  height: auto !important;
  max-height: 82px !important;
  aspect-ratio: 1200 / 565 !important;
  object-fit: contain !important;
  object-position: left center !important;
  transform: none !important;
  clip-path: none !important;
  filter: none !important;
  background: transparent !important;
}

.home #footer.site-footer .footer-top,
body:not(.home) #site-footer.global-site-footer .footer-top {
  align-items: center !important;
}

body:not(.home) #site-footer.global-site-footer .footer-brand {
  display: inline-flex !important;
  flex: 0 0 170px !important;
  width: 170px !important;
  max-width: 170px !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
}

/* Remove the two horizontal rules from the shared subpage footer while
 * preserving the existing information hierarchy and vertical spacing. */
body:not(.home) #site-footer.global-site-footer .footer-top,
body:not(.home) #site-footer.global-site-footer .footer-summary {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

@media (max-width: 880px) {
  .home #footer.site-footer .footer-top > img,
  body:not(.home) #site-footer.global-site-footer .footer-brand img {
    width: 132px !important;
    max-width: 132px !important;
    max-height: 64px !important;
  }

  body:not(.home) #site-footer.global-site-footer .footer-brand {
    flex-basis: 132px !important;
    width: 132px !important;
    max-width: 132px !important;
  }
}
