/* Article body typography and blocks. Shared by article.php and the admin article editor (admin/post-form.php). */
.article-body{color:var(--steel-700);font-size:1.0625rem;line-height:1.85}
.article-body>*+*{margin-top:1.25em}
.article-body h2{font-family:'Archivo','Cairo',system-ui,sans-serif;font-stretch:108%;font-size:1.7rem;font-weight:800;color:var(--navy-900);line-height:1.2;letter-spacing:-.015em;margin-top:2.6em;padding-top:.9em;border-top:1px solid var(--line);scroll-margin-top:110px}
.article-body h3{font-family:'Archivo','Cairo',system-ui,sans-serif;font-stretch:104%;font-size:1.22rem;font-weight:750;color:var(--navy-900);line-height:1.35;margin-top:1.9em;scroll-margin-top:110px}
.article-body h2+*,.article-body h3+*{margin-top:.7em}
.article-body strong{color:var(--navy-900);font-weight:700}
.article-body a{color:var(--brand-600);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.article-body a:hover{color:var(--navy-900)}
.article-body ul,.article-body ol{padding-inline-start:1.5em}
.article-body ul{list-style:none}
.article-body ul>li{position:relative}
.article-body ul>li::before{content:'';position:absolute;inset-inline-start:-1.15em;top:.72em;width:7px;height:7px;background:var(--signal-500)}
.article-body ol{list-style:decimal}
.article-body ol>li{padding-inline-start:.3em}
.article-body ol>li::marker{color:var(--brand-600);font-weight:800;font-family:'JetBrains Mono',monospace}
.article-body li+li{margin-top:.55em}
.article-body figure{margin-top:2.2em;margin-bottom:.5em;position:relative}
.article-body figure img{width:100%;height:auto;border:1px solid var(--line)}
.article-body figure.cover img{aspect-ratio:16/9;object-fit:cover;clip-path:polygon(0 0,calc(100% - 26px) 0,100% 26px,100% 100%,0 100%)}
.article-body figcaption{font-size:.85rem;color:var(--steel-500);margin-top:.6em;line-height:1.5}
.article-body .table-wrap{overflow-x:auto;border:1px solid var(--line);background:#fff}
.article-body table{width:100%;border-collapse:collapse;font-size:.92rem;line-height:1.55}
.article-body th{background:var(--navy-900);color:#fff;font-weight:600;text-align:start;padding:.85rem 1rem;white-space:nowrap;font-family:'JetBrains Mono',monospace;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
.article-body td{padding:.8rem 1rem;border-top:1px solid var(--line);vertical-align:top}
.article-body td:first-child{font-weight:600;color:var(--navy-900)}
.article-body tbody tr:nth-child(even) td{background:var(--steel-50)}
.article-body .table-note{font-size:.8rem;color:var(--steel-500);margin-top:.6em}
.article-body .callout{border-inline-start:3px solid var(--brand-500);background:var(--steel-50);padding:1.15rem 1.35rem}
.article-body .callout>*+*{margin-top:.5em}
.article-body .callout-title{font-family:'JetBrains Mono',monospace;font-weight:600;color:var(--brand-600);font-size:.72rem;text-transform:uppercase;letter-spacing:.12em}
.article-body .callout.warning{border-color:var(--signal-500);background:#FFFBEA}
.article-body .callout.warning .callout-title{color:#8A6100}
.article-body .worksheet{background:#fff;border:1px dashed var(--steel-400);padding:1.2rem 1.4rem}
.article-body .worksheet>*+*{margin-top:.6em}
.article-body .formula{background:var(--navy-900);color:#fff;padding:1.25rem;text-align:center;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:1.05rem;letter-spacing:.02em}
.article-body .further-reading{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:.9rem 0;font-size:.98rem}
.article-body .further-reading strong{color:var(--brand-600)}
.article-body .inline-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;background:var(--navy-900);color:#A9B7D0;padding:1.4rem 1.6rem;border-top:3px solid var(--signal-400)}
.article-body .inline-cta p{margin:0;max-width:30rem}
.article-body .inline-cta strong{color:#fff}
.article-body .inline-cta a{flex-shrink:0;background:var(--signal-400);color:var(--navy-900);text-decoration:none;font-weight:600;font-size:.9rem;padding:.75rem 1.2rem}
.article-body .inline-cta a:hover{background:var(--signal-500)}
.article-body .key-moments{background:var(--steel-50);border:1px solid var(--line);border-top:3px solid var(--navy-900);padding:1.4rem 1.6rem}
.article-body .key-moments .km-title{display:flex;align-items:center;gap:.6rem;font-family:'JetBrains Mono',monospace;font-weight:600;font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:var(--navy-900)}
.article-body .key-moments .km-title::before{content:'';width:8px;height:8px;background:var(--signal-400);flex-shrink:0}
.article-body .key-moments ul{margin-top:1rem;padding-inline-start:0;counter-reset:km}
.article-body .key-moments li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.35rem 1rem;padding:.8rem 0;padding-inline-start:2.4rem;border-top:1px solid var(--line);margin:0;position:relative;font-size:.98rem;line-height:1.6;color:var(--steel-700)}
.article-body .key-moments li:first-child{border-top:0}
.article-body .key-moments li::before{counter-increment:km;content:counter(km,decimal-leading-zero);position:absolute;inset-inline-start:0;top:.85rem;width:auto;height:auto;background:none;font-family:'JetBrains Mono',monospace;font-size:.78rem;font-weight:600;color:var(--steel-400)}
.article-body .key-moments .km-jump{margin-top:.1rem;white-space:nowrap;font-family:'JetBrains Mono',monospace;font-size:.7rem;font-weight:600;color:var(--navy-900);background:#fff;border:1px solid var(--steel-300);padding:.2rem .6rem;text-decoration:none}
.article-body .key-moments .km-jump:hover{background:var(--signal-400);border-color:var(--signal-400)}
.toc-link.active{color:var(--navy-900);border-color:var(--signal-400);font-weight:600}
