/* When the leaderboard comes on screen, its bars rise in turn and their numbers count up; bars.js
   starts it. It ends on the still chart, and it does not run for print, the PDF, or reduced motion. */
@keyframes bars-grow { from { transform: scaleY(0); } }
@keyframes bars-fade { from { opacity: 0; } }
html.bars-run #fig-leaderboard rect { transform-box: fill-box; transform-origin: 50% 100%; animation: bars-grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.15s + var(--i, 0) * 80ms); }
html.bars-run #fig-leaderboard .c-val { animation: bars-fade 0.25s ease-out both; animation-delay: calc(0.15s + var(--i, 0) * 80ms); }
html.bars-run #fig-leaderboard .c-err { animation: bars-fade 0.3s ease-out both; animation-delay: calc(0.75s + var(--i, 0) * 80ms); }
/* Until the figure is on screen the bars wait at the baseline. Printing shows them whole. */
html.bars-wait #fig-leaderboard rect { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
html.bars-wait #fig-leaderboard :is(.c-val, .c-err) { opacity: 0; }
@media print { html.bars-wait #fig-leaderboard rect { transform: none; } html.bars-wait #fig-leaderboard :is(.c-val, .c-err) { opacity: 1; } }
