/* NABWORK v37 — two independent category rails, visible next-card peek,
   and precise screenshot-inspired hero image. Mobile home view only. */
.nw-v37-mobile-rows{display:none}
@media (max-width:600px){
  html.nw-v37-rails-ready #homeView:not(.nw-v26-catalog-mode) .nab-premium-categories > .nab-category-rail.nw-v30-category-rail{
    display:none!important;
  }
  html.nw-v37-rails-ready #homeView:not(.nw-v26-catalog-mode) .nw-v37-mobile-rows{
    display:flex!important;flex-direction:column!important;
    gap:10px!important;
    width:100%!important;
    max-width:100%!important;
    padding:2px 0 8px!important;
    margin:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row{
    display:flex!important;flex-flow:row nowrap!important;
    width:100%!important;max-width:100%!important;
    gap:10px!important;margin:0!important;
    padding:2px 1px 8px!important;
    overflow-x:auto!important;overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    touch-action:auto;
    box-sizing:border-box!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row::-webkit-scrollbar{display:none}
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row>button{
    position:relative!important;
    display:flex!important;flex-flow:row nowrap!important;
    align-items:center!important;justify-content:flex-start!important;
    flex:0 0 clamp(128px,45%,172px)!important;
    width:clamp(128px,45%,172px)!important;
    max-width:172px!important;min-width:0!important;
    height:auto!important;min-height:86px!important;
    padding:10px 8px 10px 9px!important;
    gap:7px!important;
    border:1px solid #e7edf7!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 5px 15px rgba(17,79,142,.08)!important;
    color:#193554!important;
    text-align:left!important;
    white-space:normal!important;
    box-sizing:border-box!important;
    scroll-snap-align:start!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row>button:nth-child(2){--nw37-tint:#eee9ff;--nw37-color:#775ae1}
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row>button:nth-child(3){--nw37-tint:#d9fbf5;--nw37-color:#08a3b1}
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row>button:nth-child(4){--nw37-tint:#fff0e6;--nw37-color:#ec8941}
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v6-cat-icon{
    display:grid!important;place-items:center!important;
    flex:0 0 35px!important;width:35px!important;min-width:35px!important;
    height:39px!important;border-radius:11px!important;
    background:var(--nw37-tint,#e4f3ff)!important;
    color:var(--nw37-color,#167fce)!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v6-cat-icon svg{
    width:21px!important;height:21px!important;stroke:currentColor!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v35-cat-copy{
    display:flex!important;flex-direction:column!important;justify-content:center!important;
    flex:1 1 auto!important;min-width:0!important;gap:3px!important;
    padding-right:5px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v6-cat-label{
    display:block!important;min-width:0!important;
    color:#173554!important;font-weight:840!important;
    font-size:clamp(10.1px,2.85vw,12.1px)!important;
    line-height:1.3!important;white-space:normal!important;
    overflow-wrap:break-word!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v35-cat-sub{
    display:block!important;font-size:clamp(9px,2.4vw,10.2px)!important;
    font-weight:520!important;line-height:1.3!important;color:#7b8da2!important;
    overflow-wrap:break-word!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row>button:after{
    content:'›';position:absolute;right:4px;top:50%;transform:translateY(-50%);
    color:#8ca1b8;font:19px Arial,sans-serif;pointer-events:none;
  }
  /* Make the third featured card peek into view at common phone widths. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid>.nw-v30-popular-card{
    flex:0 0 clamp(125px,42%,168px)!important;
    width:clamp(125px,42%,168px)!important;max-width:168px!important;
    min-width:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid{
    gap:10px!important;
    padding-right:2px!important;
    scroll-snap-type:x proximity!important;
  }
  /* The raster asset is real and independently cached, not an invalid nested SVG image. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v35-hero-illustration{
    width:min(47%,181px)!important;max-height:190px!important;
    right:0!important;top:49px!important;
    background:transparent!important;
  }
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row>button{
    background:#223850!important;border-color:#365472!important;color:#edf7ff!important;
  }
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v6-cat-label{color:#edf7ff!important}
  body.dark-mode #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v35-cat-sub{color:#b9c9d9!important}
}
@media(max-width:359px){
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row{gap:8px!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row>button{
    flex-basis:clamp(126px,45%,150px)!important;
    width:clamp(126px,45%,150px)!important;
    padding:8px 5px 8px 7px!important;
    gap:5px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v6-cat-icon{
    flex-basis:32px!important;min-width:32px!important;width:32px!important;height:36px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v6-cat-label{font-size:10px!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid>.nw-v30-popular-card{
    flex-basis:125px!important;width:125px!important;
  }
}

/* v38: reinstate the approved sky/lilac/mint/peach icon tiles. */
@media (max-width:600px) {
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row > button {
    --nw38-soft:#e5f4ff;--nw38-ink:#0788d8;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row [data-nw-category-index="1"] {--nw38-soft:#eee9ff;--nw38-ink:#775ae1}
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row [data-nw-category-index="2"] {--nw38-soft:#d9fbf5;--nw38-ink:#08a3a2}
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row [data-nw-category-index="3"] {--nw38-soft:#fff0e6;--nw38-ink:#ec8941}
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row [data-nw-category-index="4"] {--nw38-soft:#ffecef;--nw38-ink:#ee6880}
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row [data-nw-category-index="5"] {--nw38-soft:#e8f2ff;--nw38-ink:#187acb}
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row [data-nw-category-index="6"] {--nw38-soft:#ddf9ed;--nw38-ink:#0dbe89}
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row [data-nw-category-index="7"] {--nw38-soft:#e9eeff;--nw38-ink:#506fcd}
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v6-cat-icon {
    width:41px!important;min-width:41px!important;flex-basis:41px!important;
    height:41px!important;border-radius:12px!important;
    background:var(--nw38-soft)!important;color:var(--nw38-ink)!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v6-cat-icon svg {
    width:24px!important;height:24px!important;
    stroke:currentColor!important;stroke-width:2!important;fill:none!important;
    stroke-linecap:round!important;stroke-linejoin:round!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v35-hero-illustration {
    width:min(44%,170px)!important;
    height:auto!important;
    max-height:194px!important;
    top:47px!important;
    right:0!important;
    object-fit:contain!important;
    filter:none!important;
  }
}
