/* Shared responsive safety layer, loaded after each page's own styles. */
html {
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  overflow-x: clip;
}

:where(img, video, iframe, canvas, svg) {
  max-width: 100%;
}

@media (max-width: 760px) {
  body :where(*) {
    min-width: 0;
  }

  :where(input, select, textarea) {
    max-width: 100%;
    font-size: 16px;
  }

  :where(button, [role="button"], .btn) {
    touch-action: manipulation;
  }

  :where(main, section, article, aside, header, footer) {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  :where(.btn, button.btn) {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}
