/*
 * All competitions (/competition). No mock-up; the lead sheet and the chips are
 * those of /club, the age rows follow the league links of the 404 page.
 */

.fwd-cupx{scroll-margin-top:16px}
.fwd-cupx__now{align-self:center;padding:2px 8px;border-radius:5px;background:var(--surface-2);
  font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}

/* one row per age: the age on the left, its leagues as a two-column list */
.fwd-cupx__age{display:grid;grid-template-columns:88px minmax(0,1fr);gap:var(--s2);align-items:start;
  padding:6px 20px;border-top:1px solid var(--hair-2)}
.fwd-cupx__age > b{font-size:15px;font-weight:800;padding-top:10px}
.fwd-cupx__lgs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--s3)}

.fwd-cupx__lg{display:flex;align-items:center;gap:12px;min-width:0;padding:8px 10px;margin:0 -10px;border-radius:8px}
a.fwd-cupx__lg:hover{background:var(--surface-2)}
a.fwd-cupx__lg:hover .fwd-cupx__nm{color:var(--gold-ink)}
.fwd-cupx__nm{flex:0 0 auto;font-size:15px;font-weight:700}
.fwd-cupx__nm span{margin-left:4px;font-size:12.5px;font-weight:500;color:var(--faint)}

/* the winner sits on the right; a long name gives way, not the league */
.fwd-cupx__win{display:flex;align-items:center;gap:8px;margin-left:auto;min-width:0;
  font-size:14px;color:var(--ink-2);text-align:right}
.fwd-cupx__win img{width:22px;height:22px;object-fit:contain;flex:0 0 auto}
.fwd-cupx__run{margin-left:auto;font-size:13px;color:var(--faint);white-space:nowrap}

@media (max-width:860px){
  .fwd-cupx__lgs{grid-template-columns:1fr}
}

@media (max-width:620px){
  .fwd-cupx__age{grid-template-columns:1fr;gap:2px;padding:10px 16px}
  .fwd-cupx__age > b{padding-top:0}
  .fwd-cupx__lg{padding:7px 8px;margin:0 -8px}
}
