/* NSM global site-wide fixes (loaded on every page) */

/* --- Back-to-top button: keep within the mobile viewport --- */
/* Astra positions #ast-scroll-top at right:30px which can fall off-screen
   on mobile when a section overflows horizontally. Pin it safely inside
   the visual viewport on smaller screens. */
@media (max-width: 921px) {
  #ast-scroll-top.ast-scroll-to-top-right,
  #ast-scroll-top {
    right: 15px !important;
    left: auto !important;
    bottom: 15px !important;
  }
}

/* Guard against accidental horizontal overflow on mobile (which also
   pushes fixed elements off-screen). Does not clip fixed/sticky UI. */
@media (max-width: 767px) {
  html, body { max-width: 100%; overflow-x: hidden; }
}
