/* Hotwire Native specific styles */
body.hotwire-native .d-none-hotwire-native,
body.hotwire-native .breadcrumbs {
  display: none !important;
}

body.hotwire-native {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  padding-block-start: env(safe-area-inset-top);
  padding-block-end: calc(max(env(safe-area-inset-bottom), 2.5rem) * 1.1);
}

body.hotwire-native * {
  -webkit-tap-highlight-color: transparent;
}

/* Onboarding has no tab bar or nav bar — just enough top space for status bar */
body.hotwire-native.onboarding {
  padding-block-start: env(safe-area-inset-top);
  padding-block-end: 0;
}

/* Sticky elements respect safe areas */
body.hotwire-native .sticky-top {
  top: env(safe-area-inset-top) !important;
}

body.hotwire-native .sticky-bottom {
  bottom: env(safe-area-inset-bottom) !important;
}

/* Remove min-h-screen on native — pages don't need full viewport height */
body.hotwire-native .min-h-screen {
  min-height: unset !important;
}

/* Prevent iOS auto-zoom on input focus (requires font-size >= 16px) */
body.hotwire-native input,
body.hotwire-native textarea,
body.hotwire-native select {
  font-size: max(16px, 1em);
}
