/* Reviews: product page section, rating line, write form, home quote block, panel card. Uses the site2.css
   tokens; the var() fallbacks let the same classes work inside panel.html (which has the older stylesheet). */
/* stars: grey base, yellow overlay clipped to the average */
.rv-stars{position:relative;display:inline-block;white-space:nowrap;line-height:1;font-size:18px;letter-spacing:2px;color:#3a3a42;flex:none}
.rv-stars .fill{position:absolute;left:0;top:0;bottom:0;overflow:hidden;color:var(--y,var(--yellow,#ffde00))}

/* rating line under the product name and above the list */
.rv-mini{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:var(--mut,#a0a0aa);font-size:14.5px}
.rv-mini:hover{color:var(--text,#f5f5f7)}
.rv-sum{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px;color:var(--mut,#a0a0aa)}
.rv-sum b{color:var(--text,#f5f5f7);font-size:20px;font-weight:700}
.rv-sum .rv-stars{font-size:22px}

/* list */
.rv-list{display:grid}
.rv-item{display:grid;gap:8px;padding:20px 0;border-top:1px solid var(--line,#25252b);min-width:0}
.rv-item:last-child{border-bottom:1px solid var(--line,#25252b)}
.rv-meta{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap;color:var(--mut,#a0a0aa);font-size:14px}
.rv-meta b{color:var(--text,#f5f5f7);font-weight:600;font-size:15px}
.rv-body{white-space:pre-wrap;overflow-wrap:anywhere;color:#d6d6dc;margin:0}
.rv-more{margin-top:16px}
.rv-hint{color:var(--mut,#a0a0aa);font-size:14.5px;margin-top:16px}
.rv-hint a{text-decoration:underline;text-underline-offset:3px;color:var(--text,#f5f5f7)}

/* write form */
.rv-form{background:var(--s1,#101013);border:1px solid var(--line,#25252b);border-radius:12px;padding:20px;margin-top:24px;display:grid;gap:14px}
.rv-form h3{font-size:18px;font-weight:600;margin:0}
.rv-form fieldset{border:0;padding:0;margin:0;min-width:0}
.rv-form legend{font-size:13.5px;color:var(--mut,#a0a0aa);font-weight:500;padding:0;margin-bottom:4px}
.rv-pick{display:flex;gap:2px}
.rv-pick label{position:relative;display:grid;place-items:center;min-width:44px;min-height:44px;font-size:30px;line-height:1;cursor:pointer;color:var(--rv-dim,#3a3a42);-webkit-tap-highlight-color:transparent}
.rv-pick label.on{color:var(--y,var(--yellow,#ffde00))}
.rv-pick input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.rv-pick label:focus-within{outline:2px solid var(--y,var(--yellow,#ffde00));outline-offset:-2px;border-radius:8px}
.rv-form textarea{min-height:120px}
.rv-count{font-size:13px;color:var(--dim,var(--muted,#85858f));text-align:right}
.rv-form .rv-count.bad{color:var(--bad,#f87171)}
.rv-msg{font-size:14.5px;margin:0}
.rv-msg.err{color:#fecaca}.rv-msg.ok{color:#bbf7d0}
.rv-acts{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

/* home: one featured quote, then plain rows */
.rvh-feature{margin:0 0 32px;max-width:860px}
.rvh-feature .rv-stars{font-size:22px;margin-bottom:14px}
.rvh-feature blockquote{margin:0;font-size:clamp(20px,2.8vw,28px);line-height:1.4;letter-spacing:-.01em;font-weight:500;color:var(--text,#f5f5f7);white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8;overflow:hidden}
.rvh-feature figcaption{margin-top:16px;color:var(--mut,#a0a0aa);font-size:15px}
.rvh-feature figcaption b{color:var(--text,#f5f5f7);font-weight:600}
.rvh-feature figcaption a,.rvh-row a{text-decoration:underline;text-underline-offset:3px}
.rvh-row .rv-stars{font-size:16px;margin-bottom:6px;display:block;width:max-content}
.rvh-row p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--mut,#a0a0aa);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.rvh-row small{display:block;color:var(--dim,#85858f);font-weight:400;font-size:14px}

/* account panel card */
.rv-panel{display:grid;gap:18px}
.rv-panel .rv-item:last-child{border-bottom:0}
.rv-panel .rv-item>.btn{justify-self:start;margin-top:4px}
.rv-panel .rv-form{margin-top:0;background:transparent}
.rv-tag{display:inline-block;padding:2px 10px;border-radius:99px;font-size:12.5px;font-weight:600;background:rgba(251,191,36,.12);color:#fbbf24}

@media(max-width:720px){
 .rv-form{padding:16px}
 .rv-form .rv-acts .btn{width:100%}
 .rv-panel .rv-acts .btn{width:auto}
}
