/* Club cup eligibility warnings (C2). Amber = "valid, but not counted"; an unpaid personal
   registration counts and carries a separate outlined mark. */

/* The strip above a roster */
.elig-strip {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid rgba(217,119,6,.35); background: var(--color-cup-tint-light);
  border-radius: var(--radius-lg); padding: 12px 14px; margin-bottom: 16px;
}
.elig-strip > i { color: var(--color-cup); font-size: 17px; line-height: 1.2; }
.elig-strip-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.elig-strip-title { font-size: 13.5px; font-weight: 600; color: var(--color-text-primary); line-height: 1.4; }
.elig-strip-note { font-size: 12.5px; color: var(--color-text-secondary); line-height: 1.45; }
.elig-strip-link { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; min-width: 0; }
.elig-strip-link code {
  font-family: var(--font-family-mono); color: var(--color-text-secondary); background: var(--color-card-bg);
  border: 1px solid var(--color-border); border-radius: 8px; padding: 3px 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.elig-copy {
  flex: none; border: 1px solid var(--color-border); background: var(--color-card-bg); border-radius: 8px;
  padding: 2px 9px; font-size: 12px; color: var(--color-text-secondary);
}

/* Roster rows */
.roster-row.is-uncounted { border-color: rgba(217,119,6,.45); background: rgba(254,243,199,.45); }
.roster-row.is-uncounted .roster-mark { background: var(--color-cup); border-color: var(--color-cup); color: #fff; }
.list-group-item.is-uncounted { background: rgba(254,243,199,.45); }
.roster-name-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.elig-tag {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill);
  background: var(--color-cup-tint); color: #92400e; white-space: nowrap;
}
.elig-tag.is-unpaid { background: transparent; border: 1px solid rgba(217,119,6,.5); }
.roster-reason { font-size: 12px; color: #92400e; }
.roster-reason.is-muted { color: var(--color-text-muted); }

/* The roster cell's note */
.reg-cell-note.amber { color: #92400e; font-weight: 600; }
.reg-cell-note.amber i { color: var(--color-cup); margin-right: 4px; }

/* Search suggestions carry the tag next to the name */
.elig-suggestion { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* Banners and badges on the cup page */
.reg-banner.is-warn { border-color: rgba(217,119,6,.4); background: var(--color-cup-tint-light); }
.reg-banner.is-warn .reg-banner-title i { color: var(--color-cup); margin-right: 6px; }
.club-badge.is-warn { background: var(--color-cup-tint); color: #92400e; }
.club-badge.is-unpaid { background: transparent; border: 1px solid rgba(217,119,6,.5); color: #92400e; }
.row-badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* Admin: the club's standing */
.elig-row-muted td { color: var(--color-text-faint); }
.elig-struck { text-decoration: line-through; color: var(--color-text-faint); font-weight: 400; }
/* A member counted in some races only (CUP-CLUB-RULES.md, mock 4): how many races are left out. */
.elig-partial { color: var(--color-text-muted); font-size: 12.5px; font-weight: 400; }

@media (max-width: 600px) {
  .roster-name-line { flex-wrap: wrap; gap: 2px 8px; }
  .roster-row .roster-name { white-space: normal; }
  .elig-copy span { display: none; }
  .elig-suggestion { flex-wrap: wrap; }
  /* On a phone the races left out go under the points, on one line, not word by word beside them. */
  .elig-partial { display: block; white-space: nowrap; }
}

/* Hidden while everyone counts: `.elig-strip`'s own display, later in the cascade, must not win. */
.elig-strip.cup-hidden, .reg-cell-note.cup-hidden { display: none; }
