/* Printing page reviews bar: rating + scrolling customer quotes, directly
   under the sticky nav. Filled by printing-reviews-bar.js from
   /data/reviews.json and /data/review-stats.json. Height is fixed so the
   hero never shifts when the quotes arrive. */
.prb {
  --prb-h: 44px;
  position: relative;
  z-index: 5;
  height: var(--prb-h);
  margin: 0;
  padding: 0;
  background: #0d1219;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e6ebf1;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.875rem;
  line-height: 1;
  overflow: hidden;
}
.prb *, .prb *::before, .prb *::after { box-sizing: border-box; }
.prb-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0 0 max(16px, env(safe-area-inset-left));
}
.prb-score {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 30px;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 180, 0, 0.4);
  border-radius: 999px;
  background: rgba(255, 180, 0, 0.08);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.prb-score:hover { background: rgba(255, 180, 0, 0.16); border-color: rgba(255, 180, 0, 0.65); }
.prb-score:focus-visible { outline: 2px solid #ffb400; outline-offset: 2px; }
.prb-stars { color: #ffb400; letter-spacing: 0.06em; font-size: 0.8rem; }
.prb-rating { font-weight: 700; font-size: 0.95rem; }
.prb-count { color: rgba(255, 255, 255, 0.72); font-size: 0.8rem; }
.prb-frame {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
          mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.prb-track {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  width: max-content;
  height: 100%;
  margin: 0;
  padding: 0 1.5rem;
  list-style: none;
  animation: prb-scroll var(--prb-dur, 120s) linear infinite;
}
.prb:hover .prb-track,
.prb:focus-within .prb-track,
.prb.is-paused .prb-track { animation-play-state: paused; }
.prb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.prb-item-stars { color: #ffb400; font-size: 0.75rem; letter-spacing: 0.06em; }
.prb-quote { color: #f3f6f9; }
.prb-name { color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; }
.prb-src {
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(104, 217, 232, 0.35);
  border-radius: 999px;
  color: #68d9e8;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.prb-toggle {
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
}
.prb-toggle:hover { color: #fff; }
.prb-toggle:focus-visible { outline: 2px solid #ffb400; outline-offset: -6px; }
.prb-toggle svg { width: 12px; height: 12px; fill: currentColor; vertical-align: middle; }
.prb-toggle .prb-i-play { display: none; }
.prb.is-paused .prb-toggle .prb-i-play { display: inline; }
.prb.is-paused .prb-toggle .prb-i-pause { display: none; }
.prb:not(.is-ready) .prb-toggle { visibility: hidden; }
@keyframes prb-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .prb { font-size: 0.8125rem; }
  .prb-score { gap: 0.3rem; padding: 0 0.55rem; }
  .prb-count-long, .prb-stars-more { display: none; }
  .prb-rating { font-size: 0.875rem; }
  .prb-count { font-size: 0.75rem; }
  .prb-track { gap: 2rem; padding: 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .prb-track { animation: none; }
  .prb-frame { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
  .prb-frame::-webkit-scrollbar { display: none; }
  .prb-track [aria-hidden="true"] { display: none; }
  .prb-toggle { display: none; }
}

/* Page themes restyle links inside .biz (theme-paper) and elsewhere; the bar
   keeps its own colours whatever page it sits on. */
.prb a.prb-score, .prb a.prb-score:hover, .prb a.prb-score:visited { color: #fff !important; text-decoration: none !important; }
.prb .prb-rating { color: #fff !important; }
.prb .prb-count { color: rgba(255, 255, 255, 0.72) !important; }
.prb .prb-stars { color: #ffb400 !important; }

/* theme-paper.css pads the first section of .biz pages (repair hub). The bar
   now sits before that section, so hand the padding back to it. */
body.paper .biz > .prb + section { padding-top: 2rem; }
@media (max-width: 720px) {
  body.paper .biz > .prb + section { padding-top: 1.5rem; }
}
