/*
 * Nova header effect: sticky-shrinking-header. Site-wide, always loaded; keyed by core's own
 * `is-position-sticky` on the header group, which baseline.css pins. Its JS only toggles
 * .is-nova-shrunk.
 */
.wp-site-blocks > header.wp-block-template-part:has(> .is-position-sticky) {
    /* Opaque from the start: a pinned header with no background of its own lets the content scroll
     * visibly through it. Holding the background back until .is-nova-shrunk left that bleed-through
     * for the first 40px of scroll (NOVA-3078) — transparency is the
     * transparent-until-scrolled-header effect's job, not this one's. */
    background-color: var(--wp--preset--color--base, #fff);
    transition: padding 200ms ease;
}

.wp-site-blocks > header.wp-block-template-part:has(> .is-position-sticky).is-nova-shrunk {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.wp-site-blocks
    > header.wp-block-template-part:has(> .is-position-sticky).is-nova-shrunk:not(
        :has(.nova-header-rule)
    ) {
    border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
