/* ==========================================================================
   Metaobjectify blog styles
   Loaded after /assets/css/styles.css and only on /blogs/ pages.
   Uses the site's own variables (--ink, --text, --accent-deep, …).
   ========================================================================== */

/* Header: "Blog" stays highlighted on article pages too */
.nav a[aria-current="true"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 920px) {
  .js .nav a[aria-current="true"] { color: var(--accent); box-shadow: none; }
}

/* ---------- Hero ---------- */
.post-hero-wrap .hero__body { padding-bottom: 64px; }
.post-hero { max-width: 840px; margin-top: 28px; }
.post-hero__title { margin-top: 14px; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; }
.post-hero .lead { margin-top: 20px; max-width: 700px; }
.post-meta { display: flex; flex-wrap: wrap; margin-top: 24px; font-size: 14px; color: var(--on-dark-muted); }
.post-meta span + span::before { content: "·"; margin: 0 10px; }

/* ---------- Layout ---------- */
.post-section { padding: 64px 0 96px; }
.post { flex: 999 1 560px; min-width: 0; max-width: 760px; }
.post > :first-child { margin-top: 0; }
@media (max-width: 720px) { .post-section { padding: 40px 0 72px; } }

/* ---------- Article type ---------- */
.post h2 {
  margin-top: 56px; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2;
  letter-spacing: -0.025em; font-weight: 800; color: var(--ink); scroll-margin-top: 24px;
}
.post h3 { margin-top: 36px; font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; color: var(--ink); }
.post h2 + h3 { margin-top: 24px; }
.post p { margin-top: 16px; font-size: 17px; line-height: 1.75; color: var(--text); }
.post strong { color: var(--ink); font-weight: 700; }
.post a:not(.btn) { color: var(--accent-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.post a:not(.btn):hover { color: var(--ink); }

.post ul, .post ol { margin: 16px 0 0; padding-left: 24px; font-size: 17px; line-height: 1.7; color: var(--text); }
.post li + li { margin-top: 10px; }
.post li::marker { color: var(--accent-deep); font-weight: 700; }
.post li p { margin-top: 6px; }

.post :not(pre) > code {
  padding: 2px 6px; border-radius: 6px; background: var(--tile);
  font-family: var(--font-mono); font-size: 0.86em; color: var(--ink-2); overflow-wrap: anywhere;
}
.post .code-label {
  margin-top: 28px; font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.post .code-label + .code-block { margin-top: 8px; }
.post .code-block { font-size: 13px; line-height: 1.7; overflow-x: auto; white-space: pre; max-width: 100%; }
.post .code-block code { font-family: var(--font-mono); }

.post .data-table-wrap { margin-top: 24px; }
.post .data-table { min-width: 560px; font-size: 15px; line-height: 1.55; }
.post .data-table th, .post .data-table td { vertical-align: top; }
.post .data-table thead th { white-space: nowrap; }

.post blockquote {
  margin-top: 24px; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent-deep);
  font-size: 18px; line-height: 1.6; color: var(--ink-2);
}
.post blockquote p { margin-top: 0; color: inherit; font-size: inherit; }
.post blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--muted); }

.post-note { margin-top: 28px; padding: 18px 22px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.post-note p { margin-top: 0; font-size: 16px; line-height: 1.65; }
.post-note p + p { margin-top: 10px; }

/* ---------- Inline CTA (uses the site's .inline-cta) ---------- */
.post .post-cta { margin-top: 40px; }
.post .post-cta .post-cta__title { margin-top: 0; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 800; color: var(--white); }
.post .post-cta p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--on-dark-body); }
.post .post-cta .btn-row { flex: 0 1 auto; }

/* ---------- Table of contents ---------- */
.post-toc ol { counter-reset: toc; }
.post-toc a { line-height: 1.4; }

/* ---------- Cards (index + related) ---------- */
.post-grid { margin-top: 0; }
.post-related .post-grid { margin-top: 40px; }
.post-card { height: 100%; }
.post-card .link-card__title { line-height: 1.3; }
.post-card .link-card__cta { margin-top: auto; padding-top: 18px; }
.post-card--featured { grid-column: 1 / -1; background: var(--soft); }
.post-card--featured .link-card__title { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; max-width: 760px; }
.post-card--featured .link-card__text { max-width: 720px; font-size: 16px; }

/* Space between the last section and the CTA band */
.post-band { padding-top: 96px; }
@media (max-width: 720px) { .post-band { padding-top: 72px; } }
