/* === Blog Article Styles — Mohammed Razzok Portfolio === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0C1222;
  --ink-light: #1a2744;
  --paper: #FAF7F0;
  --paper-warm: #FAF7F0;
  --gold: #C9A84C;
  --gold-light: rgba(201, 168, 76, 0.15);
  --gold-dim: rgba(201, 168, 76, 0.08);
  --gold-glow: rgba(201, 168, 76, 0.25);
  --teal: #2A8F8F;
  --teal-light: rgba(42, 143, 143, 0.15);
  --teal-glow: rgba(42, 143, 143, 0.25);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #6a6a8a;
  --border: rgba(201, 168, 76, 0.25);
  --border-strong: rgba(201, 168, 76, 0.4);
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --dot-color: rgba(201, 168, 76, 0.08);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --max-width: 780px;
  --max-width-wide: 960px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* Dark mode: system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C1222;
    --paper-warm: #0C1222;
    --ink-light: #1e2d4a;
    --text-primary: #e8e8ec;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a8a;
    --surface: #151b2e;
    --surface-raised: #1a2238;
    --border: rgba(201, 168, 76, 0.3);
    --border-strong: rgba(201, 168, 76, 0.45);
    --gold-light: rgba(201, 168, 76, 0.1);
    --gold-dim: rgba(201, 168, 76, 0.06);
    --teal-light: rgba(42, 143, 143, 0.12);
    --teal-glow: rgba(42, 143, 143, 0.2);
    --dot-color: rgba(201, 168, 76, 0.06);
  }
}

/* Dark mode: manual toggle (overrides system) */
[data-theme="dark"] {
  --paper: #0C1222;
  --paper-warm: #0C1222;
  --ink-light: #1e2d4a;
  --text-primary: #e8e8ec;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a8a;
  --surface: #151b2e;
  --surface-raised: #1a2238;
  --border: rgba(201, 168, 76, 0.3);
  --border-strong: rgba(201, 168, 76, 0.45);
  --gold-light: rgba(201, 168, 76, 0.1);
  --gold-dim: rgba(201, 168, 76, 0.06);
  --teal-light: rgba(42, 143, 143, 0.12);
  --teal-glow: rgba(42, 143, 143, 0.2);
  --dot-color: rgba(201, 168, 76, 0.06);
}

[data-theme="light"] {
  --paper: #FAF7F0;
  --paper-warm: #FAF7F0;
  --ink-light: #1a2744;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #6a6a8a;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --border: rgba(201, 168, 76, 0.25);
  --border-strong: rgba(201, 168, 76, 0.4);
  --gold-light: rgba(201, 168, 76, 0.15);
  --gold-dim: rgba(201, 168, 76, 0.08);
  --teal-light: rgba(42, 143, 143, 0.15);
  --teal-glow: rgba(42, 143, 143, 0.25);
  --dot-color: rgba(201, 168, 76, 0.08);
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s ease, color 0.4s ease;
}

/* === Dot Grid Background === */
.dot-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* === Section Header Pattern === */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.gold-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  margin-bottom: 20px;
}

/* === Header === */
.blog-header {
  background: var(--ink);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.blog-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.blog-logo {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
}
.blog-logo:hover { opacity: 0.85; }
.blog-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.blog-back {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.blog-back:hover { opacity: 0.8; }

/* Dark mode toggle */
.blog-theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--gold);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  line-height: 1;
}
.blog-theme-toggle:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}
.blog-theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* === Article === */
.blog-article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 64px;
  position: relative;
  z-index: 1;
}

/* Wide layout for index page */
.blog-article.wide {
  max-width: var(--max-width-wide);
}

.blog-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.blog-breadcrumb a { color: var(--gold); text-decoration: none; }
.blog-breadcrumb a:hover { text-decoration: underline; }

.blog-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.blog-meta-date { font-weight: 500; }
.blog-meta-tag {
  background: var(--gold-light);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-featured-image {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--surface);
}
.blog-figure {
  margin: 32px 0;
  text-align: center;
}
.blog-figure img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--surface);
  aspect-ratio: 16/9;
}
.blog-figure figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}
.blog-figure figcaption a {
  color: var(--teal);
  text-decoration: none;
}
.blog-figure figcaption a:hover {
  text-decoration: underline;
}

/* === Content === */
.blog-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.blog-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.blog-content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}
.blog-content strong {
  color: var(--text-primary);
  font-weight: 600;
}
.blog-content em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--teal);
}
.blog-content ul, .blog-content ol {
  margin: 0 0 20px 24px;
  color: var(--text-secondary);
}
.blog-content li { margin-bottom: 8px; }
.blog-content a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  transition: border-color 0.2s;
}
.blog-content a:hover { border-bottom-color: var(--gold); }

.blog-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--gold-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.blog-content .highlight-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
}
.blog-content .highlight-box h3 {
  margin-top: 0;
  color: var(--gold);
}

/* === Figures & Diagrams === */
.blog-content .blog-figure {
  margin: 32px 0;
  padding: 0;
  text-align: center;
}
.blog-content .blog-figure svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.blog-content .blog-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}
.blog-content .blog-figure figcaption strong {
  color: var(--text-secondary);
  font-style: normal;
}

/* Comparison Table */

/* Process Steps */
.blog-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 28px 0;
  position: relative;
  padding-left: 36px;
}
.blog-steps::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
  border-radius: 2px;
}
.blog-step {
  position: relative;
  padding: 12px 0 24px;
}
.blog-step::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--gold);
}
.blog-step .step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.blog-step .step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pillar / Card Grid */
.blog-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.blog-pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  transition: border-color 0.25s, transform 0.25s;
}
.blog-pillar:hover { border-color: var(--gold); transform: translateY(-2px); }
.blog-pillar .pillar-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.blog-pillar .pillar-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.blog-pillar .pillar-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Timeline */
.blog-timeline {
  margin: 28px 0;
  position: relative;
  padding-left: 32px;
}
.blog-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-strong);
}
.blog-timeline-item {
  position: relative;
  padding-bottom: 20px;
}
.blog-timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--paper);
}
.blog-timeline-item:last-child { padding-bottom: 0; }
.blog-timeline-item .tl-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.blog-timeline-item .tl-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.blog-timeline-item .tl-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === Author Box === */
.blog-author {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 48px;
}
.blog-author img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}
.blog-author-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.blog-author-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.blog-author-info a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.blog-author-info a:hover { text-decoration: underline; }

/* === Related Posts === */
.blog-related {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.blog-related h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.blog-related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s;
}
.blog-related-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.blog-related-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.blog-related-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* === Footer === */
.blog-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  margin-top: 64px;
}
.blog-footer a { color: var(--gold); text-decoration: none; }
.blog-footer a:hover { text-decoration: underline; }

/* === Skip to content (accessibility) === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 200;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 8px;
}

/* === Table of Contents (auto-generated) === */
.blog-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.blog-toc-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}
.blog-toc ol {
  list-style: decimal;
  margin-left: 20px;
  color: var(--text-secondary);
}
.blog-toc li {
  margin-bottom: 6px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.blog-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-toc a:hover {
  color: var(--gold);
}
.blog-toc li::marker {
  color: var(--gold);
  font-weight: 600;
}
.blog-toc li.toc-h3 {
  padding-left: 20px;
  list-style-type: none;
}
.blog-toc li.toc-h3::before {
  content: '—';
  color: var(--teal);
  margin-right: 6px;
}

/* === CTA (Call to Action) === */
.blog-cta {
  background: var(--ink);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}
[data-theme="light"] .blog-cta { background: var(--ink-light); }

.blog-cta h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 8px;
}
.blog-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 20px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.blog-cta a {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}
.blog-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
}

/* === Focus styles (accessibility) === */
.blog-content a:focus,
.blog-back:focus,
.blog-logo:focus,
.blog-related-card:focus,
.article-row:focus,
.skip-link:focus,
.blog-cta a:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.blog-theme-toggle:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* === Table & Code styles === */
.table-wrap {
  overflow-x: auto;
  margin: 28px auto;
  -webkit-overflow-scrolling: touch;
}
.blog-comparison,
.blog-content table {
  width: auto;
  min-width: 50%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 auto;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.blog-comparison thead th,
.blog-content thead th,
.blog-comparison th,
.blog-content th {
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.blog-comparison thead th:first-child,
.blog-content thead th:first-child { border-radius: 0; }
.blog-comparison thead th:last-child,
.blog-content thead th:last-child { border-radius: 0; }
.blog-comparison td,
.blog-content td {
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
  text-align: center;
  line-height: 1.55;
}
.blog-comparison tr:last-child td,
.blog-content tbody tr:last-child td {
  border-bottom: none;
}
.blog-comparison tr:hover td,
.blog-content tr:hover td { background: var(--gold-dim); }
.blog-comparison td:first-child,
.blog-content td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.blog-comparison td.highlight,
.blog-content td.highlight {
  color: var(--gold);
  font-weight: 600;
}
.blog-content code {
  font-family: var(--font-mono);
  background: var(--gold-dim);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.88em;
}
.blog-content pre {
  background: var(--ink);
  color: var(--paper);
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.88rem;
  line-height: 1.6;
}
.blog-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* === Language filter (blog index) === */
.blog-lang-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.blog-lang-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.blog-lang-btn:hover, .blog-lang-btn.active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.blog-lang-btn:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* === Fade-in Animation (JS-driven) === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.fade-in.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Blog Index: Editorial Row Layout === */
.articles-list {
  max-width: 880px;
  padding-bottom: 64px;
}

/* === Article Row === */
.article-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease;
  position: relative;
}
.article-row:hover {
  background: var(--gold-dim);
}
.article-row:last-child {
  border-bottom: none;
}

/* Row thumbnail */
.article-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease;
}
.article-row:hover .article-thumb {
  transform: scale(1.02);
}
.article-thumb svg {
  width: 40px;
  height: 40px;
  color: var(--gold);
  opacity: 0.8;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.article-thumb .lang-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
  font-family: var(--font-body);
}

/* Themed gradients */
.thumb-navy {
  background: linear-gradient(135deg, #0C1222, #162040, #1a2744, #0C1222);
}
.thumb-teal {
  background: linear-gradient(135deg, #0C1a1a, #0d2e2e, #143333, #0C1222);
}
.thumb-indigo {
  background: linear-gradient(135deg, #0C1222, #1a1640, #251a4a, #0C1222);
}
.thumb-gold {
  background: linear-gradient(135deg, #1a1508, #2e2410, #3a2c0a, #1a1508);
}

/* Dark mode thumbs */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .thumb-navy {
    background: linear-gradient(135deg, #0a0f1a, #131d38, #182240, #0a0f1a);
  }
  :root:not([data-theme="light"]) .thumb-teal {
    background: linear-gradient(135deg, #0a1616, #0d2626, #0f2e2e, #0a0f1a);
  }
  :root:not([data-theme="light"]) .thumb-indigo {
    background: linear-gradient(135deg, #0a0f1a, #151030, #1c153a, #0a0f1a);
  }
  :root:not([data-theme="light"]) .thumb-gold {
    background: linear-gradient(135deg, #0f0d05, #1a1508, #201a08, #0f0d05);
  }
}
[data-theme="dark"] .thumb-navy {
  background: linear-gradient(135deg, #0a0f1a, #131d38, #182240, #0a0f1a);
}
[data-theme="dark"] .thumb-teal {
  background: linear-gradient(135deg, #0a1616, #0d2626, #0f2e2e, #0a0f1a);
}
[data-theme="dark"] .thumb-indigo {
  background: linear-gradient(135deg, #0a0f1a, #151030, #1c153a, #0a0f1a);
}
[data-theme="dark"] .thumb-gold {
  background: linear-gradient(135deg, #0f0d05, #1a1508, #201a08, #0f0d05);
}

/* Row body text */
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.article-body .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.article-body .meta .tag {
  background: var(--teal-light);
  color: var(--teal);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-body);
}
.article-body p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 12px;
}
.article-body .read-link {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s ease;
}
.article-row:hover .read-link {
  gap: 10px;
}

/* === Blog Index: Count === */
.blog-index-count {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === Responsive === */
@media (max-width: 768px) {
  .blog-title { font-size: 1.6rem; }
  .blog-article { padding: 32px 16px 48px; }
  .blog-content { font-size: 16px; }
  .blog-author { flex-direction: column; text-align: center; }
  .blog-related-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.9rem; }
  .article-row { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .article-thumb { max-width: 100%; }
  .article-body h2 { font-size: 1.1rem; }
  .blog-pillar-grid { grid-template-columns: 1fr; }
  .blog-comparison, .blog-content table { font-size: 0.8rem; }
  .blog-comparison td, .blog-comparison th,
  .blog-content td, .blog-content th { padding: 8px 10px; }
  .blog-comparison td:first-child, .blog-content td:first-child { white-space: normal; }
  .blog-comparison, .blog-content table { min-width: 100%; }
  .table-wrap { margin: 20px -8px; }
}
@media (max-width: 480px) {
  .blog-title { font-size: 1.35rem; }
  .blog-header-inner { height: 48px; }
  .blog-logo { font-size: 1.2rem; }
  .blog-meta { gap: 8px; }
  .section-title { font-size: 1.5rem; }
  .article-body h2 { font-size: 1rem; }
  .article-body .meta { gap: 6px; }
  .article-thumb { aspect-ratio: 16/10; }
}