/* ============================================================
   PSE Reviews — front-end styles
   Adapted from mocks/pes-reviews-page-v5_1.html onto the site's
   design tokens (Divi global colors). One token block; typography
   inherits the theme (no font enqueue). All selectors .pse-rv-.
   ============================================================ */

.pse-rv-root {
  --pse-blue:      #00358d;
  --pse-blue-soft: #e9eef8;
  --pse-yellow:    #ffcc00;
  --pse-dark:      #333232;
  --pse-gray-bg:   #f2f2f2;
  --pse-text:      #222222;
  --pse-body:      #333232;
  --pse-muted:     #707070;
  --pse-border:    #e2e2e2;
  --pse-shadow:    0 2px 16px rgba(0, 0, 0, 0.07);
  --pse-r:         4px;
  --pse-r-card:    12px;

  color: var(--pse-body);
  line-height: 1.7;
}

.pse-rv-root *,
.pse-rv-root *::before,
.pse-rv-root *::after { box-sizing: border-box; }

.pse-rv-root blockquote,
.pse-rv-root fieldset,
.pse-rv-root h3 { margin: 0; padding: 0; border: 0; }

.pse-rv-root cite { font-style: normal; }

/* ── Stars ── */
.pse-rv-stars {
  color: var(--pse-yellow);
  letter-spacing: 2px;
  font-size: 16px;
  white-space: nowrap;
}
.pse-rv-stars-sm { letter-spacing: 1px; font-size: 13px; line-height: 1; }
.pse-rv-stars-off { color: var(--pse-border); }

/* ── Avatars (initials — no reviewer photos by design) ── */
.pse-rv-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pse-blue-soft);
  color: var(--pse-blue);
  font-weight: 900;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pse-rv-avatar-sm { width: 34px; height: 34px; font-size: 12px; }

/* ── Source icon chip ── */
.pse-rv-chip {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pse-rv-chip svg { width: 22px; height: 22px; display: block; }
.pse-rv-chip-bordered { border: 1.5px solid var(--pse-border); }

/* ============================================================
   Platform stat strip
   ============================================================ */
.pse-rv-strip { padding: 8px 0; }
.pse-rv-strip-inner {
  display: grid;
  grid-template-columns: repeat(var(--pse-rv-strip-cols, 3), 1fr);
  gap: 0;
}
.pse-rv-stat {
  text-align: center;
  padding: 24px 20px;
  border-right: 1px solid var(--pse-border);
}
.pse-rv-stat:last-child { border-right: none; }
.pse-rv-stat-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--pse-blue);
  line-height: 1;
  display: block;
}
.pse-rv-stat-stars { margin: 6px 0 4px;
  min-height: 27.2px; /* = the stars' own line box, so a platform without a star
                         rating (Facebook) keeps the same vertical rhythm */
}
.pse-rv-stat-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--pse-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pse-rv-stat-sub {
  font-size: 12px;
  color: var(--pse-muted);
  font-weight: 500;
  margin-top: 3px;
}

/* ============================================================
   Velocity metrics
   ============================================================ */
.pse-rv-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pse-rv-metric {
  background: var(--pse-blue-soft);
  border-radius: 8px;
  padding: 18px 16px;
  text-align: center;
}
.pse-rv-metric-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--pse-blue);
  line-height: 1;
  display: block;
}
.pse-rv-metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pse-muted);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* ============================================================
   Filter bar
   ============================================================ */
.pse-rv-filters {
  background: #ffffff;
  border: 1px solid var(--pse-border);
  border-radius: var(--pse-r-card);
  box-shadow: var(--pse-shadow);
  padding: 20px 24px 14px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}
.pse-rv-filter-group { min-width: 0; }
.pse-rv-filter-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pse-muted);
  margin-bottom: 8px;
  padding: 0;
}
.pse-rv-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pse-rv-pill {
  appearance: none;
  background: var(--pse-gray-bg);
  border: 1.5px solid transparent;
  border-radius: 999px;
  color: var(--pse-body);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pse-rv-pill:hover { border-color: var(--pse-blue); color: var(--pse-blue); }
.pse-rv-pill[aria-pressed="true"] {
  background: var(--pse-blue);
  border-color: var(--pse-blue);
  color: #ffffff;
}
.pse-rv-pill:focus-visible,
.pse-rv-clear:focus-visible,
.pse-rv-expand:focus-visible {
  outline: 2px solid var(--pse-blue);
  outline-offset: 2px;
}
.pse-rv-filter-foot {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--pse-border);
  min-height: 34px;
}
.pse-rv-count { font-size: 13px; color: var(--pse-muted); font-weight: 600; }
.pse-rv-clear {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  color: var(--pse-blue);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ============================================================
   Platform sections
   ============================================================ */
.pse-rv-platform { padding: 32px 28px 36px; margin-bottom: 28px; border-radius: var(--pse-r-card); }
.pse-rv-bg-gray { background: var(--pse-gray-bg); }
.pse-rv-bg-white { background: #ffffff; border: 1px solid var(--pse-border); }

.pse-rv-platform-hdr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--pse-border);
}
.pse-rv-platform-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--pse-text);
  line-height: 1.3;
}
.pse-rv-platform-count { font-weight: 700; color: var(--pse-muted); }
.pse-rv-platform-meta {
  font-size: 13px;
  color: var(--pse-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Featured review */
.pse-rv-featured {
  background: #ffffff;
  border-radius: var(--pse-r-card);
  border-left: 4px solid var(--pse-blue);
  box-shadow: var(--pse-shadow);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.pse-rv-featured-quote {
  font-size: 16px;
  font-weight: 500;
  color: var(--pse-body);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 18px;
}
.pse-rv-featured-quote p { margin: 0 0 10px; }
.pse-rv-featured-quote p:last-child { margin-bottom: 0; }
.pse-rv-featured-quote p:first-child::before { content: '\201C'; }
.pse-rv-featured-quote p:last-child::after { content: '\201D'; }

.pse-rv-reviewer { display: flex; align-items: center; gap: 12px; }
.pse-rv-reviewer-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--pse-text);
}
.pse-rv-reviewer-meta {
  font-size: 12px;
  color: var(--pse-muted);
  margin-top: 2px;
  font-weight: 500;
}

/* Card grid */
.pse-rv-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.pse-rv-card {
  background: #ffffff;
  border-radius: var(--pse-r-card);
  box-shadow: var(--pse-shadow);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pse-rv-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pse-rv-card-id { flex: 1; min-width: 0; }
.pse-rv-card-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--pse-text);
  line-height: 1.3;
}
.pse-rv-card-date {
  font-size: 11px;
  color: var(--pse-muted);
  font-weight: 600;
  white-space: nowrap;
}
.pse-rv-card-text {
  font-size: 13px;
  color: var(--pse-body);
  line-height: 1.65;
  font-weight: 400;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pse-rv-card-text p { margin: 0 0 8px; }
.pse-rv-card-text p:last-child { margin-bottom: 0; }
.pse-rv-card.pse-rv-expanded .pse-rv-card-text {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.pse-rv-card-meta {
  font-size: 11px;
  color: var(--pse-muted);
  font-weight: 600;
}
.pse-rv-read-more {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  color: var(--pse-blue);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  align-self: flex-start;
}
.pse-rv-read-more:hover { text-decoration: underline; }

/* Read-all footer row */
.pse-rv-all-row {
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--pse-border);
}
.pse-rv-all-row a {
  color: var(--pse-blue);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.pse-rv-all-row a:hover { text-decoration: underline; }

/* Chevron (client 2026-09-22: chevrons instead of "→") on the text links.
   Drawn with borders so it follows the link colour and needs no icon font. */
.pse-rv-read-more::after,
.pse-rv-all-row a::after {
  content: '';
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12em) rotate(-45deg);
  transition: transform 0.15s ease;
}
.pse-rv-read-more:hover::after,
.pse-rv-all-row a:hover::after { transform: translateY(-0.12em) translateX(2px) rotate(-45deg); }
.pse-rv-expand[aria-expanded="true"]::after { transform: translateY(0.05em) rotate(-135deg); }

/* Empty state */
.pse-rv-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--pse-gray-bg);
  border-radius: var(--pse-r-card);
}
.pse-rv-empty p {
  font-size: 15px;
  color: var(--pse-muted);
  font-weight: 600;
  margin: 0 0 10px;
}
.pse-rv-none { color: var(--pse-muted); text-align: center; }

/* JS visibility hooks */
.pse-rv-hidden { display: none !important; }

/* "View more" cap — cards past each platform's limit. Collapsed by JS only, so
   with JS off (and for crawlers) every review stays visible. */
/* "Recommends" chip — platforms that record a yes/no recommendation rather than
   a star rating (Facebook). Sits where the stars would be. */
.pse-rv-recommends {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #0a7d3f;
  line-height: 1.2;
}
.pse-rv-recommends::before {
  content: '';
  width: 0.42em;
  height: 0.72em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12em) rotate(45deg);
}

.pse-rv-capped { display: none !important; }
.pse-rv-more-row {
  display: flex;
  justify-content: center;
  /* Bottom padding matters: the "Read all …" footer draws a rule along its top
     edge, which lands flush against the button without it. */
  padding: 24px 0 30px;
}
/* An author `display` beats the UA stylesheet's [hidden] rule, so restate it —
   otherwise the button shows with JS off, where nothing is collapsed. */
.pse-rv-more-row[hidden] { display: none; }
.pse-rv-more {
  appearance: none;
  background: #ffffff;
  border: 1px solid var(--pse-border);
  border-radius: 100px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--pse-blue);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.pse-rv-more:hover { background: var(--pse-blue-soft); border-color: var(--pse-blue); }
.pse-rv-more:focus-visible { outline: 2px solid var(--pse-blue); outline-offset: 2px; }

/* ============================================================
   Branch cards
   ============================================================ */
.pse-rv-branch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pse-rv-branch-card {
  background: #ffffff;
  border-radius: var(--pse-r-card);
  box-shadow: var(--pse-shadow);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pse-rv-branch-card:hover {
  box-shadow: 0 8px 28px rgba(0, 53, 141, 0.13);
  transform: translateY(-3px);
}
.pse-rv-branch-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--pse-text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.pse-rv-branch-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.pse-rv-branch-count {
  font-size: 12px;
  color: var(--pse-muted);
  font-weight: 600;
  line-height: 1.3;
}
.pse-rv-branch-quote {
  font-size: 13px;
  color: var(--pse-body);
  line-height: 1.65;
  font-style: italic;
  font-weight: 400;
  border-top: 1px solid var(--pse-border);
  padding-top: 14px;
  margin-bottom: 20px;
  flex: 1;
}
.pse-rv-branch-quote::before { content: '\201C'; }
.pse-rv-branch-quote::after { content: '\201D'; }
.pse-rv-branch-btn {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--pse-r);
  border: 2px solid var(--pse-blue);
  color: var(--pse-blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  margin-top: auto;
}
.pse-rv-branch-card:hover .pse-rv-branch-btn,
.pse-rv-branch-btn:hover {
  background: var(--pse-blue);
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   Page-assembly helpers (used by the Divi page's code modules:
   eyebrows, velocity two-column, checklist, CTA band)
   ============================================================ */
.pse-rv-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pse-blue);
  margin-bottom: 10px;
}
.pse-rv-eyebrow-yellow { color: var(--pse-yellow); }

.pse-rv-intro { text-align: center; }
.pse-rv-intro h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--pse-text);
  margin: 0 0 10px;
  line-height: 1.2;
}
.pse-rv-intro p {
  font-size: 15px;
  color: var(--pse-muted);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 500;
  line-height: 1.7;
}

.pse-rv-velocity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.pse-rv-velocity h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--pse-text);
  margin: 0 0 10px;
  line-height: 1.3;
}
.pse-rv-velocity p {
  font-size: 15px;
  color: var(--pse-muted);
  line-height: 1.7;
  font-weight: 400;
  margin: 0;
}
.pse-rv-velocity .pse-rv-metrics { margin-top: 24px; }

.pse-rv-check-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.pse-rv-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pse-border);
  font-size: 15px;
  font-weight: 500;
  color: var(--pse-body);
  line-height: 1.5;
}
.pse-rv-check-list li:last-child { border-bottom: none; }
.pse-rv-check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pse-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.pse-rv-band {
  background: var(--pse-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 32px;
}
.pse-rv-band-text {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}
.pse-rv-band-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 100px;
  background: var(--pse-yellow);
  color: var(--pse-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.pse-rv-band-btn:hover { background: #e6b800; color: var(--pse-dark); text-decoration: none; }
.pse-rv-band-btn-ghost { background: #ffffff; color: var(--pse-dark); }
.pse-rv-band-btn-ghost:hover { background: var(--pse-gray-bg); }

.pse-rv-hero {
  text-align: center;
  padding: 88px 32px 80px;
}
.pse-rv-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 14px;
  padding: 0;
}
.pse-rv-hero p {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.pse-rv-hero-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* FAQ card (mockup pattern, plugin-rendered accordion) */
.pse-rv-faq {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.pse-rv-faq-hdr {
  padding: 36px 36px 24px;
  text-align: center;
  border-bottom: 1px solid var(--pse-border);
}
.pse-rv-faq-hdr h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--pse-text);
  margin: 0;
  padding: 0;
}
.pse-rv-faq-item { border-bottom: 1px solid var(--pse-border); }
.pse-rv-faq-item:last-child { border-bottom: none; }
.pse-rv-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--pse-text);
  line-height: 1.4;
}
.pse-rv-faq-q:hover { background: rgba(0, 0, 0, 0.015); }
.pse-rv-faq-plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #9ca3af;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.22s, background 0.15s, border-color 0.15s, color 0.15s;
}
.pse-rv-faq-item.pse-rv-open .pse-rv-faq-plus {
  transform: rotate(45deg);
  background: var(--pse-blue);
  border-color: var(--pse-blue);
  color: #ffffff;
}
.pse-rv-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.pse-rv-faq-inner {
  padding: 4px 36px 24px;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.75;
  font-weight: 400;
}
.pse-rv-faq-inner p { margin: 0 0 10px; }
.pse-rv-faq-inner ul { margin: 10px 0 0 18px; padding: 0; }
.pse-rv-faq-inner ul li { margin-bottom: 5px; }
.pse-rv-faq-inner a { color: var(--pse-blue); font-weight: 700; }

/* Bottom CTA fallback (blue gradient + estimator phone image) */
.pse-rv-bottom-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 56px;
}
.pse-rv-bottom-cta h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 14px;
  padding: 0;
}
.pse-rv-bottom-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 480px;
}
.pse-rv-bottom-cta img {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .pse-rv-velocity { grid-template-columns: 1fr; gap: 40px; }
  .pse-rv-bottom-cta { grid-template-columns: 1fr; }
  .pse-rv-bottom-cta img { display: none; }
}
@media (max-width: 640px) {
  .pse-rv-band { flex-direction: column; text-align: center; }
  .pse-rv-faq-q, .pse-rv-faq-inner, .pse-rv-faq-hdr { padding-left: 20px; padding-right: 20px; }
}

/* ============================================================
   Motion & responsive
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .pse-rv-branch-card,
  .pse-rv-branch-btn,
  .pse-rv-pill { transition: none; }
  .pse-rv-branch-card:hover { transform: none; }
}

@media (max-width: 900px) {
  .pse-rv-card-grid { grid-template-columns: 1fr; }
  .pse-rv-branch-grid { grid-template-columns: 1fr 1fr; }
  .pse-rv-metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .pse-rv-strip-inner { grid-template-columns: 1fr; }
  .pse-rv-stat {
    border-right: none;
    border-bottom: 1px solid var(--pse-border);
  }
  .pse-rv-stat:last-child { border-bottom: none; }
  .pse-rv-branch-grid { grid-template-columns: 1fr; }
  .pse-rv-platform { padding: 24px 18px 28px; }
  .pse-rv-featured { padding: 22px 20px; }
  .pse-rv-filters { padding: 16px 18px 12px; gap: 8px 20px; }
}
