/* Blog: article list and article pages. The header reuses .phead from service.css; light mode is handled here
   through the --b-* colours (theme.css covers the shared nav, footer and header). */
:root{--b-text:#fff;--b-text-2:rgba(255,255,255,.82);--b-text-3:rgba(255,255,255,.72);--b-line:rgba(255,255,255,.12);
  --b-card:linear-gradient(160deg,#17171a,#111113);--b-cell:rgba(255,255,255,.03);--b-hover:rgba(255,255,255,.05)}
:root:not(.theme-dark){--b-text:#0c0b10;--b-text-2:rgba(12,11,16,.8);--b-text-3:rgba(12,11,16,.66);--b-line:rgba(12,11,16,.12);
  --b-card:#fff;--b-cell:rgba(12,11,16,.025);--b-hover:rgba(12,11,16,.04)}

/* ---------- Header extras ---------- */
.blog-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1.25rem;margin-top:2rem;font-size:.875rem;color:var(--b-text-3)}
/* "All articles": a round chevron button floating at the top left of the article header */
.blog-back{position:absolute;z-index:2;top:calc(132px + 3vh);left:var(--gutter);width:48px;height:48px;border-radius:50%;display:grid;place-items:center;
  color:#fff;background:var(--glass-fill-strong,rgba(255,255,255,.1));border:1px solid var(--glass-edge,rgba(255,255,255,.24));box-shadow:var(--glass-shadow);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);transition:transform .3s,background .3s}
.blog-back:hover{transform:translateX(-2px);background:var(--glass-fill-hover,rgba(255,255,255,.16))}
:root:not(.theme-dark) .blog-back{color:#0c0b10;background:#fff;border-color:rgba(12,11,16,.1);box-shadow:0 1px 2px rgba(20,26,48,.06),0 10px 28px rgba(20,26,48,.1)}
@media (max-width:767px){.blog-back{top:calc(96px + 2vh);width:42px;height:42px}}

/* ---------- Article list ---------- */
.post-list{display:grid;gap:1.5rem;box-sizing:content-box;max-width:64rem;margin:0 auto;padding:1rem var(--gutter) 8rem}
.post{display:block;border-radius:30px;padding:8px;background:rgba(255,255,255,.03);border:1px solid var(--b-line);transition:transform .4s cubic-bezier(.2,.7,.2,1)}
:root:not(.theme-dark) .post{background:rgba(12,11,16,.03)}
.post:hover{transform:translateY(-3px)}
.post-in{position:relative;display:grid;gap:1.5rem;border-radius:22px;padding:1.25rem 1.25rem 1.5rem;background:var(--b-card);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.post-media{border-radius:16px;overflow:hidden;aspect-ratio:16/9;background:#08080b}
.post-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.post:hover .post-media img{transform:scale(1.03)}
.post-text{padding:0 .75rem}
@media (min-width:900px){.post-wide .post-in{grid-template-columns:minmax(0,1fr) 400px;align-items:center;gap:2.5rem;padding:1.25rem 1.25rem 1.25rem 2.25rem}.post-wide .post-media{order:2}.post-wide .post-text{padding:0}}
.post-kicker{font-size:.8125rem;letter-spacing:.04em;color:var(--b-text-3)}
.post h2{margin-top:.75rem;max-width:24ch;font-size:clamp(1.6rem,2.6vw,2.25rem);font-weight:400;line-height:1.12;letter-spacing:-.02em;color:var(--b-text)}
.post p.post-dek{margin-top:.9rem;max-width:44rem;font-size:1rem;line-height:1.6;color:var(--b-text-2)}
.post-foot{margin-top:1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;font-size:.8125rem;color:var(--b-text-3)}
.post-go{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--b-line);color:var(--b-text);transition:background .3s}
.post:hover .post-go{background:var(--b-hover)}

/* ---------- Article body ---------- */
/* the side padding sits outside the reading width (content-box), so the text column stays ~44rem on every screen */
.prose{box-sizing:content-box;max-width:44rem;margin:0 auto;padding:1rem var(--gutter) 5rem;font-size:max(17px,1.125rem);line-height:1.75;color:var(--b-text-2)}
.prose>*+*{margin-top:1.25rem}
.prose h2{margin-top:3.5rem;font-size:clamp(1.6rem,2.4vw,2.1rem);font-weight:400;line-height:1.15;letter-spacing:-.02em;color:var(--b-text)}
.prose h3{margin-top:2.25rem;font-size:1.3rem;font-weight:500;line-height:1.3;letter-spacing:-.01em;color:var(--b-text)}
.prose h2+*,.prose h3+*{margin-top:.9rem}
.prose strong{font-weight:600;color:var(--b-text)}
.prose a{color:var(--b-text);text-decoration:underline;text-decoration-color:rgba(255,146,207,.7);text-decoration-thickness:1px;text-underline-offset:4px}
.prose a:hover{text-decoration-color:currentColor}
.prose ul,.prose ol{display:grid;gap:.6rem;padding-left:0}
.prose li{position:relative;padding-left:1.6rem}
.prose ul>li::before{content:"";position:absolute;left:.15rem;top:.72em;width:7px;height:7px;border-radius:50%;background:linear-gradient(135deg,#ff92cf,#ffd98a 50%,#6f9dff)}
.prose ol{counter-reset:n}
.prose ol>li{counter-increment:n}
.prose ol>li::before{content:counter(n);position:absolute;left:0;top:.1em;font-size:.875rem;font-weight:500;color:var(--b-text-3)}
.prose .lead{font-size:1.3rem;line-height:1.6;color:var(--b-text)}
.prose blockquote{margin-top:2.5rem;margin-bottom:2.5rem;padding:1.75rem 2rem;border-radius:22px;background:var(--b-card);border:1px solid var(--b-line);
  font-family:var(--serif);font-style:italic;font-size:1.6rem;line-height:1.3;color:var(--b-text)}
.prose hr{margin:3rem 0;border:0;height:1px;background:linear-gradient(90deg,transparent,rgba(111,157,255,.55) 35%,rgba(255,146,207,.6) 65%,transparent)}

/* Example table inside the tables article */
.demo{margin-top:2rem;margin-bottom:2rem;border-radius:22px;border:1px solid var(--b-line);background:var(--b-card);overflow:hidden}
.demo-scroll{overflow-x:auto}
.demo table{width:100%;min-width:560px;border-collapse:collapse;font-size:.9375rem;line-height:1.4}
.demo caption{padding:1rem 1.25rem;text-align:left;font-size:.8125rem;color:var(--b-text-3);caption-side:top}
.demo th{position:sticky;top:0;padding:.75rem 1.25rem;text-align:left;font-size:.8125rem;font-weight:500;color:var(--b-text-3);background:var(--b-cell);border-bottom:1px solid var(--b-line);white-space:nowrap}
.demo td{padding:.85rem 1.25rem;border-bottom:1px solid var(--b-line);color:var(--b-text)}
.demo tr:last-child td{border-bottom:0}
.demo tbody tr:hover td{background:var(--b-hover)}
.demo .num{text-align:right;font-variant-numeric:tabular-nums}
.demo .sub{display:block;font-size:.8125rem;color:var(--b-text-3)}
.b-status{display:inline-flex;align-items:center;gap:.4rem;padding:.2rem .65rem;border-radius:999px;font-size:.8125rem;border:1px solid var(--b-line);white-space:nowrap}
.b-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.b-status-ok{color:#4fd1a1}.b-status-warn{color:#f5c56b}.b-status-risk{color:#ff8a8a}
:root:not(.theme-dark) .b-status-ok{color:#14805a}:root:not(.theme-dark) .b-status-warn{color:#9a6a00}:root:not(.theme-dark) .b-status-risk{color:#c23a3a}

/* ---------- End of article ---------- */
.article-end{box-sizing:content-box;max-width:64rem;margin:0 auto;padding:0 var(--gutter) 8rem}
.article-cta{border-radius:30px;padding:8px;border:1px solid var(--b-line)}
.article-cta-in{display:flex;flex-direction:column;gap:1.5rem;align-items:flex-start;padding:2.5rem;border-radius:22px;
  background:radial-gradient(70% 90% at 0% 100%,rgba(255,146,207,.22),transparent 60%),radial-gradient(60% 80% at 100% 0%,rgba(111,157,255,.24),transparent 60%),var(--b-card)}
.article-cta h2{font-size:clamp(1.8rem,3vw,2.6rem);font-weight:300;line-height:1.08;letter-spacing:-.02em;color:var(--b-text)}
.article-cta p{max-width:36rem;color:var(--b-text-2);line-height:1.6}
@media (min-width:900px){.article-cta-in{flex-direction:row;align-items:center;justify-content:space-between}}
.more{margin-top:4rem}
.more>p{margin-bottom:1.25rem;font-size:.8125rem;letter-spacing:.04em;color:var(--b-text-3)}
.more .post-list{box-sizing:border-box;padding:0;max-width:none}
@media (min-width:900px){.more .post-list{grid-template-columns:1fr 1fr}}

/* Article titles are longer than service headlines: a smaller size so they sit on two or three lines */
.blog-article .phead-title{max-width:20ch;margin-left:auto;margin-right:auto;font-size:clamp(2.4rem,5vw,4.5rem);line-height:1.02}
.blog-article .phead-sub{max-width:38rem}
.prose code{font:500 .875em/1 ui-monospace,SFMono-Regular,Menlo,monospace;padding:.15em .4em;border-radius:6px;background:var(--b-cell);border:1px solid var(--b-line);color:var(--b-text)}
/* the header glow fades out past the header instead of stopping at a hard edge */
body[data-page="blog"] .phead{overflow-x:clip;overflow-y:visible}

/* Article illustration: framed like the work cards, between the header and the text */
.blog-figure{box-sizing:content-box;max-width:64rem;margin:0 auto 3.5rem;padding:0 var(--gutter)}
.blog-figure-in{border-radius:30px;padding:8px;border:1px solid var(--b-line);background:rgba(255,255,255,.03)}
:root:not(.theme-dark) .blog-figure-in{background:rgba(12,11,16,.03)}
.blog-figure img{display:block;width:100%;height:auto;border-radius:22px}
