/* Sticky header behavior shared by all pages. The store has one dark theme. */
html { color-scheme: dark; }
@media (max-width: 599px) { .sm-header-actions.wp-block-group { gap: var(--wp--preset--spacing--s); } }
/* The transparent header floats over the first screen; once scrolled it
   becomes a full-width, theme-colored navigation surface. */
.sm-site-header {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    z-index: var(--wp--custom--header-layer, 20);
    background-color: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
body.admin-bar .sm-site-header {
    inset-block-start: var(--wp-admin--admin-bar--height, 32px);
}
.sm-site-header > .sm-header-bar.wp-block-group {
    width: min(var(--wp--style--global--content-size, 1280px), calc(100% - var(--wp--custom--gutter, 24px) * 2));
    max-width: none;
    margin-inline: auto !important;
}
.sm-site-header.sm-header-scrolled {
    /* Tint the scrolling glass with the current theme surface. Keep the
       header contents crisp: only the backdrop behind them is blurred. */
    background: color-mix(in srgb, var(--wp--preset--color--night, #00151f) 94%, transparent) !important;
    -webkit-backdrop-filter: blur(14px) saturate(115%);
    backdrop-filter: blur(14px) saturate(115%);
    mix-blend-mode: normal !important;
    border-bottom-color: rgb(157 204 213 / 23%);
    box-shadow: 0 8px 28px rgb(0 9 15 / 23%);
}
.sm-site-header.sm-header-scrolled > .sm-header-bar.wp-block-group {
    /* The outer header paints the glass. The inner bar stays transparent. */
    background: transparent !important;
}
.sm-site-header > .sm-header-bar.wp-block-group {
    /* Add vertical breathing room; keep the existing zero horizontal padding
       so the controls remain aligned with the content container. */
    box-sizing: border-box;
    padding-block: clamp(8px, .85vw, 12px) !important;
}
html {
    scroll-padding-top: calc(var(--wp--custom--header-height, 3.5rem) + 1.25rem);
}
@media (max-width: 600px) {/* On small screens the WordPress admin bar scrolls away. */
body.admin-bar .sm-site-header.sm-header-scrolled {
        inset-block-start: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
.sm-site-header { transition: none; }
}
