/**
 * Brand logo — token-driven sizing for header + footer.
 *
 * Single source of truth for the logo *visual height*. The header logo
 * is laid out with flexbox inside .nav-logo--brand (no absolute trick)
 * so the image height directly drives nav height instead of fighting it.
 * Tokens are mirrored in deep-marketing.css :root so both files agree.
 */

:root {
  --logo-nav-visual-h: var(--brand-logo-nav-h, 64px);
  --logo-footer-visual-h: var(--brand-logo-footer-h, 120px);
}

.nav { overflow: visible; }

.nav-logo--brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  min-height: 0;
  padding: 0 !important;
  line-height: 0;
}

/* Header logo image — laid out in-flow, height locked to the canonical
   --brand-logo-nav-h token so the navbar grid stays aligned. */
.brand-logo-img:not(.brand-logo-img--footer) {
  display: block;
  height: var(--logo-nav-visual-h) !important;
  min-height: var(--logo-nav-visual-h) !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  object-position: left center;
}

/* Footer logo slot — sized to the actual logo so the brand column has
   a predictable height the link columns can vertically center against. */
.footer-brand-logo {
  display: block;
  width: 100%;
  height: var(--logo-footer-visual-h);
  position: relative;
  overflow: visible;
  margin: 0 0 var(--s4);
  line-height: 0;
}

.brand-logo-img--footer {
  position: absolute;
  left: 0;
  top: 0;
  height: var(--logo-footer-visual-h) !important;
  min-height: unset !important;
  width: auto !important;
  max-width: min(220px, 100%) !important;
  margin: 0 !important;
}

.footer-brand .footer-tagline {
  margin-top: 0;
}
