/* Bans against the typical ban rate (bc-*; bans-chart.js): champion, a pair of bars (your lobbies in the "you" sky
   colour, typical in the region in stone) with their rates, and how many times more or less often it is banned. */

.bc-legend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 10px;
  letter-spacing: var(--j-track-label);
  text-transform: uppercase;
  color: var(--j-muted);
}

.bc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bc-swatch {
  width: 14px;
  height: 6px;
}

.bc-swatch--you,
.bc-bar--you .bc-bar__track i {
  background: var(--j-gloss), var(--j-fill-ember);
}

.bc-swatch--typical,
.bc-bar--typical .bc-bar__track i {
  background: rgba(var(--j-stone-rgb), 0.75);
}

.bc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bc-row {
  display: grid;
  grid-template-columns: minmax(118px, 160px) minmax(90px, 1fr) 92px;
  align-items: center;
  column-gap: 14px;
  min-height: 50px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--j-line-soft);
  animation: j-appear 0.45s var(--j-ease) backwards;
  animation-delay: var(--d, 0s);
}

.bc-champ {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bc-champ > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bc-champ b {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--j-text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bc-champ small {
  font-size: 9.5px;
  letter-spacing: var(--j-track-label);
  text-transform: uppercase;
  color: var(--j-dim);
}

.bc-bars {
  display: grid;
  gap: 4px;
}

.bc-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  column-gap: 8px;
}

.bc-bar__track {
  height: 8px;
  background: rgba(var(--j-white-rgb), 0.04);
}

.bc-bar--typical .bc-bar__track {
  height: 5px;
}

.bc-bar__track i {
  display: block;
  height: 100%;
  transform-origin: left;
  animation: j-grow 0.8s var(--j-ease) backwards;
  animation-delay: calc(var(--d, 0s) + 120ms);
}

.bc-bar b {
  font-family: var(--j-display);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  text-align: right;
}

.bc-bar--you b { color: var(--j-ember-200); }
.bc-bar--typical b { font-size: 11.5px; color: var(--j-muted); }

.bc-diff {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  white-space: nowrap;
}

.bc-diff b {
  font-family: var(--j-display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  color: var(--j-text-2);
}

.bc-diff em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: var(--j-track-label);
  text-transform: uppercase;
  color: var(--j-muted);
}

.bc-diff small {
  font-family: var(--j-display);
  font-size: 11.5px;
  color: var(--j-dim);
}

.bc-diff.is-more b { color: var(--j-gold-50); }
.bc-diff.is-more small { color: var(--j-gold-300); }

@media (max-width: 520px) {
  .bc-row {
    grid-template-columns: minmax(0, 1fr) 76px;
    row-gap: 6px;
  }
  .bc-bars {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .bc-diff b { font-size: 16px; }
}

.bc-note {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--j-dim);
}
