/* =========================================================
   V154 — stable community navigation + discover consistency
   ========================================================= */

/* One identical primary Community shell on Community + all Discover pages. */
.community-global-shell-v154{
  background:#f5f6f4!important;
  padding:108px 0 16px!important;
  border-bottom:1px solid #dfe5e1!important;
}
.community-global-shell-v154>.content-shell{
  width:min(calc(100% - 84px),var(--max))!important;
}
.community-global-shell-v154 #community-main-tabs{
  margin:0!important;
}
.community-global-shell-v154 #community-main-tabs>a{
  cursor:pointer;
}
.community-global-shell-v154 #community-main-tabs>a.active{
  background:#111714!important;
  border-color:#176b4a!important;
  box-shadow:inset 0 0 0 1px #176b4a!important;
  color:#fff!important;
}

/* Community content begins directly below the persistent navigation.
   This removes the width/position jump that only happened on Storys. */
.community-global-shell-v154 + .community-simple-section.community-v44{
  padding-top:0!important;
}
.community-global-shell-v154 + .community-simple-section.community-v44 > .content-shell{
  width:min(calc(100% - 84px),var(--max))!important;
}

/* Discover subsection tabs: same component on Vereine / Storys / Ranking / Stats. */
#community-discover .club-subnav-v124.discover-subnav-v143{
  margin-top:18px!important;
  margin-bottom:26px!important;
}
#community-discover .discover-hero-v98 + .club-subnav-v124{
  width:100%!important;
}

/* Stats headline: never crop condensed glyphs at the top/bottom. */
.club-stats-hero-v124,
.club-stats-hero-copy-v124,
.club-stats-hero-copy-v124>div:first-child{
  overflow:visible!important;
}
.club-stats-hero-copy-v124 h1{
  overflow:visible!important;
  line-height:1.04!important;
  padding:.04em 0 .12em!important;
  margin-top:6px!important;
}

/* Avoid accidental click blocking from decorative layers in Community cards. */
.community-global-shell-v154 svg,
.community-main-icon-v131,
.community-main-icon-v131 svg{
  pointer-events:none!important;
}

@media(max-width:760px){
  .community-global-shell-v154{
    padding:88px 0 12px!important;
  }
  .community-global-shell-v154>.content-shell,
  .community-global-shell-v154 + .community-simple-section.community-v44 > .content-shell{
    width:calc(100% - 28px)!important;
  }
  #community-discover .club-subnav-v124.discover-subnav-v143{
    margin-top:12px!important;
    margin-bottom:18px!important;
  }
  .club-stats-hero-copy-v124 h1{
    max-width:none!important;
    font-size:clamp(30px,9.5vw,42px)!important;
    line-height:1.06!important;
    padding-bottom:.14em!important;
  }
}
