/* Reviews: verdict box, score bars, pricing tables, cards and rankings. Loaded after a theme's own
   stylesheet and built only from that theme's variables, so each website keeps its look.
   The Sourcing Herald names its tokens differently (--paper, --hair, --serif, --sans); the fallbacks cover it. */
:root {
  --rv-ink: var(--ink);
  --rv-ink-2: var(--ink-2);
  --rv-muted: var(--muted);
  --rv-hair: var(--hair, var(--rule));
  --rv-heavy: var(--rule);
  --rv-box: var(--tint, var(--paper-2));
  --rv-card: var(--card, var(--paper));
  --rv-accent: var(--accent);
  --rv-accent-ink: var(--accent-ink);
  --rv-star: var(--accent);
  --rv-ui: var(--ui, var(--sans));
  --rv-display: var(--display, var(--serif));
  --rv-radius: var(--radius, 0px);
}
.theme-oddly { --rv-star: var(--green); --rv-heavy: var(--ink); }
.theme-rabbit { --rv-star: var(--carrot); --rv-box: var(--mint); --rv-heavy: var(--accent); }
.theme-cartplot { --rv-star: var(--accent); --rv-heavy: var(--navy); }

.rv-page { padding-bottom: 56px; }
.rv-crumbs { font: 14px/1.4 var(--rv-ui); color: var(--rv-muted); padding-top: 18px; }
.rv-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.rv-crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--rv-muted); }
.rv-crumbs a { color: var(--rv-ink-2); }

.rv-head { padding: 14px 0 18px; max-width: 900px; }
.rv-head .headline { font-family: var(--rv-display); font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; margin: 6px 0 0; }
.rv-head .dek { font-size: clamp(18px, 1.6vw, 21px); margin-top: 12px; max-width: 46em; }
.rv-byline { font: 14px/1.4 var(--rv-ui); color: var(--rv-muted); margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.rv-byline strong { color: var(--rv-ink); font-weight: 600; }

/* Verdict box */
.rv-verdict { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; background: var(--rv-box); border-top: 4px solid var(--rv-heavy); border-radius: var(--rv-radius); padding: 26px 28px; margin: 6px 0 34px; }
.rv-verdict-score { text-align: center; }
.rv-big { margin: 0 0 6px; font-family: var(--rv-ui); color: var(--rv-ink); display: flex; flex-direction: column; align-items: center; }
.rv-big strong { font-family: var(--rv-display); font-size: 72px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.rv-big span { font-size: 14px; color: var(--rv-muted); margin-top: 4px; }
.rv-verdict-body h2 { font: 600 13px/1.3 var(--rv-ui); text-transform: uppercase; letter-spacing: 0.08em; color: var(--rv-accent-ink); margin: 0 0 6px; }
.rv-oneline { font-family: var(--rv-display); font-size: clamp(20px, 2vw, 25px); line-height: 1.3; font-weight: 600; margin: 0 0 16px; color: var(--rv-ink); }
.rv-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 22px; font-family: var(--rv-ui); }
.rv-facts div { border-top: 1px solid var(--rv-hair); padding-top: 8px; }
.rv-facts dt { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rv-muted); }
.rv-facts dd { margin: 4px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--rv-ink); }
.rv-sub { color: var(--rv-muted); font-size: 0.86em; font-weight: 400; }

/* Stars: SVG, filled by a clip (no inline styles under the CSP) */
.rv-stars { display: inline-block; vertical-align: middle; }
.rv-stars-off path { fill: var(--rv-hair); }
.rv-stars-on path { fill: var(--rv-star); }
.rv-stars-lg { width: 160px; height: 32px; }
.rv-stars-md { width: 110px; height: 22px; }
.rv-stars-sm { width: 88px; height: 18px; }

.rv-badge { display: inline-flex; align-items: baseline; gap: 1px; background: var(--rv-ink); color: var(--rv-card); border-radius: var(--rv-radius); padding: 4px 8px; font-family: var(--rv-ui); line-height: 1; }
.rv-badge strong { font-size: 18px; font-weight: 700; }
.rv-badge span { font-size: 12px; opacity: 0.8; }

/* Layout: article column and an "at a glance" panel */
.rv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.rv-main { min-width: 0; max-width: var(--measure, 70ch); }
.rv-aside { position: sticky; top: 20px; }
.rv-glance { border: 1px solid var(--rv-hair); border-top: 4px solid var(--rv-heavy); background: var(--rv-card); border-radius: var(--rv-radius); padding: 18px; font-family: var(--rv-ui); font-size: 14.5px; }
.rv-glance p { margin: 10px 0 0; }
.rv-glance-title { font: 700 18px/1.2 var(--rv-display); margin: 0 !important; color: var(--rv-ink); }
.rv-glance-score { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.rv-mini { list-style: none; margin: 14px 0 0; padding: 0; }
.rv-mini li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 14px; gap: 8px; align-items: center; padding: 4px 0; color: var(--rv-ink-2); font-size: 13.5px; }
.rv-mini b { text-align: right; color: var(--rv-ink); }
.rv-glance-price span { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rv-muted); font-weight: 600; }
.rv-out, .rv-more { font-weight: 600; color: var(--rv-accent-ink); }

.rv-summary { margin-bottom: 10px; }
.rv-section { margin-top: 40px; }
.rv-section > h2, .rv-proscons h2 { font-family: var(--rv-display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; margin: 0 0 12px; padding-top: 12px; border-top: 3px solid var(--rv-heavy); }
.rv-note { font: 14.5px/1.5 var(--rv-ui); color: var(--rv-muted); margin: 0 0 16px; }

/* Score breakdown */
.rv-criteria { list-style: none; margin: 0; padding: 0; }
.rv-criteria li { padding: 16px 0; border-bottom: 1px solid var(--rv-hair); }
.rv-crit-head { display: flex; align-items: baseline; gap: 12px; font-family: var(--rv-ui); }
.rv-crit-head h3 { font: 600 17px/1.3 var(--rv-ui); margin: 0; flex: 1; color: var(--rv-ink); }
.rv-weight { font-size: 13px; color: var(--rv-muted); white-space: nowrap; }
.rv-crit-score { font: 700 20px/1 var(--rv-ui); color: var(--rv-ink); white-space: nowrap; }
.rv-crit-score span { font-size: 13px; color: var(--rv-muted); font-weight: 500; }
.rv-bar { display: block; height: 8px; background: var(--rv-hair); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.rv-bar.sm { height: 6px; margin: 0; }
.rv-fill { display: block; height: 100%; background: var(--rv-accent); border-radius: 99px; }
.rv-w0 { width: 0; } .rv-w1 { width: 20%; } .rv-w2 { width: 40%; } .rv-w3 { width: 60%; } .rv-w4 { width: 80%; } .rv-w5 { width: 100%; }
.rv-criteria p { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--rv-ink-2); }
.rv-ref { font: 600 12.5px var(--rv-ui); color: var(--rv-accent-ink); text-decoration: none; vertical-align: 1px; }

/* Pros and cons */
.rv-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.rv-proscons ul, .rv-features ul, .rv-tested ul { margin: 0; padding: 0; list-style: none; }
.rv-proscons li, .rv-features li, .rv-tested li { position: relative; padding-left: 26px; margin: 0 0 10px; line-height: 1.5; }
.rv-pros li::before, .rv-cons li::before { position: absolute; left: 0; top: 0; font: 700 17px/1.45 var(--rv-ui); }
.rv-pros li::before { content: "+"; color: var(--rv-accent-ink); }
.rv-cons li::before { content: "−"; color: var(--rv-muted); }
.rv-features li::before, .rv-tested li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; background: var(--rv-accent); border-radius: 2px; }
.rv-tested { background: var(--rv-box); padding: 2px 20px 12px; border-radius: var(--rv-radius); }
.rv-tested > h2 { border-top: 0; }

/* Tables */
.rv-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rv-hair); border-radius: var(--rv-radius); background: var(--rv-card); }
.rv-table { width: 100%; border-collapse: collapse; font: 15px/1.45 var(--rv-ui); }
.rv-table th, .rv-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rv-hair); vertical-align: top; }
.rv-table thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--rv-muted); background: var(--rv-box); white-space: nowrap; }
.rv-table tbody tr:last-child th, .rv-table tbody tr:last-child td { border-bottom: 0; }
.rv-table tbody th { font-weight: 600; color: var(--rv-ink); }
.rv-price { font-weight: 700; white-space: nowrap; color: var(--rv-ink); }
.rv-num { text-align: center !important; }
.rv-compare td, .rv-compare th { white-space: nowrap; }
.rv-compare thead th { white-space: normal; min-width: 70px; }

.rv-faq { max-width: var(--measure, 70ch); }
.rv-sources li { overflow-wrap: anywhere; }
.rv-updated { font: 14px/1.5 var(--rv-ui); color: var(--rv-muted); margin-top: 26px; }

/* Cards (index, alternatives) */
.rv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rv-card { background: var(--rv-card); border: 1px solid var(--rv-hair); border-radius: var(--rv-radius); padding: 18px; display: flex; flex-direction: column; }
.rv-card-top { display: flex; align-items: center; gap: 10px; }
.rv-card-cat { font: 600 12.5px/1.3 var(--rv-ui); text-transform: uppercase; letter-spacing: 0.06em; color: var(--rv-accent-ink); margin: 14px 0 4px; }
.rv-card .headline { font-family: var(--rv-display); font-size: 22px; line-height: 1.2; margin: 0; }
.rv-card-verdict { margin: 8px 0 0; color: var(--rv-ink-2); font-size: 16px; line-height: 1.5; flex: 1; }
.rv-card-meta { font: 13px/1.4 var(--rv-ui); color: var(--rv-muted); display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0 0; }
.rv-rank { font: 700 15px/1 var(--rv-ui); color: var(--rv-muted); }

/* Index toolbar */
.rv-index-head { margin-bottom: 18px; }
.rv-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin: 0 0 22px; font-family: var(--rv-ui); }
.rv-filters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rv-filters a { display: inline-block; padding: 6px 12px; border: 1px solid var(--rv-hair); border-radius: 999px; text-decoration: none; font-size: 14.5px; background: var(--rv-card); color: var(--rv-ink); }
.rv-filters a span { color: var(--rv-muted); margin-left: 4px; }
.rv-filters a[aria-current='page'] { background: var(--rv-ink); border-color: var(--rv-ink); color: var(--rv-card); }
.rv-filters a[aria-current='page'] span { color: inherit; opacity: 0.8; }
.rv-sort { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--rv-muted); }
.rv-sort a { color: var(--rv-ink-2); }
.rv-sort a[aria-current='page'] { color: var(--rv-ink); font-weight: 700; text-decoration: none; }
.rv-roundups ul { margin: 0; padding-left: 20px; font-family: var(--rv-ui); }
.rv-roundups li { margin: 6px 0; }

/* Ranking */
.rv-best-note { max-width: 60em; }
.rv-ranked { list-style: none; margin: 34px 0 0; padding: 0; }
.rv-ranked-item { border-top: 3px solid var(--rv-heavy); padding: 18px 0 26px; }
.rv-ranked-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.rv-ranked-head .headline { font-family: var(--rv-display); font-size: clamp(24px, 2.6vw, 32px); margin: 0; flex: 1; min-width: 0; }
.rv-ranked-score { display: flex; align-items: center; gap: 10px; }
.rv-ranked .rv-oneline { margin: 12px 0 14px; font-size: 20px; }
.rv-ranked .rv-facts { max-width: 920px; }

/* Method */
.rv-method-body { max-width: var(--measure, 70ch); }
.rv-rubric { max-width: 920px; }

@media (max-width: 1000px) {
  .rv-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rv-aside { position: static; margin-top: 36px; order: 2; }
  .rv-main { max-width: none; }
  .rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rv-verdict { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px 18px; margin-left: calc(-1 * var(--gutter) / 2); margin-right: calc(-1 * var(--gutter) / 2); }
  .rv-verdict-score { display: flex; align-items: center; justify-content: flex-start; gap: 16px; text-align: left; }
  .rv-big { flex-direction: row; align-items: baseline; gap: 8px; margin: 0; }
  .rv-big strong { font-size: 56px; }
  .rv-stars-lg { width: 120px; height: 24px; }
  .rv-facts { grid-template-columns: minmax(0, 1fr); }
  .rv-proscons { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rv-grid { grid-template-columns: minmax(0, 1fr); }
  .rv-crit-head { flex-wrap: wrap; }
  .rv-crit-head h3 { flex-basis: 100%; }
  .rv-table { font-size: 14px; }
  .rv-tested { padding: 2px 14px 10px; }
}
