/* Shared compact navigation; hero changes remain homepage-only. */
#bc-library-preview .bcx-mobile-menu-toggle[hidden],
#bc-library-preview #bcx-mobile-menu[hidden],
#bc-library-preview .bcx-hero-photo-window[hidden] {display:none!important;}

html[data-home-finish="refined"] #bc-library-preview #bc-site-header.bcx-compact-header {
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;gap:0 12px!important;padding:12px 20px!important;
  & .bc-site-logo {width:fit-content!important;max-width:100%!important;margin:0!important;min-height:44px;display:flex!important;align-items:center;}
  & .bc-site-logo img {width:clamp(152px,50vw,196px)!important;max-width:100%!important;height:auto!important;}
  & .bcx-mobile-menu-toggle {
    display:inline-flex;align-items:center;justify-content:center;gap:9px;
    min-width:82px;min-height:44px;padding:9px 12px;border:1px solid var(--core-forest);
    border-radius:4px;background:var(--core-paper);color:var(--core-forest);
    font:500 15px/1.4 Outfit,Arial,sans-serif;cursor:pointer;
  }
  & .bcx-menu-icon {width:13px;height:10px;border-top:1px solid currentColor;border-bottom:1px solid currentColor;}
  & .bcx-mobile-menu-toggle[aria-expanded="true"] .bcx-menu-icon {height:1px;border-bottom:0;}
  & .bcx-mobile-menu-toggle:hover {background:var(--core-slate);}
  & :is(.bcx-mobile-menu-toggle,a):focus-visible {outline:3px solid var(--core-forest)!important;outline-offset:3px!important;}
  & #bcx-mobile-menu {grid-column:1 / -1;padding:12px 0 4px;}
  & #bcx-mobile-menu>nav {display:flex!important;flex-direction:column;align-items:stretch!important;gap:0!important;margin:0!important;}
  & #bcx-mobile-menu>nav a {
    display:flex!important;align-items:center;justify-content:flex-start!important;
    min-height:44px!important;padding:10px 2px!important;margin:0!important;
    font:400 16px/1.5 Outfit,Arial,sans-serif!important;text-align:left!important;
    white-space:normal!important;
  }
  & .bc-market-bar {margin:10px 0 0!important;padding:12px 2px 0!important;border-top:1px solid var(--core-rule);text-align:left!important;}
  & .bc-market-bar nav {justify-content:flex-start!important;margin:0!important;}
}

/* Crop the existing photo in a fixed-proportion window, retaining both faces
   and the working table while excluding the blurred doorway on the left. */
html[data-home-finish="refined"][data-hero-version="daylight"][data-homepage-version="v2"][data-color-rhythm="refined"]:has(#b2-home:not([hidden])) #bc-library-preview #bc-house-synthesis #b2-home .s-hero.bcx-mobile-hero {
  display:block!important;min-height:0!important;padding:0!important;
  & .bcx-hero-photo-window {display:block;position:relative;isolation:isolate;overflow:hidden;width:100%;aspect-ratio:8 / 5;}
  & #s-welcome-photo {
    position:absolute!important;inset:0!important;display:block;width:100%!important;height:100%!important;
    max-width:none!important;object-fit:cover!important;object-position:right 25%!important;
    transform:scale(1.35);transform-origin:right 25%;mask-image:none!important;z-index:0!important;
  }
  & .s-hero-shade {
    position:absolute!important;inset:0!important;height:100%!important;z-index:1!important;pointer-events:none;
    background:linear-gradient(0deg,#242323 0%,rgb(36 35 35 / 24%) 12%,transparent 28%)!important;
  }
  & .s-hero-copy {position:relative;max-width:none!important;width:100%!important;box-sizing:border-box;padding:24px var(--home-gutter) 32px;}
}
