/*
 * Review pieces: score card, sidebar card, bottom dock, popup, results sheet,
 * speed chart, kill switch timeline, "right for you" check, pros/cons and
 * alternatives. Markup: app/templates/partials/review-engage.php plus the
 * review page. Behaviour: assets/js/review-engage.js.
 *
 * Look: the site's own editorial style. Hairline borders, small corners,
 * Inter, tabular numbers, the red accent used sparingly. No gradients,
 * glows, pastel icon tiles or coloured side stripes.
 */
:root{
  --rv-ink:#14181F;
  --rv-ink-2:#323E48;
  --rv-muted:#6B7280;
  --rv-line:#E4E7EC;
  --rv-line-2:#D3D8DF;
  --rv-soft:#F4F6F8;
  --rv-good:#1F7A4D;
  --rv-mid:#8A6D1D;
  --rv-bad:#B23B3B;
  --rv-accent:#DA291C;
  --rv-cta:#15803D;
  --rv-cta-hover:#116B33;
  --rv-mono:'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

/* ---------- Buttons ---------- */
.rv-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:'Inter', sans-serif; font-weight:700; font-size:15px; line-height:1;
  padding:13px 18px; border-radius:6px; text-decoration:none !important; cursor:pointer;
  border:1px solid transparent; transition:background .15s, border-color .15s, color .15s;
}
.rv-btn--primary{background:var(--rv-cta); color:#fff !important;}
.rv-btn--primary:hover{background:var(--rv-cta-hover);}
.rv-btn--ghost{background:#fff; color:var(--rv-ink) !important; border-color:var(--rv-line-2);}
.rv-btn--ghost:hover{border-color:var(--rv-ink);}
.rv-btn--block{width:100%;}
.rv-btn--sm{padding:10px 13px; font-size:14px;}
.rv-btn i{font-size:15px;}
.article-body .rv-note, .rv-note{margin:9px 0 0; font-size:12.5px; line-height:1.4; color:var(--rv-muted);}
.rv-eyebrow{display:block; font-family:'Inter', sans-serif; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--rv-muted);}

/* ---------- Stars ---------- */
.rv-stars{display:inline-flex; gap:1px; color:#D97706; font-size:15px; vertical-align:middle;}

/* ---------- Score card ---------- */
.rv-card{margin:0 0 40px; border:1px solid var(--rv-line-2); border-radius:8px; background:#fff;}
.rv-card-top{display:flex; align-items:stretch; border-bottom:1px solid var(--rv-line);}
.rv-id{flex:1; display:flex; align-items:center; gap:14px; padding:18px 20px; min-width:0;}
.rv-id-logo{width:56px; height:56px; border-radius:8px; border:1px solid var(--rv-line); background:#fff; padding:5px; object-fit:contain; flex-shrink:0;}
.rv-id-text{display:flex; flex-direction:column; gap:3px; min-width:0;}
.rv-id-name{font-family:'Inter', sans-serif; font-size:22px; font-weight:700; color:var(--rv-ink); line-height:1.2;}
.rv-id-stars{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--rv-muted);}
.rv-id-label{font-weight:600; color:var(--rv-ink-2);}

.rv-score{display:flex; flex-direction:column; align-items:center; justify-content:center; padding:14px 22px; border-left:1px solid var(--rv-line); min-width:132px;}
.rv-score-num{font-family:'Inter', sans-serif; font-size:40px; font-weight:800; line-height:1; color:var(--rv-ink); font-variant-numeric:tabular-nums; letter-spacing:-.02em;}
.rv-score-num small{font-size:15px; font-weight:600; color:var(--rv-muted); letter-spacing:0;}
.rv-score-cap{margin-top:6px; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--rv-muted);}

.rv-card-body{padding:18px 20px 16px;}
.rv-badges{display:flex; flex-wrap:wrap; gap:6px 18px; margin:0 0 12px; font-size:13px; font-weight:600;}
.rv-badge{color:var(--rv-ink-2) !important; text-decoration:none !important; display:inline-flex; align-items:center; gap:6px;}
.rv-badge i{font-size:15px; color:var(--rv-accent);}
a.rv-badge:hover{text-decoration:underline !important;}
.article-body .rv-verdict{font-size:15.5px; line-height:1.55; color:var(--rv-ink); margin:0 0 14px;}

.article-body .rv-highlights{list-style:none; padding:0; margin:0 0 18px; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:6px 24px;}
.article-body .rv-highlights li{position:relative; margin:0; padding-left:20px; font-size:14px; line-height:1.45; color:var(--rv-ink-2);}
.rv-highlights li::before{position:absolute; left:0; top:-1px; font-weight:800; font-size:15px;}
.rv-highlights .is-good::before{content:'+'; color:var(--rv-good);}
.rv-highlights .is-bad::before{content:'\2212'; color:var(--rv-bad);}

.rv-actions{display:flex; flex-wrap:wrap; gap:10px;}
.rv-actions .rv-btn{flex:1 1 220px;}

.rv-breakdown{border-top:1px solid var(--rv-line); padding:12px 20px;}
.rv-breakdown summary{cursor:pointer; list-style:none; font-size:13.5px; font-weight:700; color:var(--rv-ink-2); display:flex; align-items:center; justify-content:space-between;}
.rv-breakdown summary::-webkit-details-marker{display:none;}
.rv-breakdown summary::after{content:'+'; font-size:18px; font-weight:400; color:var(--rv-muted);}
.rv-breakdown[open] summary::after{content:'\2212';}
.article-body .rv-breakdown-link{display:inline-block; margin-top:2px; font-size:13px;}

/* ---------- Bars (score breakdown) ---------- */
.article-body .rv-bars{list-style:none; padding:0; margin:12px 0 8px;}
.article-body .rv-bars li{display:grid; grid-template-columns:minmax(120px, 190px) 1fr 34px; align-items:center; gap:12px; margin:0 0 8px; font-size:13.5px;}
.rv-bar-label{color:var(--rv-ink-2);}
.rv-bar-label small{color:var(--rv-muted); margin-left:4px; font-size:12px;}
.rv-bar-track{height:6px; background:var(--rv-soft); border-radius:2px; overflow:hidden;}
.rv-bar-fill{display:block; height:100%; width:0; border-radius:2px; background:var(--rv-ink-2); transition:width .9s ease;}
.rv-bar-fill.is-good{background:var(--rv-good);}
.rv-bar-fill.is-mid{background:#B08A2A;}
.rv-bar-fill.is-bad{background:var(--rv-bad);}
.rv-bar-value{font-family:var(--rv-mono); font-size:12.5px; font-weight:600; text-align:right; color:var(--rv-ink);}

/* ---------- Sidebar card ---------- */
/* Sits last in the sidebar and sticks under the header for the rest of the article. */
.rv-side{position:sticky; top:92px; z-index:2; background:#fff; border:1px solid var(--rv-line-2); border-radius:8px; padding:14px; margin-top:20px;}
.rv-side-head{display:flex; align-items:center; gap:11px; margin-bottom:12px;}
.rv-side-head img{width:40px; height:40px; border-radius:6px; border:1px solid var(--rv-line); padding:3px; object-fit:contain;}
.rv-side-head > div{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px;}
.rv-side-name{font-weight:700; font-size:15px; color:var(--rv-ink);}
.rv-side .rv-stars{font-size:12.5px;}
.rv-side-score{font-weight:800; font-size:22px; color:var(--rv-ink); font-variant-numeric:tabular-nums;}
.rv-side-score small{font-size:12px; font-weight:600; color:var(--rv-muted);}
.rv-side .rv-note{font-size:12px; text-align:center;}
@media (max-width:860px){ .rv-side{display:none;} }

/* ---------- Reading progress ---------- */
.rv-progress{position:fixed; top:0; left:0; right:0; height:2px; z-index:100002; pointer-events:none;}
.rv-progress span{display:block; height:100%; width:100%; transform-origin:0 50%; transform:scaleX(0); background:var(--rv-accent);}

/* ---------- Bottom dock (phones and tablets) ---------- */
.rv-dock{
  position:fixed; left:0; right:0; bottom:0; z-index:99990;
  display:flex; align-items:center; gap:12px; padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  background:#fff; border-top:1px solid var(--rv-line-2); box-shadow:0 -4px 16px rgba(20,24,31,.08);
  transform:translateY(110%); transition:transform .3s ease; font-family:'Inter', sans-serif;
}
.rv-dock[hidden]{display:flex; visibility:hidden;}
.rv-dock.is-on{transform:none; visibility:visible;}
@media (min-width:861px){ .rv-dock{display:none !important;} }   /* desktop has the sticky sidebar card instead */
.rv-dock-logo{width:34px; height:34px; border-radius:6px; border:1px solid var(--rv-line); padding:2px; flex-shrink:0;}
.rv-dock-text{flex:1; min-width:0; display:flex; flex-direction:column; gap:1px;}
.rv-dock-name{font-weight:700; font-size:14.5px; color:var(--rv-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.rv-dock-score{font-weight:700; color:var(--rv-muted); font-variant-numeric:tabular-nums; margin-left:4px;}
.rv-dock-note{font-size:12px; color:var(--rv-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.rv-dock .rv-btn{flex-shrink:0;}
.rv-dock-close{flex-shrink:0; width:30px; height:30px; display:flex; align-items:center; justify-content:center; background:transparent; color:var(--rv-muted); border:0; border-radius:6px; cursor:pointer; font-size:16px;}
.rv-dock-close:hover{color:var(--rv-ink); background:var(--rv-soft);}
@media (max-width:420px){
  .rv-dock-note{display:none;}
  .rv-dock .rv-btn i{display:none;}
}

/* ---------- Popup ---------- */
.rv-modal{position:fixed; inset:0; z-index:100003; display:flex; align-items:center; justify-content:center; padding:20px;}
.rv-modal[hidden]{display:none;}
.rv-modal-backdrop{position:absolute; inset:0; background:rgba(20,24,31,.55); animation:rv-fade .2s ease both;}
.rv-modal-box{
  position:relative; width:min(420px, 100%); max-height:calc(100vh - 40px); overflow:auto;
  background:#fff; border-radius:8px; padding:24px 22px 20px; border-top:4px solid var(--rv-accent);
  box-shadow:0 24px 60px -20px rgba(20,24,31,.5); font-family:'Inter', sans-serif; animation:rv-pop .22s ease both;
}
.rv-modal-close{position:absolute; top:10px; right:10px; width:32px; height:32px; border:0; border-radius:6px; background:transparent; color:var(--rv-muted); cursor:pointer; font-size:17px; display:flex; align-items:center; justify-content:center;}
.rv-modal-close:hover{background:var(--rv-soft); color:var(--rv-ink);}
.rv-modal-head{display:flex; align-items:center; gap:13px; margin:0 28px 16px 0;}
.rv-modal-head img{width:48px; height:48px; border-radius:8px; border:1px solid var(--rv-line); padding:4px; object-fit:contain;}
.rv-modal-head h2{margin:3px 0 0; font-size:20px; line-height:1.25; font-weight:700; color:var(--rv-ink);}
.rv-modal-perks{list-style:none; margin:0 0 14px; padding:0;}
.rv-modal-perks li{position:relative; padding-left:20px; font-size:14.5px; color:var(--rv-ink-2); margin:0 0 8px; line-height:1.4;}
.rv-modal-perks li::before{content:'+'; position:absolute; left:0; top:-1px; font-weight:800; color:var(--rv-good);}
.rv-modal-score{font-size:13px; color:var(--rv-muted); border-top:1px solid var(--rv-line); border-bottom:1px solid var(--rv-line); padding:10px 0; margin:0 0 16px; line-height:1.5;}
.rv-modal-score strong{color:var(--rv-ink);}
.rv-modal-score .rv-stars{font-size:13px; margin-right:4px;}
.rv-modal-alt{display:block; text-align:center; margin-top:12px; font-size:13.5px; color:var(--rv-ink-2); text-decoration:underline; text-underline-offset:3px;}
@keyframes rv-fade{from{opacity:0;}}
@keyframes rv-pop{from{opacity:0; transform:translateY(8px);}}

/* ---------- Results sheet ---------- */
.rv-sheet{border:1px solid var(--rv-line-2); border-radius:8px; margin:6px 0 28px; overflow:hidden; background:#fff;}
.rv-sheet-head{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:10px 16px; border-bottom:1px solid var(--rv-line-2); background:var(--rv-soft); font-family:var(--rv-mono); font-size:11.5px; color:var(--rv-muted); text-transform:uppercase; letter-spacing:.04em;}
.rv-sheet-grid{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:1px; background:var(--rv-line);}
.rv-cell{background:#fff; padding:14px 16px 15px;}
.rv-cell-top{display:flex; justify-content:space-between; align-items:baseline; gap:8px;}
.rv-cell-label{font-size:12.5px; font-weight:600; color:var(--rv-ink-2);}
.rv-cell-mark{font-family:var(--rv-mono); font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;}
.rv-cell.is-good .rv-cell-mark{color:var(--rv-good);}
.rv-cell.is-mid .rv-cell-mark{color:var(--rv-mid);}
.rv-cell.is-bad .rv-cell-mark{color:var(--rv-bad);}
.rv-cell-num{display:block; margin:6px 0 2px; font-size:26px; font-weight:700; color:var(--rv-ink); font-variant-numeric:tabular-nums; letter-spacing:-.01em; line-height:1.1;}
.rv-cell.is-bad .rv-cell-num{color:var(--rv-bad);}
.rv-cell-sub{display:block; font-size:12.5px; color:var(--rv-muted); line-height:1.4;}
@media (max-width:640px){ .rv-sheet-grid{grid-template-columns:repeat(2, minmax(0,1fr));} .rv-cell{padding:12px 13px;} .rv-cell-num{font-size:22px;} }

/* ---------- Speed chart ---------- */
.rv-chart{border:1px solid var(--rv-line-2); border-radius:8px; padding:16px 18px; margin:6px 0 28px; background:#fff;}
.rv-chart-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px;}
.rv-chart-title{display:block; font-weight:700; font-size:15px; color:var(--rv-ink);}
.rv-chart-sub{display:block; font-size:12.5px; color:var(--rv-muted); margin-top:2px;}
.rv-seg{display:inline-flex; border:1px solid var(--rv-line-2); border-radius:6px; overflow:hidden;}
.rv-seg button{border:0; border-left:1px solid var(--rv-line-2); background:#fff; font-family:'Inter', sans-serif; font-weight:600; font-size:13px; color:var(--rv-ink-2); padding:7px 12px; cursor:pointer;}
.rv-seg button:first-child{border-left:0;}
.rv-seg button[aria-pressed="true"]{background:var(--rv-ink); color:#fff;}
.rv-chart-rows{list-style:none; margin:0 !important; padding:0 !important;}
.article-body .rv-chart-rows li{display:grid; grid-template-columns:110px 1fr 104px; align-items:center; gap:12px; margin:0; padding:8px 0; border-top:1px solid var(--rv-line); font-size:13.5px;}
.article-body .rv-chart-rows li:first-child{border-top:0;}
.rv-chart-name{font-weight:600; color:var(--rv-ink);}
.rv-chart-name small{display:block; font-weight:400; color:var(--rv-muted); font-size:11.5px;}
.rv-chart-track{height:8px; background:var(--rv-soft); border-radius:2px; overflow:hidden;}
.rv-chart-fill{display:block; height:100%; width:0; border-radius:2px; transition:width .8s ease;}
.rv-chart-val{font-family:var(--rv-mono); font-size:12.5px; font-weight:600; color:var(--rv-ink); text-align:right; white-space:nowrap;}
.rv-chart-val small{display:block; font-weight:400; color:var(--rv-muted); font-size:11px;}
.article-body .rv-chart-foot{font-size:12.5px; color:var(--rv-muted); margin:10px 0 0; line-height:1.45;}
@media (max-width:560px){
  .article-body .rv-chart-rows li{grid-template-columns:1fr auto; gap:6px 10px;}
  .rv-chart-track{grid-column:1 / -1; order:3;}
  .rv-chart{padding:14px;}
}

/* ---------- Kill switch timeline ---------- */
.rv-timeline{border:1px solid var(--rv-line-2); border-radius:8px; padding:16px 18px; margin:6px 0 28px; background:#fff;}
.rv-timeline-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px;}
.rv-timeline-bar{position:relative; display:flex; height:34px; gap:2px;}
.rv-tl-seg{display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:600; color:#fff; min-width:0; padding:0 4px; text-align:center; line-height:1.1;}
.rv-tl-seg:first-child{border-radius:4px 0 0 4px;}
.rv-tl-seg:nth-last-child(2){border-radius:0 4px 4px 0;}
.rv-tl-seg span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.rv-tl-vpn{background:var(--rv-good);}
.rv-tl-off{background:#9CA3AF;}
.rv-tl-leak{background:repeating-linear-gradient(135deg, var(--rv-bad) 0 8px, #C24848 8px 16px);}
.rv-flex-1{flex:1 1 0;} .rv-flex-2{flex:2 1 0;} .rv-flex-3{flex:3 1 0;} .rv-flex-4{flex:4 1 0;} .rv-flex-5{flex:5 1 0;} .rv-flex-6{flex:6 1 0;} .rv-flex-8{flex:8 1 0;} .rv-flex-10{flex:10 1 0;}
.rv-tl-head{position:absolute; top:-5px; bottom:-5px; left:0; width:2px; background:var(--rv-ink); opacity:0; transition:opacity .2s;}
.rv-timeline.is-playing .rv-tl-head{opacity:1;}
.rv-tl-axis{display:flex; justify-content:space-between; font-family:var(--rv-mono); font-size:11px; color:var(--rv-muted); margin-top:7px;}
.rv-tl-status{display:flex; align-items:center; gap:10px; margin-top:12px; padding:9px 0 0; border-top:1px solid var(--rv-line); font-size:13.5px; color:var(--rv-ink-2); min-height:34px;}
.rv-tl-status b{font-family:var(--rv-mono); font-weight:600;}
.rv-tl-status.is-leak{color:var(--rv-bad);}
.rv-tl-status.is-vpn{color:var(--rv-good);}
.rv-tl-dot{width:8px; height:8px; border-radius:50%; background:currentColor; flex-shrink:0;}
.rv-tl-legend{display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:8px; font-size:12.5px; color:var(--rv-muted);}
.rv-tl-legend span{display:inline-flex; align-items:center; gap:6px;}
.rv-tl-legend i{width:10px; height:10px; border-radius:2px; display:inline-block;}
@media (max-width:560px){ .rv-tl-seg span{display:none;} }

/* ---------- "Right for you" check ---------- */
.rv-quiz{border:1px solid var(--rv-line-2); border-radius:8px; margin:8px 0 32px; background:#fff; font-family:'Inter', sans-serif;}
.rv-quiz-top{padding:16px 18px 14px; border-bottom:1px solid var(--rv-line);}
.article-body .rv-quiz-title{font-size:18px; font-weight:700; color:var(--rv-ink); margin:4px 0 4px; line-height:1.3;}
.article-body .rv-quiz-sub{font-size:13.5px; color:var(--rv-muted); margin:0; line-height:1.5;}
.rv-q, .rv-quiz-result{padding:16px 18px 18px;}
.rv-q[hidden], .rv-quiz-result[hidden]{display:none;}
.rv-q-count{display:block; font-family:var(--rv-mono); font-size:11.5px; color:var(--rv-muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:4px;}
.article-body .rv-q-text{font-size:16px; font-weight:700; color:var(--rv-ink); margin:0 0 12px;}
.rv-q-opts{display:flex; flex-direction:column; gap:8px;}
.rv-q-opts button{
  display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:11px 12px; border-radius:6px;
  border:1px solid var(--rv-line-2); background:#fff; color:var(--rv-ink);
  font-family:'Inter', sans-serif; font-size:14.5px; font-weight:500; cursor:pointer; transition:border-color .15s, background .15s;
}
.rv-q-opts button:hover{border-color:var(--rv-ink); background:var(--rv-soft);}
.rv-q-key{width:24px; height:24px; flex-shrink:0; display:flex; align-items:center; justify-content:center; border:1px solid var(--rv-line-2); border-radius:4px; font-family:var(--rv-mono); font-size:12px; font-weight:600; color:var(--rv-muted); background:#fff;}
.rv-q-opts button:hover .rv-q-key{border-color:var(--rv-ink); color:var(--rv-ink);}
.rv-quiz-result-head{display:flex; align-items:center; gap:12px; margin-bottom:10px;}
.rv-quiz-result-head img{width:40px; height:40px; border-radius:6px; border:1px solid var(--rv-line); padding:3px; object-fit:contain;}
.rv-quiz-result-head span{display:block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--rv-muted);}
.rv-quiz-result-head strong{display:block; font-size:17px; font-weight:700; color:var(--rv-ink);}
.article-body .rv-quiz-result p{font-size:14.5px; line-height:1.55; color:var(--rv-ink-2); margin:0 0 14px;}
.rv-quiz-actions{display:flex; flex-wrap:wrap; gap:14px; align-items:center;}
.rv-quiz-again{background:none; border:0; padding:0; color:var(--rv-muted); font-family:'Inter', sans-serif; font-size:13.5px; font-weight:600; cursor:pointer; text-decoration:underline; text-underline-offset:3px;}
.rv-quiz-again:hover{color:var(--rv-ink);}

/* ---------- Pros and cons ---------- */
.rv-pc{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); border:1px solid var(--rv-line-2); border-radius:8px; margin:8px 0 30px; overflow:hidden;}
.rv-pc-col{padding:16px 18px;}
.rv-pc-col + .rv-pc-col{border-left:1px solid var(--rv-line-2);}
.article-body .rv-pc-col h3{margin:0 0 10px; font-size:13px; text-transform:uppercase; letter-spacing:.05em; color:var(--rv-ink-2);}
.article-body .rv-pc-col ul{list-style:none; padding:0; margin:0;}
.article-body .rv-pc-col li{position:relative; padding-left:20px; font-size:14.5px; line-height:1.45; margin:0 0 9px; color:var(--rv-ink);}
.rv-pc-col li::before{position:absolute; left:0; top:-1px; font-weight:800; font-size:15px;}
.rv-pc-col.is-pros li::before{content:'+'; color:var(--rv-good);}
.rv-pc-col.is-cons li::before{content:'\2212'; color:var(--rv-bad);}
@media (max-width:640px){ .rv-pc{grid-template-columns:1fr;} .rv-pc-col + .rv-pc-col{border-left:0; border-top:1px solid var(--rv-line-2);} }

/* ---------- Alternatives ---------- */
.rv-alts{border:1px solid var(--rv-line-2); border-radius:8px; margin:10px 0 30px; overflow:hidden;}
.rv-alt{display:grid; grid-template-columns:40px minmax(0,1fr) auto; gap:4px 14px; align-items:center; padding:14px 16px; border-top:1px solid var(--rv-line); text-decoration:none !important; color:inherit !important; background:#fff; transition:background .15s;}
.rv-alt:first-child{border-top:0;}
.rv-alt:hover{background:var(--rv-soft);}
.rv-alt img{width:40px; height:40px; border-radius:6px; border:1px solid var(--rv-line); padding:3px; object-fit:contain; grid-row:span 2;}
.rv-alt-name{font-weight:700; font-size:15px; color:var(--rv-ink);}
.rv-alt-name em{font-style:normal; font-weight:500; font-size:13px; color:var(--rv-muted); margin-left:6px;}
.rv-alt-score{font-weight:800; font-size:18px; color:var(--rv-ink); font-variant-numeric:tabular-nums; grid-row:span 2; text-align:right;}
.rv-alt-score small{display:block; font-size:11px; font-weight:600; color:var(--rv-muted);}
.rv-alt-why{font-size:13.5px; line-height:1.45; color:var(--rv-ink-2);}
.rv-alt:hover .rv-alt-name{text-decoration:underline; text-underline-offset:3px;}

/* ---------- Scroll reveal (JS adds .rv-hide only to pieces that start below the fold) ---------- */
.rv-reveal{transition:opacity .5s ease, transform .5s ease;}
.rv-reveal.rv-hide{opacity:0; transform:translateY(10px);}

@media (max-width:640px){
  .rv-card{margin-bottom:30px;}
  .rv-id{padding:14px; gap:12px;}
  .rv-id-logo{width:46px; height:46px;}
  .rv-id-name{font-size:19px;}
  .rv-score{min-width:96px; padding:12px 14px;}
  .rv-score-num{font-size:32px;}
  .rv-card-body{padding:14px 14px 12px;}
  .rv-breakdown{padding:12px 14px;}
  .article-body .rv-highlights{grid-template-columns:1fr;}
  .article-body .rv-bars li{grid-template-columns:1fr 34px; gap:4px 10px;}
  .rv-bar-track{grid-column:1 / -1; order:3;}
}
@media (max-width:380px){ .rv-id-stars{flex-wrap:wrap; gap:2px 6px;} .rv-score{min-width:84px;} .rv-score-num{font-size:28px;} }

@media (prefers-reduced-motion: reduce){
  .rv-modal-box, .rv-modal-backdrop{animation:none;}
  .rv-bar-fill, .rv-chart-fill, .rv-dock{transition:none;}
  .rv-reveal, .rv-reveal.rv-hide{opacity:1; transform:none; transition:none;}
}

.rv-card .sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}
