/* 375px mobile reading, touch and case browsing. Desktop styles stay intact. */
@media(max-width:800px){
 html{overflow-x:clip;scroll-padding-top:90px;-webkit-text-size-adjust:100%}
 html body{width:100%;max-width:100%;overflow-x:clip;font-size:16px;line-height:1.65}
 html body :is(main,section,article,aside,form,fieldset,.wrap,.section-width,.form-two,.estimate-layout,.estimate-result){min-width:0;max-width:100%;box-sizing:border-box}
 html body :is(p,li,dt,dd,label,legend,figcaption,small,.helper,.fineprint,.small-note,.contact-note,.auth-caption,.faq-meta,.article-body,.zx-chat-bubble,.zx-chat-role,.zx-chat-message-status){font-size:16px!important;line-height:1.65!important;overflow-wrap:anywhere}
 html body :is(button,summary,input,textarea,select){font-size:max(16px,1em)!important;line-height:1.6}
 html body :where(button,a[href],summary,input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea){min-width:44px;min-height:44px;box-sizing:border-box}
 html body button,html body summary{touch-action:manipulation}
 html body a.zx-touch-link{display:inline-flex;align-items:center;gap:6px;max-width:100%;vertical-align:middle;overflow-wrap:anywhere}
 html body :is(.footer-nav,.integrated-related,.page-footer nav,.contact-actions,.case-actions,.dir-filters){gap:12px}
 html body :is(input,textarea,select){width:100%;max-width:100%;scroll-margin-block:100px 160px}
 html body :is(input[type=checkbox],input[type=radio]){width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;flex-shrink:0;margin:0}
 html body label.consent{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding-block:10px}
 html body :is(.site-brand small,.site-wordmark small){font-size:9px!important;line-height:1.3!important}
 html body .site-menu-toggle{flex-shrink:0}
 html body .site-header-inner{gap:12px}
 html body .site-nav.open{max-height:calc(100dvh - 90px);overflow-y:auto}
 html body .dir-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-block:28px}
 html body .dir-filters button{width:100%;padding:10px 8px;white-space:normal}
 html body .dir-card img{height:auto;aspect-ratio:4/3;object-fit:contain}
 html body .dir-card h2{font-size:22px;line-height:1.45;overflow-wrap:anywhere}
 html body .faq-cats a,html body .faq-categories a{white-space:normal}
 html body .case-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;overflow:hidden}
 html body .case-dialog .case-wrap{height:100%;padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important;overscroll-behavior-y:contain}
 html body .case-title-row h2{font-size:30px;line-height:1.45;overflow-wrap:anywhere}
 html body .case-dialog .case-header{z-index:5}
 html body .case-dialog .case-header :is(#casePrev,#caseNext){font-size:22px!important}
 html body .case-dialog .case-header #caseClose{font-size:28px!important}
 html body .case-dialog .case-brand{min-width:0;min-height:44px;display:flex;align-items:center;font-size:12px!important}
 html body .case-dialog .case-cover,html body .case-dialog .case-details{display:none}
 html body .zx-case-gallery{display:block;width:calc(100% + 32px);max-width:none;margin-left:-16px;background:#151614}
 html body .zx-case-slides{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;touch-action:pan-x pan-y pinch-zoom}
 html body .zx-case-slides::-webkit-scrollbar{display:none}
 html body .zx-case-slide{flex:0 0 100%;width:100%;scroll-snap-align:start;border:0;padding:0;background:transparent;color:#f1e5bd;display:block;border-radius:0;position:relative}
 html body .zx-case-slide img{width:100%;height:300px;object-fit:contain;display:block}
 html body .zx-case-slide span{display:block;padding:10px 16px;font-size:16px;line-height:1.6}
 html body .zx-case-gallery-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}
 html body .zx-case-gallery-nav button{width:44px;height:44px;border:1px solid #c7b887;border-radius:50%;background:transparent;color:#f3e8c6;font-size:20px!important}
 html body .zx-case-gallery-nav button:disabled{opacity:.35}
 html body .zx-case-gallery-nav span{font-size:16px;color:#f3e8c6}
 html body .zx-case-dock{display:block;position:absolute;bottom:0;inset-inline:0;z-index:6;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:#171916;border-top:1px solid #887a55}
 html body .zx-case-dock button{width:100%;min-height:48px;border:1px solid #e4d5a4;border-radius:999px;background:#f1e7c7;color:#242720;font-size:17px!important}
 html body .zoom-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:0;overflow:hidden}
 html body .zoom-dialog #zoomClose{position:absolute;z-index:4;right:12px;top:12px;width:44px;height:44px;padding:0;font-size:28px!important;border-radius:50%}
 html body .zx-zoom-tools{position:absolute;z-index:3;top:12px;left:12px;display:flex;gap:12px}
 html body .zx-zoom-tools button{position:static;min-width:64px;height:44px;padding:6px 12px;border-radius:24px;font-size:16px!important}
 html body .zx-zoom-stage{position:absolute;inset:76px 0 64px;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}
 html body .zx-zoom-stage #zoomImage{display:block;width:calc(100% * var(--zx-zoom,1));height:calc(100% * var(--zx-zoom,1));max-width:none;object-fit:contain;margin:0}
 html body .zx-zoom-help{position:absolute;bottom:12px;left:16px;right:16px;color:white;text-align:center;font-size:16px;line-height:1.6;margin:0}
 html body .zx-chat-panel{right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;top:auto;width:calc(100% - 24px)!important;height:min(680px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;min-height:0!important}
 html body .zx-chat-head{padding:12px;gap:8px}
 html body .zx-chat-head button{width:44px;height:44px;flex-shrink:0}
 html body .zx-chat-stream{padding:16px}
 html body .zx-chat-compose{padding:12px}
 html body .zx-chat-compose small{font-size:16px!important;line-height:1.6!important}
 html body .zx-help-launch{width:48px!important;height:48px!important;right:16px!important;bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}
 html body #lineFloatLink{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important}
 html body.modal-active :is(.zx-help-launch,#lineFloat){visibility:hidden}
 html body :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #a88839;outline-offset:3px}
}
.zx-case-gallery,.zx-case-dock,.zx-zoom-tools,.zx-zoom-help{display:none}
@media(max-width:800px){.zx-case-gallery,.zx-case-dock,.zx-zoom-tools,.zx-zoom-help{display:revert}}
@media(min-width:801px){.zx-zoom-stage{width:100%;height:100%}}

@media(max-width:800px){
 html body[data-page] .benefit-cap{font-size:16px!important;line-height:1.65!important}
 html body #lineFloat{transform:none!important;right:16px!important;bottom:calc(16px + env(safe-area-inset-bottom,0px))!important}
 html body #lineFloatLink{font-size:16px!important}
 html body .zx-case-gallery .zx-case-slide img{height:300px!important;width:100%!important;object-fit:contain!important}
 html body .zx-case-gallery .zx-case-slide{min-height:0!important;aspect-ratio:auto!important}
}
@media(max-width:800px){
 html body[data-page=work] .work-directory :is(.intro,.intro p,.dir-card small){color:#615d55!important}
 html body[data-page=work] .dir-filters button{color:#59564f!important}
 html body[data-page=work] .dir-filters button.on{background:#f1e7c7!important;color:#242720!important;border-color:#b9a66d!important}
}
@media(max-width:800px){
 html body[data-page] :is(.marquee-toggle,.benefit-action,.search-submit,.footer-nav a),html body[data-page] #estimateInquiry{min-width:44px!important;min-height:44px!important}
 html body footer a{font-size:16px!important;line-height:1.6!important}
 html body[data-page=faq] .search-submit{width:44px!important;height:44px!important;flex:0 0 44px}
 html body[data-page=estimate] .benefit-action{padding:10px 14px!important;line-height:1.6!important}
}
@media(max-width:800px){html body[data-page=faq] .footer-links a{min-width:44px!important;min-height:44px!important;font-size:16px!important}html body[data-page=faq] .footer-links{gap:12px!important}}
