[data-family-layout] main section[id]{scroll-margin-top:clamp(126px,12vw,176px)}
[data-family-layout] .original-gallery-v160{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:clamp(14px,2vw,28px);margin:16px 0 0
}
[data-family-layout] .original-gallery-v160:has(>.original-v160:only-child){grid-template-columns:minmax(0,1fr)}
[data-family-layout] .original-v160{
    border:1px solid #c4d0c4;border-radius:2px;overflow:hidden;background:#fbfaf4
}
[data-family-layout] .original-v160 a{background:#e9ede4}
[data-family-layout] .original-v160 img{background:#f6f6ee;height:clamp(205px,23vw,350px)}
[data-family-layout] .original-v160 a>span{
    margin:8px 10px;padding:5px 9px;border:1px solid #afc2b3;background:#fcfbf5;
    font-size:13px;line-height:1.5
}
[data-family-layout] .original-v160 a:is(:hover,:focus-visible)>span{background:#103e49;color:#fff}
[data-family-layout] .original-v160 figcaption{
    padding:11px 14px;color:#28514c;font-size:15px;line-height:1.5
}
[data-family-layout$="-detail"] :is(.catalog-gallery-v83,.wall-content,.catalog-group-v85){
    padding:clamp(15px,2.4vw,30px);border:0;border-top:1px solid #a9beb1;border-radius:0;background:#fbfaf5
}
[data-family-layout$="-detail"] :is(.catalog-gallery-v83,.wall-content,.catalog-group-v85)>h2{
    margin:0 0 13px;line-height:1.4
}
[data-family-layout="wall-index"] .wall-directory-list{gap:clamp(17px,2.4vw,32px);align-items:stretch}
[data-family-layout="wall-index"] .wall-directory-list>li{display:flex;min-width:0}
[data-family-layout="wall-index"] .wall-directory-group:has(>ul>li:nth-child(3)) .wall-directory-list{
    grid-template-columns:repeat(3,minmax(0,1fr))
}
body[data-family-layout="wall-index"] main .wall-directory-list .wall-category-link{
    display:flex!important;flex-direction:column;align-self:stretch;gap:0;min-height:0!important;
    width:100%;height:100%!important;
    padding:0!important;background:#fbfaf5;border:0;border-bottom:1px solid #aebfb3;
    border-radius:0;box-shadow:none;overflow:hidden
}
/* One media slot per card, including the wide fibre-cement sample strip. */
body[data-family-layout="wall-index"] main .wall-directory-list .wall-category-link>.original-card-v160{
    display:block;flex:0 0 auto;width:100%;aspect-ratio:16/9;height:auto;
    min-height:0;max-height:none;object-fit:cover;background:#e9ede3;margin:0
}
/* The paired material samples use a shallower frame: keep the whole texture strip visible
   without a tall empty area beside the physical panel photograph. */
body[data-family-layout="wall-index"] main .wall-directory-list:has(>li:nth-child(2):last-child) .wall-category-link>.original-card-v160{
    aspect-ratio:2.8/1
}
body[data-family-layout="wall-index"] main .wall-directory-list .wall-category-link:is([href="wall-konoshima.html"],[href="wall-nichiha.html"])>.original-card-v160{
    object-fit:contain;background:#f4f3eb
}
[data-family-layout="wall-detail"] .wall-cover-reference{margin:16px 0 0}
[data-family-layout="wall-detail"] .wall-cover-reference a{
    display:inline-flex;align-items:center;gap:.6em;padding:8px 12px;
    border:1px solid #aebfb3;color:#123c47;background:#fbfaf4;text-decoration:none
}
[data-family-layout="wall-detail"] .wall-cover-reference a:is(:hover,:focus-visible){
    background:#103e49;color:#fff
}
.wall-swatch-codes{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 24px
}
.wall-swatch-codes>div{
    min-width:0;padding:12px 14px;border:1px solid #bdcbbd;border-top:2px solid #a28a5d;background:#f2f4eb
}
.wall-swatch-codes dt{margin:0 0 8px;color:#073343;font-size:16px;font-weight:650}
.wall-swatch-codes dd{margin:0}
.wall-swatch-codes ul{
    display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12ch),1fr));gap:2px 9px;
    list-style:none;margin:0;padding:0;color:#254e49;font-size:15px;line-height:1.65;font-variant-numeric:tabular-nums
}
@media(max-width:960px){.wall-swatch-codes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.wall-swatch-codes{grid-template-columns:1fr}}
.nichiha-swatch-dimensions{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));
}
.nichiha-swatch-dimensions dt span{display:block;margin-bottom:4px;font-size:14px;font-weight:500}
.nichiha-swatch-dimensions small{display:inline-block;font-size:.85em;font-weight:400;white-space:nowrap}
.nichiha-swatch-dimensions ul{grid-template-columns:repeat(auto-fit,minmax(min(100%,13.5ch),1fr))}
body[data-family-layout="wall-index"] main .wall-directory-list .wall-category-link[href="wall-fiber-cement.html"]>.original-card-v160{
    object-fit:scale-down;
    padding:clamp(10px,1.2vw,16px);
    background:#f4f3eb;
}
body[data-family-layout="wall-index"] main .wall-category-link .wall-card-copy{
    padding:19px clamp(15px,2vw,27px)!important;flex:1;display:flex;flex-direction:column;align-items:start;gap:9px
}
body[data-family-layout="wall-index"] main .wall-card-copy .wall-card-action{
    margin-top:auto!important;padding-top:20px
}
[data-family-layout="wall-index"] .wall-category-link:is(:hover,:focus-visible){border-color:#92723b;background:#fffdf6}
[data-family-layout="wall-detail"] .wall-content .original-gallery-v160:has(.original-v160:nth-child(4)){
    grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))
}
[data-family-layout="wall-detail"] .wall-content .original-gallery-v160:has(.original-v160:nth-child(4)) img{
    height:clamp(145px,17vw,240px)
}
[data-family-layout="wall-detail"] :is(#length-3030,#length-1820,#samples) .original-v160 img{
    height:auto;max-height:360px
}
[data-family-layout="wall-detail"] .original-gallery-v160:has(>.original-v160:only-child){max-width:840px}
[data-family-layout="steel-index"] .steel-hero-v90{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(22px,4vw,62px);align-items:center
}
[data-family-layout="steel-index"] .steel-hero-v90 figure a img{
    width:100%;height:clamp(245px,35vw,470px);object-fit:cover;object-position:50% 61%;
    object-view-box:inset(18% 0 6% 0)
}
[data-family-layout="steel-index"] .steel-hero-v90 figure a span{position:static;display:block;margin:8px 10px 8px auto;width:max-content}
[data-family-layout="steel-index"] .steel-topics-v90 li a{padding-block:clamp(13px,1.7vw,23px)}
[data-family-layout="steel-detail"] :is(.catalog-assembly-v85,.catalog-document-v85){
    grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:clamp(20px,4vw,56px);align-items:center;
    padding-bottom:clamp(21px,3vw,45px);margin-bottom:clamp(22px,3vw,45px)
}
[data-family-layout="steel-detail"] :is(.catalog-assembly-v85,.catalog-document-v85) .original-gallery-v160{margin:0}
[data-family-layout="steel-detail"] .catalog-assembly-v85 .original-v160 img{height:auto;max-height:480px;background:#fff}
[data-family-layout="steel-detail"] .catalog-document-v85 .original-v160 img{height:auto;max-height:525px;background:#fff}
[data-family-layout="steel-detail"] #component-joints .original-v160 img{height:auto;max-height:335px}
[data-family-layout="steel-detail"] #hold-downs .original-v160 img{background:#fff}
[data-family-layout="steel-detail"] main #structure-assembly{scroll-margin-top:20px}
[data-family-layout="hardware-index"] .anchoring-materials{
    margin:28px 0;padding:clamp(16px,2vw,24px);
    scroll-margin-top:180px;border:1px solid #bccabb;background:#f8f8ef
}
.anchoring-materials h3{margin:0 0 12px}
.anchoring-materials .anchoring-product{
    display:grid;grid-template-columns:minmax(72px,185px) minmax(0,1fr) auto;align-items:center;
    gap:clamp(10px,2vw,22px);padding:10px;border:1px solid #bdcbbd;color:#123c47;
    background:#fffdf7;text-decoration:none
}
.anchoring-product:is(:hover,:focus-visible){border-color:#9b804e;background:#f0f2e8}
.anchoring-product img{display:block;width:100%;aspect-ratio:2/1;height:auto;object-fit:contain}
.anchoring-product strong,.anchoring-product strong+span{display:block}
.anchoring-product strong+span{margin-top:4px;color:#416157;font-size:14px}
@media(max-width:600px){
    .anchoring-materials .anchoring-product{
        grid-template-columns:minmax(0,32%) minmax(0,1fr);position:relative;padding-right:24px
    }
    .anchoring-product>span[aria-hidden]{position:absolute;top:11px;right:8px}
}

[data-family-layout="bath-index"] .catalog-card-v83{
    display:flex;flex-direction:column;min-width:0;border:0;border-bottom:1px solid #a9bdb1;
    border-radius:0;background:#fbfaf4;box-shadow:none;overflow:hidden
}
[data-family-layout="bath-index"] .catalog-card-v83>:is(.source-cover-v154,.original-card-v160){
    display:block;width:100%;aspect-ratio:4/3;height:auto;min-height:0;margin:0;background:#e7ede3
}
[data-family-layout="bath-index"] .catalog-card-v83>.source-cover-v154 img{
    width:100%;height:100%;object-fit:cover;object-position:50% 32%;display:block
}
[data-family-layout="bath-index"] .catalog-card-v83[href="bath-interior.html"]>.source-cover-v154 img{object-position:50% 41%}
[data-family-layout="bath-index"] .catalog-card-v83>.original-card-v160{object-fit:cover}
[data-family-layout="bath-index"] .catalog-card-v83:is(:hover,:focus-visible){border-color:#92723b;background:#fffdf6}
[data-family-layout="bath-index"] .catalog-copy-v83{padding:clamp(16px,2.3vw,28px);flex:1}
[data-family-layout="bath-index"] .catalog-copy-v83 h3{margin:6px 0 9px}
[data-family-layout="bath-module-detail"] .bath-lead-v94:has(#module-appearance){
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;
    gap:clamp(17px,2vw,32px)
}
[data-family-layout="bath-module-detail"] .bath-lead-copy-v94,
[data-family-layout="bath-module-detail"] .bath-specification-v94{grid-column:1}
[data-family-layout="bath-module-detail"] #module-appearance{
    grid-column:2;grid-row:1 / span 2;margin:0;padding:15px;background:#fbfaf4;border:1px solid #c0cec2
}
[data-family-layout="bath-module-detail"] #module-appearance h2{font-size:clamp(20px,2vw,26px);margin:0 0 12px}
[data-family-layout="bath-module-detail"] #module-appearance .catalog-grid-v83{grid-template-columns:1fr;margin:0}
[data-family-layout="bath-module-detail"] #module-appearance img{
    height:auto;max-height:490px;width:100%;object-fit:contain
}
[data-family-layout="bath-module-detail"] #module-base .original-gallery-v160{max-width:830px}
[data-family-layout="bath-module-detail"] #module-base .original-v160 img{height:clamp(230px,33vw,370px);object-fit:contain}
[data-family-layout="bath-module-detail"] #base-video{margin-block:18px;padding:clamp(16px,3vw,30px)}
/* Interior reading and photographs occupy separate full-width rows. Never nest
   the shared two-column description inside a half-width photo/copy grid. */
body[data-family-layout="bath-interior-detail"] .catalog-detail-v83{display:block}
body[data-family-layout="bath-interior-detail"] #product-overview-v87{display:block;margin:0 0 28px}
body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-reading-v87{
    display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
    column-gap:clamp(28px,4vw,60px);row-gap:24px;align-items:start
}
body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-reading-v87>h2{
    grid-column:1;grid-row:1;margin:0;font-size:clamp(27px,2.4vw,35px);line-height:1.55
}
body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-intro-v87{
    grid-column:2;grid-row:1;margin:0;max-width:56ch
}
body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-facts-v87{
    grid-column:1/-1;grid-row:2;margin:0;padding:4px 22px;display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));gap:0 26px;background:#e9efe2;border:0
}
body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-facts-v87>div{
    display:block;grid-column:span 2;padding:17px 0;border:0;border-top:1px solid #c3d0bc
}
body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-facts-v87>div:nth-child(-n+2){grid-column:span 3;border-top:0}
body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-facts-v87 dt{margin:0 0 6px}
body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-facts-v87>div:last-child{border-bottom:0}
body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-facts-v87 dd{overflow-wrap:normal;line-height:1.85}
body[data-family-layout="bath-interior-detail"] #interior-photos{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;
    margin:0;padding:clamp(20px,2.4vw,30px);align-items:start
}
body[data-family-layout="bath-interior-detail"] #interior-photos>h2{grid-column:1/-1;margin:0}
body[data-family-layout="bath-interior-detail"] #interior-photos :is(.catalog-grid-v83,.original-gallery-v160),
body[data-family-layout="bath-interior-detail"] #interior-photos .catalog-grid-v83>li{display:contents}
body[data-family-layout="bath-interior-detail"] #interior-photos figure{
    grid-column:auto;margin:0;min-width:0;border:1px solid #c4d0c4;background:#fbfaf4;align-self:stretch
}
body[data-family-layout="bath-interior-detail"] #interior-photos .original-v160:first-child{grid-column:auto}
body[data-family-layout="bath-interior-detail"] #interior-photos figure>a{
    display:flex;flex-direction:column;align-items:stretch;margin:0;padding:0;border:0;background:#e9ede4
}
body[data-family-layout="bath-interior-detail"] #interior-photos figure img{
    display:block;width:100%;height:clamp(220px,20vw,290px);max-height:none;min-height:0;
    object-fit:contain;object-position:center;background:#f3f3ec;margin:0;padding:0
}
body[data-family-layout="bath-interior-detail"] #interior-photos figure>a>span{
    position:static;transform:none;align-self:flex-end;float:none;white-space:nowrap;
    margin:7px 9px;padding:5px 9px;font-size:13px;line-height:1.5;border:1px solid #afc2b3;background:#fcfbf5;color:#103e49
}
body[data-family-layout="bath-interior-detail"] #interior-photos figure>a:is(:hover,:focus-visible)>span{background:#103e49;color:#fff}
body[data-family-layout="bath-interior-detail"] #interior-photos figcaption{padding:11px 14px;font-size:15px;line-height:1.6}
@media(max-width:1100px){
    body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-reading-v87{
        display:block
    }
    body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-reading-v87>h2{margin-bottom:16px}
    body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-intro-v87{max-width:none;margin:0 0 22px}
    body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-facts-v87{
        display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px;padding:4px 20px
    }
    body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-facts-v87>div{
        display:block;grid-column:auto;padding:16px 0;border-top:1px solid #c3d0bc
    }
    body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-facts-v87>div:nth-child(-n+2){grid-column:auto;border-top:0}
    body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-facts-v87 dt{margin:0 0 6px}
    body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-facts-v87>div:last-child{grid-column:1/-1}
    body[data-family-layout="bath-interior-detail"] #interior-photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
    body[data-family-layout="bath-interior-detail"] #interior-photos figure img{height:clamp(240px,28vw,290px)}
}
@media(max-width:620px){
    body[data-family-layout="bath-interior-detail"] #product-overview-v87{margin-bottom:24px}
    body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-facts-v87{
        display:block;padding:0 16px
    }
    body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-facts-v87>div{padding:14px 0}
    body[data-family-layout="bath-interior-detail"] #product-overview-v87 .content-facts-v87>div:nth-child(2){border-top:1px solid #c3d0bc}
    body[data-family-layout="bath-interior-detail"] #interior-photos{grid-template-columns:1fr;padding:18px 15px;gap:18px}
    body[data-family-layout="bath-interior-detail"] #interior-photos figure img{height:clamp(240px,72vw,320px)}
}
body[data-family-layout="bath-interior-detail"] #interior-concepts{max-width:480px;margin:28px auto 0}
body[data-family-layout="bath-interior-detail"] #interior-concepts>h2{text-align:center;font-size:28px}
body[data-family-layout="bath-interior-detail"] #interior-concepts .original-gallery-v160{max-width:360px;margin:16px auto 0}
body[data-family-layout="bath-interior-detail"] #interior-concepts .original-v160 img{
    width:100%;height:clamp(340px,32vw,440px);max-height:none;object-fit:contain
}
[data-family-layout="bath-smc-detail"] #smc-patterns .original-gallery-v160{
    grid-template-columns:repeat(3,minmax(0,1fr))
}
[data-family-layout="bath-smc-detail"] #smc-patterns .original-v160 img{
    height:auto;width:100%;aspect-ratio:4/3;object-fit:cover
}
/* Keep each category photo, label and destination in one visual group. */
body[data-family-layout="hardware-index"] #fastener-categories .collection-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:clamp(16px,2vw,28px);
    border:0;
}
body[data-family-layout="hardware-index"] #fastener-categories .collection-card {
    display:flex;
    grid-column:auto;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:0;
    margin:0;
    border:1px solid #c6d1c2;
    border-radius:8px;
    overflow:hidden;
    background:#fffdf6;
    box-shadow:0 5px 18px #143b3810;
    transition:border-color .18s ease,box-shadow .18s ease;
}
body[data-family-layout="hardware-index"] #fastener-categories .collection-card:hover,
body[data-family-layout="hardware-index"] #fastener-categories .collection-card:focus-visible {
    border-color:#9e8150;
    background:#fffdf6;
    box-shadow:0 10px 24px #143b381e;
}
body[data-family-layout="hardware-index"] #fastener-categories .collection-image {
    position:relative;
    width:100%;
    height:clamp(172px,15vw,220px);
    flex:none;
    align-self:stretch;
    margin:0;
    padding:0;
    border:0;
    border-bottom:1px solid #d4dcd0;
    overflow:hidden;
    background:#e8ede4;
}
body[data-family-layout="hardware-index"] #fastener-categories .collection-image > img {
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    max-height:none;
    padding:0;
    object-fit:cover;
    object-position:50% var(--hardware-photo-y,50%);
    mix-blend-mode:normal;
}
#fastener-categories .collection-card[href="fasteners-screws.html"] { --hardware-photo-y:60%; }
#fastener-categories .collection-card[href="fasteners-bolts.html"] { --hardware-photo-y:88%; }
body[data-family-layout="hardware-index"] #fastener-categories .collection-image:has(> img[src$="/handbook-1941.png"]) {
    background:#f5f4f0;
}
body[data-family-layout="hardware-index"] #fastener-categories .collection-image > img[src$="/handbook-1941.png"] {
    object-fit:contain;
    object-view-box:inset(11% 0 11%);
}

body[data-family-layout="hardware-index"] #fastener-categories .collection-copy-v111 {
    flex:1;
    min-width:0;
    padding:clamp(17px,1.7vw,24px) clamp(17px,1.7vw,24px) 16px;
}
body[data-family-layout="hardware-index"] #fastener-categories .collection-card h3 {
    margin:0 0 7px;
    font-size:clamp(20px,1.7vw,26px);
    line-height:1.45;
    letter-spacing:0;
}
body[data-family-layout="hardware-index"] #fastener-categories .collection-card p {
    font-size:15px;
    line-height:1.75;
}
body[data-family-layout="hardware-index"] #fastener-categories .collection-action-v111 {
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:0;
    margin:0 clamp(17px,1.7vw,24px);
    padding:11px 0 15px;
    border:0;
    border-top:1px solid #dce3d8;
}
body[data-family-layout="hardware-index"] #fastener-categories .collection-count {
    display:inline-block;
    margin:0;
    padding:3px 9px;
    background:#e6ede2;
    color:#35584c;
    font-size:13px;
    border:0;
    border-radius:3px;
}
body[data-family-layout="hardware-index"] #fastener-categories .collection-open-v111 {
    gap:8px;
    padding:0;
    border:0;
    font-size:15px;
}
body[data-family-layout="hardware-index"] #fastener-categories .collection-open-v111 > span {
    display:grid;
    width:28px;
    height:28px;
    place-items:center;
    background:#103d4a;
    color:#fffdf4;
    border-radius:50%;
    font-size:16px;
}
[data-family-layout="hardware-product"] .product-detail-lead:has(.hardware-photo-view) {
    grid-template-columns:minmax(0,780px);
    justify-content:center;
}
[data-family-layout="hardware-product"] .hardware-photo-view {
    display:inline-flex;
    width:fit-content;
    align-items:center;
    gap:8px;
    border-bottom:1px solid #77958a;
    color:#103d4a;
    font-weight:600;
}
@media (max-width:560px) {
    body[data-family-layout="hardware-index"] #fastener-categories .collection-grid { grid-template-columns:minmax(0,1fr); }
    body[data-family-layout="hardware-index"] #fastener-categories .collection-image { height:clamp(150px,49vw,220px); }
}
@media (prefers-reduced-motion:reduce) {
    body[data-family-layout="hardware-index"] #fastener-categories .collection-card { transition:none; }
}
[data-family-layout="hardware-product"] :is(.product-detail-heading,.product-detail-copy,.product-detail-end){min-width:0;overflow-wrap:anywhere}
[data-family-layout="hardware-table"] .catalog-sheet-table-v61 tbody th a .catalog-product-title-v61{
    text-underline-offset:4px;text-decoration-color:#96ad9f
}
[data-family-layout="hardware-table"] .catalog-product-detail-v61{color:#315b50}
[data-family-layout="hardware-product"] .product-detail-lead:has(>.original-v160){
    grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(24px,4vw,62px);align-items:start
}
[data-family-layout="hardware-product"] .product-detail-lead>.original-v160 img{
    height:clamp(245px,32vw,440px);object-fit:contain
}
[data-family-layout="hardware-product"] .product-detail-lead>.original-v160[data-technical-visual] img{
    background:#fff;height:clamp(185px,22vw,315px);padding:clamp(10px,2vw,32px)
}
[data-family-layout="hardware-product"] .product-technical{padding-block:clamp(20px,3vw,42px)}
[data-family-layout="hardware-product"] .product-technical .technical-drawings:empty{display:none}
@media(max-width:940px){
    [data-family-layout="steel-index"] .steel-hero-v90,
    [data-family-layout="steel-detail"] :is(.catalog-assembly-v85,.catalog-document-v85),
    [data-family-layout="bath-module-detail"] .bath-lead-v94:has(#module-appearance),
    [data-family-layout="hardware-product"] .product-detail-lead:has(>.original-v160){grid-template-columns:1fr}
    [data-family-layout="bath-module-detail"] #module-appearance{grid-column:1;grid-row:auto}
    [data-family-layout="bath-interior-detail"] .catalog-detail-v83{display:block}
    [data-family-layout="bath-interior-detail"] #interior-photos{margin-top:22px}
    [data-family-layout="wall-index"] .wall-directory-group:has(>ul>li:nth-child(3)) .wall-directory-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
    [data-family-layout="wall-index"] .wall-directory-group:has(>ul>li:nth-child(3)) .wall-directory-list{grid-template-columns:1fr}
    [data-family-layout="bath-smc-detail"] #smc-patterns .original-gallery-v160{grid-template-columns:repeat(2,minmax(0,1fr))}
    [data-family-layout="hardware-table"] .catalog-sheet-table-v61 tr.catalog-spec-row{
        margin:0;padding:16px;border-width:1px;border-top:1px solid #adbeae;box-shadow:none
    }
    [data-family-layout="hardware-product"] .product-detail-lead>.original-v160 img{height:clamp(210px,69vw,320px)}
}


/* Restore the catalogue's individual wall samples at a readable, consistent size. */
body[data-family-layout="wall-detail"] #samples:has(img[src*="/resistantcement"]) .original-gallery-v160{
    grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;
}
body[data-family-layout="wall-detail"] #samples:has(img[src*="/resistantcement"]) .original-v160 img{
    width:100%;height:clamp(170px,17vw,225px);object-fit:scale-down;background:#f6f5ef;
}
.original-gallery-v160>.catalog-image-group-title{
    grid-column:1/-1;margin:18px 0 0;font-size:23px;color:#073343;
}
body[data-family-layout="wall-detail"] :is(#applications,#appearances) .original-gallery-v160{
    grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;
}
body[data-family-layout="wall-detail"] :is(#applications,#appearances) .original-v160 img{
    width:100%;height:clamp(175px,20vw,265px);object-fit:contain;background:#f6f5ef;
}
body[data-family-layout="wall-detail"] #physical:has(img[src$="/fiber-display-rack.jpg"]) .original-gallery-v160{max-width:620px}
body[data-family-layout="wall-detail"] #physical img[src$="/fiber-display-rack.jpg"]{height:350px;object-fit:contain}
@media(max-width:960px){
    body[data-family-layout="wall-detail"] #samples:has(img[src*="/resistantcement"]) .original-gallery-v160{grid-template-columns:repeat(3,minmax(0,1fr))}
    body[data-family-layout="wall-detail"] :is(#applications,#appearances) .original-gallery-v160{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
    body[data-family-layout="wall-detail"] #samples:has(img[src*="/resistantcement"]) .original-gallery-v160{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    body[data-family-layout="wall-detail"] #samples:has(img[src*="/resistantcement"]) .original-v160 img{height:185px}
    body[data-family-layout="wall-detail"] :is(#applications,#appearances) .original-gallery-v160{grid-template-columns:1fr}
    body[data-family-layout="wall-detail"] :is(#applications,#appearances) .original-v160 img{height:240px}
}

/* Exact original-pixel viewports: framing only, no retouch or replacement. */
body[data-family-layout="wall-detail"] .original-v160 a>.original-source-slot{
    --source-slot-height:clamp(175px,20vw,265px);
    display:flex;align-items:center;justify-content:center;justify-self:stretch;
    width:100%;height:var(--source-slot-height);padding:0;background:#f6f5ef;
}
body[data-family-layout="wall-detail"] .original-source-window{
    position:relative;display:block;overflow:hidden;flex:none;padding:0;
    width:min(100%,calc(var(--source-slot-height) * var(--source-ratio)));
    aspect-ratio:var(--source-ratio);
}
@media(max-width:620px){
    body[data-family-layout="wall-detail"] .original-v160 a>.original-source-slot{--source-slot-height:240px}
}

body[data-family-layout="wall-detail"] .original-v160 a>.original-source-slot{
    margin:0;border:0;box-sizing:border-box;min-width:0;
}
body[data-family-layout="wall-detail"] .original-source-window{
    margin:0;border:0;box-sizing:content-box;
}
body[data-family-layout="wall-index"] #japanese-ceramic .original-gallery-v160{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
body[data-family-layout="wall-index"] #japanese-ceramic img[src$="-sample.jpg"]{
    height:180px;object-fit:scale-down;padding:12px;box-sizing:border-box;
}
@media(max-width:960px){
    body[data-family-layout="wall-index"] #japanese-ceramic .original-gallery-v160{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
    body[data-family-layout="wall-index"] #japanese-ceramic .original-gallery-v160{grid-template-columns:1fr}
}

/* 2026-11-20: keep capped, text-only hardware leads readable on wide screens. */
@media (min-width: 1601px) {
  body[data-family-layout="hardware-product"] main > .product-detail-lead.hardware-single-copy-20261120 {
    padding-inline: 70px;
  }
}
