/*
 * Library article pages. Inherits every token from homepage-2026.css; this file
 * only adds long-form reading typography.
 */

.article { padding-top: 56px; padding-bottom: 96px; }
.article__inner { max-width: 760px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { opacity: 0.5; }

.article h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -1.2px; margin: 20px 0 0; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--hairline); font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Long-form body -------------------------------------------------------- */
.prose { font-size: 17px; line-height: 1.7; color: var(--fg-body); }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.6px; margin-top: 52px; padding-top: 4px; }
.prose h3 { font-size: 21px; line-height: 1.3; margin-top: 36px; }
.prose h2 + p, .prose h3 + p { margin-top: 14px; }
.prose a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--fg); }
.prose strong { color: var(--fg); }
.prose em { font-style: italic; }

.prose ul, .prose ol { padding-left: 0; }
.prose li { position: relative; padding-left: 24px; margin-top: 10px; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; height: 3px; background: var(--accent); }
.prose ol { counter-reset: item; }
.prose ol > li { counter-increment: item; }
.prose ol > li::before { content: counter(item) "."; position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); color: var(--fg-body); }

/* Tables carry real reference data — keep them readable, and scrollable on a phone. */
.prose .wp-block-table { margin: 32px 0; overflow-x: auto; border: 1px solid var(--hairline); border-radius: 10px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 460px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hairline); font-size: 15px; line-height: 1.5; vertical-align: top; }
.prose thead th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.prose tbody tr:last-child th, .prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody th { font-weight: 700; color: var(--fg); }

.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--surface); padding: 2px 6px; border-radius: 4px; }
.prose pre { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 18px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin: 44px 0; }

/* Sources / verification footers the editorial pages carry at the end. */
.prose .verification-footer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--hairline); padding-top: 20px; }

.article__foot { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--muted); }
.article__foot a { color: var(--action); }

@media (max-width: 720px) {
  .article { padding-top: 32px; padding-bottom: 56px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 24px; margin-top: 40px; }
  .prose h3 { font-size: 19px; }
}
