/*
 * Mobile fixes layered on top of the legacy theme CSS.
 * Everything is inside a phone/tablet media query, so the desktop look is unchanged.
 */
@media screen and (max-width: 768px) {
  /* Safety net: the page never scrolls sideways. `clip` (unlike `hidden`) creates no scroll container. */
  html, body { overflow-x: clip; }

  /* Text pasted into the old editor sometimes carries `text-wrap: nowrap` (e.g. /faqs/). Let it wrap. */
  p[style*="nowrap"], p [style*="nowrap"], li [style*="nowrap"] { white-space: normal !important; text-wrap: wrap !important; }

  /* Rich text: editor-set pixel widths (lists up to 1941px wide) and large images shrink to the screen. */
  .richtext [style*="width"] { max-width: 100% !important; box-sizing: border-box; }
  .richtext img, .richtext video, .richtext iframe { max-width: 100%; }
  .richtext img { height: auto; }

  /* Tables scroll inside their own box instead of widening the page. */
  .richtext table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Solutions carousel arrows sit 60px outside the screen on phones; swiping works instead. */
  .sep-index-solutions-list .lr-boxs .lr-lists { display: none; }

  /* Company culture list uses -60px side margins. */
  .bq-hx-about-culture-ul-boxs { overflow: hidden; }
}

/* All widths: images in articles never overflow their column. Old posts set explicit sizes; posts
   edited in the CMS's visual editor lose them, so a large image shrinks to fit instead. */
.richtext img { max-width: 100%; height: auto; }
