/* Result bars: two rows, each a name, a bar and a figure. The second row is the point,
   so it is coral. The first is context and stays grey. Values are printed at the bar
   tips, so nothing depends on colour. */
#portfolio-table-study .context-result.has-bars { letter-spacing:0; }
#portfolio-table-study .result-bars {
  display:grid; grid-template-columns:max-content minmax(0,1fr);
  column-gap:10px; row-gap:7px; align-items:center;
  margin-top:2px;
}
#portfolio-table-study .rb-row { display:contents; }
#portfolio-table-study .rb-label {
  font:500 13px/1.2 var(--type-text); color:var(--muted-ink); white-space:nowrap;
}
#portfolio-table-study .rb-track { display:flex; align-items:center; gap:8px; min-width:0; }
#portfolio-table-study .rb-bar {
  flex:0 0 auto; height:12px;
  width:calc((100% - 62px) * var(--share,1));
  background:#bfb0be; border-radius:0 4px 4px 0;
  transform-origin:left center;
}
#portfolio-table-study .rb-after .rb-bar { background:#d66d51; }
#portfolio-table-study .rb-value {
  font:700 14px/1 var(--type-text); color:#3c2046; white-space:nowrap;
}
#portfolio-table-study .rb-row:not(.rb-after) .rb-value { font-weight:500; color:var(--muted-ink); }
#portfolio-table-study .rb-caption {
  display:block; margin-top:9px;
  font:400 12.5px/1.4 var(--type-text); color:var(--muted-ink);
}
/* The bars grow once, as the card lands. The timing starts when the card shows its
   result, not on a page state, so they can never show full and then start again. */
@media (prefers-reduced-motion:no-preference) {
  #portfolio-table-study .rb-bar { animation:rb-grow 520ms cubic-bezier(.2,.7,.2,1) 650ms both; }
  #portfolio-table-study .rb-after .rb-bar { animation-delay:790ms; }
}
@keyframes rb-grow { from { transform:scaleX(0); } to { transform:scaleX(1); } }
