/* Toura Passport STAGING 016X6H — Guest Aesthetics + Structure, Pass 1.
   Presentation only. Guest routing, World behavior, rail locking, auth logic,
   Marketplace/Community mechanics and signed-in application behavior are unchanged. */
@media (max-width:760px){
  /* --- Auth + My Passport gateway composition: center inside the visible area above the locked rail. --- */
  html.tp016x6-guest body.tp012a-member-route #login .passport-auth-stage,
  html.tp016x6-guest body.tp012a-member-route #passportGateway .passport-reveal-stage{
    min-height:calc(100svh - 58px - 78px - env(safe-area-inset-bottom))!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:18px 16px 22px!important;
  }
  html.tp016x6-guest body.tp012a-member-route #login .passport-auth-copy,
  html.tp016x6-guest body.tp012a-member-route #passportGateway .passport-reveal-copy{
    width:min(100%,414px)!important;
    max-width:414px!important;
    margin:0 auto!important;
    padding:24px 24px 22px!important;
    border-radius:22px!important;
    border-color:#e3eae6!important;
    box-shadow:0 12px 34px rgba(17,52,67,.065)!important;
  }
  html.tp016x6-guest body.tp012a-member-route #login .passport-auth-kicker,
  html.tp016x6-guest body.tp012a-member-route #passportGateway .passport-reveal-kicker{
    margin-bottom:14px!important;
    font-size:10px!important;
    letter-spacing:.20em!important;
  }
  html.tp016x6-guest body.tp012a-member-route #login #memberAuthTitle{
    font-size:32px!important;
    line-height:1.02!important;
  }
  html.tp016x6-guest body.tp012a-member-route #passportGateway .passport-reveal-copy h1{
    font-size:38px!important;
    line-height:1!important;
  }
  html.tp016x6-guest body.tp012a-member-route #login .member-auth-subtitle,
  html.tp016x6-guest body.tp012a-member-route #passportGateway .passport-reveal-copy>p{
    margin:12px 0 18px!important;
    font-size:13px!important;
    line-height:1.48!important;
  }
  html.tp016x6-guest body.tp012a-member-route #login .passport-auth-free{
    margin:0 0 16px!important;
    padding:10px 12px!important;
    border-radius:11px!important;
    font-size:12px!important;
  }
  html.tp016x6-guest body.tp012a-member-route #login .form-stack{gap:12px!important}
  html.tp016x6-guest body.tp012a-member-route #login .field{gap:6px!important}
  html.tp016x6-guest body.tp012a-member-route #login .field label{
    font-size:10px!important;
    letter-spacing:.09em!important;
  }
  html.tp016x6-guest body.tp012a-member-route #login .field input{
    min-height:50px!important;
    border-radius:12px!important;
  }
  html.tp016x6-guest body.tp012a-member-route #login #loginBtn{
    min-height:52px!important;
    margin-top:1px!important;
    border-radius:13px!important;
    font-size:14px!important;
  }
  html.tp016x6-guest body.tp012a-member-route #login .passport-auth-switch,
  html.tp016x6-guest body.tp012a-member-route #login #memberForgotPassword{
    min-height:38px!important;
    font-size:12px!important;
  }
  html.tp016x6-guest body.tp012a-member-route #passportGateway .passport-reveal-actions{
    gap:9px!important;
    margin-top:22px!important;
  }
  html.tp016x6-guest body.tp012a-member-route #passportGateway .passport-reveal-actions a,
  html.tp016x6-guest body.tp012a-member-route #passportGateway .passport-reveal-actions button{
    min-height:52px!important;
    border-radius:13px!important;
    font-size:13px!important;
  }

  /* --- Guest hamburger hierarchy: destinations first, Passport conversion last. --- */
  html.tp016x6-guest .tp011i-app-menu{
    width:232px!important;
    padding:7px!important;
    border-radius:16px!important;
    border-color:#dfe7e2!important;
    box-shadow:0 16px 36px rgba(10,43,59,.13)!important;
  }
  html.tp016x6-guest .tp011i-app-menu a{
    min-height:38px!important;
    padding:10px 11px!important;
    border-radius:10px!important;
    font-size:11px!important;
  }
  html.tp016x6-guest .tp011i-app-menu a[href="/member/"]{
    background:#f3f8f5!important;
    color:#1f704a!important;
    font-weight:850!important;
  }
  html.tp016x6-guest .tp011i-app-menu a[href*="mode=signin"]{
    margin-top:2px!important;
    border:1px solid #d9e4de!important;
    color:#245f45!important;
    font-weight:820!important;
  }
  html.tp016x6-guest .tp011i-app-menu a[href*="mode=create"]{
    margin-top:6px!important;
    background:#2c9560!important;
    color:#fff!important;
    font-weight:880!important;
    text-align:center!important;
  }
  html.tp016x6-guest .tp011i-app-menu:after{
    content:"Free Passport · member benefits · Points";
    display:block;
    padding:9px 8px 4px;
    color:#7b8982;
    font:750 8px/1.35 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    letter-spacing:.025em;
    text-align:center;
  }

  /* Explorer keeps its accepted shell; only the guest menu receives the same hierarchy. */
  html.tp016x6-guest #explorerMenu{
    width:232px!important;
    padding:7px!important;
    border-radius:16px!important;
    border:1px solid #dfe7e2!important;
    background:#fff!important;
    box-shadow:0 16px 36px rgba(10,43,59,.13)!important;
  }
  html.tp016x6-guest #explorerMenu a{
    min-height:38px!important;
    padding:10px 11px!important;
    border-radius:10px!important;
    color:#304b5c!important;
    font-size:11px!important;
  }
  html.tp016x6-guest #explorerMenu a[href="/member/"]{
    background:#f3f8f5!important;
    color:#1f704a!important;
  }
  html.tp016x6-guest #explorerMenu a[href*="mode=signin"]{
    margin-top:2px!important;
    border:1px solid #d9e4de!important;
    color:#245f45!important;
  }
  html.tp016x6-guest #explorerMenu a[href*="mode=create"]{
    margin-top:6px!important;
    background:#2c9560!important;
    color:#fff!important;
    text-align:center!important;
  }
  html.tp016x6-guest #explorerMenu:after{
    content:"Free Passport · member benefits · Points";
    display:block;
    padding:9px 8px 4px;
    color:#7b8982;
    font:750 8px/1.35 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    letter-spacing:.025em;
    text-align:center;
  }

  /* --- Locked member rail: quieter and more intentional, mechanics unchanged. --- */
  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(252,253,252,.985)!important;
    border-top-color:#e7ece9!important;
    box-shadow:0 -8px 24px rgba(7,40,53,.055)!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:#a2aba7!important;
    opacity:.56!important;
  }

  /* --- Public secondary-route header polish, no geometry/routing changes. --- */
  html.tp016x6-guest .tp011i-app-header{
    border-bottom-color:#e7ece9!important;
    box-shadow:0 1px 0 rgba(16,45,67,.015)!important;
  }
  html.tp016x6-guest .tp011i-brand-lockup small{
    color:#7c8983!important;
    letter-spacing:.17em!important;
  }
}

@media (max-width:390px) and (max-height:760px){
  /* Small phones: preserve the same hierarchy without forcing content under the rail. */
  html.tp016x6-guest body.tp012a-member-route #login .passport-auth-stage,
  html.tp016x6-guest body.tp012a-member-route #passportGateway .passport-reveal-stage{
    align-items:flex-start!important;
    padding-top:12px!important;
  }
  html.tp016x6-guest body.tp012a-member-route #login .passport-auth-copy,
  html.tp016x6-guest body.tp012a-member-route #passportGateway .passport-reveal-copy{
    padding:20px!important;
  }
  html.tp016x6-guest body.tp012a-member-route #login #memberAuthTitle{font-size:29px!important}
}


/* Signed-in Explorer toolbox must never inherit guest conversion copy. */
#explorerMenu.tp006c-member-toolbox:after{display:none!important;content:none!important}
