/*
  /reviews (app/views/static/reviews.html.erb). Built on the stage kit in
  stage_pages.css: same tokens, so light and dark come for free. Everything
  here is scoped .rv-* (page) and .rvs-* (hero scene).
*/

/* --------------------------------------------------------- platform pill */
.rv-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: 99px; background: var(--st-soft); box-shadow: inset 0 0 0 1px var(--st-line); font-size: .75rem; font-weight: 700; color: var(--st-ink); white-space: nowrap; flex: none; }
.rv-dot { width: .55rem; height: .55rem; border-radius: 99px; background: var(--rv-c, #94a3b8); flex: none; }

/* ------------------------------------------------------------ hero scene */
.rvs { position: absolute; inset: 0; }
.rvs-card { position: absolute; left: 34px; top: 92px; width: 452px; padding: 22px 24px 18px; border-radius: 18px; background: var(--st-card); box-shadow: 0 0 0 1px var(--st-line), 0 30px 60px -28px rgba(15,35,95,.45); transform-origin: 50% 0; transition: transform .8s var(--st-spring), opacity .55s var(--st-ease); }
.rvs-card[data-pos="0"] { z-index: 3; }
.rvs-card[data-pos="1"] { z-index: 2; transform: translateY(-30px) scale(.94); opacity: .7; }
.rvs-card[data-pos="2"] { z-index: 1; transform: translateY(-58px) scale(.88); opacity: .4; }
.rvs-card.is-out { transform: translateY(46px) scale(.98); opacity: 0; }
/* Cards behind the front one read as a clean stack, not as overlapping text. */
.rvs-card > * { transition: opacity .45s var(--st-ease); }
.rvs-card:not([data-pos="0"]) > * { opacity: 0; }
.rvs-head { display: flex; align-items: center; gap: 11px; }
.rvs-av { width: 42px; height: 42px; border-radius: 99px; -o-object-fit: cover; object-fit: cover; flex: none; background: var(--st-tint); }
.rvs-av--i { display: inline-flex; align-items: center; justify-content: center; color: var(--st-blue); font-size: 14px; font-weight: 800; }
.rvs-who { flex: 1; min-width: 0; }
.rvs-who b { display: block; font-size: 14px; font-weight: 760; color: var(--st-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rvs-who small { display: block; font-size: 11.5px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rvs-card .rv-pill { font-size: 11px; }
.rvs-title { margin: 16px 0 0; font-size: 17px; font-weight: 780; line-height: 1.35; letter-spacing: -.01em; color: var(--st-ink); }
.rvs-mark { background: linear-gradient(var(--st-tint-3), var(--st-tint-3)) 0 92% / 0% .3em no-repeat; transition: background-size .9s var(--st-ease); }
.rvs-mark.is-lit, .st-scene:not(.is-live) .rvs-card[data-pos="0"] .rvs-mark { background-size: 100% .3em; }
.rvs-text { margin: 10px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--st-body); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.rvs-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--st-line); font-size: 11.5px; color: var(--st-muted); }
.rvs-link { display: inline-flex; align-items: center; gap: 5px; color: var(--st-link); font-weight: 700; }
.rvs-link i { font-size: 9px; }

/* --------------------------------------------------------------- sources */
.rv-sources { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) { .rv-sources { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rv-source { display: flex; flex-direction: column; padding: 1.6rem; border-radius: 1.3rem; background: var(--st-card); box-shadow: 0 0 0 1px var(--st-line), var(--st-shadow); }
.rv-source h3 { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: 1.2rem; font-weight: 780; letter-spacing: -.015em; color: var(--st-ink); }
.rv-source h3 .rv-dot { width: .75rem; height: .75rem; }
.rv-source p { margin: .8rem 0 0; font-size: .95rem; line-height: 1.6; color: var(--st-body); }
.rv-source .rv-here { margin-top: 1rem; font-size: .85rem; font-weight: 650; color: var(--st-muted); }
.rv-source .st-link { margin-top: auto; padding-top: 1.2rem; }

/* ------------------------------------------------------------------ wall */
.rv-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.1rem; }
.rv-controls .st-filter { margin: 0; justify-content: flex-start; }
.rv-search { position: relative; flex: 1 1 15rem; max-width: 22rem; }
.rv-search input { width: 100%; padding: .7rem 1rem; -webkit-padding-start: 2.6rem; padding-inline-start: 2.6rem; border: 0; border-radius: 999px; background: var(--st-card); box-shadow: 0 0 0 1px var(--st-line); color: var(--st-ink); font: inherit; font-size: .95rem; transition: box-shadow .25s; }
.rv-search input::-moz-placeholder { color: var(--st-faint); }
.rv-search input::placeholder { color: var(--st-faint); }
.rv-search input:focus { outline: none; box-shadow: 0 0 0 1.5px var(--st-blue), 0 0 0 5px rgba(53,109,255,.14); }
.rv-search i { position: absolute; inset-inline-start: 1.05rem; top: 50%; transform: translateY(-50%); color: var(--st-muted); font-size: .85rem; pointer-events: none; }
.rv-status { margin: 0 0 1.6rem; font-size: .88rem; color: var(--st-muted); }
/* A row-by-row grid, so "newest first" reads left to right; cards in a row
   share a height and their footers line up. */
.rv-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.rv-review { display: flex; flex-direction: column; padding: 1.5rem; border-radius: 1.3rem; background: var(--st-card); box-shadow: 0 0 0 1px var(--st-line), var(--st-shadow); }
.rv-review[hidden] { display: none; }
.rv-head { display: flex; align-items: center; gap: .75rem; }
.rv-av { width: 2.75rem; height: 2.75rem; border-radius: 99px; -o-object-fit: cover; object-fit: cover; flex: none; background: var(--st-tint); }
.rv-av--i { display: inline-flex; align-items: center; justify-content: center; color: var(--st-blue); font-size: .85rem; font-weight: 800; }
.rv-who { flex: 1; min-width: 0; }
.rv-who cite { display: block; font-style: normal; font-weight: 750; color: var(--st-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-who small { display: block; font-size: .8rem; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-review h3 { margin: 1.1rem 0 0; font-size: 1.06rem; font-weight: 760; line-height: 1.4; letter-spacing: -.01em; color: var(--st-ink); }
.rv-body { margin: .6rem 0 1.2rem; font-size: .97rem; line-height: 1.65; color: var(--st-body); overflow-wrap: anywhere; }
.rv-body p { margin: 0 0 .7em; } .rv-body p:last-child { margin-bottom: 0; }
/* Long reviews fold only once the script is running, so without it every
   word stays readable. */
.rv-js .rv-body.is-long:not(.is-open) { max-height: 9.9em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.rv-more { display: none; align-self: flex-start; align-items: center; gap: .35rem; margin: -.65rem 0 1.2rem; padding: 0; border: 0; background: none; color: var(--st-link); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.rv-js .rv-more { display: inline-flex; }
.rv-more:hover { color: var(--st-link-hover); }
.rv-more i { font-size: .7rem; transition: transform .3s var(--st-ease); }
.rv-more[aria-expanded="true"] i { transform: rotate(180deg); }
.rv-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--st-line); font-size: .85rem; color: var(--st-muted); }
.rv-foot a { display: inline-flex; align-items: center; gap: .35rem; color: var(--st-link); font-weight: 650; }
.rv-foot a:hover { color: var(--st-link-hover); }
.rv-foot a i { font-size: .7rem; }
.rv-empty { padding: 3rem 1rem; text-align: center; color: var(--st-muted); }
.rv-empty[hidden] { display: none; }

/* --------------------------------------------------------- leave a review */
.rv-leave { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; padding: 2rem; border-radius: 1.4rem; background: var(--st-tint); }
.rv-leave h2 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--st-ink); }
.rv-leave p { margin: .4rem 0 0; max-width: 34rem; color: var(--st-body); line-height: 1.6; }
.rv-leave-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.rv-leave-links .st-btn { padding: .75rem 1.1rem; }
