/* TradesFolks 18.4.129 — remove mobile gap before RFQ
   Root cause: preceding "Discover more ways to source" cards retain desktop
   min-height / fixed track height on mobile. */

/* mobile only */
@media(max-width:820px){

  /* Main discovery section must size to actual content */
  .tf-homepage .curated-b2b,
  .tf-homepage .curated-b2b-section,
  .tf-homepage .tf-curated-b2b,
  .tf-homepage .tf-sourcing-solutions{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding-bottom:8px!important;
    margin-bottom:0!important;
  }

  .tf-homepage .curated-b2b .shell,
  .tf-homepage .curated-b2b-section .shell,
  .tf-homepage .tf-curated-b2b .shell,
  .tf-homepage .tf-sourcing-solutions .shell{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding-bottom:0!important;
    margin-bottom:0!important;
  }

  /* Cards: remove desktop fixed/min heights */
  .tf-homepage .curated-b2b-grid,
  .tf-homepage .curated-b2b-list,
  .tf-homepage .curated-b2b-track{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    align-items:start!important;
    padding-bottom:0!important;
    margin-bottom:0!important;
  }

  .tf-homepage .curated-b2b-card{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding-bottom:10px!important;
    margin-bottom:0!important;
  }

  .tf-homepage .curated-b2b-products{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin-bottom:8px!important;
  }

  /* CTA must end the card naturally, not anchor against a tall fixed card */
  .tf-homepage .curated-b2b-cta{
    position:relative!important;
    inset:auto!important;
    bottom:auto!important;
    left:auto!important;
    right:auto!important;
    margin-top:8px!important;
    margin-bottom:0!important;
  }

  /* If any inline desktop sizing survived, hard reset the card children. */
  .tf-homepage .curated-b2b-card > *{
    max-height:none!important;
  }

  /* RFQ starts immediately after this section */
  .tf-homepage .curated-b2b + .tf-rfq-canonical,
  .tf-homepage .curated-b2b-section + .tf-rfq-canonical,
  .tf-homepage .tf-curated-b2b + .tf-rfq-canonical,
  .tf-homepage .tf-sourcing-solutions + .tf-rfq-canonical{
    margin-top:6px!important;
  }
}

@media(max-width:430px){
  .tf-homepage .curated-b2b,
  .tf-homepage .curated-b2b-section,
  .tf-homepage .tf-curated-b2b,
  .tf-homepage .tf-sourcing-solutions{
    padding-bottom:6px!important;
  }

  .tf-homepage .curated-b2b-card{
    padding-bottom:8px!important;
  }
}

@media(max-width:820px){
  .tf-homepage .country-market-source{
    min-height:0!important;
    max-height:none!important;
  }
}

@media(max-width:820px){
  .tf-homepage .curated-b2b-card{
    min-height:0!important;
    max-height:none!important;
  }
}

@media(max-width:820px){
  .tf-homepage .curated-b2b-cta{
    min-height:0!important;
    max-height:none!important;
  }
}

@media(max-width:820px){
  .tf-homepage .curated-b2b-grid{
    min-height:0!important;
    max-height:none!important;
  }
}

@media(max-width:820px){
  .tf-homepage .curated-b2b-heading{
    min-height:0!important;
    max-height:none!important;
  }
}

@media(max-width:820px){
  .tf-homepage .curated-b2b-image{
    min-height:0!important;
    max-height:none!important;
  }
}

@media(max-width:820px){
  .tf-homepage .curated-b2b-item{
    min-height:0!important;
    max-height:none!important;
  }
}

@media(max-width:820px){
  .tf-homepage .curated-b2b-market{
    min-height:0!important;
    max-height:none!important;
  }
}

@media(max-width:820px){
  .tf-homepage .curated-b2b-placeholder{
    min-height:0!important;
    max-height:none!important;
  }
}

@media(max-width:820px){
  .tf-homepage .curated-b2b-rail{
    min-height:0!important;
    max-height:none!important;
  }
}
