/* 2026-11-09: dairy fittings branch only; reference presentation with target fields. */
#js-sticky-content#js-sticky-content.td316-rest-category #js-bx-filter{margin-top:0!important}
#js-sticky-content#js-sticky-content.td316-rest-category .smartfilter{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px 10px!important;padding:12px!important;align-items:start!important}
#js-sticky-content#js-sticky-content.td316-rest-category .smartfilter>.bx-filter-parameters-box{grid-row:auto!important;grid-column:auto!important;display:block!important;min-width:0!important}
#js-sticky-content#js-sticky-content.td316-rest-category .smartfilter>.bx-filter-parameters-box[data-td316-flange-wide]{grid-column:1/-1!important}
#js-sticky-content#js-sticky-content.td316-rest-category .smartfilter>.bx-filter-parameters-box:has(input[data-td316-flange-role="dn"]){grid-row:1!important;grid-column:1/-1!important}
#js-sticky-content#js-sticky-content.td316-rest-category .smartfilter .bx-filter-parameters-box-title{height:auto!important;min-height:0!important;padding:0!important;margin:0 0 4px!important}
#js-sticky-content#js-sticky-content.td316-rest-category .smartfilter .bx-filter-parameters-box-title span{font-size:14px!important;line-height:20px!important}
#js-sticky-content#js-sticky-content.td316-rest-category .smartfilter .bx-filter-block{margin:0!important}
#js-sticky-content#js-sticky-content.td316-rest-category .smartfilter .bx-filter-input-checkbox.scroll-content{gap:4px!important}
#js-sticky-content#js-sticky-content.td316-rest-category .smartfilter .bx-filter-param-label,
#js-sticky-content#js-sticky-content.td316-rest-category .smartfilter .bx-filter-param-text{height:auto!important;min-height:30px!important}
#js-sticky-content#js-sticky-content.td316-rest-category .smartfilter .bx-filter-param-text{min-width:36px!important;padding:4px 9px!important;font-size:14px!important;line-height:20px!important;white-space:normal}
#js-sticky-content#js-sticky-content.td316-rest-category .catalog-section .product-item-quantity{transform:none!important}
@media(max-width:767px){
 #js-sticky-content#js-sticky-content.td316-rest-category .smartfilter{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #js-sticky-content#js-sticky-content.td316-rest-category .smartfilter .bx-filter-param-text{min-height:36px!important}
}
#td316-pilot-card[data-td316-rest] .picker-parameters{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#td316-pilot-card[data-td316-rest] .picker-choice{margin:0}
#td316-pilot-card[data-td316-rest] .parameter-chip{min-width:0;white-space:normal}
#td316-pilot-card[data-td316-rest] .parameter-chips{max-height:180px;overflow-y:auto}
#td316-pilot-card[data-td316-rest] .picker-parameters fieldset{min-width:0}
#td316-pilot-card[data-td316-rest] .related-product-params{flex-wrap:wrap}
#td316-pilot-card[data-td316-rest] .gallery-frame img{object-fit:contain}
#td316-pilot-card[data-td316-rest] .article-rail-list a{display:block;padding:16px;border:1px solid #e1e1e1;border-radius:12px;background:#fff;color:#416da4;text-decoration:none}
@media(max-width:520px){#td316-pilot-card[data-td316-rest] .picker-parameters{grid-template-columns:1fr}}

/* Welded branch acceptance: separate the global crumbs from detail search; align listing H1. */
#td316-pilot-card[data-td316-rest]>.nav-strip{margin-top:46px}
body:has(#js-sticky-content.td316-rest-category) .navigation-wrapper{background:transparent!important}
body:has(#js-sticky-content.td316-rest-category) .navigation-content{display:block!important}
body:has(#js-sticky-content.td316-rest-category) .navigation-share{display:none!important}
body:has(#js-sticky-content.td316-rest-category) #navigation{display:block!important;width:calc(100% - 104px)!important;max-width:1216px!important;margin:0 auto 24px!important;padding:14px 0 0!important;border:0!important;background:transparent!important}
body:has(#js-sticky-content.td316-rest-category) #navigation :is(.navigation-block,.navigation-items,.navigation-breadcrumb){display:block!important;width:100%!important;margin:0!important;padding:0!important;height:auto!important;background:transparent!important}
body:has(#js-sticky-content.td316-rest-category) #pagetitle{float:none!important;display:block!important;text-align:left!important;white-space:normal!important;font:700 24px/32px Ubuntu,Arial,sans-serif!important;color:#3b434a!important;margin:0!important;padding:0!important}
@media(max-width:850px){body:has(#js-sticky-content.td316-rest-category) #navigation{width:calc(100% - 68px)!important}}
@media(max-width:520px){body:has(#js-sticky-content.td316-rest-category) #pagetitle{font-size:22px!important;line-height:28px!important}}

/* Match the approved flange landing canvas instead of compounding the legacy 80% wrapper. */
body:has(#js-sticky-content.td316-rest-landing){--td316-rest-canvas:min(972.8px,calc((100vw - 120px)*.8))}
body:has(#js-sticky-content.td316-rest-landing) .content-wrapper.internal .container-ws>.row:has(> #js-sticky-content){margin-inline:0!important}
body:has(#js-sticky-content.td316-rest-landing) .content-wrapper.internal #js-sticky-content{float:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body:has(#js-sticky-content.td316-rest-landing) .catalog-section-container:has(:is(.td316-rest-grid,.td316-welded-grid,#td316-fastener-sections,#td316-rest-sections)){width:100%!important;padding-inline:0!important}
body:has(#js-sticky-content.td316-rest-landing) .catalog-section-list:has(>:is(.td316-rest-grid,.td316-welded-grid,#td316-fastener-sections,#td316-rest-sections)){width:100%!important}
body:has(#js-sticky-content.td316-rest-landing) :is(.td316-rest-grid,.td316-welded-grid,#td316-fastener-sections,#td316-rest-sections){width:var(--td316-rest-canvas)!important;max-width:var(--td316-rest-canvas)!important;margin-inline:auto!important}
body:has(#js-sticky-content.td316-rest-landing) #navigation#navigation{display:block!important;width:var(--td316-rest-canvas)!important;max-width:none!important;margin-inline:auto!important;padding-inline:0!important}
body:has(#js-sticky-content.td316-rest-landing) #navigation :is(.navigation-block,.navigation-items,.navigation-breadcrumb){display:block!important;width:100%!important;padding-inline:0!important;margin-inline:0!important}
body:has(#js-sticky-content.td316-rest-landing) #pagetitle{text-align:left!important;margin-inline:0!important;padding-inline:0!important}
body:has(#js-sticky-content.td316-rest-landing) .td316-section-crumb-anchor{width:var(--td316-rest-canvas)!important;max-width:none!important;left:50%!important;transform:translateX(-50%)!important}
#td316-pilot-card[data-td316-rest] .breadcrumbs.td316-crumb-replaced{display:none!important}
@media(max-width:991px){body:has(#js-sticky-content.td316-rest-landing){--td316-rest-canvas:min(972.8px,calc((100vw - 84px)*.8))}}
@media(max-width:599px){body:has(#js-sticky-content.td316-rest-landing){--td316-rest-canvas:min(420px,calc(100vw - 54px))}}

body:has(#js-sticky-content.td316-rest-landing) .navigation-wrapper{background:transparent!important}
body:has(#js-sticky-content.td316-rest-landing) .navigation-content{display:block!important;margin-inline:0!important}
body:has(#js-sticky-content.td316-rest-landing) :is(.navigation-share,.navigation-back){display:none!important}
body:has(#js-sticky-content.td316-rest-landing) #navigation#navigation{margin:0 auto 18px!important}
body:has(#js-sticky-content.td316-rest-landing) #navigation .navigation-block{padding:0!important}
body:has(#js-sticky-content.td316-rest-landing) #pagetitle#pagetitle{display:block!important;width:100%!important;max-width:none!important;font:700 24px/32px Ubuntu,Arial,sans-serif!important;color:#3b434a!important;white-space:normal!important}
body:has(#js-sticky-content.td316-rest-landing) .td316-section-crumb-anchor>.td316-section-crumb{width:100%!important;max-width:100%!important;left:0!important;margin-inline:0!important;padding-inline:0!important;transform:none!important}
@media(max-width:599px){body:has(#js-sticky-content.td316-rest-landing) #pagetitle#pagetitle{font-size:22px!important;line-height:28px!important}}

/* The old breadcrumb sheet includes an ID inside :not(:has()), so override it only on this landing family. */
body:has(#js-sticky-content.td316-rest-landing) #navigation#navigation#navigation#navigation {width:var(--td316-rest-canvas)!important;max-width:none!important;margin:0 auto 18px!important;padding:18px 0 0!important}
body:has(#js-sticky-content.td316-rest-landing) #navigation#navigation#navigation#navigation :is(.navigation-block,.navigation-items,.navigation-breadcrumb){display:block!important;width:100%!important;margin:0!important;padding:0!important}
body:has(#js-sticky-content.td316-rest-landing) #navigation#navigation#navigation#navigation #pagetitle#pagetitle {display:block!important;width:100%!important;margin:0!important;padding:0!important;text-align:left!important;font:700 24px/32px Ubuntu,Arial,sans-serif!important;color:#3b434a!important}
@media(max-width:599px){body:has(#js-sticky-content.td316-rest-landing) #navigation#navigation#navigation#navigation #pagetitle#pagetitle {font-size:22px!important;line-height:28px!important}}


/* Listing title: counter the same legacy :not(:has(#pilot)) specificity without touching other branches. */
body:has(#js-sticky-content.td316-rest-category) #navigation#navigation#navigation#navigation :is(.navigation-block,.navigation-items,.navigation-breadcrumb){display:block!important;justify-content:initial!important;align-items:initial!important;width:100%!important;margin:0!important;padding:0!important}
body:has(#js-sticky-content.td316-rest-category) #navigation#navigation#navigation#navigation #pagetitle#pagetitle{display:block!important;float:none!important;position:static!important;transform:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;text-align:left!important;white-space:normal!important}

/* Removed visual duplicate only; the global accessible chain and CMS structured data stay intact. */
body:has(#js-sticky-content.td316-rest-category) #navigation#navigation#navigation#navigation .td316-crumb-replaced,
body:has(#js-sticky-content.td316-rest-landing) #navigation#navigation#navigation#navigation .td316-crumb-replaced{display:none!important}


.td316-rest-landing-reading{width:var(--td316-rest-canvas,100%);max-width:100%;clear:both}
.td316-rest-list-reading{width:100%;max-width:100%;clear:both}
#td316-pilot-card[data-td316-rest] a.td316-welded-reading-card{box-sizing:border-box;display:grid;grid-template-columns:64px minmax(0,1fr);align-items:start;gap:10px;min-width:0;padding:12px;border:1px solid #e1e1e1;border-radius:12px;background:#fff;color:#416da4;text-decoration:none;box-shadow:0 1px 2px #00000012}
#td316-pilot-card[data-td316-rest] a.td316-welded-reading-card:hover{border-color:#b7c9d6;background:#f7fafc}
#td316-pilot-card[data-td316-rest] .article-rail-list a.td316-welded-reading-card{grid-template-columns:52px minmax(0,1fr);padding:12px;gap:9px}
#td316-pilot-card[data-td316-rest] .article-rail-list a.td316-welded-reading-card>img{width:52px;height:64px;object-fit:cover;border-radius:8px}
#td316-pilot-card[data-td316-rest] .td316-welded-reading-copy{display:block;min-width:0}
#td316-pilot-card[data-td316-rest] .td316-welded-reading-copy>strong{display:block;margin:0 0 5px;color:#416da4;font:500 14px/19px Ubuntu,Arial,sans-serif}
#td316-pilot-card[data-td316-rest] .td316-welded-reading-copy>small{display:block;color:#65727c;font:400 12px/17px Ubuntu,Arial,sans-serif}
@media(max-width:850px){body:has(#js-sticky-content.td316-rest-landing) .top-panel__search-container,body:has(#js-sticky-content.td316-rest-category) .top-panel__search-container,body:has(#td316-pilot-card[data-td316-rest]) .top-panel__search-container{display:none!important}}
#js-sticky-content.td316-rest-category #js-bx-filter:not(:has(.bx-filter-parameters-box)){display:none!important}

body:has(#td316-rest-sections) .catalog-section-container>.catalog-section-desc{display:none}

@media(max-width:850px){body:has(#td316-rest-sections) .top-panel__search-container.top-panel__search-container{display:none!important}}

@media(max-width:850px){body:has(#js-sticky-content.td316-rest-landing) .top-panel__search-container.top-panel__search-container{display:none!important}}
#td316-pilot-card[data-td316-rest] .spec-table:empty{display:none}
#td316-pilot-card[data-td316-rest] .parameter-chips:empty{display:none}

/* Match the accepted landing: reading cards follow the tiles; CMS text stays unchanged. */
body:has(#js-sticky-content.td316-rest-landing) .catalog-section-container>.catalog-section-desc{display:none}

@media(max-width:520px){
 #td316-pilot-card[data-td316-rest] .product-grid{grid-template-columns:minmax(0,1fr)}
 #td316-pilot-card[data-td316-rest] .product-grid>*{min-width:0;max-width:100%}
 #td316-pilot-card[data-td316-rest] .quantity-row{flex-wrap:wrap;gap:8px}
 #td316-pilot-card[data-td316-rest] .quantity-row label{min-width:0;white-space:normal}
 #td316-pilot-card[data-td316-rest] .quantity-row .stepper{min-width:0;max-width:100%;margin-left:auto}
 #td316-pilot-card[data-td316-rest] .purchase-help{flex-wrap:wrap}
}
