/* Generated by brand/scripts/build-components.mjs from brand/components/. Do not edit. Load public/tokens/tokens.css first. */

/* Figure (L6 of nuevauno/nu#341): a number that matters, large and light, with what it is, how it changed and a small chart of
   its trend. The chart is the consumer's own SVG (an area and a line with its last point) in nu-figure__chart; the component
   sizes it and colors it with currentColor. --up and --down color the change. */
.nu-figure {
  display: grid;
  gap: var(--nu-space-4);
  min-width: 0;
  color: var(--nu-color-ink);
}

.nu-figure__label {
  color: var(--nu-color-muted);
  font-family: var(--nu-font-family-mono);
  font-size: var(--nu-size-label);
  letter-spacing: var(--nu-font-letter-spacing-label);
  text-transform: uppercase;
}

.nu-figure__value {
  font-size: var(--nu-size-title);
  font-weight: var(--nu-font-weight-regular);
  line-height: var(--nu-font-line-height-tight);
  font-variant-numeric: tabular-nums;
}

.nu-figure__unit {
  margin-left: var(--nu-space-4);
  color: var(--nu-color-muted);
  font-size: var(--nu-size-caption);
}

.nu-figure__change {
  color: var(--nu-color-muted);
  font-size: var(--nu-size-caption);
}

.nu-figure--up .nu-figure__change {
  color: var(--nu-color-success);
}

.nu-figure--down .nu-figure__change {
  color: var(--nu-color-error);
}

.nu-figure__chart {
  display: block;
  width: 100%;
  height: var(--nu-control-large);
  color: var(--nu-color-accent);
}
