/* Stat tiles and pill, matching the WWA port's .stat-block (04 · State
   Overview) and .stat-pill (05 · Unemployment). Fill and text colour come from
   the .wi-theme--* class on each tile. */

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

.tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.tile {
  flex: 1 1 220px;
  padding: 24px 20px;
  border-radius: 12px;
  background: var(--wi-fill, #f3f3f3);
  color: var(--wi-text, var(--wwa-charcoal));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tile__label {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
}

.tile__value {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.tile__changes {
  list-style: none;
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
}

.arrow { display: inline-block; width: 1em; }

.footnote {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--wi-ink-soft);
}

/* ── Pill (Unemployment section) ── */
.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__icon {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.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__icon { font-size: 1.6rem; }
  .pill__label { font-size: 1.1rem; }
  .pill__sub { font-size: 0.9rem; }
  .pill__value { font-size: 1.7rem; }
}
