/* ============================================================
   ARTICLE PAGE STYLES
   article.css  |  Imports design tokens from ../style.css
   ============================================================ */

/* ─── ARTICLE LAYOUT ─────────────────────────────────────────── */
.article {
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 80px;
  min-height: 100vh;
  background: var(--bg);
}

.article__container {
  max-width: 760px;
}

/* ─── BACK LINK ──────────────────────────────────────────────── */
.article__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 36px;
  transition: color 0.2s var(--ease-fast), gap 0.2s var(--ease-fast);
}
.article__back:hover {
  color: var(--accent);
  gap: 10px;
}
.article__back svg {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-fast);
}
.article__back:hover svg {
  transform: translateX(-3px);
}

/* ─── ARTICLE HEADER ─────────────────────────────────────────── */
.article__header {
  margin-bottom: 40px;
}

.insight__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.article__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article__meta-divider {
  opacity: 0.5;
}

/* ─── ARTICLE BODY ───────────────────────────────────────────── */
.article__body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.article__lead {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 32px;
}

.article__body h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.article__body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article__body p {
  margin-bottom: 20px;
}

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

.article__body ul,
.article__body ol {
  padding-left: 1.5rem;
  margin-bottom: 24px;
}

.article__body ul {
  list-style: disc;
}

.article__body ol {
  list-style: decimal;
}

.article__body li {
  margin-bottom: 10px;
  padding-left: 4px;
}

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

.article__body a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__body a:hover {
  color: var(--accent);
}

/* ─── ARTICLE CTA ────────────────────────────────────────────── */
.article__cta {
  margin-top: 56px;
  padding: 36px 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius-lg);
  text-align: center;
  color: #fff;
}

.article__cta p {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0.92;
}

/* ─── ARTICLE PREV / NEXT NAV ────────────────────────────────── */
.article__nav {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.article__prev,
.article__next {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease-fast);
  max-width: 48%;
}

.article__prev:hover,
.article__next:hover {
  color: var(--accent);
}

.article__prev strong,
.article__next strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
  font-size: 0.9375rem;
  transition: color 0.2s var(--ease-fast);
}

.article__prev:hover strong,
.article__next:hover strong {
  color: var(--accent);
}

.article__next {
  text-align: right;
  margin-left: auto;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .article {
    padding-top: calc(var(--nav-h) + 32px);
    padding-bottom: 56px;
  }

  .article__cta {
    padding: 28px 24px;
  }

  .article__nav {
    flex-direction: column;
  }

  .article__prev,
  .article__next {
    max-width: 100%;
    text-align: left;
  }
}
