/* Blog article */

/* Header */
.article-head { padding: 72px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 40px; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; }
.article-head__text { width: 100%; max-width: 820px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.article-head__text .chip { align-self: flex-start; padding: 6px 12px; }
.article-head .h2 { max-width: 100%; }
.crumbs { font: 500 12px/16px var(--sans); color: var(--body); }
.crumbs a:hover { color: var(--accent); }
.byline { display: flex; align-items: center; gap: 12px; width: 100%; }
.byline .avatar { background: var(--line); }
.byline__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.byline__name { font: 600 14px/20px var(--sans); color: var(--ink); }
.byline__meta { font: 400 12px/16px var(--sans); color: var(--body); }
.article-head > picture { display: block; width: 100%; }
.article-head__cover { width: 100%; height: 480px; object-fit: cover; border-radius: 24px; }
.article-photo { width: 100%; margin: 0; }
.article-photo figcaption { margin-top: 8px; color: var(--body); font: 400 12px/18px var(--sans); }
.article-photo figcaption a, .prose .takeaways a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) { .article-head { padding-block: 56px; } .article-head__cover { height: 380px; } }
@media (max-width: 599px) { .article-head { padding-block: 40px; } .article-head__cover { height: 220px; border-radius: 16px; } }

/* Body: sticky contents list + 720px reading column */
.article-body { padding-inline: var(--gutter); max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.article-grid { width: 100%; display: flex; align-items: flex-start; gap: 80px; }
.toc { width: 240px; flex: none; position: sticky; top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; gap: 12px; padding-left: 16px; border-left: 1px solid var(--line); }
.toc__label { font: 600 12px/16px var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--body); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.toc a { font: 500 14px/20px var(--sans); color: var(--body); transition: color .15s ease; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--ink); }
@media (max-width: 1023px) {
  .article-grid { display: block; }
  .toc { display: none; }
}

.prose { width: 720px; max-width: 100%; flex: none; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.prose h2 { scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose > p { font: 400 18px/30px var(--sans); color: var(--ink); }
.prose > p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pulse); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .15s ease; }
.prose > p a:hover { color: var(--accent); }
.guide-list { display: grid; gap: 12px; margin: 0; padding-left: 24px; color: var(--ink); font: 400 17px/28px var(--sans); }
.guide-list strong { font-weight: 600; }
@media (max-width: 1023px) { .prose { width: 100%; } }

/* Key takeaways */
.takeaways { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 20px; background: var(--print-pale); }
.takeaways ul { list-style: none; margin: 0; padding: 0; }
.takeaways li {
  display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line);
  font: 400 16px/24px var(--sans); color: var(--ink);
}
.takeaways li::before {
  content: ""; width: 20px; height: 20px; flex: none; border-radius: 999px;
  background: var(--pulse) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Comparison table */
.criteria-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 14px; line-height: 20px; text-align: left; }
.criteria-table th, .criteria-table td { padding: 12px 16px; vertical-align: top; }
.criteria-table thead th { background: var(--cream); font-weight: 600; color: var(--ink); }
.criteria-table tbody th { width: 216px; padding-right: 0; font-weight: 500; color: var(--ink); }
.criteria-table td { padding-left: 16px; font-weight: 400; color: var(--body); }
.criteria-table thead th:first-child { width: 216px; padding-right: 0; }
.criteria-table tbody > tr > * { border-top: 1px solid var(--line); }
@media (max-width: 599px) {
  .criteria-table, .criteria-table thead, .criteria-table tbody, .criteria-table tr, .criteria-table th, .criteria-table td { display: block; }
  .criteria-table tr { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; }
  .criteria-table th, .criteria-table td, .criteria-table thead th:first-child, .criteria-table tbody th { width: auto; padding: 0; }
  .criteria-table tbody tr > * { border-top: 0; }
  .criteria-table tbody tr { border-top: 1px solid var(--line); }
  .criteria-table thead th { background: transparent; }
  .criteria-table thead tr { background: var(--cream); }
}

/* Inline CTA */
.inline-cta { display: flex; align-items: center; gap: 20px; padding: 28px; border-radius: 20px; background: var(--print-blue); }
.inline-cta > div { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.inline-cta__title { font: 600 16px/24px var(--sans); color: var(--white); }
.inline-cta__text { font: 400 14px/20px var(--sans); color: var(--muted); }
.inline-cta .btn { flex: none; }
@media (max-width: 599px) { .inline-cta { flex-direction: column; align-items: flex-start; } .inline-cta > div { flex: none; width: 100%; } }

/* FAQ: reuses the shared .faq__item markup, but full width and with every answer open */
.article-faq .faq__answer a { text-decoration: underline; text-decoration-color: var(--pulse); text-underline-offset: 3px; }
.article-faq .faq__answer a:hover { color: var(--accent); }

/* Author bio */
.author-bio { width: 100%; display: flex; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; }
.author-bio .avatar { width: 56px; height: 56px; background: var(--line); font-size: 16px; line-height: 24px; }
.author-bio > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.author-bio__title { font: 600 16px/24px var(--sans); color: var(--ink); }
.author-bio p { font-size: 14px; line-height: 20px; color: var(--body); }
@media (min-width: 1024px) { .author-bio { max-width: 1040px; } }

/* Related posts */
.article-related { padding-block: 120px; }
.article-related .post-card .h4 { font-size: 30px; line-height: 36px; letter-spacing: -0.005em; }
.article-related .post-card__cover { aspect-ratio: auto; height: 220px; }
.article-related .stack { gap: 56px; }
.article-related .post-grid { gap: 24px; }
@media (max-width: 1023px) {
  .article-related { padding-block: 88px; }
  .article-related .stack { gap: 48px; }
  .article-related .post-grid > .post-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .article-related { padding-block: 64px; }
  .article-related .stack { gap: 36px; }
  .article-related .post-grid { gap: 24px; }
}
