/* RC48 tablet + compact desktop header (768–1439px). */
body #site-header .ast-primary-navigation.is-open{max-height:min(78dvh,780px);overflow-y:auto;overscroll-behavior:contain;padding:12px 24px 20px}
body #site-header .ast-nav-links{width:min(100%,940px);max-width:940px}
#site-header .ast-smart-mega{width:100%;max-height:none;overflow:visible}
#site-header .ast-mega-body,#site-header .ast-mega-body.ast-mega-single{grid-template-columns:minmax(180px,34%) minmax(0,1fr)}
#site-header .ast-mega-tabs{max-height:360px;grid-template-columns:1fr;padding:10px}
#site-header .ast-mega-panels{padding:12px 14px}
#site-header .ast-mega-subgrid{grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr))}
#site-header .ast-smart-mega .ast-mega-feature{min-height:145px!important}
body .ast-v6-photo-directory .sig-directory-copy{width:min(100%,680px);padding:30px!important}
body .ast-v6-photo-directory .sig-directory-copy:before{background:linear-gradient(90deg,#08090bd0,#08090b95 90%,transparent)}
body .ast-v6-guide-shell{width:calc(100% - 40px)}
body .ast-smart-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
/* A short, landscape tablet must never trap the menu outside its scrollable drawer. */
@media(max-height:520px){body #site-header .ast-primary-navigation.is-open{max-height:calc(100dvh - 74px)}}
