/* Cinematic landing header only. Mobile actions must never run into the
   wordmark. Keep a one-line Sign in link until the narrowest phone width,
   then expose the same destination in the existing accessible menu. */
@media (max-width:820px){
  .nav-wrap .site-nav.shell{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-width:0;
    gap:5px;
  }
  .nav-wrap .site-nav.shell > .brand{
    flex:0 1 auto;
    min-width:0;
    max-width:100%;
    gap:7px;
  }
  .nav-wrap .site-nav.shell > .brand > .brand-logo{
    flex:0 0 auto;
  }
  .nav-wrap .site-nav.shell > .brand > span{
    display:block;
    flex:0 1 auto;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .nav-wrap .site-nav.shell > .nav-actions{
    display:flex;
    flex:0 0 auto;
    min-width:0;
    align-items:center;
    justify-content:flex-end;
    gap:6px;
    margin-left:auto;
  }
  .nav-wrap .site-nav.shell > .nav-actions > .signin{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    min-width:max-content;
    min-height:44px;
    white-space:nowrap;
    line-height:1.2;
    font-size:13px;
  }
  .nav-wrap .site-nav.shell > .nav-actions > .nav-mobile-toggle{
    display:inline-flex;
    flex:0 0 44px;
    width:44px;
    min-width:44px;
    height:44px;
    min-height:44px;
  }
}
@media (max-width:620px){
  /* Hero has a full-width Start free action; repeating it in the header
     consumes the space needed by the logo and returning-member Sign in. */
  .nav-wrap .site-nav.shell > .nav-actions > .nav-cta{
    display:none!important;
  }
  .nav-wrap .site-nav.shell > .nav-actions > .wmd-landing-install-nav{
    display:inline-flex;
    flex:0 0 44px;
    width:44px;
    min-width:44px;
    height:44px;
    min-height:44px;
    padding:0;
  }
  .nav-wrap .site-nav.shell > .brand{
    font-size:clamp(13px,3.6vw,16px);
  }
  .nav-wrap .site-nav.shell{
    padding-inline:7px;
  }
}
@media (max-width:360px){
  /* Two 44px action controls plus a smaller wordmark are the safe limit.
     Sign in remains one tap away in #mobileMenu, not over the logo. */
  .nav-wrap .site-nav.shell > .nav-actions > .signin{
    display:none!important;
  }
  .nav-wrap .site-nav.shell > .brand{
    gap:5px;
    font-size:13px;
  }
  .nav-wrap .site-nav.shell > .brand > .brand-logo{
    width:33px;
    height:33px;
  }
  .nav-wrap .site-nav.shell > .nav-actions{
    gap:5px;
  }
  .nav-wrap .site-nav.shell > .nav-actions > .wmd-landing-install-nav,
  .nav-wrap .site-nav.shell > .nav-actions > .nav-mobile-toggle{
    width:44px;
    min-width:44px;
    height:44px;
    min-height:44px;
  }
}
