/* BullMind mobile safety net
 * -------------------------------------------------------------------------
 * Low-risk, site-wide rules that stop pages from overflowing horizontally on
 * phones — the single most common mobile breakage. Loaded last so it can
 * override, but it only activates on small screens and never touches inline
 * widths (so logos/badges sized inline stay as-is).
 */

@media (max-width: 600px) {
  /* No accidental horizontal scroll / sideways drift. */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Media never forces the viewport wider than the screen. */
  img, video, iframe, canvas, svg:not([width]) {
    max-width: 100%;
  }
  img, video { height: auto; }

  /* Wide data tables become horizontally scrollable instead of overflowing. */
  table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Long unbroken strings (tickers, hashes, URLs) wrap instead of pushing out. */
  td, th, p, span, a, h1, h2, h3, h4 {
    overflow-wrap: anywhere;
  }

  /* Comfortable default tap target for buttons/links-as-buttons. */
  .btn { min-height: 40px; }

  /* Keep the fixed-width content boxes some pages use from blowing out. */
  .card, .card-base, .container, .max-w-7xl {
    max-width: 100% !important;
  }
}
