.pt-numbers-section {
  margin-block: 2.5rem;
}

.pt-numbers-section__header {
  margin-bottom: 1rem;
}

.pt-numbers-section__divider {
  margin: 0 0 0;
  border: 0;
  opacity: 1;
}

/* Mobile-first: 1 column, stepping up to 2 then 4 at the sm/lg breakpoints. */
.pt-numbers-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* Container draws the top/left edges; each cell draws its right/bottom,
     giving single-line borders for any column count. */
  border-top: 1px solid #000;
  border-left: 1px solid #000;
}

.pt-numbers-section__grid article {
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
}

/* Compact number cells inside a section grid (override standalone number styles). */
.pt-numbers-section .number {
  margin: 0;
  padding: 0;
  border-radius: 0;
  gap: 0;
  height: 100%;
  text-align: left;
}

.pt-numbers-section .number__value {
  flex: 1 1 auto;
  padding: 1.8rem 1rem 0rem 1rem;
  font-size: 4rem;
  font-weight: 100;
  line-height: 1.1;
  border-bottom: 0px solid #000;
}

.pt-numbers-section .number__value:before,
.pt-numbers-section .number__value:after {
  display: none;
}

.pt-numbers-section .number__label {
  padding: 0.4rem 1rem 1.8rem 1rem;
}

.pt-numbers-section .number__label,
.pt-numbers-section .number__label * {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--bs-secondary-color, #555);
}

.pt-numbers-section .number__label p {
  margin: 0;
  text-align: left;
}

/* ≥ sm: two columns. */
@media (min-width: 576px) {
  .pt-numbers-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ≥ md: larger cell padding, smaller value type. */
@media (min-width: 768px) {
}

/* ≥ lg: four columns; exactly three figures → three equal columns. */
@media (min-width: 992px) {
  .pt-numbers-section__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 0;
  }

  /* Container top edge is off at this breakpoint; the first row (first four
     cells) draws it instead, so a short first row stops short of the grid. */
  .pt-numbers-section__grid .number:nth-child(-n+4) {
    border-top: 1px solid #000;
  }

  .pt-numbers-section__grid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pt-numbers-section__grid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .pt-numbers-section .number__value {
    font-size: 4.5rem;
  }
  .pt-numbers-section .number__label,
  .pt-numbers-section .number__label * {
        font-size: 16px;
        font-size: 22px;
        line-height: 30px;
        font-weight: 300;
        color: #333;
      }
}
