/* Star ratings feed: the /reviews page and the homepage "What people say"
   block. Both load assets/js/reviews-feed.js, which builds markup with these
   classes. Colours fall back across the two design systems the site uses
   (site.css tokens on inner pages, scrollcraft tokens on the homepage). */
[hidden] { display: none !important; }
.rv {
  --rv-ink: var(--sc-ink, var(--text-1, #e8ecf3));
  --rv-soft: var(--sc-ink-soft, var(--text-2, #aab3c2));
  --rv-line: var(--sc-hairline, rgba(255, 255, 255, 0.1));
  --rv-star: #f5b942;
  --rv-star-off: rgba(255, 255, 255, 0.18);
  color: var(--rv-ink);
}
.rv-stars {
  position: relative; display: inline-block; white-space: nowrap;
  color: var(--rv-star-off); letter-spacing: 0.08em; line-height: 1;
}
.rv-stars__fill {
  position: absolute; left: 0; top: 0; overflow: hidden;
  white-space: nowrap; color: var(--rv-star);
}
.rv-summary {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 32px; margin: 24px 0;
}
.rv-avg { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rv-avg__n { font-size: 44px; font-weight: 800; line-height: 1; }
.rv-avg .rv-stars { font-size: 24px; }
.rv-avg__count { color: var(--rv-soft); font-size: 15px; }
.rv-dist { display: grid; gap: 6px; min-width: min(100%, 260px); flex: 1 1 260px; max-width: 360px; }
.rv-dist__row { display: grid; grid-template-columns: 28px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; color: var(--rv-soft); }
.rv-dist__bar { height: 8px; border-radius: 4px; background: var(--rv-star-off); overflow: hidden; }
.rv-dist__bar > span { display: block; height: 100%; background: var(--rv-star); }
.rv-dist__n { text-align: right; }
.rv-list { display: grid; gap: 14px; margin: 24px 0; padding: 0; list-style: none; }
.rv-item {
  border: 1px solid var(--rv-line); border-radius: 12px;
  padding: 16px 18px; display: grid; gap: 8px;
}
.rv-item__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rv-item .rv-stars { font-size: 18px; }
.rv-item__date { color: var(--rv-soft); font-size: 13px; }
.rv-item__note { margin: 0; font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-empty, .rv-status { color: var(--rv-soft); font-size: 16px; line-height: 1.6; }
.rv-rule { color: var(--rv-soft); font-size: 15px; line-height: 1.65; }
.rv-more { margin-top: 16px; font-size: 15px; }
.rv-more a { color: var(--accent, var(--sc-accent, inherit)); }
.rv-home__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px; margin: 16px 0 8px; }
.rv-home__top .rv-avg__n { font-size: 32px; }
.rv-home__top .rv-stars { font-size: 20px; }
.rv-home__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0; padding: 0; list-style: none; }
@media (max-width: 720px) {
  .rv-home__list { grid-template-columns: 1fr; }
  .rv-avg__n { font-size: 36px; }
}
