/* Generated from products/design-system/shared/runway-card by Navorina/scripts/sync-ds-runway.mjs. Do not edit. */
/* Runway (nv-m-runway): the one source of runway card styles for the DS catalog and the product.
   Markup: shared/runway-card.js. The product gets a byte-identical copy in css/components/nv-runway.css
   via Navorina/scripts/sync-ds-runway.mjs; edit this file only.

   Typography follows the stat canon: value clamp(20px, 7cqi, 24px) semibold, caption and metrics 13,
   metric values 15 semibold, trend and foot 12. Every state keeps the same rows and heights:
   lead 52 · metrics 40 · trend 3 × 20 · foot 32, so switching a case never moves the island. */
.nv-m-runway__content {
  --nv-runway-text: var(--nv-table-text, var(--dash-text));
  --nv-runway-cell: var(--nv-table-cell, var(--dash-text-muted));
  --nv-runway-head: var(--nv-table-head, var(--dash-text-subtle));
  --nv-runway-bone: var(--nv-table-well, var(--nv-chart-track));
  --nv-runway-bar: var(--nv-chart-track, var(--nv-runway-bone));
  --nv-runway-fill: var(--nv-chart-orange, #ff9f0a);
  display: grid;
  min-width: 0;
  gap: 16px;
  color: var(--nv-runway-text);
  container: nv-runway / inline-size;
}

.nv-m-runway__content p,
.nv-m-runway__content dl,
.nv-m-runway__content dd { margin: 0; }

.nv-m-runway__lead {
  display: grid;
  min-width: 0;
  min-height: 52px;
  align-content: start;
  gap: 2px;
}

.nv-m-runway__value {
  overflow: hidden;
  color: var(--nv-runway-text);
  font-size: clamp(20px, 7cqi, 24px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 30px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nv-m-runway__caption {
  overflow: hidden;
  color: var(--nv-runway-cell);
  font-size: var(--nv-type-callout-size, 13px);
  letter-spacing: var(--nv-type-callout-tracking, -0.005em);
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nv-m-runway__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.nv-m-runway__metric {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.nv-m-runway__metric dt {
  overflow: hidden;
  color: var(--nv-runway-head);
  font-size: var(--nv-type-callout-size, 13px);
  letter-spacing: var(--nv-type-callout-tracking, -0.005em);
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nv-m-runway__metric dd {
  overflow: hidden;
  color: var(--nv-runway-text);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Trend: one grid for the three rows, so months, bars and amounts sit on shared axes. */
.nv-m-runway__trend {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 8px;
  min-width: 0;
}

.nv-m-runway__trend-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  min-height: 20px;
  font-size: var(--nv-type-caption-size, 12px);
  letter-spacing: var(--nv-type-caption-tracking, 0);
  line-height: 16px;
}

.nv-m-runway__month {
  color: var(--nv-runway-head);
  white-space: nowrap;
}

.nv-m-runway__bar {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--nv-runway-bar);
}

.nv-m-runway__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--nv-runway-fill);
}

.nv-m-runway__amount {
  min-width: 56px;
  color: var(--nv-runway-cell);
  font-variant-numeric: tabular-nums;
  text-align: end;
  white-space: nowrap;
}

.nv-m-runway__trend-row--gain .nv-m-runway__amount { color: var(--nv-chart-green, var(--dash-green)); }

/* Foot: one quiet row. It always exists so every state has the same height. */
.nv-m-runway__foot {
  display: flex;
  min-height: 32px;
  align-items: center;
  overflow: hidden;
  color: var(--nv-runway-head);
  font-size: var(--nv-type-caption-size, 12px);
  letter-spacing: var(--nv-type-caption-tracking, 0);
  line-height: 16px;
}

/* Try again: the island's ghost action, same metrics as the donut retry. */
.nv-m-runway__retry {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-inline-start: -8px;
  padding-inline: 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nv-runway-text);
  font: inherit;
  font-size: var(--nv-type-callout-size, 13px);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.nv-m-runway__retry:hover { background: var(--nv-runway-bone); }

.nv-m-runway__retry:focus-visible {
  outline: 2px solid var(--nv-chart-blue, currentColor);
  outline-offset: 2px;
}

/* Loading: text turns into bones of the same size, bars stay calm tracks. */
.nv-m-runway__bone {
  display: inline-block;
  border-radius: 999px;
  background: var(--nv-runway-bone);
  color: transparent;
  line-height: 1;
  user-select: none;
}

.nv-m-runway__content--insufficient .nv-m-runway__value,
.nv-m-runway__content--error .nv-m-runway__value {
  font-size: clamp(17px, 6cqi, 20px);
}

.nv-m-runway__content--insufficient .nv-m-runway__metric:last-child dd,
.nv-m-runway__content--error .nv-m-runway__metric dd { color: var(--nv-runway-head); }

.nv-m-runway__content--loading .nv-m-runway__bar,
.nv-m-runway__content--error .nv-m-runway__bar,
.nv-m-runway__content--insufficient .nv-m-runway__bar { background: var(--nv-runway-bone); }

@media (prefers-reduced-motion: reduce) {
  .nv-m-runway__retry { transition: none; }
}
