/* Toura Passport v3.37.14 - Lane 4 UX / Mobile Finish, checkpoint C1.
   Presentation and navigation convergence only.
   Desktop universal header/footer >=1100px, Member Batch A, Explorer Batch B,
   Inbox behavior, booking, security and Marketplace logic remain untouched. */

/* ---------------------------------------------------------------
   Universal public header: keep every primary destination reachable.
   The previous shell hid the full link row at <=600px and required a
   horizontal swipe from 601-1020px. This converts the same links into an
   explicit touch grid without changing destinations or routing.
   --------------------------------------------------------------- */
@media (max-width:1020px){
  .toura-global-nav:not(.member-topbar){
    grid-template-columns:minmax(0,1fr) auto;
    row-gap:8px;
  }
  .toura-global-nav:not(.member-topbar) > .tg-brand{
    min-width:0;
  }
  .toura-global-nav:not(.member-topbar) > .tg-links{
    grid-column:1 / -1;
    order:3;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr));
    width:100%;
    gap:4px;
    padding:0;
    overflow:visible!important;
  }
  .toura-global-nav:not(.member-topbar) > .tg-links a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    min-height:44px;
    padding:8px 7px!important;
    text-align:center;
    line-height:1.2;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }
  .toura-global-nav:not(.member-topbar) > .tg-account,
  .toura-global-nav:not(.member-topbar) .partner-menu-btn{
    min-height:44px;
  }
}

@media (max-width:600px){
  .toura-global-nav:not(.member-topbar){
    position:relative;
    min-height:0;
    padding:10px 12px 12px;
  }
  .toura-global-nav:not(.member-topbar) > .tg-links{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px;
  }
  .toura-global-nav:not(.member-topbar) > .tg-links a{
    min-height:46px;
    padding:7px 5px!important;
    font-size:10px!important;
  }
  .toura-global-nav:not(.member-topbar) > .tg-account{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:9px 11px!important;
  }
}

/* ---------------------------------------------------------------
   Partner onboarding: preserve the six-step contract while ensuring the
   rail, copy, form controls and primary actions remain usable at 360px.
   --------------------------------------------------------------- */
@media (max-width:600px){
  .partner-onboarding-page .po-main{
    width:calc(100% - 16px);
    padding:16px 0 36px;
  }
  .partner-onboarding-page .po-shell{
    border-radius:18px;
  }
  .partner-onboarding-page .po-rail{
    padding:16px 14px 14px;
  }
  .partner-onboarding-page .po-back{
    display:inline-flex;
    align-items:center;
    min-height:44px;
    margin-bottom:12px;
  }
  .partner-onboarding-page .po-rail h2{
    margin-bottom:14px;
    font-size:21px;
  }
  .partner-onboarding-page .po-progress{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
  }
  .partner-onboarding-page .po-progress li{
    min-height:44px;
    box-sizing:border-box;
  }
  .partner-onboarding-page .po-workspace{
    min-width:0;
    padding:22px 16px 30px;
  }
  .partner-onboarding-page .po-status-row{
    align-items:flex-start;
    flex-wrap:wrap;
    gap:7px 12px;
    margin-bottom:28px;
  }
  .partner-onboarding-page .po-status-row a{
    display:inline-flex;
    align-items:center;
    min-height:44px;
  }
  .partner-onboarding-page .po-copy h1,
  .partner-onboarding-page .po-reach-copy h1{
    font-size:clamp(30px,9vw,36px);
    line-height:1.06;
    overflow-wrap:anywhere;
  }
  .partner-onboarding-page .po-copy > span{
    font-size:14px;
    line-height:1.55;
  }
  .partner-onboarding-page .po-form,
  .partner-onboarding-page .po-prepared-form{
    width:100%;
    max-width:none;
  }
  .partner-onboarding-page .po-form input,
  .partner-onboarding-page .po-form select,
  .partner-onboarding-page .po-primary,
  .partner-onboarding-page .po-secondary,
  .partner-onboarding-page .po-password-toggle{
    min-height:44px;
  }
  .partner-onboarding-page .po-actions{
    align-items:stretch;
  }
  .partner-onboarding-page .po-actions > .po-primary,
  .partner-onboarding-page .po-actions > .po-secondary,
  .partner-onboarding-page .po-actions > a{
    flex:1 1 100%;
    width:100%;
  }
}

/* ---------------------------------------------------------------
   Partner Workspace: remove the stale <=620px rule that hid both the
   sidebar and the main workspace. The existing primary/subnavigation is
   retained and rearranged into a visible touch grid. No module logic changes.
   --------------------------------------------------------------- */
@media (max-width:860px){
  body.partner-ops-costa-rica #dashboard .partner-shell{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  body.partner-ops-costa-rica #dashboard .partner-sidebar{
    display:block!important;
    position:static!important;
    max-height:none!important;
    min-width:0;
    padding:0 0 14px!important;
    border-right:0!important;
    border-bottom:1px solid #dbe4de!important;
  }
  body.partner-ops-costa-rica #dashboard .partner-main{
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }
  body.partner-ops-costa-rica #dashboard .workspace-nav{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:6px!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  body.partner-ops-costa-rica #dashboard .workspace-primary-nav{
    order:1;
    min-width:0!important;
    min-height:48px;
    padding:9px 7px!important;
    text-align:center!important;
    align-content:center;
  }
  body.partner-ops-costa-rica #dashboard .workspace-primary-nav span{
    overflow-wrap:anywhere;
  }
  body.partner-ops-costa-rica #dashboard .workspace-subnav{
    order:2;
    grid-column:1 / -1;
    margin:2px 0 0!important;
    padding:8px!important;
    border:1px solid #dce6df!important;
    border-radius:12px;
    background:#f8fbf9;
  }
  body.partner-ops-costa-rica #dashboard .workspace-subnav:not(.hidden){
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
  }
  body.partner-ops-costa-rica #dashboard .workspace-subnav .partner-nav-btn{
    min-width:0;
    min-height:44px;
    padding:8px!important;
    text-align:center!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }
}

@media (max-width:600px){
  body.partner-ops-costa-rica #dashboard{
    width:calc(100vw - 16px)!important;
    padding-left:0!important;
    padding-right:0!important;
    padding-bottom:44px!important;
  }
  body.partner-ops-costa-rica #dashboard .partner-workspace-bar{
    gap:12px;
  }
  body.partner-ops-costa-rica #dashboard .workspace-nav{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.partner-ops-costa-rica #dashboard .workspace-primary-nav{
    min-height:50px;
    text-align:left!important;
    padding:10px!important;
  }
  body.partner-ops-costa-rica #dashboard .workspace-subnav:not(.hidden){
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.partner-ops-costa-rica #dashboard .workspace-subnav .partner-nav-btn{
    text-align:left!important;
  }
  body.partner-ops-costa-rica #dashboard .workspace-page-head,
  body.partner-ops-costa-rica #dashboard .partner-module-head{
    align-items:flex-start;
  }
  body.partner-ops-costa-rica #dashboard .public-presence-v38-actions{
    width:100%;
    justify-content:flex-start;
  }
  body.partner-ops-costa-rica #dashboard .public-presence-v38-actions .ops-action,
  body.partner-ops-costa-rica #dashboard .public-presence-v38-actions .public-presence-v38-state{
    min-height:44px;
    box-sizing:border-box;
  }
  body.partner-ops-costa-rica #dashboard .public-presence-tabs{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px;
    padding:8px!important;
    overflow:visible!important;
  }
  body.partner-ops-costa-rica #dashboard .public-presence-tabs button{
    min-width:0;
    min-height:44px;
    white-space:normal;
    line-height:1.2;
  }
}

/* ---------------------------------------------------------------
   Member Batch C touch hardening. Existing Member Batch A navigation and
   Inbox row architecture remain intact; this only normalizes remaining
   close/action targets on narrow screens.
   --------------------------------------------------------------- */
@media (max-width:620px){
  #memberPage .member-section-close,
  #memberPage .member-section-close-standalone,
  #memberPage .settings-focus-close,
  #memberPage .member-rewards-booking-close-v3700{
    min-width:44px;
    min-height:44px;
  }
  #memberPage #memberSectionInbox .member-inbox-open,
  #memberPage #memberSectionFollowing .followed-network-card strong,
  #memberPage #memberSectionPassport .passport-toolbar-actions .button,
  #memberPage .settings-profile-edit,
  #memberPage .settings-text-action{
    min-height:44px;
  }
  #memberPage #memberSectionInbox .member-inbox-open{
    display:inline-flex;
    align-items:center;
  }
  #memberPage .settings-focus-sheet,
  #memberPage .member-rewards-booking-card-v3700,
  #memberPage .member-card-sheet{
    max-width:100%;
    box-sizing:border-box;
  }
}
