/* Wrapper adapters only. Per-element typography, dimensions, spacing and media remain Elementor controls. */
:where(.elementor){--widgets-spacing:0px;--widgets-spacing-row:0px;--widgets-spacing-column:0px}
:where(.elementor-widget-yf-heading .elementor-heading-title){margin:0}
:where(.elementor-widget-text-editor p){margin:0}
:where(.elementor-widget-yf-field h1,.elementor-widget-yf-field h2){margin:0}
:where(.yf-footer-grid .yf-footer-column){min-width:0}
:where(.yf-footer-supplement){max-width:100%}
:where(.footer-widgets .elementor-widget-yf-menu){width:100%}
:where(.absolute-footer .yf-menu-list){list-style:none;margin:0;padding:0}
:where(.absolute-footer .yf-menu-list li){margin:0;padding:0}
:where(.absolute-footer .yf-company){color:#ffffff80}
:where(.yf-copyright .elementor-widget){width:auto}
:where(.yf-info-image img){height:325px;object-fit:cover;width:100%}
:where(.yf-feature .elementor-widget-image){flex-shrink:0}
:where(.home-banner .banner-background,.home-contact .contact-background){position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
:where(.banner-background .elementor-widget-container,.contact-background .elementor-widget-container){height:100%}
:where(.banner-background img,.contact-background img){width:100%;height:100%;object-fit:cover}
:where(.contact-background):after{content:'';position:absolute;inset:0;background:#00000091;border-top:1px solid #ebebeb}
:where(.home-banner .yf-banner-content){position:relative;z-index:2}
:where(.yf-pill .elementor-button){border:2px solid #fff}
:where(.home-contact .enquiry-form){margin:0}
:where(.elementor .home-contact .contact-intro){min-width:0}
:where(.yf-product-detail .e-con){min-width:0}
:where(.elementor .yf-field){overflow-wrap:anywhere}
:where(.elementor-widget-yf-gallery .gallery-thumbnails button){width:var(--yf-thumb-size,64px);height:var(--yf-thumb-size,64px)}
:where(.yf-nav-group){position:relative}
:where(.yf-submenu){display:none;position:absolute;min-width:180px;background:#fff;z-index:25;padding:15px;box-shadow:0 4px 10px #0002}
:where(.yf-submenu a){display:block;padding:8px}
:where(.yf-nav-group:hover .yf-submenu,.yf-nav-group:focus-within .yf-submenu){display:block}
:where(.yf-header .logo img){width:100%;height:auto;max-height:70px;object-fit:contain}
@media(max-width:849px){:where(.elementor .wide-nav){width:var(--yf-menu-width,260px)}:where(.elementor .wide-nav .search-form){flex-direction:column;gap:8px}:where(.elementor) .wide-nav .search-form select{width:100%;height:34px;padding:4px 9px}:where(.yf-nav-group){width:100%;padding:15px 20px;border-bottom:1px solid #e7e7e7}:where(.yf-submenu){position:static;display:block;background:transparent;box-shadow:none;padding:5px}}
@media(max-width:549px){:where(.yf-copyright .elementor-widget){text-align:center}:where(.yf-pill .elementor-button){width:100%}}
/* Native Elementor must remain visible in its editing canvas. */
.elementor-editor-active .motion-ready [data-motion]{opacity:1;transform:none}
/* Remove legacy internal margins now owned by the native Elementor wrappers. */
.elementor .home-contact .enquiry-form{margin:0}
.elementor-widget-yf-gallery .gallery-thumbnails img{height:100%;object-fit:contain}
.elementor .quick-dialog .detail-image img{height:230px}
.elementor .yf-page-banner .elementor-heading-title{margin:0}
/* Elementor's generic image reset must not change the geometry of the dynamic image widgets. */
.elementor-widget-yf-carousel .hero-frame img{height:100%;width:100%;object-fit:cover}
.elementor-widget-yf-gallery .detail-image img{object-fit:contain}
.elementor-widget-yf-catalogue .product-image img{height:100%;width:100%;object-fit:contain}

/* Element spacing is owned by the widget Advanced controls, not its inner heading. */
.elementor-widget-yf-heading .elementor-heading-title{margin:0}

/* Match the established paragraph flow inside the native about-page wrappers. */
.elementor .reference-about .yf-company p{margin:0}
.elementor .reference-about .elementor-widget-text-editor p{margin:0 0 20.8px}
.elementor .reference-about .elementor-widget-text-editor p:last-child{margin-bottom:0}

/* Transparent additions use the same white, bordered image boxes as reference logos. */
.elementor-widget-yf-brands .brand-track .yf-brand-image{display:flex;align-items:center;justify-content:center;margin:0;padding:0;line-height:0;background:#fff;outline:1px solid #e5e5e5;outline-offset:-1px}
.elementor-widget-yf-brands .brand-track img:is([src$=".png"],[src$=".gif"],[src$=".svg"]){padding:5%}
/* This supplied logo is white lettering on transparency; retain its full wordmark. */
.elementor-widget-yf-brands img[src$="/koganei.png"]{filter:brightness(.28)}
.elementor-widget-yf-brands .brand-carousel>button{top:var(--yf-brand-arrow-top,42%)}
/* Horizontal rails must not capture vertical page scrolling. Grow from the top
   so the reference 1.3-to-1 entrance cannot move the logos above its viewport. */
.elementor-widget-yf-brands .brand-track{overflow-y:hidden}
.elementor .motion-ready .brand-track>[data-motion="bounceIn"]{transform-origin:50% 0}

/* Native widget transitions otherwise replace the reference entrance timing. */
.elementor .reference-home{overflow-x:clip}
.elementor .home-banner{overflow:hidden}
.elementor .home-info-pairs,.elementor .yf-footer-grid,.elementor .yf-copyright{max-width:100%}
@media(prefers-reduced-motion:no-preference){
 .elementor .motion-ready [data-motion]{transition:transform 1.6s,opacity .7s ease-in}
 .elementor .motion-ready [data-motion]:not([data-motion-visible]){transition:none}
}

/* Structured contact fallback; dimensions and typography remain widget controls. */
:where(.yf-company-contact){--yf-contact-label-width:104px;--yf-contact-row-gap:2px;--yf-contact-identity-gap:12px}
:where(.yf-company-contact .company-identity){margin-bottom:var(--yf-contact-identity-gap)}
.elementor-widget-yf-company .company-identity p{margin:0}
:where(.yf-company-contact .company-name){font-weight:600}
:where(.yf-company-contact .company-contact-list){margin:0;display:grid;row-gap:var(--yf-contact-row-gap)}
:where(.yf-company-contact .company-contact-row){display:grid;grid-template-columns:var(--yf-contact-label-width) minmax(0,1fr);column-gap:12px;align-items:baseline}
:where(.yf-company-contact .company-contact-row dt){margin:0;font-weight:400;white-space:nowrap;color:#ffffffb3}
:where(.yf-company-contact .company-contact-row dd){margin:0;min-width:0;overflow-wrap:anywhere}

/* Supplemental fields share one strip; responsive dimensions remain widget controls. */
:where(.yf-company-supplement .company-contact-list){grid-template-columns:repeat(var(--yf-contact-columns,4),minmax(0,1fr));column-gap:var(--yf-contact-column-gap,24px)}
:where(.yf-company-supplement .company-contact-row){display:block}
:where(.yf-company-supplement .company-contact-row dt){font-size:.875em;margin-bottom:2px}

/* Genuine logo images share an editable image band. */
.yf-brand-directory{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:1fr;gap:16px}
.yf-brand-directory .brand-tile{display:grid;grid-template-rows:minmax(var(--yf-brand-image-height,80px),max-content) minmax(var(--yf-brand-label-height,44px),auto);align-items:center;gap:8px;margin:0;padding:var(--yf-brand-tile-padding,10px);border:1px solid #e5e5e5;background:#fff}
.elementor-widget-yf-brands .yf-brand-directory .brand-tile img{max-height:none;object-fit:contain;width:100%;margin:0}
.yf-brand-directory .brand-label{line-height:1.5}
:where(.elementor .brand-directory){max-width:100%}

/* Logo rails retain the reference image proportions. */
.yf-brand-mode .yf-brand-image{display:flex;align-items:center;justify-content:center;height:150px}
.yf-brand-mode .yf-brand-image>img{width:100%;height:100%;object-fit:contain}
.yf-brand-mode.compact .yf-brand-image{height:50px}
/* The supplied rectangular logo stays within the template masthead. */
.elementor-widget-yf-header .logo img{width:100%;height:70px;max-height:none;object-fit:contain;background:transparent}
@media(max-width:549px){.elementor-widget-yf-header .logo img{height:55px;max-height:none}}
/* Keep the reference's 1080px sections inside narrower desktop canvases. */
#main-content .e-con{max-width:100%}
/* Dongwei structured service content and product types. */
.dw-type-directory h2{font-size:24px;font-weight:600;color:#444;margin:0 0 24px}
.dw-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.dw-type-grid>a{display:flex;flex-direction:column;gap:12px;padding:20px;border:1px solid #e4e9e6;color:#333;background:#fff;transition:border-color .2s,background .2s}
.dw-type-grid>a:hover,.dw-type-grid>a:focus-visible{border-color:#00a843;background:#f4faf6}
.dw-type-grid small{font-size:13px;color:#65736b}
.dw-catalogue-filters{margin:0 0 30px;padding:22px;background:#f4f7f5;border-top:2px solid #00bd4c}
.dw-catalogue-filters form{display:grid;grid-template-columns:1.2fr .8fr 1.3fr auto;gap:15px;align-items:end}
.dw-catalogue-filters label{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#444;min-width:0}
.dw-catalogue-filters input,.dw-catalogue-filters select{width:100%;height:44px;background:#fff;border:1px solid #d5dcd7;padding:8px 10px;font:inherit;color:#333;min-width:0;border-radius:0}
.dw-catalogue-filters .button{height:44px;margin:0;white-space:nowrap}
.dw-filter-summary{display:flex;justify-content:space-between;margin-top:16px;font-size:14px}
.dw-filter-summary a,.dw-product-type a{color:#008a37;text-decoration:underline;text-underline-offset:3px}
.dw-product-type{font-size:14px;margin:12px 0}
.dw-photo-pending{display:flex;align-items:center;justify-content:center;min-height:150px;width:100%;height:100%;padding:24px;background:#f3f5f4;color:#6c756f;font-size:14px;text-align:center}
.dw-spec-wrap{overflow-x:auto;max-width:100%;width:100%;border:1px solid #e0e5e1;border-radius:0}
.dw-spec{width:100%;border-collapse:collapse;font-size:15px;line-height:1.65;color:#444;text-align:left}
.dw-spec caption{text-align:left;font-size:17px;font-weight:600;padding:16px 18px;color:#333;background:#f4f7f5;caption-side:top}
.dw-spec td,.dw-spec th{padding:13px 18px;border-bottom:1px solid #e2e7e3;vertical-align:top;min-width:105px;overflow-wrap:anywhere}
.dw-spec thead th{background:#edf3ef;font-weight:600;color:#234533}
.dw-spec tbody th{font-weight:500;background:#fafcfb}
.dw-spec tr:last-child td,.dw-spec tr:last-child th{border-bottom:0}
.dw-spec-note{font-size:14px;color:#68736c;margin:12px 0 0;line-height:1.7}
.dw-service-intro{border-bottom:1px solid #e5e5e5;padding-bottom:30px!important}
.dw-service-section{padding:32px 0!important;border-bottom:1px solid #e8ece9}
.dw-service-section:last-child{border-bottom:0}
.dw-service-media img{max-height:360px;object-fit:contain;background:#fff}
.dw-service-visual-row{align-items:center}
@media(max-width:849px){.dw-type-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dw-catalogue-filters form{grid-template-columns:1fr 1fr}.dw-catalogue-filters .button{width:100%}}
@media(max-width:549px){.dw-type-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dw-type-grid>a{padding:15px 12px;font-size:15px}.dw-type-grid small{font-size:12px}.dw-catalogue-filters{padding:16px}.dw-catalogue-filters form{grid-template-columns:1fr}.dw-spec{font-size:14px}.dw-spec td,.dw-spec th{padding:11px 13px}.dw-spec caption{font-size:16px}.dw-service-section{padding:24px 0!important}.dw-service-media img{max-height:260px}}

/* Company identity uses the editable company field beside the transparent mark. */
.elementor-widget-yf-header .logo{gap:14px}
.elementor-widget-yf-header .logo img{width:110px;flex:0 0 110px}
.dw-brand-name{font-size:20px;font-weight:600;white-space:nowrap;letter-spacing:1px;color:#333;line-height:1.4}
.search-form #brand-select{width:130px;flex:0 0 130px}
.product-text .brand{font-size:12px;letter-spacing:0;line-height:1.5}
.product-image{aspect-ratio:4/3}
@media(max-width:549px){.elementor-widget-yf-header .logo{gap:10px}.elementor-widget-yf-header .logo img{width:78px;flex-basis:78px}.dw-brand-name{font-size:15px;letter-spacing:0}.wide-nav .search-form #brand-select{width:105px;flex-basis:105px}}

.dw-spec-scroll-hint{display:none}
@media(max-width:549px){.dw-spec-scroll-hint{display:block;font-size:13px;color:#52705e;margin:0 0 8px}.dw-spec-wrap[data-columns="4"] table{min-width:620px}.dw-spec-wrap[data-columns="5"] table{min-width:760px}.dw-spec-wrap[data-columns="4"] th:first-child,.dw-spec-wrap[data-columns="5"] th:first-child{position:sticky;left:0;z-index:1;min-width:100px;max-width:125px;box-shadow:1px 0 #dce5df}}

/* Missing photography is a compact catalogue state, without a large empty image. */
.products-grid>.product-no-photo{grid-column:1/-1;display:flex;align-items:center;gap:20px;padding:16px 10px;border-bottom:1px solid #e5e5e5}
.product-no-photo .product-text{flex:1;min-width:0;padding:0;min-height:0;text-align:left}
.product-no-photo .dw-photo-note{flex-shrink:0;font-size:12px;color:#777}
.product-no-photo .quick-button{display:inline-flex;align-items:center;position:static;transform:none;background:transparent;color:var(--link);flex-shrink:0;width:auto;min-height:32px;padding:4px 0;font-size:13px}
@media(max-width:549px){.products-grid>.product-no-photo{flex-wrap:wrap;gap:6px 16px;padding:14px 10px}.product-no-photo .product-text{flex-basis:100%}.product-no-photo .dw-photo-note{flex:1}}
