/* Start custom CSS */#tcs-testimonials {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
#tcs-testimonials > [id^="testimonial-target-"] {
  position: fixed;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  min-width: 0;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
#tcs-testimonials > [id^="testimonial-"]:not([id^="testimonial-target-"]) {
  grid-area: 1 / 1;
  display: flex;
  visibility: hidden;
  min-width: 0;
}
#tcs-testimonials > #testimonial-1 {
  visibility: visible;
}
#tcs-testimonials:has(> :is(#testimonial-target-2, #testimonial-target-prev-2, #testimonial-2, #testimonial-target-3, #testimonial-target-prev-3, #testimonial-3, #testimonial-target-4, #testimonial-target-prev-4, #testimonial-4):target) > #testimonial-1 {
  visibility: hidden;
}
#tcs-testimonials:has(> :is(#testimonial-target-2, #testimonial-target-prev-2, #testimonial-2):target) > #testimonial-2 {
  visibility: visible;
}
#tcs-testimonials:has(> :is(#testimonial-target-3, #testimonial-target-prev-3, #testimonial-3):target) > #testimonial-3 {
  visibility: visible;
}
#tcs-testimonials:has(> :is(#testimonial-target-4, #testimonial-target-prev-4, #testimonial-4):target) > #testimonial-4 {
  visibility: visible;
}
#tcs-testimonials [id^="testimonial-controls-"] {
  margin-top: auto;
  padding-top: 26px;
}
#cta-arrow-whitepaper-cta::after, #cta-arrow-read-my-story::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  margin-inline-start: 12px;
  background: url("https://preview.theclarityshift.co/wp-content/uploads/2026/12/tcs-cta-arrow.png") center / contain no-repeat;
}

/* Button color transitions */
main#content .e-button-base,
main#content [id^="testimonial-controls-"] > a:has(> img) {
  transition-property: background-color, border-color, color;
  transition-duration: 420ms;
  transition-timing-function: cubic-bezier(0.33, 0, 0.15, 1);
}
@media (prefers-reduced-motion: reduce) {
  main#content .e-button-base,
main#content [id^="testimonial-controls-"] > a:has(> img) {
    transition-duration: 0s;
  }
}
main#content .e-button-base[data-id="72503e0d"]:hover,
main#content .e-button-base[data-id="6811547e"]:hover,
main#content .e-button-base[data-id="67baf2ed"]:hover,
main#content .e-button-base[data-id="18ab3c90"]:hover {
  background-color: #384E5C; border-color: #384E5C; color: #FEFDF9;
}
main#content .e-button-base[data-id="25f3ba90"]:hover,
main#content .e-button-base[data-id="298bb1da"]:hover {
  background-color: rgba(90, 112, 131, 0.08); border-color: #5A7083; color: #5A7083;
}
main#content .e-button-base[data-id="1933dd0e"]:hover {
  background-color: transparent; border-bottom-color: #5A7083; color: #5A7083;
}
main#content .e-button-base[data-id="65e7f52d"]:hover {
  background-color: #E4D8C7; border-color: #E4D8C7; color: #34495A;
}
main#content .e-button-base[data-id="1fe7e240"]:hover {
  background-color: rgba(250, 247, 242, 0.10); border-color: #FAF7F2; color: #FAF7F2;
}
main#content [id^="testimonial-controls-"] > a:has(> img):hover { background-color: rgba(90, 112, 131, 0.08); }

/* Testimonial slide motion */
@keyframes clarity-testimonial-slide {
  from {
    opacity: 0.55;
    transform: translateX(var(--testimonial-offset));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  #tcs-testimonials {
    --testimonial-offset: clamp(12px, 4vw, 48px);
  }
  #tcs-testimonials:has(> [id^="testimonial-target-prev-"]:target) {
    --testimonial-offset: calc(-1 * clamp(12px, 4vw, 48px));
  }
  #tcs-testimonials:has(> :is(#testimonial-target-1, #testimonial-target-prev-1):target) > #testimonial-1 > .e-paragraph-base,
  #tcs-testimonials:has(> :is(#testimonial-target-2, #testimonial-target-prev-2):target) > #testimonial-2 > .e-paragraph-base,
  #tcs-testimonials:has(> :is(#testimonial-target-3, #testimonial-target-prev-3):target) > #testimonial-3 > .e-paragraph-base,
  #tcs-testimonials:has(> :is(#testimonial-target-4, #testimonial-target-prev-4):target) > #testimonial-4 > .e-paragraph-base {
    animation: clarity-testimonial-slide 420ms cubic-bezier(0.33, 0, 0.15, 1);
  }
}/* End custom CSS */