/* Safety net: kill any remaining inline-text highlight backgrounds */
h1 span[style*="background"],
h1 mark, h2 mark,
.glow, .highlight {
  background: none !important;
  box-decoration-break: initial !important;
  -webkit-box-decoration-break: initial !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Universal mobile fixes — injected into all sites */
@media (max-width: 600px) {
  body { overflow-x: hidden; }

  /* Contain all images and embeds */
  img, iframe, video, svg { max-width: 100%; height: auto; }
  iframe { width: 100%; }

  /* Prevent any element from forcing horizontal scroll */
  main, section, header, footer, article, div, nav {
    max-width: 100vw;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Hero headline safety net */
  h1 { font-size: clamp(1.8rem, 9vw, 3.5rem); }

  /* Force grids to single column — uses attribute selectors to catch
     common class naming without needing exact class names */
  [class*="svc-grid"],
  [class*="services-grid"],
  [class*="svc_grid"],
  [class*="review-grid"],
  [class*="reviews-grid"],
  [class*="tst-grid"],
  [class*="rv-grid"],
  [class*="team-grid"],
  [class*="visit-grid"],
  [class*="foot-grid"] {
    grid-template-columns: 1fr;
  }

  /* Stats bands — allow wrapping */
  [class*="band"],
  [class*="stats"] {
    flex-wrap: wrap;
  }

  /* Nav — stack on mobile */
  header nav, header [class*="nav-links"] {
    display: none;
  }

  /* Tap targets */
  a[href^="tel"], button, [class*="btn"], [class*="cta"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Remove narrow max-width constraints that squeeze text on mobile */
  h1, h2, h3, p, blockquote,
  .section-h, .hero-sub, .hero-h, .pull-q,
  [class*="svc"] p, [class*="lede"] {
    max-width: none !important;
  }

  /* Collapse rigid numbered service grids to single column */
  [class*="svc"] {
    grid-template-columns: 1fr !important;
  }
  [class*="svc-num"] { display: none; }

  /* Tables */
  table { display: block; overflow-x: auto; }
}
