:root {
  --bg: #0e0e10;
  --bg-subtle: #161618;
  --bg-card: #1c1c1f;
  --border: #2a2a2d;
  --text: #e8e8ec;
  --text-muted: #8b8b94;
  --text-dim: #5c5c64;
  --accent: #7C6CFF;
  --accent-subtle: rgba(124, 108, 255, 0.08);
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scrollbar-color: #2a2a2d #0e0e10; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Top nav (replicates the homepage v3-nav: light cream bar, dark Dante
   wordmark, ink links, gradient "Get started for free" CTA pill). */
.news-nav {
  position: sticky; top: 0; z-index: 50;
  background: #f8f2e8;
  border-bottom: 1px solid rgba(27, 22, 18, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 20px -18px rgba(27, 22, 18, 0.35);
}
.news-nav-inner {
  max-width: 1360px; margin: 0 auto;
  padding: 12px 24px;
  display: flex; align-items: center; gap: 18px;
}
.news-nav-brand { display: inline-flex; align-items: center; text-decoration: none; }
.news-nav-brand:hover { text-decoration: none; }
.news-nav-brand img { height: 22px; width: auto; display: block; }
.news-nav-links { display: inline-flex; gap: 22px; margin-left: 8px; }
.news-nav-link {
  font-size: 13.5px; font-weight: 500; color: #4a3f35;
  text-decoration: none; padding: 6px 4px; border-radius: 8px;
  transition: color 160ms ease;
}
.news-nav-link:hover { color: #1b1612; text-decoration: none; }
.news-nav-link.active { color: #1b1612; font-weight: 600; }
.news-nav-cta {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  background: linear-gradient(135deg, #2d1b69, #6c5ce7);
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.34) inset, 0 8px 22px -6px rgba(108, 92, 231, 0.38), 0 0 0 1px rgba(108, 92, 231, 0.28);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 200ms ease, box-shadow 220ms ease;
}
.news-nav-cta:hover { transform: translateY(-1.5px); filter: brightness(1.07) saturate(1.04); text-decoration: none; }
.news-nav-arr { color: #ffe7c8; font-weight: 700; transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.news-nav-cta:hover .news-nav-arr { transform: translateX(4px); }
@media (max-width: 720px) {
  .news-nav-links { display: none; }
  .news-nav-inner { justify-content: space-between; }
}
@media (max-width: 420px) {
  .news-nav-cta { padding: 9px 16px; font-size: 13px; }
}

/* ---------- Listing / index ---------- */
.news-index { max-width: 1120px; margin: 0 auto; padding: 48px 24px 96px; }
.news-index-hero { margin-bottom: 40px; }
.news-index-hero h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.news-index-hero p { font-size: 16px; color: var(--text-muted); max-width: 640px; }

.news-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
/* Text-only cards: clean typographic layout, no image thumbnails. */
.news-card {
  display: flex; flex-direction: column; gap: 9px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 22px 24px;
  color: var(--text); text-decoration: none;
  transition: border-color 0.12s, transform 0.12s, background 0.12s;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-2px); background: #202024; text-decoration: none; }
.news-card-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.news-card-title { font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--text); }
.news-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 40px 24px 96px; }
.news-back { display: inline-block; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.article-category { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.article-title { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px; }
.article-meta { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); display: inline-block; }
.article-hero { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 28px; }

/* TL;DR answer-first block (AEO) */
.tldr {
  background: var(--accent-subtle); border: 1px solid rgba(124,108,255,0.25);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 32px;
  font-size: 16px; line-height: 1.6;
}
.tldr strong { color: var(--accent); }

/* Body */
.article-body { font-size: 16px; color: var(--text); }
.article-body h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 14px; line-height: 1.3; }
.article-body h3 { font-size: 20px; font-weight: 600; margin: 30px 0 10px; }
.article-body h4 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.article-body p { margin: 0 0 18px; color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body img { border-radius: var(--radius); border: 1px solid var(--border); margin: 24px 0; }
.article-body blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 24px 0;
  color: var(--text-muted); font-style: italic;
}
.article-body code { padding: 2px 6px; border-radius: 4px; background: var(--bg-subtle); border: 1px solid var(--border); font-size: 14px; font-family: 'SF Mono', 'Fira Code', monospace; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--bg-subtle); font-weight: 600; }

/* FAQ (visible, matches FAQPage schema) */
.article-faq { margin: 48px 0 0; }
.article-faq h2 { font-size: 26px; font-weight: 700; margin-bottom: 16px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; background: var(--bg-card); }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 600; font-size: 16px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-answer { padding: 14px 18px 18px; color: var(--text-muted); font-size: 15px; }

/* CTA */
.article-cta { margin: 48px 0; text-align: center; }
.btn-primary {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 16px;
}
.btn-primary:hover { background: #6a5af0; text-decoration: none; }

/* Related */
.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.related h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.related-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.related-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; color: var(--text); text-decoration: none; transition: border-color 0.12s;
}
.related-card:hover { border-color: var(--accent); text-decoration: none; }
.related-card-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.related-card-title { font-size: 14px; font-weight: 600; line-height: 1.4; }

/* Footer */
.news-footer {
  display: flex; gap: 24px; justify-content: center;
  padding: 32px 24px; border-top: 1px solid var(--border);
  font-size: 13px;
}
.news-footer a { color: var(--text-muted); }

@media (max-width: 640px) {
  .article-title { font-size: 30px; }
  .news-index-hero h1 { font-size: 32px; }
}
