/**
 * GTGF v15.58 — final consistency polish.
 * Completes the v15.57 deep-dive with remaining microcopy, focus and legacy-component readability fixes.
 */

/* Remaining functional microtype from older News / Club / Strava layers. */
body.gtgf-v14 :is(
  .v1526-news-eyebrow,.v1526-news-card__meta,.v1526-news-article__signature strong,
  .v1526-news-article__aside>span,.v1526-news-related__grid span,
  .gtgf-club-hero__stats span,.gtgf-club-nav a,.gtgf-club-nav button,
  .gtgf-community-post header small,.gtgf-community-post__strava span,.gtgf-community-post__strava strong,
  .gtgf-community-delete,.gtgf-week-switcher a,.gtgf-week-switcher strong,.gtgf-metric-tabs a,
  .gtgf-club-selfreport,.gtgf-challenge-card__top,.gtgf-week-checkin__week span,.gtgf-week-checkin label span,
  .gtgf-sharing-form>label>span,.gtgf-strava-club-bridge>a,.gtgf-strava-club-bridge__pending,
  .gtgf-strava-profilebar small,.gtgf-strava-profilebar__actions a,.gtgf-strava-week-head span,
  .gtgf-strava-feed-head span,.gtgf-strava-attribution
){font-size:max(.75rem,12px)!important;line-height:1.4}

/* Keep support/meta text legible without turning it into primary content. */
body.gtgf-v14 :is(
  .gtgf-community-post header small,.gtgf-challenge-card__top,.gtgf-week-checkin__week span,
  .gtgf-week-checkin label span,.gtgf-strava-attribution
){color:var(--gtgf-readable-muted,#514c46)}
body.gtgf-v14 .section--black :is(.gtgf-strava-attribution,.gtgf-club-hero__stats span){color:var(--gtgf-readable-muted-dark,#c7c3bc)}

/* Keyboard / focus clarity on interactive surfaces that historically relied on hover only. */
body.gtgf-v14 :is(a,button,summary,[role="tab"],input,select,textarea):focus-visible{
  outline:3px solid var(--gtgf-orange,#f15a24)!important;
  outline-offset:3px;
}
body.gtgf-v14 :is(button,[role="button"])[disabled],
body.gtgf-v14 :is(button,[role="button"])[aria-disabled="true"]{
  cursor:not-allowed!important;
  opacity:.58;
}

/* Long profile / activity names and club labels may never force horizontal page overflow. */
body.gtgf-v14 :is(
  .gtgf-strava-profilebar,.gtgf-strava-profilebar__identity,.gtgf-strava-profilebar__status,
  .gtgf-strava-feed-head,.gtgf-strava-activity,.gtgf-community-post,.gtgf-club-board,
  .v1526-news-card,.v1526-news-featured
){min-width:0;max-width:100%}
body.gtgf-v14 :is(
  .gtgf-strava-profilebar strong,.gtgf-strava-activity strong,.gtgf-community-post h3,
  .v1526-news-card h3,.v1526-news-featured h2
){overflow-wrap:anywhere}

/* Club navigation stays usable on narrow screens instead of squeezing labels. */
@media(max-width:820px){
  body.gtgf-v14 .gtgf-club-nav{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
  body.gtgf-v14 .gtgf-club-nav :is(a,button){flex:0 0 auto;white-space:nowrap;min-height:44px}
  body.gtgf-v14 .gtgf-strava-profilebar{grid-template-columns:1fr!important;gap:14px}
  body.gtgf-v14 .gtgf-strava-profilebar__actions{justify-content:flex-start;flex-wrap:wrap}
}

/* 404 is a utility screen, not a marketing landing page. */
body.gtgf-v14 .error-404{min-height:min(68vh,720px);display:grid;place-items:center;text-align:center}
body.gtgf-v14 .error-404 .button{margin-top:10px}

/* Performance Week legacy ribbon safety: both historical positions keep readable dark text on orange. */
body.gtgf-v14 :is(.trip-v161-package-card:nth-child(2)::before,.trip-v161-package-card:nth-child(3)::before){
  color:#111!important;
}
