/* Extra styles for the guide pages (contents list, FAQ, related guides, end call to action). Loaded after design-system.css. */
.article-figure { margin: 0 0 32px; }
.article-figure img { display: block; width: 100%; height: auto; border: 1px solid rgba(9, 13, 22, 0.1); border-radius: 18px; }

.article-toc { margin: 0 0 40px; padding: 22px 26px; border: 1px solid rgba(9, 13, 22, 0.12); border-radius: 16px; background: #f6f8fd; }
.article-toc-title { margin: 0 0 10px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #1d4ed8; }
.article-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.article-toc li { margin: 0 0 8px; padding-left: 4px; break-inside: avoid; font-size: 15px; line-height: 1.45; }
.article-toc a { color: #0b0d12; font-weight: 500; text-decoration: none; }
.article-toc a:hover { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.prose h2[id], .article-faq h2[id] { scroll-margin-top: 96px; }

.article-faq { margin: 56px 0 0; padding-top: 12px; }
.article-faq h2 { margin: 0 0 20px; }
.article-faq h3 { margin: 26px 0 8px; font-size: 1.1rem; line-height: 1.4; }
.article-faq p { margin: 0; font-size: 1.02rem; line-height: 1.75; color: #374151; }

.blog-cta-end { margin-top: 56px; }
.blog-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.blog-cta-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.45); }
.blog-cta-link:hover { text-decoration-color: #fff; }

.related-posts { margin: 56px 0 0; }
.related-posts h2 { margin: 0 0 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid rgba(9, 13, 22, 0.12); border-radius: 16px; background: #fff; text-decoration: none; color: inherit; transition: border-color 0.18s ease, transform 0.18s ease; }
.related-card:hover { border-color: #1d4ed8; transform: translateY(-2px); }
.related-tag { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; }
.related-card strong { font-size: 1.02rem; line-height: 1.35; color: #0b0d12; }
.related-blurb { font-size: 14px; line-height: 1.55; color: #4b5563; }
.related-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: #1d4ed8; }

.article-author-card { display: flex; align-items: center; gap: 20px; margin-top: 56px; padding: 28px; border: 1px solid rgba(9, 13, 22, 0.12); border-radius: 16px; background: #f6f8fd; }
.article-author-card img { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.article-author-card h4 { margin: 0 0 6px; font-size: 1.1rem; }
.article-author-card p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.6; color: #4b5563; }
.article-author-card a { font-size: 14px; font-weight: 600; color: #1d4ed8; text-decoration: none; }
.article-author-card a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .article-toc ol { columns: 1; }
  .related-grid { grid-template-columns: 1fr; }
  .article-author-card { flex-direction: column; align-items: flex-start; }
}

.prose a:not(.cl-button) { color: #1d4ed8; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(29, 78, 216, 0.35); text-underline-offset: 3px; }
.prose a:not(.cl-button):hover { text-decoration-color: #1d4ed8; }
.article-faq h3 { font-family: 'Inter', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; color: #0b0d12; }
