div.registration-group-head { background-color: var(--color-cup-tint-light); }
div.registration-group-icon { width: 44px; height: 44px; background-color: var(--color-cup-tint-light); color: var(--color-cup); }
div.registration-tour-list { --tour-dot: var(--color-cup); }
div.registration-date-col { width: 44px; }
div.registration-members { font-size: 0.8rem; }

/* The rows' own gap (no `gap-3` utility, whose `!important` a phone could not change). */
div.registration-race-row, div.registration-group-row, a.tour-race-row { gap: 1rem; }

/* A phone (the owner's mocks of 2026-10-24, `plans/plugins/profile-phone-layout/`): a row wraps,
   the date and the name on the first line, the name taking the rest of it; the place, the payment
   state or the pay button on a line of their own under the name, aligned with it. A tour's head
   does the same (its pay button no longer overflows); a tour's race names wrap instead of being
   cut, and the chevron goes (the whole row is the link). */
@media (max-width: 760px) {
  div.registration-race-row, div.registration-group-row, a.tour-race-row { flex-wrap: wrap; gap: 6px 1rem; }
  div.registration-race-row > .flex-grow-1, div.registration-group-row > .flex-grow-1, a.tour-race-row > .flex-grow-1 { flex-basis: 0; min-width: 0; }
  .registration-race-side { flex-basis: 100%; justify-content: flex-start; padding-left: calc(44px + 1rem); }
  a.tour-race-row .text-truncate, div.registration-group-row .text-truncate { white-space: normal; }
  a.tour-race-row .registration-race-side .bi-chevron-right { display: none; }
  a.tour-race-row .registration-race-side:not(:has(.badge, .pay-near)) { display: none; }
  div.registration-group-row .registration-race-side .pay-near { white-space: normal; }
}

/* The athlete's results (ATHLETES.md; the owner's mocks of 2026-11-02). The date in a column of its own at the left,
   the row's full height, wide enough for the longest short month («нояб.»), with room before the name, so every
   name starts at one place and the date never runs into it. No lines between the rows: every second row a faint
   shade (half the light surface over the card), the whole row the link, lit on a hover. The place a pill, gold,
   silver or bronze for the first three (the tints of the cups card above it), an outline below. */
a.registration-result-row {
  position: relative; gap: 16px; padding-left: calc(64px + 16px) !important; border-bottom: 0 !important;
  transition: background-color 120ms;
}
a.registration-result-row:nth-child(even) { background: color-mix(in srgb, var(--color-surface-light) 50%, var(--color-card-bg)); }
a.registration-result-row:hover { background: var(--color-surface-light); }
.registration-public div.registration-date-col {
  position: absolute; left: 0; top: 0; bottom: 0; width: 64px; align-items: center; justify-content: center;
}
a.registration-result-row .fw-semibold { line-height: 1.3; }
a.registration-result-row .small { margin-top: 2px; }
.registration-place {
  display: inline-block; min-width: 76px; padding: 4px 10px; border-radius: var(--radius-pill); text-align: center;
  font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap;
  border: 1px solid var(--color-border); color: var(--color-text-secondary);
}
.registration-place--gold { border-color: transparent; background: var(--color-rank-gold-tint); color: var(--color-rank-gold); }
.registration-place--silver { border-color: transparent; background: var(--color-rank-silver-tint); color: var(--color-rank-silver); }
.registration-place--bronze { border-color: transparent; background: var(--color-rank-bronze-tint); color: var(--color-rank-bronze); }

/* A phone: as the rows of `/profile` above (the owner's mocks of 2026-10-24) — the name wrapping instead of being
   squeezed; the place on a line of its own under the distance, aligned with the name (the date column stays the
   row's full height beside both); no chevron (the whole row is the link). */
@media (max-width: 760px) {
  a.registration-result-row { flex-wrap: wrap; gap: 8px 16px; }
  a.registration-result-row > .flex-grow-1 { flex-basis: 0; min-width: 0; }
  a.registration-result-row .registration-race-side { flex-basis: 100%; padding-left: 0; }
  a.registration-result-row .registration-race-side:not(:has(.registration-place)) { display: none; }
  .registration-result-chevron { display: none; }
}
