/* IMS Responsive QA v1.0.0 — Tablet 681–1023, Mobile <=680 */
/* Hero image files, type scale and desktop styles are intentionally unchanged. */
@media (min-width:681px) and (max-width:1023px) {
  .site-header .header-inner {box-sizing:border-box;max-width:100%;min-width:0;}
  .site-header .brand, .site-header #imsMemberAccount {min-width:0;}
  .site-header .header-inner > * {max-width:100%;}
  /* Training remains tabular on tablet; scrolling is restricted to the table itself */
  .table-wrap {max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
}
@media (max-width:680px) {
  /* Header: make Logo + Hamburger + account button fit within mobile viewport. */
  .site-header .header-inner {
    box-sizing:border-box !important;
    width:100% !important;max-width:100% !important;min-width:0 !important;
    display:flex !important;flex-wrap:nowrap !important;align-items:center !important;
    gap:8px !important;padding:0 10px !important;
  }
  .site-header .brand {flex:0 1 auto !important;min-width:0 !important;max-width:42% !important;}
  .site-header .brand img {display:block;max-width:100% !important;width:auto !important;height:auto !important;}
  .site-header #menuBtn {flex:0 0 auto !important;min-width:32px !important;margin:0 !important;}
  .site-header #imsMemberAccount {flex:0 1 auto !important;min-width:0 !important;max-width:40% !important;margin-left:auto !important;}
  .site-header #imsMemberAccount > * {box-sizing:border-box !important;max-width:100% !important;min-width:0 !important;}
  /* Keep the working mobile menu toggle; never force the closed menu visible. */
  .site-header #navMenu:not(.open) {display:none !important;}
  .site-header #navMenu.open {display:flex !important;flex-direction:column !important;}
  /* Keep banner's original image ratio. Avoid scaling to fixed height. */
  .home-v72 .hero-section, .home-v72 .hero-slider,
  .hero-section, .hero-slider {box-sizing:border-box;max-width:100%;min-width:0;}
  .hero-slider .slide img {display:block;max-width:100% !important;height:auto !important;object-fit:contain !important;}
  /* Table scrolling is local, preventing its min-width from growing the whole page. */
  .table-wrap {box-sizing:border-box;max-width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch;}
  .training-table {max-width:none;}
  /* Long calendar labels may wrap instead of expanding their parent. */
  .home-v72 .container, .home-v72 main, .home-v72 section {min-width:0;}
}
