/* draftplane.com blog: the index and articles, on top of draftplane.css (the --dp-* colours). */
:root { --bp-coral: var(--dp-red); --bp-coral-dark: var(--dp-red-dark); --bp-navy: var(--dp-ink);
        --bp-ink: var(--dp-ink); --bp-text: var(--dp-text); --bp-muted: var(--dp-muted); --bp-line: var(--dp-line); --bp-mist: var(--dp-mist);
        --bp-shadow: 0 8px 24px rgba(20, 24, 46, .08); --bp-shadow-2: 0 18px 44px rgba(20, 24, 46, .16); }
.blog-head { background: radial-gradient(700px 300px at 10% 0%, rgba(200, 16, 46, .35), transparent 70%), radial-gradient(700px 320px at 100% 100%, rgba(29, 63, 163, .55), transparent 70%), var(--dp-ink); color: #fff; }
.blog-head h1 { color: #fff; font-weight: 800; }
.blog-head p { color: rgba(255, 255, 255, .9); font-size: 1.05rem; line-height: 1.7; }
.blog-body { padding: 56px 0; }
.blog-prose { max-width: 820px; margin: 0 auto; color: var(--bp-text); line-height: 1.75; }
.blog-prose h2, .blog-prose h3 { color: var(--bp-navy); font-weight: 700; margin: 28px 0 12px; }
.blog-prose h3 { font-size: 1.15rem; }
.blog-prose p { font-size: 1.04rem; line-height: 1.75; }
.blog-head { text-align: left; padding: 56px 0 48px; }
.blog-head .container { max-width: 900px; }
.blog-head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; margin: 12px 0 12px; }
.blog-head p { margin: 0; max-width: none; }
.blog-head .byline { margin-top: 14px; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.blog-head .back { display: inline-block; color: rgba(255, 255, 255, .85); font-weight: 600; margin-bottom: 14px; font-size: .95rem; }
.blog-head .back:hover { color: #fff; }
.blog-head .kind { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
                   background: rgba(255, 255, 255, .16); color: #fff; border-radius: 6px; padding: 4px 9px; }

.blog { font-size: 1.04rem; }
.blog p, .blog li { color: var(--bp-text); }
.blog h2 { font-size: 1.45rem; margin-top: 2em; }
.blog h3 { margin-top: 1.5em; }
.blog strong { color: var(--bp-navy); }
.blog ul, .blog ol { padding-left: 1.3em; margin-bottom: 1em; }
.blog ul li { list-style: disc; margin-bottom: .35em; }
.blog ol li { list-style: decimal; margin-bottom: .35em; }
.blog a { color: var(--dp-blue); text-decoration: underline; text-underline-offset: 2px; }

.shot { margin: 1.8em 0; }
.shot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--bp-line); box-shadow: var(--bp-shadow); background: #fff; }
.shot.narrow img { max-width: 520px; display: block; margin: 0 auto; }
.shot figcaption, .diagram figcaption { font-size: .88rem; color: var(--dp-muted); margin-top: 10px; text-align: center; line-height: 1.5; }
.diagram { margin: 2em 0; background: #fff; border: 1px solid var(--bp-line); border-radius: 14px; padding: 22px 18px 14px; box-shadow: var(--bp-shadow); }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram text { font-family: "Inter", system-ui, sans-serif; }

.callout { margin: 1.6em 0; padding: 16px 20px; border-radius: 12px; background: #fff7e6; border: 1px solid #f5d58a; color: #6b4a00; }
.callout p, .callout strong { color: #6b4a00; margin: 0; }
.callout.note { background: var(--dp-blue-soft); border-color: #c9d3f0; color: var(--dp-blue-dark); }
.callout.note p, .callout.note strong { color: var(--dp-blue-dark); }

.usecase { margin: 1.8em 0; padding: 22px 24px; border-radius: 16px; background: var(--bp-ink); }
.usecase h3 { color: #fff; margin: 0 0 .5em; }
.usecase p, .usecase li { color: #dfe3f5 !important; }
.usecase strong { color: #fff; }
.usecase .who { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #ff8a9a; margin-bottom: 6px; }

.blog ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.4em 0; }
.blog ol.steps li { list-style: none; counter-increment: s; position: relative; padding: 4px 0 14px 50px; }
.blog ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
                            background: var(--bp-coral); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.blog table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; background: #fff; border: 1px solid var(--bp-line); }
.blog th, .blog td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bp-line); vertical-align: top; color: var(--bp-text); }
.blog th { background: var(--bp-mist); color: var(--bp-navy); font-weight: 700; }
.table-wrap { overflow-x: auto; }

.post-cta { margin-top: 48px; padding: 28px; background: linear-gradient(135deg, rgba(200,16,46,.06), rgba(29,63,163,.07)); border: 1px solid var(--bp-line); border-radius: 16px; }
.post-cta h2 { font-size: 1.35rem; margin-top: 0; }
.more { margin-top: 56px; }
.more h2 { font-size: 1.35rem; color: var(--bp-navy); font-weight: 700; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 22px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bp-line); border-radius: 16px; overflow: hidden;
             color: inherit; box-shadow: var(--bp-shadow); transition: transform .15s, box-shadow .15s; }
.post-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--bp-shadow-2); }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--bp-line); }
.post-card div { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.post-card .kind { align-self: flex-start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--bp-coral-dark);
                   background: var(--dp-red-soft); border-radius: 6px; padding: 3px 8px; }
.post-card h3 { margin: 4px 0 0; font-size: 1.12rem; color: var(--bp-navy); font-weight: 700; line-height: 1.35; }
.post-card p { margin: 0; font-size: .93rem; color: var(--dp-muted); line-height: 1.55; }
.post-card small { color: var(--dp-muted); font-size: 13px; }
@media (max-width: 640px) {
  .blog-head { padding: 36px 0 32px; }
  .usecase { padding: 18px; }
  .blog table { font-size: .84rem; }
  .post-grid { grid-template-columns: 1fr; }
  .diagram { padding: 14px 10px 10px; }
}
.blog-head .kind { background: var(--dp-red); font-size: .75rem; }
.blog-head .back { padding: 8px 0; }
.blog-head h1 { color: #fff; }
.post-card:hover h3 { color: var(--dp-red); }
.blog-body .container { max-width: 1200px; }
.post-card, .post-card:hover { text-decoration: none; color: inherit; }
.blog-body .post-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.blog-body .more .post-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
