/* Laptop Expert — Google reviews wall (draft). Self-contained; all selectors prefixed .rw */
.rw {
  --rw-bg: #f5f5f7; --rw-card: #fff; --rw-border: #d2d2d7; --rw-text: #1d1d1f; --rw-muted: #6e6e73;
  --rw-accent: #0f766e; --rw-accent-2: #0d9488; --rw-star: #fbbc04; --rw-star-off: #dadce0;
  --rw-radius: 16px; --rw-max: 1120px; --rw-wall-h: 620px;
  --rw-font: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--rw-bg); color: var(--rw-text); font-family: var(--rw-font);
  padding: clamp(48px, 7vw, 96px) 0; overflow: hidden;
}
.rw *, .rw *::before, .rw *::after { box-sizing: border-box; }
.rw [hidden] { display: none !important; }
.rw-demo-body { margin: 0; }
.rw-container { max-width: var(--rw-max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 1280px) { .rw { --rw-max: 1240px; } }

/* Header */
.rw-header { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.rw-eyebrow { margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rw-accent); }
.rw-title { margin: 0 0 10px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; }
.rw-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.05rem; }
.rw-summary a { color: var(--rw-text); text-decoration: underline; text-underline-offset: 3px; }
.rw-attrib { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--rw-muted); font-size: .9rem; }
.rw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rw-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--rw-border); background: #fff; color: var(--rw-text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.rw-btn:hover { border-color: var(--rw-accent); }
.rw-btn--primary { background: var(--rw-accent); border-color: var(--rw-accent); color: #fff; }
.rw-btn--primary:hover { background: var(--rw-accent-2); }
.rw-btn--ghost { background: transparent; }
.rw :focus-visible { outline: 3px solid var(--rw-accent-2); outline-offset: 2px; }
.rw-qr { display: none; margin: 0 0 0 8px; text-align: center; font-size: .72rem; color: var(--rw-muted); }
.rw-qr img { display: block; background: #fff; border-radius: 8px; padding: 4px; border: 1px solid var(--rw-border); }
@media (min-width: 900px) { .rw-qr { display: block; } }
.rw-example-banner { margin: 0 0 16px; padding: 8px 14px; border-radius: 10px; background: #fff7e6; border: 1px dashed #d97706; color: #92400e; font-weight: 600; font-size: .9rem; }

/* Stars */
.rw-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.rw-stars svg { width: 16px; height: 16px; }
.rw-stars--lg svg { width: 22px; height: 22px; }

/* Card */
.rw-card { background: var(--rw-card); border: 1px solid var(--rw-border); border-radius: var(--rw-radius); padding: 18px 18px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); margin: 0; }
.rw-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rw-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font-weight: 700; font-size: 1.05rem; overflow: hidden; }
.rw-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rw-who { min-width: 0; }
.rw-name { margin: 0; font-weight: 700; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-meta { display: flex; align-items: center; gap: 8px; color: var(--rw-muted); font-size: .82rem; }
.rw-src { margin-left: auto; flex: 0 0 auto; opacity: .9; }
.rw-text { margin: 0; font-size: .95rem; line-height: 1.55; color: #2c2c2e; }
.rw-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rw-text--empty { color: var(--rw-muted); font-style: italic; }
.rw-text mark { background: rgba(13,148,136,.13); color: inherit; padding: 0 2px; border-radius: 3px; font-weight: 600; }
.rw-more { margin-top: 6px; padding: 4px 0; background: none; border: 0; color: var(--rw-accent); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; }
.rw-reply { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--rw-accent); background: #f0fdfa; border-radius: 0 10px 10px 0; font-size: .87rem; line-height: 1.45; }
.rw-reply-badge { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; font-weight: 700; color: var(--rw-accent); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.rw-reply p { margin: 0; }

/* "New" badge + featured (newest) strip */
.rw-new { display: inline-block; padding: 0 6px; border: 1px solid var(--rw-text); border-radius: 4px; font-size: .68rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--rw-text); line-height: 1.5; }
.rw-featured { margin: 0 0 22px; }
.rw-featured-title { margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rw-muted); }
.rw-featured-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rw-featured-list > li { margin: 0; }
.rw-featured .rw-card { border-color: var(--rw-accent); box-shadow: 0 2px 10px rgba(15,118,110,.12); }
.rw-featured .rw-text { font-size: 1rem; }

/* Static (prerendered / no-JS) list */
.rw-static { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rw-static-note { color: var(--rw-muted); }

/* Desktop credits wall */
.rw-wall { position: relative; display: grid; gap: 18px; grid-template-columns: repeat(var(--rw-cols, 3), minmax(0, 1fr));
  height: var(--rw-wall-h); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%); }
.rw-col { min-width: 0; }
.rw-track { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; will-change: transform;
  animation: rw-scroll var(--rw-dur, 60s) linear infinite; animation-play-state: paused; }
.rw-track > li { margin: 0; }
.rw.is-running .rw-track { animation-play-state: running; }
.rw.is-running .rw-wall:hover .rw-track,
.rw.is-running .rw-wall:focus-within .rw-track { animation-play-state: paused; }
.rw-col:nth-child(2) .rw-track { animation-delay: calc(var(--rw-dur, 60s) * -0.33); }
.rw-col:nth-child(3) .rw-track { animation-delay: calc(var(--rw-dur, 60s) * -0.66); }
.rw-col:nth-child(4) .rw-track { animation-delay: calc(var(--rw-dur, 60s) * -0.15); }
@keyframes rw-scroll { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 9px)); } }

/* Mobile rotator */
.rw-rotator { position: relative; }
.rw-rotator .rw-slide { min-height: 300px; }
.rw-slide { transition: opacity .45s ease, transform .45s ease; }
.rw-slide.is-entering { opacity: 0; transform: translateY(10px); }
.rw-rotator-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.rw-icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rw-border); background: #fff; color: var(--rw-text); font-size: 1.1rem; cursor: pointer; }
.rw-pos { min-width: 72px; text-align: center; color: var(--rw-muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.rw-progress { height: 3px; background: var(--rw-border); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.rw-progress > span { display: block; height: 100%; width: 0; background: var(--rw-accent); }
.rw.is-running .rw-progress > span { animation: rw-progress var(--rw-rotate, 5000ms) linear forwards; }
@keyframes rw-progress { to { width: 100%; } }

/* Reduced motion: no automatic movement; wall becomes a scrollable grid */
.rw.is-reduced .rw-wall { height: auto; max-height: var(--rw-wall-h); overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
.rw.is-reduced .rw-track { animation: none; }
.rw.is-reduced .rw-slide { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .rw-track, .rw-progress > span { animation: none !important; }
  .rw-slide { transition: none; }
}
.rw-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Reserve space so swapping the prerendered list for the wall does not shift the page */
@media (min-width: 900px) {
  .rw-stage { min-height: var(--rw-wall-h); }
  .rw-static { max-height: var(--rw-wall-h); overflow: hidden; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
