/* Harbor testimonials: final shared rules and responsive variants. */
.hb-reviews .hb-section-heading {
  text-align: center;
  margin-bottom: 24px;
}

.hb-reviews__grid {
  display: block;
}

.hb-reviews__viewport {
  overflow: hidden;
  position: relative;
}

.hb-reviews__track {
  display: flex;
  gap: 32px;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}

.hb-reviews__track .hb-review {
  flex: 0 0 calc((100% - 64px) / 3);
}

.hb-reviews__controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px;
}

.hb-reviews__controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ocf-border);
  border-radius: 50%;
  background: transparent;
  color: var(--ocf-heading);
  font: 500 20px/1 var(--font-body);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.hb-reviews__controls button:hover:not(:disabled) {
  background: var(--ocf-primary);
  color: var(--ocf-heading-alt);
}

.hb-reviews__controls button:disabled {
  opacity: .35;
  cursor: default;
}

.hb-review {
  display: flex;
  padding: 32px;
  border-radius: var(--hb-radius);
  color: var(--ocf-heading);
}

.hb-review blockquote {
  font: 500 26px/37px var(--font-heading);
  margin: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.hb-review__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--hb-accent-text);
  padding: 0;
  font: 500 14px/20px var(--font-body);
  cursor: pointer;
}

.hb-review__more span {
  transition: transform .25s ease;
}

.hb-review__more:hover span {
  transform: translateX(3px);
}

@media (max-width: 991px) {
  .hb-reviews__grid {
    grid-template-columns: 1fr 1fr;
  }
  .hb-reviews__track .hb-review {
    flex-basis: calc((100% - 32px) / 2);
  }
  .hb-review:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
}

@media (max-width: 599px) {
  .hb-reviews__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hb-reviews__track {
    gap: 24px;
  }
  .hb-reviews__track .hb-review {
    flex-basis: 100%;
  }
  .hb-review {
    padding: 24px;
  }
  .hb-review blockquote {
    font-size: 24px;
    line-height: 34px;
  }
}

.hb-review {
  position: relative;
  flex-direction: column;
  min-height: 320px;
  gap: 20px;
}

.hb-review__popover-text.text-body {
  font-family: var(--font-body);
  font-size: var(--font-body-size);
  font-weight: var(--ocf-font-body-weight, 400);
  line-height: inherit;
  color: var(--ocf-body);
  white-space: pre-line;
}

.hb-review blockquote.text-body {
  font-family: var(--font-body);
  font-size: var(--font-body-size);
  font-weight: var(--ocf-font-body-weight, 400);
  line-height: inherit;
  color: var(--ocf-body);
  white-space: pre-line;
  margin: 0;
  flex: 0 0 auto;
}

.hb-review figcaption {
  border-top: 1px solid var(--ocf-border);
  font: 500 14px/20px var(--font-body);
  margin-top: auto;
  padding-top: 20px;
}

.hb-review__toggle {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-self: start;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ocf-primary);
  font: 500 16px/1.5 var(--font-body);
  cursor: pointer;
}

.hb-review__minimize {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-self: start;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ocf-primary);
  font: 500 16px/1.5 var(--font-body);
  cursor: pointer;
}

html[data-theme="dark"] :is(.hb-review__toggle, .hb-review__minimize) {
  color: var(--ocf-secondary);
}

.hb-review__toggle svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.hb-review__minimize svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.hb-review__toggle:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hb-review__minimize:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hb-review__toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
  border-radius: var(--ocf-radius-sm, var(--hb-radius));
}

.hb-review__minimize:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
  border-radius: var(--ocf-radius-sm, var(--hb-radius));
}

.hb-review__toggle[hidden] {
  display: none !important;
}

.hb-review__popover[hidden] {
  display: none !important;
}

.hb-review__popover-text {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  overflow-wrap: anywhere;
}

.hb-review__stars {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 3px;
  color: var(--ocf-review-star-color);
}

html[data-theme="dark"] .hb-review__stars {
  color: var(--ocf-review-star-color);
}

.hb-review__excerpt .hb-review__text {
  margin: 0;
}

.hb-review__popover {
  position: absolute;
  inset: 12px;
  z-index: 3;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--ocf-border);
  border-radius: max(12px, calc(var(--hb-radius) - 8px));
  background: var(--ocf-bg);
  grid-template-rows: minmax(0, 1fr);
  padding-top: 56px;
}

.hb-review__popover .hb-review__minimize {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ocf-heading);
}

.hb-review__excerpt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.hb-review.is-review-ready .hb-review__text {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  display: block;
  max-height: none;
  overflow: visible;
}

.hb-review__excerpt .hb-review__toggle {
  right: 0;
  bottom: 0;
  font: inherit;
  font-size: var(--font-body-size);
  font-weight: 500;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  position: static;
  display: inline-flex;
  min-height: 0;
  padding: 0;
  background: transparent;
}

.home main > .hb-reviews {
  background: var(--ocf-bg);
}

.hb-review:hover {
  transform: none !important;
}

.home main > .hb-reviews.hb-bg-soft {
  background: var(--hb-bg-soft);
}

.hb-reviews .hb-label {
  margin-inline: auto;
}

.hb-review {
  margin: 0;
  transform: none !important;
  background: var(--ocf-bg);
}
