/* ===== GOLAZO Blog Stylesheet ===== */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=Archivo:wght@600;700;800;900&display=swap');

:root {
  --bg:            #06120D;
  --bg-grad-top:   #0C2A1D;
  --surface:       #0E1D16;
  --surface-raised:#14271E;
  --surface-hover: #18301F;
  --line:          rgba(233,243,239,0.09);
  --line-strong:   rgba(233,243,239,0.17);
  --text:          #ECF5F0;
  --text-muted:    #94A89F;
  --text-dim:      #647D75;
  --brand:         #0E7C4F;
  --brand2:        #14A468;
  --action:        #1FCB7B;
  --action2:       #0E9E5E;
  --action-ink:    #04150D;
  --gold:          #F4C64A;
  --gold-soft:     rgba(244,198,74,0.14);
  --live:          #FF4D45;
  --info:          #56AEF2;
  --r-sm:          12px;
  --r:             16px;
  --r-lg:          22px;
  --r-xl:          28px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background: radial-gradient(ellipse 140% 60% at 70% -10%, var(--bg-grad-top), var(--bg) 55%);
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--action); text-decoration: none; }
a:hover { color: var(--brand2); }

img { max-width: 100%; display: block; }

/* ===== READING PROGRESS ===== */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--action), var(--gold));
  z-index: 100;
  transition: width 80ms linear;
}

/* ===== BLOG NAV ===== */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6,18,13,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 60px;
}

.blog-nav-wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.blog-nav-wordmark:hover { color: var(--action); }

.blog-nav-wordmark .trophy { font-size: 1.1em; }

.blog-nav-sep {
  color: var(--line-strong);
  font-size: 1.3rem;
  font-weight: 300;
}

.blog-nav-blog {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--action);
  letter-spacing: 0.01em;
}

.blog-nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: linear-gradient(135deg, #25D585, #0E9E5E);
  color: var(--action-ink);
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}

.blog-nav-cta:hover { opacity: 0.9; transform: scale(1.02); color: var(--action-ink); }

/* ===== BLOG HERO ===== */
.blog-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
}

.blog-hero-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: 1rem;
}

.blog-hero h1 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
}

.blog-hero-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* ===== SEARCH BAR ===== */
.search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto 0.75rem;
}

.search-wrap svg.search-icon {
  position: absolute;
  left: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

#search-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 2.875rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#search-input::placeholder { color: var(--text-dim); }

#search-input:focus {
  border-color: rgba(31,203,123,0.5);
  box-shadow: 0 0 0 3px rgba(31,203,123,0.12);
}

.search-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.search-clear:hover { color: var(--text); background: var(--surface-hover); }

.search-clear.visible { display: flex; }

/* ===== CATEGORY CHIPS ===== */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4375rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}

.chip:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.chip.active {
  background: rgba(31,203,123,0.15);
  border-color: rgba(31,203,123,0.35);
  color: var(--text);
}

.chip-count {
  font-size: 0.625rem;
  font-weight: 800;
  padding: 0.125rem 0.4rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
}

.chip.active .chip-count {
  background: rgba(31,203,123,0.25);
  color: var(--text);
}

/* ===== POSTS GRID ===== */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  min-height: 24px;
}

.results-header strong { color: var(--text); }

.clear-filters-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8125rem;
  font-family: inherit;
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}

.clear-filters-btn:hover { color: var(--text); background: var(--surface-hover); }

/* Featured post */
.featured-card {
  background: linear-gradient(135deg, var(--surface), var(--surface-raised));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(31,203,123,0.06), transparent 60%);
  pointer-events: none;
}

.featured-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31,203,123,0.3);
  color: var(--text);
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  background: rgba(31,203,123,0.15);
  color: var(--action);
  margin-bottom: 1rem;
}

.featured-card h2 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  transition: color 0.15s;
}

.featured-card:hover h2 { color: var(--action); }

.featured-card p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.featured-card-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.featured-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 700;
  background: rgba(31,203,123,0.15);
  border: 1px solid rgba(31,203,123,0.25);
  color: var(--action);
  white-space: nowrap;
  transition: gap 0.15s;
}

.featured-card:hover .featured-card-action { gap: 0.75rem; }

@media (max-width: 640px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card-action { display: none; }
}

/* Regular post grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem 1.25rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31,203,123,0.25);
  background: var(--surface-raised);
  color: var(--text);
}

.post-card.hidden { display: none; }

.post-card-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.post-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.post-category-chip {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(31,203,123,0.12);
  color: var(--action);
}

.post-card h2 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 0.625rem;
  transition: color 0.15s;
  flex-grow: 0;
}

.post-card:hover h2 { color: var(--action); }

.post-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.post-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: auto;
}

.post-card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  display: none;
}

.empty-state.visible { display: block; }

.empty-state-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(31,203,123,0.1);
  color: var(--action);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.empty-state p { color: var(--text-muted); font-size: 0.9375rem; }

/* ===== BLOG POST PAGE ===== */
.post-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s, gap 0.15s;
}

.back-link:hover { color: var(--action); gap: 0.5rem; }

.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr 16rem;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .post-layout {
    grid-template-columns: 4rem 1fr 16rem;
  }

  .share-sidebar { display: block !important; }
}

/* Share sidebar */
.share-sidebar {
  display: none;
}

.share-sidebar-inner {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.share-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(31,203,123,0.15);
  color: var(--action);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.share-divider {
  width: 1.5rem;
  height: 1px;
  background: var(--line-strong);
}

.share-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  text-decoration: none;
}

.share-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
  transform: scale(1.1);
}

.share-btn.copied { color: var(--action); }

/* Post glass card */
.post-glass {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 4rem);
}

/* Post header */
.post-header {
  margin-bottom: 3rem;
}

.post-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(86,174,242,0.12);
  color: var(--info);
}

.post-header-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.post-lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.post-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.post-meta-sep {
  color: var(--line-strong);
  display: none;
}

@media (min-width: 640px) { .post-meta-sep { display: inline; } }

.post-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* ===== ARTICLE PROSE ===== */
.article-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.article-content h2 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.5625rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 2.25rem 0 1rem;
  line-height: 1.25;
  scroll-margin-top: 5rem;
}

.article-content h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 0.75rem;
  scroll-margin-top: 5rem;
}

.article-content p { margin-bottom: 1.25rem; }

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

.article-content em { color: var(--text-muted); font-style: italic; }

.article-content a { color: var(--action); text-decoration: underline; text-decoration-color: rgba(31,203,123,0.3); text-underline-offset: 3px; }

.article-content a:hover { text-decoration-color: var(--action); }

.article-content ul, .article-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-content li { padding-left: 0.25rem; }

.article-content blockquote {
  border-left: 3px solid var(--action);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--surface-raised);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-content table.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  border-radius: var(--r);
  overflow: hidden;
}

.article-content table.comparison-table thead { background: var(--surface-raised); }

.article-content table.comparison-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.article-content table.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  vertical-align: top;
}

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

.article-content table.comparison-table tr:hover td { background: var(--surface-hover); }

/* ===== KEY TAKEAWAYS ===== */
.key-takeaways {
  background: linear-gradient(135deg, rgba(31,203,123,0.06), rgba(14,156,94,0.04));
  border: 1px solid rgba(31,203,123,0.2);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}

.key-takeaways h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.key-takeaways ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.key-takeaways li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 0;
}

.key-takeaways li::before {
  content: '✓';
  color: var(--action);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ===== FAQ ===== */
.faq-section {
  margin: 2.5rem 0;
}

.faq-section h2 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 0.625rem;
  overflow: hidden;
  background: var(--surface-raised);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  list-style: none;
  transition: background 0.15s;
}

.faq-question:hover { background: var(--surface-hover); }

.faq-question::marker { display: none; }
.faq-question::-webkit-details-marker { display: none; }

details[open] .faq-question { color: var(--action); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.2s;
}

details[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--line);
  margin-top: 0;
}

/* ===== TOC SIDEBAR ===== */
.toc-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .toc-sidebar { display: block; }
}

.toc-inner {
  position: sticky;
  top: 5rem;
  max-height: calc(100dvh - 7rem);
  overflow-y: auto;
}

.toc-label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.toc-nav {
  border-left: 1px solid var(--line);
  padding-left: 0;
  list-style: none;
}

.toc-nav li { padding-left: 0; }

.toc-nav a {
  display: block;
  padding: 0.3125rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
}

.toc-nav a:hover { color: var(--text-muted); }

.toc-nav a.active {
  color: var(--action);
  border-left-color: var(--action);
  font-weight: 600;
}

/* ===== MOBILE SHARE / AUTHOR ===== */
.mobile-share {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .mobile-share { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1280px) {
  .mobile-share { display: none; }
}

.mobile-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(31,203,123,0.15);
  color: var(--action);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
}

.mobile-author-name { font-weight: 700; font-size: 0.9375rem; color: var(--text); }
.mobile-author-role { font-size: 0.8125rem; color: var(--text-muted); }

.mobile-share-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-share-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-right: 0.25rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  max-width: 1400px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}

.cta-card {
  background: linear-gradient(135deg, var(--surface), var(--surface-raised));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 120%, rgba(31,203,123,0.1), transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.cta-card:hover::before { opacity: 1; transition: opacity 0.5s; }

.cta-card-inner { position: relative; z-index: 1; }

.cta-card h2 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 0.875rem;
  color: var(--text);
}

.cta-card p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--r-lg);
  font-size: 0.9375rem;
  font-weight: 800;
  background: linear-gradient(135deg, #25D585, #0E9E5E);
  color: var(--action-ink);
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s, gap 0.15s;
  letter-spacing: 0.01em;
}

.cta-btn:hover { opacity: 0.92; transform: scale(1.03); gap: 0.75rem; color: var(--action-ink); }

/* ===== RELATED POSTS ===== */
.related-section {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}

.related-section h2 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31,203,123,0.25);
  color: var(--text);
}

.related-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.875rem;
}

.related-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(86,174,242,0.1);
  color: var(--info);
}

.related-card h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
  flex: 1;
  transition: color 0.15s;
}

.related-card:hover h3 { color: var(--action); }

.related-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: auto;
}

/* ===== BLOG FOOTER ===== */
.blog-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.blog-footer-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.blog-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  font-size: 0.875rem;
}

.blog-footer-links a { color: var(--text-dim); transition: color 0.15s; }
.blog-footer-links a:hover { color: var(--action); }

.blog-footer-copy {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ===== UTILITIES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.icon {
  display: inline-flex;
  vertical-align: -0.125em;
}

/* Responsive table on small screens */
@media (max-width: 640px) {
  .article-content table.comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* In-content link back to the prediction app (injected after the first
   paragraph by scripts/generate-blog.js). */
.article-content .inline-cta {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(31, 203, 123, 0.08);
  border: 1px solid rgba(31, 203, 123, 0.25);
  font-weight: 600;
}
.article-content .inline-cta a {
  color: #1FCB7B;
  text-decoration: underline;
  text-underline-offset: 2px;
}
