/**
 * Meatbox Family wordmark + admin-bar scroll-away (logged-in editors only).
 */

/* ── Header lockup (mockup: espresso tile + two-tone wordmark) ── */
.mb-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.mb-brand-logo:hover,
.mb-brand-logo:focus-visible {
  text-decoration: none;
  opacity: 0.92;
}

.mb-brand-logo__tile {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--color-background-dark);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.mb-brand-logo__glyph {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.mb-brand-logo__text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-background-dark);
  line-height: 1.15;
}

.mb-brand-logo__accent {
  color: var(--color-primary-dark);
}

/* ── Header: Customizer custom logo (Appearance → Customize → Site Identity) ──
   Full lockup image (glyph + wordmark), so no espresso tile and no gap. */
.mb-brand-logo--custom {
  gap: 0;
  flex: 0 0 auto;
}

.mb-brand-logo__image {
  display: block;
  width: auto;
  height: 40px;
  max-width: 100%;
  object-fit: contain;
}

/* Desktop nav is 80px tall (h-20) — 48px leaves balanced breathing room. */
@media (min-width: 1024px) {
  .mb-brand-logo__image {
    height: 48px;
  }
}

/* WooCommerce pages: parent theme `.woocommerce img { height:100%; object-fit:cover }`
   targets product thumbnails but also hits the header lockup — restore sizing here
   (#site-header beats .woocommerce img on specificity). */
#site-header .mb-brand-logo img {
  object-fit: contain;
}

#site-header .mb-brand-logo__image {
  width: auto;
  height: 40px;
}

@media (min-width: 1024px) {
  #site-header .mb-brand-logo__image {
    height: 48px;
  }
}

#site-header .mb-brand-logo__glyph {
  width: 32px;
  height: 32px;
}

/* ── Footer lockup (mockup: glyph + single-line wordmark) ── */
.mb-brand-logo--footer {
  gap: 11px;
  margin-bottom: 1rem;
}

.mb-brand-logo__glyph--footer {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.mb-brand-logo__text--footer {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text-primary);
}

/* Dark footer bar (parent bottom strip) — white wordmark like mockup */
.bg-background-dark .mb-brand-logo__text--footer,
.ncs-site-footer .bg-background-dark .mb-brand-logo__text--footer {
  color: #fff;
}
