/* Stat pill, matching the WWA port's .stat-pill. Copied from lmi-esd-state's
   cards.css (Pill section); the fill comes from a .wi-theme--* class. */

.cards { padding: 4px 2px 6px; }

.pill {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  border-radius: 9999px;
  background: var(--wi-fill, #f3f3f3);
  color: var(--wi-text, var(--wwa-charcoal));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pill__main { flex: 1 1 0; min-width: 0; }

.pill__label {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
}

.pill__sub { margin: 2px 0 0; font-size: 1rem; }

.pill__note { margin: 4px 0 0; font-size: 0.85rem; font-style: italic; opacity: 0.9; }

.pill__value {
  flex-shrink: 0;
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .pill { border-radius: 24px; padding: 16px 20px; gap: 12px; flex-wrap: wrap; }
  .pill__label { font-size: 1.1rem; }
  .pill__sub { font-size: 0.9rem; }
  .pill__value { font-size: 1.7rem; }
}

/* Narrow frames (the Workforce Index's sidebar): stack label, number and
   sub-line like the port's stat tiles instead of squeezing the text beside
   the number. */
@media (max-width: 440px) {
  .pill {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "label"
      "value"
      "sub"
      "note";
    align-items: center;
    gap: 6px;
    border-radius: 16px;
    padding: 18px 20px;
  }
  .pill__main { display: contents; }
  .pill__label { grid-area: label; font-size: 1.1rem; }
  .pill__value { grid-area: value; margin: 2px 0 0; font-size: 2.4rem; line-height: 1.1; }
  .pill__sub { grid-area: sub; margin: 0; }
  .pill__note { grid-area: note; margin: 0; }
}
