/* Rotating testimonials widget — NYT Broadway pull-quote style.
   Used across /audit, /resources/ai-readability-checker, /audit/compare,
   /audit/examples. Pages declare <div data-testimonials></div>; the
   companion testimonials.js populates it from a shared pool. If the pool
   is empty, the widget hides itself — pages stay clean. */

.kt-testimonials {
  max-width: 760px;
  margin: 4rem auto 3rem;
  padding: 0 1.5rem;
  text-align: center;
}

.kt-testimonials[hidden] { display: none; }

.kt-testimonials__stage {
  position: relative;
  min-height: 200px;
}

.kt-testimonials__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}

.kt-testimonials__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* The quote: large, serif-feeling weight from Plus Jakarta Sans
   italic. NYT Broadway pull-quotes lead with the quote, big and bold,
   so the eye lands on the words first. */
.kt-testimonials__quote {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text, #1c1c1a);
  margin: 0 0 1.25rem;
  max-width: 640px;
}

.kt-testimonials__quote::before {
  content: "\201C";
  margin-right: 0.05em;
  opacity: 0.55;
}

.kt-testimonials__quote::after {
  content: "\201D";
  margin-left: 0.05em;
  opacity: 0.55;
}

/* Attribution block — small, all caps, muted.
   Format: NAME, TITLE — BRAND. */
.kt-testimonials__attr {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #6b6760);
  font-style: normal;
}

.kt-testimonials__attr-divider {
  margin: 0 0.55em;
  opacity: 0.5;
}

/* Dot indicators (only rendered when 2+ testimonials in pool) */
.kt-testimonials__dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.kt-testimonials__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border, #ebe7dc);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 200ms ease;
}

.kt-testimonials__dot.is-active {
  background: var(--text, #1c1c1a);
}

@media (max-width: 600px) {
  .kt-testimonials { margin: 3rem auto 2rem; }
  .kt-testimonials__stage { min-height: 240px; }
}
