/* Makhanley shared floating-header clearance.
   This file must load after every page-specific stylesheet.
   The navigation remains an overlay so hero backgrounds retain their design,
   while the first visible content is always placed below the navigation island. */
:root {
  --mk-header-content-clearance: clamp(7.25rem, 12vh, 8.5rem);
}

@media (max-width: 900px) {
  :root {
    --mk-header-content-clearance: clamp(6.5rem, 11svh, 7.25rem);
  }
}

html {
  scroll-padding-top: calc(var(--mk-header-content-clearance) + 0.5rem) !important;
}

/* Homepage: keep the pond background full-bleed, but never vertically center
   the text into the fixed header on short, zoomed or mobile viewports. */
body.home-page #home {
  box-sizing: border-box;
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  padding-top: var(--mk-header-content-clearance) !important;
  padding-bottom: 4.5rem !important;
  align-items: flex-start !important;
}

body.home-page #home > .z-10 {
  margin-top: 0 !important;
  transform: none !important;
}

/* Modern browsers may center the hero if it fits below the safe top inset.
   'safe center' falls back to start alignment rather than overflowing upward. */
@supports (align-items: safe center) {
  body.home-page #home {
    align-items: safe center !important;
  }
}

/* Pages whose first content block is a hero. */
body.content-page main > .simple-hero,
body.blog-page > .blog-hero,
body.bulk-page main > #contact-information,
body.export-page .export-main > .ex-hero,
body.products-page main.consumer-page > .consumer-hero,
body.error-page main.error-main {
  padding-top: var(--mk-header-content-clearance) !important;
}

/* Pages whose first content item is a breadcrumb before the hero. */
body.makhana-process-page .process-breadcrumb,
body.grade-guide-page .grade-breadcrumbs {
  padding-top: var(--mk-header-content-clearance) !important;
}

body.origin-guide-page .origin-breadcrumbs {
  margin-top: var(--mk-header-content-clearance) !important;
}
