/* ============================================================
   BLOG ENGINE & ARTICLES STYLES
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
  --blog-bg: #F5F3F0;
  --blog-text: #1A1A1A;
  --blog-accent: #C41E3A;
  --blog-secondary: #C9A84C;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

/* ── GLOBALS ────────────────────────────────────────────── */
body.blog-page {
  background-color: var(--blog-bg);
  color: var(--blog-text);
  font-family: var(--font-sans);
}

.blog-page .nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(245, 243, 240, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ── PROGRESS BAR ───────────────────────────────────────── */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  background: var(--blog-accent);
  width: 0%;
  transition: width 0.1s ease;
}

/* ── HUB PAGE (articles.html) ───────────────────────────── */
.container-editorial {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-hub {
  padding: 120px 0 80px;
}

.blog-hub__header {
  text-align: center;
  margin-bottom: 64px;
}

.blog-hub__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 56px);
  color: var(--blog-text);
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.blog-hub__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--blog-text);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
  font-weight: 400;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.blog-card__tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--blog-secondary);
  background: rgba(201, 168, 76, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

.blog-card__time {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.blog-card__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--blog-text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.blog-card__snippet {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0;
  flex: 1;
}

/* ── SINGLE ARTICLE HEADER ──────────────────────────────── */
.article-top-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.article-top-pill {
  background: rgba(133, 115, 95, 0.08);
  /* soft pill background */
  color: #85735F;
  /* muted bronze/taupe */
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 5vw, 3.25rem);
  line-height: 1.2;
  color: var(--blog-text);
  margin-bottom: 32px;
  font-weight: 700;
  max-width: 900px;
}

.byline-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.byline__avatars {
  display: flex;
}

.byline__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blog-bg);
}

.byline__avatar:nth-child(2) {
  margin-left: -16px;
}

.byline__info {
  text-align: left;
}

.byline__author {
  font-size: 15px;
  font-weight: 600;
  color: var(--blog-text);
  margin: 0 0 2px 0;
}

.byline__meta {
  font-size: 14px;
  color: #777;
  margin: 0;
}

.article-featured-image {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  margin-bottom: 60px;
}

/* ── 2-COLUMN ASYMMETRIC GRID ───────────────────────────── */
.editorial-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

/* COLUMN A: Main Content */
.article-content {
  font-family: var(--font-sans);
  max-width: 68ch;
  margin: 0 auto;
}

.article-content .lead-paragraph {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #111;
  font-weight: 500;
  margin-bottom: 32px;
}

.article-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--blog-text);
  margin-bottom: 24px;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin: 56px 0 24px;
  color: var(--blog-text);
  font-weight: 600;
  line-height: 1.2;
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 40px 0 16px;
  color: var(--blog-text);
}

/* Comparison Table Redesign */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 48px 0;
  background: #F3EFEA;
  /* warm-sand bg */
  border-radius: 12px;
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 24px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  width: 33.33%;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.6;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table th {
  background: rgba(0, 0, 0, 0.03);
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #555;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.compare-table td.col-usually {
  color: #333;
  font-weight: 500;
}

.compare-table td.col-hear {
  color: #85735F;
  /* warm gray */
  font-style: italic;
}

.compare-table td.col-better {
  color: #1A1A1A;
  font-weight: 600;
  border-left: 2px solid var(--blog-accent);
  background: rgba(255, 255, 255, 0.3);
}

/* Rule Card (Callouts) */
.rule-cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0 48px;
}

.rule-card {
  background: #FAFAF8;
  border: 1px solid #E5E0D8;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.rule-card__badge {
  background: transparent;
  color: var(--blog-secondary);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.rule-card__content p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
}

.rule-card__content strong {
  color: #111;
  font-weight: 600;
}

/* COLUMN B: Sticky Sidebar */
.sticky-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.toc-block {
  background: transparent;
}

.toc-block__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: #777;
  margin-bottom: 16px;
}

.toc-block__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 2px solid rgba(0, 0, 0, 0.05);
}

.toc-block__link {
  text-decoration: none;
  font-size: 14px;
  color: #555;
  padding-left: 16px;
  position: relative;
  transition: color 0.2s;
}

.toc-block__link:hover {
  color: var(--blog-text);
}

.toc-block__link.active {
  color: var(--blog-text);
  font-weight: 600;
}

.toc-block__link.active::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--blog-secondary);
}

.contextual-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.contextual-card__graphic {
  background: #F3EFEA;
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  margin-bottom: 16px;
}

.contextual-card__graphic span {
  display: inline-block;
  background: var(--blog-text);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 14px;
}

.contextual-card__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--blog-text);
}

.contextual-card__hook {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.contextual-card__btn {
  display: block;
  text-align: center;
  background: var(--blog-text);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px;
  border-radius: 6px;
  transition: opacity 0.2s;
}

.contextual-card__btn:hover {
  opacity: 0.85;
}

/* ── RESPONSIVE FALLBACKS ───────────────────────────────── */
@media (max-width: 1024px) {
  .editorial-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sticky-sidebar {
    position: static;
  }

  .toc-block {
    display: none;
    /* Hide TOC on mobile per spec */
  }
}

@media (max-width: 700px) {

  .compare-table th,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table tr {
    display: block;
    border-bottom: 4px solid #DFDBD5;
  }
}

/* ── PRODUCT SHOWCASE GRID & FOUNDER BOX ────────────────── */
.product-showcase {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.product-showcase__title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 36px;
  margin-bottom: 8px;
  color: var(--blog-text);
}

.product-showcase__subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.product-grid-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.product-grid-card--bundle {
  border: 2px solid var(--blog-accent);
  position: relative;
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.08);
}

.product-grid-card__badge {
  display: inline-block;
  background: #f1f1f1;
  color: #555;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.product-grid-card--bundle .product-grid-card__badge {
  background: var(--blog-accent);
  color: #fff;
}

.best-value-pill {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--blog-accent);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.product-grid-card__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--blog-text);
}

.product-grid-card__desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.product-grid-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex: 1;
}

.product-grid-card__list li {
  font-size: 13px;
  color: #444;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.product-grid-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blog-accent);
  font-weight: bold;
}

.product-grid-card__price {
  font-size: 28px;
  font-weight: 700;
  color: var(--blog-text);
  margin-bottom: 16px;
}

.product-grid-card__btn {
  display: block;
  text-align: center;
  background: #111;
  color: #fff;
  text-decoration: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.product-grid-card__btn:hover {
  opacity: 0.85;
}

.product-grid-card--bundle .product-grid-card__btn {
  background: var(--blog-accent);
}

.author-footnote {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px;
  margin-top: 40px;
  margin-bottom: 80px;
  background: rgba(245, 243, 240, 0.6);
  border-radius: 12px;
  border-left: 4px solid var(--blog-secondary);
}

.author-footnote__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-footnote__info h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--blog-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.author-footnote__info p {
  margin: 0;
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  font-style: italic;
}