/* Static-mirror fixes — empty theme header shell must not collapse the
   layout spacer the Elementor top strip compensates for with -100px. */

/* Let clicks reach in-page nav through the empty absolute shell */
#header-wrapper.header-top-absolute:has(#header-216:empty),
#header-wrapper.header-top-absolute:has(#header-216:empty) #header,
#header-216:empty {
  pointer-events: none !important;
}

#header-216:empty {
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/*
 * Theme pairs #header-wrapper { margin-bottom: 100px } with
 * .elementor-501 .elementor-element-1a107c7 { margin-top: -100px }.
 * Collapsing the wrapper margin (older mirror-fixes) left the -100px
 * pull-up alone and clipped the announcement + nav off the top.
 * Keep the pair intact — do NOT zero #header-wrapper height/margin.
 */
#header-wrapper.header-top-absolute:has(#header-216:empty) {
  margin-bottom: 100px !important;
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
}

body.home .elementor-501 > .elementor-element-1a107c7 {
  margin-top: -100px !important;
}

/* Sticky clone must not intercept clicks while hidden off-screen */
#header .wdt-header-tpl .sticky-header-active:not(.wdt-header-top) {
  pointer-events: none !important;
}

/* Homepage in-page nav anchors above overlapping layers */
body.home .wdt-header-menu .wdt-primary-nav > .menu-item > a {
  position: relative;
  z-index: 5;
}

/* About/inner: header-213 stays above page content */
#header-wrapper.header-top-absolute #header .wdt-header-tpl.header-213 {
  position: relative;
  z-index: 100;
}
