/* ==========================================================================
   Tunstall Testimonials Carousel  —  [tunstall_testimonials]
   One large pull-quote at a time: red quotation mark, hairline, then the
   attribution (name in Tunstall red, state in body ink) with prev/next arrows.
   Scoped under .ttc so it never leaks into the wider theme.
   ========================================================================== */

.ttc {
  /* Shared token family with the buy box / AMIE teaser. */
  --ttc-body: #030303; /* quote + state text */
  --ttc-name: #ED1C29; /* name + nav arrows */
  --ttc-line: oklch(0.9 0.005 255); /* hairline */
  --tbb-stage: oklch(0.955 0.003 255); /* nav button background */

  --ttc-radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  margin-inline: auto;
  color: var(--ttc-body);
  font-family: 'Roboto', sans-serif;
}

.ttc *,
.ttc *::before,
.ttc *::after {
  box-sizing: border-box;
}

/* --- Viewport / track ----------------------------------------------------- */
.ttc__viewport {
  position: relative;
}

/* Stack every slide in the same grid cell so they overlap and crossfade; the
   track sizes itself to the tallest slide so the layout never jumps. */
.ttc__track {
  display: grid;
}

.ttc__slide {
  grid-area: 1 / 1; /* all slides share one cell -> stacked */
  margin: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 0s linear 1s;
}

.ttc__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s var(--ease);
}

/* --- Quote ---------------------------------------------------------------- */
.ttc__quote {
  position: relative;
  flex: 1 1 auto;
  margin: 0;
  padding-left: 0;
  border: 0;
  padding-right: 90px; /* clear the quotation mark */
}

.ttc__quote p {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.32;
  color: var(--ttc-body);
}

/* Single quotation mark — pinned top-right of the viewport so it stays put
   while the quotes crossfade beneath it. */
.ttc__mark {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 48px;
  height: auto;
  user-select: none;
  pointer-events: none;
}

/* --- Hairline ------------------------------------------------------------- */
.ttc__rule {
  height: 1px;
  margin: clamp(1.5rem, 4vw, 2.75rem) 0 0;
  background: var(--ttc-line);
}

/* --- Attribution ---------------------------------------------------------- */
.ttc__cite {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.85rem 110px 0 0; /* clear the nav arrows on the right */
  font-size: 0.95rem;
  line-height: 1.35;
}

.ttc__name {
  font-weight: 700;
  color: var(--ttc-name);
}

.ttc__state {
  color: var(--ttc-body);
}

/* --- Nav arrows ----------------------------------------------------------- */
.ttc__nav {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.ttc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--tbb-stage);
  color: var(--ttc-name);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.ttc__btn:hover {
  background: oklch(0.92 0.004 255);
}

.ttc__btn:active {
  transform: translateY(1px);
}

.ttc__btn:focus-visible {
  outline: 2px solid var(--ttc-name);
  outline-offset: 2px;
}

.ttc__btn svg {
  width: 16px;
  height: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .ttc__track {
    transition: none;
  }
}
