/* Keep the brand and touch controls in separate columns. */
@media (max-width: 768px) {
  #dynamic-header .glass-navbar { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 2px; height: 56px; padding: 0 8px 0 12px; }
  #dynamic-header .nav-brand { position: static; transform: none; justify-content: flex-start; width: auto; min-width: 0; gap: 6px; white-space: nowrap; }
  #dynamic-header .nav-brand img { height: 28px; flex: none; }
  #dynamic-header .nav-brand span { font-size: clamp(.75rem, 3.6vw, 1rem) !important; letter-spacing: 0; }
  #dynamic-header :is(.mobile-only-search, .menu-mobile-icon) { position: static; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; }
  #dynamic-header .mobile-menu-dropdown { top: 64px; right: 0; max-width: calc(100vw - 24px); }
  #dynamic-header :is(a, button):focus-visible { outline: 2px solid var(--primary-gold); outline-offset: 2px; }
  body .mobile-floating-bar { gap: 12px; padding: 8px 16px !important; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important; transform: translateY(calc(100% + 2px)); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .22s ease-out, opacity .22s ease-out, visibility .22s; }
  body .mobile-floating-bar.is-visible { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  body .mobile-floating-bar .floating-info { min-width: 0; gap: 3px; }
  body .mobile-floating-bar .mobile-bar-note { font-size: .6875rem; line-height: 1.25; color: #bcb2a8; }
  body .mobile-floating-bar .mobile-bar-price { font-size: .875rem; line-height: 1.25; white-space: nowrap; }
  body .mobile-floating-bar .btn { display: inline-flex !important; align-items: center; justify-content: center; flex: none; min-height: 44px; padding: 10px 14px !important; font-size: .75rem !important; letter-spacing: 0; box-shadow: none !important; }
  body:has(.mobile-floating-bar) { padding-bottom: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { body .mobile-floating-bar { transition: none; } }

/* The same compact menu is available when desktop text no longer fits. */
#dynamic-header .glass-navbar.editorial-nav-compact { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 8px; height: auto; min-height: 65px; padding-block: 8px; }
#dynamic-header .editorial-nav-compact :is(.nav-links, .nav-actions) { display: none; }
#dynamic-header .editorial-nav-compact .nav-brand { position: static; transform: none; width: auto; min-width: 0; justify-content: flex-start; margin-right: auto; }
#dynamic-header .editorial-nav-compact .nav-brand span { white-space: normal; line-height: 1.2; }
#dynamic-header .editorial-nav-compact :is(.mobile-only-search, .menu-mobile-icon) { position: static; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; }
#dynamic-header .editorial-nav-compact .mobile-menu-dropdown { top: calc(100% + 8px); right: 0; max-height: 70dvh; overflow-y: auto; }
