/* ============================================================
   Container — shared responsive layout constraint
   Provides 1024px max content width with responsive side padding.
   Import this in any component that uses the .container class.
   ============================================================ */

.container {
  position:   relative;
  width:      100%;
  max-width:  calc(1024px + 160px); /* 1024px content + 80px × 2 */
  padding:    0 80px;
  margin:     0 auto;
  box-sizing: border-box;
}

/* Tablet (≤991px): 60px sides */
@media (max-width: 991px) {
  .container {
    padding: 0 60px;
  }
}

/* Landscape mobile (≤767px): 2rem sides */
@media (max-width: 767px) {
  .container {
    padding: 0 2rem;
  }
}



/* ============================================================
   Wide container — 1360px content + 48px side padding
   Used for full-bleed section content blocks (slider, big cards)
   that need to be wider than the standard 1024px text container.
   ============================================================ */

.container-wide {
  width:      100%;
  max-width:  calc(1384px + 96px);   /* 1384px content + 48px × 2 */
  padding:    0 3rem;                /* 48px sides */
  margin:     0 auto;
  box-sizing: border-box;
}

/* Tablet (≤991px): 16px less than .container (60px → 44px) */
@media (max-width: 991px) {
  .container-wide {
    padding: 0 44px;
  }
}

/* Landscape mobile (≤767px): 16px less than .container (2rem → 1rem) */
@media (max-width: 767px) {
  .container-wide {
    padding: 0 1rem;
  }
}


/* ============================================================
   Design refresh — docs/design-refresh-rules.md, ST-1 (the new homepage's
   stat cards, HomeSocialProofSection 276:4952). White ground, no full-bleed
   beige band (BG-1, BG-2). Blue 50 cards, radius 24, padding 24, no outline;
   figure Sans Light 72/1.0625 Blue 700, then a 1.5px Blue 700 rule above the
   caption (16 either side), caption Sans Regular 16/24 Blue 700. Steps as
   the homepage does: 60 at ≤991, the cards stack at ≤767 on the 16px inset.
   ============================================================ */
.partner-stats {
  width: 100%;
  padding: 4rem 0;
  background: var(--card);
  color: var(--secondary-foreground);
  font-family: var(--font-family-default);
}

.partner-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--spacing-4);   /* 16px */
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* `padding` restated at every width: the current look's ≤991/≤767 steps
   (24 / 28) would otherwise come through. */
.partner-stats__card {
  display: flex;
  min-height: 0;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--spacing-4);   /* 16px — figure → rule → caption */
  padding: var(--spacing-6);   /* 24px */
  background: var(--color-brand-blue-50);
  border-radius: var(--radius-lg);   /* 24px */
  box-sizing: border-box;
}

.partner-stats__value,
.partner-stats__description {
  margin: 0;
}

.partner-stats__value {
  width: 100%;
  padding-top: 0;
  font-size: 4.5rem;   /* 72px */
  line-height: 1.0625;   /* 76.5px, the homepage's measured box */
  font-weight: var(--font-weight-light);
  color: var(--color-brand-blue-700);
  white-space: nowrap;
}

/* The 1.5px rule is the caption's border; its padding is the rule's 16px gap.
   Full card width, so the current look's 250px measure is lifted. */
.partner-stats__description {
  max-width: none;
  font-size: var(--font-size-base);   /* 16px */
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);   /* 24px */
  width:     100%;
  padding-top: var(--spacing-4);   /* 16px */
  border-top: 1.5px solid var(--color-brand-blue-700);
  color:     var(--color-brand-blue-700);
  box-sizing: border-box;
}

@media (max-width: 991px) {


  /* 72px figures in ~260px cards would crowd; one step down (the homepage's). */
  .partner-stats__value {
    font-size: 3.75rem;   /* 60px */
  }


}

@media (max-width: 767px) {
  .partner-stats {
    padding: 3rem 0;
  }

  /* Stacked, on the 16px media inset, as the homepage's cards. */
  .partner-stats__grid {
    grid-template-columns: 1fr;
    width:                 auto;
    margin-inline:         -1rem;
  }


}

