/* Aurora Engineering Systems | Width Guard | Rev 2.1 | 2026-11-21
   Shared page-canvas control for all Engineering v2 branches.
   Preserve existing 1440–1760px desktop designs; do not crush into a narrow
   tablet/zoom column. On narrow screens, allow horizontal navigation instead.
*/
:root{--aes-canvas-min:1440px;--aes-content-min:1360px;}
@media screen {
  html,body{min-width:var(--aes-canvas-min)!important;max-width:none!important;overflow-x:auto!important;-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;}
  img,video,svg,canvas,picture{max-width:100%;}
  body > header, .site-header, .ees-header, .app-head, .topbar, .app-topbar {min-width:var(--aes-canvas-min)!important;max-width:none!important;}
}
@media screen and (max-width:1439px){
  body > .shell,body > main, body > .app-wrap,
  main:is(.shell,.app-wrap,.ees-shell,.app-main,.core-wrap),
  body > .app-page, body > .ees-shell {
    min-width:var(--aes-content-min)!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  /* Match the original desktop multi-card layout rather than cramped columns. */
  .shell > .grid,.shell .grid,
  .ees-grid,.app-grid {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  /* Materials' division homepage explicitly specifies six technical families. */
  .phase4a-main #families .core-grid.cols-4 {grid-template-columns:repeat(6,minmax(0,1fr))!important;}
  .phase4a-main #families .core-card {min-width:0!important;}
}
@media print{html,body{min-width:0!important;width:auto!important;overflow:visible!important;}}
