/* ============================================================
   Widget · Stat Card
   ============================================================
   Big-number callout. Sage card, white type, radial-gradient
   sheen in the corner so the surface doesn't read as flat
   construction-paper.
   ============================================================ */

.bdc-stat-card {
  background: var(--bdc-sage);
  color: #fff;
  border-radius: var(--bdc-r-lg);
  padding: 24px 26px;
  margin: 18px 0 24px;
  position: relative;
  overflow: hidden;
  font-family: var(--bdc-sans);
}

.bdc-stat-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.bdc-stat-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  position: relative;
}

.bdc-stat-card__numbers {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bdc-stat-card__num {
  font-family: var(--bdc-serif);
  font-size: 56px;
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.bdc-stat-card__num small {
  font-size: 22px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  margin-left: 2px;
}

.bdc-stat-card__bridge {
  font-family: var(--bdc-serif);
  font-size: 22px;
  margin: 8px 0;
  color: rgba(255,255,255,0.92);
}

.bdc-stat-card__label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.bdc-stat-card__text {
  font-family: var(--bdc-serif);
  font-size: 17px;
  line-height: 1.45;
  margin: 0;
  color: #fff;
  text-wrap: pretty;
}

.bdc-stat-card__cite {
  font-family: var(--bdc-mono);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  margin-top: 10px;
}

/* ───── Tablet / desktop ─────
   At ≥ 600px the two halves sit side-by-side so the big
   numbers anchor the left and the descriptive copy carries
   the right. Mirrors the mockup's `@media (min-width: 600px)`
   on `.stat-grid`. */

@media (min-width: 600px) {
  .bdc-stat-card__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 24px;
  }
}

@media (min-width: 768px) {
  .bdc-stat-card {
    padding: 32px 34px;
    margin: 24px 0 32px;
  }
  .bdc-stat-card__num {
    font-size: 68px;
  }
  .bdc-stat-card__num small {
    font-size: 26px;
  }
  .bdc-stat-card__bridge {
    font-size: 24px;
    margin: 10px 0;
  }
  .bdc-stat-card__label {
    font-size: 14px;
  }
  .bdc-stat-card__text {
    font-size: 19px;
    line-height: 1.5;
  }
  .bdc-stat-card__cite {
    font-size: 12.5px;
  }
}

@media (min-width: 1200px) {
  .bdc-stat-card {
    padding: 36px 40px;
  }
  .bdc-stat-card__num {
    font-size: 76px;
  }
  .bdc-stat-card__text {
    font-size: 20px;
  }
}

/* ───── Specificity safety ─────
   The believe-detox theme styles `.bdc-post-content-col p` with
   a dark site-text color (#2A3441). That selector is (0,1,1).
   Our `.bdc-stat-card__text` alone is (0,1,0) → theme wins →
   white description renders in dark on the sage card and reads
   as invisible.

   Re-declaring under the `.bdc-v3` wrapper (always present on
   our render output, see render() in class-stat-card.php) bumps
   specificity to (0,2,0) so the white survives. Applied to every
   colored text fragment defensively — even <div>s — so a future
   theme rule like `.bdc-post-content-col div` can't bite later. */

.bdc-v3 .bdc-stat-card { color: #fff; }
.bdc-v3 .bdc-stat-card__num,
.bdc-v3 .bdc-stat-card__label,
.bdc-v3 .bdc-stat-card__text { color: #fff; }
.bdc-v3 .bdc-stat-card__num small,
.bdc-v3 .bdc-stat-card__bridge { color: rgba(255,255,255,0.92); }
.bdc-v3 .bdc-stat-card__cite { color: rgba(255,255,255,0.88); }
