/* ============================================
   Circular stat badges — 4-up on a dark section. Each badge is a
   square box with a pre-baked SVG ring as its background image
   (sourced from giantswarm.io/hubfs — the live site uses the same
   four assets). Label + value sit centered inside the ring via
   table-cell layout (mirrors the original markup, plays nicest
   with the SVG's aspect ratio).

   The four SVGs are hand-drawn rings with a 75% colored arc, a
   25% dark-navy track filling the gap, and rounded line-caps on
   the colored ends. Each has its gap in a different quadrant:
     1. blue       — gap bottom-left
     2. green      — gap top-left
     3. orange     — gap top-right
     4. blue (alt) — gap bottom-right
   ============================================ */

.gs-uc-stat-badges {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: var(--content-frame);
  justify-items: center;
}

.gs-uc-stat-badge {
  display: table;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  text-align: center;
  color: #fff;
}

/* The badge's <li> is the table; an inner table-cell would
   normally be added in markup. Here we use the two text spans as
   the rendered content but center them via a flex inner. Wrap the
   spans with display:flex via the badge being a flex container
   AND a table — actually keep it simple: badge is flex column. */
.gs-uc-stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Per-position ring asset. Each circle has a different gap
   quadrant — order matters: bottom-left, top-left, top-right,
   bottom-right. */
.gs-uc-stat-badge:nth-child(1) {
  background-image: url('https://www.giantswarm.io/hubfs/Illustrations/gs23-circle-loader-blue.svg');
}
.gs-uc-stat-badge:nth-child(2) {
  background-image: url('https://www.giantswarm.io/hubfs/Illustrations/gs23-circle-loader-green.svg');
}
.gs-uc-stat-badge:nth-child(3) {
  background-image: url('https://www.giantswarm.io/hubfs/Illustrations/gs23-circle-loader-orange.svg');
}
.gs-uc-stat-badge:nth-child(4) {
  background-image: url('https://www.giantswarm.io/hubfs/Illustrations/gs23-circle-loader-blue-2.svg');
}

/* Label + value share the same font-size so they read as one
   compact pair inside the ring. Label is bold + uppercase as the
   "category" header; value is lighter weight, mixed case. */
.gs-uc-stat-badge__label {
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
}

.gs-uc-stat-badge__value {
  font-size: 0.8125rem;
  font-weight: var(--weight-regular);
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  /* Tablet: 2x2 grid. */
  .gs-uc-stat-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
