/* NABWORK 27: premium mobile-only refinement.
   Keeps logo/identity, auth triggers, category routes and desktop layout unchanged.
   Visual hamburger is smaller while its hit-target stays >=44px via ::after. */
@media (max-width:600px){
  /* Header: more airy, calmer blue, consistent height and clear focus states. */
  .nab-header .nab30-header-inner{
    padding-right:52px!important;
    gap:7px!important;
  }
  .nab-header #userNavArea > button{
    min-height:37px!important;
    height:37px!important;
    padding:0 13px!important;
    border-radius:11px!important;
    border:1px solid rgba(2,91,168,.55)!important;
    background:linear-gradient(118deg,#087fda 0%,#066ec8 100%)!important;
    box-shadow:0 5px 13px rgba(5,119,205,.17),inset 0 1px rgba(255,255,255,.16)!important;
    color:#fff!important;
    font-size:11.5px!important;
    font-weight:850!important;
    letter-spacing:.005em!important;
    transition:background .18s ease,box-shadow .18s ease,transform .18s ease!important;
  }
  .nab-header #userNavArea > button:active{
    transform:scale(.97)!important;
    box-shadow:0 2px 7px rgba(5,119,205,.13)!important;
  }
  .nab-header #nab29MobileToggle{
    right:10px!important;
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0!important;
    border-radius:10px!important;
    background:linear-gradient(145deg,#f4fbff,#e7f5ff)!important;
    border:1px solid #cce4f5!important;
    box-shadow:0 3px 9px rgba(18,100,160,.055)!important;
    color:#14649b!important;
  }
  .nab-header #nab29MobileToggle::before{
    content:"☰"!important;
    font-size:17px!important;
    font-weight:500!important;
    line-height:1!important;
  }
  .nab-header #nab29MobileToggle::after{
    content:""!important;
    position:absolute;
    inset:-5px;
    border-radius:13px;
  }
  .nab-header #nab29MobileToggle[aria-expanded="true"]{
    background:linear-gradient(145deg,#e6f5ff,#cceafe)!important;
    border-color:#9bcced!important;
  }
  .nab-header #nab29MobileToggle[aria-expanded="true"]::before{
    content:"×"!important;font-size:24px!important;
  }
  .nab-header #userNavArea > button:focus-visible,
  .nab-header #nab29MobileToggle:focus-visible{
    outline:3px solid #0a84e8!important;
    outline-offset:3px!important;
  }
  /* Existing signed-in dashboard and signout are intentionally untouched. */
  /* Six category shortcuts: coordinated sky-blue rounded editorial cards. */
  #homeView .nab-category-rail{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:11px!important;
    padding:3px 1px 10px!important;
    overflow:visible!important;
  }
  #homeView .nab-category-rail > button{
    --nw27-tint:#dff3ff;
    --nw27-ink:#087cbd;
    position:relative!important;
    isolation:isolate;
    min-height:128px!important;
    padding:13px 13px 12px!important;
    border:1px solid #d8eaf7!important;
    border-radius:18px!important;
    background:
      radial-gradient(ellipse at 105% -10%,var(--nw27-tint),transparent 70%),
      linear-gradient(145deg,#fff 30%,#f8fcff 100%)!important;
    box-shadow:0 7px 18px rgba(21,93,157,.065),inset 0 1px 1px rgba(255,255,255,.95)!important;
    color:#173757!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    flex-direction:column!important;
    gap:7px!important;
    white-space:normal!important;
    text-align:left!important;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
    -webkit-tap-highlight-color:transparent;
  }
  #homeView .nab-category-rail > button:nth-child(2){--nw27-tint:#d4f9ee;--nw27-ink:#058c8d}
  #homeView .nab-category-rail > button:nth-child(3){--nw27-tint:#eee6ff;--nw27-ink:#7662cc}
  #homeView .nab-category-rail > button:nth-child(4){--nw27-tint:#e1efff;--nw27-ink:#3578cf}
  #homeView .nab-category-rail > button:nth-child(5){--nw27-tint:#ffeaf2;--nw27-ink:#c36b90}
  #homeView .nab-category-rail > button:nth-child(6){--nw27-tint:#e3f3ff;--nw27-ink:#3889c5}
  #homeView .nab-category-rail > button:hover,
  #homeView .nab-category-rail > button:focus-visible{
    transform:translateY(-2px)!important;
    border-color:#92c9ef!important;
    box-shadow:0 11px 25px rgba(13,105,178,.12)!important;
  }
  #homeView .nab-category-rail > button:active{transform:scale(.98)!important}
  #homeView .nab-category-rail .nw-v6-cat-icon{
    display:grid!important;
    place-items:center!important;
    width:42px!important;
    height:42px!important;
    flex:0 0 42px!important;
    border-radius:14px!important;
    background:color-mix(in srgb,var(--nw27-tint) 84%,white)!important;
    color:var(--nw27-ink)!important;
    font-size:20px!important;
    line-height:1!important;
    box-shadow:inset 0 1px 1px rgba(255,255,255,.85);
  }
  #homeView .nab-category-rail .nw-v6-cat-label{
    display:block!important;
    max-width:100%!important;
    color:#16385c!important;
    font-size:clamp(12px,3.15vw,13.2px)!important;
    line-height:1.45!important;
    font-weight:820!important;
    letter-spacing:-.02em!important;
    overflow-wrap:anywhere!important;
  }
  #homeView .nab-category-rail .nw-v6-cat-more{
    display:grid!important;
    place-items:center!important;
    position:absolute!important;
    right:12px!important;
    bottom:12px!important;
    width:27px!important;
    height:27px!important;
    border:1px solid #daecfa!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#087ac6!important;
    font-size:16px!important;
    line-height:1!important;
  }
  #homeView .nab-category-rail > button.cat-btn.bg-slate-900{
    border-color:#9acfed!important;
    background:linear-gradient(145deg,#ecf9ff,#dbf2ff)!important;
  }
  /* Small category links within hero are polished pills, not bulky blocks. */
  #homeView .nw-v6-hero .nw-v17-chip-track{
    gap:7px!important;
    padding:2px 2px 8px!important;
  }
  #homeView .nw-v6-hero .nw-v17-chip-track > button{
    min-height:34px!important;
    padding:7px 11px!important;
    font-size:10.5px!important;
    font-weight:750!important;
    border-radius:999px!important;
    border:1px solid #d3e8f7!important;
    background:linear-gradient(180deg,#fff,#f6fbff)!important;
    box-shadow:0 2px 7px rgba(22,104,172,.055)!important;
    color:#225775!important;
  }
  /* On the separate services page, category filters should share the aesthetic. */
  #homeView .nw-v26-catalog-choices{
    gap:8px!important;
    padding-bottom:12px!important;
  }
  #homeView .nw-v26-choice{
    min-height:39px!important;
    padding:11px 15px!important;
    border-radius:13px!important;
    background:linear-gradient(145deg,#fff,#f5fbff)!important;
    border:1px solid #cde5f4!important;
    color:#145a88!important;
    box-shadow:0 3px 9px rgba(15,103,176,.05)!important;
    font-size:11.5px!important;
    font-weight:800!important;
  }
  #homeView .nw-v26-choice[aria-current="true"]{
    background:linear-gradient(118deg,#087edb,#0569c5)!important;
    color:#fff!important;
    border-color:#0572cf!important;
    box-shadow:0 5px 11px rgba(13,119,206,.17)!important;
  }
  body.dark-mode .nab-header #userNavArea > button {
    background:linear-gradient(115deg,#087edb,#0661b6)!important;
    color:white!important;
  }
  body.dark-mode .nab-header #nab29MobileToggle {
    background:#1a3a5a!important;
    color:#def6ff!important;
    border-color:#42759b!important;
  }
  body.dark-mode #homeView .nab-category-rail > button{
    background:linear-gradient(140deg,#213f58,#1d344d)!important;
    border-color:#3f6783!important;
    color:#e8f7ff!important;
  }
  body.dark-mode #homeView .nab-category-rail .nw-v6-cat-label{
    color:#f0faff!important;
  }
}
@media(max-width:365px){
  .nab-header .nab30-header-inner{padding-right:46px!important;gap:5px!important}
  .nab-header #nab29MobileToggle{width:32px!important;min-width:32px!important;height:32px!important;right:7px!important;}
  .nab-header #userNavArea > button{padding:0 9px!important;font-size:10.5px!important}
  #homeView .nab-category-rail{gap:9px!important}
  #homeView .nab-category-rail > button{min-height:121px!important;padding:11px!important}
  #homeView .nab-category-rail .nw-v6-cat-label{font-size:11.7px!important}
}
@media (prefers-reduced-motion:reduce){
  #homeView .nab-category-rail > button,
  .nab-header #userNavArea > button {transition:none!important}
}
