/* v3.0.73 — Global mobile account/profile overflow polish.
   No interactive semantics changed: existing menu, stats, notification and logout remain in DOM. */
@media(max-width:900px){
  /* Previously only the slasher selection had a scrollable compact menu. All site routes need it. */
  .nf2-header-main>.nf2-nav.is-open{
    box-sizing:border-box!important;min-width:0!important;max-width:min(420px,calc(100vw - 24px))!important;
    max-height:min(73dvh,calc(100dvh - 160px))!important;
    overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;scrollbar-width:thin;
  }
  .nf2-header-main>.nf2-nav.is-open .nf347-menu-profile{
    box-sizing:border-box!important;max-width:100%!important;min-width:0!important;
    margin-bottom:10px!important;overflow:visible!important;
  }
  .nf2-header-main>.nf2-nav.is-open .nf347-profile-head{
    box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
    display:flex!important;align-items:center!important;gap:10px!important;
  }
  .nf2-header-main>.nf2-nav.is-open .nf347-profile-head .nf347-profile-ident{
    flex:1 1 auto!important;min-width:0!important;overflow:hidden;
  }
  .nf2-header-main>.nf2-nav.is-open .nf347-profile-ident :is(strong,small){
    display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  .nf2-header-main>.nf2-nav.is-open .nf347-profile-photo{
    flex:0 0 45px!important;width:45px!important;height:45px!important;
  }
  .nf2-header-main>.nf2-nav.is-open .nf347-profile-stats{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:3px 0 0!important;padding:9px 0!important;
  }
  .nf2-header-main>.nf2-nav.is-open .nf347-profile-stats>a,
  .nf2-header-main>.nf2-nav.is-open .nf347-profile-stats>button{
    min-width:0!important;max-width:100%!important;padding:8px 2px!important;
    white-space:normal!important;overflow:hidden;text-align:center!important;
  }
  .nf2-header-main>.nf2-nav.is-open .nf347-profile-stats small{
    display:flex!important;flex-wrap:wrap!important;justify-content:center!important;
    gap:3px!important;font-size:clamp(9px,2.55vw,11px)!important;
    line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere;
  }
  .nf2-header-main>.nf2-nav.is-open .nf347-menu-account-links{
    min-width:0!important;max-width:100%!important;
  }
  .nf2-header-main>.nf2-nav.is-open .nf347-menu-account-links>a{
    min-width:0!important;overflow-wrap:anywhere;
  }
  /* Keep profile pages readable without changing membership widgets or their actions. */
  .nf2-main--profile,.nf2-main--profile .nf2-profile-page,
  .nf2-main--profile .nf2-profile-page__content,
  .nfu-public-profile,.nfu-profile{
    box-sizing:border-box;min-width:0;max-width:100%;
  }
  .nf2-main--profile .nfu-profile__hero,
  .nfu-public-profile .nfu-profile__hero{max-width:100%}
  .nf2-main--profile .nfu-profile__identity,
  .nfu-public-profile .nfu-profile__identity{min-width:0;max-width:100%}
  .nf2-main--profile .nfu-profile__identity :is(h1,p),
  .nfu-public-profile .nfu-profile__identity :is(h1,p){overflow-wrap:anywhere}
}
@media(max-width:420px){
  .nf2-header-main>.nf2-nav.is-open .nf347-menu-profile{padding:11px 10px 4px!important}
  .nf2-header-main>.nf2-nav.is-open .nf347-profile-stats b{font-size:15px!important}
  .nf2-header-main>.nf2-nav.is-open .nf347-profile-chevron{flex:0 0 16px!important}
  /* Reserve full width for navigation links instead of allowing an intrinsic width to spill. */
  .nf2-header-main>.nf2-nav.is-open :is(ul,.nf347-menu-account-links){max-width:100%!important;min-width:0!important}
}
