/* NABWORK v64: reference layout, 100% NABWORK content and original artwork.
   Mobile ONLY. Original city photo & hero title and actual Discover More cards
   are NOT restyled, replaced or overlaid here.
 */
@media (max-width:600px) {
  /* Exactly the reference's header rhythm: menu / centered brand / login.
     The language toggle stays functional INSIDE the existing menu. */
  .nab-header .nab30-header-inner {
    display:grid!important;
    grid-template-areas:"menu brand account"!important;
    grid-template-columns:42px minmax(0,1fr) 86px!important;
    grid-template-rows:52px!important;
    align-items:center!important;
    justify-items:stretch!important;
    column-gap:7px!important;
    row-gap:0!important;
    width:100%!important;
    min-height:66px!important;
    height:auto!important;
    max-width:100%!important;
    padding:7px 13px!important;
    box-sizing:border-box!important;
  }
  .nab-header .nab30-leading {
    grid-area:brand!important;
    display:flex!important;justify-content:center!important;align-items:center!important;
    width:100%!important;max-width:100%!important;min-width:0!important;gap:0!important;
  }
  .nab-header .nab30-leading > button {
    display:flex!important;justify-content:center!important;
    align-items:center!important;min-width:0!important;
    width:auto!important;max-width:100%!important;margin:0!important;
    padding:0!important;
  }
  .nab-header .nabwork-exact-header-logo {
    display:block!important;
    width:clamp(122px,37vw,152px)!important;
    max-width:100%!important;height:auto!important;
    object-fit:contain!important;
  }
  /* Keep the original desktop language button/JS; simply hide the
     separate header tools and access EN/KA via the mobile dropdown. */
  .nab-header .nab30-controls {display:none!important;}
  .nab-header .nab30-account {
    grid-area:account!important;
    display:flex!important;align-items:center!important;justify-content:flex-end!important;
    justify-self:stretch!important;align-self:center!important;
    width:86px!important;max-width:86px!important;min-width:0!important;
    min-height:41px!important;margin:0!important;padding:0!important;
    border:0!important;
  }
  .nab-header .nab30-account > button {
    min-width:0!important;width:85px!important;max-width:85px!important;
    min-height:41px!important;height:41px!important;
    padding:0 6px!important;
    background:#101b32!important;color:#fff!important;
    border-radius:11px!important;
    font-size:12px!important;font-weight:820!important;
    box-shadow:none!important;
  }
  .nab-header .nab30-account > div {
    width:100%!important;max-width:100%!important;
    min-width:0!important;justify-content:flex-end!important;
  }
  .nab-header .nab30-account > div > button:first-child {
    width:42px!important;min-width:42px!important;max-width:42px!important;
    height:41px!important;min-height:41px!important;
  }
  .nab-header .nab-mobile-navigation {
    grid-area:menu!important;
    position:static!important;display:flex!important;
    width:42px!important;min-width:42px!important;max-width:42px!important;
    height:42px!important;min-height:42px!important;max-height:42px!important;
    justify-self:start!important;align-self:center!important;
    justify-content:center!important;align-items:center!important;
    padding:0!important;margin:0!important;
    border:0!important;background:transparent!important;
  }
  .nab-header #nab29MobileToggle {
    position:static!important;inset:auto!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:42px!important;min-width:42px!important;max-width:42px!important;
    height:42px!important;min-height:42px!important;max-height:42px!important;
    padding:0!important;margin:0!important;
    border:0!important;border-radius:10px!important;
    background:transparent!important;color:#18202e!important;
    box-shadow:none!important;transform:none!important;
  }
  .nab-header #nab29MobileToggle[aria-expanded="true"]{
    color:#0c56b4!important;background:#edf5ff!important;border-color:transparent!important;
  }
  .nab-header #nab29MobileToggle svg {width:25px!important;height:25px!important;flex-basis:25px!important;}
  .nab-header #mobileMenu {
    position:absolute!important;
    top:calc(100% + 5px)!important;
    left:12px!important;right:12px!important;
    width:calc(100% - 24px)!important;max-width:420px!important;
    margin:0 auto!important;
    max-height:calc(100dvh - 88px - env(safe-area-inset-bottom,0px))!important;
    overflow-y:auto!important;
    z-index:23!important;
  }
  .nab-header #mobileMenu.hidden {display:none!important;}
  .nab-header #mobileMenu:not(.hidden){display:grid!important;}
  .nab-header #mobileMenu #nab64MenuLanguage{
    color:#0b4e9c!important;border-color:#d6e9fc!important;
    background:#eff7ff!important;
  }

  /* Remove the TWO hero CTAs above categories — the approved hero photo,
     exact heading and search are not changed. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-mobile-actions,
  #homeView:not(.nw-v26-catalog-mode) .nw-v53-mobile-shortcuts {
    display:none!important;
  }

  /* Six original black illustrations in 3 columns / 2 rows, exactly as
     the reference structure: ICON CARD on top, BLACK LABEL below. */
  #homeView:not(.nw-v26-catalog-mode) .nab-premium-categories {
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:600px!important;
    margin:0 auto!important;
    padding:24px 16px 20px!important;
    background:#fff!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nab-premium-categories .nab-cat-intro {
    display:none!important;
  }
  html.nw-v64-categories-ready #homeView:not(.nw-v26-catalog-mode) .nab-premium-categories .nab-category-rail,
  html.nw-v64-categories-ready #homeView:not(.nw-v26-catalog-mode) .nab-premium-categories .nw-v37-mobile-rows,
  #homeView:not(.nw-v26-catalog-mode) .nab-premium-categories .nw-v48-category-grid {
    display:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-category-shell {
    display:block!important;width:100%!important;max-width:100%!important;
    margin:0!important;padding:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-category-grid {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:20px 14px!important;
    width:100%!important;
    align-items:start!important;
    justify-items:stretch!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-cat-item {
    display:flex!important;flex-direction:column!important;
    align-items:center!important;justify-content:flex-start!important;
    width:100%!important;min-width:0!important;
    margin:0!important;padding:0!important;
    border:0!important;background:transparent!important;
    color:#202020!important;cursor:pointer!important;
    font:inherit;text-decoration:none!important;text-align:center!important;
    box-shadow:none!important;
    transition:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-cat-item[hidden] {display:none!important;}
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-cat-tile {
    box-sizing:border-box!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;aspect-ratio:1/1!important;
    max-height:128px!important;
    padding:19px!important;margin:0!important;
    background:#fff!important;
    border:1px solid #edf0f3!important;
    border-radius:19px!important;
    box-shadow:0 4px 14px rgba(16,24,40,.10)!important;
    color:#1f2023!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-cat-tile svg {
    width:39px!important;height:39px!important;
    max-width:100%!important;max-height:100%!important;
    fill:none!important;stroke:#242424!important;
    color:#242424!important;stroke-width:1.6!important;
    stroke-linecap:round!important;stroke-linejoin:round!important;
    filter:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-cat-label {
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;min-width:0!important;
    margin-top:11px!important;padding:0 1px!important;
    color:#202024!important;
    font-size:clamp(10.8px,3vw,12.5px)!important;
    font-weight:780!important;line-height:1.35!important;
    letter-spacing:-.01em!important;
    white-space:normal!important;overflow-wrap:normal!important;
    text-align:center!important;
    text-shadow:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-cat-item:focus-visible .nw-v64-cat-tile,
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-cat-item:hover .nw-v64-cat-tile{
    outline:2px solid #88b5f5!important;outline-offset:2px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-show-more {
    display:flex!important;align-items:center!important;justify-content:center!important;
    gap:8px!important;
    width:100%!important;min-height:47px!important;
    margin:24px 0 0!important;padding:10px 4px 1px!important;
    border:0!important;border-top:1px solid #e1e4e8!important;
    border-radius:0!important;background:transparent!important;
    font-size:13px!important;font-weight:820!important;
    line-height:1.35!important;color:#25292e!important;
    cursor:pointer!important;box-shadow:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-more-chevron{
    display:inline-block!important;font-size:20px!important;line-height:1!important;
    transition:transform .16s ease!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-show-more[aria-expanded="true"] .nw-v64-more-chevron{
    transform:rotate(180deg)!important;
  }

  /* Preserve Discover More's own cards, original photographs, real prices,
     and existing swipe. Absolutely NO rules target .nw-v30-popular or v60 cards. */

  /* Replace older carousel-and-blue-block explanation with 4 ORIGINAL
     NABWORK editorial rows in the reference's vertical rhythm. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v56-benefits,
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-steps-row,
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-bottom-strip,
  #homeView:not(.nw-v26-catalog-mode) .nw-how-section {
    display:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-how {
    display:block!important;box-sizing:border-box!important;
    width:100%!important;max-width:600px!important;
    margin:0 auto!important;padding:24px 18px 33px!important;
    background:#fff!important;color:#20232b!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-how h2 {
    margin:0 0 24px!important;padding:0!important;
    font-size:clamp(20px,5.3vw,24px)!important;
    font-weight:900!important;line-height:1.32!important;
    color:#1d242e!important;letter-spacing:-.025em!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-how-list {
    display:flex!important;flex-direction:column!important;
    gap:25px!important;margin:0!important;padding:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-how-row {
    display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;
    gap:14px!important;align-items:start!important;
    min-width:0!important;margin:0!important;padding:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-how-icon {
    display:grid!important;place-items:center!important;
    width:44px!important;height:44px!important;
    border-radius:12px!important;background:#edf5ff!important;
    color:#122e52!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-how-icon svg {
    display:block!important;
    width:27px!important;height:27px!important;
    stroke:#193753!important;fill:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-how-text {
    display:flex!important;flex-direction:column!important;gap:5px!important;
    width:100%!important;min-width:0!important;margin:0!important;padding:1px 0 0!important;
    color:#53616f!important;text-align:left!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-how-text strong {
    font-size:14px!important;line-height:1.38!important;
    font-weight:860!important;color:#1b2738!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-how-text > span {
    font-size:12px!important;line-height:1.65!important;
    font-weight:470!important;color:#556477!important;
    overflow-wrap:anywhere!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-join {
    display:flex!important;align-items:center!important;justify-content:center!important;
    gap:12px!important;width:100%!important;
    margin:31px 0 0!important;padding:14px 18px!important;
    min-height:53px!important;border:0!important;
    border-radius:12px!important;background:#066be7!important;
    color:#fff!important;box-shadow:0 8px 18px rgba(3,90,196,.15)!important;
    font-size:15px!important;font-weight:900!important;line-height:1.35!important;
    cursor:pointer!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-join > span {
    margin-left:auto!important;font-size:20px!important;line-height:1!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-join::before {
    content:"";width:17px;height:1px;display:block;flex:0 0 17px;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-join:focus-visible,
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-show-more:focus-visible{
    outline:3px solid #80b4ef!important;outline-offset:3px!important;
  }

  /* Restore the ORIGINAL labelled NABWORK AI launcher, not a tiny circle. */
  #nabPaidAi:not(.nab-ai-open) {
    right:12px!important;
    bottom:calc(73px + env(safe-area-inset-bottom,0px))!important;
  }
  #nabPaidAi:not(.nab-ai-open) #nabAiLaunch {
    display:flex!important;align-items:center!important;justify-content:center!important;
    gap:7px!important;
    width:auto!important;height:47px!important;
    min-width:130px!important;min-height:47px!important;max-width:170px!important;
    padding:9px 14px!important;
    border-radius:999px!important;
    background:#0769d9!important;color:#fff!important;
    font-size:12px!important;font-weight:830!important;line-height:1.2!important;
    white-space:nowrap!important;
  }
  #nabPaidAi:not(.nab-ai-open) #nabAiLaunch .nab-ai-paid-spark {
    display:inline!important;font-size:20px!important;line-height:1!important;
  }
  #homeView.nw-v26-catalog-mode .nw-v64-how {display:none!important;}
}
@media(max-width:359px) {
  .nab-header .nab30-header-inner {
    grid-template-columns:38px minmax(0,1fr) 72px!important;
    padding-inline:9px!important;column-gap:3px!important;
  }
  .nab-header .nabwork-exact-header-logo {width:clamp(109px,36vw,132px)!important;}
  .nab-header .nab30-account{width:72px!important;max-width:72px!important;}
  .nab-header .nab30-account > button {width:72px!important;max-width:72px!important;font-size:11px!important;}
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-category-grid{gap:18px 10px!important;}
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-cat-tile{padding:15px!important;border-radius:16px!important;}
  #homeView:not(.nw-v26-catalog-mode) .nw-v64-cat-label{font-size:10.5px!important;}
}
@media (prefers-reduced-motion:reduce) {
  #homeView .nw-v64-more-chevron{transition:none!important;}
}
