/* NABWORK 32 — compact discovery on phones only.
   Extends existing v30/v31 with smaller, horizontally swipeable *existing*
   category and popular direction cards. No new content, no desktop changes. */
@media (max-width:600px) {
  #homeView .nab-premium-categories {
    padding-top:16px!important;
    padding-bottom:5px!important;
  }
  #homeView .nab-cat-intro {
    display:block!important;
    margin-bottom:11px!important;
  }
  /* These repeat actions/labels already offered nearby on the mobile home. */
  #homeView .nab-cat-intro > div:first-child > p,
  #homeView .nab-cat-intro .nw-v6-all-cat {
    display:none!important;
  }
  #homeView .nab-cat-intro h2 {
    display:block!important;
    font-size:clamp(19px,5.2vw,22px)!important;
    line-height:1.27!important;
    letter-spacing:-.025em!important;
    max-width:100%!important;
    text-wrap:balance;
  }

  /* Eight existing category buttons in a single compact swipe row. */
  #homeView .nab-category-rail.nw-v30-category-rail {
    display:flex!important;
    flex-flow:row nowrap!important;
    grid-template-columns:none!important;
    grid-auto-rows:auto!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:2px 1px 13px!important;
    gap:10px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x proximity;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    box-sizing:border-box!important;
  }
  #homeView .nab-category-rail.nw-v30-category-rail::-webkit-scrollbar {
    display:none;
  }
  #homeView .nab-category-rail.nw-v30-category-rail > button {
    flex:0 0 clamp(138px,38vw,158px)!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    width:clamp(138px,38vw,158px)!important;
    max-width:158px!important;
    min-width:0!important;
    height:119px!important;
    min-height:119px!important;
    padding:12px!important;
    gap:9px!important;
    border-radius:16px!important;
    scroll-snap-align:start;
    white-space:normal!important;
    box-sizing:border-box!important;
  }
  #homeView .nab-category-rail.nw-v30-category-rail .nw-v6-cat-icon {
    display:grid!important;
    place-items:center!important;
    flex:0 0 37px!important;
    width:37px!important;
    height:37px!important;
    min-width:37px!important;
    border-radius:11px!important;
  }
  #homeView .nab-category-rail.nw-v30-category-rail .nw-v6-cat-icon svg {
    width:21px!important;
    height:21px!important;
  }
  #homeView .nab-category-rail.nw-v30-category-rail .nw-v6-cat-label {
    font-size:clamp(12px,3.25vw,13px)!important;
    font-weight:820!important;
    line-height:1.34!important;
    letter-spacing:-.017em!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
  }

  /* Keep all six existing illustrated services but stop the long vertical list. */
  #homeView .nw-v30-popular {
    margin-top:9px!important;
    margin-bottom:23px!important;
    padding-top:5px!important;
    padding-bottom:11px!important;
  }
  #homeView .nw-v30-popular-head {
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:9px!important;
    margin-bottom:12px!important;
  }
  #homeView .nw-v30-popular-kicker {
    display:none!important;
  }
  #homeView .nw-v30-popular h2 {
    font-size:clamp(21px,5.5vw,25px)!important;
    line-height:1.24!important;
    letter-spacing:-.032em!important;
    text-wrap:balance;
  }
  /* Retain the factual distinction between categories and real gigs,
     but only show a short two-line explanation on phones. */
  #homeView .nw-v30-popular-note {
    display:-webkit-box!important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden!important;
    margin:7px 0 0!important;
    max-width:100%!important;
    font-size:11px!important;
    line-height:1.45!important;
    color:#647c90!important;
  }
  #homeView .nw-v30-popular-all {
    min-height:35px!important;
    padding:8px 12px!important;
    font-size:10.7px!important;
    border-radius:11px!important;
  }
  #homeView .nw-v30-popular-grid {
    display:flex!important;
    flex-flow:row nowrap!important;
    grid-template-columns:none!important;
    justify-content:flex-start!important;
    align-items:stretch!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    gap:11px!important;
    margin:0!important;
    padding:2px 1px 15px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x proximity;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    box-sizing:border-box!important;
  }
  #homeView .nw-v30-popular-grid::-webkit-scrollbar {
    display:none;
  }
  #homeView .nw-v30-popular-card {
    display:flex!important;
    flex:0 0 clamp(205px,63vw,245px)!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    grid-template-columns:none!important;
    width:clamp(205px,63vw,245px)!important;
    max-width:245px!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    border-radius:16px!important;
    scroll-snap-align:start;
    box-sizing:border-box!important;
  }
  #homeView .nw-v30-popular-picture {
    display:block!important;
    flex:none!important;
    align-self:auto!important;
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    aspect-ratio:1.61!important;
    padding:6px!important;
    box-sizing:border-box!important;
  }
  #homeView .nw-v30-popular-picture img {
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:cover!important;
    border-radius:11px!important;
  }
  #homeView .nw-v30-popular-info {
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    width:100%!important;
    min-width:0!important;
    min-height:96px!important;
    height:auto!important;
    gap:5px!important;
    padding:11px 34px 13px 12px!important;
    box-sizing:border-box!important;
  }
  #homeView .nw-v30-popular-name {
    font-size:clamp(13.2px,3.5vw,14.2px)!important;
    line-height:1.35!important;
    letter-spacing:-.018em!important;
    font-weight:890!important;
    word-break:normal!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
  }
  #homeView .nw-v30-popular-description {
    display:-webkit-box!important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden!important;
    font-size:clamp(11px,2.9vw,12px)!important;
    font-weight:550!important;
    line-height:1.43!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
  }
  #homeView .nw-v30-popular-arrow {
    right:9px!important;
    bottom:10px!important;
    width:26px!important;
    height:26px!important;
    border-radius:50%!important;
    font-size:16px!important;
  }
}
@media (max-width:359px) {
  #homeView .nab-category-rail.nw-v30-category-rail > button {
    flex-basis:132px!important;
    width:132px!important;
    height:118px!important;
    min-height:118px!important;
    padding:11px!important;
  }
  #homeView .nab-category-rail.nw-v30-category-rail .nw-v6-cat-label {
    font-size:11.9px!important;
  }
  #homeView .nw-v30-popular-card {
    flex-basis:201px!important;
    width:201px!important;
  }
  #homeView .nw-v30-popular h2 {
    font-size:20px!important;
  }
}
@media (max-width:600px) and (hover:none) {
  #homeView .nab-category-rail.nw-v30-category-rail > button:hover,
  #homeView .nw-v30-popular-card:hover {
    transform:none!important;
  }
}
@media (max-width:600px) and (prefers-reduced-motion:reduce) {
  #homeView .nab-category-rail.nw-v30-category-rail,
  #homeView .nw-v30-popular-grid {
    scroll-behavior:auto!important;
  }
}
