.ocf-testimonials {
    background: var(--ocf-bg);
}

.ocf-testimonials-header,
.ocf-testimonials__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.ocf-testimonials-heading {
    max-width: 760px;
}

.ocf-testimonials-heading .heading-2 {
    max-width: min(100%, 30ch);
}

.ocf-testimonials-header-rating {
    margin-left: auto;
    color: var(--ocf-heading);
    text-align: right;
    white-space: nowrap;
}

.ocf-testimonials-header-rating__value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    font-size: var(--font-h3-size);
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.ocf-testimonials-header-rating__value span:last-child {
    color: var(--ocf-heading);
}

.ocf-testimonials-header-rating p {
    margin: 0.35rem 0 0;
    color: var(--ocf-label);
    font-size: var(--font-label-size);
}

.ocf-testimonials-description {
    margin: 1rem 0 0;
    color: var(--ocf-body);
}

.ocf-testimonial-nav {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
}

.ocf-testimonial-nav--mobile-only {
    display: none;
}

.ocf-testimonial-nav button {
    display: inline-grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    padding: 0;
    border: 1px solid var(--ocf-border);
    border-radius: var(--radius-sm);
    background: var(--ocf-bg);
    color: var(--ocf-heading);
    line-height: 1;
}

.ocf-testimonial-nav button:hover {
    border-color: var(--ocf-heading);
    background: var(--ocf-bg-alt);
}

.ocf-testimonial-nav button:disabled {
    cursor: default;
    opacity: 0.35;
}

.ocf-testimonial-nav svg {
    display: block;
    width: 1rem;
    height: 1rem;
}

.ocf-testimonial-viewport {
    overflow: hidden;
    padding-inline: 1rem;
    padding-bottom: 1rem;
    margin-inline: -1rem;
    margin-bottom: -1rem;
}

.ocf-testimonial-track {
    --testimonial-gap: var(--grid-gap);
    display: flex;
    flex-wrap: nowrap;
    gap: var(--testimonial-gap);
    transition: transform 260ms ease;
    will-change: transform;
}

.ocf-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.ocf-testimonial-card,
.ocf-testimonial {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    align-content: start;
    gap: clamp(1.25rem, 2vw, 1.75rem);
    min-height: clamp(23rem, 34vw, 28.5rem);
    border: var(--card-border-width) solid var(--card-border-color);
    border-radius: var(--card-radius);
    background: var(--ocf-bg);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    box-shadow: var(--card-shadow);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

@media (hover: hover) and (pointer: fine){
    .ocf-testimonial-card:hover,
.ocf-testimonial:hover {
        border-color: color-mix(in srgb, var(--ocf-primary) 18%, var(--card-border-color));
        box-shadow: var(--card-shadow-hover);
        transform: var(--card-transform-hover);
    }
}

.ocf-testimonial-track .ocf-testimonial-card {
    flex: 0 0 calc((100% - (var(--testimonial-gap) * 2)) / 3);
}

.ocf-testimonials .ocf-testimonial-card {
    min-height: clamp(11.5rem, 17vw, 14.25rem);
}

.ocf-testimonial-card--spotlight {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.ocf-testimonial-card--spotlight blockquote {
    color: var(--ocf-heading);
    font-size: var(--font-body-size);
    line-height: 1.35;
}

.ocf-testimonial-card--spotlight .testimonial-quote-mark {
    font-size: var(--font-h1-size);
}

.ocf-testimonial-card--compact {
    gap: 0.75rem;
}

.ocf-testimonial-card--compact .testimonial-quote-mark {
    font-size: var(--font-h3-size);
}

.ocf-testimonial-card--compact blockquote {
    font-size: var(--font-label-size);
}

.testimonial-quote-mark {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    width: clamp(1.8rem, 3vw, 2.4rem);
    height: clamp(1.8rem, 3vw, 2.4rem);
    max-width: 2.4rem;
    max-height: 2.4rem;
    color: var(--ocf-secondary);
    line-height: 1;
    overflow: hidden;
}

.testimonial-quote-mark svg {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 2.4rem;
    max-height: 2.4rem;
    flex: 0 0 auto;
}

.ocf-testimonial-card blockquote,
.ocf-testimonial blockquote,
.ocf-testimonial__text {
    margin: 0;
    color: var(--ocf-body);
    font-size: var(--font-body-size);
    line-height: 1.55;
}

.ocf-testimonials .ocf-testimonial-card blockquote {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
}

.ocf-testimonials .ocf-testimonial-card blockquote {
    display: block;
    overflow: visible;
}

.ocf-testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ocf-testimonial-stars {
    display: inline-flex;
    gap: 0.2rem;
    color: var(--ocf-primary);
    line-height: 1;
}

.ocf-testimonial-stars svg {
    display: block;
    width: 1.08rem;
    height: 1.08rem;
    stroke: currentColor;
    stroke-width: 1.25;
}

.ocf-testimonial-card .ocf-testimonial-stars svg {
    width: 1.22rem;
    height: 1.22rem;
}

.ocf-testimonial-stars .is-filled {
    fill: currentColor;
}

.ocf-testimonial-stars .is-empty {
    fill: none;
    color: var(--ocf-border);
}

.ocf-testimonial-footer strong,
.ocf-testimonial-footer span {
    display: block;
}

.ocf-testimonial-footer strong {
    color: var(--ocf-heading);
    font-weight: 800;
}

.ocf-testimonial__author {
    color: var(--ocf-heading);
    font-size: var(--font-h3-size);
    font-weight: 800;
}

.ocf-testimonial__meta {
    color: var(--ocf-label);
    font-size: var(--font-label-size);
}

.testimonial-more-wrap {
    display: inline-block;
    position: static;
}

.testimonial-more-trigger {
    border: 0;
    background: transparent;
    color: var(--ocf-primary);
    padding: 0;
    font-weight: var(--font-weight-bold);
}

.testimonial-review-popover {
    display: none;
}

.testimonial-more-wrap:hover .testimonial-review-popover,
.testimonial-more-wrap:focus-within .testimonial-review-popover,
.ocf-testimonial-card.is-review-open .testimonial-review-popover {
    position: absolute;
    inset: clamp(0.75rem, 2vw, 1rem);
    z-index: 3;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: clamp(1rem, 2.4vw, 1.35rem);
    border: 1px solid var(--ocf-border);
    border-radius: var(--card-radius);
    background: var(--ocf-bg);
    box-shadow: var(--card-shadow-hover);
}

.testimonial-review-popover__text {
    min-height: 0;
    overflow: auto;
    padding-right: 0.25rem;
    color: var(--ocf-body);
    font-size: var(--font-body-size);
    line-height: 1.55;
    white-space: pre-line;
}

.testimonial-review-popover__close {
    justify-self: start;
    border: 0;
    background: transparent;
    color: var(--ocf-primary);
    padding: 0;
    font-weight: var(--font-weight-bold);
}

.ocf-testimonials-spotlight {
    max-width: 980px;
}

.ocf-testimonials-compact-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.ocf-testimonials-verified-strip {
    display: grid;
    grid-template-columns: minmax(18rem, 1.25fr) minmax(10rem, 0.9fr) minmax(20rem, 1.55fr) minmax(7rem, 0.5fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.ocf-testimonials-verified-heading {
    border-right: 1px solid var(--ocf-border-alt);
    padding-right: clamp(1.5rem, 3vw, 2.5rem);
}

.ocf-testimonials-verified-heading .heading-2 {
    color: var(--ocf-heading-alt);
    max-width: 17ch;
}

.ocf-testimonials-verified-rating {
    display: grid;
    gap: 0.65rem;
    color: var(--ocf-body-alt);
}

.ocf-testimonials-verified-rating .ocf-testimonial-stars {
    color: #FBBF24;
}

.ocf-testimonials-verified-value {
    color: var(--ocf-heading-alt);
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    font-size: var(--font-h2-size);
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.ocf-testimonials-verified-label {
    color: var(--ocf-body-alt);
    font-size: var(--font-label-size);
}

.ocf-testimonials-verified-quote {
    margin: 0;
    color: var(--ocf-body-alt);
}

.ocf-testimonials-verified-quote blockquote {
    margin: 0;
    color: var(--ocf-body-alt);
    font-size: var(--font-body-size);
    line-height: 1.5;
}

.ocf-testimonials-verified-quote figcaption {
    margin-top: 1rem;
    color: var(--ocf-heading-alt);
    font-weight: var(--font-weight-semibold);
}

.ocf-testimonials-verified-badge {
    width: min(100%, 8.25rem);
    justify-self: center;
}

.ocf-testimonials-rating-layout {
    display: grid;
    grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 1fr);
    gap: var(--grid-gap);
    align-items: center;
}

.ocf-testimonials-rating-summary {
    display: grid;
    gap: 0.9rem;
    justify-items: center;
    text-align: center;
}

.ocf-testimonials-rating-value {
    color: var(--ocf-heading);
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    font-size: var(--font-h1-size);
    font-weight: var(--font-weight-regular);
    line-height: 1;
}

.ocf-testimonials-rating-summary .ocf-testimonial-stars {
    color: var(--ocf-primary);
}

.ocf-testimonials-rating-summary .ocf-testimonial-stars svg {
    width: 1.35rem;
    height: 1.35rem;
}

.ocf-testimonials-rating-label {
    color: var(--ocf-body);
    font-size: var(--font-body-size);
}

.ocf-testimonials-rating-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.ocf-testimonial-card--rating-summary .testimonial-quote-mark {
    width: clamp(1.7rem, 2.6vw, 2.2rem);
    height: clamp(1.7rem, 2.6vw, 2.2rem);
}

.ocf-testimonial-card--rating-summary blockquote {
    color: var(--ocf-heading);
}

.ocf-testimonial-card--rating-summary .ocf-testimonial-footer strong {
    color: var(--ocf-heading);
    font-weight: 800;
}

.ocf-testimonials-centered-lines {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.ocf-testimonials-centered-line {
    display: grid;
    gap: 1rem;
    align-content: start;
    justify-items: center;
    min-height: 0;
    padding: 0 clamp(1.25rem, 4vw, 3.5rem);
    text-align: center;
}

.ocf-testimonials-centered-line + .ocf-testimonials-centered-line {
    border-left: 1px solid var(--ocf-border-light);
}

.ocf-testimonials-centered-quote-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.8rem, 3vw, 2.4rem);
    height: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--ocf-secondary);
    line-height: 1;
}

.ocf-testimonials-centered-quote-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ocf-testimonials-centered-line blockquote {
    max-width: 34ch;
    margin: 0;
    color: var(--ocf-body);
    font-size: var(--font-body-size);
    line-height: 1.55;
}

.ocf-testimonials-centered-footer strong,
.ocf-testimonials-centered-footer span {
    display: block;
}

.ocf-testimonials-centered-footer strong {
    color: var(--ocf-heading);
    font-weight: 800;
}

.ocf-testimonials-centered-footer span {
    color: var(--ocf-label);
    font-size: var(--font-label-size);
}

@media (max-width: 900px){
    .ocf-testimonial-track .ocf-testimonial-card {
        flex-basis: calc((100% - var(--testimonial-gap)) / 2);
    }

    .ocf-testimonials__grid,
.ocf-testimonials-compact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .ocf-testimonials-verified-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ocf-testimonials-centered-lines,
.ocf-testimonials-rating-layout,
.ocf-testimonials-rating-cards {
        grid-template-columns: 1fr;
        gap: var(--grid-gap);
    }

    .ocf-testimonials-centered-line {
        padding: 0;
    }

    .ocf-testimonials-centered-line + .ocf-testimonials-centered-line {
        border-top: 1px solid var(--ocf-border-light);
        border-left: 0;
        padding-top: var(--grid-gap);
    }

    .ocf-testimonials-verified-heading {
        border-right: 0;
        padding-right: 0;
    }
}

@media (max-width: 640px){
    .ocf-testimonials-header { display: grid; }
    .ocf-testimonials-header-rating {
        margin-left: 0;
        text-align: left;
    }
    .ocf-testimonial-nav,
.ocf-testimonial-nav--mobile-only {
        display: flex;
        margin-left: 0;
    }
    .ocf-testimonial-card,
.ocf-testimonial { min-height: 0; }
    .ocf-testimonial-track .ocf-testimonial-card {
        flex-basis: 100%;
    }

    .ocf-testimonials__grid,
.ocf-testimonials-compact-row { grid-template-columns: 1fr; }

    .ocf-testimonials-verified-strip { grid-template-columns: 1fr; }
    .ocf-testimonials-verified-badge { justify-self: start; }
}

/* OCF-MANAGED:START alignwell-clean-testimonials */
/* AlignWell reviews — variation 6 editorial layout with uniform card borders. */
body.home .ocf-testimonials {
  background: var(--ocf-bg);
}

body.home .ocf-testimonials-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: clamp(1rem, 2vw, 1.5rem) clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
  text-align: left;
}

body.home .ocf-testimonials-heading {
  grid-column: 1;
  grid-row: 1 / 3;
  max-width: 42rem;
}

body.home .ocf-testimonials-heading .eyebrow {
  color: var(--ocf-primary);
  margin-bottom: clamp(0.75rem, 1.4vw, 1rem);
}

body.home .ocf-testimonials-heading .heading-2 {
  max-width: 42rem;
  margin-inline: 0;
}

body.home .ocf-testimonials-header-rating {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
  justify-content: flex-end;
  margin: clamp(0.35rem, 1vw, 0.75rem) 0 0;
  color: var(--ocf-body);
  text-align: right;
  white-space: normal;
}

body.home .ocf-testimonials-header-rating__value {
  gap: 0.35rem;
  color: var(--ocf-heading);
  font-size: var(--font-body-size);
}

body.home .ocf-testimonials-header-rating__value span:last-child {
  color: var(--ocf-secondary);
}

body.home .ocf-testimonials-header-rating p {
  margin: 0;
  color: var(--ocf-body);
  font-size: var(--font-body-size);
}

body.home .ocf-testimonial-nav,
body.home .ocf-testimonial-nav--mobile-only {
  display: flex;
  grid-column: 2;
  grid-row: 2;
  gap: 0.65rem;
  justify-self: end;
  margin: 0;
}

body.home .ocf-testimonial-nav button {
  width: 3rem;
  height: 3rem;
  border-color: var(--ocf-border-light);
  border-radius: var(--radius-sm);
  background: var(--ocf-bg);
}

body.home .ocf-testimonial-nav button:hover {
  border-color: var(--ocf-border);
  background: var(--ocf-bg-alt);
}

body.home .ocf-testimonial-viewport {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2vw, 1.5rem);
  margin-inline: 0;
  border-radius: var(--card-radius-lg);
  background: var(--alignwell-soft-surface, var(--ocf-bg-alt));
}

body.home .ocf-testimonial-track {
  --testimonial-gap: clamp(1.25rem, 2.5vw, 2rem);
  gap: var(--testimonial-gap);
}

body.home .ocf-testimonial-card {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: clamp(1rem, 1.6vw, 1.35rem);
  min-height: clamp(27rem, 33vw, 31rem);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--ocf-border-light);
  border-radius: var(--card-radius);
  background: var(--ocf-bg);
  clip-path: none;
  box-shadow: none;
}

body.home .ocf-testimonial-card:hover {
  border-color: var(--ocf-border-light);
  background: var(--ocf-bg);
  box-shadow: none;
  transform: none;
}

body.home .testimonial-quote-mark {
  display: none;
}

body.home .ocf-testimonial-card blockquote {
  color: var(--ocf-body);
  line-height: 1.6;
}

body.home .ocf-testimonial-footer {
  position: relative;
  align-items: flex-start;
  width: 100%;
  padding-top: clamp(1.25rem, 2vw, 1.5rem);
  border-top: 1px solid var(--ocf-border-light);
}

body.home .ocf-testimonial-footer::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4rem;
  height: 1px;
  background: color-mix(in srgb, var(--ocf-heading) 22%, transparent);
  content: '';
}

body.home .ocf-testimonial-footer strong {
  color: var(--ocf-heading);
  font-weight: var(--font-weight-bold);
}

body.home .ocf-testimonial-card > .ocf-testimonial-stars {
  justify-self: start;
  margin-top: -0.65rem;
  color: var(--ocf-secondary);
}

@media (max-width: 640px) {
  body.home .ocf-testimonials-header {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    justify-items: start;
    text-align: left;
  }

  body.home .ocf-testimonials-heading,
  body.home .ocf-testimonials-header-rating,
  body.home .ocf-testimonial-nav,
  body.home .ocf-testimonial-nav--mobile-only {
    grid-column: 1;
    grid-row: auto;
  }

  body.home .ocf-testimonials-heading {
    order: 1;
  }

  body.home .ocf-testimonials-header-rating {
    order: 2;
  }

  body.home .ocf-testimonial-nav,
  body.home .ocf-testimonial-nav--mobile-only {
    order: 3;
    justify-self: start;
  }

  body.home .ocf-testimonials-heading .heading-2 {
    margin-inline: 0;
  }

  body.home .ocf-testimonials-header-rating {
    justify-content: flex-start;
    text-align: left;
  }

  body.home .ocf-testimonial-card {
    min-height: 0;
  }

  body.home .ocf-testimonial-viewport {
    padding: 1rem;
  }
}
/* OCF-MANAGED:END alignwell-clean-testimonials */
