/* ============================================================================
   V2 TEMPLATE — Editorial / Funnel-style narrow column layout
   Inspired by MyHealthyShape design.
   Retains brand fonts (helvetica-lt-pro), green/red bar styling,
   and existing pros/cons icons from base.css + product-card.css.
   ============================================================================ */

:root {
  --v2-text: #232a32;
  --v2-text-muted: #555;
  --v2-headline: #000441;
  --v2-accent: #0076ff;
  --v2-good: #14c649;
  --v2-bad: #d0021b;
  --v2-cta: #f1c232;
  --v2-cta-hover: #e8b520;
  --v2-page-bg: #fff;
  --v2-bar-bg: #f0f0f0;
  --v2-divider: #e3e3e3;
  --v2-card-bg: #fff;
  --v2-content-w: 720px;
}

/* Reset body for v2 — wider viewport, tighter typography */
body[data-template="v2"] {
  background: var(--v2-page-bg);
  color: var(--v2-text);
  font-family: helvetica-lt-pro, Helvetica, Arial, sans-serif;
}

body[data-template="v2"].no-header .container { padding-top: 0; }

/* ----------------------------------- TOP BAR ----------------------------------- */

.v2-topbar {
  border-bottom: 1px solid #dfdfdf;
  background: rgba(1, 151, 178, 0.02);
  padding: 14px 16px;
}

.v2-topbar-inner {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.v2-topbar-logo {
  height: 40px;
  width: auto;
  flex: 0 0 auto;
}

.v2-topbar-link {
  font-size: 12px;
  color: #303030;
  text-decoration: underline;
  font-weight: 400;
}

/* ----------------------------------- ARTICLE COLUMN ----------------------------------- */

.v2-page { width: 100%; }

.v2-article {
  max-width: var(--v2-content-w);
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.v2-h1 {
  color: #000;
  font-family: helvetica-lt-pro, Helvetica, Arial, sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  text-align: left;
}

.v2-h2 {
  color: #000;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 18px;
}

.v2-h3 {
  color: #000;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin: 24px 0 12px;
}

.v2-prose,
.v2-dek {
  font-size: 18px;
  line-height: 1.55;
  color: #1a1a1a;
}

.v2-dek {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 24px;
  color: #1a1a1a;
}

.v2-prose p {
  margin: 0 0 14px;
}

.v2-prose strong { color: #000; }

/* ----------------------------------- HERO ----------------------------------- */

.v2-hero {
  margin-bottom: 32px;
}

.v2-cta-hero {
  margin: 8px auto 24px;
  display: block;
  max-width: 360px;
}

.v2-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--v2-divider);
  border-bottom: 1px solid var(--v2-divider);
  margin: 8px 0 28px;
}

.v2-byline-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 56px;
}

.v2-byline-text { flex: 1; }

.v2-byline-line1 {
  font-size: 16px;
  line-height: 1.3;
  color: #1a1a1a;
}

.v2-byline-line1 strong { font-weight: 700; }

.v2-byline-line2 {
  font-size: 13px;
  color: var(--v2-text-muted);
  margin-top: 2px;
}

.v2-hero-figure {
  margin: 0 0 24px;
}

.v2-hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  aspect-ratio: 820/500;
  object-fit: cover;
}

/* ----------------------------------- METHODOLOGY ----------------------------------- */

.v2-section {
  margin: 36px 0;
}

.v2-criteria-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.v2-criteria-item {
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 14px;
  color: #1a1a1a;
}

.v2-criteria-name {
  color: #000;
  font-weight: 700;
}

.v2-results-intro {
  font-weight: 700;
  font-size: 18px;
  color: #000;
  margin-top: 18px;
}

.v2-rankings-heading {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--v2-divider);
}

.v2-rankings-heading .v2-h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

/* ----------------------------------- PRODUCT CARD ----------------------------------- */

.v2-product {
  margin: 40px 0 60px;
  padding-top: 32px;
  border-top: 1px solid var(--v2-divider);
}

.v2-product-winner {
  border-top: none;
  padding-top: 0;
  margin-top: 24px;
}

.v2-product-title {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  line-height: 1.25;
  margin: 0 0 18px;
}

.v2-product-rank {
  color: var(--v2-accent);
  margin-right: 4px;
}

.v2-product-title a {
  color: #000;
  text-decoration: none;
}

.v2-product-subtitle {
  display: block;
  font-size: 18px;
  font-weight: 400;
  color: #444;
  margin-top: 4px;
  font-style: italic;
}

.v2-product-hero {
  display: flex;
  justify-content: center;
  margin: 0 0 22px;
  background: #fafafa;
  border-radius: 12px;
  padding: 18px;
  position: relative;
}

.v2-product-image-link { display: block; }

.v2-product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 110px;
  height: 110px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

@media (max-width: 640px) {
  .v2-product-badge {
    width: 80px;
    height: 80px;
    top: 6px;
    right: 6px;
  }
}

.v2-product-image {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Side-by-side Grade + Rating boxes */
.v2-score-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 24px;
}

.v2-score-card {
  background: var(--v2-card-bg);
  border: 1px solid var(--v2-divider);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.v2-score-label {
  font-size: 14px;
  color: var(--v2-text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.v2-score-grade {
  color: var(--v2-accent);
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}

.v2-score-rating {
  color: #000;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.v2-score-stars {
  max-width: 130px;
  height: auto;
  margin: 0 auto;
}

.v2-product-description {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.v2-cta-pretext {
  font-size: 14px;
  color: var(--v2-text-muted);
  text-align: center;
  margin: 18px 0 6px;
  font-style: italic;
}

/* ----------------------------------- CTA BUTTON (gold) ----------------------------------- */

.v2-cta {
  display: block;
  width: 100%;
  max-width: 100%;
  background: var(--v2-cta);
  color: #000;
  font-family: helvetica-lt-pro, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  padding: 22px 24px;
  border-radius: 6px;
  margin: 18px 0 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.v2-cta:hover { background: var(--v2-cta-hover); }
.v2-cta:active { transform: translateY(1px); }

.v2-cta-product { margin-top: 24px; }

.v2-cta-offer { margin-top: 18px; }

/* ----------------------------------- WHY #1 BULLETS ----------------------------------- */

.v2-why-one {
  background: #fff8e1;
  border-left: 4px solid var(--v2-cta);
  border-radius: 6px;
  padding: 18px 20px;
  margin: 24px 0;
}

.v2-why-one .v2-h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 19px;
}

.v2-why-one-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.v2-why-one-list li {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.v2-why-one-list li:last-child { margin-bottom: 0; }

.v2-why-one-list strong { color: #000; }

/* ----------------------------------- PERFORMANCE BARS (preserves brand styling) ----------------------------------- */

.v2-performance-bars {
  margin: 28px 0;
  padding: 20px;
  background: #fafafa;
  border-radius: 10px;
}

/* The .performance-bars / .performance-item / .bar / .performance-progress / .performance-percent
   classes reuse styles from product-card.css (brand bar look — gray bg, green fill, white % text).
   We only tweak spacing for the v2 column width. */
body[data-template="v2"] .performance-bars { gap: 18px; margin-top: 0; }
body[data-template="v2"] .performance-item { gap: 6px; }
body[data-template="v2"] .performance-name { font-size: 15px; line-height: 1.3; }
body[data-template="v2"] .bar { height: 26px; }
body[data-template="v2"] .performance-progress { height: 26px; }
body[data-template="v2"] .performance-percent { line-height: 26px; }

/* ----------------------------------- PROS / CONS ----------------------------------- */

.v2-proscons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 24px 0;
}

.v2-proscons-label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.v2-pros-label { color: var(--v2-good); }
.v2-cons-label { color: var(--v2-bad); }

.v2-proscons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.v2-proscons-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.45;
}

.v2-proscons-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ----------------------------------- VERDICT / EXPERIENCE / BOTTOM LINE ----------------------------------- */

.v2-experience,
.v2-bottom-line {
  font-size: 17px;
  line-height: 1.55;
  margin: 18px 0;
  color: #1a1a1a;
}

.v2-experience strong,
.v2-bottom-line strong,
.v2-verdict strong {
  color: #000;
}

.v2-verdict {
  font-size: 17px;
  line-height: 1.55;
  margin: 18px 0;
  color: #1a1a1a;
  padding: 14px 16px;
  background: #fafafa;
  border-radius: 6px;
}

/* ----------------------------------- WINNER SPOTLIGHT ----------------------------------- */

.v2-spotlight {
  background: #f7faff;
  border-radius: 10px;
  padding: 28px 24px;
}

.v2-spotlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.v2-spotlight-list li {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--v2-accent);
}

/* ----------------------------------- BUYING GUIDE ----------------------------------- */

.v2-buying-guide .v2-look-for-heading,
.v2-buying-guide .v2-red-flags-heading {
  font-size: 20px;
  margin-top: 24px;
}

.v2-buying-guide .v2-look-for-heading { color: var(--v2-good); }
.v2-buying-guide .v2-red-flags-heading { color: var(--v2-bad); }

.v2-guide-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.v2-guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 14px;
  color: #1a1a1a;
}

.v2-guide-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
}

.v2-guide-list strong { color: #000; }

/* ----------------------------------- SPECIAL OFFER ----------------------------------- */

.v2-special-offer {
  background: linear-gradient(180deg, #fff8e1 0%, #fff 100%);
  border: 2px solid var(--v2-cta);
  border-radius: 12px;
  padding: 28px 24px;
  margin: 40px 0;
}

.v2-special-offer .v2-h2 {
  text-align: center;
}

.v2-offer-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.v2-offer-perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.v2-offer-card {
  background: #fff;
  border: 1px solid var(--v2-divider);
  border-radius: 10px;
  padding: 22px;
  margin-top: 24px;
}

.v2-offer-image {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 16px;
}

.v2-offer-eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--v2-text-muted);
  text-align: center;
  margin-bottom: 4px;
}

.v2-offer-product-name {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.3;
}

.v2-offer-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.v2-offer-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* ----------------------------------- ADVERTORIAL NOTE ----------------------------------- */

.v2-advertorial-note {
  text-align: center;
  font-size: 13px;
  color: var(--v2-text-muted);
  margin-top: 60px;
  padding: 16px;
  line-height: 1.6;
}

.v2-advertorial-note a {
  color: var(--v2-text-muted);
  text-decoration: underline;
}

/* ----------------------------------- RESPONSIVE ----------------------------------- */

@media (max-width: 640px) {
  .v2-article { padding: 24px 16px 50px; }

  .v2-h1 { font-size: 28px; }
  .v2-h2 { font-size: 24px; }
  .v2-rankings-heading .v2-h2 { font-size: 26px; }
  .v2-h3 { font-size: 18px; }
  .v2-dek { font-size: 17px; }

  .v2-product-title { font-size: 22px; }
  .v2-product-subtitle { font-size: 16px; }

  .v2-product-image { max-width: 240px; }

  .v2-score-row { gap: 10px; }
  .v2-score-card { padding: 14px 8px; }
  .v2-score-grade { font-size: 52px; }
  .v2-score-rating { font-size: 24px; }
  .v2-score-stars { max-width: 110px; }

  .v2-cta { font-size: 17px; padding: 18px 20px; }

  .v2-byline-photo { width: 48px; height: 48px; flex: 0 0 48px; }
  .v2-byline-line1 { font-size: 15px; }

  .v2-special-offer { padding: 22px 16px; }
  .v2-offer-card { padding: 16px; }
  .v2-offer-product-name { font-size: 18px; }
}

@media (min-width: 720px) {
  /* On wider viewports, allow pros/cons side-by-side */
  .v2-proscons {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
