/* article + articles index styles */

/* breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem; color: var(--fg-mute);
  padding: 20px 0; display: flex; gap: 8px; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--fg-mute); }
.breadcrumbs a:hover { color: var(--brand); text-decoration: none; }
.breadcrumbs__current { color: var(--fg); }

/* article layout */
.article { padding-bottom: 64px; }
.article__container { max-width: 760px; }
.article__header { padding: 32px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.article__header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 16px; }
.article__lead { font-size: 1.15rem; color: var(--fg-dim); margin-bottom: 20px; }
.article__meta {
  display: flex; gap: 8px; font-size: 0.9rem; color: var(--fg-mute);
}

.article__body { line-height: 1.7; font-size: 1.05rem; }
.article__body h2 { margin: 2.2em 0 0.6em; font-size: 1.5rem; }
.article__body h3 { margin: 1.8em 0 0.5em; font-size: 1.2rem; }
.article__body p  { margin: 0 0 1.2em; color: var(--fg); }
.article__body ul, .article__body ol { margin: 0 0 1.2em 1.4em; }
.article__body li { margin-bottom: 0.5em; }
.article__body a  { color: var(--brand); }
.article__body blockquote {
  margin: 1.5em 0; padding: 16px 24px;
  border-left: 4px solid var(--brand); background: var(--brand-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article__body blockquote p:last-child { margin: 0; }
.article__body code {
  background: var(--bg-soft); padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.92em;
}
.article__body pre {
  background: var(--bg-dark); color: #e2e8f0; padding: 20px;
  border-radius: var(--radius); overflow-x: auto; margin: 1.5em 0;
}
.article__body pre code { background: transparent; padding: 0; color: inherit; }
.article__body img { border-radius: var(--radius); margin: 1.5em 0; }

.article__body table {
  width: 100%; border-collapse: collapse; margin: 1.5em 0;
  font-size: 0.95rem;
}
.article__body th, .article__body td {
  padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left;
}
.article__body th { background: var(--bg-soft); font-weight: 600; }

.article-illustration {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: 24px; margin: 1.5em 0; display: flex; justify-content: center;
}
.article-illustration svg { max-width: 100%; height: auto; }

/* inline CTA cards inside articles */
.article__body .article-cta-inline,
.article__body .inline-cta {
  background: linear-gradient(135deg, #1e40af, #6366f1); color: #fff;
  padding: 24px; border-radius: var(--radius); margin: 2em 0;
}
.article__body .article-cta-inline h4,
.article__body .inline-cta h4 { color: #fff; margin: 0 0 8px; }
.article__body .article-cta-inline p,
.article__body .inline-cta p { color: rgba(255,255,255,0.9); margin: 0 0 16px; }
.article__body .article-cta-inline .btn,
.article__body .inline-cta .btn { background: #fff; color: var(--brand); }

/* checklist / interactive lists (for agent-delivered content) */
.article__body .checklist { list-style: none; padding: 0; }
.article__body .checklist li {
  position: relative; padding-left: 32px; margin-bottom: 12px;
}
.article__body .checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 700;
}

/* FAQ accordion inside article */
.article__body details {
  border-bottom: 1px solid var(--border); padding: 0;
}
.article__body details summary {
  padding: 18px 0; cursor: pointer; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.article__body details summary::-webkit-details-marker { display: none; }
.article__body details summary::after {
  content: '+'; color: var(--fg-mute); font-size: 1.4rem; transition: transform 0.2s;
}
.article__body details[open] summary::after { content: '−'; color: var(--brand); }
.article__body details p { margin: 0 0 18px; }

/* article CTA block (end of article) */
.article__cta {
  margin-top: 56px;
  padding: 40px; background: var(--brand-soft);
  border-radius: var(--radius); text-align: center;
}
.article__cta h3 { margin-bottom: 12px; }
.article__cta p { margin-bottom: 20px; }

/* articles listing */
.articles-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: var(--fg); text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
.article-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow);
  text-decoration: none;
}
.article-card__image {
  height: 180px;
  background-size: cover; background-position: center;
  background-color: var(--brand-soft);
}
.article-card__image--placeholder {
  display: grid; place-items: center; font-size: 3rem;
}
.article-card__body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.article-card__body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.article-card__body p {
  font-size: 0.92rem; color: var(--fg-dim); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; flex-grow: 1;
}
.article-card__meta {
  font-size: 0.82rem; color: var(--fg-mute);
  display: flex; gap: 6px;
}
