/* TradesFolks 18.4.118
   Mobile hero height reduction + horizontal category carousel.
   Desktop category layout is preserved. */

@media(max-width:820px){

  /* ======================================================
     HERO — reduce height, retain all content
     ====================================================== */
  .tf-homepage .tf-home-v3-hero{
    height:380px!important;
    min-height:380px!important;
    max-height:380px!important;
  }

  .tf-homepage .tf-home-v3-copy{
    padding:0 12px 34px!important;
  }

  .tf-homepage .tf-home-v3-eyebrow{
    min-height:20px!important;
    margin-bottom:4px!important;
    padding:0 8px!important;
    font-size:5px!important;
  }

  .tf-homepage .tf-home-v3-copy h1{
    max-height:50px!important;
    margin-bottom:4px!important;
    font-size:23px!important;
    line-height:1!important;
  }

  .tf-homepage .tf-home-v3-copy>p{
    max-height:24px!important;
    margin-bottom:5px!important;
    font-size:6.4px!important;
    line-height:1.22!important;
  }

  .tf-homepage .tf-home-v3-search{
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
  }

  .tf-homepage .tf-home-v3-search select,
  .tf-homepage .tf-home-v3-search input,
  .tf-homepage .tf-home-v3-search button{
    height:36px!important;
    min-height:36px!important;
    max-height:36px!important;
    font-size:5.9px!important;
  }

  .tf-homepage .tf-home-v3-search select{
    flex-basis:76px!important;
  }

  .tf-homepage .tf-home-v3-search button{
    flex-basis:60px!important;
  }

  .tf-homepage .tf-home-v3-popular{
    min-height:18px!important;
    margin-top:4px!important;
    gap:3px!important;
  }

  .tf-homepage .tf-home-v3-popular a{
    min-height:17px!important;
    padding-inline:5px!important;
    font-size:4.5px!important;
  }

  .tf-homepage .tf-home-v3-actions{
    min-height:28px!important;
    margin-top:4px!important;
    gap:5px!important;
  }

  .tf-homepage .tf-home-v3-actions a,
  .tf-homepage .tf-home-v3-actions button{
    min-height:28px!important;
    padding:0 7px!important;
    font-size:5.2px!important;
  }

  .tf-homepage .tf-home-v3-stats{
    height:43px!important;
    min-height:43px!important;
    max-height:43px!important;
    margin-top:5px!important;
  }

  .tf-homepage .tf-home-v3-stats>div{
    padding:4px 6px!important;
  }

  .tf-homepage .tf-home-v3-stats strong{
    font-size:10px!important;
  }

  .tf-homepage .tf-home-v3-stats span,
  .tf-homepage .tf-home-v3-stats small{
    margin-top:2px!important;
    font-size:4.3px!important;
  }

  .tf-homepage .tf-home-v3-slider-ui{
    bottom:6px!important;
  }

  .tf-homepage .tf-home-v3-slider-ui>button{
    width:25px!important;
    height:25px!important;
    min-width:25px!important;
    min-height:25px!important;
    font-size:15px!important;
  }

  /* ======================================================
     EXPLORE INDUSTRIES — horizontal left/right carousel
     ====================================================== */
  .tf-homepage .tf-home-v3-industries{
    overflow:hidden!important;
  }

  .tf-homepage .tf-home-v3-industries > .shell{
    overflow:hidden!important;
  }

  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-grid{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0 1px 5px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    scroll-padding-left:1px!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
    overscroll-behavior-x:contain!important;
  }

  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-grid::-webkit-scrollbar{
    display:none!important;
  }

  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-card{
    flex:0 0 42vw!important;
    width:42vw!important;
    min-width:42vw!important;
    max-width:42vw!important;
    height:148px!important;
    min-height:148px!important;
    max-height:148px!important;
    margin:0!important;
    scroll-snap-align:start!important;
    scroll-snap-stop:normal!important;
    border-radius:13px!important;
  }

  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-media{
    flex:0 0 112px!important;
    width:100%!important;
    height:112px!important;
    min-height:112px!important;
    max-height:112px!important;
    padding:7px!important;
  }

  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-media img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
  }

  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-body{
    flex:0 0 36px!important;
    height:36px!important;
    min-height:36px!important;
    max-height:36px!important;
    padding:4px 6px!important;
  }

  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-body > strong{
    font-size:7px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
    overflow:hidden!important;
  }
}

@media(max-width:420px){
  .tf-homepage .tf-home-v3-hero{
    height:360px!important;
    min-height:360px!important;
    max-height:360px!important;
  }

  .tf-homepage .tf-home-v3-copy{
    padding:0 10px 31px!important;
  }

  .tf-homepage .tf-home-v3-copy h1{
    font-size:21px!important;
  }

  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-card{
    flex-basis:44vw!important;
    width:44vw!important;
    min-width:44vw!important;
    max-width:44vw!important;
    height:140px!important;
    min-height:140px!important;
    max-height:140px!important;
  }

  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-media{
    flex-basis:106px!important;
    height:106px!important;
    min-height:106px!important;
    max-height:106px!important;
  }

  .tf-homepage .tf-home-v3-industries .tf-home-v3-category-body{
    flex-basis:34px!important;
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
  }
}
