.factory-search-form{display:flex;align-items:stretch;width:100%;max-width:560px;margin:0;gap:0}
.factory-search-form input[type=search]{flex:1;min-width:0;width:100%;height:44px;box-sizing:border-box;background:#fff;border:1px solid #086eae;border-right:0;border-radius:3px 0 0 3px;padding:10px 14px;color:#172638;font-size:16px;line-height:22px;appearance:none}
.factory-search-form button{flex:0 0 48px;height:44px;padding:0;border:1px solid #086eae;background:#086eae;color:#fff;border-radius:0 3px 3px 0;cursor:pointer;font-size:18px}
.factory-search-form input:focus-visible,.factory-search-form button:focus-visible{outline:3px solid #51a9df;outline-offset:2px}
.factory-results-search{margin-top:18px;margin-bottom:6px}
.factory-search-results .projects-item .thumb{flex:0 0 250px;width:250px;max-width:40%;padding:10px}
.factory-search-results .projects-item .thumb a{display:block;width:100%}
.blog-section.factory-search-results .cat-5-item .projects-item .thumb img{display:block;width:100%;height:auto;aspect-ratio:1 / 1;object-fit:contain;object-position:center;background:#fff}
.factory-search-results .projects-item .content{min-width:0}
.factory-search-results .projects-item .content h2{width:100%;overflow-wrap:anywhere}
.factory-faq,.factory-extra-content{margin-top:36px;padding-top:24px;border-top:1px solid #e5e8eb;clear:both}
.factory-faq-item{padding:16px 0;border-bottom:1px solid #e5e8eb}
.factory-faq-item h3{font-size:19px;line-height:1.5;margin-bottom:10px}
.factory-extra-content img{max-width:100%;height:auto}
.factory-extra-content:after{content:'';display:table;clear:both}
@media(max-width:767px){
 .factory-results-search{margin-top:16px}
 .blog-section.factory-search-results{padding-top:20px}
 .blog-section.factory-search-results .cat-5-item .projects-item{align-items:center;padding:10px;gap:12px;margin-bottom:14px}
 .factory-search-results .projects-item .thumb{flex:0 0 104px;width:104px;max-width:36%;padding:0}
 .blog-section.factory-search-results .cat-5-item .projects-item .thumb img{width:100%;height:auto;aspect-ratio:1 / 1;object-fit:contain}
 .blog-section.factory-search-results .cat-5-item .projects-item .content{flex:1;padding:0;min-width:0}
 .blog-section.factory-search-results .cat-5-item .projects-item .content h2{display:block;margin:0;padding:0}
 .blog-section.factory-search-results .cat-5-item .projects-item .content h2 a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-overflow:ellipsis;white-space:normal;max-height:66px;font-size:16px;line-height:22px;letter-spacing:0}
 .factory-search-results .factory-search-excerpt,.factory-search-results .post-sticky{display:none}
}

/* Desktop search is part of the black announcement banner. */
.header .factory-banner{display:block;background:#081424;color:#fff}
.factory-banner-inner{display:flex;align-items:center;gap:20px;min-height:44px;padding-top:5px;padding-bottom:5px}
.factory-banner-notice{flex:1;min-width:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.factory-banner-notice p{margin:0}
.factory-banner .factory-top-search{flex:0 0 230px;margin-left:auto}
.factory-banner .factory-search-form{max-width:none}
.factory-banner .factory-search-form input[type=search]{height:32px;padding:4px 10px;font-size:14px;line-height:22px}
.factory-banner .factory-search-form button{height:32px;flex-basis:36px;font-size:15px}
.factory-banner-phone{flex:0 0 auto;max-width:30%;border-left:1px solid #39424e;padding-left:20px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.factory-banner-phone a{color:inherit}
/* All product thumbnails use an uncropped square image area. */
.factory-square-media > a{display:block;position:relative;width:100%;aspect-ratio:1 / 1;background:#fff;overflow:hidden}
.factory-square-media > a > img{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:none;object-fit:contain!important;object-position:center;transform:none!important}
.cat-4-item .factory-square-media,.cat-5-item .factory-square-media{flex:0 0 250px;width:250px;max-width:40%}
@media(max-width:991px){
 .header .factory-banner{display:none}
}
@media(max-width:767px){
 .cat-4-item .factory-square-media,.cat-5-item .factory-square-media{flex-basis:120px;width:120px}
}

/* Override the theme-wide input margin; keep the visible controls centered. */
.factory-search-form input[type=search],.factory-search-form button{margin:0}
.factory-banner .factory-top-search{display:flex;align-items:center;align-self:center}
.factory-banner .factory-search-form{margin:0;padding:0;align-items:center}
.factory-category-intro{padding:22px 0;background:#f7f7f7;color:#333;line-height:1.75;overflow-wrap:anywhere}
.factory-category-intro p:last-child{margin-bottom:0}
.factory-category-intro img{max-width:100%;height:auto}
.factory-category-intro table{display:block;max-width:100%;overflow-x:auto}
.product-text .factory-related-products{margin-top:26px;padding-top:20px;border-top:1px solid #e8e8e8;clear:both}
.product-text .factory-related-products h2{font-size:20px;line-height:1.4;margin:0 0 14px;padding:0}
.factory-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.factory-related-card{display:block;min-width:0;color:#333}
.factory-related-image{display:block;width:100%;aspect-ratio:1 / 1;background:#fff;border:1px solid #eee;border-radius:3px;overflow:hidden}
.factory-related-image img{display:block;width:100%;height:100%;object-fit:contain}
.factory-related-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px;line-height:19px;margin-top:8px;overflow-wrap:anywhere}
@media(max-width:575px){.factory-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.factory-category-intro{padding:16px 0}}
