/* Mobile-only: keep the hero; hide the image(s) in the FIRST section after the hero.
   Other sections, their mascots, and desktop presentation remain unchanged. */
@media screen and (max-width: 767px) {
  /* Product pages: the first post-hero section is image-only. */
  body.nv-site main > section.sb-verified-deepblue-top + section:is(.fms-solution-visual,.cmms-pain-section,.public-fms-first-visual) { display:none!important; }
  /* Any other first section: hide its media only, not its text/content. */
  body main > section.sb-verified-deepblue-top + section img,
  body main > section.sb-verified-deepblue-top + section picture,
  body main > section.sb-verified-deepblue-top + section video,
  body main > section.sb-verified-deepblue-top + section svg:not(.icon) { display:none!important; }
  /* The hero's navigation pills, related solution shortcuts and certification badges only. */
  body main > section.sb-verified-deepblue-top :is(.nv-cmms-pills,.life-hero-tags,.sol-pills,.nv-fms-hero-links,.sb-inspection-link) { display:none!important; }
  body.nv-home-page main > section.sb-home-specialty-shortcuts,
  body.nv-home-page main > section.nv-trust { display:none!important; }
}

/* Mobile layout safeguards (2026-11-15). Only narrow screens.
   Preserve original desktop rules, hero imagery, typography size and content. */
@media screen and (max-width: 767px) {
  /* Long FAQ text and CTA labels must shrink/wrap inside their own columns. */
  body.nv-site main :is(.cmqa-question,.cmqa-answer,.cmqa-answer-content,.sb-fms-abc-row,
    .sb-home-qa-question,.sb-home-qa-answer,.nv-hero-buttons,.nv-hero-buttons a,
    .nv-fms-hero-link,.nv-button,.cmqa-cta),
  body .company-main :is(.cp-container,.cp-year-events,.cp-cta-panel) {
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }
  body.nv-site main :is(.cmqa-question p,.cmqa-answer-title,.sb-fms-abc-row h3,
    .nv-button,.cmqa-cta,.sb-home-qa-answer),
  body .company-main :is(.cp-hero h1,.cp-year-events strong,.cp-cta-panel a) {
    overflow-wrap:anywhere;
    white-space:normal;
  }
  /* Keep wide diagrams/media within their columns, without affecting the
     hero illustration which remains visible on mobile. */
  body main :is(img,video,canvas) { max-width:100%; }
  body main :is(iframe,embed,object) { max-width:100%; }
  /* Only a wide tabular area scrolls, not the complete page. */
  body main table {display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
  /* Prevent fixed minimum widths from pushing FAQ answer columns outward. */
  body.nv-fms-page #solutions .sb-fms-abc-row {width:100%;}
  body.nv-fms-page #solutions .sb-fms-abc-row .cmqa-answer-title {min-width:0;flex:1 1 auto;}
  /* Respect users who request less motion on small screens. */
}
