/* Independent fixed chrome: no animated page or footer can become its containing block. */
:root {
  --site-safe-top: env(safe-area-inset-top, 0px);
  --site-safe-bottom: env(safe-area-inset-bottom, 0px);
  --site-safe-left: env(safe-area-inset-left, 0px);
  --site-safe-right: env(safe-area-inset-right, 0px);
  --site-announcement-height: 26px;
  --site-navigation-height: 64px;
  --site-chrome-height: calc(var(--site-safe-top) + var(--site-announcement-height) + var(--site-navigation-height));
  --site-header-edge: max(clamp(20px, 3.5vw, 46px), var(--site-safe-left), var(--site-safe-right));
}
html { scrollbar-gutter: stable; scroll-padding-top: calc(var(--site-chrome-height) + 20px); }
body { padding-top: var(--site-chrome-height); }
.site-announcement {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1301;
  height: calc(var(--site-announcement-height) + var(--site-safe-top));
  padding: var(--site-safe-top) 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  font: 400 8px/1.3 var(--sans);
  letter-spacing: .16em;
  white-space: nowrap;
  text-align: center;
}
.topbar {
  position: fixed;
  top: calc(var(--site-safe-top) + var(--site-announcement-height));
  left: 0;
  right: 0;
  z-index: 1300;
  height: var(--site-navigation-height);
  padding: 10px var(--site-header-edge);
  display: grid;
  grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr);
  align-items: center;
  gap: 16px;
  background: #fff;
  color: #000;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  transform: none;
}
.topbar > .brand { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 0; max-width: 100%; justify-self: center; }
.topbar > .brand img { width: 192.3077px; max-width: 100%; height: auto; }
.topbar > .nav-right { display: flex; gap: 0; pointer-events: auto; }
#hamburger, #searchOpen, #bagOpen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  color: #000;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}
#hamburger { flex-direction: column; gap: 5px; }
#hamburger span { width: 24px; background: #000; }
.topbar > .nav-right svg { width: 18px; height: 18px; stroke: #000; }
.stage { position: relative; isolation: isolate; }
.stage > .page { scroll-margin-top: var(--site-chrome-height); }
.stage > .page.hero { min-height: calc(100svh - var(--site-chrome-height)); padding-bottom: clamp(74px, 9svh, 98px); }
.registration-section {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 6vw, 88px) clamp(20px, 3.5vw, 46px) 28px;
  border-top: 1px solid var(--line);
  background: #fff;
  scroll-margin-top: calc(var(--site-chrome-height) + 20px);
}
.registration-section .newsletter-experience {
  position: relative;
  isolation: isolate;
  min-height: var(--registration-reserve, 0px) !important;
}
.site-footer { position: relative; isolation: isolate; padding-top: 0; border-top: 0; }
.site-footer .social { margin-top: 0; }
.mnav { display: block; top: var(--site-chrome-height); z-index: 1200; }
.chat, .account { top: var(--site-chrome-height); z-index: 1250; }
.site-panel { top: var(--site-chrome-height); height: calc(100svh - var(--site-chrome-height)); padding-bottom: max(clamp(24px, 4vw, 44px), var(--site-safe-bottom)); }
.site-panel-overlay { top: var(--site-chrome-height); }
.site-panel-overlay:not(.open) { pointer-events: none; }
#cookieModal { z-index: 1400; }
.cookie { padding-bottom: calc(20px + var(--site-safe-bottom)); }
.mnav-inner { padding-bottom: calc(46px + var(--site-safe-bottom)); }
.stage > .page, .registration-section, .site-footer, .cookie {
  padding-left: max(clamp(20px, 3.5vw, 46px), var(--site-safe-left));
  padding-right: max(clamp(20px, 3.5vw, 46px), var(--site-safe-right));
}
@media (max-width: 820px) {
  :root { --site-header-edge: max(12px, var(--site-safe-left), var(--site-safe-right)); }
  .topbar { grid-template-columns: 88px minmax(0, 1fr) 88px; gap: 0; }
  .topbar > .brand { width: min(192.3077px, 100%); }
  .registration-section { padding-bottom: 30px; }
}

/* In landscape/short viewports, scroll the whole drawer instead of collapsing its main content. */
@media (max-height: 500px) {
  .site-panel { overflow-y: auto; overscroll-behavior: contain; }
  .site-panel-head, .bag-foot { flex-shrink: 0; }
  .site-panel .panel-main { flex: 0 0 auto; overflow: visible; }
}

/* Hide landing controls while preserving the original header grid and logo position. */
#siteNavigation[data-landing-controls-disabled] :is(#hamburger, #searchOpen, #bagOpen) {
  visibility: hidden;
  pointer-events: none;
  cursor: default;
  opacity: 1;
}
body:has(.page[data-page="home"].active) #siteNavigation :is(#hamburger, #searchOpen, #bagOpen) {
  visibility: hidden;
  pointer-events: none;
  cursor: default;
  opacity: 1;
}
body:has(.page[data-page="home"].active) :is(#mnav, #searchPanel, #bagPanel, #sitePanelOverlay) {
  display: none !important;
}
