/* Only the full desktop GeneratePress header is controlled here.
   No submenu display/visibility/position rules are changed. */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  html.kwcb-header-timing-ready body .kwcb-header-top-trigger {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 100001;
    background: transparent;
    pointer-events: none !important;
  }
  html.kwcb-header-timing-ready body.admin-bar .kwcb-header-top-trigger {
    top: 32px;
  }
  html.kwcb-header-timing-ready body #masthead,
  html.kwcb-header-timing-ready body #site-navigation {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-12px);
    transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
  }
  /* Ensure theme child buttons, pseudo-elements and links cannot catch clicks
     while the entire desktop header is hidden. */
  html.kwcb-header-timing-ready:not(.kwcb-header-visible) body #masthead *,
  html.kwcb-header-timing-ready:not(.kwcb-header-visible) body #site-navigation *,
  html.kwcb-header-timing-ready:not(.kwcb-header-visible) body #masthead::before,
  html.kwcb-header-timing-ready:not(.kwcb-header-visible) body #masthead::after,
  html.kwcb-header-timing-ready:not(.kwcb-header-visible) body #site-navigation::before,
  html.kwcb-header-timing-ready:not(.kwcb-header-visible) body #site-navigation::after {
    pointer-events: none !important;
  }
  html.kwcb-header-timing-ready.kwcb-header-visible body #masthead,
  html.kwcb-header-timing-ready.kwcb-header-visible body #site-navigation {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none;
  }
}

/* v1.1.19: Third-party/legacy hover strip is present on ClusterNiche pages.
   Keep it non-interactive so it cannot steal clicks from iframe toolbars.
   Header reveal is already handled by document-level pointermove above. */
html body .cms-header-hover-zone,
html body .cms-header-hover-zone::before,
html body .cms-header-hover-zone::after {
  pointer-events: none !important;
}
