@layer components {
  /* Base
  /* -------------------------------------------------------------------------- */

  /* The dashboard's cards, made compact: on the reports page they sit above
  /* the table, which is what the page is for. Two to a row on a phone. */
  .truffle-pig-stats {
    --card-gap: 0.25rem;
    --card-padding: 12px;
    --dashboard-card-value-size: var(--text-large);
    --dashboard-column-size: min(100%, 10rem);

    /* Half a phone's width: a size down, so "2 hours ago" stays on one line */
    @media (max-width: 639px) {
      --dashboard-card-value-size: var(--text-medium);
    }
  }

  /* The noun after a count, e.g. "of 310 works" */
  .truffle-pig-stats__unit {
    color: var(--color-ink-muted);
    font-size: var(--text-small);
    font-weight: 400;
  }
}
