#reviews-section {
  scroll-margin-top: 24px;
}
.review-controls {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.review-controls button {
  color: var(--ink);
}
.review-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}
.review-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 2px 24px;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  align-items: flex-start;
}
.review-track::-webkit-scrollbar {
  display: none;
}
.review-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  text-align: left;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 28px 26px;
}
/* Quote body: a subtle oversized quote mark is the one accent. */
.review-bubble {
  position: relative;
  flex: 1;
  padding-top: 34px;
  margin-bottom: 22px;
}
.review-bubble:before {
  content: "\201C";
  position: absolute;
  top: -20px;
  left: -4px;
  font-size: 78px;
  line-height: 1;
  color: var(--red);
  opacity: 0.16;
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: none;
}
.review-bubble blockquote {
  font-size: 15.5px;
  line-height: 1.72;
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: var(--ink);
}
/* Person row: avatar + name + route, pinned to the bottom of the card. */
.review-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.review-meta {
  min-width: 0;
}
.review-author {
  font-weight: 600;
  margin: 0;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-route {
  color: var(--muted);
  font-size: 13px;
  margin: 2px 0 0;
}
/* Screenshot-style reviews (if ever used) keep working. */
.review-scan {
  border: 0;
  background: transparent;
  width: 100%;
  cursor: zoom-in;
  padding: 0;
  display: block;
}
.review-scan img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 6px;
}
.review-scan + blockquote {
  margin-top: 18px;
}
.review-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 12px;
}
.review-dots button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  position: relative;
}
.review-dots button:after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bdc5bf;
  margin: auto;
}
.review-dots button[aria-current="true"]:after {
  background: var(--red);
  width: 20px;
  border-radius: 8px;
}
.review-status {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
#review-lightbox {
  width: min(900px, 94vw);
  max-height: 92dvh;
  border: 0;
  border-radius: 8px;
  padding: 52px 20px 20px;
  background: #fff;
}
#review-lightbox::backdrop {
  background: #101916db;
}
#review-lightbox img {
  max-height: 72dvh;
  width: 100%;
  object-fit: contain;
}
#review-close {
  position: absolute;
  right: 10px;
  top: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  font-size: 32px;
}
#review-caption {
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
}
.review-track:focus-visible,
.review-controls button:focus-visible,
.review-dots button:focus-visible,
.review-scan:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
@media (max-width: 1000px) {
  .review-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}
@media (max-width: 600px) {
  .review-controls {
    justify-content: flex-start;
  }
  .review-card {
    flex-basis: 88%;
    padding: 26px 22px 22px;
  }
  .review-track {
    gap: 16px;
  }
  .review-scan img {
    height: 320px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .review-track {
    scroll-behavior: auto;
  }
}
