/*
 * A colour scale's six steps and its two ends (shared/_ramp_legend): the
 * market map's on the homepage, and a heat table's.
 */
@layer components {
  .ramp-legend {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }

  .ramp-legend__bound {
    color: var(--color-ink-subtle);
    font-size: var(--text-meta-xs);
    font-variant-numeric: tabular-nums lining-nums;
  }

  .ramp-legend__steps {
    display: flex;
    flex: 1;
    gap: 1px;
  }

  .ramp-legend__step {
    flex: 1;
    min-inline-size: 1rem;
    block-size: 0.75rem;
    background-color: var(--swatch);
  }
}
