/* Reviews widget (includes/components/reviews.php), styled after Google reviews: centered rating summary
 * and light gray cards. Star yellow and the brand marks are fixed brand colors on purpose. */
.rev { --rev-star: #FBBC04; --rev-star-off: #D7DADF; position: relative; }
.rev--light { background: #fff; color: var(--color-primary); }
.rev--panel { border-radius: var(--radius-panel); background: var(--color-surface); color: var(--color-primary); }
.rev__inner { max-width: 1280px; margin: 0 auto; padding: 5rem 1rem; }
.rev--panel .rev__inner { padding: 2.5rem 1.25rem; }
@media (min-width: 768px) { .rev__inner { padding: 7rem 2rem; } .rev--panel .rev__inner { padding: 3.5rem 2.5rem; } }

.rev__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.75rem; }
.rev__title { max-width: 18ch; font-size: clamp(2rem, 4.2vw, 3.25rem); }
.rev--panel .rev__title { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.rev__sum { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.rev__label { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.rev__sum .rev__stars svg { width: 2.2rem; height: 2.2rem; }
.rev__brand { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.15rem; font-size: 1.125rem; }
.rev__brand-g svg { display: block; width: 1.5rem; height: 1.5rem; }
.rev__brand-score { padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--color-surface); font-size: 0.9375rem; font-weight: 700; }
.rev--panel .rev__brand-score { background: #fff; }

.rev__stars { display: inline-flex; gap: 0.15rem; }
.rev__stars svg { width: 1.15rem; height: 1.15rem; fill: var(--rev-star-off); }
.rev__stars svg.is-on { fill: var(--rev-star); }

.rev__track { position: relative; display: flex; gap: 1.25rem; margin-top: 2.75rem; padding: 0.25rem 0 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rev__track::-webkit-scrollbar { display: none; }
.rev__track:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 24px; }
.rev__card { display: flex; flex: 0 0 86%; flex-direction: column; scroll-snap-align: start; padding: 1.5rem; border-radius: 22px; background: #F4F4F5; color: #1F2328; }
.rev--panel .rev__card { background: #fff; }
@media (min-width: 640px) { .rev__card { flex-basis: calc(50% - 0.625rem); } }
@media (min-width: 1024px) { .rev__card { flex-basis: calc((100% - 2.5rem) / 3); padding: 1.75rem; } .rev--panel .rev__card { flex-basis: calc(50% - 0.625rem); } }

.rev__who { display: flex; align-items: center; gap: 0.85rem; }
.rev__avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 3rem; height: 3rem; border-radius: 50%; color: #fff; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.rev__avatar--0 { background: var(--color-primary); }
.rev__avatar--1 { background: var(--color-accent-strong); }
.rev__avatar--2 { background: var(--color-sea); color: var(--color-primary-deep); }
.rev__avatar--3 { background: var(--color-muted); }
.rev__id { display: block; min-width: 0; flex: 1 1 auto; }
.rev__name { display: block; font-weight: 700; line-height: 1.25; }
.rev__meta { display: block; font-size: 0.875rem; color: #6B7280; }
.rev__src { flex: none; align-self: flex-start; }
.rev__src svg { display: block; width: 1.45rem; height: 1.45rem; }
.rev__stars-row { margin-top: 1rem; }
.rev__text { margin-top: 0.75rem; flex: 1 1 auto; font-size: 1.0625rem; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden; }
.rev__card.is-open .rev__text { -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; display: block; }
.rev__more { align-self: flex-start; margin-top: 0.6rem; padding: 0; border: 0; background: none; color: #1A73E8; font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
.rev__more:hover { text-decoration: underline; }

.rev__foot { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.25rem; }
.rev__progress { position: relative; flex: 1 1 auto; height: 6px; border-radius: 999px; background: #E3E5E8; overflow: hidden; }
.rev__progress span { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; border-radius: 999px; background: #9AA0A6; }
.rev__nav { display: none; gap: 0.5rem; flex: none; }
.js .rev__nav { display: flex; }
.rev__btn { display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: #F4F4F5; color: var(--color-primary); cursor: pointer; transition: background-color 0.25s, opacity 0.25s; }
.rev--panel .rev__btn { background: #fff; }
.rev__btn:hover:not(:disabled) { background: var(--color-primary); color: #fff; }
.rev__btn:disabled { opacity: 0.4; cursor: default; }
.rev__btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) { .rev__track { scroll-behavior: auto; } .rev__btn { transition: none; } }
