/* Set the --runner-chip-* colors on a dark surface; keep roster geometry shared. */
.runner-name-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.runner-name-chips > li { display: flex; min-width: 0; max-width: 100%; }
.runner-name-chip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  max-width: 100%;
  padding: 4px 12px;
  border: 1px solid var(--runner-chip-border, transparent);
  border-radius: 999px;
  background: var(--runner-chip-fill, #dcece6);
  color: var(--runner-chip-text, #203d36);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.25;
}
.runner-name-label { min-width: 0; overflow-wrap: anywhere; }
a.runner-name-chip { color: var(--runner-chip-link, #17544b); font-weight: 650; text-decoration: none; }
.runner-name-chip:has(> img:not([hidden])) { padding-inline-start: 5px; }
.runner-name-chip > img {
  display: block;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.runner-name-chip > img[hidden] { display: none; }
a.runner-name-chip:not(:has(> img:not([hidden]))) {
  border-color: var(--runner-chip-outline, #287567);
  background: var(--runner-chip-outlined-fill, #fff);
}
a.runner-name-chip:not(:has(> img:not([hidden])))::after {
  content: '';
  box-sizing: border-box;
  flex: none;
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.runner-name-chips a.runner-name-chip:is(:hover, :focus-visible) {
  background: var(--runner-chip-hover, #d0e7dd);
  border-color: var(--runner-chip-outline, #287567);
}
a.runner-name-chip:focus-visible { outline: 2px solid var(--runner-chip-focus, #126456); outline-offset: 2px; }
