/* Shared phone-size safeguards. Keep long pages scrollable and preserve native controls. */
@media screen and (max-width:760px) {
  html body.drb-sandbox :is(form,.drb-nova .content,.drb-adminlte .content) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]),select,textarea):not(.selectize-input input):not(.ui-datepicker-month):not(.ui-datepicker-year),
  html body.drb-sandbox :is(input:not([type]),input[type="text"],input[type="email"],input[type="password"],input[type="tel"],input[type="url"],input[type="search"],input[type="number"],input[type="date"],input[type="datetime-local"],input[type="time"],input[type="month"],input[type="week"],select,textarea) {
    font-size:max(16px,1em)!important;
    scroll-margin-block:96px;
  }
  /* The optional city strip must sit below an open weight-loss navigation menu. */
  body.drb-program #program .site-header:has(.menu-toggle[aria-expanded="true"]) {z-index:100!important;}
  body.drb-program #program .site-header #program-site-nav.open {
    max-height:calc(100vh - 96px - env(safe-area-inset-bottom,0px));
    max-height:calc(100dvh - 96px - env(safe-area-inset-bottom,0px));
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  body.drb-program .wl-preview-toolbar~#program .site-header #program-site-nav.open {
    max-height:calc(100vh - 160px - env(safe-area-inset-bottom,0px));
    max-height:calc(100dvh - 160px - env(safe-area-inset-bottom,0px));
  }
}
/* Short landscape screens keep the page's own actions; a duplicate fixed ad bar
   should not consume a fifth of the readable area. Patient/provider navigation stays. */
@media screen and (max-width:760px) and (max-height:500px) and (orientation:landscape) {
  body.drb-approved-public :is(.drb-marketing-dock,.mobile-sticky-cta),
  body.drb-program #program.drb-public-program .wlx-mobile-action {display:none!important;}
}
