/* YouTube artwork and approved quotations, scoped to the two testimonial surfaces. */
.testimonials-wall-page .testimonial-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 32px;
  align-items: start;
}
.testimonials-wall-page .testimonial-wall-card,
.home-proof--youtube .home-wall-card {
  display: block;
  position: relative;
  grid-column: auto;
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  text-align: left;
}
.testimonials-wall-page .testimonial-wall-card:focus-visible,
.home-proof--youtube .home-wall-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
  border-radius: 6px;
}
.testimonials-wall-page .testimonial-wall-card .video-frame,
.home-proof--youtube .home-wall-card .home-wall-media {
  position: relative;
  display: block;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
}
.testimonials-wall-page .testimonial-wall-card .video-frame img,
.home-proof--youtube .home-wall-card .home-wall-media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
  transform: none;
  transition: transform .45s ease;
  box-shadow: none;
}
.testimonials-wall-page .testimonial-wall-card .video-frame::after,
.home-proof--youtube .home-wall-card .home-wall-media::after {
  display: none;
}
.testimonials-wall-page .testimonial-wall-card .video-copy,
.home-proof--youtube .home-wall-card .home-wall-copy {
  position: static;
  display: grid;
  gap: 7px;
  min-height: 0;
  padding: 10px 0 0;
  background: transparent;
  opacity: 1;
}
.testimonials-wall-page .testimonial-wall-card .role,
.home-proof--youtube .home-wall-copy small {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.testimonials-wall-page .testimonial-wall-card .quote,
.home-proof--youtube .home-wall-copy span {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  max-height: none;
  color: var(--ink);
  font-family: var(--font);
  font-size: .9rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.65;
}
.home-proof--youtube .home-wall-copy strong {
  display: none;
}
.testimonials-wall-page .testimonial-wall-card .play-badge,
.home-proof--youtube .home-wall-card .play-badge {
  top: auto;
  left: auto;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  transform: none;
}
.testimonials-wall-page .testimonial-wall-card.is-playing,
.home-proof--youtube .home-wall-card.is-playing {
  display: block;
  aspect-ratio: auto;
  background: transparent;
}
.testimonials-wall-page .testimonial-wall-card.is-playing .video-copy,
.home-proof--youtube .home-wall-card.is-playing .home-wall-copy {
  opacity: 1;
}
.testimonials-wall-page .testimonial-wall-card .inline-video-frame,
.home-proof--youtube .home-wall-card .inline-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.testimonials-wall-page .testimonial-written-block {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.testimonials-wall-page .testimonial-written-block h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
}
.testimonials-wall-page .testimonial-text-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}
.testimonials-wall-page .testimonial-written-block .quote-card {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.testimonials-wall-page .testimonial-written-block .quote-card p {
  margin: 0 0 13px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.7;
}
.testimonials-wall-page .testimonial-written-block .quote-card footer {
  display: grid;
  gap: 3px;
  padding: 0;
}
.testimonials-wall-page .testimonial-written-block .quote-card footer span {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
}
.testimonials-wall-page .testimonial-written-block .quote-card footer small {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}
.home-proof--youtube .home-video-wall {
  align-items: start;
  row-gap: 28px;
}
@media (max-width: 700px) {
  .testimonials-wall-page .testimonial-wall-grid,
  .testimonials-wall-page .testimonial-text-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 460px) {
  .testimonials-wall-page .testimonial-wall-grid,
  .testimonials-wall-page .testimonial-text-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 30px;
  }
  .testimonials-wall-page .testimonial-wall-card .quote,
  .home-proof--youtube .home-wall-copy span {
    font-size: .94rem;
  }
}

/* Match the homepage course-cover zoom on both testimonial surfaces. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .testimonials-wall-page .testimonial-wall-card:not(.is-playing) .video-frame:hover img,
  .home-proof--youtube .home-wall-card:not(.is-playing) .home-wall-media:hover img {
    transform: scale(1.035);
  }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-wall-page .testimonial-wall-card .video-frame img,
  .home-proof--youtube .home-wall-card .home-wall-media img {
    transition: none;
  }
}

/* Written testimonials echo the video thumbnails with prominent names. */
.testimonials-wall-page .testimonial-text-grid { align-items: stretch; gap: 24px; }
.testimonials-wall-page .testimonial-written-block .quote-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 352px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #171616;
}
.testimonials-wall-page .written-testimonial-author {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  min-height: 142px;
  padding: 22px 24px 19px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--red);
  background: #211b1c;
}
.testimonials-wall-page .written-testimonial-author h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.75rem, 4vw, 3.75rem);
  font-weight: 400;
  line-height: .95;
  overflow-wrap: anywhere;
}
.testimonials-wall-page .testimonial-written-block .quote-card .written-testimonial-role {
  margin: 0;
  color: var(--soft);
  font-size: .75rem;
  line-height: 1.55;
}
.testimonials-wall-page .testimonial-written-block .quote-card .written-testimonial-quote {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--ink);
  line-height: 1.8;
}
.testimonials-wall-page .written-testimonial-details { margin: 0 24px 22px; }
.testimonials-wall-page .written-testimonial-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  padding: 2px 0;
  color: var(--soft);
  font-family: var(--font);
  font-size: .78rem;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}
.testimonials-wall-page .written-testimonial-details summary span { text-decoration: underline; text-underline-offset: 3px; }
.testimonials-wall-page .written-testimonial-details summary::-webkit-details-marker { display: none; }
.testimonials-wall-page .written-testimonial-details summary:hover { color: var(--ink); }
.testimonials-wall-page .written-testimonial-details summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.testimonials-wall-page .written-testimonial-toggle { display: block; flex: 0 0 12px; transition: transform .18s ease; }
.testimonials-wall-page .written-testimonial-details[open] .written-testimonial-toggle { transform: rotate(-90deg); }
.testimonials-wall-page .written-testimonial-full { margin-top: 18px; }
@media (min-width: 461px) and (max-width: 900px) {
  .testimonials-wall-page .testimonial-text-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .testimonials-wall-page .testimonial-written-block .quote-card { min-height: 290px; }
}
@media (pointer: coarse) {
  .testimonials-wall-page .written-testimonial-details summary { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-wall-page .written-testimonial-toggle { transition: none; }
}
