/* THE EVENING · the beta testers' section (e-reviews.js). The approved look of reviews-10.html, variant 2: a phone
   with the chat on the left; on the right every quote of the page's language in a list that scrolls, four in view and
   the next one peeking through the faded bottom edge (owner, 2026-11-26: no «See all» window, just scroll). On phones
   the quotes swipe sideways instead, so the list never catches the finger that scrolls the page. A lightbox for the
   whole chat. Every name starts with rw- (shared.css already owns words like .cell). No coloured edge stripes: the
   active quote has the tone contour all the way round (the owner's rule, 2026-11-24). */
@property --rw-fu { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --rw-fd { syntax: "<length>"; inherits: false; initial-value: 0px; }
.rw-sec { --rw-gold: 214 177 92; }
.rw { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.rw-side { min-width: 0; }
.rw-side .lead { margin-top: 14px; }
.rw-phone { position: relative; border-radius: 38px; padding: 10px; background: linear-gradient(160deg, #222930, #0b0e11 55%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 70px -30px rgba(0, 0, 0, .9); }
.rw-screen { display: grid; width: 100%; padding: 0; border: 0; font: inherit; border-radius: 29px; overflow: hidden; background: #000; cursor: zoom-in; }
.rw-screen img { grid-area: 1 / 1; display: block; width: 100%; height: auto; aspect-ratio: 720 / 1562; opacity: 0; transition: opacity .4s; }
.rw-screen img.is-on { opacity: 1; }

/* the list: as tall as its first four quotes plus a peek of the next (e-reviews.js sets the height); an edge fades
   only where there is more to scroll to. The fade sizes are UP and DOWN in e-reviews.js. The padding keeps the active
   quote's glow and the focus ring inside the scroll box; the negative margin keeps the quotes in line with the heading. */
.rw-list { --rw-pad: 10px; margin: 12px calc(-1 * var(--rw-pad)) 0; padding: var(--rw-pad); position: relative; display: grid; gap: 10px; align-content: start;
  overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--surface-4) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--rw-fu), #000 calc(100% - var(--rw-fd)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--rw-fu), #000 calc(100% - var(--rw-fd)), transparent 100%);
  transition: --rw-fu .3s, --rw-fd .3s; }
.rw-list.has-up { --rw-fu: 30px; }
.rw-list.has-down { --rw-fd: 64px; }
.rw-item { font: inherit; text-align: left; border: 0; cursor: pointer; padding: 14px 16px; border-radius: 16px; background: var(--surface-1); color: var(--text-tertiary);
  box-shadow: inset 0 0 0 1px var(--border-soft); display: grid; gap: 10px; transition: box-shadow .25s, background .25s, color .25s; }
.rw-item:hover { color: var(--text-secondary); }
.rw-item[aria-pressed="true"] { background: var(--surface-2); color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgb(var(--rw-gold) / .46), inset 0 1px 0 rgb(var(--rw-gold) / .7), 0 0 18px -6px rgb(var(--rw-gold) / .4); }
.rw-item:focus-visible, .rw-screen:focus-visible, .rw-btn:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 3px; }
.rw-q { font-size: 15.5px; line-height: 1.45; }
.rw-q::before { content: "“"; color: var(--gold-2); } .rw-q::after { content: "”"; color: var(--gold-2); }
.rw-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rw-ring { width: 22px; height: 22px; flex: none; }
.rw-ring circle { fill: none; stroke: var(--surface-4); stroke-width: 2.5; }
.rw-ring .run { stroke: var(--gold-2); stroke-dasharray: 56.55; stroke-dashoffset: 56.55; transform: rotate(-90deg); transform-origin: 12px 12px; }
.rw-item.is-on .run { animation: rw-ring 7s linear forwards; }
/* the timer waits while the pointer is over the section, the keyboard is in it, the reader has just scrolled the list
   (.is-held, a few seconds) or the section is off screen */
@media (hover: hover) { .rw:hover .run { animation-play-state: paused; } }
.rw:has(:focus-visible) .run, .rw.is-held .run, .rw.is-away .run { animation-play-state: paused; }
.rw-item:not(.is-on) .rw-ring { opacity: 0; }
@keyframes rw-ring { to { stroke-dashoffset: 0; } }
mark.rw-hl { color: inherit; background: linear-gradient(transparent 60%, rgb(var(--rw-gold) / .34) 60%, rgb(var(--rw-gold) / .34) 92%, transparent 92%); padding: 0 .05em; }

.rw-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rw-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #0b0d10; }
.rw-ph { background-color: var(--surface-3); background-size: 400% 400%; background-repeat: no-repeat; }
.rw-who b { display: block; font-size: 14px; font-weight: 650; color: var(--text-primary); white-space: nowrap; }
.rw-who small { display: flex; align-items: center; gap: 5px; color: var(--text-tertiary); font-size: 12.5px; white-space: nowrap; }
.rw-who small svg { width: 13px; height: 13px; flex: none; }
.rw-btn { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-subtle);
  color: var(--text-secondary); display: inline-grid; place-items: center; cursor: pointer; font: inherit; font-size: 18px; line-height: 1; }
.rw-btn:hover { color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* lightbox */
.rw-lb { position: fixed; inset: 0; z-index: 910; display: none; align-items: center; justify-content: center; gap: 18px; background: rgba(5, 6, 8, .9); backdrop-filter: blur(6px); padding: 20px; }
.rw-lb.is-open { display: flex; }
.rw-lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; }
.rw-lb img { max-height: calc(100vh - 110px); max-width: min(420px, 86vw); width: auto; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--border-subtle), 0 30px 80px -20px #000; }
.rw-lb figcaption { color: var(--text-secondary); font-size: 13.5px; text-align: center; white-space: pre; }
.rw-x { position: absolute; top: 16px; right: 16px; }

/* phones: the heading, then the phone, then the quotes in a row that swipes sideways, edge to edge (a tall scroller
   there would hold the finger that scrolls the page). The row is as tall as its tallest quote, so it never changes. */
@media (max-width: 900px) {
  .rw { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rw-side { display: contents; }
  .rw-side > * { order: 1; }
  .rw-phone { order: 2; width: min(230px, 62vw); margin: 26px auto 0; }
  .rw-list { --rw-pad: 20px; order: 3; margin: 16px -20px 0; padding: 10px var(--rw-pad); grid-auto-flow: column; grid-auto-columns: min(84%, 360px);
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rw-pad); scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--rw-fu), #000 calc(100% - var(--rw-fd)), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 var(--rw-fu), #000 calc(100% - var(--rw-fd)), transparent 100%); }
  .rw-list::-webkit-scrollbar { display: none; }
  .rw-list.has-up { --rw-fu: 18px; } .rw-list.has-down { --rw-fd: 18px; }
  .rw-item { scroll-snap-align: center; grid-template-rows: 1fr auto; }
}
@media (max-width: 600px) {
  .rw-lb { gap: 6px; padding: 12px 6px; } .rw-side-btn { position: absolute; bottom: 18px; } .rw-side-btn.prev { left: 18px; } .rw-side-btn.next { right: 18px; }
}
@media (prefers-reduced-motion: reduce) { .rw-item.is-on .run { animation: none; } .rw-screen img, .rw-item, .rw-list { transition: none; } }
