/* The trust row - templates/trust_row.php: who uses it, client logos, and badges to the
   Accessibility Conformance Report. On the home page and /purchase. */

.trust-row { --trust-ink: #12171d; --trust-muted: #54647c; --trust-accent: #136b42; text-align: center; }
.trust-row > p { margin: 0 0 18px; font-size: .95rem; color: var(--trust-muted); }

.trust-logo-slots, .trust-badges { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; }
.trust-logo-slots li::before, .trust-badges li::before { content: none; }

.trust-logos { max-width: 1080px; margin: 0 auto 22px; }

/* Five slots, of which three to five show by width (the media queries below); trust-logos.ts
   rotates through the list in the ones that show. */
.trust-logo-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; align-items: center; height: 44px; }
.trust-logo-slots li { display: flex; align-items: center; justify-content: center; height: 100%; min-width: 0; transition: opacity .5s ease; }
.trust-logo-slots li.is-out { opacity: 0; }
.trust-logo-slots img { display: block; height: 32px; width: auto; max-width: 100%; object-fit: contain; opacity: .72; }

/* The names are for a screen reader - the logos beside them are aria-hidden. */
.trust-names { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.trust-row button.trust-logos-pause {
  margin-top: 12px;
  padding: 2px 8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: .78rem;
  color: var(--trust-muted);
  text-decoration: underline;
  text-transform: none;
  letter-spacing: normal;
  min-height: 0;
  box-shadow: none;
  cursor: pointer;
}
.trust-row button.trust-logos-pause:hover { color: var(--trust-ink); background: none; }
.trust-row button.trust-logos-pause:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .trust-logo-slots li { transition: none; }
}

.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.trust-row ul.trust-badges a, .trust-row ul.trust-badges a:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1.5px solid #d3ddd9;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--trust-ink);
  text-decoration: none;
}
.trust-row ul.trust-badges a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--trust-accent); }
.trust-row ul.trust-badges a:hover { border-color: var(--trust-accent); }
.trust-row ul.trust-badges a:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; }

@media (max-width: 860px) {
  .trust-logo-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .trust-logo-slots li:nth-child(5) { display: none; }
}
@media (max-width: 520px) {
  .trust-logo-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; height: 36px; }
  .trust-logo-slots li:nth-child(4) { display: none; }
  .trust-logo-slots img { height: 26px; }
}
