/* =========================================================================
   SnapHouse Blog — Estilos específicos del blog
   Extiende styles.css · No redefinir tokens base
   ========================================================================= */

/* Ensure hidden attribute works even when elements have explicit display */
[hidden] { display: none !important; }

/* =========================================================================
   READING PROGRESS BAR
   ========================================================================= */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 200;
  transition: width 0.1s linear;
}

/* =========================================================================
   BLOG HERO
   ========================================================================= */
.blog-hero {
  padding: 9rem 0 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.blog-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.blog-hero h1 {
  font-size: 3rem;
  line-height: 1.18;
  margin-bottom: 1.2rem;
  text-wrap: balance;
  background: linear-gradient(135deg, var(--text) 40%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

/* Filter pills */
.blog-filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-filter-pill {
  padding: 0.35rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  transition: all var(--t-base) var(--ease-out);
  font-family: var(--font-body);
}

.blog-filter-pill:hover,
.blog-filter-pill.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* =========================================================================
   BLOG GRID SECTION
   ========================================================================= */
.blog-grid-section {
  padding: 2rem 0 6rem;
  position: relative;
  z-index: 1;
}

/* Featured (first) article */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
  transition: border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
  text-decoration: none;
  display: block;
}

.blog-featured:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.blog-featured-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  text-decoration: none;
}

.blog-featured-img {
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

.blog-featured-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--gold-dim) 0%, transparent 70%);
}

.blog-featured-img img {
  width: 90px;
  opacity: 0.35;
  position: relative;
  z-index: 1;
}

.blog-featured-img img.cover-photo {
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.blog-featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.blog-featured-body h2 {
  font-size: 1.7rem;
  text-align: left;
  margin-bottom: 0;
  line-height: 1.28;
  color: var(--text);
  text-wrap: balance;
}

.blog-featured-body .blog-excerpt {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.7;
}

.blog-featured-body .blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.blog-featured-body .blog-read-more svg {
  transition: transform var(--t-base) var(--ease-out);
}

.blog-featured:hover .blog-read-more svg {
  transform: translateX(4px);
}

/* Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Card */
.blog-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.blog-card:not(.is-soon):hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.blog-card.is-soon {
  opacity: 0.6;
  cursor: default;
}

.blog-card-img {
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--gold-dim) 0%, transparent 70%);
}

.blog-card-img img {
  width: 48px;
  opacity: 0.25;
  position: relative;
  z-index: 1;
}

.blog-card-img img.cover-photo {
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.blog-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-card h3 {
  font-size: 1.05rem;
  line-height: 1.38;
  color: var(--text);
  margin-bottom: 0;
  text-wrap: balance;
}

.blog-card .blog-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

/* Category badge */
.blog-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(201,162,75,0.25);
  width: fit-content;
}

.blog-badge.badge-video    { background: rgba(99,102,241,0.12); color: #a5b4fc; border-color: rgba(99,102,241,0.25); }
.blog-badge.badge-social   { background: rgba(236,72,153,0.1); color: #f9a8d4; border-color: rgba(236,72,153,0.2); }
.blog-badge.badge-herr     { background: rgba(16,185,129,0.1); color: #6ee7b7; border-color: rgba(16,185,129,0.2); }
.blog-badge.badge-prod     { background: var(--gold-dim); color: var(--gold); border-color: rgba(201,162,75,0.25); }
.blog-badge.badge-estrateg { background: rgba(251,191,36,0.1); color: #fde68a; border-color: rgba(251,191,36,0.2); }

/* Soon badge */
.blog-soon-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

/* Blog meta (date + read time) */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.blog-meta-feat {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* =========================================================================
   ARTICLE LAYOUT
   ========================================================================= */
.article-wrap {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1.5rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb-sep {
  margin: 0 0.5rem;
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
  display: inline-block;
  vertical-align: bottom;
}

/* Article header */
.article-header {
  padding: 2.5rem 0 3rem;
  position: relative;
  z-index: 1;
}

.article-header h1 {
  font-size: 2.6rem;
  line-height: 1.22;
  margin-bottom: 1.2rem;
  text-wrap: balance;
  max-width: 800px;
}

.article-intro-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.72;
  max-width: 700px;
  margin-bottom: 1.8rem;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.article-meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Gold accent line under header */
.article-header-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-top: 2rem;
}

/* Two-column layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}

/* ─── Article content ─── */
.article-content {
  min-width: 0;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.7rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-align: left;
  color: var(--text);
  line-height: 1.28;
  text-wrap: balance;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 100px;
}

.article-content h3 {
  font-size: 1.2rem;
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
  color: var(--text);
  scroll-margin-top: 100px;
}

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content li { margin-bottom: 0.4rem; }

/* Intro highlight box */
.article-intro-box {
  background: var(--gold-dim);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* Numbered strategies */
.strategy-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ─── Tables ─── */
/* Safety net: any table not already in .table-wrap */
.article-content table {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.table-wrap,
.article-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

/* Text-vs-text comparison cards (replaces <table> for long-form paragraph
   comparisons, which never fit a table cell responsively) */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.compare-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.compare-card h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

.compare-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.compare-card-highlight {
  border-color: rgba(201,162,75,0.35);
  background: linear-gradient(135deg, rgba(201,162,75,0.1), rgba(201,162,75,0.03));
}

.compare-card-highlight h4 { color: var(--gold-light); }
.compare-card-highlight p { color: var(--text); }

.compare-pairs {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.5rem 0 2rem;
}

.compare-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.article-table thead tr {
  background: linear-gradient(135deg, rgba(201,162,75,0.15), rgba(201,162,75,0.08));
}

.article-table th {
  padding: 0.85rem 1.1rem;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.article-table td {
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(201,162,75,0.08);
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.article-table tr:nth-child(even) td {
  background: rgba(255,255,255,0.015);
}

.article-table td.highlight,
.article-table th.highlight {
  color: var(--gold-light);
  font-weight: 700;
}

.article-table td.saving {
  color: #6ee7b7;
  font-weight: 600;
}

.article-table tr.total-row td {
  font-weight: 700;
  color: var(--text);
  background: rgba(201,162,75,0.07);
  border-top: 1px solid var(--border);
}

/* ─── Image placeholders ─── */
.article-figure {
  margin: 2rem 0;
}

.article-img-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  min-height: 240px;
  gap: 1rem;
}

.article-img-placeholder img {
  width: 64px;
  opacity: 0.3;
}

.article-img-placeholder .ph-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

.article-img-placeholder .ph-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 300px;
  line-height: 1.5;
}

.article-figure figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.6rem;
  font-style: italic;
}

/* ─── Highlight stat box ─── */
.stat-highlight {
  background: linear-gradient(135deg, rgba(201,162,75,0.1), rgba(201,162,75,0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  text-align: center;
}

.stat-highlight .stat-big {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  display: block;
}

.stat-highlight .stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* ─── Article inline CTA ─── */
.article-inline-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.article-inline-cta-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.article-inline-cta-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

.article-inline-cta .btn-primary {
  flex-shrink: 0;
}

/* ─── Final CTA block ─── */
.article-final-cta {
  background: linear-gradient(135deg, rgba(201,162,75,0.12), rgba(201,162,75,0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.article-final-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.article-final-cta p {
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Sidebar CTA logo */
.sidebar-cta-card img {
  width: 60px;
  height: auto;
  opacity: 0.45;
  margin-bottom: 0.6rem;
}

/* ─── Sidebar ─── */
.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-cta-card {
  background: linear-gradient(135deg, rgba(201,162,75,0.12), rgba(201,162,75,0.04));
  border: 1px solid rgba(201,162,75,0.3);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
}

.sidebar-cta-card h4 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.sidebar-cta-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.3rem;
}

.sidebar-cta-card .btn-primary {
  width: 100%;
  display: block;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
}

/* TOC card */
.sidebar-toc {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sidebar-toc h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.sidebar-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.sidebar-toc ol li {
  counter-increment: toc-counter;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.sidebar-toc ol li::before {
  content: counter(toc-counter);
  width: 18px;
  height: 18px;
  background: var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.sidebar-toc ol li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--t-base);
}

.sidebar-toc ol li a:hover { color: var(--gold); }

/* Share */
.sidebar-share {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  text-align: center;
}

.sidebar-share p {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.share-btns {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.share-btn {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--t-base);
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── Related articles ─── */
.related-section {
  padding: 3rem 0 5rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.related-section h3 {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* =========================================================================
   ARTICLE NAV (prev / index / next)
   ========================================================================= */
.article-nav-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--t-base), background var(--t-base);
  background: var(--surface-glass);
  min-width: 0;
}

.article-nav-link:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: inherit;
}

.article-nav-prev { text-align: left; }
.article-nav-next { text-align: right; }

.article-nav-dir {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.article-nav-title {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-nav-link:hover .article-nav-title { color: var(--text); }

.article-nav-index {
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--t-base), color var(--t-base);
  flex-shrink: 0;
}

.article-nav-index:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.article-nav-placeholder { display: block; }

/* Mobile-only sidebar duplicates, injected inline within article-content.
   Hidden on desktop; shown only under the mobile breakpoint below. */
.mobile-only-block {
  display: none;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; width: 100%; overflow-x: hidden; }
  .article-content { min-width: 0; overflow-x: auto; }
  .article-sidebar { display: none; }
  .mobile-only-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero h1 { font-size: 2.3rem; }
}

@media (max-width: 600px) {
  .blog-hero { padding: 8rem 0 2.5rem; }
  .blog-hero h1 { font-size: 1.9rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 2rem; }
  .article-content h2 { font-size: 1.4rem; }
  .article-inline-cta { flex-direction: column; text-align: center; }

  /* Comparison cards stack on mobile instead of squeezing side by side */
  .compare-grid,
  .compare-pair {
    grid-template-columns: 1fr;
  }

  /* Tighter data tables on small screens so more columns fit before scrolling */
  .article-table {
    font-size: 0.8rem;
  }
  .article-table th,
  .article-table td {
    padding: 0.6rem 0.7rem;
  }

  /* Article nav stacks on mobile */
  .article-nav {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .article-nav-index {
    order: -1;
    text-align: center;
    justify-self: center;
  }
  .article-nav-prev { order: 0; }
  .article-nav-next { order: 1; text-align: left; }
  .article-nav-placeholder { display: none; }
}
