/* Tour pages: the former inline style="…" attributes. */
.tour-hidden.tour-hidden { display: none; }
.tour-pointer { cursor: pointer; }
.tour-col-min { width: 1%; }
.tour-col-min-nowrap { width: 1%; white-space: nowrap; }
.tour-col-place { width: 3rem; }
.tour-icon-xl { font-size: 3rem; }
.tour-text-xs { font-size: 0.75rem; }
.tour-badge-xs { font-size: 0.65rem !important; }
.tour-overflow-visible { overflow: visible !important; }
.tour-min-220 { min-width: 220px; }
.tour-page-logo { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.tour-logo-lg { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.tour-photo-lib-icon { width: 48px; height: 48px; border-radius: 6px; background: var(--color-clubs-tint); }
.tour-race-head { white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.tour-trophy-bronze { opacity: .7; }
.tour-editor { min-height: 300px; background: var(--color-white); }
.tour-scroll-box { max-height: 300px; overflow-y: auto; }
.tour-dropzone {
  border: 2px dashed var(--color-border-input); border-radius: 8px; padding: 24px; text-align: center;
  cursor: pointer; background: var(--color-surface-subtle); transition: border-color .2s;
}
.tour-logo-preview { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; display: block; margin: 0 auto 8px; }
.tour-suggest { top: 100%; left: 0; max-height: 220px; overflow-y: auto; z-index: 1000; }
.tour-club-select-w { max-width: 180px; }
.tour-paid-wrap { position: relative; display: inline-block; width: 80px; }
.tour-w-80 { width: 80px !important; }
.tour-paid-apply-pos { position: absolute !important; left: 84px; top: 0; bottom: 0; white-space: nowrap; }
.tour-swatch { width: 32px; height: 32px; outline: none; }
.tour-swatch.tour-swatch-selected { outline: 3px solid var(--color-primary); outline-offset: 2px; }

/* An athlete's name links to their page (ATHLETES.md): it reads as the name did, an underline on hover. */
.athlete-name-link { color: inherit; text-decoration: none; }
.athlete-name-link:hover { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* A tour's participants: the cup's standings look (`cup-index.css`), as `/athletes` has it. Athlete, club and level in
   columns; on a phone the name alone on the first line, the club and the level on the second. A long name wraps, a long
   club or level ends in «…», so neither pushes the chip off the row. */
.participants-table {
  border: 1px solid var(--color-panel-border); border-radius: var(--radius-card);
  background: var(--color-panel); overflow: hidden;
}
.participant-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 200px) 160px;
  align-items: center; column-gap: 16px; padding: 16px 24px; transition: background .12s;
}
.participant-row[data-location] { cursor: pointer; }
.participant-row[data-location]:hover, .participant-row[data-pinned-row] { background: var(--color-panel-active); }
[data-list-rows] > .participant-row + .participant-row { border-top: 1px solid var(--color-panel-border); }
.participants-head {
  padding: 18px 24px 16px; border-bottom: 1px solid var(--color-border-strong);
  font-family: var(--font-family-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted);
}
.participant-name { min-width: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.participant-club-mobile { display: none; }
.participant-club {
  min-width: 0; font-size: 15px; color: var(--color-text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.participants-head .participant-club { font-size: inherit; }
.participant-level { min-width: 0; justify-self: end; color: var(--color-text-muted); }
.participant-divider { padding: 6px 24px; border-top: 1px solid var(--color-panel-border); }
.participants-table .list-more { margin: 0; padding: 14px; border-top: 1px solid var(--color-panel-border); }

/* A level: a small rounded chip with a dot, tinted by its place in the catalog (`TourParticipantLevelCtx`). */
.level-chip {
  display: inline-flex; align-items: center; max-width: 100%; height: 26px; padding: 0 10px; border-radius: 13px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em; vertical-align: middle;
}
.level-chip::before { content: ""; flex: none; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.level-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.level-tint-0 { background: var(--color-rank-gold-tint); color: var(--color-rank-gold); }
.level-tint-1 { background: #d9e3ec; color: #2d4a66; }
.level-tint-2 { background: #dde8d2; color: #3c5a2a; }
.level-tint-3 { background: var(--color-rank-silver-tint); color: var(--color-rank-silver); }

@media (max-width: 575.98px) {
  .participant-row {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "club level";
    column-gap: 12px; row-gap: 6px; padding: 14px 16px;
  }
  .participant-name { grid-area: name; font-size: 16px; }
  .participant-row:not(.participants-head) { grid-template-areas: "name level"; }
  .participant-identity { grid-area: name; }
  .participant-row > .participant-club { display: none; }
  .participant-club-mobile { display: block; margin-top: 4px; font-size: 14px; }
  .participant-row > .participant-club { grid-area: club; font-size: 14px; }
  .participant-row > .participant-level { grid-area: level; max-width: 55vw; }
  .participants-head { grid-template-areas: none; font-size: 10.5px; letter-spacing: 0.06em; padding: 14px 16px 12px; }
  .participants-head > .participant-club { display: none; }
  .participants-head > .participant-level { grid-area: auto; }
  .participant-divider { padding: 6px 16px; }
}

/* A tour race's one price (PRICE-DISPLAY.md, decisions 5, 7, 8): on a wide screen at the end of the distances' row, raised
   towards the state pill, which stands a little lower; on a phone both are in a strip at the card's foot, under a line
   across its full width (the card's last child, square ends). */
@media (min-width: 576px) {
  .tour-race-price { position: relative; top: -10px; }
  .tour-race-state { position: relative; top: 4px; }
}
.tour-race-foot { border-top: 1px solid var(--color-border, #e5e2da); padding: 10px 16px; }
