/* hosp-age-ribbon — ranked ribbons of hospital type by age band */
.rb .rb-ribbon { fill-opacity: .68; transition: opacity .16s, fill-opacity .16s; }
.rb .rb-ribbon.hot { fill-opacity: .92; }
.rb .rb-end { font-size: 12px; font-weight: 350; letter-spacing: 0; font-variant-numeric: tabular-nums; fill: var(--ink); transition: opacity .15s; }
.rb .rb-axis .c-lbl { font-size: 13px; font-weight: 400; letter-spacing: 0; fill: var(--ink); }
@container (width <= 820px) {
  .rb .rb-end { font-size: 13px; }
  .rb .rb-axis .c-lbl { font-size: 14px; }
}

/* narrow layout: a legend that pins a series replaces the end labels */
.chart > .rb-legend { gap: 6px 14px; }
.rb-legend[hidden] { display: none; }
.rb-key {
  appearance: none;
  min-height: 28px;
  margin: 0;
  padding: 4px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
}
.chart > .rb-legend .rb-key { font-size: 12px; color: var(--muted); }
.chart > .rb-legend .rb-key.on { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
