/* Restore method details only in the textual leaderboard model column. */
#public .leaderboard-model-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  min-width: 0;
  margin-top: 5px;
}

#public .leaderboard-repository-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #2f6f3c;
  border: 1px solid rgb(47 162 65 / 0.22);
  border-radius: 999px;
  background: rgb(52 160 64 / 0.06);
  text-decoration: none;
  font: 12px/1 Inter, Arial, "Microsoft YaHei", sans-serif;
}

#public .leaderboard-repository-link:hover {
  color: #2fa241;
  border-color: rgb(47 162 65 / 0.42);
  background: rgb(52 160 64 / 0.12);
}

#public :is(.leaderboard-version-badge, .leaderboard-category-badge) {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  height: 20px;
  box-sizing: border-box;
  padding: 2px 5px;
  overflow: hidden;
  color: #2f6f3c;
  border: 1px solid rgb(47 162 65 / 0.18);
  border-radius: 999px;
  background: rgb(52 160 64 / 0.06);
  font: 600 11px/1.3 Inter, Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

#public .leaderboard-version-badge {
  flex: 0 0 38%;
  color: #5e6f77;
  border-color: rgb(94 111 119 / 0.18);
  background: rgb(94 111 119 / 0.08);
}

#public .leaderboard-version-badge:only-child {
  flex: 1 1 0;
}

#public .leaderboard-meta-scroll-text {
  display: inline-block;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  font: inherit;
  color: inherit;
  vertical-align: top;
}

#public .is-meta-overflowing > .leaderboard-meta-scroll-text {
  animation: leaderboard-meta-cycle var(--meta-scroll-duration, 5s) ease-in-out 0.6s infinite;
}

/* Reveal to the left, pause, then reset; never scroll back and forth. */
@keyframes leaderboard-meta-cycle {
  0%, 18% { transform: translateX(0); }
  76%, 88% { transform: translateX(var(--meta-scroll-offset, 0px)); }
  88.01%, 100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  #public .is-meta-overflowing > .leaderboard-meta-scroll-text {
    animation: none;
  }
  #public :is(.leaderboard-version-badge, .leaderboard-category-badge).is-meta-overflowing {
    overflow-x: auto;
    scrollbar-width: none;
  }
}
