/* ============================================================
   article.css — Content guide page styles
   Extends main.css for article/guide pages.
   ============================================================ */

/* Nav logo as link (homepage uses <span>, articles use <a>) */
a.nav-logo {
  text-decoration: none;
  transition: opacity 0.15s;
}
a.nav-logo:hover { opacity: 0.8; }

/* Footer brand as link */
a.footer-brand {
  text-decoration: none;
  transition: opacity 0.15s;
}
a.footer-brand:hover { opacity: 0.8; }

/* ── Article layout ──────────────────────────────────────── */
.article-main {
  background: #fff;
  padding-bottom: 80px;
}

.article-container {
  max-width: 760px;
}

/* ── Article header ──────────────────────────────────────── */
.article-header {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.article-breadcrumb {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}

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

.article-breadcrumb a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.article-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 20px;
}

.article-lede {
  font-size: 1.1rem;
  color: #374151;
  line-height: 1.7;
  font-weight: 400;
}

/* ── Article body prose ──────────────────────────────────── */
.article-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #1f2937;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text);
  margin: 52px 0 16px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--color-text);
  margin: 36px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
  color: #374151;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body ul {
  margin: 0 0 20px 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-body ul li {
  color: #374151;
  line-height: 1.65;
}

.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--color-primary-dark);
}

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

.article-body em {
  font-style: italic;
}

.article-body code {
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.88em;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 1px 6px;
  color: #1e40af;
}

/* ── Inline CTA box ──────────────────────────────────────── */
.article-cta-box {
  background: #eff4ff;
  border: 1px solid #c7d7f9;
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  margin: 40px 0;
  text-align: center;
}

.cta-box-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cta-box-body {
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 20px;
  line-height: 1.6;
}

.article-cta-box .cta-box-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 99px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
}

.article-cta-box .cta-box-btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Related articles ────────────────────────────────────── */
.article-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.related-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 520px) {
  .related-grid { grid-template-columns: 1fr; }
}

.related-card {
  display: block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.related-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.related-card-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.related-card-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 640px) {
  .article-header {
    padding: 36px 0 28px;
    margin-bottom: 32px;
  }

  .article-body h2 {
    font-size: 1.3rem;
    margin-top: 40px;
  }

  .article-body h3 {
    font-size: 1rem;
  }

  .article-cta-box {
    padding: 24px 20px;
  }
}
