/* stats — this component's own styles, put in the head by the renderer where it is drawn.
   Colours and sizes only through var(--*), so the design drives these too. */

.hero-stats {
  display: flex;
  gap: 2.6rem;
  margin: 2.6rem 0 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.hero-stats > div { display: flex; flex-direction: column; }

.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-stats dt { font-size: .82rem; color: var(--muted); }

@media (max-width: 640px) {
    .hero-stats { flex-wrap: wrap; gap: 1.4rem 2.2rem; }
}

/* giant: a band of the primary colour across the page, the figures very large, divided by rules. */
.section:has(.stats--giant) { background: var(--primary); color: var(--primary-ink); }
.stats--giant { --ink: var(--primary-ink); --muted: color-mix(in srgb, var(--primary-ink) 72%, transparent); --line: color-mix(in srgb, var(--primary-ink) 25%, transparent); }
.stats--giant .hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; border-top: 2px solid var(--primary-ink); }
.stats--giant .hero-stats > div { padding: 1.75rem 1.75rem 0 0; }
.stats--giant .hero-stats > div + div { padding-left: 1.75rem; border-left: 2px solid var(--line); }
.stats--giant .hero-stats dd { font-size: clamp(3rem, 8vw, 7.5rem); line-height: .9; white-space: nowrap; }
.stats--giant .hero-stats dt { margin-top: 1rem; font-size: 1.1rem; max-width: 15rem; }
@media (max-width: 900px) {
  .stats--giant .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .stats--giant .hero-stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}
