/* Stat tiles and pill, matching the Workforce Index's .stat-block /
   .stat-pill. Brand fills keep dark text in both themes, as on the page. */

.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: 22px 20px 18px;
  border-radius: 8px;
  color: #111;
  background: var(--fill, #f3f3f3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tile--blue { --fill: var(--fill-blue); }
.tile--orange { --fill: var(--fill-orange); }
.tile--green { --fill: var(--fill-green); }
.tile--gray { --fill: var(--fill-gray); }

.tile__label {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.tile__value {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.tile__changes {
  list-style: none;
  margin: 10px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.78);
  font-variant-numeric: tabular-nums;
}

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

.footnote {
  margin: 12px 0 0;
  text-align: center;
  font-size: 1rem;
  color: #333;
}

[data-theme="dark"] .footnote { color: #d6d9dc; }

/* ── Pill (Unemployment section) ── */
.pill {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 9999px;
  color: #111;
  background: var(--fill-orange);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pill__icon {
  flex-shrink: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.pill__main { min-width: 0; }

.pill__label { margin: 0; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }

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

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

.pill__value {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 2rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .pill { border-radius: 24px; padding: 16px 20px; gap: 12px; }
  .pill__icon { font-size: 1.6rem; }
  .pill__label { font-size: 1.15rem; }
  .pill__sub { font-size: 0.85rem; }
  .pill__value { font-size: 1.6rem; }
}
