/* Tweaks that only apply once js/pwa.js has detected a standalone/TWA launch
   (html.sona-native-app). Regular browser tab visits are untouched. */

html.sona-native-app body {
  /* Stop the rubber-band/pull-to-refresh gesture so swipes feel native. */
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
}

html.sona-native-app a,
html.sona-native-app button {
  -webkit-tap-highlight-color: transparent;
}

/* Long-press text selection/callout reads as a native-app bug on Android. */
html.sona-native-app body {
  -webkit-touch-callout: none;
}
html.sona-native-app input,
html.sona-native-app textarea {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
}
