/* Blog pages (blog.html, blog-*.html), on top of the site's own CSS. Colours are the site's. */
:root {
  --b-ink: #0b1020; --b-text: #3d4659; --b-muted: #5b6478; --b-line: #e2e6f0; --b-soft: #f5f7ff;
  --b-accent: #3f2b96; --b-accent2: #6a3fd0; --b-band: linear-gradient(135deg, #0b1020 0%, #1c1840 100%);
  --b-band-text: #c9d0e6; --b-shadow: 0 14px 34px rgba(11, 16, 32, .08);
}
.blog-main { background: #fff; padding-bottom: 72px; overflow-x: hidden; }
.blog-narrow { max-width: 820px; margin: 0 auto; }
.blog-band { background: var(--b-band); padding: 64px 0 56px; color: #fff; }
.blog-band h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.2; margin: 14px 0 14px; font-weight: 800; text-transform: none; }
.blog-band .blog-lead { color: var(--b-band-text); font-size: 1.12rem; line-height: 1.65; margin: 0; }
.blog-band .byline { color: var(--b-band-text); opacity: .85; font-size: .92rem; margin: 16px 0 0; }
.blog-eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--b-accent2); }
.blog-back { display: block; color: var(--b-band-text) !important; font-weight: 600; font-size: .92rem; margin-bottom: 16px; }
.blog-back:hover { color: #fff !important; }
.kind { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--b-accent);
        background: var(--b-soft); border-radius: 6px; padding: 3px 9px; }
.kind--light { background: rgba(255, 255, 255, .14); color: #fff; }

.blog { padding-top: 40px; font-size: 1.04rem; }
.blog p, .blog li { color: var(--b-text); font-size: 1.04rem; line-height: 1.75; }
.blog p { margin: 0 0 1.05em; }
.blog h2 { font-size: 1.55rem; color: var(--b-ink); margin: 2em 0 .55em; font-weight: 700; line-height: 1.3; text-transform: none; }
.blog h3 { font-size: 1.2rem; color: var(--b-ink); margin: 1.6em 0 .5em; font-weight: 700; text-transform: none; }
.blog strong { color: var(--b-ink); }
.blog blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--b-accent2); background: var(--b-soft); border-radius: 0 10px 10px 0; color: var(--b-ink); font-size: 1.08rem; font-weight: 600; }
.blog a { color: var(--b-accent); text-decoration: underline; text-underline-offset: 2px; }
.blog ul, .blog ol { margin: 0 0 1.2em 1.4em; padding: 0; }
.blog ul, .blog ul li { list-style: disc outside !important; }
.blog ol, .blog ol li { list-style: decimal outside !important; }
.blog li { margin-bottom: .45em; padding-left: .2em; }
.blog code { background: var(--b-soft); border: 1px solid var(--b-line); border-radius: 5px; padding: 1px 6px; font-size: .9em; color: var(--b-ink);
             font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }
.blog pre.code { background: #0f1424; color: #dfe6f6; border-radius: 12px; padding: 18px 20px; margin: 1.6em 0 .4em; overflow-x: auto;
                 font-size: .86rem; line-height: 1.6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.blog .code-cap { font-size: .88rem; color: var(--b-muted); text-align: center; margin-bottom: 1.6em; }

.diagram { margin: 2em 0; background: #fff; border: 1px solid var(--b-line); border-radius: 14px; padding: 22px 18px 14px; box-shadow: var(--b-shadow); }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { font-size: .9rem; color: var(--b-muted); margin-top: 12px; text-align: center; line-height: 1.5; }

.callout { margin: 1.6em 0; padding: 16px 20px; border-radius: 12px; background: #fff7e6; border: 1px solid #f5d58a; color: #6b4a00; }
.callout, .callout p { color: #6b4a00; font-size: 1rem; } .callout strong { color: #6b4a00; }
.callout.note { background: #eef4ff; border-color: #c8d8fb; } .callout.note, .callout.note p, .callout.note strong { color: #1e3a8a; }

.usecase { margin: 1.8em 0; padding: 24px 26px; border-radius: 14px; background: var(--b-band); }
.usecase h3 { color: #fff; margin: 0 0 .5em; }
.usecase p, .usecase li { color: var(--b-band-text) !important; }
.usecase strong { color: #fff; }
.usecase .who { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--b-accent2); margin-bottom: 4px; }
.usecase p:last-child, .usecase ul:last-child { margin-bottom: 0; }

.steps { counter-reset: s; margin: 1.4em 0 !important; }
.blog .steps, .blog .steps li { list-style: none !important; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 50px !important; margin-left: -1.4em; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--b-accent);
                    color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .95rem; }

.blog table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; background: #fff; border: 1px solid var(--b-line); }
.blog th, .blog td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--b-line); vertical-align: top; color: var(--b-text); }
.blog th { background: var(--b-soft); color: var(--b-ink); font-weight: 700; }

.post-cta { margin-top: 48px; padding: 28px 30px; background: var(--b-soft); border: 1px solid var(--b-line); border-radius: 16px; }
.post-cta h2 { font-size: 1.4rem; color: var(--b-ink); margin: 0 0 8px; text-transform: none; }
.post-cta p { color: var(--b-text); margin: 0 0 18px; }
.blog-btn { display: inline-block; background: var(--b-accent); color: #fff !important; font-weight: 700; padding: 12px 24px; border-radius: 999px; }
.blog-btn:hover { opacity: .92; color: #fff !important; }

.more { margin-top: 56px; } .more.first { margin-top: 44px; }
.more h2 { font-size: 1.4rem; color: var(--b-ink); text-transform: none; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--b-line); border-radius: 14px; overflow: hidden; color: inherit;
             box-shadow: var(--b-shadow); transition: transform .15s; }
.post-card:hover { text-decoration: none; transform: translateY(-2px); }
.post-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid var(--b-line); background: var(--b-soft); }
.post-card div { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.post-card .kind { align-self: flex-start; }
.post-card h3 { margin: 2px 0 0; font-size: 1.12rem; line-height: 1.4; color: var(--b-ink); font-weight: 700; text-transform: none; }
.post-card p { margin: 0; font-size: .93rem; line-height: 1.6; color: var(--b-text); }
.post-card small { color: var(--b-muted); font-size: .84rem; }

@media (max-width: 640px) {
  .blog-band { padding: 40px 0 36px; }
  .blog { padding-top: 28px; }
  .usecase { padding: 18px; }
  .blog table { display: block; overflow-x: auto; font-size: .86rem; }
  .post-grid { grid-template-columns: 1fr; }
  .diagram { padding: 14px 10px 10px; margin-left: -6px; margin-right: -6px; overflow-x: auto; }
  .diagram svg { min-width: 640px; }  /* scroll the diagram sideways rather than shrink its labels */
}
