/* Component styles live in the blocks. These rules depend on page context. */
/* Follow the WP admin bar: 32px, 46px below 783px, and below 601px it scrolls away (position: absolute). */
.admin-bar .ofur-menu-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ofur-menu-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ofur-menu-header { top: 0; } }
/* Black ink everywhere: hover, an open mega menu and the current page are underlined. */
.ofur-header-navigation .gb-menu > li:is(:hover, .current-menu-item, .current-menu-parent, .current-menu-ancestor, :has([aria-expanded="true"])) > a,
.ofur-header-navigation .gb-menu > li > a:focus-visible,
.ofur-header-actions > .gb-text:is(:hover,:focus-visible),
.woocommerce-account .ofur-header-account,
.ofur-header-reviews > .ofur-review-link:is(:hover,:focus-visible),
.ofur-mega-link:is(:hover,:focus-visible) { text-decoration: underline; }
.ofur-header-reviews .ofur-review-count { text-decoration: none; }
/* Home: banner and header lie over the hero: the 60px header and the banner height the banner element sets. */
.home #dismissible-banner { z-index: 100; background: transparent; color: var(--base-2,#fff); }
.home #dismissible-banner a { color: inherit; }
.home #page { margin-top: calc(-60px - var(--ofur-banner-height, 0px)); }
.home #main { margin-top: 0; }
/* Home: clear header with white ink above the hero, so the first paint needs no switch; frosted with black ink
   once it sticks (js/menu-header.js sets .is-stuck), the mega menu is open or there is no banner. */
.home:has(#dismissible-banner) .ofur-menu-header:not(.is-stuck, :has(.gb-overlay[aria-hidden="false"])) { --ofur-header-ink: #fff; --ofur-header-frost: 0; --ofur-header-logo-invert: 1; }
.home .ofur-menu-header::before { opacity: var(--ofur-header-frost, 1); transition: opacity .2s; }
.home .ofur-menu-header :is(.gb-menu > li > a, .ofur-header-actions > .gb-text, .ofur-review-link, .cart-contents, .ofur-mobile-menu-trigger) { color: var(--ofur-header-ink, #000); transition: color .2s; }
.home .ofur-header-logo img { filter: invert(var(--ofur-header-logo-invert, 0)); transition: filter .2s; }
.home .ofur-menu-header .cart-contents svg path { stroke: currentColor; }
@media (min-width:768px) {
    .home .ofur-menu-header { --ofur-submenu-text: var(--contrast,#000); }
}
@media (min-width:1200px) {
    body:has(.ofur-header-navigation .gb-overlay[aria-hidden="false"])::before { content: ''; position: fixed; inset: 0; z-index: 4; background: #fff; opacity: .8; pointer-events: auto; }
    body:has(.ofur-header-navigation .gb-overlay[aria-hidden="false"]) #dismissible-banner { z-index: 4; }
}
