:root {
    --app-sticky-header-height: 0px;
    --app-header-transition-duration: 0.35s;
    --app-header-text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    --app-header-backdrop-gradient: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0) 100%);
    --app-header-backdrop-overhang: 2rem;
}

/* Gradient shadow behind the header, faded in only in transparent mode */
header.wp-block-template-part .is-position-sticky::before {
    content: "";
    position: absolute;
    inset: 0 0 calc(-1 * var(--app-header-backdrop-overhang)) 0;
    z-index: -1;
    background: var(--app-header-backdrop-gradient);
    opacity: 0;
    pointer-events: none;
}

body.app-header-ready header.wp-block-template-part .is-position-sticky::before {
    transition: opacity var(--app-header-transition-duration) ease;
}

body.app-has-transparent-header:not(.app-header-scrolled) header.wp-block-template-part .is-position-sticky::before {
    opacity: 1;
}

body.app-header-ready header.wp-block-template-part .is-position-sticky {
    transition: background-color var(--app-header-transition-duration) ease,
    text-shadow var(--app-header-transition-duration) ease;
}

body.app-header-ready header.wp-block-template-part .is-position-sticky :is(.wp-block-site-logo, .wp-block-navigation__responsive-container-open) {
    transition: filter var(--app-header-transition-duration) ease;
}

body.app-has-transparent-header:not(.app-header-scrolled) header.wp-block-template-part .is-position-sticky {
    background-color: transparent !important;
    text-shadow: var(--app-header-text-shadow);
}

body.app-has-transparent-header:not(.app-header-scrolled) header.wp-block-template-part .is-position-sticky .wp-block-navigation__responsive-container-open svg {
    filter: drop-shadow(var(--app-header-text-shadow));
}

body.app-has-transparent-header:not(.app-header-scrolled) header.wp-block-template-part .is-position-sticky a:not(.wp-block-navigation__responsive-container.is-menu-open a):hover {
    color: #d0ffa1 !important;
}

body.app-has-transparent-header header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open {
    text-shadow: none;
}

body.app-has-transparent-header .app-shifted-header.app-shifted-header--active {
    margin-top: calc(-1 * var(--app-sticky-header-height)) !important;
}
