/* Membership application pop-up (join.js opens it preselected). On phones the form is taller than the screen:
   the pop-up box scrolls inside itself instead of running off the bottom. */
.elementor-popup-modal .dialog-widget-content:has(.m-join-form) {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* Elementor sizes the message box and the popup document to the screen height, which clipped the form's end */
.elementor-popup-modal .dialog-widget-content:has(.m-join-form) :is(.dialog-message, .elementor-location-popup) {
  height: auto !important; max-height: none !important; overflow: visible !important;
}
.m-join-form select { font-weight: 500; }   /* Safari ignores the select's typography weight otherwise */
.m-join-form .elementor-field-type-html { margin-top: -12px; }   /* the note belongs to the select above it */

/* iPhone (2026-10-12): touch scrolling over the inner box scrolled the page behind instead. The pop-up's own
   full-screen layer is now the scroller (the pattern iOS handles), and the box sits in it at its natural height. */
.elementor-popup-modal:has(.m-join-form) { pointer-events: auto !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; align-items: flex-start !important; }
.elementor-popup-modal .dialog-widget-content:has(.m-join-form) { position: relative !important; max-height: none !important; overflow: visible !important; margin: 16px auto !important; top: auto !important; left: auto !important; transform: none !important; }
