/*
 * Context preview for the shared Clay Club navigation.
 * Add ?menu=shared to a page URL to test the new navigation in place.
 */
html:not(.clay-shared-menu-preview) clay-club-menu {
  display: none;
}

html.clay-shared-menu-preview,
html.clay-shared-menu-preview body {
  min-height: 100%;
  overflow-x: clip;
}

html.clay-shared-menu-preview body {
  padding-left: 0;
  transition: padding-left .36s cubic-bezier(.2,.85,.2,1);
}

/* Shift page sections only while the desktop rail is actually visible. */
html.clay-shared-menu-preview.clay-menu-rail-visible body {
  padding-left: 104px;
}

/* Fit the opening hero inside the remaining canvas once the rail appears. */
html.clay-shared-menu-preview.clay-menu-rail-visible .hero-clay-banner {
  margin-left: 0;
  width: 100% !important;
}

/* Full-viewport legacy carousels must use the remaining page width once the rail is visible. */
html.clay-shared-menu-preview.clay-menu-rail-visible .w-screen:not(.hero-clay-banner) {
  max-width: 100%;
  width: 100% !important;
}

@media (max-width: 760px) {
  html.clay-shared-menu-preview body,
  html.clay-shared-menu-preview.clay-menu-rail-visible body {
    padding-bottom: 86px;
    padding-left: 0;
  }

  html.clay-shared-menu-preview .hero-clay-banner,
  html.clay-shared-menu-preview.clay-menu-rail-visible .hero-clay-banner {
    margin-left: 0;
    width: 100% !important;
  }
}

