.hero-header {
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
}

/* --- HERO MODE: ALWAYS FIXED --- */
.hero-header.hh-mode-hero {
    position: fixed !important;
    transition: background-color var(--hh-duration, 300ms) ease, box-shadow var(--hh-duration, 300ms) ease;
    isolation: isolate;
}

/* Transparent State (Active) */
.hero-header.hh-mode-hero.hero-header-active {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Solid State (Scrolled) */
.hero-header.hh-mode-hero.hero-header-solid {
    background-color: var(--wp--preset--color--base, #ffffff) !important;
}

/* Nuclear Border Removal for Hero Pages only */
.hero-header.hh-mode-hero,
.hero-header.hh-mode-hero :where([style*="border-bottom-width"]),
.hero-header.hh-mode-hero :where([style*="border-bottom-color"]) {
    border-bottom: 0 !important;
}

/* --- BLENDING: Restricted to Transparent State only --- */
.hero-header.hero-header-active[data-blend="exclusion"] .wp-block-navigation-item__label,
.hero-header.hero-header-active[data-blend="exclusion"] .wp-block-site-title a,
.hero-header.hero-header-active[data-blend="exclusion"] svg,
.hero-header.hero-header-active[data-blend="difference"] .wp-block-navigation-item__label,
.hero-header.hero-header-active[data-blend="difference"] .wp-block-site-title a,
.hero-header.hero-header-active[data-blend="difference"] svg {
    color: #fff !important;
    fill: #fff !important;
    mix-blend-mode: var(--hh-blend-mode) !important;
}

/* --- STANDARD MODE: STICKY --- */
.hero-header.hh-mode-standard {
    position: sticky !important;
    background-color: var(--wp--preset--color--base, #ffffff) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Admin bar fixes */
.admin-bar .hero-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .hero-header { top: 46px; } }