/* ========================================================================
   TSL modern frontend - Phase 1
   Scoped to .tracks-modern so legacy Tracks views stay untouched.
   ======================================================================== */
#tracks.tracks-modern {
  --tsl-accent: #e10600;
  --tsl-accent-dark: #b90500;
  --tsl-ink: #15171a;
  --tsl-muted: #6b7280;
  --tsl-line: #e5e7eb;
  --tsl-surface: #ffffff;
  --tsl-surface-soft: #f6f7f9;
  --tsl-header: #17191d;
  --tsl-gold: #d8a516;
  --tsl-silver: #9aa1aa;
  --tsl-bronze: #a96f3c;
  color: var(--tsl-ink);
}

#tracks.tracks-modern .tsl-page-header {
  position: relative;
  margin: 0 0 18px;
  padding: 16px 0 15px 18px;
  border-bottom: 1px solid var(--tsl-line);
}

#tracks.tracks-modern .tsl-page-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 5px;
  border-radius: 5px;
  background: var(--tsl-accent);
}

#tracks.tracks-modern .tracks-title {
  margin: 0;
  padding: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#tracks.tracks-modern .tracks-project-nav {
  margin-bottom: 18px;
  padding-bottom: 0;
  opacity: 1;
}

#tracks.tracks-modern .tracks-project-nav a {
  display: inline-block;
  margin: 0 7px 7px 0;
  padding: 8px 12px;
  border: 1px solid var(--tsl-line);
  border-radius: 999px;
  background: var(--tsl-surface);
  color: var(--tsl-ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

#tracks.tracks-modern .tracks-project-nav a:hover,
#tracks.tracks-modern .tracks-project-nav a:focus {
  border-color: var(--tsl-accent);
  color: var(--tsl-accent);
}

#tracks.tracks-modern .tsl-results-section {
  margin: 22px 0 32px;
}

#tracks.tracks-modern .tsl-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

#tracks.tracks-modern .tsl-section-header h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

#tracks.tracks-modern .tsl-description-card {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--tsl-line);
  border-radius: 12px;
  background: var(--tsl-surface-soft);
}

#tracks.tracks-modern .tsl-description-card--compact {
  margin-bottom: 12px;
  padding: 12px 15px;
}

#tracks.tracks-modern .tsl-description-card > :last-child {
  margin-bottom: 0;
}

#tracks.tracks-modern .tsl-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--tsl-line);
  border-radius: 14px;
  background: var(--tsl-surface);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .06);
}

#tracks.tracks-modern .tsl-table-wrap--wide {
  overflow-x: auto;
}

#tracks.tracks-modern table.tracks-modern-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

#tracks.tracks-modern table.tracks-modern-table--matrix {
  min-width: 980px;
}

#tracks.tracks-modern table.tracks-modern-table th,
#tracks.tracks-modern table.tracks-modern-table td {
  border: 0;
  border-bottom: 1px solid var(--tsl-line);
  padding: 12px 14px;
  font-size: .94rem;
  line-height: 1.35;
  vertical-align: middle;
  white-space: nowrap;
}

#tracks.tracks-modern table.tracks-modern-table thead th {
  background: var(--tsl-header) !important;
  background-color: var(--tsl-header) !important;
  color: #fff !important;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .055em;
}

#tracks.tracks-modern table.tracks-modern-table thead th:first-child {
  border-top-left-radius: 13px;
}

#tracks.tracks-modern table.tracks-modern-table thead th:last-child {
  border-top-right-radius: 13px;
}

#tracks.tracks-modern table.tracks-modern-table tbody tr:last-child td {
  border-bottom: 0;
}

#tracks.tracks-modern table.tracks-modern-table tbody tr {
  background: var(--tsl-surface);
  transition: background-color .12s ease, transform .12s ease;
}

#tracks.tracks-modern table.tracks-modern-table tbody tr:hover {
  background: var(--tsl-surface-soft);
}

#tracks.tracks-modern table.tracks-modern-table a {
  color: var(--tsl-ink);
  text-decoration: none;
}

#tracks.tracks-modern table.tracks-modern-table a:hover,
#tracks.tracks-modern table.tracks-modern-table a:focus {
  color: var(--tsl-accent);
  text-decoration: none;
}

#tracks.tracks-modern .tsl-col-position,
#tracks.tracks-modern .tsl-position-cell {
  width: 64px;
  text-align: center;
}

#tracks.tracks-modern .tsl-col-number,
#tracks.tracks-modern .tsl-number-cell {
  width: 68px;
  text-align: center;
}

#tracks.tracks-modern .tsl-col-country,
#tracks.tracks-modern .tsl-flag-cell {
  width: 74px;
  text-align: center;
}

#tracks.tracks-modern .tsl-col-points,
#tracks.tracks-modern .tsl-points-cell {
  min-width: 78px;
  text-align: right;
}

#tracks.tracks-modern .tsl-col-driver,
#tracks.tracks-modern .tsl-driver-cell {
  min-width: 190px;
}

#tracks.tracks-modern .tsl-col-team,
#tracks.tracks-modern .tsl-team-cell {
  min-width: 190px;
}

#tracks.tracks-modern .tsl-col-performance,
#tracks.tracks-modern .tsl-performance-cell {
  min-width: 145px;
}

#tracks.tracks-modern .tsl-driver-cell a,
#tracks.tracks-modern .tsl-round-cell a {
  font-weight: 800;
}

#tracks.tracks-modern .tsl-number-cell {
  color: var(--tsl-muted);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#tracks.tracks-modern .tsl-performance-cell,
#tracks.tracks-modern .tsl-points-cell,
#tracks.tracks-modern .tracks-modern-table .result,
#tracks.tracks-modern .tracks-modern-table .points {
  font-variant-numeric: tabular-nums;
}

#tracks.tracks-modern .tsl-points-cell strong {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--tsl-surface-soft);
  color: var(--tsl-ink);
  font-size: .92rem;
}

#tracks.tracks-modern .tsl-position-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--tsl-surface-soft) !important;
  color: var(--tsl-ink) !important;
  font-size: .88rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

#tracks.tracks-modern .tsl-position--1 .tsl-position-badge {
  background: var(--tsl-gold) !important;
  background-color: var(--tsl-gold) !important;
  color: #151515 !important;
}

#tracks.tracks-modern .tsl-position--2 .tsl-position-badge {
  background: var(--tsl-silver) !important;
  background-color: var(--tsl-silver) !important;
  color: #111 !important;
}

#tracks.tracks-modern .tsl-position--3 .tsl-position-badge {
  background: var(--tsl-bronze) !important;
  background-color: var(--tsl-bronze) !important;
  color: #fff !important;
}

#tracks.tracks-modern .tsl-flag-cell img,
#tracks.tracks-modern .tsl-inline-flag img {
  display: inline-block;
  width: 26px;
  max-width: 26px;
  height: 17px;
  max-height: 17px;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 3px;
  object-fit: cover;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

#tracks.tracks-modern .tsl-inline-flag {
  display: inline-flex;
  margin-right: 8px;
  vertical-align: middle;
}

#tracks.tracks-modern .tsl-team-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

#tracks.tracks-modern .tsl-team-logo-wrap {
  display: inline-flex;
  width: 38px;
  height: 30px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
}

#tracks.tracks-modern .tsl-team-logo {
  display: block;
  width: auto;
  max-width: 38px;
  height: auto;
  max-height: 28px;
  object-fit: contain;
}

#tracks.tracks-modern .tsl-team-logo--large {
  max-width: 46px;
  max-height: 34px;
}

#tracks.tracks-modern .tsl-muted-cell,
#tracks.tracks-modern .winner__nickname,
#tracks.tracks-modern .tsl-date-cell {
  color: var(--tsl-muted);
}

#tracks.tracks-modern .tsl-winner {
  display: flex;
  align-items: center;
  margin: 3px 0;
}

#tracks.tracks-modern .tsl-winner .winner__name {
  font-weight: 800;
}

#tracks.tracks-modern .tracks-modern-table .result {
  min-width: 46px;
  text-align: center;
  font-weight: 700;
}

#tracks.tracks-modern .tracks-modern-table .tsl-result--podium {
  position: relative;
}

#tracks.tracks-modern .tracks-modern-table .tsl-result--1 {
  color: #8d6900;
}

#tracks.tracks-modern .tracks-modern-table .tsl-result--2 {
  color: #626973;
}

#tracks.tracks-modern .tracks-modern-table .tsl-result--3 {
  color: #8a5427;
}

#tracks.tracks-modern .tsl-empty-state {
  padding: 24px;
  border: 1px dashed var(--tsl-line);
  border-radius: 12px;
  background: var(--tsl-surface-soft);
  color: var(--tsl-muted);
  text-align: center;
  font-weight: 700;
}

#tracks.tracks-modern .tsl-ical-button {
  margin-top: 18px;
}

#tracks.tracks-modern .copyright {
  margin-top: 24px;
}

@media (max-width: 767px) {
  #tracks.tracks-modern .tsl-page-header {
    padding-left: 14px;
  }

  #tracks.tracks-modern .tracks-title {
    font-size: 1.45rem;
  }

  #tracks.tracks-modern table.tracks-modern-table th,
  #tracks.tracks-modern table.tracks-modern-table td {
    padding: 10px 11px;
    font-size: .88rem;
  }

  #tracks.tracks-modern .tsl-team-logo-wrap {
    width: 32px;
    flex-basis: 32px;
  }

  #tracks.tracks-modern .tsl-team-logo {
    max-width: 32px;
    max-height: 25px;
  }
}

/* TSL modern directories, cards and profiles */
#tracks.tracks-modern .tsl-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}

#tracks.tracks-modern .tsl-directory-card {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--tsl-line);
  border-radius: 14px;
  background: var(--tsl-surface);
  color: var(--tsl-ink);
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .045);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

#tracks.tracks-modern .tsl-directory-card:hover,
#tracks.tracks-modern .tsl-directory-card:focus {
  transform: translateY(-2px);
  border-color: var(--tsl-accent);
  color: var(--tsl-ink);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
}

#tracks.tracks-modern .tsl-directory-card__media {
  display: flex;
  width: 64px;
  height: 54px;
  flex: 0 0 64px;
  align-items: center;
  justify-content: center;
}

#tracks.tracks-modern .tsl-directory-card__media img {
  display: block;
  max-width: 62px;
  max-height: 50px;
  object-fit: contain;
}

#tracks.tracks-modern .tsl-directory-card__placeholder {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--tsl-header);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

#tracks.tracks-modern .tsl-directory-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#tracks.tracks-modern .tsl-directory-card__title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
}

#tracks.tracks-modern .tsl-directory-card__meta {
  flex: 0 0 auto;
  margin-right: 0;
}

#tracks.tracks-modern .tracks-alpha-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 34px;
}

#tracks.tracks-modern .tracks-alpha-list__column {
  padding: 12px 16px 16px;
  border: 1px solid var(--tsl-line);
  border-radius: 14px;
  background: var(--tsl-surface);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .04);
}

#tracks.tracks-modern .tracks-alpha-list__letter {
  margin: 4px 0 8px;
  padding: 10px 0 7px;
  border-bottom: 2px solid var(--tsl-accent);
  color: var(--tsl-ink);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

#tracks.tracks-modern .tracks-alpha-list__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--tsl-ink);
  font-weight: 650;
  text-decoration: none;
}

#tracks.tracks-modern .tracks-alpha-list__link:hover,
#tracks.tracks-modern .tracks-alpha-list__link:focus {
  color: var(--tsl-accent);
  text-decoration: none;
}

#tracks.tracks-modern .tsl-person-link .tsl-inline-flag {
  width: 34px;
  margin-right: 6px;
}

#tracks.tracks-modern .tracks__individualsGallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 30px;
  color: var(--tsl-ink);
}

#tracks.tracks-modern .tracks__individualsGallery__item {
  width: auto;
  margin: 0;
  padding: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--tsl-line);
  border-radius: 15px;
  background: var(--tsl-surface);
  text-align: left;
  box-shadow: 0 7px 24px rgba(0, 0, 0, .05);
}

#tracks.tracks-modern .tracks__individualsGallery__item__splash {
  display: flex;
  height: 190px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--tsl-surface-soft);
}

#tracks.tracks-modern .tracks__individualsGallery__item__splash img.pic {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#tracks.tracks-modern .tracks__individualsGallery__item__desc {
  padding: 14px 16px 8px;
  color: var(--tsl-ink);
  font-size: 1rem;
  text-transform: none;
}

#tracks.tracks-modern .tracks__individualsGallery__item__desc a,
#tracks.tracks-modern .tracks__individualsGallery__item > div:last-child a {
  color: var(--tsl-ink);
  text-decoration: none;
}

#tracks.tracks-modern .tracks__individualsGallery__item__desc a:hover,
#tracks.tracks-modern .tracks__individualsGallery__item > div:last-child a:hover {
  color: var(--tsl-accent);
}

#tracks.tracks-modern .tracks__individualsGallery__item__desc__namerow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

#tracks.tracks-modern .tracks__individualsGallery__item .individualnumber {
  display: inline-flex;
  min-width: 34px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  border-radius: 7px;
  background: var(--tsl-header);
  color: #fff;
  font-size: .8rem;
}

#tracks.tracks-modern .tracks__individualsGallery__item__desc__namerow img {
  width: 24px;
  height: 16px;
  object-fit: cover;
}

#tracks.tracks-modern .tracks__individualsGallery__item__desc__nickname {
  margin-top: 5px;
  color: var(--tsl-muted);
  font-size: .82rem;
}

#tracks.tracks-modern .tsl-participant-team {
  padding: 0 16px;
}

#tracks.tracks-modern .tracks-individual__details,
#tracks.tracks-modern .tracks-team__details {
  display: flex;
  gap: 22px;
  margin: 18px 0 26px;
  padding: 22px;
  border: 1px solid var(--tsl-line);
  border-radius: 16px;
  background: var(--tsl-surface);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .05);
}

#tracks.tracks-modern .tracks-individual__details__picture,
#tracks.tracks-modern .tracks-team__details__picture {
  width: 220px;
  padding: 0;
}

#tracks.tracks-modern .tracks-individual__details__picture img,
#tracks.tracks-modern .tracks-team__details__picture img {
  width: 100%;
  max-width: 220px;
  height: auto;
  max-height: 240px;
  border-radius: 12px;
  object-fit: contain;
}

#tracks.tracks-modern .tracks-individual__details__list,
#tracks.tracks-modern .tracks-team__details__list {
  min-width: 0;
  flex: 1;
}

#tracks.tracks-modern .tracks-individual__details__list__item,
#tracks.tracks-modern .tracks-team__details__list__item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--tsl-line);
}

#tracks.tracks-modern .tracks-individual__details__list__item:last-child,
#tracks.tracks-modern .tracks-team__details__list__item:last-child {
  border-bottom: 0;
}

#tracks.tracks-modern .tracks-individual__details__list__item__label,
#tracks.tracks-modern .tracks-team__details__list__item__label {
  width: auto;
  color: var(--tsl-muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

#tracks.tracks-modern .tracks-individual__details__list__item__value,
#tracks.tracks-modern .tracks-team__details__list__item__value {
  min-width: 0;
  color: var(--tsl-ink);
}

#tracks.tracks-modern .tracks-individual__details__list__item__value img,
#tracks.tracks-modern .tracks-team__details__list__item__value img {
  width: 26px;
  height: 17px;
  object-fit: cover;
}

#tracks.tracks-modern .tracks-section,
#tracks.tracks-modern .tracks-team__individuals,
#tracks.tracks-modern .tracks-team__vehicle,
#tracks.tracks-modern .tracks-round__events {
  margin: 28px 0;
}

#tracks.tracks-modern .tracks-section__title,
#tracks.tracks-modern .tracks-team__individuals__title,
#tracks.tracks-modern .tracks-team__vehicle h3,
#tracks.tracks-modern .tracks-round__events h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .035em;
}

#tracks.tracks-modern table.tracks-table,
#tracks.tracks-modern #individualresults table.raceResults,
#tracks.tracks-modern table.tracks-round__events__list,
#tracks.tracks-modern table.tracks-team__individuals__project__individuals {
  width: 100%;
  margin: 0 0 18px;
  border: 1px solid var(--tsl-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  background: var(--tsl-surface);
}

#tracks.tracks-modern table.tracks-table th,
#tracks.tracks-modern #individualresults table.raceResults th,
#tracks.tracks-modern table.tracks-round__events__list th,
#tracks.tracks-modern table.tracks-team__individuals__project__individuals th {
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid var(--tsl-line);
  background: var(--tsl-header);
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
}

#tracks.tracks-modern table.tracks-table td,
#tracks.tracks-modern #individualresults table.raceResults td,
#tracks.tracks-modern table.tracks-round__events__list td,
#tracks.tracks-modern table.tracks-team__individuals__project__individuals td {
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid var(--tsl-line);
  font-size: .92rem;
  vertical-align: middle;
}

#tracks.tracks-modern table.tracks-table tbody tr:last-child td,
#tracks.tracks-modern #individualresults table.raceResults tbody tr:last-child td,
#tracks.tracks-modern table.tracks-round__events__list tbody tr:last-child td,
#tracks.tracks-modern table.tracks-team__individuals__project__individuals tbody tr:last-child td {
  border-bottom: 0;
}

#tracks.tracks-modern .tracks-individual-stats tbody td {
  padding: 18px 12px;
  font-size: 1.45rem;
  font-weight: 900;
  text-align: center;
}

#tracks.tracks-modern .tracks-individual-stats thead th {
  text-align: center;
}

#tracks.tracks-modern .tracks-team__individuals__project {
  margin: 14px 0 22px;
  padding: 0;
  border: 1px solid var(--tsl-line);
  border-radius: 14px;
  background: var(--tsl-surface);
  overflow: hidden;
}

#tracks.tracks-modern .tracks-team__individuals__project__header {
  padding: 13px 15px;
  background: var(--tsl-surface-soft);
  border-bottom: 1px solid var(--tsl-line);
}

#tracks.tracks-modern .tracks-team__individuals__project__header__title a {
  color: var(--tsl-ink);
  font-weight: 850;
  text-decoration: none;
}

#tracks.tracks-modern .tracks-team__individuals__project__header__stats {
  color: var(--tsl-muted);
  font-size: .84rem;
}

#tracks.tracks-modern .tracks-team__individuals__project .tsl-table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#tracks.tracks-modern .tracks-team__individuals__project table.tracks-modern-table {
  min-width: 620px;
  margin: 0;
  border: 0;
  border-radius: 0;
}

#tracks.tracks-modern .round-description {
  margin: 18px 0 28px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--tsl-line);
  border-radius: 15px;
  background: var(--tsl-surface);
  box-shadow: 0 7px 24px rgba(0, 0, 0, .045);
}

#tracks.tracks-modern img.round-image {
  max-width: min(400px, 48%);
  height: auto;
  padding: 0 22px 14px 0;
  border-radius: 12px;
}

#tracks.tracks-modern .round-description__field {
  padding: 4px 0 12px;
}

#tracks.tracks-modern .round-description__field img {
  width: 26px;
  height: 17px;
  object-fit: cover;
  vertical-align: middle;
}

#tracks.tracks-modern .tsl-action-link {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid var(--tsl-line);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 750;
  white-space: nowrap;
}

#tracks.tracks-modern .tsl-action-link:hover,
#tracks.tracks-modern .tsl-action-link:focus {
  border-color: var(--tsl-accent);
  background: var(--tsl-surface-soft);
}

@media (max-width: 980px) {
  #tracks.tracks-modern .tsl-directory-grid,
  #tracks.tracks-modern .tracks-alpha-list,
  #tracks.tracks-modern .tracks__individualsGallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #tracks.tracks-modern .tsl-directory-grid,
  #tracks.tracks-modern .tracks-alpha-list,
  #tracks.tracks-modern .tracks__individualsGallery {
    grid-template-columns: 1fr;
  }

  #tracks.tracks-modern .tracks-individual__details,
  #tracks.tracks-modern .tracks-team__details {
    flex-direction: column;
    padding: 16px;
  }

  #tracks.tracks-modern .tracks-individual__details__picture,
  #tracks.tracks-modern .tracks-team__details__picture {
    width: 100%;
    text-align: center;
  }

  #tracks.tracks-modern .tracks-individual__details__picture img,
  #tracks.tracks-modern .tracks-team__details__picture img {
    max-width: 190px;
  }

  #tracks.tracks-modern .tracks-individual__details__list__item,
  #tracks.tracks-modern .tracks-team__details__list__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #tracks.tracks-modern img.round-image {
    float: none;
    display: block;
    max-width: 100%;
    margin: 0 auto 16px;
    padding: 0;
  }
}

/* v0.2 real-site safeguards */
#tracks.tracks-modern .tsl-team-logo-wrap {
  overflow: hidden;
}
#tracks.tracks-modern img.tsl-team-logo {
  width: auto !important;
  height: auto !important;
  max-width: 42px !important;
  max-height: 30px !important;
  margin: 0 !important;
}
#tracks.tracks-modern .tsl-flag-cell img,
#tracks.tracks-modern .tsl-inline-flag img {
  width: 26px !important;
  height: 17px !important;
  max-width: 26px !important;
  max-height: 17px !important;
}
#tracks.tracks-modern table.tracks-modern-table {
  width: 100% !important;
}
@media (max-width: 767px) {
  #tracks.tracks-modern img.tsl-team-logo {
    max-width: 34px !important;
    max-height: 25px !important;
  }
}


/* v0.3 Helix compatibility hotfix */
#tracks.tracks-modern .tsl-table-wrap table.tracks-modern-table > thead > tr > th {
  background: #17191d !important;
  background-image: none !important;
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#tracks.tracks-modern .tsl-position-cell .tsl-position-badge {
  opacity: 1 !important;
  visibility: visible !important;
}
#tracks.tracks-modern .tsl-position-cell.tsl-position--1 .tsl-position-badge {
  background: #d8a516 !important;
  color: #151515 !important;
}
#tracks.tracks-modern .tsl-position-cell.tsl-position--2 .tsl-position-badge {
  background: #9aa1aa !important;
  color: #111111 !important;
}
#tracks.tracks-modern .tsl-position-cell.tsl-position--3 .tsl-position-badge {
  background: #a96f3c !important;
  color: #ffffff !important;
}

/* ========================================================================
   v0.4 - Rounds + race detail
   ======================================================================== */
#tracks.tracks-modern .tsl-page-header__eyebrow {
  margin-bottom: 4px;
  color: var(--tsl-accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

#tracks.tracks-modern .tsl-page-header__subtitle {
  margin-top: 5px;
  color: var(--tsl-muted);
  font-size: .88rem;
  font-weight: 700;
}

#tracks.tracks-modern .tsl-page-header--compact {
  margin-bottom: 14px;
  padding-top: 10px;
  padding-bottom: 11px;
}

#tracks.tracks-modern .tracks-project-nav {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px !important;
  padding: 0 !important;
  font-size: 0;
}

#tracks.tracks-modern .tracks-project-nav .tracks-project-nav__link {
  margin: 0 !important;
  font-size: .84rem;
}

#tracks.tracks-modern .tracks-project-nav .tracks-project-nav__link.is-active {
  border-color: var(--tsl-accent) !important;
  background: rgba(225, 6, 0, .045) !important;
  color: var(--tsl-accent) !important;
}

/* Season rounds */
#tracks.tracks-modern .tsl-round-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 30px;
}

#tracks.tracks-modern .tsl-round-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--tsl-line);
  border-radius: 15px;
  background: var(--tsl-surface);
  box-shadow: 0 7px 24px rgba(0, 0, 0, .05);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

#tracks.tracks-modern .tsl-round-card:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 6, 0, .42);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .085);
}

#tracks.tracks-modern .tsl-round-card__main-link {
  position: absolute;
  z-index: 1;
  inset: 0;
}

#tracks.tracks-modern .tsl-round-card__top {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px;
  background: #17191d !important;
  color: #fff !important;
}

#tracks.tracks-modern .tsl-round-card__number {
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

#tracks.tracks-modern .tsl-round-card__code {
  padding-left: 11px;
  border-left: 3px solid var(--tsl-accent);
  color: #fff;
  font-size: .84rem;
  font-weight: 950;
  letter-spacing: .08em;
}

#tracks.tracks-modern .tsl-round-card__body {
  padding: 18px 18px 14px;
}

#tracks.tracks-modern .tsl-round-card__title-row {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 13px;
}

#tracks.tracks-modern .tsl-round-card__flag {
  display: inline-flex;
  width: 42px;
  height: 30px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
}

#tracks.tracks-modern .tsl-round-card__flag img {
  display: block;
  width: 38px !important;
  max-width: 38px !important;
  height: 25px !important;
  max-height: 25px !important;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

#tracks.tracks-modern .tsl-round-card__title {
  margin: 0 0 4px !important;
  color: var(--tsl-ink) !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

#tracks.tracks-modern .tsl-round-card__date {
  color: var(--tsl-muted);
  font-size: .82rem;
  font-weight: 700;
}

#tracks.tracks-modern .tsl-round-card__winner-block {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--tsl-line);
}

#tracks.tracks-modern .tsl-round-card__label {
  margin-bottom: 7px;
  color: var(--tsl-muted);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

#tracks.tracks-modern .tsl-round-card__winner {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

#tracks.tracks-modern .tsl-round-card__winner-driver,
#tracks.tracks-modern .tsl-round-card__winner-team {
  display: flex;
  min-width: 0;
  align-items: center;
}

#tracks.tracks-modern .tsl-round-card__winner-driver {
  font-size: .93rem;
}

#tracks.tracks-modern .tsl-round-card__winner-team {
  gap: 6px;
  color: var(--tsl-muted);
  font-size: .78rem;
  font-weight: 700;
}

#tracks.tracks-modern .tsl-round-card__winner-team .tsl-team-logo-wrap {
  width: 30px;
  height: 24px;
  flex-basis: 30px;
}

#tracks.tracks-modern .tsl-round-card__winner-team img.tsl-team-logo {
  max-width: 30px !important;
  max-height: 22px !important;
}

#tracks.tracks-modern .tsl-round-card__pending {
  color: var(--tsl-muted);
  font-size: 1rem;
  font-weight: 800;
}

#tracks.tracks-modern .tsl-round-card__footer {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--tsl-line);
  background: var(--tsl-surface-soft);
  color: var(--tsl-ink);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .045em;
}

#tracks.tracks-modern .tsl-round-card:hover .tsl-round-card__footer {
  color: var(--tsl-accent);
}

/* Race detail hero */
#tracks.tracks-modern .tsl-race-hero {
  position: relative;
  display: flex;
  min-height: 175px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 26px;
  padding: 28px 30px;
  overflow: hidden;
  border-radius: 16px;
  background: #17191d !important;
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .13);
}

#tracks.tracks-modern .tsl-race-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: var(--tsl-accent);
}

#tracks.tracks-modern .tsl-race-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -95px;
  width: 260px;
  height: 260px;
  border: 36px solid rgba(255,255,255,.035);
  border-radius: 50%;
}

#tracks.tracks-modern .tsl-race-hero__identity {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}

#tracks.tracks-modern .tsl-race-hero__flag-code {
  display: flex;
  width: 96px;
  min-height: 90px;
  flex: 0 0 96px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
}

#tracks.tracks-modern .tsl-race-hero__flag img {
  display: block;
  width: 42px !important;
  max-width: 42px !important;
  height: 28px !important;
  max-height: 28px !important;
  border-radius: 4px;
  object-fit: cover;
}

#tracks.tracks-modern .tsl-race-hero__code {
  color: #fff;
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .11em;
}

#tracks.tracks-modern .tsl-race-hero__label {
  margin-bottom: 5px;
  color: rgba(255,255,255,.58);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

#tracks.tracks-modern .tsl-race-hero__title {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(1.8rem, 3.4vw, 3rem) !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em;
}

#tracks.tracks-modern .tsl-race-hero__date {
  margin-top: 9px;
  color: rgba(255,255,255,.75);
  font-size: .92rem;
  font-weight: 750;
}

#tracks.tracks-modern .tsl-race-hero__mark {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,.08);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 1000;
  line-height: .8;
  letter-spacing: -.08em;
  user-select: none;
}

/* Session / podium summary */
#tracks.tracks-modern .tsl-session-section {
  margin-top: 34px;
}

#tracks.tracks-modern .tsl-session-header {
  margin-bottom: 13px;
  padding-left: 13px;
  border-left: 4px solid var(--tsl-accent);
}

#tracks.tracks-modern .tsl-session-header__label {
  margin-bottom: 2px;
  color: var(--tsl-muted);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .09em;
}

#tracks.tracks-modern .tsl-podium-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 13px;
}

#tracks.tracks-modern .tsl-podium-card {
  position: relative;
  min-width: 0;
  padding: 14px 15px 13px;
  overflow: hidden;
  border: 1px solid var(--tsl-line);
  border-radius: 12px;
  background: var(--tsl-surface);
}

#tracks.tracks-modern .tsl-podium-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--tsl-line);
}

#tracks.tracks-modern .tsl-podium-card--1::before { background: var(--tsl-gold); }
#tracks.tracks-modern .tsl-podium-card--2::before { background: var(--tsl-silver); }
#tracks.tracks-modern .tsl-podium-card--3::before { background: var(--tsl-bronze); }

#tracks.tracks-modern .tsl-podium-card__position {
  margin-bottom: 8px;
  color: var(--tsl-muted);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
}

#tracks.tracks-modern .tsl-podium-card__driver {
  display: flex;
  min-width: 0;
  align-items: center;
  font-size: .92rem;
}

#tracks.tracks-modern .tsl-podium-card__driver strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tracks.tracks-modern .tsl-podium-card__team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: var(--tsl-muted);
  font-size: .76rem;
  font-weight: 700;
}

#tracks.tracks-modern .tsl-podium-card__team > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tracks.tracks-modern .tsl-podium-card__team .tsl-team-logo-wrap {
  width: 30px;
  height: 23px;
  flex-basis: 30px;
}

#tracks.tracks-modern .tsl-podium-card__team img.tsl-team-logo {
  max-width: 30px !important;
  max-height: 22px !important;
}

#tracks.tracks-modern .tsl-podium-card__performance {
  margin-top: 8px;
  color: var(--tsl-ink);
  font-size: .78rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

#tracks.tracks-modern .tsl-row-podium--1 td:first-child { box-shadow: inset 3px 0 0 var(--tsl-gold); }
#tracks.tracks-modern .tsl-row-podium--2 td:first-child { box-shadow: inset 3px 0 0 var(--tsl-silver); }
#tracks.tracks-modern .tsl-row-podium--3 td:first-child { box-shadow: inset 3px 0 0 var(--tsl-bronze); }

#tracks.tracks-modern .tsl-description-card img {
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 900px) {
  #tracks.tracks-modern .tsl-round-grid {
    grid-template-columns: 1fr;
  }

  #tracks.tracks-modern .tsl-race-hero__mark {
    font-size: 5rem;
  }
}

@media (max-width: 720px) {
  #tracks.tracks-modern .tsl-podium-strip {
    grid-template-columns: 1fr;
  }

  #tracks.tracks-modern .tsl-race-hero {
    min-height: auto;
    padding: 22px 20px 22px 24px;
  }

  #tracks.tracks-modern .tsl-race-hero__identity {
    gap: 14px;
  }

  #tracks.tracks-modern .tsl-race-hero__flag-code {
    width: 76px;
    min-height: 78px;
    flex-basis: 76px;
  }

  #tracks.tracks-modern .tsl-race-hero__mark {
    display: none;
  }

  #tracks.tracks-modern .tsl-round-card__winner {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

/* ========================================================================
   v0.5 - Driver/team directories and profiles
   ======================================================================== */
#tracks.tracks-modern .tsl-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 16px;
}

#tracks.tracks-modern .tsl-profile-hero {
  display: grid;
  grid-template-columns: minmax(210px, 28%) minmax(0, 1fr);
  min-height: 310px;
  margin: 18px 0 26px;
  overflow: hidden;
  border: 1px solid var(--tsl-line);
  border-radius: 18px;
  background: var(--tsl-surface);
  box-shadow: 0 10px 32px rgba(0,0,0,.07);
}

#tracks.tracks-modern .tsl-profile-hero__visual {
  position: relative;
  display: flex;
  min-height: 310px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #17191d 0%, #24272d 100%);
}

#tracks.tracks-modern .tsl-profile-hero__visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--tsl-accent);
}

#tracks.tracks-modern .tsl-profile-hero__visual > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: contain;
  object-position: center bottom;
}

#tracks.tracks-modern .tsl-profile-hero__visual--logo {
  padding: 42px 26px;
  align-items: center;
  background: #f5f6f8;
}

#tracks.tracks-modern .tsl-profile-hero__visual--logo > img {
  width: auto;
  max-width: 82%;
  height: auto;
  max-height: 220px;
  object-position: center;
}

#tracks.tracks-modern .tsl-profile-hero__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 28px 30px;
}

#tracks.tracks-modern .tsl-profile-hero__kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--tsl-accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

#tracks.tracks-modern .tsl-profile-hero__kicker .tsl-inline-flag {
  margin-right: 0;
}

#tracks.tracks-modern .tsl-profile-hero__content h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.035em;
}

#tracks.tracks-modern .tsl-profile-hero__nickname {
  margin-top: 7px;
  color: var(--tsl-muted);
  font-size: .95rem;
  font-weight: 700;
}

#tracks.tracks-modern .tsl-profile-hero__primary-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 22px;
}

#tracks.tracks-modern .tsl-profile-pill {
  display: flex;
  min-width: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--tsl-line);
  border-radius: 11px;
  background: var(--tsl-surface-soft);
}

#tracks.tracks-modern .tsl-profile-pill span,
#tracks.tracks-modern .tsl-profile-team-card small,
#tracks.tracks-modern .tsl-profile-info span {
  color: var(--tsl-muted);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

#tracks.tracks-modern .tsl-profile-pill strong {
  margin-top: 2px;
  font-size: 1.25rem;
  font-weight: 900;
}

#tracks.tracks-modern .tsl-profile-team-card {
  display: flex;
  min-width: 220px;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  border: 1px solid var(--tsl-line);
  border-radius: 11px;
  background: var(--tsl-surface-soft);
  color: var(--tsl-ink);
  text-decoration: none;
}

#tracks.tracks-modern .tsl-profile-team-card:hover {
  border-color: var(--tsl-accent);
  color: var(--tsl-ink);
  text-decoration: none;
}

#tracks.tracks-modern .tsl-profile-team-card__logo {
  display: flex;
  width: 48px;
  height: 38px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
}

#tracks.tracks-modern .tsl-profile-team-card__logo img {
  max-width: 46px !important;
  max-height: 36px !important;
  object-fit: contain;
}

#tracks.tracks-modern .tsl-profile-team-card > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

#tracks.tracks-modern .tsl-profile-team-card strong {
  overflow: hidden;
  font-size: .91rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tracks.tracks-modern .tsl-profile-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 9px;
  margin-top: 20px;
}

#tracks.tracks-modern .tsl-profile-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 9px 0;
  border-top: 1px solid var(--tsl-line);
}

#tracks.tracks-modern .tsl-profile-info strong {
  margin-top: 3px;
  overflow: hidden;
  color: var(--tsl-ink);
  font-size: .91rem;
  font-weight: 800;
  text-overflow: ellipsis;
}

#tracks.tracks-modern .tsl-profile-description {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--tsl-accent);
  border-radius: 0 12px 12px 0;
  background: var(--tsl-surface-soft);
}

#tracks.tracks-modern .tsl-profile-description > :last-child {
  margin-bottom: 0;
}

#tracks.tracks-modern .tsl-section-heading {
  margin: 0 0 12px;
}

#tracks.tracks-modern .tsl-section-heading__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--tsl-accent);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

#tracks.tracks-modern .tsl-section-heading .tracks-section__title,
#tracks.tracks-modern .tsl-section-heading .tracks-team__individuals__title,
#tracks.tracks-modern .tsl-section-heading h3 {
  margin-bottom: 0;
}

#tracks.tracks-modern .tsl-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}

#tracks.tracks-modern .tsl-stat-card {
  position: relative;
  overflow: hidden;
  padding: 17px 18px;
  border: 1px solid var(--tsl-line);
  border-radius: 13px;
  background: var(--tsl-surface);
  box-shadow: 0 6px 20px rgba(0,0,0,.035);
}

#tracks.tracks-modern .tsl-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--tsl-accent);
}

#tracks.tracks-modern .tsl-stat-card span {
  display: block;
  color: var(--tsl-muted);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

#tracks.tracks-modern .tsl-stat-card strong {
  display: block;
  margin-top: 4px;
  color: var(--tsl-ink);
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

#tracks.tracks-modern .tsl-stat-grid--hero {
  margin-top: 24px;
}

#tracks.tracks-modern .tsl-stat-grid--hero .tsl-stat-card {
  padding: 13px 14px;
  box-shadow: none;
}

#tracks.tracks-modern .tsl-stat-grid--hero .tsl-stat-card strong {
  font-size: 1.35rem;
}

#tracks.tracks-modern .tsl-history-block {
  margin-bottom: 20px;
}

#tracks.tracks-modern .tsl-history-block__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 8px;
}

#tracks.tracks-modern .tsl-history-block__header strong {
  font-size: 1rem;
  font-weight: 850;
}

#tracks.tracks-modern .tsl-history-block__header span {
  color: var(--tsl-muted);
  font-size: .8rem;
}

#tracks.tracks-modern .tracks-modern-table--profile-results {
  min-width: 820px;
}

#tracks.tracks-modern .tsl-team-history-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

#tracks.tracks-modern .tsl-team-history-stats > span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--tsl-line);
}

#tracks.tracks-modern .tsl-team-history-stats small {
  color: var(--tsl-muted);
  font-size: .63rem;
  font-weight: 800;
  text-transform: uppercase;
}

#tracks.tracks-modern .tsl-team-history-stats strong {
  font-size: .8rem;
}

#tracks.tracks-modern .tsl-driver-number-mini {
  display: inline-flex;
  min-width: 31px;
  height: 25px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border-radius: 7px;
  background: var(--tsl-surface-soft);
  color: var(--tsl-muted);
  font-size: .72rem;
  font-weight: 900;
}

#tracks.tracks-modern .tsl-vehicle-card {
  display: grid;
  grid-template-columns: minmax(220px, 38%) minmax(0,1fr);
  overflow: hidden;
  border: 1px solid var(--tsl-line);
  border-radius: 15px;
  background: var(--tsl-surface);
  box-shadow: 0 7px 24px rgba(0,0,0,.045);
}

#tracks.tracks-modern .tsl-vehicle-card__media {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: var(--tsl-surface-soft);
}

#tracks.tracks-modern .tsl-vehicle-card__media img {
  max-width: 100% !important;
  max-height: 260px !important;
  object-fit: contain;
}

#tracks.tracks-modern .tsl-vehicle-card__content {
  padding: 22px;
}

#tracks.tracks-modern .tsl-team-social {
  margin: 28px 0;
}

#tracks.tracks-modern .tsl-team-social__list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

#tracks.tracks-modern .tsl-team-social__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--tsl-line);
  border-radius: 9px;
  background: var(--tsl-surface);
  color: var(--tsl-ink);
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}

#tracks.tracks-modern .tsl-team-social__item:hover {
  border-color: var(--tsl-accent);
  color: var(--tsl-accent);
  text-decoration: none;
}

#tracks.tracks-modern .tsl-team-social__item img {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain;
}

#tracks.tracks-modern .tsl-driver-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin: 18px 0 30px;
}

#tracks.tracks-modern .tsl-driver-card {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0,1fr);
  min-height: 154px;
  overflow: hidden;
  border: 1px solid var(--tsl-line);
  border-radius: 15px;
  background: var(--tsl-surface);
  color: var(--tsl-ink);
  text-decoration: none;
  box-shadow: 0 7px 24px rgba(0,0,0,.045);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

#tracks.tracks-modern .tsl-driver-card:hover,
#tracks.tracks-modern .tsl-driver-card:focus {
  transform: translateY(-2px);
  border-color: var(--tsl-accent);
  color: var(--tsl-ink);
  text-decoration: none;
  box-shadow: 0 11px 30px rgba(0,0,0,.08);
}

#tracks.tracks-modern .tsl-driver-card__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg,#202329,#111317);
}

#tracks.tracks-modern .tsl-driver-card__visual::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--tsl-accent);
}

#tracks.tracks-modern .tsl-driver-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

#tracks.tracks-modern .tsl-driver-card__initials {
  display: flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  margin: auto;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
}

#tracks.tracks-modern .tsl-driver-card__numbermark {
  position: absolute;
  top: 8px;
  left: 9px;
  color: rgba(255,255,255,.18);
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 950;
}

#tracks.tracks-modern .tsl-driver-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
}

#tracks.tracks-modern .tsl-driver-card__country {
  display: flex;
  align-items: center;
  color: var(--tsl-muted);
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .06em;
}

#tracks.tracks-modern .tsl-driver-card__country .tsl-inline-flag {
  margin-right: 7px;
}

#tracks.tracks-modern .tsl-driver-card__name {
  margin-top: 5px;
  overflow: hidden;
  font-size: 1.04rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tracks.tracks-modern .tsl-driver-card__nickname {
  margin-top: 2px;
  overflow: hidden;
  color: var(--tsl-muted);
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tracks.tracks-modern .tsl-driver-card__link {
  margin-top: auto;
  padding-top: 12px;
  color: var(--tsl-accent);
  font-size: .72rem;
  font-weight: 850;
}

@media (max-width: 1050px) {
  #tracks.tracks-modern .tsl-driver-directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #tracks.tracks-modern .tsl-profile-info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  #tracks.tracks-modern .tsl-profile-hero { grid-template-columns: 1fr; }
  #tracks.tracks-modern .tsl-profile-hero__visual { min-height: 240px; max-height: 300px; }
  #tracks.tracks-modern .tsl-profile-hero__content { padding: 21px 18px; }
  #tracks.tracks-modern .tsl-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #tracks.tracks-modern .tsl-vehicle-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  #tracks.tracks-modern .tsl-driver-directory { grid-template-columns: 1fr; }
  #tracks.tracks-modern .tsl-profile-info-grid { grid-template-columns: 1fr; }
  #tracks.tracks-modern .tsl-history-block__header { flex-direction: column; gap: 2px; }
}

/* Team directory refinement */
#tracks.tracks-modern .tsl-directory-grid--teams .tsl-directory-card--team {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  padding: 13px 16px 13px 12px;
}

#tracks.tracks-modern .tsl-directory-grid--teams .tsl-directory-card--team::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--tsl-accent);
}

#tracks.tracks-modern .tsl-directory-grid--teams .tsl-directory-card__media {
  width: 82px;
  height: 72px;
  flex-basis: 82px;
  border-radius: 10px;
  background: var(--tsl-surface-soft);
}

#tracks.tracks-modern .tsl-directory-grid--teams .tsl-directory-card__media img {
  max-width: 72px;
  max-height: 62px;
}

#tracks.tracks-modern .tsl-directory-grid--teams .tsl-directory-card__body {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
}

#tracks.tracks-modern .tsl-directory-grid--teams .tsl-directory-card__title {
  font-size: 1rem;
  font-weight: 900;
}

/* ========================================================================
   Participants - team roster layout (v0.6)
   One team per row, drivers grouped inside that team's roster.
   ======================================================================== */
#tracks.tracks-modern.tracks-projectindividuals .tsl-participants-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 32px;
}

#tracks.tracks-modern .tsl-participants-team-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(245px, 30%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--tsl-line);
  border-radius: 15px;
  background: var(--tsl-surface);
  box-shadow: 0 7px 24px rgba(0, 0, 0, .045);
}

#tracks.tracks-modern .tsl-participants-team-row::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--tsl-accent);
}

#tracks.tracks-modern .tsl-participants-team-row__team {
  min-width: 0;
  border-right: 1px solid var(--tsl-line);
  background: linear-gradient(135deg, #fafbfc 0%, #f4f5f7 100%);
}

#tracks.tracks-modern .tsl-participants-team-row__team-link {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 112px;
  height: 100%;
  align-items: center;
  gap: 15px;
  padding: 14px 18px 14px 20px;
  color: var(--tsl-ink);
  text-decoration: none;
}

#tracks.tracks-modern a.tsl-participants-team-row__team-link:hover,
#tracks.tracks-modern a.tsl-participants-team-row__team-link:focus {
  color: var(--tsl-accent);
  text-decoration: none;
}

#tracks.tracks-modern .tsl-participants-team-row__logo {
  display: flex;
  width: 82px;
  height: 72px;
  align-items: center;
  justify-content: center;
}

#tracks.tracks-modern .tsl-participants-team-row__logo img {
  display: block;
  width: auto !important;
  max-width: 82px !important;
  height: auto !important;
  max-height: 66px !important;
  object-fit: contain;
}

#tracks.tracks-modern .tsl-participants-team-row__logo-placeholder {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--tsl-header);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
}

#tracks.tracks-modern .tsl-participants-team-row__meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

#tracks.tracks-modern .tsl-participants-team-row__label {
  margin-bottom: 3px;
  color: var(--tsl-muted);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#tracks.tracks-modern .tsl-participants-team-row__name {
  overflow: hidden;
  color: inherit;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 900;
  text-overflow: ellipsis;
}

#tracks.tracks-modern .tsl-participants-team-row__count {
  margin-top: 5px;
  color: var(--tsl-muted);
  font-size: .72rem;
  font-weight: 650;
}

#tracks.tracks-modern .tsl-participants-team-row__drivers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 8px;
  padding: 12px;
}

#tracks.tracks-modern .tsl-participant-driver {
  display: grid;
  grid-template-columns: 48px 30px minmax(0, 1fr) 18px;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--tsl-surface-soft);
  color: var(--tsl-ink);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

#tracks.tracks-modern .tsl-participant-driver:hover,
#tracks.tracks-modern .tsl-participant-driver:focus {
  transform: translateY(-1px);
  border-color: rgba(225, 6, 0, .28);
  background: #fff;
  color: var(--tsl-ink);
  text-decoration: none;
}

#tracks.tracks-modern .tsl-participant-driver__number {
  display: inline-flex;
  min-width: 43px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--tsl-header);
  color: #fff;
  font-size: .74rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

#tracks.tracks-modern .tsl-participant-driver__flag {
  display: flex;
  width: 30px;
  align-items: center;
  justify-content: center;
}

#tracks.tracks-modern .tsl-participant-driver__flag img {
  width: 25px !important;
  max-width: 25px !important;
  height: 16px !important;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

#tracks.tracks-modern .tsl-participant-driver__identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

#tracks.tracks-modern .tsl-participant-driver__identity strong {
  overflow: hidden;
  color: var(--tsl-ink);
  font-size: .86rem;
  line-height: 1.25;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tracks.tracks-modern .tsl-participant-driver__identity small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--tsl-muted);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tracks.tracks-modern .tsl-participant-driver__arrow {
  color: #b0b5bd;
  font-size: 1.25rem;
  line-height: 1;
  transition: color .15s ease, transform .15s ease;
}

#tracks.tracks-modern .tsl-participant-driver:hover .tsl-participant-driver__arrow,
#tracks.tracks-modern .tsl-participant-driver:focus .tsl-participant-driver__arrow {
  transform: translateX(2px);
  color: var(--tsl-accent);
}

@media (max-width: 1050px) {
  #tracks.tracks-modern .tsl-participants-team-row {
    grid-template-columns: 235px minmax(0, 1fr);
  }

  #tracks.tracks-modern .tsl-participants-team-row__drivers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #tracks.tracks-modern .tsl-participants-team-row {
    grid-template-columns: 1fr;
  }

  #tracks.tracks-modern .tsl-participants-team-row__team {
    border-right: 0;
    border-bottom: 1px solid var(--tsl-line);
  }

  #tracks.tracks-modern .tsl-participants-team-row__team-link {
    min-height: 92px;
    grid-template-columns: 68px minmax(0, 1fr);
  }

  #tracks.tracks-modern .tsl-participants-team-row__logo {
    width: 68px;
    height: 60px;
  }

  #tracks.tracks-modern .tsl-participants-team-row__logo img {
    max-width: 68px !important;
    max-height: 58px !important;
  }
}

@media (max-width: 480px) {
  #tracks.tracks-modern .tsl-participant-driver {
    grid-template-columns: 43px 27px minmax(0, 1fr) 14px;
    gap: 7px;
  }
}

/* Phase 2 shared status primitives */
#tracks.tracks-modern .tsl-fastest-lap-badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:20px;margin-left:5px;padding:0 5px;border-radius:6px;background:#7d34d1;color:#fff;font-size:.58rem;font-weight:950;letter-spacing:.04em;vertical-align:middle}
#tracks.tracks-modern .tsl-status{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:22px;padding:2px 8px;border-radius:999px;font-size:.61rem;font-weight:950;letter-spacing:.04em}
#tracks.tracks-modern .tsl-status--finished{background:#eef8f1;color:#247744}
#tracks.tracks-modern .tsl-status--dnf{background:#fff1ef;color:#a83027}
#tracks.tracks-modern .tsl-status--dns{background:#f2f3f5;color:#646b75}
#tracks.tracks-modern .tsl-status--dsq{background:#fff2d9;color:#8a5a00}

/* ========================================================================
   TSL Phase 3 - all-time statistics
   ======================================================================== */
#tracks.tracks-modern .tsl-statistics-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}
#tracks.tracks-modern .tsl-statistics-header__intro{max-width:760px;margin:7px 0 0;color:var(--tsl-muted);font-size:.88rem;line-height:1.55}
#tracks.tracks-modern .tsl-eyebrow{margin:0 0 5px;color:var(--tsl-accent);font-size:.63rem;font-weight:950;letter-spacing:.13em;text-transform:uppercase}

#tracks.tracks-modern .tsl-stat-overview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:22px 0 30px}
#tracks.tracks-modern .tsl-stat-overview__item{position:relative;overflow:hidden;min-height:88px;padding:16px 17px;border:1px solid var(--tsl-line);border-radius:13px;background:linear-gradient(145deg,#fff 0%,#f7f8fa 100%);box-shadow:0 6px 18px rgba(17,24,39,.04)}
#tracks.tracks-modern .tsl-stat-overview__item:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--tsl-accent)}
#tracks.tracks-modern .tsl-stat-overview__item span{display:block;color:var(--tsl-muted);font-size:.58rem;font-weight:950;letter-spacing:.1em;text-transform:uppercase}
#tracks.tracks-modern .tsl-stat-overview__item strong{display:block;margin-top:7px;color:var(--tsl-ink);font-size:1.45rem;font-weight:950;line-height:1}

#tracks.tracks-modern .tsl-statistics-section{margin:30px 0}
#tracks.tracks-modern .tsl-record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#tracks.tracks-modern .tsl-record-card{position:relative;overflow:hidden;min-height:132px;padding:18px 20px;border:1px solid var(--tsl-line);border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(17,24,39,.045)}
#tracks.tracks-modern .tsl-record-card:after{content:"";position:absolute;right:-26px;bottom:-38px;width:105px;height:105px;border:16px solid rgba(21,23,26,.035);border-radius:50%}
#tracks.tracks-modern .tsl-record-card__label{position:relative;z-index:1;color:var(--tsl-muted);font-size:.61rem;font-weight:950;letter-spacing:.105em;text-transform:uppercase}
#tracks.tracks-modern .tsl-record-card__value{position:relative;z-index:1;margin:8px 0 10px;color:var(--tsl-ink);font-size:2rem;font-weight:950;line-height:1}
#tracks.tracks-modern .tsl-record-card__drivers{position:relative;z-index:1;display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:.76rem;font-weight:800}
#tracks.tracks-modern .tsl-record-card__drivers a{display:inline-flex;align-items:center;gap:6px;color:var(--tsl-ink);text-decoration:none}
#tracks.tracks-modern .tsl-record-card__drivers a:hover{color:var(--tsl-accent)}
#tracks.tracks-modern .tsl-record-card__separator{color:#c4c8ce}
#tracks.tracks-modern .tsl-record-card__more{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:22px;padding:0 6px;border-radius:999px;background:var(--tsl-surface-soft);color:var(--tsl-muted);font-size:.64rem;font-weight:900}
#tracks.tracks-modern .tsl-record-card--titles{border-color:#ead8a7;background:linear-gradient(145deg,#fff 0%,#fffaf0 100%)}
#tracks.tracks-modern .tsl-record-card--titles .tsl-record-card__value{color:#a87900}
#tracks.tracks-modern .tsl-record-card--fastest_laps .tsl-record-card__value{color:#7d34d1}

#tracks.tracks-modern .tsl-statistics-table-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
#tracks.tracks-modern .tsl-stat-search{display:block;min-width:220px;margin-bottom:2px}
#tracks.tracks-modern .tsl-stat-search input{width:100%;height:38px;padding:0 13px;border:1px solid var(--tsl-line);border-radius:999px;background:#fff;color:var(--tsl-ink);font:inherit;font-size:.78rem;outline:0;transition:border-color .15s ease,box-shadow .15s ease}
#tracks.tracks-modern .tsl-stat-search input:focus{border-color:rgba(225,6,0,.55);box-shadow:0 0 0 3px rgba(225,6,0,.08)}
#tracks.tracks-modern .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

#tracks.tracks-modern .tsl-career-table th{white-space:nowrap}
#tracks.tracks-modern .tsl-career-table .tsl-stat-sort{position:relative;display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:950;letter-spacing:inherit;text-transform:inherit;cursor:pointer}
#tracks.tracks-modern .tsl-career-table .tsl-stat-sort:after{content:"";width:0;height:0;margin-left:3px;border-left:3px solid transparent;border-right:3px solid transparent;opacity:.35}
#tracks.tracks-modern .tsl-career-table .tsl-stat-sort.is-desc:after{border-top:5px solid currentColor}
#tracks.tracks-modern .tsl-career-table .tsl-stat-sort.is-asc:after{border-bottom:5px solid currentColor}
#tracks.tracks-modern .tsl-career-table .tsl-stat-sort.is-active{color:#fff}
#tracks.tracks-modern .tsl-career-table .tsl-stat-number{text-align:center;font-variant-numeric:tabular-nums;font-weight:800}
#tracks.tracks-modern .tsl-career-table .tsl-stat-number--starts strong{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:28px;padding:0 9px;border-radius:999px;background:#f4f5f7;color:var(--tsl-ink)}
#tracks.tracks-modern .tsl-career-table .tsl-stat-number--titles{color:#946b00;font-weight:950}
#tracks.tracks-modern .tsl-career-table .tsl-position-badge{background:#f4f5f7;color:var(--tsl-ink)}
#tracks.tracks-modern .tsl-statistics-note{margin:12px 3px 0;color:var(--tsl-muted);font-size:.68rem;line-height:1.45}

@media (max-width:1100px){
  #tracks.tracks-modern .tsl-stat-overview{grid-template-columns:repeat(3,minmax(0,1fr))}
  #tracks.tracks-modern .tsl-record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  #tracks.tracks-modern .tsl-stat-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #tracks.tracks-modern .tsl-record-grid{grid-template-columns:1fr}
  #tracks.tracks-modern .tsl-statistics-table-header{align-items:stretch;flex-direction:column}
  #tracks.tracks-modern .tsl-stat-search{min-width:0;width:100%;margin-top:-2px}
  #tracks.tracks-modern .tsl-statistics-header__intro{font-size:.8rem}
}

/* TSL stewarding badges (shared with v05) */
#tracks.tracks-modern .tsl-penalty-badge,
#tracks.tracks-modern .tsl-incident-badge { display:inline-flex;align-items:center;justify-content:center;margin-left:6px;padding:3px 7px;border-radius:999px;font-size:.68rem;line-height:1.1;font-weight:900;letter-spacing:.02em;vertical-align:middle; }
#tracks.tracks-modern .tsl-penalty-badge { border:1px solid rgba(225,6,0,.25);background:rgba(225,6,0,.08);color:#b90500; }
#tracks.tracks-modern .tsl-incident-badge { border:1px solid rgba(67,56,202,.22);background:rgba(67,56,202,.08);color:#4338ca; }
#tracks.tracks-modern .tsl-penalty-info { position:relative;display:inline-flex;align-items:center;justify-content:center;margin-left:5px;vertical-align:middle;outline:none; }
#tracks.tracks-modern .tsl-penalty-info__icon { display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border:1px solid #cfd4dc;border-radius:50%;background:#fff;color:#4b5563;font-size:11px;font-weight:900;font-family:Arial,sans-serif;cursor:help; }
#tracks.tracks-modern .tsl-penalty-tooltip { position:absolute;z-index:50;left:50%;bottom:calc(100% + 9px);width:max-content;max-width:300px;padding:9px 11px;border-radius:8px;background:#17191d;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.18);font-size:.73rem;font-weight:600;line-height:1.45;white-space:normal;transform:translate(-50%,4px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s ease,transform .12s ease,visibility .12s ease; }
#tracks.tracks-modern .tsl-penalty-tooltip::after { content:"";position:absolute;left:50%;top:100%;transform:translateX(-50%);border:5px solid transparent;border-top-color:#17191d; }
#tracks.tracks-modern .tsl-penalty-info:hover .tsl-penalty-tooltip,#tracks.tracks-modern .tsl-penalty-info:focus .tsl-penalty-tooltip,#tracks.tracks-modern .tsl-penalty-info:focus-within .tsl-penalty-tooltip { opacity:1;visibility:visible;transform:translate(-50%,0); }

/* TSL How to Join navigation CTA */

#tracks.tracks-modern .tracks-project-nav .tracks-project-nav__link--join {
  margin-left: auto !important;
  border-color: #ff2c54 !important;
  background: #ff2c54 !important;
  color: #fff !important;
  font-weight: 950;
  letter-spacing: .04em;
}
#tracks.tracks-modern .tracks-project-nav .tracks-project-nav__link--join:hover,
#tracks.tracks-modern .tracks-project-nav .tracks-project-nav__link--join:focus,
#tracks.tracks-modern .tracks-project-nav .tracks-project-nav__link--join.is-active {
  border-color: #e72248 !important;
  background: #e72248 !important;
  color: #fff !important;
}
@media(max-width:760px){
  #tracks.tracks-modern .tracks-project-nav .tracks-project-nav__link--join { margin-left: 0 !important; }
}
