/*
Theme Name: Canghai Machinery
Author: Canghai Thailand
Description: A responsive, trilingual catalogue and service website for Canghai Thailand.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: canghai
*/
:root{--ink:#192d27;--quiet:#53635c;--paper:#f8f7f1;--white:#fff;--line:#d4d8cd;--dark:#172d27;--accent:#ae332b;--accent-hover:#86251e;--gutter:clamp(1.15rem,4.3vw,5.5rem);--max:1420px;--top:75px;color-scheme:light}
*{box-sizing:border-box}
html{scroll-padding-top:calc(var(--top) + 12px)}
body{margin:0;color:var(--ink);background:var(--paper);font-family:"Segoe UI","Noto Sans Thai",Leelawadee UI,Arial,"Microsoft YaHei",sans-serif;font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
:lang(th){line-height:1.56}
body:lang(zh-CN){font-family:"Microsoft YaHei","PingFang SC","Segoe UI",sans-serif}
h1,h2,h3,h4,p,figure,ul,ol{margin:0}
h1,h2,h3{font-weight:650;line-height:1.1;letter-spacing:-.035em;text-wrap:balance}
h1:lang(th),h2:lang(th),h3:lang(th){line-height:1.22;letter-spacing:-.025em}
p,address{overflow-wrap:break-word}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit}
button,a{touch-action:manipulation}
img,video,iframe{display:block;max-width:100%}
img{height:auto}
svg{display:block;width:1.18em;height:1.18em;flex:none;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}
:focus-visible{outline:3px solid #c66a36;outline-offset:4px}
.ch-wrap{width:min(var(--max),calc(100% - 2 * var(--gutter)));margin-inline:auto}
.ch-skip{position:fixed;z-index:100;left:1rem;top:-6rem;background:#fff;color:#132b22;padding:.8rem 1.2rem}
.ch-skip:focus{top:.5rem}
.ch-header{position:sticky;top:0;z-index:30;background:rgba(251,250,246,.98);border-bottom:1px solid var(--line)}
.admin-bar .ch-header{top:32px}
.ch-headrow{display:flex;align-items:center;min-height:var(--top);gap:clamp(1rem,2vw,2.5rem)}
.ch-brand{display:inline-flex;gap:.55rem;align-items:center;flex:none;line-height:1}
.ch-brand .ch-brand-mark{width:49px;height:39px;object-fit:contain;mix-blend-mode:multiply}
.ch-brand>span{display:grid;gap:.25rem;font:750 clamp(1.05rem,1.6vw,1.4rem)/1 Arial,sans-serif;letter-spacing:.018em}
.ch-brand small{font:600 .48rem/1.2 Arial,sans-serif;letter-spacing:.13em}
.ch-nav{display:flex;align-items:stretch;align-self:stretch;margin-left:auto;gap:clamp(.9rem,2vw,2.1rem)}
.ch-nav>a{position:relative;display:flex;align-items:center;font-size:.91rem;font-weight:600;white-space:nowrap}
.ch-nav>a::after{position:absolute;content:"";bottom:15px;left:0;right:0;height:2px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .2s}
.ch-nav>a[aria-current]::after,.ch-nav>a:hover::after{transform:scaleX(1)}
.ch-lang{display:flex;align-items:center;flex:none;gap:2px;border-left:1px solid var(--line);padding-left:clamp(.25rem,1.2vw,1.15rem)}
.ch-lang a{display:grid;min-width:30px;min-height:34px;place-content:center;font-size:.78rem;color:var(--quiet);font-weight:600}
.ch-lang [aria-current=true]{color:var(--ink);background:#e6e9de;border-radius:3px}
.ch-head-contact,.ch-btn{display:inline-flex;align-items:center;justify-content:center;gap:.8rem;min-height:46px;padding:.7rem 1.25rem;font-weight:650;line-height:1.35;transition:background-color .2s,transform .2s}
.ch-head-contact{background:var(--dark);color:white;font-size:.86rem;white-space:nowrap}
.ch-head-contact:hover,.ch-btn-dark:hover{background:#304e43}
.ch-menu-toggle{display:none;background:none;border:0;padding:.5rem;cursor:pointer}
.ch-menu-toggle svg{width:24px;height:24px}
.ch-hero{position:relative;isolation:isolate;overflow:hidden;background:#202b26;color:white}
.ch-hero-image,.ch-hero-image::after,.ch-hero-image img{position:absolute;inset:0;width:100%;height:100%}
.ch-hero-image{z-index:-1}
.ch-hero-image img{object-fit:cover;object-position:center 54%}
.ch-hero-image::after{content:"";background:linear-gradient(90deg,rgba(9,23,19,.96) 0%,rgba(12,24,20,.86) 21%,rgba(11,24,20,.55) 43%,rgba(13,24,21,.04) 74%),linear-gradient(0deg,rgba(10,25,19,.25),transparent 45%)}
.ch-hero-inner{min-height:clamp(465px,40vw,635px);display:flex;align-items:center;padding-block:clamp(3.2rem,6vw,6.4rem)}
.ch-hero-copy{width:min(51%,685px)}
@media(prefers-reduced-motion:no-preference){.ch-hero-copy{animation:ch-hero-arrive .42s cubic-bezier(.2,.65,.28,1) both}@keyframes ch-hero-arrive{from{transform:translateY(7px)}to{transform:translateY(0)}}}
.ch-location{display:flex;align-items:center;gap:.5rem;color:inherit;font-size:.86rem;font-weight:600;letter-spacing:.035em}
.ch-location svg{width:1.1rem;height:1.1rem}
.ch-hero .ch-location{color:#eff0df}
.ch-hero h1{font-size:clamp(2.6rem,5.3vw,5.6rem);margin:1.2rem 0 1.1rem;max-width:13ch;text-shadow:0 1px 8px #12221b44}
.ch-hero h1:lang(th){max-width:14ch;font-size:clamp(2.7rem,5.1vw,5.3rem)}
.ch-hero h1:lang(zh-CN){max-width:10ch}
.ch-hero-copy>p{font-size:clamp(1rem,1.3vw,1.2rem);line-height:1.65;max-width:46ch;color:#f2f2e9}
.ch-visit-copy .ch-address-label{display:block;font-weight:650;margin-bottom:.2rem}.ch-contact-grid .ch-line-contact{margin:.8rem 0}.ch-line-contact b{margin-right:.3rem}
.ch-foot-contact small,.ch-hq-links>b{font-size:.8rem;color:#d2ddd4}.ch-hq-links>div{display:flex;gap:.48rem;flex-wrap:wrap;margin-top:.45rem}.ch-hq-links a{display:grid;place-items:center;width:38px;height:38px;background:#f8f9f5;border:1px solid #d6ded8;border-radius:50%;color:#23372f}.ch-hq-links img,.ch-hq-links svg{width:21px;height:21px;object-fit:contain}
.ch-actions{display:flex;align-items:center;flex-wrap:wrap;gap:1rem 1.7rem}
.ch-hero .ch-actions{margin-top:clamp(1.35rem,2.6vw,2.3rem)}
.ch-btn-red{background:var(--accent);color:#fff;box-shadow:0 3px 14px #27130c22}
.ch-btn-red:hover{background:var(--accent-hover)}
.ch-btn-dark{background:var(--dark);color:#fff}
.ch-hero-secondary,.ch-text-action,.ch-link{display:inline-flex;align-items:center;gap:.55rem;font-weight:650;line-height:1.35}
.ch-hero-secondary{border-bottom:1px solid #ffffffe0;padding:.4rem 0}
.ch-link,.ch-text-action{color:var(--accent);padding-block:.35rem}
.ch-link:hover,.ch-text-action:hover,.ch-hero-secondary:hover{text-decoration:underline;text-underline-offset:.3em}
.ch-section{padding-block:clamp(2.65rem,5vw,5.2rem)}
.ch-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:clamp(1.1rem,2vw,2rem)}
.ch-section-heading h2,.ch-story h2,.ch-visit h2,.ch-contact-grid h2{font-size:clamp(1.8rem,3.6vw,3.65rem);line-height:1.12}
.ch-section-heading .ch-link{flex-shrink:0}
.ch-machines,.ch-catalog-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.85rem,1.75vw,1.6rem)}
.ch-machine{display:flex;flex-direction:column;min-width:0;background:var(--white);border:1px solid var(--line);transition:border-color .2s,box-shadow .2s}
.ch-machine:hover{border-color:#83988b;box-shadow:0 6px 22px #172d2710}
.ch-machine-image,.ch-record-img,.ch-story-photo,.ch-gallery figure,.ch-intro-photo{position:relative;overflow:hidden}
.ch-machine-image{display:grid;place-items:center;aspect-ratio:1.85;background:#fff}
.ch-machine-image img{width:100%;height:100%;object-fit:contain;padding:clamp(8px,1.4vw,23px);transition:transform .35s}
.ch-machine-image.ch-real img{object-fit:cover;padding:0}
.ch-machine:hover img,.ch-record:hover img{transform:scale(1.025)}
.ch-machine-copy{position:relative;flex:1;padding:1.05rem 3.3rem 1.15rem 1.15rem;border-top:1px solid #e5e7df}
.ch-machine-copy>span{color:var(--quiet);font-size:.79rem;display:block;margin-bottom:.35rem}
.ch-machine h3,.ch-record h3{font-size:clamp(1.1rem,1.6vw,1.48rem);line-height:1.35}
.ch-machine-copy i{position:absolute;right:1.05rem;bottom:1.2rem;color:var(--accent)}
.ch-story,.ch-footer{background:var(--dark);color:#fff}
.ch-story{padding-block:clamp(2rem,3.2vw,3.5rem)}
.ch-story-grid{display:grid;grid-template-columns:1.14fr 1fr;align-items:center;gap:clamp(2rem,6vw,7rem)}
.ch-story-photo{aspect-ratio:1.75}
.ch-story-photo img,.ch-intro-photo img,.ch-gallery img,.ch-record-img img,.ch-service img{width:100%;height:100%;object-fit:cover}
.ch-story h2{white-space:pre-line;margin:.8rem 0}
.ch-story-copy p,.ch-visit-copy p,.ch-intro-grid p,.ch-about-lead,.ch-deck,.ch-service p{color:var(--quiet);max-width:62ch;line-height:1.7}
.ch-story-copy p{color:#d7dfd6;max-width:52ch}
.ch-story .ch-location{color:#cedbce}
.ch-link-light{color:#fff;border-bottom:1px solid #afc1b6;margin-top:1rem}
.ch-record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(.8rem,2vw,2rem)}
.ch-record-img{aspect-ratio:2.05;background:#dfe4da}
.ch-record-img img{transition:transform .35s}
.ch-play{position:absolute;inset:auto auto 1rem 1rem;display:grid;place-items:center;width:43px;height:43px;color:white;border:1px solid #fff9;border-radius:50%;background:#142a24c9}
.ch-play svg{width:17px;height:17px;fill:currentColor}
.ch-record-text{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1rem 0;border-bottom:1px solid var(--line)}
.ch-record-view{display:inline-flex;align-items:center;gap:.45rem;color:var(--accent);font-weight:600;font-size:.85rem;white-space:nowrap}
.ch-visit{background:#e6eadf;padding-block:clamp(2.25rem,4vw,4rem)}
.ch-visit-grid{display:grid;grid-template-columns:.95fr 1.1fr;align-items:center;gap:clamp(1.5rem,5vw,6rem)}
.ch-visit-copy h2{margin:.8rem 0}
.ch-visit-copy address{font-style:normal;margin:.85rem 0}
.ch-visit .ch-actions{margin-top:1.2rem}
.ch-map{width:100%;min-height:260px;height:100%;border:1px solid #c8cfbf;background:#d6dfd1}
.ch-footer{padding-top:clamp(2.4rem,4vw,4.5rem)}
.ch-footgrid{display:grid;grid-template-columns:1.05fr .9fr 1.2fr;gap:clamp(1rem,4vw,4rem)}
.ch-footer .ch-brand{color:#fff}
.ch-footer .ch-brand-mark{background:white;mix-blend-mode:normal;padding:3px}
.ch-footbrand p,.ch-footer address,.ch-foot-contact>a,.ch-footlinks{font-size:.92rem;color:#dae2d9}
.ch-footbrand p{margin-top:1.2rem}
.ch-footer h2{font-size:1.05rem;line-height:1.4;letter-spacing:0;margin-bottom:.55rem}
.ch-footlinks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem}
.ch-footlinks a,.ch-foot-contact>a{width:fit-content}
.ch-footlinks a:hover,.ch-foot-contact>a:hover{text-decoration:underline}
.ch-footer address{font-style:normal;margin-bottom:.45rem}
.ch-foot-contact>a{display:block;margin:.2rem 0}
.ch-footbase{border-top:1px solid #43564c;margin-top:2.2rem;padding:1.05rem 0;display:flex;justify-content:space-between;gap:.6rem;color:#bacabd}
.ch-footbase small{font-size:.74rem}
.ch-page-intro{padding-top:1.35rem;padding-bottom:clamp(1.8rem,4vw,3.5rem)}
.ch-crumb{display:flex;align-items:center;gap:.65rem;color:var(--quiet);font-size:.8rem;margin-bottom:1.4rem}
.ch-crumb a{text-decoration:underline;text-underline-offset:.2em}
.ch-intro-grid{display:grid;grid-template-columns:1fr .85fr;align-items:center;gap:clamp(1rem,4vw,4rem)}
.ch-intro-photo{height:clamp(180px,21vw,315px)}
.ch-intro-grid h1,.ch-article h1,.ch-product-title{font-size:clamp(2.1rem,4.4vw,4.55rem);line-height:1.12}
.ch-intro-grid p,.ch-deck{font-size:1.07rem;margin-top:.9rem;max-width:60ch}
.ch-page-products .ch-intro-grid{display:block}
.ch-page-products .ch-page-intro{padding-bottom:1.8rem}
.ch-inner-block,.ch-about,.ch-service-list,.ch-contact-grid,.ch-article{padding-bottom:clamp(2.2rem,5vw,5rem)}
.ch-about-lead{margin:-.3rem 0 1.6rem}
.ch-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1rem,2vw,1.7rem)}
.ch-gallery img{aspect-ratio:1.66;height:auto}
.ch-gallery figcaption{font-size:.92rem;margin-top:.4rem;color:var(--quiet)}
.ch-album-track{display:flex;gap:.75rem;overflow-x:auto}
.ch-album-track figure{flex:0 0 56%;min-width:0}
.ch-album img{width:100%;height:100%;object-fit:contain;background:#e2e5da}
.ch-album figcaption{padding:.5rem .65rem;color:var(--quiet);font-size:.89rem}
.ch-album.ready .ch-album-track{position:relative;display:block;isolation:isolate;overflow:hidden;aspect-ratio:2.5;background:#e2e5da}
.ch-album.ready figure{display:none;position:absolute;inset:5% 16% 6%;transition:opacity .3s,transform .3s}
.ch-album.ready .active,.ch-album.ready .before,.ch-album.ready .after{display:block}
.ch-album.ready .active{z-index:2}.ch-album.ready .before,.ch-album.ready .after{opacity:.33;inset:12% 22% 15%}
.ch-album.ready .before{transform:translateX(-83%)}.ch-album.ready .after{transform:translateX(83%)}
.ch-album.ready figcaption{position:absolute;bottom:.35rem;left:50%;transform:translateX(-50%);background:#132820d9;color:#fff;text-align:center;width:max-content;max-width:90%}
.ch-album.ready .before figcaption,.ch-album.ready .after figcaption{display:none}
.ch-album-controls{display:flex;justify-content:center;gap:.4rem;margin-top:.55rem}
.ch-album-controls[hidden]{display:none}
.ch-album-controls button{background:#fff;border:1px solid var(--line);cursor:pointer;width:44px;height:42px;line-height:1;font-size:1.22rem}
@media(max-width:680px){.ch-album.ready .ch-album-track{aspect-ratio:1.44}.ch-album.ready figure{inset:4% 8%}.ch-album.ready .before,.ch-album.ready .after{inset:14% 16%}.ch-album.ready figcaption{font-size:.72rem}}
.ch-service-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}
.ch-service{display:grid;grid-template-columns:32% 1fr;border-top:1px solid var(--line);padding-top:1rem;gap:1.1rem}
.ch-service img{aspect-ratio:1.08;height:auto;max-height:215px}
.ch-service h2,.ch-contact-card h2{font-size:1.43rem;line-height:1.3}
.ch-service p{margin:.4rem 0;font-size:.95rem}
.ch-service .ch-link{font-size:.9rem}
.ch-article{padding-top:1.8rem}
.ch-article .ch-deck{margin-bottom:1.4rem}
.ch-video{background:#17231e;width:100%;max-height:65vh;aspect-ratio:16/9;object-fit:contain}
.ch-article .ch-section-heading{margin-top:1.6rem}
.ch-editor:not(:empty){margin-block:1.5rem 2.3rem;max-width:80ch}
.ch-article .ch-editor:has(.ch-line-layout){max-width:none}
.ch-diagram-open{display:none}
.ch-diagram-dialog{width:min(96vw,950px);max-width:none;padding:0;border:1px solid var(--line);color:var(--ink);background:var(--paper)}
.ch-diagram-dialog::backdrop{background:#0c1e18ad}
.ch-diagram-tools{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.5rem .8rem;border-bottom:1px solid var(--line)}
.ch-diagram-tools span{font-size:.9rem}
.ch-diagram-tools button,.ch-diagram-open{border:1px solid var(--line);background:white;color:var(--ink);min-height:42px;padding:.45rem .75rem;cursor:pointer;font-weight:600}
.ch-diagram-pan{overflow:auto;height:min(75dvh,720px);overscroll-behavior:contain}
.ch-diagram-pan .ch-line-plate{width:max(100%,760px);max-width:none}
.ch-diagram-pan .ch-line-tag{display:block;font-size:12px}
@media(max-width:850px){.ch-diagram-open{display:inline-flex;align-items:center;gap:.45rem}.ch-diagram-open+.ch-line-layout{margin-top:.8rem}}
.ch-editor p+p,.ch-editor h2,.ch-editor h3,.ch-editor ul,.ch-editor ol{margin-top:.8rem}
.ch-editor a{text-decoration:underline;text-underline-offset:.2em}
.ch-contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(1.2rem,5vw,5rem)}
.ch-contact-list{margin-top:1.3rem}
.ch-contact-list a{display:flex;align-items:center;gap:.9rem;border-bottom:1px solid var(--line);padding:.85rem 0;font-size:1.05rem;overflow-wrap:anywhere}
.ch-contact-list svg{color:var(--accent);width:1.45rem;height:1.45rem}
.ch-contact-list small{display:block;color:var(--quiet);font-size:.8rem}
.ch-contact-card{background:white;border:1px solid var(--line);padding:clamp(1.1rem,2vw,2rem)}
.ch-contact-card h2{margin-bottom:1rem}
.ch-contact-card textarea,.ch-contact-card select,.ch-contact-card input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=hidden]){max-width:100%;width:100%;padding:.62rem .75rem;border:1px solid #a9b3a8;background:#fff;border-radius:2px}
.ch-contact-card textarea{min-height:6rem}
.ch-contact-card button,.ch-contact-card input[type=submit]{border:0;background:var(--dark);color:#fff;padding:.7rem 1rem;cursor:pointer}
.ch-form{display:grid;grid-template-columns:1fr 1fr;gap:.85rem}
.ch-form label:not([hidden]){display:grid;gap:.3rem;align-content:start;font-size:.85rem;font-weight:600;min-width:0}
.ch-form label:has(textarea),.ch-form label:has(input[name="ch_data[product]"]),.ch-form>p,.ch-form>button{grid-column:1/-1}
.ch-form>p{color:var(--quiet);font-size:.83rem}
.ch-form>button{width:fit-content}
.ch-success,.ch-error{padding:.75rem 1rem;border-left:3px solid #47634f;background:#e8eee5}
.ch-error{border-left-color:var(--accent);background:#fae9e4}
@media(max-width:510px){.ch-form{grid-template-columns:1fr;gap:.65rem}}
@media(max-width:1050px){.ch-headrow{gap:.9rem}.ch-nav{gap:.9rem}.ch-head-contact{padding:.65rem .85rem}.ch-record-text{display:block}.ch-record-view{margin-top:.4rem}}
@media(max-width:950px){
:root{--top:63px}.ch-headrow{position:relative;flex-wrap:wrap;gap:.45rem .8rem}
.ch-brand{margin-right:auto}.ch-lang{padding-left:0;border:0}.ch-head-contact{min-height:39px}
.ch-nav{flex-basis:100%;order:5;justify-content:space-between;margin:0;gap:.3rem;border-top:1px solid var(--line)}
.ch-nav>a{min-height:40px;font-size:.82rem}.ch-nav>a::after{bottom:2px}
.ch-js .ch-nav{display:none;position:absolute;top:100%;left:calc(-1 * var(--gutter));right:calc(-1 * var(--gutter));padding:.35rem var(--gutter) .8rem;background:var(--paper);box-shadow:0 10px 14px #172d2720}
.ch-js .ch-nav.ch-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.ch-js .ch-menu-toggle{display:grid;place-items:center;order:4}
.ch-hero-copy{width:min(63%,570px)}.ch-service-list{grid-template-columns:1fr}.ch-service{grid-template-columns:minmax(100px,24%) 1fr}
}
@media(max-width:680px){
:root{--gutter:1rem;--top:60px}.admin-bar .ch-header{top:46px}
.ch-headrow{gap:.25rem .4rem}.ch-brand .ch-brand-mark{width:36px;height:32px}.ch-brand>span{font-size:1rem}.ch-brand small{font-size:.4rem}
.ch-lang{gap:0}.ch-lang a{min-width:27px;min-height:36px;font-size:.73rem}.ch-head-contact{min-height:36px;padding:.5rem .65rem;font-size:.75rem;gap:.22rem}.ch-head-contact svg{width:.85rem}
.ch-menu-toggle{padding:.33rem}.ch-hero-image img{object-position:58% 18%}
.ch-hero-image::after{background:linear-gradient(0deg,rgba(10,25,19,.98) 0%,rgba(9,24,18,.88) 29%,rgba(12,25,19,.37) 63%,rgba(9,20,16,.04) 100%)}
.ch-hero-inner{min-height:clamp(428px,103vw,530px);align-items:flex-end;padding:8rem 0 1.65rem}
.ch-hero-copy{width:100%}.ch-hero h1,.ch-hero h1:lang(th){font-size:clamp(2.25rem,10.2vw,3.85rem);max-width:18ch;margin:.6rem 0}
.ch-hero h1:lang(zh-CN){max-width:none}.ch-hero-copy>p{font-size:.95rem;line-height:1.56;max-width:42ch}.ch-location{font-size:.78rem}
.ch-btn{min-height:44px;padding:.65rem .95rem}.ch-hero .ch-actions{margin-top:1.05rem}.ch-actions{gap:.75rem 1.1rem}
.ch-section{padding-block:2rem}.ch-section-heading{margin-bottom:1rem;gap:.6rem}.ch-section-heading h2,.ch-story h2,.ch-visit h2,.ch-contact-grid h2{font-size:clamp(1.6rem,7.7vw,2.3rem)}.ch-section-heading .ch-link,.ch-link{font-size:.88rem}
.ch-machines{display:flex;gap:.75rem;overflow-x:auto;scroll-snap-type:x proximity;margin-inline:calc(-1 * var(--gutter));padding:0 var(--gutter) .45rem;scroll-padding-inline:var(--gutter);scrollbar-width:thin;scrollbar-color:#9aaaa0 transparent}
.ch-machines>.ch-machine{flex:0 0 min(81vw,335px);scroll-snap-align:start}.ch-machine-image{aspect-ratio:1.72}.ch-machine-copy{padding:.75rem 2.4rem .85rem .9rem}.ch-machine-copy i{right:.75rem;bottom:.85rem}
.ch-story-grid,.ch-visit-grid,.ch-contact-grid,.ch-intro-grid{grid-template-columns:1fr;gap:1.1rem}.ch-story-photo{aspect-ratio:1.86}.ch-story-copy p,.ch-visit-copy p{font-size:.96rem}.ch-link-light{margin-top:.7rem}
.ch-record-grid{gap:.8rem}.ch-record-img{aspect-ratio:1.36}.ch-record h3{font-size:1rem}.ch-play{width:32px;height:32px;left:.5rem;bottom:.5rem}.ch-record-text{padding:.65rem 0}.ch-record-view{font-size:.78rem}
.ch-visit{padding-block:1.8rem}.ch-map{min-height:200px}.ch-footgrid{grid-template-columns:1fr 1fr;gap:1.3rem}.ch-foot-contact{grid-column:1/-1}.ch-footbrand p{font-size:.82rem;margin-top:.7rem}.ch-footlinks{grid-template-columns:1fr}.ch-footbase{flex-direction:column}
.ch-crumb{margin-bottom:.8rem}.ch-intro-grid p{margin-top:.5rem;font-size:.96rem}.ch-intro-photo{height:auto;aspect-ratio:2.1}.ch-about-lead{font-size:.97rem}
.ch-gallery{gap:.8rem}.ch-gallery figcaption{font-size:.77rem}.ch-about .ch-section-heading h2{font-size:1.6rem}
.ch-service{gap:.75rem;grid-template-columns:27% 1fr}.ch-service h2{font-size:1.2rem}.ch-service p{font-size:.9rem}
.ch-contact-list{margin-top:.6rem}.ch-article .ch-section-heading{align-items:flex-start;flex-wrap:wrap}
}
@media(max-width:782px) and (min-width:681px){.admin-bar .ch-header{top:46px}}
@media(max-width:380px){.ch-brand small{display:none}.ch-headrow{gap:.25rem}.ch-head-contact svg{display:none}.ch-hero .ch-actions{gap:.8rem}.ch-hero h1,.ch-hero h1:lang(th){font-size:2.25rem}}
@media(max-width:350px){.ch-headrow{gap:.17rem}.ch-headrow .ch-brand{gap:.25rem}.ch-headrow .ch-brand-mark{width:29px}.ch-headrow .ch-brand>span{font-size:.91rem}.ch-lang a{min-width:25px}.ch-head-contact{padding-inline:.43rem}.ch-menu-toggle{padding:.2rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.ch-group-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1.2rem}
.ch-group-tabs>a,.ch-pager>a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.5rem .9rem;border:1px solid #b9c1b4;background:#fff;font-size:.9rem;font-weight:600}
.ch-group-tabs>a[aria-current],.ch-pager>a[aria-current]{background:var(--dark);color:#fff;border-color:var(--dark)}
.ch-filter{display:flex;align-items:flex-end;gap:.8rem;background:#e8ebe3;padding:1rem;border-top:1px solid var(--line)}
.ch-filter>label{display:grid;gap:.35rem;flex:1;min-width:0;font-size:.83rem;font-weight:650}
.ch-filter input,.ch-filter select{min-height:44px;width:100%;max-width:100%;border:1px solid #abb6a9;padding:.55rem .65rem;background:white;font-size:.97rem}
.ch-filter button{border:0;cursor:pointer}
.ch-results-count{font-size:.86rem;color:var(--quiet);font-weight:600;margin-block:1.3rem .7rem;scroll-margin-top:calc(var(--top) + .8rem)}
.ch-catalog-cards .ch-machine h3{font-size:clamp(1rem,1.28vw,1.28rem)}
.ch-catalog-cards .ch-machine-copy{padding-right:2.55rem}
.ch-no-image{display:grid;width:100%;height:100%;min-height:100px;place-items:center;background:#e8ebe3;color:#506155;font-size:clamp(1.3rem,2.8vw,2.6rem);font-weight:650;letter-spacing:.04em}
.ch-pager{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.6rem}
.ch-product{padding-top:1.35rem;padding-bottom:clamp(2.2rem,5vw,5rem)}
.ch-product-top{display:grid;grid-template-columns:1.12fr 1fr;gap:clamp(1.1rem,4vw,4rem);align-items:center}
.ch-product-picture{display:grid;place-items:center;aspect-ratio:1.5;background:#fff;border:1px solid var(--line);overflow:hidden}
.ch-product-picture>img{width:100%;height:100%;object-fit:contain;padding:clamp(.6rem,1vw,1.3rem)}
.ch-product-category{color:var(--accent);font-size:.87rem;font-weight:650;margin-bottom:.6rem}
.ch-product-title{font-size:clamp(1.75rem,3.4vw,3.5rem);line-height:1.18}
.ch-product-info>p:not(.ch-product-category){margin-top:.9rem;color:var(--quiet)}
.ch-product-info .ch-actions{margin-top:1.35rem}
.ch-product-lower{margin-block:clamp(1.6rem,3.5vw,3.5rem);display:grid;grid-template-columns:1.2fr .75fr;gap:clamp(1rem,4vw,4rem);align-items:start}
.ch-product h2{font-size:clamp(1.4rem,2.2vw,2rem);margin-bottom:.65rem}
.ch-specs{margin:0}
.ch-specs>div{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1fr);gap:.75rem;border-top:1px solid var(--line);padding:.7rem 0}
.ch-specs dt{font-weight:600}.ch-specs dd{margin:0;color:var(--quiet)}
.ch-brochure{display:flex;align-items:center;gap:1.15rem;padding:.8rem 1rem;background:#e4e9dd;border:1px solid #c6cfc1;color:var(--dark)}
.ch-brochure img{width:31%;height:110px;object-fit:cover;object-position:top}
.ch-brochure small,.ch-brochure strong{display:block}.ch-brochure small{font-size:.75rem;color:var(--quiet);letter-spacing:.06em}.ch-brochure strong{font-size:1.22rem;margin:.3rem 0}.ch-brochure svg{display:inline-block;width:1rem;height:1rem;vertical-align:middle}
.ch-product-gallery{margin-top:1.4rem}.ch-product .ch-video{max-height:65vh}
@media(max-width:680px){.ch-group-tabs{flex-wrap:nowrap;overflow-x:auto;margin:0 calc(-1 * var(--gutter)) .8rem;padding:0 var(--gutter) .4rem}.ch-group-tabs a{flex:none}.ch-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6rem;padding:.7rem}.ch-filter>label:first-of-type{grid-column:1/-1}.ch-filter button{min-height:44px}.ch-catalog-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.ch-catalog-cards .ch-machine-copy{padding:.65rem}.ch-catalog-cards .ch-machine h3{font-size:.98rem}.ch-catalog-cards .ch-machine-copy>span{font-size:.7rem}.ch-catalog-cards .ch-machine-copy i{display:none}.ch-catalog-cards .ch-machine-image{aspect-ratio:1.45}.ch-product-top,.ch-product-lower{grid-template-columns:1fr}.ch-product .ch-video{max-height:50vh}.ch-crumb{flex-wrap:wrap}.ch-product-picture{aspect-ratio:1.55}}

