/* NABWORK v35 — screenshot-led mobile discovery, 2026-10-25.
   Scope: phone homepage ONLY. Existing catalog routes and desktop unaffected.
   Direction cards are editorial discovery shortcuts, not fabricated gigs. */
.nw-v35-hero-description,.nw-v35-hero-illustration,.nw-v35-cat-sub,.nw-v35-mobile-only{display:none}
.nw-v35-cat-copy{display:contents}
@media (max-width:600px){
  /* Compact airy hero with a real decorative illustration, using original search. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero{
    position:relative!important;isolation:isolate;
    background:linear-gradient(135deg,#f8fcff 0%,#eaf5ff 76%,#f8fcff 100%)!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero-grid{
    position:relative!important;width:calc(100% - 36px)!important;
    padding:28px 0 24px!important;overflow:hidden!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero-copy{
    position:relative!important;isolation:isolate;z-index:1!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero-copy:before{
    content:"";position:absolute;right:-64px;top:7px;width:255px;height:233px;
    background:radial-gradient(circle,#c9e6ff 0%,rgba(209,236,255,.6) 48%,transparent 72%);
    z-index:-2;pointer-events:none;
  }
  #homeView:not(.nw-v26-catalog-mode) #heroTitle{
    position:relative!important;z-index:2;
    margin:0 0 11px!important;
    font-size:clamp(21px,5.9vw,26px)!important;
    line-height:1.34!important;letter-spacing:-.038em!important;
    text-align:left!important;max-width:100%!important;
  }
  #homeView:not(.nw-v26-catalog-mode) #heroTitle .nw-v33-mobile-headline{
    display:block!important;max-width:100%!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v35-hero-description{
    position:relative!important;z-index:2;
    display:block!important;max-width:64%!important;
    margin:0 0 44px!important;color:#61758d!important;
    font-size:clamp(11px,3.05vw,12.3px)!important;
    line-height:1.65!important;font-weight:550!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v35-hero-illustration{
    display:block!important;position:absolute!important;pointer-events:none!important;
    z-index:1!important;right:-3px!important;top:53px!important;
    width:min(46%,176px)!important;height:auto!important;
    max-height:188px!important;object-fit:contain!important;
    filter:drop-shadow(0 8px 14px rgba(39,108,174,.08));
  }
  #homeView:not(.nw-v26-catalog-mode) .nab-premium-search{
    position:relative!important;z-index:3!important;
    border-radius:17px!important;border:1px solid #e0eaf5!important;
    box-shadow:0 7px 20px rgba(28,79,132,.13)!important;
    min-height:56px!important;padding:5px!important;
    background:#fff!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nab-premium-search:before{
    content:"⌕";flex:0 0 auto;display:flex;align-items:center;
    justify-content:center;color:#647b97;width:27px;height:40px;
    font-family:Arial,sans-serif;font-size:29px;font-weight:400;
  }
  #homeView:not(.nw-v26-catalog-mode) #searchInput{
    padding:8px 6px!important;font-size:clamp(12px,3.2vw,14px)!important;
    min-width:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) #searchBtn{
    border-radius:13px!important;
    background:linear-gradient(125deg,#148df1,#0868e9)!important;
    font-size:12px!important;
    padding:0 13px!important;
    box-shadow:0 5px 12px rgba(5,100,224,.16)!important;
  }

  /* Two-column 2x2 category chooser. The rest remain available through catalog. */
  #homeView:not(.nw-v26-catalog-mode) .nab-premium-categories{
    width:calc(100% - 36px)!important;
    padding:23px 0 8px!important;margin:0 auto!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nab-cat-intro{
    display:flex!important;flex-direction:row!important;
    align-items:center!important;justify-content:space-between!important;
    gap:8px!important;margin:0 0 14px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nab-cat-intro > div:first-child{
    flex:1 1 auto!important;min-width:0!important;width:auto!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nab-cat-intro h2{
    font-size:clamp(16px,4.7vw,21px)!important;
    letter-spacing:-.03em!important;white-space:nowrap!important;
    line-height:1.36!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nab-cat-intro .nw-v6-all-cat{
    display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;
    flex:0 0 auto!important;align-self:auto!important;width:auto!important;
    min-height:32px!important;border:0!important;
    border-radius:0!important;padding:4px 0!important;
    background:transparent!important;box-shadow:none!important;
    color:#087bde!important;font-size:11px!important;font-weight:800!important;
    white-space:nowrap!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v35-mobile-only{display:inline!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-v35-desktop-only{display:none!important}
  #homeView:not(.nw-v26-catalog-mode) .nab-category-rail.nw-v30-category-rail{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;grid-auto-rows:1fr!important;
    width:100%!important;max-width:100%!important;
    gap:10px!important;overflow:visible!important;
    padding:0!important;margin:0!important;scroll-snap-type:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nab-category-rail.nw-v30-category-rail > button:nth-child(n+5){
    display:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nab-category-rail.nw-v30-category-rail > button{
    display:flex!important;flex:none!important;
    flex-direction:row!important;align-items:center!important;
    justify-content:flex-start!important;position:relative!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:auto!important;min-height:86px!important;
    padding:11px 8px 11px 9px!important;gap:8px!important;
    border:1px solid #edf1f8!important;border-radius:16px!important;
    box-shadow:0 5px 18px rgba(17,79,142,.07)!important;
    background:#fff!important;white-space:normal!important;text-align:left!important;
    scroll-snap-align:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-category-rail .nw-v6-cat-icon{
    flex:0 0 39px!important;min-width:39px!important;
    width:39px!important;height:43px!important;border-radius:12px!important;
    margin:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v35-cat-copy{
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    gap:3px!important;min-width:0!important;flex:1 1 0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-category-rail .nw-v6-cat-label{
    display:block!important;font-size:clamp(10.8px,2.8vw,12.7px)!important;
    line-height:1.27!important;letter-spacing:-.018em!important;
    font-weight:850!important;color:#172f50!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v35-cat-sub{
    display:block!important;color:#788ba3!important;
    font-size:clamp(9px,2.35vw,10.2px)!important;
    line-height:1.25!important;font-weight:530!important;
    overflow-wrap:normal!important;word-break:normal!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-category-rail>button:after{
    content:"›";position:absolute;right:4px;top:50%;transform:translateY(-50%);
    color:#8fa1b6;font-family:Arial,sans-serif;font-size:19px;
    pointer-events:none;opacity:.85;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-category-rail .nw-v35-cat-copy{
    padding-right:5px!important;
  }

  /* Photo-style service direction cards, in two balanced columns. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular{
    width:calc(100% - 36px)!important;max-width:100%!important;
    margin:19px auto 22px!important;padding:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-head{
    display:flex!important;flex-direction:row!important;
    align-items:center!important;justify-content:space-between!important;
    gap:8px!important;margin:0 0 14px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-head>div{
    flex:1 1 auto!important;width:auto!important;min-width:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular h2{
    font-size:clamp(17px,4.75vw,22px)!important;
    white-space:nowrap!important;
    line-height:1.34!important;margin:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-all{
    display:inline-flex!important;align-items:center!important;
    flex:0 0 auto!important;align-self:center!important;
    border:0!important;border-radius:0!important;
    background:transparent!important;padding:5px 0!important;
    box-shadow:none!important;color:#097cdc!important;
    min-height:32px!important;font-size:11px!important;font-weight:800!important;
    white-space:nowrap!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:stretch!important;grid-auto-flow:row!important;
    width:100%!important;max-width:100%!important;gap:12px!important;
    margin:0!important;padding:0 0 8px!important;
    overflow:visible!important;scroll-snap-type:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-card{
    display:flex!important;flex:none!important;flex-direction:column!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    min-height:0!important;height:100%!important;
    border-radius:16px!important;border:1px solid #e7edf6!important;
    background:#fff!important;overflow:hidden!important;
    padding:0!important;box-shadow:0 8px 20px rgba(15,65,118,.08)!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-picture{
    display:block!important;flex:none!important;
    width:100%!important;height:auto!important;aspect-ratio:1.44!important;
    border-radius:0!important;padding:0!important;background:#e6f1fc!important;
    overflow:hidden!important;min-height:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-picture picture{display:contents!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-picture img{
    display:block!important;width:100%!important;height:100%!important;
    border-radius:0!important;object-fit:cover!important;max-width:100%!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-info{
    display:flex!important;flex-direction:column!important;
    align-items:flex-start!important;justify-content:flex-start!important;
    flex:1 1 auto!important;gap:5px!important;
    min-height:89px!important;padding:10px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-name{
    font-size:clamp(11.1px,3vw,13px)!important;line-height:1.3!important;
    font-weight:870!important;color:#172f50!important;
    text-wrap:pretty!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-description{
    display:block!important;margin:0!important;
    font-size:clamp(9.6px,2.5vw,11px)!important;
    line-height:1.42!important;color:#74839a!important;
    overflow-wrap:break-word!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-arrow{
    right:9px!important;bottom:8px!important;width:22px!important;height:22px!important;
    font-size:15px!important;
  }
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) .nw-v35-hero-description{color:#d5e4f6!important}
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) .nab-category-rail.nw-v30-category-rail > button,
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-card{
    background:#223850!important;border-color:#365472!important;
  }
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) .nw-v30-category-rail .nw-v6-cat-label,
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-name{color:#f1f7ff!important}
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) .nw-v35-cat-sub,
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-description{color:#b1c2d6!important}
}
@media(max-width:359px){
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero-grid,
  #homeView:not(.nw-v26-catalog-mode) .nab-premium-categories,
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular{width:calc(100% - 24px)!important}
  #homeView:not(.nw-v26-catalog-mode) #heroTitle{font-size:20px!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-v35-hero-illustration{width:43%!important;right:-10px!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-v35-hero-description{max-width:63%!important;font-size:10.3px!important}
  #homeView:not(.nw-v26-catalog-mode) .nab-category-rail.nw-v30-category-rail{gap:8px!important}
  #homeView:not(.nw-v26-catalog-mode) .nab-category-rail.nw-v30-category-rail>button{
    gap:6px!important;padding:9px 5px!important;min-height:90px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-category-rail .nw-v6-cat-icon{
    flex-basis:33px!important;min-width:33px!important;width:33px!important;height:37px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-category-rail .nw-v6-cat-label{font-size:10.1px!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-v35-cat-sub{font-size:9px!important}
  #homeView:not(.nw-v26-catalog-mode) .nab-cat-intro h2,
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular h2{font-size:16px!important}
  #homeView:not(.nw-v26-catalog-mode) .nab-cat-intro .nw-v6-all-cat,
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-all{font-size:10px!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid{gap:9px!important}
}
@media(prefers-reduced-motion:reduce){
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-card,
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-category-rail>button{transition:none!important}
}
