/* ATC 1.3.7 – public navigation tile design tokens.
   Same typography, frame, label, arrows and sizes across approved home,
   Training and Clubleben, without altering the private club dashboard. */
html body .atc-approved-design {
  --atc-shared-tile-height:214px;
  --atc-shared-gap:14px;
  --atc-shared-radius:16px;
  --atc-shared-label-bg:rgba(10,46,68,.86);
  --atc-shared-frame:rgba(255,255,255,.31);
  --atc-shared-heading:clamp(17px,1.8vw,24px);
  --atc-shared-label:14px;
  --atc-shared-arrow:22px;
}
/* Structural geometry; only the three design families covered here. */
html body .atc-approved-design .bento,
html body .atc-public-inner .atc-public-hub-grid,
html body.atc-club-page-128 .atc-club-grid-128{
  gap:var(--atc-shared-gap)!important;
  align-items:stretch!important;
}
html body .atc-approved-design .bento > a.panel,
html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card,
html body.atc-club-page-128 .atc-club-grid-128 > a.atc-club-tile-128{
  border-radius:var(--atc-shared-radius)!important;
  box-sizing:border-box!important;
  min-width:0!important;
  overflow:hidden!important;
}
html body .atc-approved-design .bento > a.panel.has-graphic::before,
html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card::before,
html body.atc-club-page-128 .atc-club-grid-128 > a.atc-club-tile-128::before{
  inset:11% 13% 81px!important;
  border:2px solid var(--atc-shared-frame)!important;
  transform:skew(-12deg)!important;
}
html body .atc-approved-design .bento > a.panel.has-graphic > span.visual,
html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-heading,
html body.atc-club-page-128 .atc-club-grid-128 .atc-club-visual-128{
  inset:11% 13% 81px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  padding:0 5px!important;
  margin:0!important;
  box-sizing:border-box!important;
  color:rgba(255,255,255,.93)!important;
  font-family:'Avenir Next Condensed','Avenir Next','Trebuchet MS',sans-serif!important;
  font-size:var(--atc-shared-heading)!important;
  font-weight:900!important;
  line-height:1.1!important;
  letter-spacing:.045em!important;
  text-align:center!important;
  text-transform:uppercase!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
}
html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-heading h2{
  font-family:inherit!important;
  font-size:inherit!important;
  font-weight:inherit!important;
  letter-spacing:inherit!important;
  line-height:inherit!important;
  text-align:center!important;
  color:inherit!important;
  max-width:100%!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  text-wrap:balance!important;
}
html body .atc-approved-design .bento > a.panel > .label,
html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-inner > p,
html body.atc-club-page-128 .atc-club-grid-128 .atc-club-label-128{
  inset:auto 12px 12px!important;
  min-height:49px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  box-sizing:border-box!important;
  border-radius:9px!important;
  background:var(--atc-shared-label-bg)!important;
  color:white!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:var(--atc-shared-label)!important;
  font-weight:800!important;
  line-height:1.3!important;
  letter-spacing:0!important;
  padding:9px 13px!important;
  margin:0!important;
  text-align:left!important;
}
html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-inner > p{
  padding-right:46px!important;
}
html body .atc-approved-design .bento > a.panel > .label > span,
html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card > .atc-hub-card-arrow,
html body.atc-club-page-128 .atc-club-grid-128 .atc-club-arrow-128{
  font-size:var(--atc-shared-arrow)!important;
  color:white!important;
}
/* Every regular desktop tile has the same height. The large home ATC tile
   intentionally spans two rows, and Clubleben's NEWS spans two columns. */
@media(min-width:851px){
 html body .atc-approved-design .bento,
 html body .atc-public-inner .atc-public-hub-grid{
   grid-auto-rows:var(--atc-shared-tile-height)!important;
 }
 html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card,
 html body.atc-club-page-128 .atc-club-grid-128 > a.atc-club-tile-128{
   height:var(--atc-shared-tile-height)!important;
   min-height:var(--atc-shared-tile-height)!important;
 }
 html body.atc-club-page-128 .atc-club-grid-128 > .atc-club-news-128{
   grid-column:1 / -1!important;
   height:var(--atc-shared-tile-height)!important;
   min-height:var(--atc-shared-tile-height)!important;
 }
 html body .atc-approved-design .bento > a.panel:first-child > span.visual,
 html body.atc-club-page-128 .atc-club-grid-128 .atc-club-news-128 .atc-club-visual-128{
   font-size:38px!important;
 }
}
@media(max-width:850px){
 html body .atc-approved-design{--atc-shared-gap:10px;--atc-shared-label:12px;--atc-shared-heading:17px;--atc-shared-arrow:19px}
 html body .atc-approved-design .bento > a.panel,
 html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card,
 html body.atc-club-page-128 .atc-club-grid-128 > a.atc-club-tile-128{
   height:170px!important;min-height:170px!important;
 }
 html body .atc-approved-design .bento > a.panel:first-child,
 html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card:nth-child(3n+1),
 html body.atc-club-page-128 .atc-club-grid-128 > .atc-club-news-128{
   height:224px!important;min-height:224px!important;
 }
 html body .atc-approved-design .bento > a.panel:first-child > span.visual,
 html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card:nth-child(3n+1) .atc-hub-card-heading,
 html body.atc-club-page-128 .atc-club-grid-128 .atc-club-news-128 .atc-club-visual-128{
   font-size:30px!important;
 }
 html body .atc-approved-design .bento > a.panel.has-graphic::before,
 html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card::before,
 html body.atc-club-page-128 .atc-club-grid-128 > a.atc-club-tile-128::before,
 html body .atc-approved-design .bento > a.panel.has-graphic > span.visual,
 html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-heading,
 html body.atc-club-page-128 .atc-club-grid-128 .atc-club-visual-128{
   inset:11% 13% 77px!important;
 }
 html body .atc-approved-design .bento > a.panel > .label,
 html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-inner > p,
 html body.atc-club-page-128 .atc-club-grid-128 .atc-club-label-128{
   padding:8px 9px!important;
   font-size:12px!important;
 }
 html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card .atc-hub-card-inner > p{
   padding-right:33px!important;
 }
}
@media(max-width:390px){
 html body .atc-approved-design{--atc-shared-heading:12px}
 html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card:nth-child(3n+1) .atc-hub-card-heading,
 html body .atc-approved-design .bento > a.panel:first-child > span.visual,
 html body.atc-club-page-128 .atc-club-grid-128 .atc-club-news-128 .atc-club-visual-128{
   font-size:26px!important;
 }
}
/* A long single word must never cross the diagonal at phone widths. */
@media(max-width:390px){
 html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card:nth-child(4) .atc-hub-card-heading {
   font-size:clamp(17px,4.8vw,19px)!important;
 }
}
/* Avoid a stranded half-width final card on phones when the hub has five links. */
@media(max-width:850px){
 html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card:last-child:nth-child(odd):not(:first-child){
   grid-column:1 / -1!important;
 }
 html body .atc-public-inner .atc-public-hub-grid > a.atc-hub-card:last-child:nth-child(odd):not(:first-child) .atc-hub-card-heading{
   font-size:clamp(17px,4.5vw,23px)!important;
 }
}
