/* Shared phone layout and touch controls. Desktop presentation is unchanged. */
@media(max-width:760px),(max-width:1050px) and (pointer:coarse){
  html{scroll-padding-top:82px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body{overflow-wrap:break-word}
  main :where(section,article,div,figure){min-width:0}
  main h1,main h2,main h3{overflow-wrap:anywhere;hyphens:auto}
  .cs-mobile-scroll-locked{overflow:hidden!important;overscroll-behavior:none}
  .cs-home-page .top-strip{display:none!important}
  .site-header{height:72px;gap:12px;padding:0 18px;isolation:isolate}
  .site-header .brand{order:0;margin-inline-end:auto;margin-inline-start:0;flex:none;min-width:48px;min-height:48px}
  .site-header .brand img{height:44px;width:auto;max-width:95px;object-fit:contain}
  .site-header .cs-original-language{order:1;flex:none;margin:0!important}
  .site-header .cs-original-language select{height:44px;max-width:142px!important;width:clamp(108px,32vw,142px);padding:7px 26px 7px 9px;border-radius:7px;font-size:16px;letter-spacing:0}
  .site-header .menu-button{order:2;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:58px;min-height:44px;padding:8px 4px;font-size:14px;line-height:1.2}
  .site-header .menu-button::before{content:"";display:block;width:16px;height:12px;flex:none;background:linear-gradient(currentColor,currentColor) 0 0/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 0 5px/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 0 10px/100% 2px no-repeat}
  .site-header .menu-button[aria-expanded=true]::before{background:linear-gradient(45deg,transparent 43%,currentColor 44% 56%,transparent 57%),linear-gradient(-45deg,transparent 43%,currentColor 44% 56%,transparent 57%);height:16px}
  .site-header .main-nav.open{position:fixed;top:var(--cs-header-bottom,72px)!important;inset-inline:0;display:grid;gap:0;padding:8px 20px max(20px,env(safe-area-inset-bottom));max-height:calc(100dvh - var(--cs-header-bottom,72px))!important;overflow:auto;overscroll-behavior:contain;background:#fff;border-bottom:1px solid #dce2e6;box-shadow:0 18px 24px #08364e18;font-size:16px;z-index:2}
  .site-header .main-nav.open a{display:flex;align-items:center;min-height:48px;padding:12px 8px;white-space:normal;border-bottom:1px solid #edf2f5}
  .cs-menu-backdrop{position:fixed;inset:var(--cs-header-bottom,72px) 0 0;background:#072b4566;z-index:29;touch-action:none}
  .cs-menu-backdrop[hidden]{display:none}
  .cs-home-page .hero{display:flex;flex-direction:column;align-items:stretch;min-height:0;background:#f6fafc}
  .cs-home-page .hero-content,html[lang=ar] .cs-home-page .hero-content{order:1;width:auto;max-width:none;margin:0;padding:30px 22px 28px;text-shadow:none}
  .cs-home-page .hero .kicker{margin-bottom:14px;font-size:11px;line-height:1.5;letter-spacing:.12em}
  .cs-home-page .hero h1,html[lang=ar] .cs-home-page .hero h1{margin:0 0 18px;font-size:clamp(32px,9vw,40px);line-height:1.08;letter-spacing:-.025em;overflow-wrap:normal}
  .cs-home-page .hero-lead,html[lang=ar] .cs-home-page .hero-lead{font-size:20px;line-height:1.3;margin-bottom:16px}
  .cs-home-page .hero-copy,html[lang=ar] .cs-home-page .hero-copy{font-size:15px;line-height:1.65;margin-bottom:0}
  .cs-home-page .hero-actions,html[lang=ar] .cs-home-page .hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
  .cs-home-page .hero-actions .button{min-width:0;min-height:56px;padding:12px 10px;text-align:center;font-size:14px;line-height:1.35}
  .cs-home-page .hero-photo,html[lang=ar] .cs-home-page .hero-photo{order:2;position:relative;inset:auto;z-index:0;display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:center}
  .cs-home-page .hero-shade{display:none}
  .cs-home-page .hero-stats,html[lang=ar] .cs-home-page .hero-stats{order:3;position:relative;inset:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .cs-home-page .hero-stats div{min-width:0;padding:17px 10px}
  .cs-home-page .hero-stats strong{font-size:20px;line-height:1.25}
  .cs-home-page .hero-stats span{display:block;font-size:12px;line-height:1.5}
  html[lang=ar] .cs-home-page .hero-content{direction:rtl;text-align:right}
  html[lang=ar] body{font-family:Tahoma,Arial,sans-serif}
  html[lang=ar] .cs-home-page .hero-copy{font-size:16px;line-height:1.8}
  html[lang=ar] .cs-home-page .hero h1{font-family:Tahoma,Arial,sans-serif;line-height:1.28;letter-spacing:0}
  .cs-home-page .section,.cs-home-page .product-content,.cs-home-page .factory-copy{padding-top:50px;padding-bottom:50px}
  .cs-home-page .section-heading h2,.cs-home-page .product-content h2,.cs-home-page .oem-heading h2,.cs-home-page .contact-copy h2{font-size:clamp(30px,8.2vw,38px);line-height:1.12}
  .cs-home-page .product-content{min-height:0}
  .cs-home-page .product-item p{font-size:14px;line-height:1.6}
  .cs-home-page .product-link{font-size:18px;line-height:1.3;text-align:start}
  .cs-home-page .product-item{min-height:48px}
  .cs-home-page .litter-style-grid h3{font-size:18px;line-height:1.3}
  .exhibition-filters button,.carousel-dots button{min-height:44px;min-width:44px}
  .carousel-dots button{position:relative;background-clip:content-box;padding:14px!important;border-color:transparent}
  .exhibition-feature-copy h3{font-size:32px;line-height:1.12}
  .exhibition-card-copy p,.exhibition-feature-copy>p,.catalog-copy p,.catalog-copy li{font-size:15px;line-height:1.65}
  .product-modal{padding:0;overscroll-behavior:contain}
  .product-modal .product-modal-card{width:100%;max-width:none;height:100dvh;max-height:100dvh;display:block;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-top:64px;padding-bottom:env(safe-area-inset-bottom);border-radius:0}
  .product-modal .product-modal-media,.product-modal .product-modal-media img{height:240px;min-height:0;max-height:none}
  .product-modal .product-modal-media img{padding:20px 52px 18px}
  .product-modal .product-modal-copy{height:auto;padding:24px 20px 36px;overflow:visible;display:flex;flex-direction:column}
  .product-modal #product-modal-kicker{order:0}.product-modal #product-modal-title{order:1}.product-modal #product-modal-description{order:2}.product-modal #product-modal-flavors{order:3}.product-modal #product-modal-features{order:4}.product-modal #product-modal-cta{order:5}.product-modal #product-modal-page-link{order:6}.product-modal #product-modal-detail{order:7}
  .product-modal .product-modal-copy h2{font-size:30px;line-height:1.15}
  .product-modal .product-modal-copy>p:not(.kicker){font-size:16px;line-height:1.65}
  .product-modal .product-modal-copy ul{font-size:14px;line-height:1.6}
  .product-modal .product-modal-flavor span{font-size:12px;line-height:1.4;padding:7px 4px}
  .product-modal .product-modal-flavor-list{gap:10px}
  .product-modal .product-modal-detail-list,.product-modal .product-modal-crm-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;padding:2px;gap:10px}
  .product-modal .product-modal-crm-gallery-group h3{font-size:15px;line-height:1.5}
  .product-modal .modal-subtitle{font-size:12px;line-height:1.5}
  .product-modal .product-modal-close,.product-modal[data-product="economy-tofu"] .product-modal-close,.detail-lightbox .detail-lightbox-close,.exhibition-lightbox .exhibition-lightbox-close,.image-modal .modal-close{position:fixed;top:max(10px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));left:auto;width:46px;height:46px;min-width:46px;min-height:46px;padding:0;display:grid;place-items:center;z-index:5;border:1px solid #d7e6ed;border-radius:50%;background:#fff;color:#075a9e;box-shadow:0 3px 18px #052b452e;font-size:32px;line-height:1;cursor:pointer}
  .product-modal #product-modal-cta{width:100%;font-size:15px;line-height:1.4;padding:12px 16px}
  .product-modal-page-link{margin:16px 0 0;min-height:44px;display:inline-flex;align-items:center;font-size:15px}
  .product-modal-page-link[hidden]{display:none}
  .detail-lightbox,.image-modal{padding:68px 10px max(16px,env(safe-area-inset-bottom));overscroll-behavior:contain}
  .detail-lightbox img,.image-modal img{max-width:100%;max-height:calc(100dvh - 90px);object-fit:contain}
  .cat-modal,.cassava-image-dialog{padding:64px 10px 16px;max-width:96vw;max-height:94dvh}
  .cat-modal .modal-close,.cassava-image-dialog>button{position:fixed;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));width:46px;height:46px;min-width:46px;min-height:46px;padding:0;border:1px solid #d7e6ed;border-radius:50%;background:#fff;color:#075a9e;box-shadow:0 3px 18px #052b452e;font-size:32px;line-height:1;z-index:5}
  .cat-modal img,.cassava-image-dialog img{max-width:100%;max-height:calc(94dvh - 110px);object-fit:contain}
  .exhibition-lightbox{padding:0}
  .exhibition-lightbox-card{width:100%;max-width:none;max-height:100dvh;overscroll-behavior:contain}
  .exhibition-lightbox-media{height:60dvh;touch-action:pan-y pinch-zoom}
  .exhibition-lightbox-media img{max-height:60dvh}
  .exhibition-lightbox-nav{min-height:48px;min-width:44px}
  .exhibition-lightbox-copy{padding:24px 22px max(28px,env(safe-area-inset-bottom))}
  .inquiry-form input,.inquiry-form select,.inquiry-form textarea{min-height:48px;font-size:16px;line-height:1.5;padding:12px}
  .inquiry-form label{font-size:14px;line-height:1.5}
  .inquiry-form textarea{min-height:130px}
  .inquiry-form{padding:24px 20px;gap:18px}
  .inquiry-form .button{min-height:50px;font-size:16px;line-height:1.4;padding:12px}
  .contact-lines a{display:flex;align-items:center;min-height:44px;overflow-wrap:anywhere}
  .social-links a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
  .cat-sections{gap:4px 10px;justify-content:flex-start;padding:10px 20px}
  .cat-sections a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;padding:6px 2px}
  .style-card p,.compliance-note{font-size:14px;line-height:1.65}
  .oem-capability p,.factory-process p,.buyer-aside p{font-size:14px;line-height:1.65}
  .cassava-breadcrumb{flex-wrap:wrap;line-height:1.6}
  .factory-page .site-header{position:sticky;top:0;height:auto;min-height:72px;padding:10px 18px 0;display:flex;flex-wrap:wrap;gap:0 12px;background:#f7fbfd;border-bottom:1px solid #dce2e6;backdrop-filter:none}
  .factory-page .site-header .brand{padding:0;margin-inline-end:auto}
  .factory-page .site-header nav{order:3;display:flex;width:100%;flex-basis:100%;gap:22px;overflow-x:auto;white-space:nowrap;padding:4px 0 0;scrollbar-width:none}
  .factory-page .site-header nav a{display:inline-flex;align-items:center;flex:none;min-height:44px;padding:8px 0;color:#075a9e;font-size:14px;line-height:1.3}
  .factory-page .site-header .header-cta{display:none}
  .factory-page nav.page-breadcrumb{padding:18px 22px;font-size:13px}
  .factory-page .hero{min-height:0}
  .factory-page .hero-copy{padding:48px 22px 44px}
  .factory-page .hero h1{font-size:clamp(44px,12vw,58px);line-height:1.06;letter-spacing:-.035em}
  .factory-page .hero-lead{font-size:16px;line-height:1.7}
  .factory-page .hero-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:26px;padding-top:22px}
  .factory-page .hero-metrics strong{font-size:22px;line-height:1.3}
  .factory-page .hero-metrics span{min-width:0;padding:0;font-size:12px;line-height:1.5}
  .factory-page .hero-metrics strong{white-space:nowrap}
  .factory-page .chapter-heading>p:last-child,.factory-page .overview-copy,.factory-page .fact-grid p,.factory-page .traceability p{font-size:15px;line-height:1.7}
  .factory-page .test-list h3{font-size:14px;line-height:1.4}
  .factory-page .process-steps p,.factory-page .delivery-points p{font-size:15px;line-height:1.7}
  .analytics-consent{bottom:max(10px,env(safe-area-inset-bottom))!important;left:10px!important;right:10px!important;padding:12px 14px!important;gap:10px!important;max-height:45dvh;overflow:auto;font-size:14px!important;line-height:1.45!important}
  .analytics-consent__actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
  .analytics-consent button{min-height:44px!important;white-space:normal;line-height:1.25!important;padding:9px!important}
  html.cs-overlay-active .analytics-consent,html.cs-mobile-menu-open .analytics-consent{visibility:hidden}
  html[lang=ar] .site-header .menu-button{letter-spacing:0}
  @media(max-width:360px){.site-header{gap:8px;padding-inline:12px}.site-header .cs-original-language select{width:110px;max-width:110px!important;font-size:15px}.site-header .menu-button{min-width:54px;font-size:13px}.cs-home-page .hero-content{padding-inline:20px}.cs-home-page .hero-lead{font-size:18px}.factory-page .hero-metrics{gap:8px}.factory-page .hero-metrics strong{font-size:20px}}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{transition:none!important;transform:none!important;opacity:1!important}.carousel-dots button{transition:none}}
