/* ─── Testimonials list ──────────────────────────────────────────────────── */

.testimonials-list h1 {
  margin-bottom: 0.5rem;
}

.testimonials-intro {
  color: var(--color-muted);
  margin-bottom: calc(var(--space) * 2);
  max-width: 52ch;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space);
  /* Allow the grid to break out of the narrow content column */
  width: min(100%, 960px);
  margin-inline: auto;
}

.testimonials-grid a {
  display: contents; /* let the <article> be the grid item */
  text-decoration: none;
  color: inherit;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.testimonial-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.testimonial-card strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-card-tag {
  font-size: 0.7em;
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-card .role {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-weight: 400;
}

.testimonial-card blockquote {
  border: none;
  padding: 0;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.6;
  /* Clamp to ~3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Testimonial tag colors ─────────────────────────────────────────────── */

.testimonial-card.tag-design    { border-left: 4px solid #7c3aed; }
.testimonial-card.tag-music     { border-left: 4px solid #2563eb; }
.testimonial-card.tag-industry  { border-left: 4px solid #d97706; }
.testimonial-card.tag-community { border-left: 4px solid #16a34a; }

/* ─── Tag legend ─────────────────────────────────────────────────────────── */

.tag-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  list-style: none;
  padding: 0;
  margin-bottom: calc(var(--space) * 1.5);
}

.tag-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin: 0;
}

.tag-legend li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.tag-legend .tag-design::before    { background: #7c3aed; }
.tag-legend .tag-music::before     { background: #2563eb; }
.tag-legend .tag-industry::before  { background: #d97706; }
.tag-legend .tag-community::before { background: #16a34a; }

/* ─── Testimonials single ────────────────────────────────────────────────── */

.testimonial-single {
  max-width: 52ch;
}

.testimonial-header {
  display: block;
  margin-bottom: calc(var(--space) * 1.5);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space);
}

.testimonial-header h1 {
  margin-bottom: 0.25rem;
}

.testimonial-role {
  color: var(--color-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.testimonial-date {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.testimonial-body blockquote {
  font-size: 1.125rem;
  line-height: 1.75;
  border-left-color: var(--color-accent);
  color: var(--color-text);
}

.testimonial-footer {
  margin-top: calc(var(--space) * 2);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space);
}

.testimonial-footer a {
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--color-muted);
}

.testimonial-footer a:hover {
  color: var(--color-accent);
}
