/* Shared static-renderer compatibility layer. Theme CSS remains authoritative; these rules ensure
   the JavaScript renderer uses safe, predictable layout and media dimensions across all themes. */
html{scroll-behavior:smooth}body{margin:0}#site-root:empty:before{content:"Loading…";display:grid;place-items:center;min-height:100vh;font:600 16px/1.4 system-ui,sans-serif}
*,*:before,*:after{box-sizing:border-box}
img,svg,video,canvas{max-width:100%;height:auto}
.google-map-footer{width:100%;height:300px;overflow:hidden}.google-map-footer iframe{display:block;width:100%;height:300px;border:0}
.wb-error{max-width:760px;margin:10vh auto;padding:24px;font:16px/1.5 system-ui,sans-serif}.wb-empty{opacity:.72}.wb-list-shell{padding-top:40px;padding-bottom:70px}.wb-back{display:inline-flex;margin-bottom:24px}.wb-route-title{margin-bottom:28px}.wb-card-link{display:block;color:inherit;text-decoration:none;height:100%}.wb-loading-hidden{visibility:hidden}.wb-tracking-slot{display:none}

/* Static card grid. The PHP themes use .cards/.cards-3; the browser renderer uses .cards-grid. */
.cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
.content-card{min-width:0;height:100%;overflow:hidden}
.content-card .wb-card-link{display:flex;flex-direction:column}
.content-card .wb-card-link>img,.content-card>img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center;max-height:420px}
.content-card .card-body{flex:1;min-width:0}
.content-card h3{overflow-wrap:anywhere}

/* Detail media must never render at the source image's intrinsic size. */
.detail-grid{min-width:0}
.detail-copy,.detail-media{min-width:0}
.detail-media{overflow:hidden}
.detail-media>img{display:block;width:100%;height:auto;max-height:680px;aspect-ratio:4/3;object-fit:cover;object-position:center}
.detail-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.detail-gallery img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center;max-height:420px}

/* Hero image management for the static renderer. */
.hero-profile-gallery{position:relative;overflow:hidden}
.hero-gallery-background,.hero-gallery-background-slide,.hero-gallery-background-shade{position:absolute;inset:0}
.hero-gallery-background{z-index:0;overflow:hidden}.hero-gallery-background-slide{background-size:cover;background-position:center;background-repeat:no-repeat;opacity:0}.hero-gallery-background-slide.active{opacity:1}
.hero-gallery-background-shade{z-index:1}.hero-profile-gallery .hero-grid{position:relative;z-index:2}
.hero-thumbnails{min-width:0}.hero-thumbnail{padding:0;overflow:hidden}.hero-thumbnail img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}

/* Footer media/layout compatibility. */
.footer-logo,.footer-logo-large{display:block;width:auto;height:auto;max-width:min(220px,100%);max-height:90px;object-fit:contain}
.footer-grid-compact{grid-template-columns:minmax(220px,1.2fr) minmax(220px,1fr) minmax(180px,.8fr)}
.footer-service-bubbles{display:flex;flex-wrap:wrap;gap:8px}.footer-service-bubble{display:inline-flex!important;width:auto;text-decoration:none}.footer-contact-inline{min-width:0}.footer-contact-inline a{overflow-wrap:anywhere}

/* The theme JS/CSS historically use .is-open while the static renderer uses .open/.active. */
.site-nav.open,.site-nav.active{display:flex}

@media(max-width:980px){.cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid-compact{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.cards-grid{grid-template-columns:1fr}.detail-gallery{grid-template-columns:1fr}.footer-grid-compact{grid-template-columns:1fr}.content-card .wb-card-link>img,.content-card>img{max-height:none}.detail-media>img{max-height:520px}}