/* Field guides and worked examples moved from the Kafka, Flink and Insurance POD sites (blog-*.html).
   Their bodies use five building blocks: diagram figures, callouts, worked-example boxes, numbered steps
   and code blocks. Styled here in the site's palette, on top of .post-body in verticle-serve.css. */

.post-body .diagram { margin: 32px 0; background: #fff; border: 1px solid var(--vs-line); border-radius: 14px;
    padding: 22px 18px 14px; box-shadow: 0 10px 25px rgba(15, 23, 42, .04); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-body .diagram svg { display: block; width: 100%; min-width: 600px; height: auto; margin: 0 auto; }
.post-body .diagram figcaption { font-size: .88rem; color: #5b6486; margin-top: 12px; text-align: center; line-height: 1.55; }

.post-body .callout { margin: 26px 0; padding: 16px 20px; border-radius: 0 12px 12px 0; background: #fff7ed;
    border-left: 4px solid #d97706; color: #6b3d00; }
.post-body .callout, .post-body .callout p, .post-body .callout strong { color: #6b3d00; }
.post-body .callout p:last-child { margin-bottom: 0; }
.post-body .callout.note { background: #f3f1ff; border-left-color: var(--vs-violet-deep); }
.post-body .callout.note, .post-body .callout.note p, .post-body .callout.note strong { color: #2e2594; }

.post-body .usecase { margin: 30px 0; padding: 24px 26px; border-radius: 16px;
    background: radial-gradient(600px 300px at 100% 0, rgba(34, 211, 238, .16), transparent 60%), linear-gradient(160deg, #0b1020 0%, #1c2240 100%); }
.post-body .usecase h3 { color: #fff; margin: 0 0 10px; }
.post-body .usecase p, .post-body .usecase li { color: #d6dbf5 !important; }
.post-body .usecase strong { color: #fff; }
.post-body .usecase a { color: #a5f3fc; }
.post-body .usecase code { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.post-body .usecase .who { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: #9fe7f5; margin-bottom: 6px; }
.post-body .usecase p:last-child, .post-body .usecase ul:last-child { margin-bottom: 0; }

.post-body ol.steps { counter-reset: s; margin: 22px 0 !important; padding-left: 0 !important; list-style: none !important; }
.post-body ol.steps li { counter-increment: s; position: relative; padding: 0 0 14px 50px !important; margin-left: 0 !important; list-style: none !important; }
.post-body ol.steps li::marker { content: ""; }
.post-body ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
    background: var(--vs-violet-deep); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .95rem; }

.post-body pre.code { background: var(--vs-ink); color: #e2e8f0; border-radius: 12px; padding: 18px 20px; margin: 24px 0 6px;
    overflow-x: auto; font-size: .85rem; line-height: 1.6; white-space: pre; font-family: SFMono-Regular, Menlo, Consolas, monospace; }
.post-body .code-cap { font-size: .86rem; color: #5b6486; text-align: center; margin-bottom: 24px; }

.post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .93rem; background: #fff; border: 1px solid var(--vs-line); }
.post-body th, .post-body td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--vs-line); vertical-align: top; }
.post-body th { background: var(--vs-ink); color: #fff; font-weight: 600; }
.post-body tr:nth-child(even) td { background: #f8f9ff; }

.post-moved { margin: 0 0 26px; padding: 12px 16px; border-radius: 12px; background: var(--vs-mist); border: 1px solid var(--vs-line);
    font-size: .9rem; color: #4a5070; line-height: 1.55; }
.post-moved a { font-weight: 600; }

.post-next { max-width: 1080px; margin: 0 auto; padding: 0 15px 10px; }
.post-next h2 { font-size: 22px; font-weight: 700; color: var(--vs-ink); margin: 0 0 6px; }
.post-next ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.post-next li { border-top: 1px solid var(--vs-line); }
.post-next a { display: block; padding: 14px 0; text-decoration: none; }
.post-next .k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0e7490; }
.post-next .t { display: block; font-size: 15.5px; font-weight: 700; color: var(--vs-ink); line-height: 1.4; }
.post-next a:hover .t { color: var(--vs-violet-deep); }
.post-shell > * { min-width: 0; }

@media (max-width: 767px) {
    .post-body table { display: block; overflow-x: auto; font-size: .86rem; }
    .post-body .usecase { padding: 18px; }
    .post-body .diagram { padding: 14px 10px 10px; }
    .post-next ul { grid-template-columns: 1fr; }
}
