/*
 * A GUIDE ON THE PLATFORM'S BLOG (components/blog/article), laid out like
 * the owner's sample of 18 October 2026: one column 48rem wide at every
 * width, the answer in a box with a gold edge, "In this article" as a
 * numbered box, a body set large for reading, one box part way down, the
 * key takeaways, the questions as open cards, the call to start, then the
 * posts to read next, the pages it leads to and who writes these. Loaded by
 * that page alone; reading.css still sets the body's lists and headings.
 * Colours are the site's own, so light and dark both hold.
 */

.article-page { padding-block: var(--space-7) var(--space-8); }
/* The accent: the site's gold, or a panel's own colour on a panel's blog
   (components/blog/guide), so every theme keeps its own. */
.article { --article-accent: var(--gold); --article-ink: var(--gold-ink); }
.shop .article { --article-accent: var(--primary); --article-ink: var(--primary-contrast); }
.article, .article-pager { max-width: 48rem; margin-inline: auto; }

/* The trail and who wrote it, above the title. */
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: 0; font-size: .875rem; color: var(--muted); }
.article-byline strong { color: var(--text); font-weight: 500; }
.article-rule { width: 1px; height: 1rem; background: var(--border); }
.article-avatar { display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--article-accent); color: var(--article-ink); font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.article-avatar-large { width: 3.5rem; height: 3.5rem; font-size: 1.1rem; }
.article-logo { flex: none; width: auto; height: 1.75rem; max-width: 6rem; object-fit: contain; }
.article-logo-large { height: 3.5rem; max-width: 8rem; }

.article h1 { margin: var(--space-6) 0 var(--space-2); font-size: clamp(1.875rem, 1.45rem + 1.4vw, 2.25rem); line-height: 1.15; }

/* The answer: the paragraph a reader came for, and a model quotes. */
.article-answer { margin: var(--space-7) 0; padding: var(--space-6); border-inline-start: 4px solid var(--article-accent); border-radius: 0 var(--radius) var(--radius) 0; background: color-mix(in srgb, var(--article-accent) 8%, transparent); color: var(--text); font-size: 1rem; line-height: 1.65; font-weight: 500; }

/* "In this article", and the other quiet boxes. */
.article-box { margin: var(--space-7) 0; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.article-box-title { margin: 0 0 var(--space-3); font-size: .875rem; font-weight: 700; color: var(--text); }
.article-toc ol { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.article-toc a { color: var(--muted); font-size: .875rem; text-decoration: none; }
.article-toc a:hover { color: var(--article-accent); }

/* The body, set for reading. */
.article-body { font-size: 1.125rem; line-height: 1.78; color: var(--text); }
.article-body p { margin: 0 0 var(--space-6); }
.article-body h2 { margin: var(--space-8) 0 var(--space-6); font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); line-height: 1.3; }
.article-body h3 { margin: var(--space-7) 0 var(--space-3); font-size: 1.25rem; }
.article-body :is(ul, ol) { margin: 0 0 var(--space-6); }
.article-body li + li { margin-top: var(--space-3); }
.article-body li::marker { color: var(--muted); }
/* No underline (the owner, 25 October 2026): the accent colour marks a link. */
.article-body a { color: var(--article-accent); text-decoration: none; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body .heading-anchor { display: none; }

/* The box part way down. */
.article-mid { display: grid; gap: var(--space-3); justify-items: start; margin: var(--space-7) 0; padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.article-mid p { margin: 0; color: var(--muted); font-size: .9375rem; }
.article-mid .article-mid-title { color: var(--text); font-size: 1rem; font-weight: 700; }

/* What a reader should leave with. */
.article-takeaways { margin: var(--space-7) 0; padding: var(--space-6); border: 1px solid color-mix(in srgb, var(--success) 25%, transparent); border-radius: var(--radius); background: color-mix(in srgb, var(--success) 10%, transparent); }
.article-takeaways h2 { margin: 0 0 var(--space-3); font-size: 1.05rem; }
.article-takeaways ul { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.article-takeaways li { display: flex; gap: var(--space-2); align-items: flex-start; font-size: .9375rem; line-height: 1.55; }
.article-takeaways .icon { flex: none; margin-top: var(--space-1); color: var(--success); }

/* The questions, open, as cards. */
.article-faq { margin: var(--space-8) 0; }
.article-faq h2 { margin: 0 0 var(--space-6); font-size: 1.5rem; }
.article-faq dl { display: grid; gap: var(--space-4); margin: 0; }
.article-question { padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.article-question dt { margin: 0 0 var(--space-2); font-weight: 700; color: var(--text); }
.article-question dd { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.65; }

/* The call to start. */
.article-cta { display: grid; gap: var(--space-3); justify-items: center; margin: var(--space-8) 0; padding: var(--space-7) var(--space-5); border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--article-accent) 14%, var(--surface)), var(--surface) 65%); text-align: center; }
.article-cta h2 { margin: 0; font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); }
.article-cta p { max-width: 40rem; margin: 0; color: var(--muted); }
.article-cta .article-cta-price { color: var(--article-accent); font-size: 1.125rem; font-weight: 700; }
.article-cta .button { margin-top: var(--space-3); }
.article-cta-more { color: var(--muted); font-size: .875rem; text-decoration: none; }

/* What to read next, and the pages a guide leads to. */
.article-more { margin-top: var(--space-8); }
.article-more h2 { margin: 0 0 var(--space-4); font-size: 1.125rem; }
.article-cards { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.article-card { display: flex; flex-direction: column; gap: var(--space-2); height: 100%; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s ease; }
.article-card:hover { border-color: color-mix(in srgb, var(--article-accent) 55%, var(--border)); }
.article-card h3 { margin: 0; font-size: .9375rem; line-height: 1.35; }
.article-card:hover h3 { color: var(--article-accent); }
.article-card p { margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.55; }
.article-card > .icon { color: var(--article-accent); }
#related .article-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-more { display: inline-flex; align-items: center; gap: var(--space-1); margin-top: auto; color: var(--article-accent); font-size: .8125rem; font-weight: 600; }

/* Who writes these. */
.article-author { display: flex; gap: var(--space-4); align-items: flex-start; margin-top: var(--space-8); padding-top: var(--space-7); border-top: 1px solid var(--border); }
.article-author p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.article-author .article-author-name { color: var(--text); font-size: 1rem; font-weight: 700; }
.article-author .article-author-role { margin-bottom: var(--space-2); }

.article-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-7); }

/* On a phone the byline wraps; a divider left at a line's end says nothing. */
@media (max-width: 599px) {
    .article-rule { display: none; }
}

@media (min-width: 900px) {
    .article-mid { padding: var(--space-7); }
    .article-cta { padding: var(--space-8); }
}

@media (prefers-reduced-motion: reduce) {
    .article-card { transition: none; }
}

/* A screenshot in a guide (SafeMarkdown figures), framed and captioned. */
.article-body figure { margin: var(--space-6) 0; }
.article-body figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.article-body figcaption { margin-top: var(--space-2); font-size: .85rem; color: var(--muted); }
