/* ============================================================
   Customer reviews: product-page section, reviews.html feed + form.
   Prefixed rv- throughout so nothing collides with styles.css.
   ============================================================ */

/* ---------- stars ---------- */
.rv-stars{position:relative;display:inline-block;line-height:0;vertical-align:middle}
.rv-stars svg{width:18px;height:18px;margin-right:2px}
.rv-stars-sm svg{width:15px;height:15px;margin-right:1px}
.rv-stars-lg svg{width:22px;height:22px;margin-right:3px}
.rv-stars-bg,.rv-stars-fg{display:inline-flex;white-space:nowrap}
.rv-stars-bg svg{fill:var(--line)}
.rv-stars-fg{position:absolute;inset:0 auto 0 0;overflow:hidden}
.rv-stars-fg svg{fill:var(--ink);flex:0 0 auto}
.rv-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- mini rating under the price ---------- */
.rv-mini{display:inline-flex;align-items:center;gap:.55em;margin:.15em 0 .35em;font-size:.88rem;color:var(--t-light-mut)}
.rv-mini:hover{color:var(--ink)}
.rv-mini[hidden]{display:none}

/* ---------- product page section ---------- */
.rv-section{border-top:1px solid var(--line);padding:84px 0}
.rv-product{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr);gap:72px;align-items:start}
.rv-product-side{position:sticky;top:110px}
.rv-product-side h2{margin:.25em 0 .8em}
.rv-product-side .btn{margin-top:26px}

/* ---------- summary ---------- */
.rv-summary{display:flex;flex-direction:column;gap:20px}
.rv-summary-score{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.rv-summary-avg{font-family:var(--serif);font-size:3.4rem;line-height:1;color:var(--ink);letter-spacing:-.03em}
.rv-summary-count{flex-basis:100%;font-size:.88rem;color:var(--t-light-mut)}
.rv-bars{display:flex;flex-direction:column;gap:7px;max-width:320px}
.rv-bar{display:grid;grid-template-columns:2.2em minmax(0,1fr) 2em;align-items:center;gap:10px;font-size:.8rem;color:var(--t-light-mut)}
.rv-bar-track{height:6px;border-radius:6px;background:var(--mist-2);overflow:hidden}
.rv-bar-fill{display:block;height:100%;background:var(--ink);border-radius:6px}
.rv-bar-n{text-align:right}

/* ---------- list (hairline-ruled, no cards) ---------- */
.rv-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.rv-item{padding:30px 0;border-bottom:1px solid var(--line)}
.rv-item-head{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.rv-item-product{font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--accent)}
.rv-item-product:hover{color:var(--accent-deep)}
.rv-item-title{font-size:1.18rem;margin:0 0 .35em}
.rv-item-body{white-space:pre-line;color:var(--t-light);margin:0 0 14px;max-width:68ch;overflow-wrap:anywhere}
.rv-item-photo{display:inline-block;margin:0 0 14px}
.rv-item-photo img{width:132px;height:132px;object-fit:cover;border-radius:var(--radius-sm)}
.rv-item-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;font-size:.84rem;color:var(--t-light-mut)}
.rv-item-name{font-weight:600;color:var(--ink)}
.rv-badge{font-size:.74rem;font-weight:600;letter-spacing:.02em}
.rv-badge-ok{color:var(--accent-deep)}
.rv-badge-ok::before{content:"";display:inline-block;width:.5em;height:.85em;margin-right:.45em;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-.12em)}
.rv-disclose{font-size:.82rem;color:var(--t-light-mut);font-style:italic;margin:8px 0 0}
.rv-withheld{font-size:.92rem;color:var(--t-light-mut);margin:0 0 14px;max-width:68ch}
.rv-withheld a,.rv-notes a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.rv-reply{margin:18px 0 0;padding:2px 0 2px 18px;border-left:2px solid var(--accent)}
.rv-reply-by{display:block;font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);margin-bottom:4px}
.rv-reply p{margin:0;font-size:.95rem;white-space:pre-line;overflow-wrap:anywhere}
.rv-more{margin-top:26px}
.rv-more[hidden]{display:none}
.rv-empty{padding:34px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.rv-empty-h{font-family:var(--serif);font-size:1.4rem;color:var(--ink);margin:0 0 .2em}
.rv-empty p:last-child{margin:0;color:var(--t-light-mut)}
.rv-notes{margin-top:28px}
.rv-notes p{font-size:.8rem;line-height:1.6;color:var(--t-light-mut);margin:0 0 .6em;max-width:72ch}

/* ---------- reviews.html ---------- */
.rv-hero .lead{margin-top:.6em}
.rv-hero .btn{margin-top:22px;background:#fff;color:var(--ink)}
.rv-hero .btn:hover{background:var(--mist)}
.rv-write-band{background:var(--mist)}
.rv-write{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr);gap:72px;align-items:start}
.rv-write-intro{position:sticky;top:110px}
.rv-write-intro h2{margin:.25em 0 .5em}
.rv-write-intro ol{list-style:none;counter-reset:rv;margin:26px 0 0;padding:0;border-top:1px solid var(--line)}
.rv-write-intro li{counter-increment:rv;position:relative;padding:14px 0 14px 2.4em;border-bottom:1px solid var(--line);font-size:.94rem}
.rv-write-intro li::before{content:counter(rv,decimal-leading-zero);position:absolute;left:0;top:14px;font-family:var(--serif);color:var(--accent)}
#rv-form{background:var(--paper);border-radius:var(--radius);padding:40px;box-shadow:var(--shadow-sm)}
#rv-form[hidden],#rv-done[hidden]{display:none}
.rv-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 18px}
.rv-grid .field{min-width:0}
.field select{width:100%;padding:.82em 1em;border:1px solid var(--line);border-radius:8px;background:#fff;font:inherit;color:inherit}
.field select:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-wash)}
.rv-hint{display:block;font-size:.78rem;color:var(--t-light-mut);margin-top:5px}
.rv-count{float:right;font-weight:400;color:var(--t-light-mut)}
fieldset.field{border:0;padding:0;margin:0 0 16px;min-width:0}
fieldset.field legend{font-size:.84rem;font-weight:600;margin-bottom:6px;color:var(--ink);padding:0}

/* star input: radios in reverse order so hover can light everything before it */
.rv-rate{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;gap:4px}
.rv-rate input{position:absolute;opacity:0;width:1px;height:1px}
.rv-rate label{cursor:pointer;line-height:0;padding:4px}
.rv-rate svg{width:34px;height:34px;fill:var(--line);transition:fill .12s,transform .12s}
.rv-rate label:hover svg,.rv-rate label:hover ~ label svg,
.rv-rate input:checked ~ label svg{fill:var(--ink)}
.rv-rate input:focus-visible + label svg{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
.rv-rate label:active svg{transform:scale(.9)}

.rv-radios{display:flex;flex-direction:column;gap:8px}
.rv-check,.rv-radios label{display:flex;gap:.7em;align-items:flex-start;font-size:.9rem;line-height:1.5;color:var(--t-light);cursor:pointer}
.rv-check input,.rv-radios input{margin-top:.28em;flex:0 0 auto;accent-color:var(--ink);width:16px;height:16px}
.rv-check{margin-bottom:12px}
.rv-photo-preview{display:flex;align-items:center;gap:14px;margin-top:10px}
.rv-photo-preview:empty{display:none}
.rv-photo-preview img{width:72px;height:72px;object-fit:cover;border-radius:var(--radius-sm)}
.rv-photo-remove{background:none;border:0;padding:0;font:inherit;font-size:.85rem;color:var(--accent);text-decoration:underline;cursor:pointer}
.rv-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.rv-status{min-height:1.4em;margin:14px 0 0;font-size:.9rem}
.rv-status.is-bad{color:#9b2c1f}
#rv-submit{margin-top:10px}
#rv-submit:disabled{opacity:.6;cursor:wait}
#rv-done{background:var(--paper);border-radius:var(--radius);padding:48px 40px;box-shadow:var(--shadow-sm)}
#rv-done h3{font-size:1.6rem}
.rv-feed-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:34px}
.rv-feed-head h2{margin:0}
.rv-feed-head .field{margin:0;min-width:240px}
#rv-feed .rv-summary{flex-direction:row;flex-wrap:wrap;align-items:center;gap:20px 56px;margin-bottom:34px}
#rv-feed .rv-bars{flex:1 1 260px}

@media(max-width:960px){
  .rv-product,.rv-write{grid-template-columns:minmax(0,1fr);gap:36px}
  .rv-product-side,.rv-write-intro{position:static}
}
@media(max-width:680px){
  .rv-section{padding:56px 0}
  #rv-form,#rv-done{padding:24px 18px}
  .rv-grid{grid-template-columns:minmax(0,1fr)}
  .rv-summary-avg{font-size:2.8rem}
  .rv-rate svg{width:38px;height:38px}
  .rv-feed-head .field{min-width:0;width:100%}
  .field select{font-size:16px}
}
.rv-guide{background:var(--mist)}

/* ---- reviews.html: reviews first, as cards, like the FAQ cards ---- */
.rv-hero-score{display:flex;align-items:center;gap:10px;margin:.7em 0 0;color:#fff;font-size:1rem}
.rv-hero-score .rv-stars svg,.rv-hero-score svg{fill:#f3c969}
.rv-hero-avg{font-family:var(--serif);font-size:1.5rem;line-height:1}
.rv-hero-n{color:rgba(255,255,255,.7);font-size:.92rem}
.rv-hero-ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.rv-hero .rv-hero-ctas .btn{margin-top:0}
.rv-hero .btn.btn-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.45)}
.rv-hero .btn.btn-ghost:hover{background:rgba(255,255,255,.1);border-color:#fff}
#rv-feed .rv-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;border-top:0;align-items:start}
#rv-feed .rv-item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px 28px;box-shadow:0 1px 2px rgba(27,26,23,.04)}
#rv-feed .rv-item-body{max-width:none}
.rv-item-body.rv-clamp{display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.rv-more{background:none;border:0;padding:0;margin:-6px 0 14px;color:var(--accent);font:600 .88rem var(--sans);cursor:pointer}
.rv-more:hover{color:var(--accent-deep)}
#rv-feed .rv-item-meta{padding-top:14px;border-top:1px solid var(--line)}
#rv-feed > .rv-list ~ *{grid-column:1/-1}
@media(max-width:820px){#rv-feed .rv-list{grid-template-columns:minmax(0,1fr)}#rv-feed .rv-item{padding:22px 20px}}
