/* Shared blog article layout. Scoped to body.post-page so service, about and contact pages are unaffected. */
.read-progress{position:fixed;z-index:30;top:0;left:0;width:100%;height:3px;background:#006cd2;transform:scaleX(0);transform-origin:0 50%;pointer-events:none}

/* Hero: centred on the same axis as the body */
.post-page .pagehero{text-align:center}
.post-page .pagehero .headline{max-width:900px;margin-left:auto;margin-right:auto;font-size:clamp(2rem,4.2vw,3.1rem);line-height:1.15}
.post-page .pagehero .lede{max-width:760px;margin-left:auto;margin-right:auto}
.post-page .pagehero .post-meta{margin-top:18px}

/* Reading column */
.post-page main.section{padding-top:clamp(40px,6vh,72px)}
.post-page .prose{max-width:720px;margin:0 auto}
.post-page .prose>p:not([class]),.post-page .prose>ol:not(.sp-refs),.post-page .prose>ul{font-size:clamp(17px,1.4vw,18.5px);line-height:1.7;color:#2f3a42}
.post-page .prose>ol:not(.sp-refs)>li,.post-page .prose>ul>li{margin-top:10px}
.post-page .prose>p.sp-cap{font-size:14px;color:#6b7378;line-height:1.5}
.post-page .prose>p:not([class]){margin-top:18px}
.post-page .prose h2{margin-top:56px;scroll-margin-top:110px}
.post-page .prose>p:first-child{margin-top:0}
.post-page .prose img,.post-page .prose figure{max-width:100%}
.post-page .prose .dk-url,.post-page .prose a{overflow-wrap:anywhere}

/* Back link */
.post-back{margin-top:56px;padding-top:24px;border-top:1px solid #ececec}
.post-back a{display:inline-block;color:#006cd2;font-weight:600;font-size:16px}

/* Table of contents */
.toc ol{list-style:none;margin:0;padding:0;counter-reset:toc}
.toc li{counter-increment:toc;margin:0}
.toc a{display:flex;gap:10px;padding:7px 0 7px 12px;border-left:2px solid #ececec;color:#59646d;font-size:14px;font-weight:500;line-height:1.4;transition:color .2s,border-color .2s}
.toc a::before{content:counter(toc,decimal-leading-zero);flex:0 0 auto;color:#9aa3aa;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;padding-top:1px}
.toc a:hover{color:#006cd2}
.toc a:focus-visible{outline:2px solid #006cd2;outline-offset:2px}
.toc a.is-active{color:#006cd2;border-left-color:#006cd2;font-weight:600}
.toc a.is-active::before{color:#006cd2}
.toc__title{margin:0 0 10px;color:#0a0a0a;font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}

/* Mobile / tablet: collapsible Contents box */
.toc--side{display:none}
.toc--mobile{display:block;max-width:720px;margin:24px auto 0;padding:0;border:1px solid #dfe3e7;background:#fff;text-align:left}
.toc--mobile summary{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;cursor:pointer;list-style:none;color:#0a0a0a;font-size:15px;font-weight:600}
.toc--mobile summary::-webkit-details-marker{display:none}
.toc--mobile summary::after{content:"+";color:#006cd2;font-size:1.3rem;line-height:1}
.toc--mobile[open] summary::after{content:"\2212"}
.toc--mobile summary:focus-visible{outline:2px solid #006cd2;outline-offset:2px}
.toc--mobile nav{padding:0 18px 14px}
.toc--mobile a{font-size:15px;padding:9px 0 9px 12px}

/* Desktop */
@media(min-width:1100px){
.toc--mobile{display:none}
.post-page main.section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,700px) minmax(0,1fr)}
.post-page main.section>article.prose{grid-column:2;grid-row:1;max-width:none;margin:0}
.toc--side{display:block;grid-column:1;grid-row:1;justify-self:end;align-self:start;position:sticky;top:110px;width:min(220px,calc(100% - 32px));margin-right:32px;max-height:calc(100vh - 140px);overflow-y:auto}
}
@media(min-width:1400px){
.toc--side{width:min(220px,calc(100% - 96px));margin-right:96px}
}
/* In-article call-to-action button: keep white text despite .prose a */
.post-page .prose a.btn{color:#fff;font-weight:500;text-decoration:none;margin-top:6px}
.post-page .prose a.btn:hover{text-decoration:none}

/* Byline: author avatar, name, date and reading time */
.post-byline{display:inline-flex;align-items:center;gap:12px;margin-top:22px;text-align:left}
.post-byline img{flex:0 0 auto;width:48px;height:48px;border-radius:50%;background:#f5ece2;object-fit:cover}
.post-byline__name{display:block;color:#0a0a0a;font-size:15px;font-weight:600;line-height:1.3}
.post-byline__meta{display:block;color:#6b7378;font-size:14px;line-height:1.4}

/* Cover image: same centre axis as the reading column */
.post-cover{max-width:960px;margin:clamp(28px,4vw,44px) auto 0}
.post-cover figcaption{margin-top:8px;color:#6b7378;font-size:13px;text-align:left}
.post-cover img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border:1px solid #ececec}

/* Graphs and tables sit exactly on the text column */
.post-page .prose figure,.post-page .prose .sp-chart,.post-page .prose .sp-tbl,.post-page .prose .sp-stats{margin-left:0;margin-right:0;max-width:100%;box-sizing:border-box}

@media(prefers-reduced-motion:reduce){.read-progress,.toc a{transition:none}}
