/* Testimonials page. The cards come from partials/testimonial.njk (.testimonial in styles.css);
   this lays them out in two balanced columns and gives the photos a little more room. */

.testimonial-list {
  columns: 2;
  column-gap: 24px;
}
.testimonial-list > .testimonial {
  break-inside: avoid;
  margin: 0 0 24px;
}
.testimonial-list .testimonial-photo {
  width: 72px;
  height: 72px;
}

/* The note on edited quotes (testimonials.json editsNote) */
.testimonial-edits {
  max-width: 40em;
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.testimonials-next {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.testimonials-next h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin: 0 auto 0 0;
}
.testimonials-next p {
  margin: 0;
}
/* The two links wrap as a pair, so they never split across the heading's row */
.testimonials-next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}
/* Inline, so that when the long link wraps on a small phone its arrow stays after the last word
   (as .nt-further in insights.css) */
.testimonials-next .link-arrow {
  display: inline;
}
.testimonials-next .link-arrow::after {
  margin-left: 6px;
}

@media (max-width: 760px) {
  .testimonial-list {
    columns: 1;
  }
}
/* Small phones: a little less padding gives the quote a wider measure */
@media (max-width: 400px) {
  .testimonial-list > .testimonial {
    padding: 26px 20px 22px;
  }
  .testimonial-list .testimonial-photo {
    width: 64px;
    height: 64px;
  }
}
