.fun-facts .block {
	display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: start;
    gap: 1rem;
    height: stretch;
}

.layout:has(.fun-facts) {
  /* background: linear-gradient(150deg, #0c2a47 0%, #14827c 118%); */
      background: var(--color-bg);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.fun-facts .block .content {
    position: relative;
    border-radius: 50%;
    text-align: center;
    width: clamp(7rem, 9vw, 10rem);
    height: clamp(7rem, 9vw, 10rem);
    max-width: 10rem;
    max-height: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: center;
    background: rgba(255, 255, 255, 0.04);   /* subtle inner fill grounds the circle */
    /* border removed — the ring is now drawn by ::before */
}

/* faint full ring + colored accent arc, drawn as one masked layer */
.fun-facts .block .content::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;                             /* = ring thickness */
    border: 1px rgba(255, 255, 255, 0.22) solid;
    /* -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0); */
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* keep the number above the ring layer */
.fun-facts .block .content p {
    position: relative;
    z-index: 1;
}

.fun-facts .layout__region {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	justify-content:center;
	align-items:center;
	gap: 1rem;
    width: 66%;
    margin: auto;
}

.fun-facts .block:nth-child(even) .content {
    --arc-color: #ff6b5b;   /* coral on even circles, teal default on odd */
}

/* the 3rd circle is the 88% — fill its arc to match the value */
.fun-facts .block:nth-child(3) .content {
    --arc: 88%;
    --arc-color: #57C7B8;
}

.fun-facts .block h2 {
    text-align: center;
    color: white;
    font-size: 16px;
    min-height: 2.6em;      /* reserves space for up to 2 lines */
    display: flex;
    align-items: center;
    justify-content: center;
}

.fun-facts .block .content p {
	font-size: 2.5em;
    margin: 0 !important;
    font-weight: 700;
    color: white;
}

.fun-facts-title {
    margin-top: 8rem;
    color: white;
    text-align: center;
}

.fun-facts-title::after {
  content: "";
  display: block;
  inline-size: 5rem; block-size: 3px;
  margin-block-start: .85rem;
  background: var(--accent-orange);
  border-radius: 2px;
  justify-self: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Large tablets / small laptops: 6 circles across in a 66%-wide region
   gets cramped — widen the region first before dropping columns, so the
   6-across look survives as long as possible. */
@media (max-width: 1399px) {
    .fun-facts .layout__region {
        width: 85%;
    }
}

/* Tablets: 6-across no longer fits — 3×2. align-items switches to start
   so rows with longer captions don't vertically offset their neighbors'
   circles. */
@media (max-width: 1199px) {
    .fun-facts .layout__region {
        grid-template-columns: repeat(3, 1fr);
        width: 90%;
        align-items: start;
        row-gap: 2rem;
    }

    /* clamp() minimum (7rem) is the operative size here; give the vw
       midpoint more influence so circles don't all pin to minimum */
    .fun-facts .block .content {
        width: clamp(7rem, 25vw, 10rem);
        height: clamp(7rem, 25vw, 10rem);
    }

}

/* Phones: 2×3. Keep circles readable rather than shrinking further. */
@media (max-width: 767px) {
    .fun-facts .layout__region {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        padding: 0 1rem;
        row-gap: 1.75rem;
    }

    .fun-facts .block .content {
        width: clamp(6.5rem, 26vw, 9rem);
        height: clamp(6.5rem, 26vw, 9rem);
    }

    .fun-facts .block .content p {
        font-size: 1.3em;
    }

}

/* Small phones: stay 2-across (1-across makes a very tall scroll of
   circles) but tighten type and spacing */
@media (max-width: 420px) {
    .fun-facts .layout__region {
        gap: 0.75rem;
        row-gap: 1.5rem;
    }

    .fun-facts .block h2 {
        font-size: 0.8em;
    }

    .fun-facts .block .content p {
        font-size: 1.15em;
    }
}