/* I.E.BAT V5.17 — responsive only; desktop >1050px untouched. */
@media (max-width:1050px){
  header.iebat-unified{height:76px!important;min-height:76px!important;flex-direction:row!important;gap:8px!important;padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left))!important;}
  header.iebat-unified .brand{flex:0 1 auto!important;min-width:0!important;width:clamp(105px,30vw,205px)!important;max-width:45%!important;}
  header.iebat-unified .brand img{max-height:62px!important;}
  header.iebat-unified>.iebat-global-toggle{flex:0 0 auto!important;min-width:44px;min-height:44px;margin-left:auto!important;padding:5px 8px!important;}
  header.iebat-unified>.iebat-native-lang{flex:0 0 auto;min-width:0;margin:0!important;}
  header.iebat-unified .iebat-native-lang-toggle{min-height:44px;padding:8px 9px;font-size:13px;gap:4px;}
  header.iebat-unified .iebat-native-lang-list{max-width:calc(100vw - 24px);max-height:calc(100vh - 90px);max-height:calc(100dvh - 90px);overflow:auto;}
  header.iebat-unified>nav.iebat-open{top:100%!important;max-height:calc(100vh - 76px);max-height:calc(100dvh - 76px);overflow-y:auto!important;overscroll-behavior:contain;gap:5px!important;flex-wrap:nowrap!important;padding:12px 16px max(16px,env(safe-area-inset-bottom))!important;}
  header.iebat-unified>nav>a,header.iebat-unified>nav .iebat-nav-group>a{font-size:16px!important;min-height:44px!important;white-space:normal!important;overflow-wrap:anywhere;}
  header.iebat-unified>nav .iebat-nav-group>a{flex:1;min-width:0;padding:10px 12px!important;}
  header.iebat-unified>nav .iebat-nav-arrow{min-width:44px;min-height:44px;font-size:18px;}
  header.iebat-unified>nav .iebat-nav-dropdown a{min-height:44px!important;display:flex;align-items:center;}
  header.iebat-unified>nav .iebat-nav-group:not(.iebat-expanded)>.iebat-nav-dropdown{display:none!important;}
  header.iebat-unified>nav .iebat-nav-group.iebat-expanded>.iebat-nav-dropdown{display:grid!important;}
  .subnav{position:relative!important;top:auto!important;display:block!important;overflow:visible!important;padding:12px 5%!important;}
  .subnav>span{display:none!important;}
  .subnav>div{display:flex!important;flex-wrap:wrap;gap:5px 14px!important;white-space:normal!important;min-width:0;}
  .subnav a{display:inline-flex;align-items:center;min-height:44px;white-space:normal;overflow-wrap:anywhere;max-width:100%;}
  .hero-inner,.hero-content,.contact-video-content,.hcontent,.mission-copy,.mission .visual{min-width:0;max-width:100%;overflow-wrap:anywhere;}
  .hero h1,.hero h1 em,.hpanel :is(h1,h2){overflow-wrap:anywhere;}
  .mission{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .iebat-privacy-overlay{overflow:auto;}
  .iebat-privacy-panel{box-sizing:border-box;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow:auto;}
  .ieb-cookie{box-sizing:border-box;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:auto;}
}
@media (max-width:760px){
  .hero h1,.hero h1 em{font-size:clamp(30px,8.7vw,48px)!important;line-height:1.12!important;}
  .hero-inner,.hero-content,.contact-video-content{width:100%;}
  .hero p{overflow-wrap:anywhere;}
  .mission{grid-template-columns:minmax(0,1fr);}
  .mission-copy,.mission .visual{min-width:0;}
  .contact-panel input:not([type=checkbox]),.contact-panel select,.contact-panel textarea{font-size:16px;min-width:0;max-width:100%;}
  .contact-attachments input[type=file]{max-width:100%;font-size:16px;overflow:hidden;}
  .modal{padding:10px!important;}
  .modal-content{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);overscroll-behavior:contain;}
  .modal-body{padding:12px 20px 25px;overflow-wrap:anywhere;}
  .modal .close{width:44px;height:44px;}
  .filter-group .chip,.filter-sub .chip,.reset,.load{min-height:44px;}
  .iebat-premium-up{right:10px!important;top:auto!important;bottom:calc(76px + env(safe-area-inset-bottom,0px))!important;margin-top:0!important;}
}
@media (max-width:480px){
  .docs-grid{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important;}
  .docs-card{padding:12px!important;min-width:0;}
  .docs-card h3{font-size:16px!important;overflow-wrap:anywhere;}
  .docs-card img{height:clamp(140px,45vw,210px)!important;}
  .doc-actions{flex-wrap:wrap;}
  .doc-actions a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;}
  .hpanel{padding:86px 7% 66px!important;}
  .hpanel :is(h1,h2){font-size:clamp(30px,9vw,43px)!important;margin:16px 0!important;}
  .hpanel p{font-size:16px;line-height:1.45;margin:0 0 18px;}
  .hpanel .yellow-line{margin-bottom:16px;}
  .hpanel .cta{min-height:44px;padding:12px 15px;gap:12px;max-width:100%;}
  .panel-num{bottom:42px;}
  .horizontal-footer{bottom:13px;gap:8px;letter-spacing:.06em;}
  .iebat-privacy-panel{padding:18px;}
}
/* Short touch-size landscape: retain the eight-panel carousel, allow each panel to scroll. */
@media (max-width:1050px) and (max-height:550px) and (prefers-reduced-motion:no-preference){
  .hpanel{align-items:flex-start!important;padding:85px 7% 45px!important;overflow-y:auto;overscroll-behavior:contain;}
  .hpanel :is(h1,h2){font-size:clamp(27px,5vw,40px)!important;margin:10px 0!important;}
  .hpanel p{font-size:15px;line-height:1.4;margin-bottom:14px;}
  .hpanel .yellow-line{margin-bottom:12px;}
  .hpanel .cta{padding:10px 15px;min-height:44px;}
  .panel-num{display:none;}
  .horizontal-footer{bottom:8px;}
}
