/* What is in a Pod (v2 #41), carrying the actives table (v2 #40). */

.ingredient-panel__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.ingredient-panel__intro {
  max-width: 640px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.ingredient-panel__eyebrow {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--color-text));
}

.ingredient-panel__intro h2 {
  margin: 0 0 16px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.16;
  color: rgba(var(--color-text));
  text-wrap: balance;
}

.ingredient-panel__intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(var(--color-light-text));
}

.ingredient-panel__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(24px, 4vw, 44px);
  margin-bottom: clamp(34px, 5vw, 56px);
}

.ingredient-panel__card {
  text-align: center;
}

.ingredient-panel__card-media {
  display: block;
  width: 100%;
  height: 200px;
  margin-bottom: 18px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(var(--color-text), 0.05);
}

.ingredient-panel__card h3 {
  margin: 0 0 10px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  color: rgba(var(--color-text));
}

.ingredient-panel__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(var(--color-light-text));
}

/* Aug 28 #9: on a phone the cards rail (shared [data-migration-rail]
   treatment) and the dot row takes over the block's bottom margin, so the dots
   sit against the rail rather than a gap away from it. */
@media (max-width: 759px) {
  .ingredient-panel__cards {
    margin-bottom: 0;
  }

  .ingredient-panel__cards + .migration-rail__dots {
    margin-bottom: 34px;
  }

  .ingredient-panel__card-media {
    height: 168px;
  }
}

/* The table scrolls inside its own box so a narrow phone never pushes the
   page sideways.

   Sep 1 #30: and the box is v2's again — a hairline border with clipped
   corners around a tinted header row, rather than the open ruled list this
   had become. The measurements are v2's: the same green at 0.18 outside and
   0.12 between rows, 6px corners, 12/14px cells, ivory behind the headers. */
.ingredient-panel__table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(33, 78, 52, 0.18);
  border-radius: 6px;
}

.ingredient-panel__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 420px;
}

.ingredient-panel__table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(var(--color-text));
  background: #f7f4ec;
}

/* The rules run between rows rather than under them, so the last row does not
   draw a line against the box's own border. */
.ingredient-panel__table td {
  padding: 12px 14px;
  color: rgba(var(--color-light-text));
  border-top: 1px solid rgba(33, 78, 52, 0.12);
  font-variant-numeric: tabular-nums;
}

.ingredient-panel__table td:first-child {
  font-weight: 600;
  color: rgba(var(--color-text));
}

.ingredient-panel__inactives,
.ingredient-panel__directions {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(var(--color-light-text));
}

.ingredient-panel__inactives strong {
  color: rgba(var(--color-text));
}
