/* NABWORK 33 — mobile conversion-first homepage.
   Designer's decision: shorten the mobile hero, keep the real search and the
   approved swipeable v32 category/popular cards; show the HOW steps as a rail.
   NOTHING visible on desktop (>=601px) is changed. No fake gig listings. */
@media (min-width:601px) {
  #homeView .nw-v33-mobile-headline,
  #homeView .nw-v33-mobile-cat-title,
  #homeView .nw-v33-mobile-popular-title { display:none!important; }
}
@media (max-width:600px) {
  /* The catalogue has its own route. This only simplifies the HOME landing. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero {
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    border-bottom:none!important;
    overflow:visible!important;
    background:linear-gradient(155deg,#f6fcff 0%,#edf8ff 74%,#f9fcff 100%)!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero-grid {
    display:block!important;
    width:calc(100% - 32px)!important;
    min-width:0!important;min-height:0!important;height:auto!important;
    margin:0 auto!important;
    padding:19px 0 14px!important;
    gap:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero-copy {
    display:block!important;
    width:100%!important;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
  }
  /* Full network orb, hero tagline, duplicated actions and 4 "live metrics"
     still exist for desktop and the rest of the app, but don't crowd phones. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero .nw-v6-eyebrow,
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero #heroSubtitle,
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero .nw-v6-hero-actions,
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero .nw-v6-chips,
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero .nw11-home-mobile-points,
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero .nw-v6-hero-art,
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero > .nw-v24-ray-field,
  #homeView:not(.nw-v26-catalog-mode) > .nw-v6-metrics {
    display:none!important;
  }
  #homeView .nw-v33-desktop-headline,
  #homeView .nw-v33-desktop-cat-title,
  #homeView .nw-v33-desktop-popular-title {display:none!important;}
  #homeView .nw-v33-mobile-headline,
  #homeView .nw-v33-mobile-cat-title,
  #homeView .nw-v33-mobile-popular-title {display:inline!important;}
  #homeView:not(.nw-v26-catalog-mode) #heroTitle {
    display:block!important;
    margin:0 0 13px!important;
    padding:0!important;
    max-width:100%!important;
    font-size:clamp(24px,6.55vw,30px)!important;
    line-height:1.26!important;
    letter-spacing:-.041em!important;
    font-weight:900!important;
    color:#10274b!important;
    text-wrap:balance;
    white-space:normal!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nab-premium-search {
    display:flex!important;
    align-items:center!important;
    width:100%!important;max-width:100%!important;
    min-width:0!important;
    min-height:53px!important;height:auto!important;
    margin:0!important;
    padding:4px!important;
    border-radius:15px!important;
    border:1px solid #cbe4f7!important;
    background:#fff!important;
    box-shadow:0 5px 16px rgba(16,87,160,.07)!important;
  }
  #homeView:not(.nw-v26-catalog-mode) #searchInput {
    display:block!important;flex:1 1 0!important;min-width:0!important;
    width:100%!important;
    height:43px!important;
    min-height:43px!important;
    padding:10px 11px!important;
    margin:0!important;
    font-size:16px!important;
    line-height:1.3!important;
    color:#1e466c!important;
    background:transparent!important;
  }
  #homeView:not(.nw-v26-catalog-mode) #searchBtn {
    flex:0 0 auto!important;
    height:43px!important;min-height:43px!important;
    padding:0 13px!important;
    border-radius:11px!important;
    font-size:12px!important;
    font-weight:800!important;
    line-height:1.2!important;
    box-shadow:none!important;
  }
  /* Keep v32 category tiles EXACTLY as approved (swipeable). Only their
     redundant intro is shortened; the cards/links are not re-styled. */
  #homeView:not(.nw-v26-catalog-mode) .nab-premium-categories {
    padding-top:11px!important;
    padding-bottom:3px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nab-cat-intro {
    margin-bottom:9px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nab-cat-intro h2 {
    font-size:clamp(18px,5vw,21px)!important;
    letter-spacing:-.025em!important;
    line-height:1.32!important;
    margin:0!important;
    font-weight:880!important;
  }
  /* Keep current six editorial artwork cards; remove mobile-only excess copy.
     Heading is intentionally not an unverified real-gig popularity ranking. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular {
    padding-top:2px!important;
    margin-top:5px!important;
    margin-bottom:15px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular h2 {
    font-size:clamp(20px,5.5vw,24px)!important;
    line-height:1.3!important;
    font-weight:890!important;
    margin:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-note,
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-all,
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-description {
    display:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-head {
    gap:0!important;
    margin-bottom:11px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-info {
    min-height:59px!important;
    padding:10px 33px 12px 12px!important;
    justify-content:center!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-name {
    font-size:clamp(13.2px,3.5vw,14.5px)!important;
  }

  /* Three genuine how-it-works steps in one horizontal touch-scroll row.
     Links/actions and step contents are original HTML, never fake promises. */
  #homeView:not(.nw-v26-catalog-mode) .nw-how-section {
    width:100%!important;
    max-width:100%!important;
    padding:4px 0 36px!important;
    margin:0!important;
    overflow:hidden!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-shell {
    width:calc(100% - 32px)!important;
    max-width:100%!important;
    margin:0 auto!important;
    padding:16px 0 16px!important;
    border:none!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:transparent!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-head {
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    margin:0 0 14px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-intro {
    flex:1 1 auto!important;
    min-width:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-eyebrow,
  #homeView:not(.nw-v26-catalog-mode) .nw-how-description,
  #homeView:not(.nw-v26-catalog-mode) .nw-how-actions {
    display:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-title {
    font-size:clamp(17.5px,4.75vw,21px)!important;
    font-weight:900!important;
    line-height:1.32!important;
    letter-spacing:-.025em!important;
    margin:0!important;
    max-width:100%!important;
    text-wrap:balance;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-more {
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:37px!important;
    padding:8px 10px!important;
    border:1px solid #c9e2f3!important;
    border-radius:12px!important;
    background:#fff!important;
    box-shadow:none!important;
    color:#0875be!important;
    font-size:11px!important;
    line-height:1.2!important;
    font-weight:780!important;
    white-space:nowrap!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-steps {
    display:flex!important;
    flex-flow:row nowrap!important;
    grid-template-columns:none!important;
    width:100%!important;max-width:100%!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:11px!important;
    padding:2px 0 14px!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;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-steps::-webkit-scrollbar{display:none}
  #homeView:not(.nw-v26-catalog-mode) .nw-how-card {
    display:flex!important;
    flex:0 0 clamp(205px,69vw,252px)!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    width:clamp(205px,69vw,252px)!important;
    max-width:252px!important;
    min-width:0!important;
    min-height:142px!important;
    height:auto!important;
    padding:15px!important;
    border-radius:16px!important;
    border:1px solid #ddeaf6!important;
    background:#fff!important;
    box-shadow:0 5px 16px rgba(8,87,162,.045)!important;
    scroll-snap-align:start;
    box-sizing:border-box!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-card .nab-step-number {
    display:grid!important;
    place-items:center!important;
    width:32px!important;height:32px!important;flex:0 0 32px!important;
    margin-bottom:11px!important;
    font-size:12px!important;
    font-weight:900!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-card-title {
    margin:0 0 6px!important;
    font-size:13.7px!important;
    line-height:1.37!important;
    font-weight:840!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-card-description {
    display:-webkit-box!important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden!important;
    margin:0!important;
    font-size:11.5px!important;
    line-height:1.45!important;
  }
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero{
    background:linear-gradient(120deg,#142a41,#1b394e)!important;
  }
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) #heroTitle {
    color:#f3faff!important;
  }
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) .nab-premium-search,
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) .nw-how-card {
    background:#233e56!important;border-color:#46677d!important;
  }
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) .nw-how-card-title,
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) .nw-how-title {
    color:#f4faff!important;
  }
}
@media (max-width:359px) {
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero-grid {
    width:calc(100% - 24px)!important;
    padding-top:15px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) #heroTitle {
    font-size:23px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) #searchBtn{padding:0 10px!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-how-card{flex-basis:205px!important;width:205px!important;}
}
@media (max-width:600px) and (hover:none) {
  #homeView .nw-how-card:hover {transform:none!important}
}
@media (max-width:600px) and (prefers-reduced-motion:reduce) {
  #homeView .nw-how-steps{scroll-behavior:auto!important}
}
