/* Responsive device compatibility layer — preserves the existing desktop design. */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
*, *::before, *::after { box-sizing: border-box; }
img, picture, video, canvas, svg, iframe {
  max-width: 100%;
}
img, video { height: auto; }
iframe { border: 0; }

@media (max-width: 1024px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
  }
  table {
    max-width: 100%;
  }
  pre, code {
    max-width: 100%;
    overflow-x: auto;
  }
  input, select, textarea, button {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  html, body {
    min-width: 0 !important;
  }
  main, section, header, footer, nav, article, aside {
    max-width: 100%;
  }
  img, picture, video, canvas {
    max-width: 100%;
  }
  .container {
    width: 100% !important;
    max-width: 100% !important;
  }
  table {
    width: 100%;
    max-width: 100%;
  }
  /* Prevent long URLs/numbers from forcing horizontal scrolling. */
  a, p, li, td, th, span, div {
    overflow-wrap: break-word;
  }
}

@media (max-width: 480px) {
  body {
    min-width: 0 !important;
  }
  input, select, textarea, button {
    min-width: 0;
  }
}
