/* Sticky header: past 400 px the header becomes a floating glass bar, set by assets/header-sticky.js (class is-stuck). The glass sits on a pseudo-element so
   the bar itself carries no filter or transform at rest, which would trap Bricks' fixed mobile menu inside it. */
body .brxe-section.st-header.is-stuck {
  position: fixed; inset: var(--space-sm) 0 auto 0; z-index: var(--z-sticky-nav);
  width: min(calc(var(--container) - var(--gutter)), calc(100% - var(--space-lg))); margin-inline: auto;
  isolation: isolate; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink);
}
body .brxe-section.st-header.is-stuck::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: color-mix(in oklab, var(--color-paper) 78%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  border: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 9%, transparent);
  box-shadow: 0 12px 40px color-mix(in oklab, var(--color-ink) 12%, transparent);
}
body:has(:is(.st-hero, .st-pagehero)) .brxe-section.st-header.is-stuck { inset: var(--space-sm) 0 auto 0; background: transparent; }
body:has(:is(.st-hero, .st-pagehero)) .brxe-section.st-header.is-stuck .brxe-container.st-header__inner,
body .brxe-section.st-header.is-stuck .brxe-container.st-header__inner { padding: var(--space-xs) var(--space-lg); }

/* Ink again on the glass, whatever the hero had turned the text to. */
body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-logo.st-header__logo,
body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-text-link.st-header__phone,
body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-nav-menu.st-header__menu .bricks-nav-menu > li > a,
body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-nav-menu.st-header__menu .bricks-nav-menu > li > .brx-submenu-toggle > a,
body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-nav-menu.st-header__menu .bricks-nav-menu > li > .brx-submenu-toggle > button,
body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-nav-menu.st-header__menu .bricks-mobile-menu-toggle { color: var(--color-ink); }
body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-text-link.st-header__phone { text-decoration-color: var(--color-accent); }
body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-nav-menu.st-header__menu .bricks-nav-menu > li.current-menu-item > a,
body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-nav-menu.st-header__menu .bricks-nav-menu > li.current-menu-ancestor > .brx-submenu-toggle > a { border-bottom-color: var(--color-ink); }
body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-nav-menu.st-header__menu a:focus-visible,
body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-nav-menu.st-header__menu button:focus-visible,
body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-text-link.st-header__phone:focus-visible { outline-color: var(--color-focus); }
body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-button.st-btn { background: var(--color-deep); border-color: var(--color-deep); color: var(--color-on-deep); }
.st-header.is-stuck .brxe-logo.st-header__logo { max-width: 24ch; font-size: var(--text-md); line-height: 1.1; }
.st-header.is-stuck .brxe-button.st-btn { min-height: 40px; }
@media (hover: hover) and (pointer: fine) {
  body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-nav-menu.st-header__menu .bricks-nav-menu > li:hover > a,
  body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-nav-menu.st-header__menu .bricks-nav-menu > li:hover > .brx-submenu-toggle > a { border-bottom-color: var(--color-ink); }
  body:has(:is(.st-hero, .st-pagehero)) .st-header.is-stuck .brxe-button.st-btn:hover { background: var(--color-deep-2); border-color: var(--color-deep-2); color: var(--color-on-deep); }
}
@media (max-width: 60rem) {
  body .brxe-section.st-header.is-stuck { inset: var(--space-xs) 0 auto 0; width: calc(100% - var(--space-md)); }
  body:has(:is(.st-hero, .st-pagehero)) .brxe-section.st-header.is-stuck .brxe-container.st-header__inner { padding: var(--space-xs) var(--space-md); }
}
