/* Toura Passport STAGING 016X6C — unified guest bottom-rail lock + returning guest continuity.
   Presentation/navigation only. Auth, Explorer engine, Marketplace, Community data,
   Member Journey, Partner Studio and Supplier Studio behavior remain unchanged. */
@media (max-width:760px){
  html.tp016x6-guest{--tp016x6-ink:#102d43;--tp016x6-green:#309760;--tp016x6-line:#e1e8e4;--tp016x6-muted:#78857f}

  /* Reuse the accepted universal application header for signed-out public routes. */
  html.tp016x6-guest .tp011i-app-header{
    position:sticky;top:0;z-index:4000;width:100%;height:58px;min-height:58px;box-sizing:border-box;
    padding:0 12px 0 16px;display:flex!important;align-items:center;gap:8px;
    background:rgba(255,255,255,.99);border-bottom:1px solid var(--tp016x6-line);box-shadow:none;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)
  }
  html.tp016x6-guest .tp011i-brand-lockup{margin-right:auto}
  html.tp016x6-guest .tp011i-app-menu{
    position:fixed;z-index:4300;top:54px;right:12px;left:auto;width:224px;max-width:calc(100vw - 24px);
    padding:6px;border:1px solid #dce7df;border-radius:14px;background:#fff;box-shadow:0 14px 34px rgba(10,43,59,.14);
    box-sizing:border-box;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
  }
  html.tp016x6-guest .tp011i-app-menu:not([hidden]){display:block!important}
  html.tp016x6-guest .tp011i-app-menu .tp016x6-menu-divider{height:1px;margin:5px 8px;background:#e5ebe7}
  html.tp016x6-guest .tp011i-app-menu .tp016x6-menu-member{color:#23784f;font-weight:850}

  /* One public shell: retire the old mobile public headers on the three guest surfaces. */
  html.tp016x6-guest body.rewards-page>.toura-global-nav[data-current="marketplace"],
  html.tp016x6-guest body>.toura-global-nav[data-current="community"],
  html.tp016x6-guest body.tp012a-member-route #passportGateway>.toura-global-nav{display:none!important}

  /* Passport gateway stays inside the public app instead of becoming a dead end. */
  html.tp016x6-guest body.tp012a-member-route #passportGateway{padding-top:58px!important;padding-bottom:calc(78px + env(safe-area-inset-bottom))!important}
  html.tp016x6-guest body.tp012a-member-route{padding-bottom:calc(78px + env(safe-area-inset-bottom))!important}
  html.tp016x6-guest body.tp012a-member-route .tp012a-mobile-nav{display:grid!important}

  /* Quick Explorer return beside the hamburger on public secondary screens. */
  .tp016x6-guest-explorer{
    width:44px;min-width:44px;height:45px;padding:3px 2px 2px;border:1px solid #dce7df;border-radius:10px;background:#fff;
    color:#536a61;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
    font:800 7px/1 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
  }
  .tp016x6-guest-explorer i{display:block;position:relative;width:18px;height:20px;color:#23784f}
  .tp016x6-guest-explorer i:before{content:"";position:absolute;left:4px;top:0;width:10px;height:13px;border:1.6px solid currentColor;border-radius:50% 50% 50% 0;transform:rotate(-45deg)}
  .tp016x6-guest-explorer i:after{content:"";position:absolute;left:7px;top:4px;width:4px;height:4px;border:1.4px solid currentColor;border-radius:50%}

  /* Guest bottom rail is one locked member-navigation surface, never four guest actions. */
  html.tp016x6-guest .tp005s-mobile-nav[data-tp016x6c-guest-rail-lock="true"],
  html.tp016x6-guest .tp012a-mobile-nav[data-tp016x6c-guest-rail-lock="true"]{
    background:rgba(248,250,249,.985)!important;cursor:pointer!important
  }
  html.tp016x6-guest .tp005s-mobile-nav[data-tp016x6c-guest-rail-lock="true"]>a,
  html.tp016x6-guest .tp005s-mobile-nav[data-tp016x6c-guest-rail-lock="true"]>button:not(.tp005s-nav-grab),
  html.tp016x6-guest .tp012a-mobile-nav[data-tp016x6c-guest-rail-lock="true"]>a,
  html.tp016x6-guest .tp012a-mobile-nav[data-tp016x6c-guest-rail-lock="true"]>button:not(.tp005s-nav-grab){
    color:#9da8a3!important;opacity:.58!important;filter:grayscale(1);cursor:pointer!important;pointer-events:none!important
  }
  html.tp016x6-guest .tp005s-mobile-nav[data-tp016x6c-guest-rail-lock="true"]>a.active:before,
  html.tp016x6-guest .tp012a-mobile-nav[data-tp016x6c-guest-rail-lock="true"]>a.active:before{display:none!important}
  html.tp016x6-guest .tp005s-mobile-nav[data-tp016x6c-guest-rail-lock="true"] .tp005s-nav-icon,
  html.tp016x6-guest .tp012a-mobile-nav[data-tp016x6c-guest-rail-lock="true"] .tp005s-nav-icon{color:#9da8a3!important}

  /* Small, temporary member-only signal. */
  .tp016x6-guest-toast{
    position:fixed;z-index:12000;left:50%;bottom:calc(92px + env(safe-area-inset-bottom));transform:translate(-50%,8px);
    max-width:calc(100vw - 40px);padding:9px 13px;border-radius:999px;background:rgba(16,45,67,.94);color:#fff;
    font:800 11px/1.25 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    opacity:0;pointer-events:none;transition:opacity .16s ease,transform .16s ease;text-align:center
  }
  .tp016x6-guest-toast.is-visible{opacity:1;transform:translate(-50%,0)}

  /* First Explorer visit decision gate. Deliberately restrained; visual polish comes later. */
  .tp016x6-guest-intro{
    position:fixed;z-index:11000;inset:0;display:grid;place-items:center;padding:18px;background:rgba(9,31,42,.28)
  }
  .tp016x6-guest-intro[hidden]{display:none!important}
  .tp016x6-guest-intro-card{
    width:min(100%,360px);padding:22px;border:1px solid #dce7df;border-radius:20px;background:#fff;color:#173247;
    box-shadow:0 20px 52px rgba(8,39,51,.18);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
  }
  .tp016x6-guest-intro-card small{display:block;margin-bottom:8px;color:#2c8c5a;font-size:9px;font-weight:900;letter-spacing:.16em}
  .tp016x6-guest-intro-card h2{margin:0;font-size:24px;line-height:1.08;letter-spacing:-.02em}
  .tp016x6-guest-intro-card p{margin:10px 0 18px;color:#667b73;font-size:13px;line-height:1.5}
  .tp016x6-guest-intro-actions{display:grid;gap:9px}
  .tp016x6-guest-intro-actions a,.tp016x6-guest-intro-actions button{
    width:100%;min-height:46px;border-radius:12px;padding:0 14px;display:flex;align-items:center;justify-content:center;
    text-decoration:none;font:850 12px/1 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer
  }
  .tp016x6-guest-intro-actions .primary{border:1px solid #2c8c5a;background:#2c8c5a;color:#fff}
  .tp016x6-guest-intro-actions .secondary{border:1px solid #cbd9d1;background:#fff;color:#246f49}
  .tp016x6-guest-intro-actions .guest{border:0;background:#eef6f1;color:#173f31}

  /* One-step guide after choosing guest access. */
  html.tp016x6-world-guide #worldButton{z-index:11110!important;box-shadow:0 0 0 4px rgba(48,151,96,.24),0 8px 24px rgba(7,45,58,.14)!important}
  .tp016x6-world-coach{
    position:fixed;z-index:11100;top:72px;left:14px;width:min(260px,calc(100vw - 28px));padding:13px 14px;border:1px solid #cee0d4;
    border-radius:14px;background:#fff;color:#173247;box-shadow:0 14px 34px rgba(8,39,51,.14);
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
  }
  .tp016x6-world-coach[hidden]{display:none!important}
  .tp016x6-world-coach b{display:block;font-size:13px}
  .tp016x6-world-coach span{display:block;margin-top:4px;color:#6d7e77;font-size:10px;line-height:1.4}
  .tp016x6-world-coach-actions{margin-top:9px;display:flex;align-items:flex-end;gap:10px}
  .tp016x6-world-coach .tp016x6-world-primary{min-height:36px;padding:0 12px;border:1px solid #2c8c5a;border-radius:10px;background:#2c8c5a;color:#fff;font-size:10px;font-weight:850}
  .tp016x6-world-coach .tp016x6-world-skip{min-height:32px;padding:0 2px;border:0;background:transparent;color:#2f6fd1;text-decoration:underline;text-underline-offset:2px;font-size:9px;font-weight:700}
}
