/*===============================================*\
|| # JAKWEB.CH / TerraLoc Leagues / Version 1.1     # ||
|| # Public compete pages: hub, challenges,     # ||
|| # leagues, records, feed.                   # ||
|| # Activity Deck cockpit styling: hub,         # ||
|| # challenges and leagues on clean panels;   # ||
|| # records and feed on the competition card  # ||
|| # surface. Cobalt interactive, amber live.  # ||
\*===============================================*/

.tleagues-page {
  /* v2 competition card surface (records + feed) */
  --tleagues-surface: linear-gradient(180deg, rgba(var(--bs-body-bg-rgb), .98), rgba(var(--bs-emphasis-color-rgb, 11, 15, 20), .035));
  --tleagues-surface-border: rgba(var(--bs-emphasis-color-rgb, 11, 15, 20), .14);
  --tleagues-surface-shadow: 0 10px 22px rgba(24, 43, 68, .08);
  /* live chip recipe (amber, live only) */
  --tleagues-live-bg: rgba(var(--tl-live-rgb), .14);
  --tleagues-live-border: rgba(var(--tl-live-rgb), .4);
  --tleagues-live-ink: #8a6200;
  /* ok chip */
  --tleagues-ok: #136e44;
  --tleagues-ok-bg: rgba(34, 181, 110, .16);
  /*
   * The card art's own tokens, read by activity-art.js.
   *
   * They were a sky: #cddded at the top fading to #dfeae2, with a blue-grey
   * contour on it, because the art underneath was a flight. A hillside on
   * this site is paper fading to sage, and the contour is the hairline the
   * rest of the page draws with. sink/grow were a vario ramp's two ends and
   * nothing reads them any more.
   */
  --tleagues-terrain-a: #E4E7D8;
  --tleagues-terrain-b: #EFEDE2;
  --tleagues-contour: #C1C4AE;
  --tleagues-climb: var(--tl-accent);
  --tleagues-descent: var(--tl-terra);
  --tleagues-shadow: 0 1px 2px rgba(16, 23, 32, .04), 0 10px 34px -12px rgba(16, 23, 32, .14);
  --tleagues-shadow-lg: 0 2px 6px rgba(16, 23, 32, .06), 0 30px 70px -22px rgba(16, 23, 32, .30);
  /* Vertical rhythm comes from .tl-page on the same element, so Compete
     sits the same distance under the navbar as Activities does. */
}

[data-bs-theme="dark"] .tleagues-page {
  --tleagues-surface: linear-gradient(180deg, rgba(20, 29, 43, .9), rgba(12, 19, 29, .82));
  --tleagues-surface-border: rgba(222, 234, 247, .16);
  --tleagues-surface-shadow: 0 12px 26px rgba(0, 0, 0, .42);
  --tleagues-live-ink: var(--tl-live);
  --tleagues-ok: #d9ffe9;
  --tleagues-ok-bg: rgba(42, 196, 124, .22);
  --tleagues-terrain-a: #1B2114;
  --tleagues-terrain-b: #141A10;
  --tleagues-contour: #3A4730;
  --tleagues-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 40px -14px rgba(0, 0, 0, .6);
  --tleagues-shadow-lg: 0 2px 8px rgba(0, 0, 0, .5), 0 40px 90px -26px rgba(0, 0, 0, .75);
}

/* ------------------------------------------------------------------ */
/* Cockpit tab hero                                                    */
/* ------------------------------------------------------------------ */

.tleagues-hero { margin: 0 0 24px; }
.tleagues-hero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tleagues-kicker {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .5rem;
  font-family: var(--tl-font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--tl-muted);
}
.tleagues-kicker::before { content: ""; width: .85rem; height: 3px; border-radius: 2px; background: var(--tl-accent); flex: 0 0 auto; }
.tleagues-h1 {
  margin: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.04;
  font-weight: 800; letter-spacing: -.03em; color: var(--tl-ink); text-wrap: balance;
}
.tleagues-hero-sub { margin: .5rem 0 0; max-width: 60ch; color: var(--tl-muted); font-size: .95rem; }
.tleagues-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.8rem; margin-top: 1rem; }
.tleagues-sc {
  display: inline-flex; align-items: baseline; gap: .4rem;
  font-family: var(--tl-font-mono); font-size: .78rem;
  color: var(--tl-muted); text-transform: lowercase;
}
.tleagues-sc b { font-size: 1.02rem; font-weight: 600; color: var(--tl-ink); font-variant-numeric: tabular-nums; }
.tleagues-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ */
/* Filter pills                                                        */
/* ------------------------------------------------------------------ */

.tleagues-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 18px; }
.tleagues-filters .spacer { flex: 1; }
.tleagues-tab {
  border: 1px solid var(--tl-hairline); background: transparent;
  color: var(--tl-ink); font-weight: 600; font-size: .8rem;
  padding: 7px 15px; border-radius: 999px; cursor: pointer;
}
.tleagues-tab.active {
  background: rgba(var(--tl-accent-rgb), .12);
  border-color: rgba(var(--tl-accent-rgb), .44);
  color: var(--tl-accent);
}
.tleagues-tab:hover:not(.active) { border-color: var(--tl-accent); }
.tleagues-scope-ref { width: 130px; }
.tleagues-scope-select { width: auto; min-width: 220px; max-width: 300px; }

/* Place combobox */
.tleagues-combo { position: relative; }
.tleagues-combo-list {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 280px; max-height: 320px; overflow-y: auto; padding: 6px;
  background: var(--tl-panel);
  border: 1px solid var(--tl-hairline);
  border-radius: 12px; box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
  display: flex; flex-direction: column; gap: 2px;
}
.tleagues-combo-list.d-none { display: none; }
.tleagues-combo-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--tl-ink);
  font: inherit; font-size: .86rem; font-weight: 600; text-align: left; cursor: pointer;
}
.tleagues-combo-item span { font-size: .72rem; font-weight: 500; color: var(--tl-muted); white-space: nowrap; }
.tleagues-combo-item:hover { background: rgba(var(--tl-accent-rgb), .08); }
.tleagues-combo-empty { padding: 10px 12px; font-size: .82rem; color: var(--tl-muted); }

/* ------------------------------------------------------------------ */
/* Section heads + shared bits                                         */
/* ------------------------------------------------------------------ */

.tleagues-sect { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.tleagues-sect h2 { margin: 0; font-size: 1.15rem; font-weight: 750; letter-spacing: -.02em; }
.tleagues-sect a { font-size: .8rem; font-weight: 600; color: var(--tl-accent); text-decoration: none; }
.tleagues-sect a:hover { text-decoration: underline; }

.tleagues-desc { color: var(--tl-muted); max-width: 720px; }
.tleagues-meta-row {
  display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem;
  color: var(--tl-muted); margin-bottom: 16px;
}
.tleagues-meta-row i { margin-right: 4px; }
.tleagues-back { color: var(--tl-muted); text-decoration: none; }

.tleagues-spinner { text-align: center; padding: 60px 0; font-size: 1.6rem; color: var(--tl-accent); }
.tleagues-empty {
  border: 1px dashed var(--tl-hairline); border-radius: 12px;
  padding: 36px 20px; text-align: center; color: var(--tl-muted);
  background: rgba(var(--bs-emphasis-color-rgb, 11, 15, 20), .02);
}

/* Chips (soft, v1) */
.tleagues-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 650;
  line-height: 1; padding: .3rem .58rem; border-radius: 999px; letter-spacing: .02em; white-space: nowrap;
  background: rgba(var(--bs-emphasis-color-rgb, 11, 15, 20), .08); color: var(--tl-muted);
}
.tleagues-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tleagues-badge-accent { background: rgba(var(--tl-accent-rgb), .12); color: var(--tl-accent); }
.tleagues-badge-season { background: rgba(var(--tl-accent-rgb), .12); color: var(--tl-accent); }
.tleagues-badge-done, .tleagues-badge-ok { background: var(--tleagues-ok-bg); color: var(--tleagues-ok); text-transform: none; }

/* Athlete cells */
.tleagues-athlete { font-weight: 600; }
.tleagues-cc {
  font-family: var(--tl-font-mono); font-size: .62rem; font-weight: 600;
  color: var(--tl-muted); border: 1px solid var(--tl-hairline);
  border-radius: 4px; padding: 1px 4px; margin-left: 5px; vertical-align: middle;
}

/* ------------------------------------------------------------------ */
/* v1 cards (hub, challenges, leagues)                                 */
/* ------------------------------------------------------------------ */

.tleagues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tleagues-card {
  display: flex; flex-direction: column; gap: 11px; padding: 15px 16px;
  border: 1px solid var(--tl-hairline); border-radius: 14px;
  background: var(--tl-panel);
  box-shadow: var(--tl-lift);
  color: var(--tl-ink); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tleagues-card:hover { border-color: rgba(var(--tl-accent-rgb), .55); color: inherit; }
[data-nav] { cursor: pointer; }
.tleagues-card-flag { border-color: rgba(var(--tl-accent-rgb), .45); }
.tleagues-card-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tleagues-card-title { font-weight: 750; font-size: 1.04rem; letter-spacing: -.015em; margin: 0; }
.tleagues-card-goal, .tleagues-card-desc { font-size: .82rem; color: var(--tl-muted); margin: 0; }
.tleagues-card-sub { font-size: .77rem; color: var(--tl-muted); }
.tleagues-card-members { font-size: .77rem; color: var(--tl-muted); white-space: nowrap; }
.tleagues-card-foot { display: flex; gap: 7px; margin-top: auto; align-items: center; }
.tleagues-card-foot .btn { flex: 1; }
.tleagues-card-joined { font-size: .78rem; font-weight: 700; color: var(--tleagues-ok); }

/* Stat strip */
.tleagues-stats {
  display: flex; border: 1px solid var(--tl-hairline);
  border-radius: 10px; overflow: hidden; background: rgba(var(--bs-emphasis-color-rgb, 11, 15, 20), .03);
}
.tleagues-stats .s { flex: 1; padding: 7px 6px; text-align: center; border-right: 1px solid var(--tl-hairline); }
.tleagues-stats .s:last-child { border-right: 0; }
.tleagues-stats .s b { display: block; font-size: .98rem; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--tl-ink); }
.tleagues-stats .s span { font-size: .58rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tl-muted); font-weight: 700; }

/* Progress */
.tleagues-prog { height: 6px; border-radius: 4px; background: rgba(var(--bs-emphasis-color-rgb, 11, 15, 20), .08); overflow: hidden; }
.tleagues-prog i { display: block; height: 100%; border-radius: 4px; background: var(--tl-accent); }
.tleagues-prog-row {
  display: flex; justify-content: space-between;
  font-family: var(--tl-font-mono); font-size: .72rem;
  color: var(--tl-muted); margin-bottom: 5px;
}
.tleagues-prog-row b { color: var(--tl-ink); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Tables (standings, leaderboards) — clean v1                          */
/* ------------------------------------------------------------------ */

.tleagues-table-wrap {
  border: 1px solid var(--tl-hairline); border-radius: 14px;
  background: var(--tl-panel); box-shadow: var(--tl-lift);
  overflow-x: auto;
}
.tleagues-table { width: 100%; border-collapse: collapse; min-width: 540px; margin: 0; }
.tleagues-table th {
  text-align: left; font-family: var(--tl-font-mono);
  font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tl-muted); padding: 11px 14px;
  border-bottom: 1px solid var(--tl-hairline);
  background: transparent;
}
.tleagues-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--tl-hairline);
  font-size: .88rem; background: transparent;
}
.tleagues-table tr:last-child td { border-bottom: 0; }
.tleagues-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.tleagues-table .rank { font-family: var(--tl-font-mono); font-weight: 600; color: var(--tl-muted); width: 2.4em; }
.tleagues-table tr.podium .rank { color: var(--tl-accent); }
.tleagues-table b.pts { font-weight: 750; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ */
/* v2 record tiles (no hover lift)                                      */
/* ------------------------------------------------------------------ */

/* Three per row on desktop, so the activity stats have room to breathe. */
.tleagues-record-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .tleagues-record-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .tleagues-record-grid { grid-template-columns: repeat(3, 1fr); } }
.tleagues-record-card {
  padding: 15px 16px; border: 1px solid var(--tleagues-surface-border); border-radius: 16px;
  background: var(--tleagues-surface); box-shadow: var(--tleagues-surface-shadow);
  transition: border-color .15s ease;
}
.tleagues-record-card:hover { border-color: rgba(var(--tl-accent-rgb), .55); }
.tleagues-record-cat {
  font-family: var(--tl-font-mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--tl-muted);
}
.tleagues-record-value {
  font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--tl-accent); line-height: 1.15; font-variant-numeric: tabular-nums;
}
.tleagues-record-unit { font-size: .8rem; font-weight: 600; color: var(--tl-muted); margin-left: 4px; letter-spacing: 0; }
.tleagues-record-holder { margin-top: 5px; font-size: .86rem; font-weight: 650; }
.tleagues-record-date { font-family: var(--tl-font-mono); font-size: .68rem; color: var(--tl-muted); }
.tleagues-record-prev {
  margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--tl-hairline);
  font-family: var(--tl-font-mono); font-size: .66rem; color: var(--tl-muted);
}
.tleagues-record-stats {
  display: flex; flex-wrap: wrap; gap: 5px 14px;
  margin-top: 9px; padding-top: 9px;
  border-top: 1px solid rgba(var(--bs-emphasis-color-rgb, 11, 15, 20), .08);
  font-size: .78rem; color: var(--tl-muted);
}
.tleagues-record-stats span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tleagues-record-stats i { color: var(--tl-accent); opacity: .8; font-size: .72rem; }
.tleagues-record-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 9px;
  font-size: .8rem; font-weight: 600; color: var(--tl-accent); text-decoration: none;
}
.tleagues-record-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* v2 feed                                                              */
/* ------------------------------------------------------------------ */

.tleagues-feed-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.tleagues-feed-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px;
  border: 1px solid var(--tleagues-surface-border); border-radius: 16px;
  background: var(--tleagues-surface); box-shadow: var(--tleagues-surface-shadow);
  transition: border-color .18s ease;
}
.tleagues-feed-item:hover { border-color: rgba(var(--tl-accent-rgb), .55); }
.tleagues-feed-icon {
  flex: 0 0 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  background: rgba(var(--tl-accent-rgb), .09);
  border: 1px solid rgba(var(--tl-accent-rgb), .24);
  color: var(--tl-accent);
}
.tleagues-feed-icon.live { background: var(--tleagues-live-bg); border-color: var(--tleagues-live-border); color: var(--tleagues-live-ink); }
.tleagues-feed-text { font-size: .9rem; }
.tleagues-feed-text a { color: var(--tl-accent); text-decoration: none; font-weight: 600; }
.tleagues-feed-when {
  font-family: var(--tl-font-mono); font-size: .68rem;
  color: var(--tl-muted); margin-top: 3px;
}

/* ------------------------------------------------------------------ */
/* Compete hub                                                               */
/* ------------------------------------------------------------------ */

.tleagues-hub-hero {
  display: grid; gap: 22px; padding: 24px; border-radius: 18px; margin-bottom: 8px;
  border: 1px solid rgba(var(--tl-accent-rgb), .4);
  background:
    radial-gradient(130% 170% at 100% 0%, rgba(var(--tl-accent-rgb), .17), transparent 60%),
    var(--tl-panel);
  box-shadow: 0 10px 30px rgba(var(--tl-accent-rgb), .12);
}
@media (min-width: 880px) { .tleagues-hub-hero { grid-template-columns: 1.05fr .95fr; align-items: center; } }
.tleagues-hub-title {
  margin: 0; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.05;
  font-weight: 800; letter-spacing: -.03em; text-wrap: balance;
}
.tleagues-hub-map {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9;
  border: 1px solid var(--tl-hairline);
  background: rgba(var(--bs-emphasis-color-rgb, 11, 15, 20), .04);
}
.tleagues-hub-map canvas { width: 100%; height: 100%; display: block; }
.tleagues-hub-map .tleagues-hub-fab { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); }
.tleagues-hub-cols { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .tleagues-hub-cols { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.tleagues-hub-record { margin-bottom: 12px; }

/* ------------------------------------------------------------------ */
/* Create modals                                                       */
/* ------------------------------------------------------------------ */

.tleagues-modal-backdrop {
  position: fixed; inset: 0; z-index: 1080;
  background: rgba(10, 18, 36, .55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.tleagues-modal {
  width: 100%; max-width: min(760px, calc(100vw - 32px)); max-height: 92vh; overflow-y: auto;
  background: var(--tl-panel); border-radius: 14px;
  border: 1px solid var(--tl-hairline);
  box-shadow: 0 18px 60px rgba(6, 12, 28, .4);
}
.tleagues-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 750; padding: 14px 18px;
  border-bottom: 1px solid var(--tl-hairline);
}
.tleagues-modal-body { padding: 14px 18px; }
.tleagues-modal-foot {
  display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px;
  border-top: 1px solid var(--tl-hairline);
}
.tleagues-modal-lg { max-width: min(1024px, calc(100vw - 32px)); }

/* Help modal */
.tleagues-help-h {
  margin: 14px 0 6px; font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--tl-muted);
}
.tleagues-help-list { margin: 0; }
.tleagues-help-list dt { font-size: .88rem; font-weight: 700; margin-top: 8px; }
.tleagues-help-list dd { margin: 1px 0 0; font-size: .84rem; color: var(--tl-muted); }

/* Form hints + route attach list */
.tleagues-hint { font-size: .74rem; font-weight: 500; color: var(--tl-muted); }
.tleagues-attach-list {
  display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto;
  border: 1px solid var(--tl-hairline); border-radius: 10px; padding: 10px 12px;
}
.tleagues-attach-item .form-check-label { font-size: .88rem; font-weight: 600; }

/* Editor uploads: hover delete button + drop target */
.tleagues-att-del {
  position: absolute; z-index: 1100;
  width: 24px; height: 24px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(192, 67, 67, .95); color: #fff; font-size: .72rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35); cursor: pointer;
}
.tleagues-att-del:hover { background: #a83232; }
.wysiwyg-editor.tleagues-drop-target { outline: 2px dashed var(--tl-accent); outline-offset: -2px; }
.wysiwyg-editor img { max-width: 100%; height: auto; }

/* Rich text blocks (rules, prizes, descriptions) */
.tleagues-rich { max-width: 760px; font-size: .92rem; }
.tleagues-rich p { margin: 0 0 .6rem; }
.tleagues-rich h2, .tleagues-rich h3 { font-size: 1.02rem; font-weight: 750; margin: .9rem 0 .35rem; }
.tleagues-rich ul, .tleagues-rich ol { padding-left: 1.3rem; margin: 0 0 .6rem; }
.tleagues-rich img { max-width: 100%; height: auto; border-radius: 10px; }
.tleagues-rich a { color: var(--tl-accent); }

@media (max-width: 575.98px) {
  .tleagues-card-foot { flex-wrap: wrap; }
}

/* ==================================================================== */
/* V3 award-winning challenge / league design                           */
/* Cinematic activity-art hero, podium standings, generative cards,        */
/* prize cards and the join moment. Cobalt interactive, amber = you/live.*/
/* ==================================================================== */

.tleagues-page {
  --tleagues-disp: "Archivo", "Archivo Narrow", "Helvetica Neue", "Arial Narrow", system-ui, sans-serif;
}

.tleagues-v3 { display: block; }
.tleagues-v3 .mono { font-family: var(--tl-font-mono); font-variant-numeric: tabular-nums; }

/* Buttons (v3) --------------------------------------------------------- */
.tleagues-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 750 .92rem var(--bs-body-font-family); letter-spacing: .01em;
  padding: 13px 24px; border-radius: 13px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .16s cubic-bezier(.2, .8, .2, 1), box-shadow .16s, background .16s, color .16s;
}
.tleagues-btn-primary { background: var(--tl-accent); color: var(--tl-accent-ink); box-shadow: 0 8px 22px -8px rgba(var(--tl-accent-rgb), .7); }
.tleagues-btn-primary:hover { background: var(--tl-accent-hover); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(var(--tl-accent-rgb), .8); color: var(--tl-accent-ink); }
.tleagues-btn-ghost { background: transparent; color: var(--tl-ink); border-color: var(--tl-hairline); }
.tleagues-btn-ghost:hover { border-color: var(--tl-accent); color: var(--tl-accent); transform: translateY(-2px); }
.tleagues-btn-live { background: var(--tl-live); color: #1A1206; box-shadow: 0 8px 22px -8px rgba(var(--tl-live-rgb), .7); }
.tleagues-btn-live:hover { transform: translateY(-2px); filter: brightness(1.04); color: #1A1206; }
.tleagues-btn-lg { padding: 16px 30px; font-size: 1rem; border-radius: 15px; }
.tleagues-btn-sm { padding: 9px 16px; font-size: .84rem; border-radius: 10px; }

.tleagues-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--tl-font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--tl-muted);
}
.tleagues-eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--tl-accent); border-radius: 2px; }

/* A page kicker, not a section eyebrow. Inside a card or a section head the
   dash and the muted grey are right; at the top of a page they made Compete's
   five screens open differently from the other seven, which set the kicker in
   the CTA orange with no rule. The eyebrow keeps its own look everywhere it is
   still labelling a part of a page. */
.tleagues-hero-cine > .tleagues-hero-inner .tleagues-eyebrow,
.tleagues-lhero .tleagues-eyebrow {
  /* Block, like .tl-pagehead-kicker. An inline-flex sits on a text baseline
     and takes the line box's half-leading with it, which put the Challenges
     kicker 5px lower than the same kicker on Records. With the rule gone
     there is nothing left to flex anyway. */
  display: block;
  font-family: var(--tl-font-mono);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--tl-cta);
}

.tleagues-hero-cine > .tleagues-hero-inner .tleagues-eyebrow::before,
.tleagues-lhero .tleagues-eyebrow::before { content: none; }

.tleagues-v3 .tleagues-chip {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--tl-font-mono);
  font-size: .66rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .34rem .6rem; border-radius: 100px;
  background: rgba(var(--tl-accent-rgb), .12); color: var(--tl-accent);
}
.tleagues-v3 .tleagues-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tleagues-v3 .tleagues-chip-live { background: rgba(var(--tl-live-rgb), .18); color: color-mix(in srgb, var(--tl-live) 72%, var(--tl-ink)); }
.tleagues-v3 .tleagues-chip-ghost { background: rgba(var(--bs-emphasis-color-rgb, 11, 15, 20), .07); color: var(--tl-muted); }

/* Full-bleed cinematic hero ------------------------------------------- */
.tleagues-hero-cine {
  position: relative; overflow: hidden;
  /* Bleeds by reaching back through the page gutter, not by 100vw: a viewport
     unit counts the scrollbar, so the band hung 7px past the left edge and
     everything inside it landed 7px left of the logo and of the page below. */
  margin-inline: calc(-1 * var(--tl-page-gutter));
  /* Pulls back through the page frame so the band meets the navbar with no
     strip of paper between them. Reading the token rather than repeating its
     value is the point: the old -28px was the page padding of the day, and it
     stopped cancelling it the moment that padding changed. */
  margin-top: calc(-1 * var(--tl-page-top));
  border-bottom: 1px solid var(--tl-hairline);
}
.tleagues-hero-cine canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tleagues-hero-cine .tleagues-art-overlay { z-index: 1; }
.tleagues-hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--tl-paper) 30%, transparent) 0%, transparent 22%, transparent 55%, color-mix(in srgb, var(--tl-paper) 90%, transparent) 100%),
    linear-gradient(105deg, color-mix(in srgb, var(--tl-paper) 80%, transparent) 0%, color-mix(in srgb, var(--tl-paper) 32%, transparent) 48%, transparent 74%);
}
/* 74px of air above the title is right on a desktop and a third of a phone
   screen, so the band breathes on a clamp like the page frame does. */
/* Opens at the page frame's own top, so Records and Feed start their kicker
   at the same height as Activities and Clubs. The band was 72px in from
   the navbar against everybody else's 40, which is 32px of terrain nobody
   asked for on every one of these pages. */
.tleagues-hero-inner { position: relative; z-index: 3; padding: var(--tl-page-top) var(--tl-page-gutter, 1.5rem) var(--tl-page-top); }
.tleagues-hero-cine .tleagues-hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
/* The kit's .tl-pagehead-title scale. "Records" was rendering at 67px with
   "Public Activities" one menu click away at 42px. */
.tleagues-hero-cine h1 { font-family: var(--tleagues-disp); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: .35rem 0 0; text-wrap: balance; color: var(--tl-ink); }
.tleagues-hero-lede { margin: .5rem 0 0; max-width: 60ch; font-size: .95rem; color: var(--tl-muted); }
.tleagues-hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
/* Both columns start at the top. align-items: end hung the title off the
   bottom of the taller card beside it, which on the hub put 175px of empty
   terrain between the season line and the headline. */
@media (min-width: 940px) { .tleagues-hero-grid { grid-template-columns: 1.35fr .65fr; align-items: start; } }

.tleagues-instruments { display: flex; flex-wrap: wrap; gap: .6rem 2.25rem; margin-top: 1.25rem; }
.tleagues-inst { display: flex; flex-direction: column; gap: 2px; }
.tleagues-inst .k { font-family: var(--tl-font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tl-dim); }
.tleagues-inst .v { font-family: var(--tleagues-disp); font-weight: 800; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--tl-ink); }
.tleagues-inst .v small { font-size: .9rem; font-weight: 650; color: var(--tl-muted); margin-left: 3px; letter-spacing: 0; }
.tleagues-inst.hot .v { color: var(--tl-terra); }

.tleagues-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.tleagues-hero-cta .note { font-size: .86rem; color: var(--tl-muted); }
.tleagues-hero-cta .note b { color: var(--tl-ink); font-family: var(--tl-font-mono); }

/* "Your standing" glass card ------------------------------------------ */
.tleagues-you-card {
  background: color-mix(in srgb, var(--tl-panel) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--tl-hairline); border-radius: 20px; padding: 20px; box-shadow: var(--tleagues-shadow-lg);
}
.tleagues-you-card .lbl { font-family: var(--tl-font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tl-muted); }
.tleagues-ring-wrap { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.tleagues-ring { position: relative; width: 104px; height: 104px; flex: 0 0 auto; }
.tleagues-ring svg { transform: rotate(-90deg); }
/* Padding keeps the value clear of the ring stroke so it reads centered. */
.tleagues-ring .mid { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 16px; }
.tleagues-ring .mid b { font-family: var(--tleagues-disp); font-weight: 800; font-size: 1.3rem; line-height: 1; color: var(--tl-ink); }
.tleagues-ring .mid span { font-family: var(--tl-font-mono); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tl-muted); }
.tleagues-you-stats { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* .srow, not .row: Bootstrap's grid .row forces width:100% on children,
   which would stack the label and value and blow up the card height. */
.tleagues-you-stats .srow { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: .9rem; }
.tleagues-you-stats .srow > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tleagues-you-stats .srow b { font-family: var(--tl-font-mono); white-space: nowrap; }
.tleagues-you-rank { color: var(--tl-accent); }

/* Sections ------------------------------------------------------------- */
/* v3 sections stack: the section head sits above full-width content,
   overriding the v1 flex row (title left / link right). */
.tleagues-v3 .tleagues-sect { display: block; margin: 0; padding: 52px 0 0; }
.tleagues-v3 .tleagues-sect-tight { display: block; margin: 0; padding: 34px 0 0; }
.tleagues-sec-head { margin-bottom: 24px; }
.tleagues-sec-head h2 { font-family: var(--tleagues-disp); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: .5rem 0 0; color: var(--tl-ink); }
.tleagues-sec-head p { margin: .5rem 0 0; color: var(--tl-muted); }

/* Rich content (creator story) ---------------------------------------- */
.tleagues-v3 .tleagues-rich { font-size: 1.05rem; max-width: 68ch; color: color-mix(in srgb, var(--tl-ink) 88%, var(--tl-muted)); }
.tleagues-v3 .tleagues-rich > * + * { margin-top: 1.05rem; }
.tleagues-v3 .tleagues-rich h2, .tleagues-v3 .tleagues-rich h3 { font-family: var(--tleagues-disp); font-weight: 800; font-size: 1.3rem; margin-top: 1.7rem; color: var(--tl-ink); }
.tleagues-v3 .tleagues-rich ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.tleagues-v3 .tleagues-rich ul li { position: relative; padding-left: 1.9rem; }
.tleagues-v3 .tleagues-rich ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: .85rem; height: 2px; background: var(--tl-accent); }
.tleagues-v3 .tleagues-rich img { max-width: 100%; height: auto; border-radius: 12px; }
.tleagues-v3 .tleagues-rich strong { color: var(--tl-ink); }

/* Social proof strip --------------------------------------------------- */
.tleagues-proof { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; padding: 20px 0; margin-top: 34px; border-top: 1px solid var(--tl-hairline); border-bottom: 1px solid var(--tl-hairline); }
.tleagues-proof .p { display: flex; align-items: center; gap: 10px; }
.tleagues-proof .p .n { font-family: var(--tleagues-disp); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: var(--tl-ink); }
.tleagues-proof .p .l { font-family: var(--tl-font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tl-muted); line-height: 1.25; }

/* Avatars (initials, deterministic colour) ---------------------------- */
.tleagues-av { border-radius: 50%; display: grid; place-items: center; color: var(--tl-paper, #F3F2EC); font-family: var(--tleagues-disp); font-weight: 800; flex: 0 0 auto; overflow: hidden; }
.tleagues-av.has-photo { background: var(--tl-paper-deep); }
.tleagues-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tleagues-avstack { display: flex; }
.tleagues-avstack .tleagues-av { width: 28px; height: 28px; font-size: .68rem; margin-left: -9px; border: 2px solid var(--tl-panel); }
.tleagues-avstack .tleagues-av:first-child { margin-left: 0; }
.tleagues-avstack .more { width: 28px; height: 28px; border-radius: 50%; margin-left: -9px; border: 2px solid var(--tl-panel); background: rgba(var(--bs-emphasis-color-rgb, 11, 15, 20), .06); color: var(--tl-muted); display: grid; place-items: center; font: 650 .64rem var(--tl-font-mono); }

/* Leaderboard: podium + rows ------------------------------------------ */
.tleagues-board { border: 1px solid var(--tl-hairline); border-radius: 22px; background: var(--tl-panel); box-shadow: var(--tleagues-shadow); overflow: hidden; }
.tleagues-podium { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px solid var(--tl-hairline); background: linear-gradient(180deg, rgba(var(--tl-accent-rgb), .05), var(--tl-panel)); }
.tleagues-pod { padding: 26px 14px 22px; text-align: center; position: relative; }
.tleagues-pod + .tleagues-pod { border-left: 1px solid var(--tl-hairline); }
.tleagues-pod .medal { font-family: var(--tleagues-disp); font-weight: 800; font-size: 1rem; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; margin: 0 auto 10px; }
.tleagues-pod.p1 .medal { background: var(--tl-accent); color: #1A1206; box-shadow: 0 6px 18px -6px rgba(var(--tl-accent-rgb), .8); }
.tleagues-pod.p2 .medal, .tleagues-pod.p3 .medal { background: rgba(var(--bs-emphasis-color-rgb, 11, 15, 20), .06); color: var(--tl-ink); border: 1px solid var(--tl-hairline); }
.tleagues-pod .tleagues-av { width: 52px; height: 52px; font-size: 1.15rem; margin: 0 auto 10px; }
.tleagues-pod.p1 .tleagues-av { width: 64px; height: 64px; font-size: 1.4rem; }
.tleagues-pod .nm { font-weight: 750; font-size: .98rem; color: var(--tl-ink); }
.tleagues-pod .cc { font-family: var(--tl-font-mono); font-size: .6rem; color: var(--tl-muted); border: 1px solid var(--tl-hairline); border-radius: 4px; padding: 0 4px; margin-left: 5px; }
.tleagues-pod .pts { font-family: var(--tleagues-disp); font-weight: 800; font-size: 1.55rem; margin-top: 6px; letter-spacing: -.02em; color: var(--tl-ink); }
.tleagues-pod .pts small { font-size: .7rem; color: var(--tl-muted); font-weight: 650; }
.tleagues-pod.p1 .pts { color: var(--tl-accent); font-size: 2rem; }
/* An activity in the feed --------------------------------------------- */
/* A recorded day has a name and a row of numbers people read it by, so it
   gets a card. The one-line rows below still carry everything else. */
.tleagues-acard { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-top: 1px solid var(--tl-hairline); cursor: pointer; transition: background-color .15s ease; }
.tleagues-acard:first-child { border-top: 0; }
.tleagues-acard:hover { background: color-mix(in srgb, var(--tl-accent) 4%, transparent); }
.tleagues-acard-head { display: flex; align-items: center; gap: 12px; }
.tleagues-acard-head .tleagues-av { width: 40px; height: 40px; }
.tleagues-acard-head .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tleagues-acard-head .nm { font-weight: 650; color: var(--tl-ink); }
.tleagues-acard-head .wh { font-family: var(--tl-font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tl-dim); }
.tleagues-acard-title { font-family: var(--tleagues-disp); font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.45rem); letter-spacing: -.02em; margin: 0; color: var(--tl-ink); }
.tleagues-acard-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--tl-font-mono); font-size: .74rem; color: var(--tl-muted); font-variant-numeric: tabular-nums; }
.tleagues-acard-social { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--tl-font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tl-dim); }

/* The compete hub's season dashboard ----------------------------------- */

/* Which season, on what terms, and whose club. The page opened straight into
   a product headline with no statement of the period its numbers covered. */
.tleagues-seasonline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 10px; font-family: var(--tl-font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.tleagues-seasonline-year { color: var(--tl-ink); font-weight: 500; }
.tleagues-seasonline-note,
.tleagues-seasonline-club { color: var(--tl-dim); }
.tleagues-seasonline-club b { color: var(--tl-accent); font-weight: 500; }

/* The featured challenge: art on the left, the pitch on the right. */
.tleagues-featured { display: grid; grid-template-columns: 1fr; border: 1px solid var(--tl-hairline); border-radius: 16px; background: var(--tl-panel); overflow: hidden; cursor: pointer; box-shadow: var(--tleagues-shadow); transition: border-color .15s ease; }
.tleagues-featured:hover { border-color: var(--tl-accent); }
@media (min-width: 820px) { .tleagues-featured { grid-template-columns: .9fr 1.1fr; } }
.tleagues-featured-art { position: relative; min-height: 170px; }
.tleagues-featured-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tleagues-featured-body { padding: 22px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tleagues-featured-meta { font-family: var(--tl-font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tl-dim); }
.tleagues-featured-body h3 { font-family: var(--tleagues-disp); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -.02em; margin: 0; color: var(--tl-ink); }
.tleagues-featured-body p { margin: 0; font-size: .94rem; color: var(--tl-muted); line-height: 1.5; }

/* The challenges the reader is chasing: a bar and a rank, together. */
.tleagues-mychal { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 780px) { .tleagues-mychal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tleagues-mychal-row { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; border: 1px solid var(--tl-hairline); border-radius: 12px; background: var(--tl-panel); cursor: pointer; transition: border-color .15s ease; }
.tleagues-mychal-row:hover { border-color: var(--tl-accent); }
.tleagues-mychal-row .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tleagues-mychal-row .t { font-weight: 650; font-size: .98rem; color: var(--tl-ink); }
.tleagues-mychal-row .left { font-family: var(--tl-font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tl-cta); white-space: nowrap; }
.tleagues-mychal-row .bot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--tl-font-mono); font-size: .7rem; }
.tleagues-mychal-row .bot .v { color: var(--tl-muted); }
.tleagues-mychal-row .bot .r { color: var(--tl-dim); white-space: nowrap; }

/* Clubs by the vertical their members logged. */
.tleagues-clubboard { border: 1px solid var(--tl-hairline); border-radius: 12px; background: var(--tl-panel); overflow: hidden; }
.tleagues-clubrow { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 20px; border-top: 1px solid var(--tl-hairline); }
.tleagues-clubrow:first-child { border-top: 0; }
.tleagues-clubrow.is-mine { background: color-mix(in srgb, var(--tl-accent) 8%, transparent); }
.tleagues-clubrow .rk { font-family: var(--tleagues-disp); font-weight: 800; font-size: 1.05rem; color: var(--tl-dim); font-variant-numeric: tabular-nums; }
.tleagues-clubrow:first-child .rk { color: var(--tl-cta); }
.tleagues-clubrow .nm { display: flex; flex-direction: column; gap: 2px; font-weight: 600; min-width: 0; color: var(--tl-ink); }
.tleagues-clubrow .nm .sub { font-family: var(--tl-font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tl-dim); font-weight: 400; }
.tleagues-clubrow .pt { font-family: var(--tl-font-mono); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tl-ink); }
.tleagues-clubrow .pt small { color: var(--tl-muted); font-weight: 400; }

/* The reader's own season, in four numbers. */
.tleagues-seasonstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 700px) { .tleagues-seasonstats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tleagues-seasonstats .m { padding: 16px 18px; border: 1px solid var(--tl-hairline); border-radius: 12px; background: var(--tl-panel); }
.tleagues-seasonstats .v { font-family: var(--tleagues-disp); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; line-height: 1; color: var(--tl-ink); }
.tleagues-seasonstats .v small { font-size: .45em; font-weight: 650; color: var(--tl-muted); margin-left: 3px; }
.tleagues-seasonstats .k { margin-top: 6px; font-family: var(--tl-font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tl-dim); }

/* The two challenge sections ------------------------------------------ */
.tleagues-csect { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.tleagues-csect-kicker { font-family: var(--tl-font-mono); font-size: .69rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tl-dim); }

/* Rank, who, their sub-line, their share of the leader, their total. The
   share bar is the column the board was missing: without it a running order
   says who is ahead but never by how much. */
.tleagues-lrow { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto minmax(0, 14rem) auto; gap: 12px 16px; align-items: center; padding: 13px 20px; border-top: 1px solid var(--tl-hairline); }

.tleagues-lrow.head { background: var(--tl-paper-deep, #EFEDE2); padding-block: 8px; }
.tleagues-lrow.head span { font-family: var(--tl-font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tl-dim); font-weight: 400; }
.tleagues-lrow.head .pt { text-align: right; }

.tleagues-lrow .shr { min-width: 0; }
.tleagues-lrow .shr .bar { display: block; height: 8px; border-radius: 4px; background: var(--tl-paper-deep, #EFEDE2); overflow: hidden; }
.tleagues-lrow .shr .bar > span { display: block; height: 100%; border-radius: inherit; background: var(--tl-accent-2, #7A8F6A); }
.tleagues-lrow.you .shr .bar > span { background: var(--tl-accent); }

@media (max-width: 767.98px) {
  /* No room for a bar next to a name and a number on a phone. */
  .tleagues-lrow { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .tleagues-lrow .shr { display: none; }
  .tleagues-lrow.head .shr { display: none; }
}
.tleagues-lrow.you { background: rgba(var(--tl-accent-rgb), .10); }
.tleagues-lrow .rk { font-family: var(--tl-font-mono); font-weight: 600; color: var(--tl-muted); }
.tleagues-lrow.you .rk { color: var(--tl-accent); }
.tleagues-lrow .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tleagues-lrow .tleagues-av { width: 32px; height: 32px; font-size: .8rem; }
.tleagues-lrow .nm { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--tl-ink); }
.tleagues-lrow .youtag { font-family: var(--tl-font-mono); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: #1A1206; background: var(--tl-accent); padding: 1px 5px; border-radius: 4px; margin-left: 6px; }
.tleagues-lrow .fl { font-family: var(--tl-font-mono); font-size: .82rem; color: var(--tl-muted); }
.tleagues-lrow .pt { font-family: var(--tl-font-mono); font-weight: 650; font-size: .98rem; min-width: 5.5rem; text-align: right; color: var(--tl-ink); }
.tleagues-board-foot { padding: 14px 20px; text-align: center; border-top: 1px solid var(--tl-hairline); }
.tleagues-board-foot a { font-family: var(--tl-font-mono); font-size: .8rem; color: var(--tl-accent); text-decoration: none; }
.tleagues-rows { display: flex; flex-direction: column; }
/* Detail sections align to the hero's 1120 reading column. */
.tleagues-v3 .tleagues-wrap { padding-inline: var(--tl-page-gutter, 1.5rem); }

/* Fine-print fact chips under the hero -------------------------------- */
.tleagues-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tleagues-facts .f { font-family: var(--tl-font-mono); font-size: .72rem; letter-spacing: .03em; color: var(--tl-muted); border: 1px solid var(--tl-hairline); border-radius: 100px; padding: 5px 12px; }
.tleagues-xcard .foot .tleagues-card-members { display: inline-flex; align-items: center; gap: 5px; font-family: var(--tl-font-mono); }

/* Prize / scoring cards ----------------------------------------------- */
.tleagues-prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tleagues-prize { position: relative; border: 1px solid var(--tl-hairline); border-radius: 18px; padding: 22px 20px 20px; background: var(--tl-panel); box-shadow: var(--tleagues-shadow); overflow: hidden; }
.tleagues-prize::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--tl-accent), transparent); }
.tleagues-prize.gold::before { background: linear-gradient(90deg, var(--tl-accent), color-mix(in srgb, var(--tl-accent) 30%, transparent)); }
.tleagues-prize .pl { font-family: var(--tl-font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tl-muted); }
.tleagues-prize .pv { font-family: var(--tleagues-disp); font-weight: 800; font-size: 1.6rem; margin-top: 6px; letter-spacing: -.02em; color: var(--tl-ink); }
.tleagues-prize .pd { font-size: .9rem; color: var(--tl-muted); margin-top: 4px; }
.tleagues-prize .rankbadge { position: absolute; top: 14px; right: 16px; font-family: var(--tleagues-disp); font-weight: 800; font-size: 2.4rem; color: rgba(var(--bs-emphasis-color-rgb, 11, 15, 20), .08); line-height: 1; }

/* Sticky join bar ------------------------------------------------------ */
.tleagues-sticky { position: sticky; bottom: 16px; z-index: 30; display: flex; justify-content: center; margin: 44px 0 8px; }
.tleagues-sticky .inner { display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 22px; background: var(--tl-ink); color: var(--tl-paper); border-radius: 18px; box-shadow: var(--tleagues-shadow-lg); }
.tleagues-sticky .inner .t { font-weight: 700; }
.tleagues-sticky .inner .s { font-family: var(--tl-font-mono); font-size: .74rem; opacity: .7; }

/* Generative list cards ----------------------------------------------- */
/* Challenges and Leagues open the way Activities, Rankings, Clubs and
   Competitions do, so the four sizes below are the kit's .tl-pagehead-title
   and .tl-pagehead-sub, not a second set. Left on its own scale the word
   "Challenges" came out a third larger than "Public Activities" one menu
   click away. The page frame owns the space above; the padding here only
   holds the header off the controls under it, at the same 1.25rem the KPI
   strip uses elsewhere. */
.tleagues-lhero { padding: 0 0 1.25rem; }
.tleagues-lhero h1 { font-family: var(--tleagues-disp); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: .35rem 0 0; color: var(--tl-ink); text-wrap: balance; }
.tleagues-lhero p { color: var(--tl-muted); max-width: 60ch; margin: .5rem 0 0; font-size: .95rem; }
.tleagues-xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.tleagues-xcard { position: relative; border: 1px solid var(--tl-hairline); border-radius: 22px; overflow: hidden; background: var(--tl-panel); box-shadow: var(--tleagues-shadow); display: flex; flex-direction: column; cursor: pointer; transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, border-color .2s; }
.tleagues-xcard:hover { transform: translateY(-4px); box-shadow: var(--tleagues-shadow-lg); border-color: color-mix(in srgb, var(--tl-accent) 45%, var(--tl-hairline)); }
.tleagues-xcard-art { position: relative; aspect-ratio: 16 / 6.6; }
.tleagues-xcard-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tleagues-xcard-art .top { position: absolute; inset: 12px 12px auto 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tleagues-xcard-art .flag { font-family: var(--tl-font-mono); font-weight: 600; font-size: .72rem; color: #fff; background: rgba(8, 14, 22, .55); border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px; padding: 3px 8px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tleagues-xcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tleagues-xcard-body h3 { font-family: var(--tleagues-disp); font-weight: 800; letter-spacing: -.02em; font-size: 1.3rem; margin: 0; color: var(--tl-ink); }
.tleagues-goalbig { font-family: var(--tleagues-disp); font-weight: 800; font-size: 1.95rem; letter-spacing: -.03em; line-height: 1; color: var(--tl-ink); }
.tleagues-goalbig small { font-size: .8rem; color: var(--tl-muted); font-weight: 650; margin-left: 4px; letter-spacing: 0; }
.tleagues-goalk { font-family: var(--tl-font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tl-muted); }
.tleagues-xcard .desc { font-size: .92rem; color: var(--tl-muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tleagues-xcard .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 10px; }
.tleagues-joinmini { font: 750 .82rem var(--bs-body-font-family); color: var(--tl-accent); display: inline-flex; align-items: center; gap: 6px; }
.tleagues-joinmini.done { color: var(--tl-brand-green); }
.tleagues-miniprog { height: 5px; border-radius: 3px; background: rgba(var(--bs-emphasis-color-rgb, 11, 15, 20), .08); overflow: hidden; }
.tleagues-miniprog i { display: block; height: 100%; border-radius: 3px; background: var(--tl-accent); }
.tleagues-prog-line { display: flex; justify-content: space-between; font-family: var(--tl-font-mono); font-size: .72rem; color: var(--tl-muted); margin-bottom: 5px; }
.tleagues-prog-line b { color: var(--tl-ink); }

/* Join moment ---------------------------------------------------------- */
.tleagues-join-modal { position: fixed; inset: 0; z-index: 1090; display: grid; place-items: center; padding: 24px; overflow: hidden; }
.tleagues-join-modal canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tleagues-join-modal .scrim { position: absolute; inset: 0; background: radial-gradient(130% 100% at 50% 0%, rgba(8, 12, 20, .3), color-mix(in srgb, var(--tl-paper) 82%, transparent) 74%); }
.tleagues-joincard { position: relative; max-width: 480px; width: 100%; background: var(--tl-panel); border: 1px solid var(--tl-hairline); border-radius: 26px; padding: 38px 34px; box-shadow: var(--tleagues-shadow-lg); text-align: center; }
.tleagues-joinseal { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: var(--tl-brand-green); color: #1A1206; font-size: 1.8rem; box-shadow: 0 12px 30px -8px rgba(var(--tl-brand-green-rgb), .7); }
@media (prefers-reduced-motion: no-preference) { .tleagues-joinseal { animation: tleagues-pop .5s cubic-bezier(.2, 1.4, .4, 1); } }
@keyframes tleagues-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tleagues-joincard .tleagues-eyebrow { justify-content: center; }
.tleagues-joincard h2 { font-family: var(--tleagues-disp); font-weight: 800; letter-spacing: -.02em; font-size: 2rem; margin: 8px 0 0; color: var(--tl-ink); }
.tleagues-joincard p { color: var(--tl-muted); margin: 10px 0 0; }
.tleagues-joincard .rankrow { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 24px 0; padding: 18px; background: rgba(var(--bs-emphasis-color-rgb, 11, 15, 20), .04); border-radius: 16px; }
.tleagues-joincard .rankrow .big { font-family: var(--tleagues-disp); font-weight: 800; font-size: 2.6rem; letter-spacing: -.03em; color: var(--tl-accent); line-height: 1; }
.tleagues-joincard .rankrow .lbl { font-family: var(--tl-font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tl-muted); text-align: left; line-height: 1.5; }
.tleagues-joincard .acts { display: flex; gap: 10px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }

@media (max-width: 560px) {
}

/* ==================================================================== */
/* v3 Hub, Records and Feed                                             */
/* Reuses the shared v3 primitives (hero-cine, instruments, eyebrow,    */
/* chip, btn, av, xcard). Below are the surfaces unique to these three. */
/* ==================================================================== */

/* Section head with an optional right-side link (hub columns, records) */
.tleagues-v3 .tleagues-sect-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.tleagues-v3 .tleagues-sect-head h2 { font-family: var(--tleagues-disp); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.4rem, 2.6vw, 2rem); margin: .35rem 0 0; color: var(--tl-ink); }
.tleagues-v3 .tleagues-sect-head .link { font-family: var(--tl-font-mono); font-size: .78rem; color: var(--tl-accent); text-decoration: none; white-space: nowrap; }
.tleagues-v3 .tleagues-sect-head .link:hover { text-decoration: underline; }

/* Glass planner card (hub hero right) --------------------------------- */
.tleagues-glass { position: relative; background: color-mix(in srgb, var(--tl-panel) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--tl-hairline); border-radius: 20px; padding: 18px; box-shadow: var(--tleagues-shadow-lg); }
.tleagues-glass .lbl { font-family: var(--tl-font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tl-muted); }
/* 16/10 made the card 130px taller than the column of copy beside it, and
   the band stretched to the taller of the two: a strip of empty terrain
   under the buttons on every visit to the hub. A wider ratio ends the two
   columns together. */
.tleagues-glass-map { position: relative; margin-top: 10px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 7; border: 1px solid var(--tl-hairline); }
.tleagues-glass-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tleagues-glass-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; }
.tleagues-glass-row .t { font-family: var(--tleagues-disp); font-weight: 800; font-size: 1.02rem; color: var(--tl-ink); }
.tleagues-glass-row .s { font-family: var(--tl-font-mono); font-size: .72rem; color: var(--tl-muted); }
/* The call to action is two words; it should not wrap because the sentence
   beside it wanted one more character. */
.tleagues-glass-row > a { flex: 0 0 auto; white-space: nowrap; }

/* Season Challenge spotlight (hub) ------------------------------------ */
.tleagues-spotlight { position: relative; overflow: hidden; border: 1px solid var(--tl-hairline); border-radius: 24px; background: var(--tl-panel); box-shadow: var(--tleagues-shadow); }
.tleagues-spot-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 820px) { .tleagues-spot-grid { grid-template-columns: .9fr 1.1fr; } }
.tleagues-spot-art { position: relative; min-height: 210px; }
.tleagues-spot-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tleagues-spot-art .tag { position: absolute; top: 16px; left: 16px; z-index: 1; }
.tleagues-spot-body { padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.tleagues-spot-body h2 { font-family: var(--tleagues-disp); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0; color: var(--tl-ink); }
.tleagues-spot-body p { color: var(--tl-muted); margin: 0; max-width: 46ch; }
.tleagues-spot-metrics { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 2px; }
.tleagues-spot-metrics .m .v { font-family: var(--tleagues-disp); font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; color: var(--tl-ink); }
.tleagues-spot-metrics .m .v small { font-size: .72rem; color: var(--tl-muted); font-weight: 650; }
.tleagues-spot-metrics .m.hot .v { color: var(--tl-terra); }
.tleagues-spot-metrics .m .k { font-family: var(--tl-font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tl-muted); }
.tleagues-spot-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* Hub two columns + explore cards ------------------------------------- */
.tleagues-hubcols { display: grid; grid-template-columns: 1fr; gap: 34px; }
@media (min-width: 900px) { .tleagues-hubcols { grid-template-columns: 1.15fr .85fr; } }
.tleagues-xcard-body p { margin: 0; font-size: .92rem; color: var(--tl-muted); }
.tleagues-xcard .go { margin-top: 6px; font: 750 .82rem var(--bs-body-font-family); color: var(--tl-accent); display: inline-flex; align-items: center; gap: 6px; }

/* Feed: live-now strip + typed timeline ------------------------------- */
.tleagues-livestrip { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.tleagues-livecard { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--tl-live) 40%, var(--tl-hairline)); background: color-mix(in srgb, var(--tl-live) 7%, var(--tl-panel)); box-shadow: var(--tleagues-shadow); }
.tleagues-livecard .tleagues-av { width: 44px; height: 44px; }
.tleagues-livecard .who { font-weight: 750; color: var(--tl-ink); }
.tleagues-livecard .where { font-family: var(--tl-font-mono); font-size: .72rem; color: var(--tl-muted); }
.tleagues-pulse { position: relative; }
.tleagues-pulse::after { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--tl-live); }
@media (prefers-reduced-motion: no-preference) { .tleagues-pulse::after { animation: tleagues-pulse 1.8s infinite; } }
@keyframes tleagues-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--tl-live-rgb), .6); } 70% { box-shadow: 0 0 0 10px rgba(var(--tl-live-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--tl-live-rgb), 0); } }

.tleagues-feed { border: 1px solid var(--tl-hairline); border-radius: 20px; background: var(--tl-panel); box-shadow: var(--tleagues-shadow); overflow: hidden; margin-top: 22px; }
.tleagues-frow { display: grid; grid-template-columns: auto auto 1fr auto; gap: 14px; align-items: center; padding: 15px 20px; border-top: 1px solid var(--tl-hairline); }
.tleagues-frow:first-child { border-top: 0; }
.tleagues-frow.live { background: color-mix(in srgb, var(--tl-live) 8%, transparent); box-shadow: inset 3px 0 0 var(--tl-live); }
.tleagues-frow .tleagues-av { width: 40px; height: 40px; }
.tleagues-ficon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: .95rem; flex: 0 0 auto; }
.tleagues-ficon.activity { background: rgba(var(--tl-accent-rgb), .15); color: var(--tl-accent); }
.tleagues-ficon.record { background: rgba(var(--tl-accent-rgb), .18); color: color-mix(in srgb, var(--tl-accent) 78%, var(--tl-ink)); }
.tleagues-ficon.challenge { background: color-mix(in srgb, var(--tl-accent) 16%, transparent); color: var(--tl-accent); }
.tleagues-ficon.route { background: color-mix(in srgb, var(--tl-terra) 16%, transparent); color: var(--tl-terra); }
.tleagues-ficon.live { background: var(--tl-live); color: #1A1206; }
.tleagues-fbody .txt { font-size: .98rem; color: var(--tl-ink); }
.tleagues-fbody .txt b { font-weight: 750; }
.tleagues-fbody .txt .val { font-family: var(--tl-font-mono); font-weight: 650; }
.tleagues-fbody .when { font-family: var(--tl-font-mono); font-size: .72rem; color: var(--tl-dim); margin-top: 2px; }
.tleagues-fbody .cc { font-family: var(--tl-font-mono); font-size: .58rem; color: var(--tl-muted); border: 1px solid var(--tl-hairline); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.tleagues-faction a { font-family: var(--tl-font-mono); font-size: .76rem; color: var(--tl-accent); text-decoration: none; white-space: nowrap; }
.tleagues-faction a:hover { text-decoration: underline; }
@media (max-width: 640px) { .tleagues-frow { grid-template-columns: auto 1fr; } .tleagues-frow .tleagues-ficon { display: none; } .tleagues-faction { grid-column: 2; } }

/* Records: the featured top record + the category board ---------------- */
.tleagues-toprec { position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--tl-terra) 45%, var(--tl-hairline)); border-radius: 24px; background: var(--tl-panel); box-shadow: var(--tleagues-shadow-lg); }
.tleagues-toprec::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--tl-terra), color-mix(in srgb, var(--tl-terra) 20%, transparent)); z-index: 1; }
.tleagues-toprec-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 820px) { .tleagues-toprec-grid { grid-template-columns: 1.05fr .95fr; } }
.tleagues-toprec-art { position: relative; min-height: 230px; }
.tleagues-toprec-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tleagues-toprec-body { padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.tleagues-toprec-body .cat { font-family: var(--tl-font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tl-muted); }
.tleagues-toprec-body .big { font-family: var(--tleagues-disp); font-weight: 800; font-size: clamp(3rem, 6vw, 4.6rem); line-height: .9; letter-spacing: -.03em; color: var(--tl-terra); }
.tleagues-toprec-body .big small { font-size: 1.1rem; color: var(--tl-muted); font-weight: 650; margin-left: 6px; letter-spacing: 0; }
.tleagues-holder { display: flex; align-items: center; gap: 12px; }
.tleagues-holder .tleagues-av { width: 46px; height: 46px; }
.tleagues-holder .nm { font-weight: 750; color: var(--tl-ink); }
.tleagues-holder .sub { font-family: var(--tl-font-mono); font-size: .72rem; color: var(--tl-muted); }
.tleagues-rstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-top: 2px; }
.tleagues-rstat { border: 1px solid var(--tl-hairline); border-radius: 12px; padding: 10px 12px; }
.tleagues-rstat .k { font-family: var(--tl-font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tl-dim); }
.tleagues-rstat .v { font-family: var(--tl-font-mono); font-weight: 650; font-size: .92rem; margin-top: 2px; color: var(--tl-ink); }
.tleagues-rprev { font-family: var(--tl-font-mono); font-size: .74rem; color: var(--tl-muted); }
.tleagues-rprev b { color: var(--tl-ink); }

.tleagues-rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 22px; }
.tleagues-reccard { position: relative; border: 1px solid var(--tl-hairline); border-radius: 18px; padding: 20px; background: var(--tl-panel); box-shadow: var(--tleagues-shadow); overflow: hidden; display: flex; flex-direction: column; gap: 12px; transition: transform .18s, box-shadow .18s; }
.tleagues-reccard:hover { transform: translateY(-3px); box-shadow: var(--tleagues-shadow-lg); }
.tleagues-reccard::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: var(--tl-accent); opacity: .5; }
.tleagues-reccard.gold::before { background: var(--tl-terra); opacity: 1; }
.tleagues-reccard .cat { font-family: var(--tl-font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tl-muted); }
.tleagues-reccard .val { font-family: var(--tleagues-disp); font-weight: 800; font-size: 2.4rem; line-height: 1; letter-spacing: -.03em; color: var(--tl-ink); }
.tleagues-reccard .val small { font-size: .82rem; color: var(--tl-muted); font-weight: 650; margin-left: 4px; letter-spacing: 0; }
.tleagues-reccard.gold .val { color: var(--tl-terra); }
.tleagues-reccard .tleagues-holder .tleagues-av { width: 34px; height: 34px; }
.tleagues-reccard .tleagues-holder .nm { font-weight: 700; font-size: .94rem; }
.tleagues-rchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tleagues-rchip { font-family: var(--tl-font-mono); font-size: .68rem; color: var(--tl-muted); border: 1px solid var(--tl-hairline); border-radius: 100px; padding: 3px 9px; display: inline-flex; align-items: center; gap: 5px; }
.tleagues-rchip i { color: var(--tl-dim); }
.tleagues-reclink { font: 750 .8rem var(--bs-body-font-family); color: var(--tl-accent); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.tleagues-reclink:hover { color: var(--tl-accent); text-decoration: underline; }

/* Country badge inside v3 record/holder contexts (feed scopes its own). */
.tleagues-v3 .tleagues-holder .cc, .tleagues-v3 .tleagues-reccard .cc { font-family: var(--tl-font-mono); font-size: .58rem; color: var(--tl-muted); border: 1px solid var(--tl-hairline); border-radius: 4px; padding: 0 4px; margin-left: 5px; vertical-align: middle; }

/* Compact filter dropdowns on the records page (wing class + season), so
   those two axes stop being long pill rows. */
.tleagues-filter-select { width: auto; min-width: 120px; border-radius: 999px; font-weight: 650; font-size: .82rem; padding: 7px 34px 7px 15px; cursor: pointer; }
.tleagues-filter-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--tl-font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tl-muted); }

/* Multi-place picker in the challenge modal ------------------------- */
/* Inside a scrolling modal the dropdown flows inline instead of absolute,
   so it is never clipped by the modal body. */
.tleagues-modal .tleagues-combo-list { position: static; min-width: 0; margin-top: 6px; max-height: 240px; box-shadow: none; }
.tleagues-chipset { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tleagues-chipx { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 5px 6px 5px 12px; border-radius: 100px; background: rgba(var(--tl-accent-rgb), .12); color: var(--tl-accent); }
.tleagues-chipx .cc { font-family: var(--tl-font-mono); font-size: .62rem; opacity: .75; }
.tleagues-chipx .rm { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 1.15rem; line-height: 1; padding: 0 2px; opacity: .7; }
.tleagues-chipx .rm:hover { opacity: 1; }

/* Button anchors: .tleagues-btn is not Bootstrap's .btn, so an <a> with it would
   inherit the site's link colour and hover underline (unreadable text on the
   solid buttons). Lock the button text colour and kill the underline. */
a.tleagues-btn, a.tleagues-btn:hover, a.tleagues-btn:focus, a.tleagues-btn:active { text-decoration: none !important; }
a.tleagues-btn-primary, a.tleagues-btn-primary:hover, a.tleagues-btn-primary:focus { color: var(--tl-accent-ink) !important; }
a.tleagues-btn-live, a.tleagues-btn-live:hover, a.tleagues-btn-live:focus { color: #1A1206 !important; }
a.tleagues-btn-ghost { color: var(--tl-ink) !important; }
a.tleagues-btn-ghost:hover, a.tleagues-btn-ghost:focus { color: var(--tl-accent) !important; }

/* Athlete names link to the public profile, but read as text (inherit the
   surrounding board/feed colour), with only a hover underline as affordance. */
.tleagues-page a.tleagues-athlete-link { color: inherit !important; text-decoration: none; }
.tleagues-page a.tleagues-athlete-link:hover, .tleagues-page a.tleagues-athlete-link:focus { text-decoration: underline; text-underline-offset: 2px; }

/* Approval-to-join: owner pending-requests panel ---------------------- */
.tleagues-reqlist { display: flex; flex-direction: column; gap: 12px; }
.tleagues-req { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--tl-hairline); border-radius: 16px; background: var(--tl-panel); box-shadow: var(--tleagues-shadow); }
.tleagues-req .tleagues-av { width: 44px; height: 44px; }
.tleagues-req-body { min-width: 0; }
.tleagues-req-body .nm { font-weight: 750; color: var(--tl-ink); }
.tleagues-req-body .nm .cc { font-family: var(--tl-font-mono); font-size: .58rem; color: var(--tl-muted); border: 1px solid var(--tl-hairline); border-radius: 4px; padding: 0 4px; margin-left: 5px; }
.tleagues-req-body .note { font-size: .9rem; color: var(--tl-muted); margin-top: 3px; }
.tleagues-req-body .note.muted { font-style: italic; opacity: .75; }
.tleagues-req-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .tleagues-req { grid-template-columns: auto 1fr; } .tleagues-req-actions { grid-column: 1 / -1; } }

/* Pending request chip (hero CTA) */
.tleagues-joinmini.pending { color: var(--tl-muted); }
