.home-testimonials {
  padding: clamp(64px, 7.2vw, 110px) 0;
  padding-bottom: clamp(34px, 4.5vw, 64px);
  background: var(--dark);
  color: var(--paper);
}
.testimonials-all { flex-shrink: 0; }
.testimonials-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #62819a var(--dark);
}
.home-testimonials:has([data-testimonial-navigation]:not([hidden])) .testimonials-track {
  scrollbar-width: none;
}
.testimonial-card {
  --review-text: #f1f6fb;
  --review-muted: #c4d3e1;
  --review-link: #87d5ff;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 236px;
  padding: clamp(22px, 2.35vw, 34px);
  gap: 18px;
  border-radius: var(--radius-card);
  border: 1px solid #38516b;
  background: #233950;
  color: var(--review-text);
  scroll-snap-align: start;
}
.testimonial-card-header, .testimonial-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.testimonial-card-header img { flex: none; }
.testimonial-card-footer { margin-top: auto; flex-wrap: wrap; }
.testimonial-stars { color: #ffcf78; font-size: 19px; letter-spacing: .12em; line-height: 1; }
.testimonial-card blockquote, .testimonial-excerpt {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.testimonial-card blockquote::before { content: open-quote; }
.testimonial-card blockquote::after { content: close-quote; }
.testimonial-person { min-width: 0; }
.testimonial-author { color: var(--review-text); font-size: 14px; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
.testimonial-person time { display: block; margin-top: 4px; font-size: 12px; color: var(--review-muted); }
.testimonial-google-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--review-link);
  font-size: 13px;
  font-weight: 700;
}
.testimonial-google-link:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.testimonial-details summary { list-style: none; cursor: pointer; }
.testimonial-details summary::-webkit-details-marker { display: none; }
.testimonial-excerpt { display: block; }
.testimonial-read-more, .testimonial-read-less {
  display: block;
  padding-top: 8px;
  min-height: 44px;
  color: var(--review-link);
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.testimonial-read-less, .testimonial-details[open] .testimonial-read-more, .testimonial-details[open] .testimonial-excerpt { display: none; }
.testimonial-details[open] .testimonial-read-less { display: block; padding: 0 0 12px; }
.testimonials-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  color: #cfdae4;
  font-size: 13px;
}
.testimonials-navigation:not([hidden]) { display: flex; align-items: center; gap: 8px; }
.testimonials-position { margin-right: 8px; font-variant-numeric: tabular-nums; }
.testimonials-navigation button {
  width: 46px;
  height: 46px;
  border: 1px solid #65819a;
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 23px;
  line-height: 1;
  transition: background-color .18s, border-color .18s;
}
.testimonials-navigation button:not([aria-disabled="true"]):hover { background: #23425d; border-color: #a1bfdb; }
.testimonials-navigation button[aria-disabled="true"] { opacity: .45; cursor: default; }
.home-testimonials :is(a, button, summary, .testimonials-track):focus-visible { outline: 2px solid #51bafd; outline-offset: 3px; }
.testimonial-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1100px) {
  .testimonials-track { grid-auto-columns: calc((100% - 18px) / 2); gap: 18px; }
}
@media (max-width: 650px) {
  .testimonials-track { grid-auto-columns: 100%; gap: 14px; }
  .testimonial-card { min-height: 212px; padding: 22px; }
  .testimonials-footer { margin-top: 16px; }
}
@media (max-width: 430px) {
  .testimonials-navigation:not([hidden]) { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-navigation button { transition: none; }
}
