:host {
  display: block;
  min-inline-size: 0;
  max-inline-size: 100%;
}
:host([hidden]) {
  display: none;
}
.root {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.value {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--bythium-text-primary);
}
.size-sm .value {
  font-size: 28px;
}
.size-md .value {
  font-size: 36px;
}
/* The home's ".built .proof dd" (accueil.css:569): 38 to 52 px, weight 640. */
.size-lg .value {
  font-size: clamp(38px, 3.6vw, 52px);
  font-weight: 640;
}
/* The unit reads as part of the figure but smaller, so a long unit never outweighs the number. */
.unit {
  font-size: 0.5em;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0;
  color: var(--bythium-text-secondary);
}
/* The mockups' dt (maquette.css:141) sets no line of its own: it reads on the body's 1.6. */
.label {
  margin: var(--space-2) 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bythium-text-secondary);
}
.delta {
  font-size: 13px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  color: var(--bythium-text-secondary);
}
.arrow {
  margin-inline-end: var(--space-1);
  font-size: 0.8em;
}
/* The brand gradient on the figure only: the unit and the label keep their own colours. */
.gradient {
  background: linear-gradient(100deg, var(--bythium-brand-cyan), var(--bythium-brand-vivid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (forced-colors: active) {
  .gradient {
    background: none;
    color: CanvasText;
  }
}
/* Tone against a threshold: the figure takes the status colour (text tokens at 4.5:1 in both themes) and the status
   line says the same in words after a decorative symbol, so colour is never the only signal. */
.tone-success .figure,
.tone-success .status {
  color: var(--bythium-status-success);
}
.tone-warning .figure,
.tone-warning .status {
  color: var(--bythium-status-warning);
}
.tone-danger .figure,
.tone-danger .status {
  color: var(--bythium-status-danger);
}
.status {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
}
.status-symbol {
  font-size: 0.9em;
}
@media (forced-colors: active) {
  .figure,
  .status {
    color: CanvasText;
  }
}
