/* Reviews: one row that moves on its own (home and the media page; js/reviews.js clones the cards for the loop and runs
   it: drag or swipe, a mouse over it or keyboard focus holds it, a tap holds and lets go on a touch screen). Cards sized by the length of the words; a long
   quote scrolls inside its card. */
/* The soft edges are two black fades over a frame that holds still, not a mask on the moving row: Safari on iPhone can
   drop a masked row that scrolls, and the section goes black. */
.rvm-frame { position: relative; margin-top: 48px; }
.rvm-frame::before, .rvm-frame::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 5%; pointer-events: none;
}
.rvm-frame::before { left: 0; background: linear-gradient(90deg, var(--bg), rgba(0, 0, 0, 0)); }
.rvm-frame::after { right: 0; background: linear-gradient(270deg, var(--bg), rgba(0, 0, 0, 0)); }
.rvm-row {
  overflow-x: auto; padding-block: 6px 18px; cursor: grab; user-select: none; scrollbar-width: none;
}
.rvm-row::-webkit-scrollbar { display: none; }
.rvm-row:active { cursor: grabbing; }
.rvm-row:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.rvm-track { display: flex; width: max-content; }
.rvm-row--single { cursor: default; }
.rvm-frame:has(.rvm-row--single)::before, .rvm-frame:has(.rvm-row--single)::after { display: none; }
.rvm-row--single .rvm-track { width: 100%; justify-content: center; }
.rvm-card {
  flex-shrink: 0; display: flex; flex-direction: column; width: 330px; margin: 0 8px; padding: 30px 30px 26px;
  border-radius: 28px; background: var(--card); text-align: left;
}
.rvm-card[data-size="mid"] { width: 410px; }
.rvm-card[data-size="long"] { width: 470px; }
.rvm-logo { width: auto; height: 30px; max-width: 150px; object-fit: contain; object-position: 0 50%; margin-bottom: 20px; opacity: .92; }
/* The wrap hugs its quote, so the fade below always sits on the quote's last lines; a card's spare height goes above
   the name instead (.rvm-by's auto margin) */
.rvm-quote-wrap { position: relative; flex: none; }
/* Eight whole lines, then the rest scrolls inside the card */
.rvm-quote {
  max-height: calc(8 * 1.65em + 2px); overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin; font-size: 16px;
  line-height: 1.65; color: #ececec; text-wrap: pretty;
}
.rvm-quote p { margin-bottom: .8em; }
.rvm-quote p:last-child { margin-bottom: 0; }
/* A long quote fades out over its last lines into the hint, instead of stopping at a hard edge */
.rvm-more {
  position: absolute; inset: auto 0 0; padding-top: 78px; text-align: center; font-size: 12px; color: var(--soft);
  background: linear-gradient(0deg, var(--card) 20%, rgba(20, 20, 20, .92) 34%, rgba(20, 20, 20, .7) 52%,
    rgba(20, 20, 20, .38) 72%, rgba(20, 20, 20, .12) 88%, rgba(20, 20, 20, 0));
  pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
}
.rvm-card.is-clipped .rvm-more { opacity: 1; }
.rvm-card.is-clipped.is-read .rvm-more { opacity: 0; }
.rvm-by { margin-top: auto; padding-top: 22px; display: grid; gap: 2px; }
.rvm-name { font-size: 20px; line-height: 1.3; }
.rvm-meta { font-size: 13.5px; line-height: 1.45; color: var(--soft); }
.rvm-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: 13.5px; }
.rvm-links a { color: #fefffe; text-underline-offset: 3px; }
.rvm-ask { margin-top: 44px; }
@media (max-width: 640px) {
  .rvm-card { width: 290px; padding: 24px 22px 22px; border-radius: 24px; }
  .rvm-card[data-size="mid"] { width: 310px; }
  .rvm-card[data-size="long"] { width: 320px; }
}
