/* map the posts' original tokens to the new palette */
.article{--mint:var(--teal);--sky:var(--teal-ink);--amber:#B8860B;--ink:var(--navy);--ink2:var(--navy-deep);--surface2:var(--teal-tint);--border:var(--line);--border-strong:var(--line-strong);--text2:var(--text-2);--r:4px;--r-lg:8px}
.article .blog-layout{max-width:760px;padding:0 24px}
.article .blog-header{padding:72px 0 32px;border-bottom:1px solid var(--line);margin-bottom:2.5rem}
.article .blog-tag{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--teal-ink);background:var(--teal-tint);border:0;padding:.3rem .6rem;border-radius:3px;font-weight:500}
.article .blog-title{font-family:var(--serif);font-weight:500;font-size:clamp(2rem,4vw,3rem);line-height:1.15;letter-spacing:-.01em;color:var(--text)}
.article .blog-intro{font-family:var(--serif);font-size:1.3rem;line-height:1.55;color:var(--text);border-left:3px solid var(--teal);padding-left:1.25rem}
.article .blog-body h2{font-family:var(--serif);font-weight:500;font-size:1.75rem;color:var(--text);margin:2.6rem 0 1rem}
.article .blog-body h3{font-family:var(--serif);font-weight:500;font-size:1.3rem;color:var(--text);margin:2rem 0 .6rem}
.article .blog-body p,.article .blog-body li{font-size:1.02rem;line-height:1.8;color:var(--text-2)}
.article .blog-body strong{color:var(--text);font-weight:600}
.article .blog-body a{color:var(--teal-ink)}
.article .blog-callout{background:var(--teal-tint);border:0;border-left:3px solid var(--teal);border-radius:0 4px 4px 0}
.article .blog-callout.warning{border-left-color:#B8860B;background:#FBF4E4}
.article .blog-cta{background:var(--navy);color:#fff;border:0;border-radius:8px;padding:2.5rem}
.article .blog-cta h2,.article .blog-cta h3,.article .blog-cta p,.article .blog-cta div{color:#fff!important;margin-top:0}
.article .blog-cta p{color:rgba(255,255,255,.78)!important}
.article .blog-cta .btn{background:#fff;color:var(--navy)}
.article .blog-formula{background:var(--navy);color:#fff;border-radius:6px}
.article table{border-color:var(--line)}
.article th{background:var(--teal-tint);color:var(--text)}
/* index */
.feature{border:1px solid var(--line-strong);border-radius:8px;padding:2.5rem;background:var(--surface);margin-bottom:2.5rem}
.feature h2{font-size:clamp(1.8rem,3.2vw,2.6rem);margin-bottom:.8rem}
.feature h2 a,.posts h3 a{color:inherit;text-decoration:none}
.feature h2 a:hover,.posts h3 a:hover{color:var(--teal-ink)}
.feature .meta,.posts .meta{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.4rem;font-size:.85rem;color:var(--muted)}
.posts{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:0 3rem;border-top:1px solid var(--line)}
.posts li{padding:1.8rem 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column}
.posts .tags{display:flex;gap:.4rem;margin-bottom:.7rem}
.posts .tags span,.feature .tags span{font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;color:var(--teal-ink);background:var(--teal-tint);padding:.25rem .55rem;border-radius:3px;font-weight:500}
.posts h3{font-size:1.45rem;margin-bottom:.6rem}
.posts p{font-size:.93rem;color:var(--text-2);line-height:1.65;flex:1}
@media(max-width:800px){.posts{grid-template-columns:1fr}.feature{padding:1.6rem}}

/* figures */
.article .fig{--f1:var(--navy);--f2:var(--teal);--f3:#8CC5D6;--fgrid:var(--line);--ftx:var(--text-2);--fmu:var(--muted);--fbg:var(--surface);margin:2.2rem 0;padding:1.4rem 1.2rem 1rem;background:var(--fbg);border:1px solid var(--line);border-radius:6px}
.article .fig svg{width:100%;height:auto;display:block;font-family:var(--sans);overflow:visible}
.article .fig text{fill:var(--ftx);font-size:11px}
.article .fig .mu{fill:var(--fmu);font-size:10px}
.article .fig .lb{font-weight:600;fill:var(--text);font-size:11.5px}
.article .fig .gr{stroke:var(--fgrid);stroke-width:1}
.article .fig .ax{stroke:var(--line-strong);stroke-width:1}
.article .fig .b1{fill:var(--f1)}.article .fig .b2{fill:var(--f2)}.article .fig .b3{fill:var(--f3)}
.article .fig .ln{fill:none;stroke:var(--f2);stroke-width:2;stroke-dasharray:5 4}
.article .fig .box{fill:var(--fbg);stroke:var(--line-strong);stroke-width:1}
.article .fig .arr{fill:none;stroke:var(--line-strong);stroke-width:1.5}
.article .fig figcaption{font-size:.82rem;line-height:1.5;color:var(--muted);margin-top:.8rem}
.article .fig .leg{display:flex;gap:1.2rem;flex-wrap:wrap;font-size:.8rem;color:var(--text-2);margin-bottom:.8rem}
.article .fig .leg i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:.4rem;vertical-align:-1px}
.article .fig .leg .k1{background:var(--f1)}.article .fig .leg .k2{background:var(--f2)}.article .fig .leg .k3{background:var(--f3)}
.article .fig .ftitle{font-weight:600;color:var(--text);font-size:.92rem;margin-bottom:.9rem}
.article .blog-body .ex{margin:1.6rem 0;padding:1.2rem 1.3rem;border:1px solid var(--line);border-radius:6px}
.article .blog-body .ex h4{font-family:var(--sans);font-size:.95rem;font-weight:600;color:var(--text);margin-bottom:.5rem}
.article .blog-body .ex p{font-size:.95rem;line-height:1.7;margin:0}
.article .blog-body .ex table{width:100%;border-collapse:collapse;font-size:.9rem;margin-top:.6rem}
.article .blog-body .ex td{padding:.35rem 0;border-top:1px solid var(--line);color:var(--text-2)}
.article .blog-body .ex td:last-child{text-align:right;font-variant-numeric:tabular-nums;color:var(--text)}
.article .blog-body .ex tr.tot td{font-weight:600;color:var(--text)}
.article .fig .leg .kl{background:none;border-top:2px dashed var(--f2);height:0;width:16px;vertical-align:3px}
/* covers */
.article .blog-cover{margin:2rem 0 0}
.article .blog-cover img{display:block;width:100%;height:auto;border-radius:8px}
.feature{display:grid;grid-template-columns:1.1fr .9fr;gap:2.5rem;align-items:center}
.feature .fimg img{display:block;width:100%;height:auto;border-radius:6px}
.posts .thumb{display:block;margin-bottom:1rem;border-radius:6px;overflow:hidden}
.posts .thumb img{display:block;width:100%;height:auto;transition:transform .5s ease}
.posts li:hover .thumb img{transform:scale(1.03)}
@media(max-width:800px){.feature{grid-template-columns:1fr}.feature .fimg{order:-1}}
@media(max-width:600px){.article .fig svg.sc text{font-size:16px}.article .fig svg.sc .mu{font-size:15px}.article .fig svg.sc .lb{font-size:17px}.article .fig{padding:1rem .8rem .8rem}}
.article .fig .flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.6rem}
.article .fig .fstep{position:relative;border:1px solid var(--line-strong);border-radius:5px;padding:.7rem .8rem;background:var(--surface)}
.article .fig .fstep b{display:block;font-size:.88rem;color:var(--text);margin-bottom:.2rem}
.article .fig .fstep span{font-size:.78rem;color:var(--muted);line-height:1.4}
.article .fig .fstep+.fstep::before{content:"";position:absolute;left:-9px;top:50%;width:6px;height:6px;border-top:1.5px solid var(--line-strong);border-right:1.5px solid var(--line-strong);transform:translateY(-50%) rotate(45deg)}
@media(max-width:400px){.article .fig .flow{grid-template-columns:1fr}.article .fig .fstep+.fstep::before{left:50%;top:-8px;transform:translateX(-50%) rotate(135deg)}}
