/* ==========================================================================
   Reassurance strip
   ========================================================================== */

.trust-strip {
  background: var(--color-bg-alt);
  padding-block: var(--band-y);
}

/* margin-inline stays auto.
   This element also carries .container, which centres itself with
   margin-inline: auto. A flat `margin: 0` here has the same specificity and
   used to lose, because block stylesheets were printed BEFORE the theme's
   own CSS. Moving these files out of blocks/ and into the theme flipped that
   order, so the reset started winning and the whole strip jumped to the left
   edge of the window while every other section stayed centred. */
.trust-strip__list {
  list-style: none;
  margin-block: 0;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}

@media (min-width: 45rem) {
  .trust-strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 68rem) {
  .trust-strip__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }

  /* Hairlines between, none before the first. Decorative: the strip still
     reads correctly as four items without them.

     --color-border rather than --color-divider: this strip sits on the soft
     white ground and the divider token is only 1.20:1 against it, which is
     faint to the point of not being there. */
  .trust-strip__item + .trust-strip__item {
    border-inline-start: 1px solid var(--color-divider);
    padding-inline-start: var(--sp-4);
  }
}

.trust-strip__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
}

.trust-strip__icon { color: var(--color-heading); }
.trust-strip__icon svg { stroke-width: 1.4; }

.trust-strip__title {
  color: var(--color-heading);
  font-size: var(--fs-h6);
  margin: 0 0 var(--sp-1);
  text-wrap: balance;
}

/* 14px rather than the 15px --fs-sm used elsewhere.
   All four descriptions should sit on two lines. At 15px the longest of them
   — "Your care is guided by the latest research and best practices." — takes
   three and the row goes ragged, and there is no width to win back: shrinking
   the icon and removing the item padding together gains about 26px where ~31
   is needed. One step down fixes all four. The alternative, if this ever feels
   too small, is to shorten that sentence by three or four words; the field is
   there to be edited. */
.trust-strip__text {
  color: var(--color-text);
  font-size: 0.875rem;
  line-height: var(--lh-snug);
  margin: 0;
}
