/* JOR Garden V6 — focused WordPress integration, no editor/templating rewrites. */
/* Keep header transparent over image heroes at the top; turn solid on scroll. */
body:has([data-jg-hero] img) .jg-hdr:not(.jg-has-scrolled):not(.jg-menu-is-open)::after,
body:has(.jg-hero img) .jg-hdr:not(.jg-has-scrolled):not(.jg-menu-is-open)::after {opacity:0!important;}
body:has([data-jg-hero] img) .jg-hdr:not(.jg-has-scrolled):not(.jg-menu-is-open)::before,
body:has(.jg-hero img) .jg-hdr:not(.jg-has-scrolled):not(.jg-menu-is-open)::before {opacity:1!important;}
body .jg-hdr.jg-has-scrolled::after,body .jg-hdr.jg-menu-is-open::after {opacity:1!important;}
body .jg-hdr.jg-has-scrolled::before,body .jg-hdr.jg-menu-is-open::before {opacity:0!important;}
/* Improve text legibility without permanently coloring the header. */
body:has([data-jg-hero] img) .jg-hdr:not(.jg-has-scrolled):not(.jg-menu-is-open) .jg-bar,
body:has(.jg-hero img) .jg-hdr:not(.jg-has-scrolled):not(.jg-menu-is-open) .jg-bar {filter:drop-shadow(0 1px 4px rgba(0,0,0,.28));}
/* Preserve hero content within the image; control oversized captured min-heights. */
body:not(.home):not(.front-page) [data-jg-hero].jg-shero .jg-shero-media {height:clamp(470px,70svh,730px)!important;min-height:470px!important;}
body:not(.home):not(.front-page) [data-jg-hero].jg-shero .jg-shero-inner {min-height:0!important;box-sizing:border-box;}
body:not(.home):not(.front-page) [data-jg-hero].jg-phero {min-height:clamp(450px,65svh,680px)!important;}
body:not(.home):not(.front-page) [data-jg-hero].jg-phero .jg-phero-text {box-sizing:border-box;}
@media(max-width:767px){
 body:not(.home):not(.front-page) [data-jg-hero].jg-shero .jg-shero-media {height:clamp(470px,74svh,680px)!important;min-height:470px!important;}
 body:not(.home):not(.front-page) [data-jg-hero].jg-phero {min-height:clamp(450px,72svh,620px)!important;}
}
/* Keyboard-first dropdowns; the click script owns the expanded state. */
.jg-header-nav > div:focus-within > .jg-desktop-dropdown,
.jg-header-nav > div.jg-dropdown-open > .jg-desktop-dropdown {visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
.jg-header-nav :is(a,button):focus-visible,.jg-mobile-menu a:focus-visible,.jg-faq-q:focus-visible {outline:3px solid var(--clay,#b98462)!important;outline-offset:4px!important;}
/* FAQ logic and HTML aria-expanded stay the same source of truth. */
.jg-faq-item .jg-faq-q {touch-action:manipulation;}
.jg-faq-item:not(.is-open) > [data-wpc-accordion-body="captured"] {display:none!important;}
.jg-faq-item.is-open > [data-wpc-accordion-body="captured"] {display:block!important;}
/* Avoid animation flashes for users requesting reduced motion. */
@media(prefers-reduced-motion:reduce){html *,html *::before,html *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;}}
/* Reserve space for images where HTML sets dimensions/aspect-ratio, and maintain fluid sizing. */
.jg-overview img,.jg-mat-img img,.jg-gallery img {max-width:100%;}
