
/* ADS Medical Systems responsive safety reset — 2026-08-18
   Loaded after legacy freeze/width-controller layers. The Medical branch now uses
   a true device viewport and controlled reflow instead of a forced 1600px canvas. */
html,body{width:100%!important;min-width:0!important;max-width:100%!important;overflow-x:auto!important;-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important}
body>header,header.aurora-uhd,.site-header,.ads-site-header,.topbar,.navbar,.masthead,.ms-topbar{width:100%!important;min-width:0!important;max-width:100%!important}
img,picture,video,canvas,svg,iframe{max-width:100%!important}
/* Preserve meaningful medical / engineering graphics instead of cropping them. */
.module-hero img,.page-hero img,.organ-chip img,.bioforge-subcard img,.mask-gallery img{height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center!important}
.ms-hero-panel{height:auto!important;min-height:0!important}.ms-hero-panel img{height:auto!important;min-height:0!important;object-fit:contain!important}.ms-card img,.ms-mini-card img{object-position:center!important}
@media(max-width:1280px){
  .wrap,.module-wrap,.ms-module-shell,.bs-wrap,.bio-shell,.page-shell,.shell,.container,.site-main,.page-content,.content{width:calc(100% - 28px)!important;min-width:0!important;max-width:1180px!important;margin-left:auto!important;margin-right:auto!important}
  .site-header,.ads-site-header,header.aurora-uhd,.ms-topbar{flex-wrap:wrap!important;align-items:center!important}
  .top-nav,.ads-nav,.uhd-nav,.ms-nav{max-width:100%!important;min-width:0!important;flex-wrap:wrap!important}
  .core-grid,.device-grid,.support-grid,.module-grid,.bioforge-grid,.vision-feature-grid,.ms-grid,.research-grid,.info-grid,.folder-grid,.flow,.mask-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .support-card,.support-card:nth-child(5),.support-card:nth-child(6),.support-card:nth-child(7){grid-column:auto!important}
  .module-hero,.page-hero,.ms-hero-panel{grid-template-columns:1fr!important}
  .module-hero img,.page-hero img,.ms-hero-panel img{width:100%!important;max-width:100%!important}
  .ms-shell{width:calc(100% - 28px)!important;min-width:0!important;max-width:1180px!important;margin:0 auto!important;grid-template-columns:minmax(0,1fr)!important}
  .ms-sidebar{display:none!important}
}
@media(max-width:760px){
  body>header,.site-header,.ads-site-header,header.aurora-uhd,.ms-topbar{position:relative!important;top:auto!important;flex-direction:column!important;align-items:stretch!important;padding-left:12px!important;padding-right:12px!important}
  .brand,.ads-brand,.uhd-brand,.ms-brand{min-width:0!important;max-width:100%!important}
  .top-search,.ads-header-search,.uhd-search,.search{width:100%!important;max-width:100%!important;min-width:0!important;flex:1 1 100%!important}
  .top-nav,.ads-nav,.uhd-nav,.ms-nav,.bs-header nav{width:100%!important;max-width:100%!important;overflow-x:auto!important;flex-wrap:nowrap!important;justify-content:flex-start!important}
  .top-nav a,.ads-nav a,.uhd-nav a,.ms-nav a,.bs-header nav a{white-space:nowrap!important}
  .wrap,.module-wrap,.ms-module-shell,.bs-wrap,.page-shell,.shell,.container,.site-main,.page-content,.content{width:calc(100% - 16px)!important;min-width:0!important;max-width:100%!important;padding-left:0!important;padding-right:0!important}
  .core-grid,.device-grid,.support-grid,.module-grid,.bioforge-grid,.vision-feature-grid,.ms-grid,.research-grid,.info-grid,.folder-grid,.flow,.mask-gallery,.grid,.cards,.card-grid,.project-grid,.systems-grid,.feature-grid,.gallery-grid,.organ-grid{grid-template-columns:minmax(0,1fr)!important}
  .module-hero,.page-hero,.ms-hero-panel{padding:22px 16px!important;gap:18px!important}.module-hero h1,.ms-hero-panel h1{font-size:clamp(2.2rem,11vw,4rem)!important;overflow-wrap:anywhere!important}
  .portfolio-card,.ms-card,.ms-mini-card,.vision-feature-card,.bioforge-subcard{min-height:0!important}
  .portfolio-card img,.support-card img,.vision-feature-card img,.bioforge-subcard img,.ms-card img,.ms-mini-card img{height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;background:#061528!important}
  .cols{grid-template-columns:1fr!important}.section-heading,.section-head,.vision-feature-head{display:block!important}.vision-feature-head{grid-template-columns:1fr!important}
  .ms-footer{width:calc(100% - 16px)!important;flex-direction:column!important;gap:8px!important}
}
