/* Customer reviews as a sideways row (owner, 22 Oct 2026): the section moved up under "See it played." (section 1c of
   product.html and r36s.html) and its cards scroll sideways instead of stacking in a grid. Loaded after
   product-showroom.css, whose sr-reviews rules style the cards; this file changes the layout. The row runs to the
   screen edges with its first card on the page column, so the next card always peeks in. Swipe, trackpad or keyboard
   anywhere; arrows beside the heading on any screen with a mouse or trackpad (product-reviews.js). */

.sr-reviews { padding: 56px 0 0; overflow-x: clip; }
.sr-reviews__title { min-width: 0; }
.sr-reviews__sum { margin-top: 12px; }
.sr-reviews__sum:empty { display: none; }

.sr-reviews__nav { display: flex; gap: 8px; }
.sr-reviews__nav[hidden] { display: none; }
.sr-reviews__arrow { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--sr-fill); color: var(--pp-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: color 150ms ease, box-shadow 160ms ease, transform 150ms var(--ease-out); }
.sr-reviews__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-reviews__arrow:not([aria-disabled="true"]):active { transform: scale(.96); }
.sr-reviews__arrow[aria-disabled="true"] { color: rgba(243, 243, 240, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .sr-reviews__arrow:not([aria-disabled="true"]):hover { box-shadow: inset 0 0 0 1px var(--pp-ink); }
}
/* touch phones swipe; a narrow or zoomed window with a mouse keeps its arrows (the row's scrollbar is hidden) */
@media (max-width: 767px) and (hover: none) {
  .sr-reviews__nav { display: none; }
}

/* the row: full width of the screen, padded back to the page column (--edge) on both sides. 100vw is the fallback;
   where container units work, the section's own width (without a desktop scrollbar) keeps the cards on the column. */
.sr-reviews__list { --edge: max(var(--gut), (100vw - 1160px) / 2);
  display: flex; align-items: stretch; gap: 12px; margin: 24px calc(50% - 50vw) 0; padding: 2px var(--edge) 6px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; }
@supports (width: 1cqw) {
  .sr-reviews { container-type: inline-size; }
  .sr-reviews__list { --edge: max(var(--gut), (100cqw - 1160px) / 2); margin-inline: calc(50% - 50cqw); }
}
.sr-reviews__list::-webkit-scrollbar { display: none; }
.sr-reviews__list:focus-visible { outline: 3px solid var(--pp-gold); outline-offset: -3px; border-radius: 18px; }

/* cards: one width, one photo shape (customer photos vary, so the row crops them all to 4:3 over reviews.js's own
   shape), and the name line pinned to the bottom so it sits level across the row */
.sr-reviews .review-card { flex: 0 0 min(82vw, 340px); scroll-snap-align: start; }
.sr-reviews .review-card__photo img { aspect-ratio: 4 / 3 !important; }
/* Verified status sits over the photo; keep it readable over light and dark images. */
.sr-reviews .review-card__photo { position: relative; }
.sr-reviews .review-card__verified { display: inline-flex; align-items: center; gap: 5px; width: fit-content;
  margin: 0; padding: 5px 8px; border: 1px solid rgba(22, 101, 52, .18); border-radius: 999px;
  background: #dcfce7; color: #166534; font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1.25;
  white-space: nowrap; box-shadow: 0 1px 5px rgba(0, 0, 0, .12); }
.sr-reviews .review-card__verified svg { flex: 0 0 13px; width: 13px; height: 13px; }
.sr-reviews .review-card__photo > .review-card__verified { position: absolute; top: 8px; left: 8px;
  z-index: 1; max-width: calc(100% - 16px); pointer-events: none; }
.sr-reviews .review-card__body { flex: 1; }
.sr-reviews .review-card__text { flex: 1; }
/* a review without a photo becomes a quote card: the words large, so the tile reads as full, not empty */
.sr-reviews .review-card:not(:has(.review-card__photo)) .review-card__body { padding-top: 26px; }
.sr-reviews .review-card:not(:has(.review-card__photo)) .review-card__text { font: 500 21px/1.42 var(--pp-display); letter-spacing: -.02em; text-wrap: pretty; }
.sr-reviews .review-card:not(:has(.review-card__photo)) .review-card__text::before { content: "\201C"; display: block; height: .5em; margin: 8px 0 14px;
  color: rgba(243, 243, 240, .28); font: 700 72px/1 var(--pp-display); }
/* a long review (reviews.js) starts at four lines (five on a quote card), with a "Read more" link under it (owner, 29 Oct) */
.sr-reviews .review-card__text--long { flex: 0 0 auto; }
.sr-reviews .review-card__text--long:not(.is-open) p { display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.sr-reviews .review-card:not(:has(.review-card__photo)) .review-card__text--long:not(.is-open) p { -webkit-line-clamp: 5; line-clamp: 5; }
.sr-reviews .review-card__more { align-self: flex-start; flex: 0 0 auto; margin: 10px 0 auto; padding: 4px 0;
  border: 0; background: none; color: var(--pp-gold); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.3;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sr-reviews .review-card__more:hover { color: var(--pp-ink); }
.sr-reviews .review-card__more:focus-visible { outline: 2px solid var(--pp-gold); outline-offset: 3px; border-radius: 4px; }

/* phones (owner, 22 Oct 2026: "way smaller on mobile", then "make the cards smaller"): a compact heading and summary,
   and small cards with nearly two in view */
@media (max-width: 767px) {
  .sr-reviews { padding-top: 40px; }
  .sr-reviews .pp-h2 { font-size: 28px; letter-spacing: -.045em; }
  .sr-reviews__sum { gap: 8px; margin-top: 8px; font-size: 13px; }
  .sr-reviews__sum .review-star { width: 13px; height: 13px; }
  .sr-reviews__list { gap: 8px; margin-top: 14px; }
  .sr-reviews .review-card { flex-basis: min(54vw, 200px); border-radius: 12px; }
  .sr-reviews .review-card__photo img { aspect-ratio: 3 / 2 !important; }
  .sr-reviews .review-card__body { gap: 6px; padding: 11px 12px 12px; }
  .sr-reviews .review-card .review-stars { gap: 2px; }
  .sr-reviews .review-card .review-star { width: 11px; height: 11px; }
  .sr-reviews .review-card__text { font-size: 12.5px; line-height: 1.45; }
  .sr-reviews .review-card__meta { gap: 0; font-size: 11px; line-height: 1.4; }
  .sr-reviews .review-card__verified { font-size: 10.5px; }
  .sr-reviews .review-card:not(:has(.review-card__photo)) .review-card__body { padding-top: 13px; }
  .sr-reviews .review-card:not(:has(.review-card__photo)) .review-card__text { font-size: 14px; line-height: 1.38; }
  .sr-reviews .review-card:not(:has(.review-card__photo)) .review-card__text::before { margin: 2px 0 6px; font-size: 38px; }
}
/* tablets and desktop (owner, 22 Oct 2026: "make the review cards smaller on desktop too"): about four and a half
   cards across a laptop */
@media (min-width: 768px) {
  .sr-reviews .review-card { flex-basis: 260px; border-radius: 14px; }
  .sr-reviews .review-card__body { gap: 9px; padding: 15px 17px 17px; }
  .sr-reviews .review-card .review-star { width: 14px; height: 14px; }
  .sr-reviews .review-card__text { font-size: 14px; line-height: 1.5; }
  .sr-reviews .review-card__meta { font-size: 12px; }
  .sr-reviews .review-card__verified { font-size: 11.5px; }
  .sr-reviews .review-card:not(:has(.review-card__photo)) .review-card__body { padding-top: 18px; }
  .sr-reviews .review-card:not(:has(.review-card__photo)) .review-card__text { font-size: 17px; line-height: 1.4; }
  .sr-reviews .review-card:not(:has(.review-card__photo)) .review-card__text::before { margin: 4px 0 10px; font-size: 54px; }
}
@media (min-width: 1024px) {
  .sr-reviews { padding-top: 88px; }
  .sr-reviews .review-card { flex-basis: 270px; }
  .sr-reviews .review-card:not(:has(.review-card__photo)) .review-card__text { font-size: 18px; }
}
/* Keep review photos compact without changing the separate owners' photo gallery. */
#reviews .review-card { flex-basis: 200px; }
@media (max-width: 767px) {
  #reviews .review-card { flex-basis: min(40vw, 150px); }
}
@media (prefers-reduced-motion: reduce) {
  .sr-reviews__arrow { transition: none; }
  .sr-reviews__arrow:not([aria-disabled="true"]):active { transform: none; }
}
@media (prefers-contrast: more) {
  .sr-reviews__arrow { box-shadow: inset 0 0 0 1px #8b8d96; }
}
@media (forced-colors: active) {
  .sr-reviews__arrow { border: 1px solid ButtonText; }
  .sr-reviews__arrow[aria-disabled="true"] { border-color: GrayText; color: GrayText; }
}
