/* ---------------------------------------------------------------------------
   PWA / native-feel polish. Loaded AFTER app.css so these rules win.
   Self-contained: safe-area insets (notch / home indicator) and small tweaks
   that make the installed app feel less like a web page. env() insets are 0 on
   devices without notches, so this is harmless everywhere else.
   --------------------------------------------------------------------------- */

/* Bottom safe-area (the home-indicator bar) for the page end and fixed UI. */
.footer       { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.push-banner  { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }

/* Landscape notch: keep content out from under the sensor housing on the sides. */
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }

/* Remove the grey flash when tapping buttons/links — a classic "this is a web
   page" tell. Text stays selectable. */
* { -webkit-tap-highlight-color: transparent; }

/* When launched as an installed / standalone app (no browser chrome). */
@media (display-mode: standalone) {
    /* No rubber-band overscroll revealing a blank strip at the top/bottom. */
    html, body { overscroll-behavior-y: none; }

    /* Hook: tag any browser-only element with class="hide-in-app" to hide it
       once installed (e.g. an "Add to home screen" hint). */
    .hide-in-app { display: none !important; }
}
