/* 8.0.1: keep touch gestures, keyboard viewport and category borders predictable. */
html:has(#maker-preview),body:has(#maker-preview){height:100%;overflow:hidden}
#maker-preview{height:var(--maker-height,100dvh);overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;padding-top:max(20px,env(safe-area-inset-top));padding-bottom:calc(32px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
#maker-preview button,#maker-preview a,button,a{touch-action:manipulation}
#maker-preview .track{padding-bottom:2px}
#maker-preview .projects>article{min-width:0;box-sizing:border-box}
#maker-preview header{flex-wrap:wrap;gap:12px}
#maker-preview .make:not(.complete){filter:none}
#maker-preview .make{position:relative}
#maker-preview .make .make-layers{position:absolute;top:0;height:100%;overflow:visible;pointer-events:none}
#maker-preview .make.complete .make-layers{display:none}
#maker-preview .network-field small,#maker-preview .found-field small{font-size:.82rem;line-height:1.45}
#maker-preview #network-status,#maker-preview #found-status{scroll-margin-block:20px}
#maker-preview #found-title:focus{outline:none}
#maker-preview #found-preview{overscroll-behavior:contain;max-height:calc(var(--maker-height,100dvh) - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
.shell header .brand{display:inline-flex;align-items:center;gap:10px}
.shell header .brand svg{width:30px;height:26px;flex-shrink:0;color:#91b9f0}
body.light .shell header .brand svg{color:#2d4e83}
@media(min-width:721px) and (pointer:fine){#maker-preview .hero h1{letter-spacing:-.035em}}

/* Keep navigation in the existing scroll container, above decorative effects.
   Normal-flow positioning preserves hero/Make scroll geometry. */
#maker-preview>header,.shell>header{position:sticky;top:0;z-index:20;padding-block:12px;margin-top:-12px;background:#171f29;transition:background-color .7s ease,color .7s ease}
#maker-preview>header{margin-top:0;margin-bottom:16px}
.shell>header{margin-bottom:10px}
#maker-preview.light>header,body.light .shell>header{background:#fff9eb}
#maker-preview>header{padding-top:max(12px,env(safe-area-inset-top))}
#maker-preview>header::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:max(20px,env(safe-area-inset-top));background:inherit;pointer-events:none}
#maker-preview>header>.brand{border:0;border-radius:0;padding:0;background:transparent;text-decoration:none;font-weight:800}
#maker-preview>header>div,.shell>header>div{flex-shrink:0}
#maker-preview,html:has(.shell){scroll-padding-top:calc(var(--maker-header-height,110px) + 12px)}

/* Contact needs content-sized spacing rather than the mobile home hero's 390px floor. */
@media(max-width:720px),(pointer:coarse){
  #maker-preview [data-page="/contact"] .hero{min-height:0;display:block;padding-block:32px}
  #maker-preview [data-page="/contact"] .hero .eyebrow{margin:0 0 14px}
  #maker-preview [data-page="/contact"] .hero h1{margin-bottom:18px}
  #maker-preview [data-page="/contact"] .hero p:last-of-type{margin:0}
  #maker-preview [data-page="/contact"] .hero .logo-print{width:min(55%,200px);max-height:calc(100% - 32px)}
}
