/* The homepages and archive listings keep their existing headers. */
body:not(.home):has(.entry-content > .kt-row-has-bg:first-child > .kt-row-layout-overlay) {
  --story-hero-height: 100vh;
  --story-hero-height: 100svh;
  --story-menu-inset: max(0.75rem, env(safe-area-inset-bottom));
}

body:not(.home) .entry-content > .kt-row-has-bg:first-child:has(> .kt-row-layout-overlay) > .kt-row-column-wrap {
  min-height: var(--story-hero-height);
}

body:not(.home):has(.entry-content > .kt-row-has-bg:first-child > .kt-row-layout-overlay) #masthead .site-desktop-navigation {
  position: absolute;
  inset-inline: 0;
  top: calc(var(--story-hero-height) - var(--story-menu-inset));
  transform: translateY(-100%);
  padding-bottom: 0;
}

body:not(.home):has(.entry-content > .kt-row-has-bg:first-child > .kt-row-layout-overlay) #masthead #mobile-toggle {
  position: absolute;
  inset-inline-start: 1rem;
  top: calc(var(--story-hero-height) - var(--story-menu-inset));
  transform: translateY(-100%);
  color: var(--global-palette8, #e6e4db);
  background-color: rgb(0 0 0 / 45%);
  min-width: 2.75rem;
  min-height: 2.75rem;
}
