/* Loaded only by the blog: a light editorial surface and shared masthead. */
:root{color-scheme:light;--paper:#fff;--surface:#f6f8fa;--ink:#18212b;--muted:#526170;--section-ground:#f6f8fa;--figure-ground:#f6f8fa;--panel:#eef3f7;--line:#d0d7de;--accent:#0969a8;--ice:#234d68;--button-bg:#18212b;--button-ink:#fff;--success:#187044;--danger:#b33d32;}
.blog-header{position:sticky;top:0;z-index:5;background:var(--paper);border-bottom:1px solid var(--line);padding:24px 40px;}
.blog-masthead{display:flex;align-items:center;gap:22px;max-width:1280px;margin-inline:auto;}
.blog-logo{display:flex;align-items:center;justify-content:center;min-width:60px;min-height:48px;}
.blog-logo img{display:block;width:60px;height:48px;object-fit:contain;}
.blog-header-slash{font-size:42px;font-weight:400;line-height:1;color:#89939d;}
.blog-home{display:inline-flex;align-items:center;min-height:48px;font-size:42px;font-weight:600;line-height:1.1;letter-spacing:-.045em;text-decoration:none;}

.post-layout{max-width:1240px;margin-inline:auto;padding:0 32px 104px;}
.post{max-width:760px;margin-inline:auto;}
.post{padding-top:54px;}
.docs-breadcrumb a{color:var(--accent);text-decoration:none;}
.docs-breadcrumb a:hover{text-decoration:underline;text-underline-offset:4px;}

.post-title{font-size:clamp(34px, 4.6vw, 54px);line-height:1.08;letter-spacing:-.045em;margin:0 0 20px;}
.post-subtitle{font-size:19px;line-height:1.65;color:var(--muted);max-width:640px;}

.post-cover{margin:38px 0 0;}
.post-cover img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:10px;}

/* Byline, date and share sit on one rule, the way the article metadata reads. */
.post-meta{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:30px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:13px;}
.post-byline{display:inline-flex;align-items:center;gap:12px;}
.post-author{font-weight:500;}
.post-role{color:var(--muted);}
.post-role::before{content:"\00b7";margin-right:12px;}
.post-avatar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex-shrink:0;border-radius:50%;background:linear-gradient(140deg, #9ad6ff, #4f93c4);color:var(--navy);font-size:14px;font-weight:600;line-height:1;}
.post-date{color:var(--muted);}
.post-share{margin-left:auto;background:transparent;border:1px solid #7995ac70;border-radius:6px;min-height:36px;padding:7px 16px;font:13px/20px var(--sans);transition:background 140ms,border-color 140ms;}
.post-share:hover{background:var(--surface);border-color:var(--accent);}
.post-share:active{transform:translateY(1px);}
.post-share-status{flex-basis:100%;font-size:12px;color:var(--muted);}
.post-share-status:empty{display:none;}

.post-toc{margin-top:40px;padding:22px 26px;border:1px solid var(--line);border-radius:8px;background:var(--surface);}
.post-toc-title{font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--accent);margin-bottom:14px;}
.post-toc ol{margin:0;padding-left:20px;font-size:14px;line-height:1.55;}
.post-toc li{margin:9px 0;}
.post-toc li::marker{color:var(--muted);font:11px var(--mono);}
.post-toc a{text-decoration:none;}
.post-toc a:hover{color:var(--accent);text-decoration:underline;text-underline-offset:4px;}

.post-body{margin-top:42px;font-size:17px;line-height:1.8;}
.post-body p{margin:0 0 24px;}
.post-body h2{font-size:27px;line-height:1.3;letter-spacing:-.025em;margin:50px 0 18px;scroll-margin-top:100px;}
.post-body h3{font-size:20px;line-height:1.4;letter-spacing:-.015em;margin:36px 0 14px;}
.post-body a{color:var(--accent);}
.post-body ul,.post-body ol{margin:0 0 24px;padding-left:24px;}
.post-body li{margin:10px 0;}
.post-body blockquote{margin:0 0 24px;padding:2px 0 2px 22px;border-left:2px solid var(--accent);color:var(--muted);}
.post-body blockquote p{margin:0;}
.post-body pre{border:1px solid var(--line);border-radius:8px;margin-bottom:24px;}
.post-body img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:8px;margin-bottom:24px;}
.post-body hr{border:0;border-top:1px solid var(--line);margin:42px 0;}

.post-figure{margin:38px 0 30px;}
.post-figure figcaption{margin-top:18px;font-size:13px;line-height:1.7;color:var(--muted);}
/* Real text reflows; each alternative remains a complete input-to-output path. */
.pipeline{font-size:14px;line-height:1.6;overflow-wrap:anywhere;}
.pipeline *{min-width:0;}
.pipeline p{margin:0;}
.pipeline .pipeline-label{font-size:13px;font-weight:600;color:var(--muted);margin-bottom:10px;}
.pipeline .pipeline-data{padding:16px;margin:0;background:var(--surface);white-space:pre-wrap;overflow:visible;font:14px/1.7 var(--mono);}
.pipeline-data code{font:inherit;white-space:inherit;overflow-wrap:anywhere;}
.pipeline-tie{color:var(--accent);}
.pipeline-paths{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:24px;margin:24px 0;}
.pipeline-path{display:flex;flex-direction:column;border-left:2px solid var(--line);padding-left:16px;}
.pipeline-plan{border-color:var(--accent);}
.pipeline h3{font-size:16px;line-height:1.4;margin:0 0 8px;letter-spacing:0;}
.pipeline-plan h3{color:var(--accent);}
.pipeline .pipeline-step{font-size:14px;color:var(--muted);margin-bottom:12px;}
.pipeline .pipeline-exit{margin:12px 0 0;}
.pipeline-step::before{content:"↓ ";color:var(--accent);}
.pipeline-call{padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:8px;flex:1;}
.pipeline-plan .pipeline-call{background:#e7f2fa;border-color:#94b8d0;border-style:dashed;}
.pipeline .pipeline-model{font:500 14px/1.6 var(--mono);color:var(--accent);margin-bottom:12px;}
.pipeline-candidates{margin:0;font-size:14px;}
.pipeline-candidates > div{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 12px;padding:6px 0;border-top:1px solid #94b8d066;}
.pipeline-candidates dt{flex:1 1 9em;font-family:var(--mono);}
.pipeline-candidates dd{display:flex;gap:10px;margin:0;color:var(--muted);font-variant-numeric:tabular-nums;}
.pipeline-keep{color:var(--success);font-weight:600;}
.pipeline-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:24px;margin-top:24px;padding-top:24px;border-top:1px solid var(--line);}
.pipeline-metrics dl{display:flex;flex-wrap:wrap;gap:12px 28px;margin:12px 0;}
.pipeline-metrics dt{font-size:14px;color:var(--muted);}
.pipeline-metrics dd{font-size:24px;line-height:1.4;margin:0;letter-spacing:-.03em;}
.pipeline-metrics dl > div:last-child dd,.pipeline-metrics p{color:var(--success);}
.pipeline-metrics p{font-weight:600;}

/* Post furniture: a set-off formula, a takeaways box, numbered citations, one call to action and sources. */
.post-formula{font:600 clamp(15px, 4.2vw, 22px)/1.5 var(--mono);letter-spacing:-.01em;overflow-wrap:anywhere;}
.post-takeaways{margin:34px 0 8px;}
.post-body .post-takeaways-title{font-weight:600;margin-bottom:10px;}
.post-takeaways ul{padding-left:20px;margin-bottom:12px;}

.post-nowrap{white-space:nowrap;}
.post-body .post-cite{font:500 .72em/1 var(--mono);vertical-align:super;text-decoration:none;padding:2px 1px;}
.post-nowrap > .post-cite:first-of-type{margin-left:.45em;}
.post-body .post-cite:hover{text-decoration:underline;text-underline-offset:3px;}
.post-body .post-repo{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px 18px;margin:0 0 28px;padding:18px 20px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);text-decoration:none;transition:border-color 140ms,background 140ms;}
.post-body .post-repo:hover{border-color:var(--accent);background:var(--surface);}
.post-body .post-repo-mark{width:32px;height:32px;margin:0;border:0;border-radius:0;}
.post-repo-copy{display:grid;gap:2px;}
.post-repo-name{font-size:16px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere;}
.post-repo-name strong{color:var(--ink);font-weight:600;white-space:nowrap;}
.post-repo-description{font-size:14px;line-height:1.55;color:var(--muted);}
.post-repo-action{display:inline-flex;align-items:center;min-height:36px;padding:7px 16px;border-radius:6px;background:var(--button-bg);color:var(--button-ink);font:500 13px/20px var(--sans);white-space:nowrap;}
.post-repo-action span{margin-left:.45em;}
@media (max-width:520px){.post-body .post-repo{grid-template-columns:auto minmax(0,1fr);padding:16px;}
.post-repo-action{grid-column:1 / -1;justify-content:center;}
}
.post-sources a span{margin-left:.4em;}
.post-body .post-sources{list-style:none;padding:0;font-size:14px;line-height:1.7;}
.post-sources li{margin:0;padding:18px 0;border-top:1px solid var(--line);scroll-margin-top:110px;overflow-wrap:anywhere;}
.post-sources li:target{background:var(--surface);box-shadow:-14px 0 0 var(--surface),14px 0 0 var(--surface);}
.post-body .post-sources p{margin:0 0 6px;}
.post-body .post-sources p:last-child{margin:0;color:var(--muted);}
.post-body h3{scroll-margin-top:100px;}

.post-body .post-shot img{margin:0;}
.post-shot-narrow img{max-width:481px;}
.post-shot-link{display:block;}
.post-shot picture{display:block;}
/* Flow diagrams: icons, one-word labels and arrows, as real text in normal flow. A row becomes a column; nothing scrolls sideways. */
.flow{font-size:15px;line-height:1.4;overflow-wrap:anywhere;}
.flow *{min-width:0;}
.blog-post .post-body .flow h3,.flow h3{font:500 12px/1.4 var(--mono);letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin:0 0 14px;}
.flow .flow-row{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:56px;margin:0;padding:0;}
.flow .flow-node{position:relative;display:grid;justify-items:center;gap:14px;margin:0;text-align:center;font-size:17px;}
.flow-node strong{font-weight:600;}
.flow-icon{display:grid;place-items:center;width:72px;height:72px;border:1.5px solid var(--ink);border-radius:50%;}
.flow-node-main .flow-icon{background:var(--ink);color:var(--paper);}
.flow-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.flow-icon .flow-fill{fill:currentColor;stroke:none;}
.flow-node:not(:last-child)::after{content:"\2192";position:absolute;left:100%;top:36px;width:56px;transform:translateY(-50%);text-align:center;font-size:24px;line-height:1;color:var(--ink);}
.flow .flow-phases{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:36px;margin:0;padding:0;counter-reset:flow-step;}
.flow .flow-phase{position:relative;margin:0;padding-top:16px;border-top:2px solid var(--line);}
.flow .flow-phase-main{border-top-color:var(--ink);}
.flow-phase-main h3{color:var(--ink);}
.flow-phase:not(:last-child)::after{content:"\2192";position:absolute;left:100%;top:-13px;width:36px;text-align:center;font-size:20px;line-height:1;color:var(--ink);background:var(--paper);}
.flow .flow-steps{list-style:none;display:grid;gap:12px;margin:0;padding:0;}
.flow .flow-steps li{display:flex;align-items:center;gap:10px;margin:0;font-weight:500;counter-increment:flow-step;}
.flow-steps li::before{content:counter(flow-step);flex:none;width:26px;height:26px;border:1px solid var(--ink);border-radius:50%;font:500 12px/24px var(--mono);text-align:center;}
.flow-phase-main .flow-steps li::before{background:var(--ink);color:var(--paper);}
@media (max-width:640px){.flow .flow-row{gap:28px;}
.flow .flow-node{font-size:15px;gap:10px;}
.flow-icon{width:56px;height:56px;}
.flow-icon svg{width:24px;height:24px;}
.flow-node:not(:last-child)::after{top:28px;width:28px;font-size:18px;}
.flow .flow-phases{grid-template-columns:1fr;gap:0;}
.flow .flow-phase{display:grid;grid-template-columns:5.5rem minmax(0,1fr);align-items:baseline;gap:10px 14px;padding:16px 0;border-top:1px solid var(--line);}
.flow .flow-phase-main{border-top-color:var(--line);}
.flow-phase:not(:last-child)::after{content:none;}
.blog-post .post-body .flow h3,.flow h3{margin:0;}
.flow .flow-steps{display:flex;flex-wrap:wrap;gap:10px 16px;}
}

.post-aside{display:grid;gap:38px;margin-top:58px;padding-top:34px;border-top:1px solid var(--line);}
.post-aside-title{font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin:0 0 16px;}
.post-author-identity{display:inline-flex;align-items:center;gap:14px;font-size:16px;}
.post-avatar-large{width:46px;height:46px;font-size:18px;}
.post-author-bio{margin-top:16px;font-size:14px;line-height:1.75;color:var(--muted);max-width:560px;}
.post-tags ul{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0;}
.post-tags li{border:1px solid #7995ac70;border-radius:999px;padding:7px 15px;font-size:12px;color:var(--muted);}

.post-list{display:grid;gap:36px;list-style:none;max-width:960px;margin:40px auto 0;padding:0;}
.post-card-link{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);align-items:center;gap:28px;text-decoration:none;}
.post-card-copy{min-width:0;}
.post-card-cover{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:55% center;border:1px solid var(--line);border-radius:10px;transition:border-color 140ms;}
.post-card-link:hover .post-card-cover{border-color:var(--accent);}
.post-card-title{font-size:22px;line-height:1.25;letter-spacing:-.025em;margin-bottom:12px;transition:color 140ms;}
.post-card-link:hover .post-card-title{color:var(--accent);}
.post-card-subtitle{font-size:14px;line-height:1.65;color:var(--muted);margin-bottom:16px;}
.post-card-meta{font-size:12px;color:var(--muted);}

.blog{display:flex;flex-direction:column;min-height:100vh;min-height:100svh;}
.blog > .post-layout{width:100%;}
.blog .site-footer{margin-top:auto;}
.post-layout.blog-index{padding-bottom:48px;}
.blog .footer-content{padding-block:16px;gap:16px;}

@media (max-width:900px){.post-layout{padding-inline:24px;}
.blog-header{padding:20px 24px;}
.post{padding-top:40px;}
.post-card-link{gap:26px;}
}
@media (max-width:640px){.post-card-link{grid-template-columns:1fr;gap:24px;}
.post-card-cover{max-width:240px;}
}
@media (max-width:520px){.post-layout{padding-inline:20px;padding-bottom:76px;}
.blog-header{padding:16px 20px;}
.blog-masthead{gap:16px;}
.blog-logo{min-width:48px;}
.blog-logo img{width:48px;height:40px;}
.blog-home,.blog-header-slash{font-size:34px;}
.post-subtitle{font-size:16px;}
.post-cover img{border-radius:8px;}
.post-meta{gap:14px;}
.post-share{margin-left:0;}
.post-toc{padding:18px 20px;}
.post-body{font-size:16px;}
.post-body h2{font-size:24px;}
.post-list{grid-template-columns:1fr;gap:40px;margin-top:38px;}
.post-card-title{font-size:20px;}
}

/* Article page: a dark title band the cover overlaps, one rule under the byline, and the article beside its contents. */
.blog-post .blog-header{background:var(--navy);border-bottom-color:#ffffff1f;color:#f1f8ff;}
.blog-post .blog-header-slash{color:#8b97a5;}
.blog-post .post{max-width:1040px;padding-top:0;}
.post-hero{position:relative;z-index:0;padding-top:44px;color:#f1f8ff;}
.post-hero::before{content:"";position:absolute;z-index:-1;inset:0 0 84px;background:var(--navy);box-shadow:0 0 0 100vmax var(--navy);clip-path:inset(0 -100vmax);}
.post-hero .docs-breadcrumb,.post-hero .docs-breadcrumb a{color:#dbe7f2;}
.post-hero .post-title{max-width:800px;font-size:clamp(30px, 4.4vw, 48px);font-weight:700;line-height:1.1;letter-spacing:-.04em;margin:26px 0 16px;color:#fff;}
.post-hero .post-subtitle{max-width:800px;font-size:17px;line-height:1.55;color:#a9b8c8;}
.post-hero .post-cover{margin:46px 0 0;}
.post-hero .post-cover img{border:0;border-radius:8px;}
.blog-post .post-meta{align-items:center;gap:16px;margin-top:26px;padding:0 0 22px;border-top:0;border-bottom:2px solid var(--accent);font-size:15px;}
.post-credit{display:grid;gap:4px;}
.blog-post .post-byline{gap:0;}
.blog-post .post-author{font-weight:600;}
.blog-post .post-role::before{margin:0 10px;}
.blog-post .post-date{font:13px/1.6 var(--mono);color:var(--muted);}
.post-columns{display:grid;grid-template-columns:minmax(0,700px) minmax(0,272px);justify-content:space-between;gap:48px;align-items:start;margin-top:48px;}
.blog-post .post-body{margin-top:0;}
.blog-post .post-body > :first-child{margin-top:0;}
.blog-post .post-body h2{font-size:32px;font-weight:700;line-height:1.2;letter-spacing:-.03em;margin:56px 0 20px;}
.blog-post .post-body h3{font-size:22px;font-weight:600;}
.post-side{position:sticky;top:122px;display:grid;gap:44px;}
.blog-post .post-tags ul{gap:8px;}
.blog-post .post-tags li{border-color:#8b97a5;color:var(--ink);font-size:14px;padding:4px 14px;}
.post-side-title{font-size:18px;font-weight:600;letter-spacing:-.01em;margin:0;padding-bottom:12px;border-bottom:1px solid var(--line);}
.blog-post .post-toc{margin:0;padding:0;border:0;border-radius:0;background:none;}
.blog-post .post-toc ol{list-style:none;margin:8px 0 0;padding:0;font-size:14px;line-height:1.45;}
.blog-post .post-toc li{margin:0;}
.blog-post .post-toc a{display:block;padding:11px 16px;border-radius:8px;color:var(--ink);text-decoration:none;}
.blog-post .post-toc a:hover{background:var(--surface);color:var(--ink);text-decoration:none;}
.blog-post .post-aside{max-width:700px;margin-top:64px;padding-top:0;border-top:0;}
.blog-post .post-aside-title{font-size:18px;font-weight:600;letter-spacing:-.01em;text-transform:none;color:var(--ink);margin:0 0 22px;padding-bottom:12px;border-bottom:2px solid var(--accent);}
@media (max-width:960px){.post-columns{grid-template-columns:minmax(0,1fr);gap:40px;margin-top:36px;}
.post-side{position:static;}
.post-toc{display:none;}
.post-hero::before{bottom:56px;}
}
@media (max-width:520px){.post-hero{padding-top:28px;}
.post-hero::before{bottom:40px;}
.post-hero .post-title{margin:18px 0 12px;}
.post-hero .post-cover{margin-top:28px;}
.blog-post .post-body h2{font-size:26px;margin-top:44px;}
.blog-post .post-meta{font-size:14px;}
}
