/* ============================================================
   XLNC BUILDER — Blog article pages
   Loaded in addition to styles.css on individual post pages.
   ============================================================ */
.container-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

/* Post hero (reuses .hero-bg / .hero-grid-overlay from styles.css) */
.post-hero { position: relative; padding-top: calc(var(--header-h) + var(--sp-5)); padding-bottom: var(--sp-5); overflow: hidden; text-align: center; }
.post-hero .breadcrumb { margin-bottom: var(--sp-3); }
.post-hero .eyebrow { justify-content: center; margin-bottom: 0.6rem; }
.post-hero h1 { color: var(--color-ink); font-weight: 500; font-size: clamp(2rem, 3.4vw + 0.5rem, 3rem); max-width: 20ch; margin-inline: auto; }
.post-meta { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--color-muted); display: flex; gap: 0.6rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-500); }

/* Featured image */
.post-figure { margin: 0 0 var(--sp-5); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--color-border); aspect-ratio: 16 / 8.5; }
.post-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Article body typography */
.post-body { font-size: 1.12rem; line-height: 1.8; color: var(--color-body); padding-bottom: var(--sp-4); }
.post-body > * + * { margin-top: 1.35rem; }
.post-body .post-lead { font-size: 1.28rem; line-height: 1.6; color: var(--color-ink); font-weight: 500; }
.post-body h2 { font-size: clamp(1.5rem, 1.6vw + 0.7rem, 2rem); margin-top: var(--sp-5); color: var(--color-ink); }
.post-body h3 { font-size: 1.3rem; margin-top: var(--sp-4); color: var(--color-ink); }
.post-body p { text-wrap: pretty; }
.post-body strong { color: var(--color-ink); font-weight: 700; }
.post-body a { color: var(--gold-700); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--gold-800); }
.post-body em { font-style: italic; }
/* Buttons & arrow-links inside articles must NOT inherit the gold underlined prose-link style */
.post-body a.btn { color: var(--btn-fg); text-decoration: none; }
.post-body a.btn:hover { color: var(--btn-fg); }
.post-body a.link-arrow { color: var(--color-ink); text-decoration: none; }
.post-body a.link-arrow:hover { color: var(--gold-700); }

/* Lists */
.post-body ul, .post-body ol { padding-left: 0.25rem; display: grid; gap: 0.6rem; }
.post-body ul { list-style: none; }
.post-body ul li { position: relative; padding-left: 1.6rem; }
.post-body ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--grad-gold); }
.post-body ol { list-style: decimal; padding-left: 1.4rem; }
.post-body ol li { padding-left: 0.4rem; }
.post-body li { line-height: 1.7; }

/* Blockquote / callout */
.post-body blockquote { margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4); border-left: 4px solid var(--gold-600); background: var(--color-surface-2); border-radius: 0 var(--r-md) var(--r-md) 0; }
.post-body blockquote p { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; line-height: 1.5; color: var(--color-ink); }
.post-body blockquote p + p { margin-top: 0.5rem; font-size: 0.95rem; font-style: normal; font-family: var(--font-body); color: var(--color-muted); }
.post-body blockquote strong { color: var(--color-ink); }

/* Data / cost tables */
.post-body .post-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: var(--sp-2) 0; box-shadow: var(--sh-sm); border-radius: var(--r-md); overflow: hidden; }
.post-body .post-table th, .post-body .post-table td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--color-border); }
.post-body .post-table thead th { background: var(--stone-900); color: #fff; font-weight: 600; letter-spacing: 0.01em; }
.post-body .post-table tbody tr:nth-child(even) { background: var(--color-surface-2); }
.post-body .post-table tbody tr:last-child td { border-bottom: none; }
@media (max-width: 560px) { .post-body .post-table { display: block; overflow-x: auto; white-space: nowrap; } }

/* In-article CTA */
.post-cta { margin-top: var(--sp-6); padding: var(--sp-5); border-radius: var(--r-xl); background: var(--grad-gold-strong); color: #fff; text-align: center; position: relative; overflow: hidden; }
.post-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 50% 0%, rgba(253,230,138,0.28), transparent 65%); }
.post-cta > * { position: relative; z-index: 1; }
.post-cta h2 { color: #fff; font-size: clamp(1.4rem, 2vw, 1.9rem); margin: 0; }
.post-cta p { color: #FFF8EC; margin: 0.75rem auto 0; max-width: 48ch; }
.post-cta .btn { margin-top: var(--sp-3); }

/* Back-to-blog + share row */
.post-foot { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.post-note { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--color-muted); font-style: italic; }
