/* Search results immediately follow the hero, without a promotional section between. */
body.home-search-active .hero{padding-bottom:16px}
body.home-search-active #all-tools{padding-top:14px;padding-bottom:38px;background:#fff}
body.home-search-active #all-tools .container{max-width:1160px}
body.home-search-active #all-tools .tool-grid{margin-top:0}
body.home-search-active .featured-section{display:none!important}
body.home-search-active #all-tools .tools-heading,
body.home-search-active #all-tools #categories{display:none!important}
/* Only the explicit search state is changed; no ad elements are hidden by CSS. */
@media(max-width:640px){body.home-search-active .hero{padding-bottom:12px}body.home-search-active #all-tools{padding-top:10px}}
/* Prevent horizontal page overflow when filtered cards are moved below search. */
body.home-search-active{overflow-x:clip}
body.home-search-active #all-tools,
body.home-search-active #all-tools .container,
body.home-search-active #toolGrid{min-width:0;max-width:100%;box-sizing:border-box}
body.home-search-active #toolGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
body.home-search-active #toolGrid .tool-card{min-width:0;max-width:100%;overflow-wrap:anywhere}
@media(max-width:900px){body.home-search-active #toolGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){body.home-search-active #toolGrid{grid-template-columns:minmax(0,1fr)}}
