/* Lower homepage sections share the outer container with the sidebar. */



.home-showcase-wide{min-width:0;padding-top:0;--home-product-side:125px}



@media(min-width:1100px){



 .home-showcase-wide .showcase-product-grid{grid-template-columns:repeat(5,minmax(0,1fr))}



}



@media(min-width:651px) and (max-width:1099px){



 .home-showcase-wide .showcase-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}



}



@media(max-width:650px){.home-showcase-wide{--home-product-side:100px}}



@media(min-width:1921px){.home-showcase-wide{--home-product-side:calc(var(--itp-wide-art) - 20px)}}







/* The category rows fill the space down to the technical reference card. */



@media(min-width:651px){



 .home-top-layout>.home-showcase-main{display:flex;flex-direction:column}



 .home-top-layout>.home-showcase-main>.editable-block:has(>.home-tool-groups){display:flex;flex-direction:column;flex:1}



 main.container .home-top-layout .home-tool-groups{display:flex;flex-direction:column;flex:1;margin-bottom:0}



 main.container .home-top-layout .home-category-grid{flex:1;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(140px,1fr))}



 main.container .home-top-layout .home-category-tile{min-height:0}



 main.container .home-top-layout .home-category-tile .home-category-art{height:100%;min-height:0;container-type:size}



 main.container .home-top-layout .home-showcase-main .home-category-tile .home-category-art img{position:absolute;place-self:center;width:min(var(--home-category-side),100cqh);height:min(var(--home-category-side),100cqh)}



}







@media(min-width:651px) and (max-width:1050px){main.container .home-top-layout .home-category-grid{grid-template-rows:repeat(2,minmax(140px,1fr))}}







/* Four categories per row when the content column is wide enough. */



@media(min-width:1051px){main.container .home-top-layout .home-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}



@media(min-width:651px) and (max-width:1050px){main.container .home-top-layout .home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(100px,1fr))}}







/* Two complete rows, with more compact category cards on desktop. */



@media(min-width:1051px) and (max-width:1920px){main.container .home-top-layout .home-category-grid{grid-template-columns:repeat(5,minmax(0,1fr))}main.container .home-top-layout .home-category-tile:nth-child(n+11){display:none}}



@media(min-width:1921px){main.container .home-top-layout .home-category-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}



@media(min-width:651px) and (max-width:1050px){main.container .home-top-layout .home-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(100px,1fr))}}







/* Keep full captions readable at the transitions between column counts. */



main.container .home-top-layout .home-category-tile h3{white-space:nowrap}



@media(min-width:651px) and (max-width:959px){



 main.container .home-top-layout .home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(6,minmax(120px,1fr))}



}



@media(min-width:1051px) and (max-width:1279px){



 main.container .home-top-layout .home-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}



 main.container .home-top-layout .home-category-tile:nth-child(n+9){display:none}



}







/* Size the tool silhouette inside a shared safe area above the caption. */



main.container .home-top-layout .home-showcase-main .home-category-tile .home-category-art{position:absolute;inset:8px 8px 45px;height:auto;min-height:0;padding:0;container-type:size}



main.container .home-top-layout .home-showcase-main .home-category-tile .home-category-art img{position:absolute;place-self:center;width:min(100cqw,100cqh);height:min(100cqw,100cqh);max-width:none;max-height:none}



@media(max-width:650px){main.container .home-top-layout .home-showcase-main .home-category-tile .home-category-art{inset:8px 8px 36px}}







/* Keep enough image space on compact screens as well. */



@media(max-width:650px){main.container .home-top-layout .home-showcase-main .home-category-tile{min-height:155px}}



@media(min-width:651px) and (max-width:959px){main.container .home-top-layout .home-category-grid{grid-template-rows:repeat(6,minmax(160px,1fr))}}



@media(min-width:960px) and (max-width:1050px){main.container .home-top-layout .home-category-grid{grid-template-rows:repeat(4,minmax(160px,1fr))}}







/* Complete foreground tools stay within their own banner columns. */



main.container .home-showcase-main [data-home-slide="0"] .industrial-tools .tool-1 img,



main.container .home-showcase-main [data-home-slide="0"] .industrial-tools .tool-3 img{width:100%;height:100%;object-fit:contain}



main.container .home-showcase-main .geefun-banner>.alternate-banner-image{display:flex;align-items:center;justify-content:center;gap:8px;overflow:hidden}



main.container .home-showcase-main .geefun-banner .alternate-banner-image img.geefun-tool{position:static;inset:auto;width:calc((100% - 16px)/3)!important;max-width:calc((100% - 16px)/3)!important;height:100%!important;transform:none;object-fit:contain}



@media(min-width:651px) and (max-width:1920px){



 main.container .home-showcase-main .industrial-banner:not(.custom-banner){grid-template-columns:60% 40%}



 main.container .home-showcase-main .industrial-banner-copy{grid-column:1;width:100%;box-sizing:border-box;padding-left:20px;padding-right:8px}



 main.container .home-showcase-main .industrial-banner-copy>:is(.eyebrow,h1,h2,p){max-width:100%}



 main.container .home-showcase-main .industrial-banner>.industrial-tools,



 main.container .home-showcase-main .industrial-banner>.alternate-banner-image{width:36%;right:12px;max-width:36%;height:min(300px,75%);max-height:75%;--banner-art-height:250px}



}



@media(max-width:650px){



 main.container .home-showcase-main .industrial-banner:not(.custom-banner){height:420px;min-height:420px}



 main.container .home-showcase-main .industrial-banner-copy>:is(.eyebrow,h1,h2,p){max-width:100%}



 main.container .home-showcase-main .industrial-banner>.industrial-tools,



 main.container .home-showcase-main .industrial-banner>.alternate-banner-image{width:44%;max-width:44%;height:120px;max-height:120px;right:10px;top:auto;bottom:110px;transform:none;--banner-art-height:120px}



}







main.container .home-showcase-main [data-home-slide="0"] .industrial-tools .tool-2{container-type:size}



main.container .home-showcase-main [data-home-slide="0"] .industrial-tools .tool-2 img{width:min(90cqh,300cqw);height:min(27cqh,90cqw)}







/* Portrait source canvases have wide transparent margins around the cutters. */



main.container .home-showcase-main .geefun-banner>.alternate-banner-image{container-type:size}



main.container .home-showcase-main .geefun-banner .alternate-banner-image img.geefun-tool{height:min(100cqh,140cqw)!important;object-fit:cover;object-position:center}







/* Shared undistorted tool height: source padding cannot shrink the drill slide. */



main.container .home-showcase-main .geefun-banner>.alternate-banner-image{align-items:center;gap:12px}



main.container .home-showcase-main .geefun-banner .banner-tool-portrait{display:block;position:static;flex:1 1 0;min-width:0;width:calc((100% - 24px)/3);height:100%;max-height:100%;overflow:hidden}



main.container .home-showcase-main [data-slider-highlight="1"] .banner-tool-portrait{filter:drop-shadow(0 7px 9px rgba(25,38,52,.28))}



main.container .home-showcase-main [data-home-slide="0"] .industrial-banner>.industrial-tools{height:calc(100% - 48px);max-height:calc(100% - 48px);max-width:620px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:10px}



main.container .home-showcase-main [data-home-slide="0"] .industrial-tools .tool-2 img{width:95cqh;height:31.75cqh;max-width:none;max-height:none;object-fit:contain}



@media(min-width:651px) and (max-width:1920px){main.container .home-showcase-main [data-home-slide="0"] .industrial-banner>.industrial-tools{height:82%;max-height:82%}}



@media(max-width:650px){main.container .home-showcase-main [data-home-slide="0"] .industrial-banner>.industrial-tools{height:148px;max-height:148px;bottom:105px}main.container .home-showcase-main .geefun-banner>.alternate-banner-image{height:148px;max-height:148px;bottom:105px;gap:6px}}







/* Align the category heading with the help card in the adjacent sidebar. */



@media(min-width:651px){main.container .home-top-layout .home-tool-groups{margin-top:0}main.container .home-top-layout .home-tool-groups>.sectionhead{align-items:flex-start}main.container .home-top-layout .home-tool-groups>.sectionhead>h2{margin-top:0}}







/* Clip each source region itself: SVG letterboxing must not reveal neighbouring tools. */



main.container .home-showcase-main [data-home-slide="0"] .industrial-banner>.industrial-tools{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}



main.container .home-showcase-main .industrial-tools .banner-holder-large{display:block;width:100%;height:100%;overflow:hidden;filter:drop-shadow(0 7px 9px rgba(25,38,52,.28))}



main.container .home-showcase-main [data-slider-highlight="0"] .industrial-tools .banner-holder-large{filter:none}






/* Balance the tall tap against the insert and cutter on medium screens. */


@media(min-width:651px) and (max-width:1279px){main.container .home-showcase-main [data-home-slide="0"] .industrial-tools .tool-2 img{width:min(76cqh,270cqw);height:min(25.4cqh,90cqw)}}



/* Tool orientation is baked before watermarking; keep the mark direction fixed. */
main.container .home-showcase-main [data-home-slide="0"] .industrial-tools .tool-2 img{width:31.75cqh;height:95cqh;transform:translate(-50%,-50%);object-fit:contain}
@media(min-width:651px) and (max-width:1279px){main.container .home-showcase-main [data-home-slide="0"] .industrial-tools .tool-2 img{width:min(25.4cqh,90cqw);height:min(76cqh,270cqw)}}

/* Consistent compact spacing between homepage sections. */
main.container .home-showcase-wide>.editable-block>section{margin:12px 0!important}
main.container .home-showcase-wide>.editable-block>section>.sectionhead{margin-bottom:8px}
@media(min-width:651px){
 main.container .home-top-layout .home-showcase-main .benefits{margin-top:8px!important}
 main.container .home-top-layout:not(.home-navigation-active) .home-showcase-main .benefits{margin-bottom:0!important}
 main.container .home-top-layout .home-tool-groups{margin-top:8px}
}

/* Match the 16px gap below the header; apply each section gap once. */
main.container .home-showcase-wide>.editable-block{padding-top:16px}
main.container .home-showcase-wide>.editable-block>section{margin:0!important}
main.container .home-showcase-wide .home-order>h2:first-child{margin-top:0}
@media(min-width:651px){
 main.container .home-top-layout.home-showcase-layout{grid-template-columns:250px minmax(0,1fr)}
 main.container .home-top-layout:not(.home-navigation-active)>.home-showcase-main>.editable-block+ .editable-block{padding-top:16px}
 main.container .home-top-layout:not(.home-navigation-active)>.home-showcase-main>.editable-block>section{margin-top:0!important;margin-bottom:0!important}
}
@media(min-width:651px) and (max-width:1050px){main.container .home-top-layout.home-showcase-layout{grid-template-columns:220px minmax(0,1fr)}}
@media(min-width:1921px){main.container .home-top-layout.home-showcase-layout{grid-template-columns:calc(var(--itp-wide-filter) + 20px) minmax(0,1fr)}}

main.container .home-showcase-wide .home-order>.order-steps:last-child{margin-bottom:0}

@media(min-width:651px){main.container .home-top-layout.home-showcase-layout{column-gap:16px}}
