/* Keep controls usable in Safari and embedded browsers, including landscape. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.wrap{padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
.site-header{padding-top:calc(18px + env(safe-area-inset-top,0px));padding-left:max(4%,env(safe-area-inset-left,0px));padding-right:max(4%,env(safe-area-inset-right,0px))}
.mobile-nav{padding-left:max(30px,env(safe-area-inset-left,0px));padding-right:max(30px,env(safe-area-inset-right,0px));max-height:calc(100vh - var(--site-header-height,80px) - var(--mobile-dock-height,0px) - 20px);max-height:calc(var(--viewport-height,100svh) - var(--site-header-height,80px) - var(--mobile-dock-height,0px) - 20px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.hero{min-height:max(740px,94vh);min-height:max(740px,94svh)}
.hero-room-switch{right:max(4%,env(safe-area-inset-right,0px))}
.visit-time-card select,.menu-copy-fallback,.note-actions textarea{font-size:16px;font-size:max(16px,1rem)}
.menu-copy-fallback,.note-actions textarea{-webkit-user-select:text;user-select:text;touch-action:auto}
.photo-dialog{max-height:90vh;max-height:90svh;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.photo-dialog img{max-height:69vh;max-height:69svh}
.celebration-message{max-height:calc(100vh - 48px);max-height:calc(100svh - 48px)}
@media(max-width:680px){
  .site-header,.site-header.scrolled{padding-top:calc(12px + env(safe-area-inset-top,0px));padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
  .mobile-nav{padding-left:max(24px,env(safe-area-inset-left,0px));padding-right:max(24px,env(safe-area-inset-right,0px))}
  .hero{min-height:calc(100vh - var(--mobile-dock-height,80px));min-height:calc(100svh - var(--mobile-dock-height,80px))}
  .hero-content{padding-top:clamp(190px,26vh,260px);padding-top:clamp(190px,26svh,260px)}
  .hero-room-switch{right:auto;min-width:0;width:calc(100% - 40px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))}
  .mobile-cta{padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px));padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}
}
@media(max-width:375px){
  .site-header,.site-header.scrolled{padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
  .hero-content{padding-top:205px}
  .hero-room-switch{width:calc(100% - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))}
}
@media(orientation:landscape) and (max-height:500px){
  .hero-content{padding-top:calc(var(--site-header-height,80px) + 32px);padding-bottom:42px}
  .hero{min-height:100vh;min-height:100svh}
  .hero-room-switch{position:relative;right:auto;bottom:auto;margin:0 max(28px,env(safe-area-inset-left,0px)) 32px;min-width:0}
  .photo-dialog{padding-top:40px;padding-bottom:16px}
  .photo-dialog img{max-height:calc(100vh - 130px);max-height:calc(100svh - 130px)}
  .celebration-message{padding:12px 18px}
  .celebration-message>svg{display:none}
  .celebration-message>strong{margin:6px 0;font-size:1rem}
  .celebration-message>span{font-size:24px}
}
