/* Retriva testimonials — horizontal slide carousel */

.tc-w-quotes {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 24px 32px;
  align-items: start;
  min-height: 520px;
  padding: 96px max(48px, calc((100% - 1440px) / 2 + 48px));
  background: #262626;
  color: #fff9f5;
  box-sizing: border-box;
}

.tc-w-quotes__heading {
  margin: 0;
  align-self: start;
  max-width: 10em;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff9f5;
}

.tc-w-quotes__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
  min-width: 0;
}

.tc-w-quotes__stage {
  position: relative;
  min-width: 0;
  max-width: 888px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  outline: none;
}

.tc-w-quotes__stage:active {
  cursor: grabbing;
}

.tc-w-quotes__track {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tc-w-quotes__track.is-dragging {
  transition: none;
}

.tc-w-quotes__slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

.tc-w-quotes__text {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff9f5;
}

.tc-w-quotes__meta {
  margin: 28px 0 0;
}

.tc-w-quotes__cite,
.tc-w-quotes__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #fff9f5;
}

.tc-w-quotes__note {
  margin-top: 4px;
  text-transform: uppercase;
  font-size: 12px;
}

/* Desktop: plain chevrons beside the quote */
.tc-w-quotes__nav--side {
  appearance: none;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff9f5 !important;
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
  pointer-events: auto;
}

.tc-w-quotes__nav--side:is(:hover, :focus-visible) {
  background: transparent !important;
  color: #fff9f5 !important;
  transform: none;
}

/* Mobile bar hidden on desktop */
.tc-w-quotes__controls {
  display: none;
}

.tc-w-quotes__count {
  margin: 0;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff9f5;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .tc-w-quotes {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    min-height: 0;
    padding: 64px var(--tc-margin, 32px) 48px;
  }

  .tc-w-quotes__heading {
    max-width: none;
    align-self: flex-start;
  }

  .tc-w-quotes__body {
    display: block;
  }

  .tc-w-quotes__nav--side {
    display: none !important;
  }

  .tc-w-quotes__stage {
    max-width: none;
  }

  .tc-w-quotes__text {
    max-width: none;
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.15;
  }

  .tc-w-quotes__meta {
    margin-top: 24px;
  }

  .tc-w-quotes__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: auto;
    padding-top: 40px;
  }

  .tc-w-quotes__nav--bar {
    appearance: none;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    margin: 0;
    border: 1px solid #fff9f5 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #fff9f5 !important;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
    pointer-events: auto;
  }

  .tc-w-quotes__nav--bar:is(:hover, :focus-visible) {
    background: #fff9f5 !important;
    color: #262626 !important;
    transform: none;
  }

  .tc-w-quotes__count {
    flex: 1;
    text-align: center;
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .tc-w-quotes {
    padding: 56px 20px 40px;
    gap: 28px;
  }

  .tc-w-quotes__controls {
    padding-top: 32px;
  }

  .tc-w-quotes__nav--bar {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
}

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