/* Blog article typography. Palette and type follow the static pages:
   ink greys, brand indigo, amber accents, Inter for text, Fraunces for display. */

.post-body { max-width: 44rem; color: #334155; font-size: 1.0625rem; line-height: 1.75; }
.post-body > * + * { margin-top: 1.15rem; }
.post-body h2 {
  font-family: Fraunces, Georgia, serif; font-weight: 700; color: #0f172a;
  font-size: 1.75rem; line-height: 1.2; margin-top: 2.75rem; scroll-margin-top: 6rem;
}
.post-body h3 {
  font-family: Fraunces, Georgia, serif; font-weight: 600; color: #0f172a;
  font-size: 1.25rem; line-height: 1.3; margin-top: 2rem; scroll-margin-top: 6rem;
}
.post-body h2 + *, .post-body h3 + * { margin-top: 0.75rem; }
.post-body a { color: #4338ca; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body a:hover { color: #312e81; }
.post-body strong { color: #0f172a; font-weight: 600; }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: 0.45rem; }
.post-body li::marker { color: #6366f1; }
.post-body code { font-size: 0.9em; background: #f1f5f9; padding: 0.1rem 0.35rem; border-radius: 0.35rem; }

.post-body .callout {
  border-left: 3px solid #f59e0b; background: #fffbeb; border-radius: 0 0.875rem 0.875rem 0;
  padding: 1rem 1.25rem; color: #1e293b; font-size: 1rem;
}

.post-body .table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 0.875rem; background: #fff; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 0.925rem; line-height: 1.5; }
.post-body th { text-align: left; font-weight: 600; color: #0f172a; background: #f8fafc; padding: 0.7rem 0.9rem; border-bottom: 1px solid #e2e8f0; }
.post-body td { padding: 0.7rem 0.9rem; border-top: 1px solid #f1f5f9; vertical-align: top; }
.post-body tr:first-child td { border-top: 0; }

.post-body .figure { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.25rem 1.25rem 1.1rem; }
.post-body .figure figcaption {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: #64748b; margin-bottom: 1rem;
}
.post-body .bars { display: grid; gap: 0.85rem; }
.post-body .bar-row { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr auto; gap: 0.35rem 0.85rem; align-items: center; }
.post-body .bar-label { font-size: 0.875rem; color: #334155; line-height: 1.3; }
.post-body .bar-track { height: 0.75rem; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.post-body .bar-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #4338ca); border-radius: 999px; }
.post-body .bar-row:nth-child(even) .bar-fill { background: linear-gradient(90deg, #fbbf24, #d97706); }
.post-body .bar-value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; font-weight: 600; color: #0f172a; white-space: nowrap; }
.post-body .bar-note { grid-column: 2 / -1; font-size: 0.8rem; color: #64748b; line-height: 1.4; margin-top: -0.15rem; }
@media (max-width: 520px) {
  .post-body .bar-row { grid-template-columns: 1fr auto; }
  .post-body .bar-label { grid-column: 1 / -1; }
  .post-body .bar-note { grid-column: 1 / -1; }
}

.post-body .steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.post-body .steps li { position: relative; padding: 0 0 1.1rem 2.25rem; margin: 0; }
.post-body .steps li + li { margin-top: 0; }
.post-body .steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0.05rem;
  width: 1.5rem; height: 1.5rem; border-radius: 999px; background: #4f46e5; color: #fff;
  font-size: 0.75rem; font-weight: 700; display: grid; place-items: center;
}
.post-body .steps li:not(:last-child)::after {
  content: ''; position: absolute; left: 0.72rem; top: 1.75rem; bottom: 0.2rem; width: 2px; background: #e0e7ff;
}
.post-body .step-when { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #4338ca; }
.post-body .step-head { font-weight: 600; color: #0f172a; line-height: 1.35; }
.post-body .steps p { font-size: 0.925rem; line-height: 1.6; color: #475569; margin-top: 0.25rem; }

.post-body .sources { margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid #e2e8f0; }
.post-body .sources h2 { margin-top: 0; font-size: 1.35rem; }
.post-body .sources ol { font-size: 0.9rem; line-height: 1.55; margin-top: 1rem; }
.post-body .sources a { word-break: break-word; }

.post-body .cta {
  margin-top: 3rem; border-radius: 1.25rem; padding: 1.75rem 1.75rem 1.9rem; color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #312e81 100%);
}
.post-body .cta .cta-title { font-family: Fraunces, Georgia, serif; color: #fff; font-size: 1.45rem; line-height: 1.25; font-weight: 600; margin-top: 0; }
.post-body .cta p { color: rgba(255, 255, 255, 0.78); font-size: 0.975rem; margin-top: 0.6rem; }
.post-body .cta a { text-decoration: none; }
.post-body .cta .cta-primary { display: inline-flex; padding: 0.6rem 1.1rem; border-radius: 0.75rem; background: #fff; color: #0f172a; font-weight: 600; font-size: 0.9rem; }
.post-body .cta .cta-primary:hover { background: #f1f5f9; color: #0f172a; }
.post-body .cta .cta-secondary { display: inline-flex; padding: 0.6rem 1.1rem; border-radius: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; font-weight: 500; font-size: 0.9rem; }
.post-body .cta .cta-secondary:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.toc { list-style: none; padding: 0; margin: 0; border-left: 2px solid #e2e8f0; }
.toc li a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; margin-left: -2px; border-left: 2px solid transparent; font-size: 0.85rem; line-height: 1.4; color: #64748b; }
.toc li a:hover { color: #0f172a; border-left-color: #6366f1; }

.post-card h2, .post-card h3 { overflow-wrap: anywhere; }

/* Figures: stat tiles, comparisons, icon cards */
.post-body .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; }
.post-body .stat { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.875rem; padding: 0.9rem 1rem; }
.post-body .stat-v { font-family: Fraunces, Georgia, serif; font-size: 2rem; font-weight: 700; line-height: 1.05; color: #4338ca; }
.post-body .stat:nth-child(3n+2) .stat-v { color: #b45309; }
.post-body .stat:nth-child(3n+3) .stat-v { color: #047857; }
.post-body .stat-l { font-size: 0.875rem; font-weight: 600; color: #0f172a; line-height: 1.35; margin-top: 0.35rem; }
.post-body .stat-n { font-size: 0.78rem; color: #64748b; line-height: 1.4; margin-top: 0.25rem; }
.post-body .compare { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .post-body .compare { grid-template-columns: 1fr 1fr; } }
.post-body .compare-col { border-radius: 0.875rem; padding: 0.9rem 1rem; }
.post-body .compare-a { background: #f8fafc; border: 1px solid #e2e8f0; }
.post-body .compare-b { background: #ecfdf5; border: 1px solid #a7f3d0; }
.post-body .compare-h { font-weight: 700; color: #0f172a; font-size: 0.95rem; margin-bottom: 0.5rem; }
.post-body .compare ul { list-style: none; padding: 0; margin: 0; }
.post-body .compare li { display: flex; gap: 0.5rem; font-size: 0.9rem; line-height: 1.45; margin-top: 0.45rem; color: #334155; }
.post-body .compare-a li svg { color: #94a3b8; }
.post-body .compare-b li svg { color: #059669; }
.post-body .icards { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 640px) { .post-body .icards { grid-template-columns: 1fr 1fr; } }
.post-body .icard { display: flex; gap: 0.75rem; align-items: flex-start; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.875rem; padding: 0.85rem 0.95rem; }
.post-body .icard-i { width: 2.25rem; height: 2.25rem; border-radius: 0.65rem; display: grid; place-items: center; flex-shrink: 0; background: #eef2ff; color: #4338ca; }
.post-body .icard:nth-child(4n+2) .icard-i { background: #fef3c7; color: #b45309; }
.post-body .icard:nth-child(4n+3) .icard-i { background: #d1fae5; color: #047857; }
.post-body .icard:nth-child(4n+4) .icard-i { background: #ffe4e6; color: #be123c; }
.post-body .icard-h { font-weight: 600; color: #0f172a; font-size: 0.95rem; line-height: 1.3; }
.post-body .icard-t { font-size: 0.875rem; color: #475569; line-height: 1.45; margin-top: 0.2rem; }
