/* ============================================================
   Reviews: /reviews/ (page-reviews.php) and /reviews/<name>/
   (page-review.php). Loaded after main.css by both templates.

   The article itself is main.css's blog layout (.entry, .post-grid,
   .toc). This file only adds what a review has and a blog post does
   not: the verdict box, comparison tables, the coupon box, and the
   hub's cards. Selectors inside .entry carry two classes, so they win
   over main.css's ".entry p { color }" without !important.
   ============================================================ */

/* ---------------- verdict box ---------------- */
.entry .rv-verdict {
  position: relative;
  margin: 0 0 2.2rem;
  padding: 1.5rem 1.6rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.entry .rv-verdict::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 5px;
  background: var(--grad);
}
.rv-verdict .rv-eyebrow {
  margin: 0 0 .35rem;
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet);
}
.rv-verdict .rv-verdict-h {
  margin: 0 0 .7rem;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem); font-weight: 800; line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
}
.rv-verdict p { margin: 0; }
.rv-verdict .rv-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin: 1.15rem 0 0;
}
@media (min-width: 640px) {
  .rv-verdict .rv-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rv-facts > div {
  padding: .6rem .75rem;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
}
.rv-facts dt {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.rv-facts dd {
  margin: .15rem 0 0;
  font-size: .95rem; font-weight: 700; line-height: 1.3;
  color: var(--ink);
}
.rv-verdict .rv-disclosure {
  margin: 1rem 0 0;
  font-size: .84rem; line-height: 1.5;
  color: var(--muted);
}

/* ---------------- comparison tables ---------------- */
.entry .rv-table {
  margin-top: 1.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
}
.rv-table table { font-size: .95rem; }
.rv-table thead th {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
}
.rv-table tbody th { font-weight: 650; color: var(--ink); }
.rv-table td { color: var(--ink-2); }
.rv-table tr:last-child th, .rv-table tr:last-child td { border-bottom: 0; }
.rv-table .rv-us {
  background: var(--violet-soft);
  color: var(--ink);
  font-weight: 700;
}
.rv-table thead .rv-us { color: var(--violet); }
@media (max-width: 600px) {
  /* Up to four columns fit a phone if they are allowed to wrap; the
     TikFuel column must never end up behind a sideways scroll. After the
     base rules, or they win. */
  .rv-table table { font-size: .86rem; }
  .rv-table th, .rv-table td { padding: .6rem .45rem; }
  .rv-table thead th { font-size: .62rem; letter-spacing: .02em; }
}
.entry .rv-table-note {
  margin-top: .55rem;
  font-size: .82rem;
  color: var(--muted);
}

/* ---------------- coupon box ---------------- */
.entry .rv-cta {
  margin: 2.4rem 0;
  padding: 1.8rem 1.7rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #1E1233 0%, #6d1b8f 55%, #E530B5 125%);
  color: #fff;
  box-shadow: 0 22px 55px -22px rgba(155, 35, 212, .75);
}
.rv-cta p { margin: 0; }
.rv-cta .rv-cta-eyebrow {
  margin: 0 0 .45rem;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: #FFD24A;
}
.rv-cta .rv-cta-h {
  margin: 0 0 1.05rem;
  font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 800; line-height: 1.2;
  letter-spacing: -.02em;
  color: #fff;
}
.rv-cta .rv-cta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin: 0 0 1.1rem;
}
.rv-cta .rv-code {
  display: inline-flex; align-items: center;
  padding: .5rem 1.1rem;
  font-family: var(--mono); font-size: 1.3rem; font-weight: 800; letter-spacing: .18em;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 2px dashed rgba(255, 255, 255, .55);
  border-radius: 12px;
}
.rv-cta .rv-copy {
  cursor: pointer;
  padding: .6rem 1.2rem;
  font: inherit; font-size: .9rem; font-weight: 700;
  color: #1E1233;
  background: #fff;
  border: 0; border-radius: 999px;
  transition: background .15s;
}
.rv-cta .rv-copy:hover { background: #FFD24A; }
.rv-cta .rv-btn {
  display: inline-block;
  padding: .95rem 1.9rem;
  font-size: 1.05rem; font-weight: 800;
  color: #8b1a9c;
  background: #fff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 22px -6px rgba(0, 0, 0, .45);
  transition: background .15s, color .15s, transform .15s;
}
.rv-cta .rv-btn:hover { background: #FFD24A; color: #1E1233; transform: translateY(-2px); }
.rv-cta .rv-cta-note {
  margin-top: .65rem;
  font-size: .85rem; font-weight: 600;
  color: rgba(255, 255, 255, .95);
}
.rv-cta .rv-cta-fine {
  margin-top: 1rem;
  font-size: .8rem; line-height: 1.5;
  color: rgba(255, 255, 255, .78);
}

/* ---------------- hub ---------------- */
.rv-hub-lede { margin-top: .9rem; }
.rv-hub-lede p { margin: 0; font-size: 1.08rem; color: var(--ink-2); }
.rv-hub-lede p + p { margin-top: .7rem; }
.rv-hub-section { margin: 0 0 3.2rem; }
.rv-hub-h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 800; }
.rv-hub-sub { margin: .35rem 0 1.2rem; color: var(--muted); }

.rv-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 0; padding: 0; list-style: none;
}
.rv-card a {
  position: relative;
  display: flex; flex-direction: column; gap: .7rem;
  height: 100%;
  padding: 1.35rem 1.4rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.rv-card a::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad);
}
.rv-card a:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--hairline-2); }
.rv-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.rv-card-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.rv-card-date { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.rv-card-verdict {
  align-self: flex-start;
  padding: .3rem .7rem;
  font-size: .8rem; font-weight: 700; line-height: 1.3;
  color: var(--violet);
  background: var(--violet-soft);
  border-radius: 999px;
}
.rv-card-text { font-size: .94rem; line-height: 1.5; color: var(--ink-2); }
.rv-card-more { margin-top: auto; font-size: .9rem; font-weight: 700; color: var(--violet); }
.rv-card a:hover .rv-card-more { color: var(--magenta); }

/* "More reviews" under an article sits in .related, which adds the top margin. */
.related .rv-hub-grid { margin-top: 0; }
