/* reviews.css — public /reviews creator-reviews corpus.
   Loaded AFTER trust.css (which it reuses for the hero, tally, FAQ, dark
   close, avatar, reveal motion, and the shared .rq translated-review body).
   This file adds only the corpus-specific surface: the reviews hero column,
   the "about these reviews" block, the language filter bar, and the scalable
   reviews GRID + Load More (a grid, not CSS columns, so filtering and
   show/hide stay clean as the corpus grows to hundreds). Mobile-first.
   Added 2026-06-20. */

/* ============================================================== */
/* Hero — two columns: pitch on the left, a real review pulled out  */
/* as a bright "exhibit" sheet on the right (mirrors /trust's       */
/* ledger device + wax seal so the two pages read as one record).   */
/* ============================================================== */
.rv-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(384px, 0.96fr);
  gap: 44px;
  align-items: center;
}
.rv-hero__grid--solo { grid-template-columns: 1fr; max-width: 720px; }
.rv-hero__lead { min-width: 0; }
.rv-hero__lead .trust-hero__title { margin-bottom: 18px; }

/* The exhibit: bright sheet on the dark surface (echoes .trust-ledger) */
.rv-ledger { position: relative; }
.rv-spotlight {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(15, 23, 42, 0.04);
  padding: 32px 32px 26px;
  display: flex;
  flex-direction: column;
}
.rv-spotlight__mark { color: var(--color-primary); opacity: 0.22; font-size: 1.9rem; line-height: 1; margin-bottom: 14px; }
.rv-spotlight__quote {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-gray-900);
  margin: 0 0 22px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}
.rv-spotlight__author { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.rv-spotlight__by { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rv-spotlight__name { font-size: 1rem; font-weight: 700; color: var(--color-gray-900); overflow-wrap: break-word; word-break: break-word; }
.rv-spotlight__role { font-size: 0.8125rem; font-weight: 500; color: var(--color-gray-500); }

/* ============================================================== */
/* About these reviews — machine-readable honesty block            */
/* ============================================================== */
.rv-about { text-align: center; }
.rv-about__eyebrow { margin: 0 0 8px; }
.rv-about__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-gray-700);
  margin: 8px auto 0;
  max-width: 76ch;
}

/* Reviews section header (above the filter + grid) */
.rv-section-head { margin: 0 0 22px; }
.rv-section-head__title { margin: 0 0 6px; }

/* ============================================================== */
/* Language filter bar                                             */
/* ============================================================== */
.rv-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.rv-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  min-height: 40px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-700);
  cursor: pointer;
  transition: transform 150ms var(--ease-out), border-color 150ms var(--ease-out), background 150ms var(--ease-out), color 150ms var(--ease-out);
}
.rv-filter:hover { transform: translateY(-1px); border-color: var(--color-gray-300); }
.rv-filter.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.rv-filter__count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gray-400);
  font-variant-numeric: tabular-nums;
}
.rv-filter.is-active .rv-filter__count { color: rgba(255, 255, 255, 0.78); }
.rv-filter:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ============================================================== */
/* Reviews grid + card (visually matches /trust .trust-note)        */
/* ============================================================== */
/* Masonry (CSS columns) — the same device as /trust's review wall. Quotes of
   very different lengths pack tightly into columns with no ragged row gaps,
   instead of a fixed grid where a short card leaves dead space beside a tall
   one. Cards never split across a column (break-inside: avoid). */
.rv-grid {
  columns: 3;
  column-gap: 16px;
}
/* No-JS fallback: hide extras only while collapsed. JS removes .is-collapsed
   on first paint and takes over visibility, so a JS-off visitor sees all. */
.rv-grid.is-collapsed .rv-card--extra { display: none; }
.rv-card--hide { display: none !important; }

.rv-card {
  position: relative;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 16px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: 20px 22px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.rv-card:hover { transform: translateY(-2px); border-color: var(--color-gray-300); box-shadow: var(--shadow-md); }
.rv-card__mark { color: var(--color-primary); opacity: 0.20; font-size: 1.4rem; line-height: 1; margin-bottom: 12px; }
.rv-card__text {
  font-size: 0.9688rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-gray-800);
  margin: 0 0 16px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}
.rv-card__author { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.rv-card__by { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rv-card__name {
  font-style: normal;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-gray-900);
  overflow-wrap: break-word;
  word-break: break-word;
}
.rv-card__role { font-size: 0.75rem; font-weight: 500; color: var(--color-gray-500); }

/* ============================================================== */
/* Load More + filter empty state                                  */
/* ============================================================== */
.rv-more { text-align: center; margin-top: 28px; }
.rv-loadmore { display: inline-flex; align-items: center; gap: 9px; }
.rv-loadmore i { font-size: 0.8125rem; }
.rv-empty-filter {
  text-align: center;
  color: var(--color-gray-500);
  font-size: 0.9688rem;
  padding: 24px 0 8px;
  margin: 0;
}

/* ============================================================== */
/* Tablet                                                          */
/* ============================================================== */
@media (max-width: 991px) {
  .rv-grid { columns: 2; }
  .rv-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .rv-hero__lead { max-width: 640px; }
  .rv-ledger { max-width: 560px; }
}

/* ============================================================== */
/* Mobile (<=767, verified down to 375px)                          */
/* ============================================================== */
@media (max-width: 767px) {
  .rv-grid { columns: 1; }
  .rv-card { padding: 18px 18px 16px; margin-bottom: 12px; }
  .rv-about__text { font-size: 1rem; }
  .rv-filter-bar { gap: 7px; margin-bottom: 20px; }
  .rv-filter { min-height: 44px; }
  .rv-more { margin-top: 22px; }
  .rv-loadmore { width: 100%; justify-content: center; }
  .rv-spotlight { padding: 24px 20px 22px; border-radius: var(--radius-xl); }
  .rv-spotlight__quote { font-size: 1.0625rem; line-height: 1.58; margin-bottom: 18px; }
  .rv-spotlight__mark { font-size: 1.6rem; margin-bottom: 12px; }
}
