/* WDHC athlete portal · 20261017portalfix1 (Milo 1:28 PM ET). Same visual language as the existing portal. */

/* Hero: "#1 in the world · 90° Lock-Off · 1:53 [FREAK]" */
#section-overview .welcome-pr .welcome-pr-hero {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
#section-overview .welcome-pr .welcome-pr-hero-rank {
  color: var(--gold, #D4AF37);
  font-weight: 700;
  white-space: nowrap;
}
#section-overview .welcome-pr .welcome-pr-hero-type {
  color: #f0f0f0;
  font-weight: 700;
  white-space: nowrap;
}
#section-overview .welcome-pr .welcome-pr-dot { color: #777; }
#section-overview .welcome-pr .tier-badge { transform: translateY(-1px); }

/* Sidebar rank never shows a placeholder line while the best board resolves */
#sidebarUserRank:empty { min-height: 1.2em; }

/* "Your boards": whole words only (no "Chin- / Over-Bar"), rank + next-tier gap lines */
.portal-nowrap { white-space: nowrap; }
.featured-other-hangs__type {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}
.featured-other-hangs__rank {
  font-family: Rajdhani, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold, #D4AF37);
  line-height: 1.1;
}
.featured-other-hangs__gap {
  font-size: 0.7rem;
  color: #9a9a9a;
  line-height: 1.2;
  margin-top: 2px;
}

/* Month Top 5 names: full name, wrap instead of "Brandon Craft…" */
.overview-month-top3__name {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: break-word;
}

/* Grip Age Calc back in the sidebar */
.dashboard-page.locker-home .sidebar-link[data-section="calculator"] {
  display: flex !important;
}

/* Overview "More" toggle */
#section-overview .overview-more {
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.02);
}
#section-overview .overview-more[hidden] { display: none !important; }
#section-overview .overview-more__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  color: #e8e8e8;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
#section-overview .overview-more__label {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold, #D4AF37);
}
#section-overview .overview-more__hint {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8rem;
  color: #9a9a9a;
}
#section-overview .overview-more__chev { color: #9a9a9a; transition: transform 0.15s ease; }
#section-overview .overview-more.is-open .overview-more__chev { transform: rotate(180deg); }
#section-overview .overview-more__body { padding: 0 12px 12px; display: grid; gap: 12px; }
#section-overview .overview-more__body[hidden] { display: none !important; }
#section-overview .overview-more__body > * { margin: 0 !important; width: 100%; max-width: 100%; box-sizing: border-box; }

/* Progress: one "Best by type" card for hang types with a single hang */
.progress-best-by-type__sub { margin: 0 0 10px; font-size: 0.82rem; color: #a8a8a8; }
.progress-best-by-type__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.progress-best-by-type__top { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.progress-best-by-type__name { font-weight: 700; color: #f0f0f0; flex: 1 1 0; min-width: 0; }
.progress-best-by-type__time, .progress-best-by-type__top .tier-badge { flex: 0 0 auto; white-space: nowrap; }
.progress-best-by-type__time { color: var(--gold, #D4AF37); font-weight: 700; }
.progress-best-by-type__bar { margin-top: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.progress-best-by-type__bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #a8862a, #FFE566); }
.progress-best-by-type__gap { margin: 4px 0 0; font-size: 0.76rem; color: #9a9a9a; }
.progress-best-by-type .card-title { margin-bottom: 4px; }

/* Goal card: next-tier suggestions */
.goal-sugg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.goal-sugg__btn {
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.06);
  color: #e8e8e8;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  max-width: 100%;
}
.goal-sugg__btn span { color: var(--gold, #D4AF37); font-weight: 700; }
.goal-sugg__btn.is-on { border-color: var(--gold, #D4AF37); background: rgba(212, 175, 55, 0.16); }

/* empty legacy tier bar (path lives in the featured panel) */
#tierProgressSection { display: none !important; }
.portal-nowrap-wrap { display: inline; }
.overview-ach-item-hang { display: block !important; font-size: 0.68rem; line-height: 1.2; color: rgba(255,255,255,0.78); margin-top: 4px; text-align: center; white-space: nowrap; }
