/* ============================================================
   article.css — Article page + article card supplement
   Extends style-base.css; relies on var(--clr-*) from style-color.css
   Single-column layout (no sidebar) — per 2026-08-06 spec
   ============================================================ */

/* ── ARTICLE PAGE LAYOUT ─────────────────────────────────── */
.article-page {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5) var(--space-16);
}

.article-header {
  margin-bottom: var(--space-8);
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--clr-bg-alt);
  margin-bottom: var(--space-6);
  box-shadow: var(--clr-shadow-md);
}

.article-h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--clr-text);
  margin-bottom: var(--space-4);
}

.article-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-5);
}

/* ── FAQ SECTION (id target for anchor links) ───────────── */
#faq-items {
  scroll-margin-top: var(--space-8);
}
.faq-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 900;
  color: var(--clr-text);
  margin-bottom: var(--space-5);
}

/* ── ARTICLE CARD (used by publish WF to render listing cards) */
.article-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--clr-shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: var(--clr-shadow-md);
  transform: translateY(-2px);
}

.article-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--clr-bg-alt);
}

.article-card .article-body {
  padding: var(--space-4) var(--space-4) var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.article-cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--clr-tag-1);
  color: #fff;
}

.article-date {
  font-size: 12px;
  color: var(--clr-text-muted);
}

.article-excerpt {
  font-size: 14px;
  color: var(--clr-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-3);
  flex: 1;
}

.article-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-accent);
}
.article-link:hover {
  text-decoration: underline;
}

/* ── CTA BANNER: button + link support (base defines box/heading) */
.cta-banner .btn,
.cta-banner a.btn-primary {
  background: var(--clr-accent);
  color: #fff;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .article-page {
    padding: var(--space-6) var(--space-4) var(--space-12);
  }
  .author-bio-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
