/* Base */
.pi-ahh {
  z-index: 9999;
  transition: transform 0.24s ease-in-out;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Disable transitions while pre-init to avoid flicker */
html.pi-ahh-preinit .pi-ahh {
  transition: none !important;
}

/* Methods (top is set inline by JS to win against theme CSS) */
.pi-ahh--method-sticky { position: sticky; }
.pi-ahh--method-fixed  { position: fixed; left: 0; right: 0; width: 100%; }

/* Modes (flags) */
.pi-ahh--mode-always {}
.pi-ahh--mode-autohide {}

/* States */
.pi-ahh.is-hidden  { transform: translateY(-100%); }
.pi-ahh.is-visible { transform: translateY(0); }

/* Breakpoint flags */
.pi-ahh--disabled-bp {}
.pi-ahh--scrolled {}

/* Spacer (fixed only) */
.pi-ahh-spacer { display: block; width: 100%; height: 0; }


.pi-ahh--scrolled {}
.pi-ahh--scrolling {}
.pi-ahh-dir-up {}
.pi-ahh-dir-down {}

/* === PI AHH Overlay helpers =============================================== */
:root { --pi-ahh-height: 0px; }

/* Use on targets (anchors/sections) to avoid being covered by overlay header */
.pi-ahh-offset-target { scroll-margin-top: var(--pi-ahh-height); }

/* Ensure overlay stacking if needed */
body.pi-header-over .pi-autohide { z-index: 9999; }
