/* Component „testimonials”: a real review featured, and a wall of quotes with stars. The layer order is the base's
   (kit.css), so this file's place among the links does not matter, and the Site's own site.css wins over it. */
@layer sections {
  .testimonial-grid { display: grid; gap: var(--space-s); }
  @media (min-width: 62rem) {
    .testimonial-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); align-items: start; }
    .testimonial.is-featured { position: sticky; inset-block-start: calc(var(--nav-h) + var(--space-m)); }
  }
  .testimonial-wall { columns: 2 17rem; column-gap: var(--space-s); }
  .testimonial {
    display: grid; gap: var(--space-s); align-content: start; margin: 0 0 var(--space-s);
    break-inside: avoid;
  }
  .testimonial blockquote p { line-height: 1.55; }
  .testimonial figcaption { display: flex; align-items: center; gap: 0.75rem; }
  .testimonial figcaption strong, .testimonial figcaption small { display: block; }
  .testimonial figcaption small { color: var(--c-text-muted); font-size: var(--step--1); }
  .avatar {
    display: inline-grid; place-items: center; flex: none; inline-size: 2.6rem; block-size: 2.6rem; border-radius: 50%;
    background: color-mix(in oklch, var(--c-text) 10%, var(--c-surface)); color: var(--c-text); font-weight: 600; font-size: var(--step--1);
  }
  .stars { display: flex; gap: 0.15rem; color: var(--c-text); }
  .star { inline-size: 1.05rem; block-size: 1.05rem; }
  .star.is-off { color: var(--c-line-strong); }
  .testimonial.is-featured { gap: var(--space-m); }
  .testimonial.is-featured blockquote p {
    font-family: var(--font-display); font-weight: var(--type-h3-weight); font-size: var(--type-h3-size); letter-spacing: var(--type-h3-tracking);
    line-height: var(--type-h3-leading); text-wrap: balance;
  }
  .testimonial-mark { inline-size: 2.75rem; block-size: 2.75rem; color: var(--c-line-strong); }
  /* the featured one's avatar: the band's text as its ground, the band's own colour as its letters (both schemes) */
  .testimonial.is-featured .avatar { background: var(--c-text); color: var(--c-bg); }
  .testimonial.is-featured figcaption small { color: var(--c-text-muted); }
  .testimonial.is-featured figcaption { order: 1; }
  .testimonial-link { order: 2; display: inline-flex; align-items: center; gap: 0.5em; justify-self: start; color: inherit; font-weight: 600; }
}
