/* Shared phone/tablet layout; desktop styling is preserved. */
@media(max-width:1000px){
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 body{min-width:0}
 .wrap{width:calc(100% - 32px)!important;max-width:100%}
 .home-ai-video>.wrap{width:100%!important;max-width:none!important}
 header.fw-mobile-ready{height:calc(72px + env(safe-area-inset-top,0px))!important;min-height:calc(72px + env(safe-area-inset-top,0px))!important;padding-top:env(safe-area-inset-top,0px)}
 header.fw-mobile-ready .links{max-height:calc(100svh - var(--fw-mobile-menu-top,72px) - 16px - env(safe-area-inset-bottom,0px));touch-action:pan-y}
 header.fw-mobile-ready .fw-menu-toggle,header.fw-mobile-ready .cloud-toggle,header.fw-mobile-ready .portfolio-toggle{min-width:44px;min-height:44px}
 .portfolio-video-heading{padding-top:calc(104px + env(safe-area-inset-top,0px))}
 body.portfolio-video-page .portfolio-video-heading>.wrap>.board-title{white-space:normal;font-size:clamp(36px,7vw,64px);line-height:1.08;min-height:0;margin:24px 0 32px;overflow-wrap:normal}
 .country-tabs{max-width:100%!important;width:100%!important;margin-left:0!important;margin-right:0!important}
 .cloud-hero-grid>* ,.cloud-energy-grid>* ,.cloud-faq-grid>* ,.cloud-gpu-panel>* ,.project>* ,.region-intro>* ,.board-grid>*{min-width:0}
 .home-ai-video-caption{left:max(18px,env(safe-area-inset-left,0px));right:max(18px,env(safe-area-inset-right,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));gap:12px}
 .home-ai-video-caption button,.portfolio-video-pause{min-height:44px;flex-shrink:0}
 .portfolio-video-pause{bottom:calc(18px + env(safe-area-inset-bottom,0px));right:max(18px,env(safe-area-inset-right,0px))}
 .reference-map-viewport{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .reference-map-controls button,.reference-map-controls a,.wm-countries button{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
}
@media(max-width:720px){
 .portfolio-video-hero{height:auto;min-height:100svh;padding-bottom:100px}
 .portfolio-video-heading{padding-top:calc(96px + env(safe-area-inset-top,0px))}
 body.portfolio-video-page .portfolio-video-heading>.wrap>.country-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;overflow:visible!important;padding:0!important}
 body.portfolio-video-page .portfolio-video-heading>.wrap>.country-tabs a,body.portfolio-video-page .portfolio-video-heading>.wrap>.country-tabs a:first-child,body.portfolio-video-page .portfolio-video-heading>.wrap>.country-tabs a:last-child{min-width:0;min-height:52px!important;padding:10px 4px!important;font-size:13px!important;gap:5px!important;white-space:normal!important;line-height:1.35;text-align:center;justify-content:center}
 body.portfolio-video-page .portfolio-video-heading>.wrap>.country-tabs .country-tab-icon{font-size:14px;flex-shrink:0}
 body.portfolio-video-page .portfolio-video-heading>.wrap>.board-title{margin:22px 0 24px;font-size:clamp(34px,8vw,54px)}
 .country-hero h1,.jp-heading h1,.portfolio-country-heading h1,.it-country-heading h1,.sp-country-heading h1,.au-location-heading h1{white-space:normal!important;overflow-wrap:normal;font-size:clamp(40px,11vw,68px)!important;line-height:1.08!important}
 .cloud-actions{gap:16px}.cloud-btn{max-width:100%;white-space:normal;gap:16px}
 .board-kpis,.country-detail .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .summary-heading,.map-portfolio-heading,.cm-heading,.wm-top{flex-wrap:wrap;gap:18px}
 .site-footer .footer-column,.site-footer .footer-contact{min-width:0}
}
@media(max-width:360px){
 body.portfolio-video-page .portfolio-video-heading>.wrap>.board-title{font-size:32px}
 body.portfolio-video-page .portfolio-video-heading>.wrap>.country-tabs a{font-size:12px!important;gap:3px!important}
 .home-ai-video-caption>span{max-width:55%;line-height:1.4}
}
