/* Optional editorial article summary. */
.article-reading{width:100%;max-width:var(--reading-max,53rem);margin:-.75rem auto 2.5rem;text-align:left}
.article-summary{margin:0;border:0;border-radius:1rem;background:var(--color-surface,#f2f5fb);color:var(--color-primary,#2d4281);transition:background-color 160ms ease}
.article-summary>summary{box-sizing:border-box;display:flex;align-items:center;gap:.75rem;min-height:var(--control-height,52px);padding:.9rem 1.25rem;list-style:none;border-radius:1rem;cursor:pointer;font:600 1rem/1.4 Arial,Helvetica,sans-serif;text-decoration:none}
.article-summary>summary::marker{content:""}
.article-summary>summary::-webkit-details-marker{display:none}
.article-summary>summary>span{flex:1;min-width:0}
.article-summary>summary>.rn-icon{width:21px;height:21px;flex:none}
.article-summary>summary>.article-summary-chevron{width:18px;height:18px;transition:transform 160ms ease}
.article-summary[open]>summary>.article-summary-chevron{transform:rotate(180deg)}
.article-summary:not([open]):hover{background:#eaf0fa}
.article-summary>summary:focus-visible{outline:2px solid var(--color-focus,#2d4281);outline-offset:3px}
.article-summary-content{padding:.2rem 1.5rem 1.25rem;color:var(--color-text,#292d36);font-size:1rem;line-height:1.65}
.article-summary-content ul{margin:0;padding-left:1.15rem}
.article-summary-content li{padding-left:.25rem}
.article-summary-content li+li{margin-top:.6rem}
.article-summary-content li::marker{color:var(--color-primary,#2d4281)}
@media(max-width:36rem){.article-reading{margin-bottom:1.75rem}.article-summary>summary{padding:.9rem 1rem}.article-summary-content{padding:.1rem 1rem 1.1rem}}
@media(prefers-reduced-motion:reduce){.article-summary,.article-summary-chevron{transition:none}}
/* Editorial infoboxes recovered from the original RTE's explicit alert blocks. */
.article-infobox{margin:2rem 0;padding:clamp(1.25rem,3vw,2rem);border:0;border-radius:1rem;background:var(--color-surface,#f2f5fb);color:var(--color-text,#292d36);text-align:left;overflow-wrap:anywhere}
.article-infobox>:first-child{margin-top:0}
.article-infobox>:last-child{margin-bottom:0}
.article-infobox h2,.article-infobox h3,.article-infobox .article-infobox-title{margin:0 0 1rem;color:var(--color-primary,#2d4281);font-size:1.25rem;line-height:1.4;text-align:left}
.article-infobox p,.article-infobox li{font-size:inherit;line-height:1.7}
.article-infobox ul,.article-infobox ol{margin:0;padding-left:1.3rem}
.article-infobox li{padding-left:.25rem}
.article-infobox li+li{margin-top:.75rem}
.article-infobox li::marker{color:var(--color-primary,#2d4281)}
.article-infobox figure,.article-infobox img{max-width:100%}
/* Four long-form Plus case studies: readable figures, equations and data tables. */
.article-content .plus-editorial{min-width:0;overflow-wrap:break-word}
.article-content .plus-editorial-figure,.article-content .plus-editorial-table{display:block;margin:2.5rem 0;padding:0;max-width:100%;min-width:0}
.article-content .plus-editorial-figure img{display:block;width:100%;height:auto;max-width:100%;border-radius:.8rem;background:#fff}
.article-content .plus-editorial figcaption{margin:.9rem 0 0;padding:0;color:#58657c;font-size:.875rem;line-height:1.6;text-align:left}
.article-content .plus-editorial-table-scroll{max-width:100%;overflow-x:auto;border:1px solid #e0e6f0;border-radius:.8rem;}
.article-content .plus-editorial-table-scroll:focus-visible{outline:2px solid #2d4281;outline-offset:4px}
.article-content .plus-editorial table{width:100%;min-width:36rem;margin:0;border-collapse:collapse;border:0;font-size:.9rem;line-height:1.5;text-align:left}
.article-content .plus-editorial th,.article-content .plus-editorial td{padding:.85rem 1rem;border:0;border-bottom:1px solid #e0e6f0;vertical-align:top;white-space:normal}
.article-content .plus-editorial thead th{background:#2d4281;color:#fff;font-weight:600}
.article-content .plus-editorial tbody th{font-weight:600;color:#2d4281;width:36%}
.article-content .plus-editorial tbody tr:nth-child(even){background:#f3f6fb}
.article-content .plus-editorial tbody tr:last-child>*{border-bottom:0}
.article-content .plus-editorial-equation{padding:1.1rem 1.25rem;margin:1.75rem 0;border-radius:.8rem;background:#f3f6fb;color:#2d4281;font-variant-numeric:tabular-nums;font-weight:500;overflow-wrap:anywhere}
.article-content .plus-editorial-references{padding-left:1.2rem;font-size:.9rem;line-height:1.65}
.article-content .plus-editorial-references li+li{margin-top:1rem}
.article-content .plus-editorial-references a{overflow-wrap:anywhere}
@media(max-width:36rem){.article-content .plus-editorial-figure,.article-content .plus-editorial-table{margin:1.75rem 0}.article-content .plus-editorial figcaption{font-size:.8rem}.article-content .plus-editorial th,.article-content .plus-editorial td{padding:.7rem .8rem}.article-content .plus-editorial-equation{padding:1rem}}
/* Temporal liquidity examples: monetary amounts stay together and totals stand out. */
.article-content .plus-editorial-scenarios table{min-width:48rem;font-variant-numeric:tabular-nums}
.article-content .plus-editorial-scenarios tbody th{width:30%}
.article-content .plus-editorial-scenarios td:nth-child(n+3),.article-content .plus-editorial-scenarios thead th:nth-child(n+3){text-align:right;white-space:nowrap}
.article-content .plus-editorial-scenarios td:nth-child(2){white-space:nowrap}
.article-content .plus-editorial-scenarios tbody tr:nth-child(4n)>*{background:#fff3da;font-weight:600;color:#2d4281}
.article-content .plus-editorial-scenarios tbody tr:nth-child(4n+5)>*{border-top:2px solid #d6deec}
/* TYPO3's RTE inserts a prose paragraph around linked figures. Keep that media
   wrapper on the figure track so image and caption share the exact left edge. */
.article-content .plus-editorial-figure>p:has(>a:only-child>img:only-child),
.article-content .plus-editorial-figure>p:has(>img:only-child){width:100%;max-width:none;margin:0}
.article-content .plus-editorial-figure>p>a:only-child{display:block;width:100%;max-width:none}
/* Editorial process figure has a dedicated portrait arrangement on narrow screens. */
.article-content .simulation-process-figure picture{display:block;width:100%;max-width:none;margin:0}
.article-content .simulation-process-figure>p:has(>picture:only-child){width:100%;max-width:none;margin:0}
.article-content .simulation-process-figure img{border-radius:0}
/* Responsive scientific illustrations retain the figure track inside linked pictures. */
.article-content .plus-editorial-figure>p:has(>a:only-child>picture:only-child){width:100%;max-width:none;margin:0}
.article-content .plus-editorial-figure picture{display:block;width:100%;max-width:none}

.plus-editorial table.plus-editorial-biases tbody th{width:24%}
.plus-editorial table.plus-editorial-biases th:nth-child(2){width:48%}
.plus-editorial table.plus-editorial-biases th:nth-child(3){width:28%}
.plus-editorial table.plus-editorial-biases{min-width:56rem}

/* RiskNET bibliography: consistent editorial italics, no bold author fragments. */
.plus-editorial :is(.plus-editorial-references,.plus-editorial-sources){font-style:italic;font-weight:400}
.plus-editorial :is(.plus-editorial-references,.plus-editorial-sources) :is(li,a,em,strong,b){font-style:inherit;font-weight:400}
.plus-editorial :is(.plus-editorial-references,.plus-editorial-sources) li{margin-bottom:.75rem;line-height:1.7}

/* Let captions end visibly before the next passage in the Survivorship essay. */
.article-content .plus-editorial[data-editorial-revision="survivorship-20261123"] .plus-editorial-figure{margin-block-end:clamp(2.5rem,5vw,3.5rem)}

/* December case-study series uses the same caption-to-prose breathing room. */
.article-content .plus-editorial[data-editorial-revision^="december-2026-"] .plus-editorial-figure{margin-block-end:clamp(2.5rem,5vw,3.5rem)}

/* Distribution series: one reading system for history, methodology and software. */
.article-content .distribution-series .plus-editorial-figure{margin-block-end:clamp(2.5rem,5vw,3.5rem)}
.article-content .distribution-series .historical-portraits__grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:24px;background:var(--color-surface,#f2f5fb);border-radius:20px}
.article-content .distribution-series .historical-portraits__grid>div{min-width:0}
.article-content .distribution-series .historical-portraits__grid img{width:100%;height:340px;object-fit:contain;background:transparent}
.article-content .distribution-series .historical-portraits__name{margin:14px 0 0;text-align:center;font-size:15px;font-weight:600;color:var(--color-primary)}
.article-content .distribution-series .historical-instrument{max-width:650px;margin-inline:auto}
.article-content .distribution-series .historical-instrument>img{max-height:420px;object-fit:contain}
.article-content .distribution-series .distribution-facts,.article-content .distribution-series .distribution-code{background:var(--color-surface,#f2f5fb);border-radius:20px;padding:28px;margin:40px 0}
.article-content .distribution-series .distribution-facts h3,.article-content .distribution-series .distribution-code h2{margin-top:0}
.article-content .distribution-series .distribution-facts dl{margin:0}
.article-content .distribution-series .distribution-facts dl>div{display:grid;grid-template-columns:190px 1fr;gap:20px;padding:13px 0;border-bottom:1px solid var(--color-divider,#dce3ef)}
.article-content .distribution-series .distribution-facts dl>div:last-child{border:0}
.article-content .distribution-series .distribution-facts dt{font-weight:600;color:var(--color-primary)}
.article-content .distribution-series .distribution-facts dd{margin:0}
.article-content .distribution-series .code-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.article-content .distribution-series .code-grid>section{min-width:0}
.article-content .distribution-series .code-grid p{font-size:15px}
.article-content .distribution-series .code-grid h3{margin:12px 0}
.article-content .distribution-series pre{font:13px/1.7 monospace;background:#fff;border-radius:12px;padding:18px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.article-content .distribution-series code{font-size:.88em;overflow-wrap:anywhere}
.article-content .distribution-series .code-note{font-size:14px;margin:20px 0 0}
.article-content .distribution-series .plus-editorial-equation{display:grid;gap:12px;font-family:Georgia,serif;font-size:19px;line-height:1.65;font-weight:400}
.article-content .distribution-series .review-table{max-width:100%;margin:32px 0 40px;overflow-x:auto}
.article-content .distribution-series table{min-width:0}
.article-content .distribution-series .plus-editorial-caption{font-size:14px!important;font-weight:400;line-height:1.6;text-align:left;color:#58657c;margin:16px 0 0!important;max-width:none}
@media(max-width:640px){
 .article-content .distribution-series .historical-portraits__grid{grid-template-columns:1fr;padding:20px;gap:28px}
 .article-content .distribution-series .historical-portraits__grid img{height:300px}
 .article-content .distribution-series .historical-instrument>img{max-height:none}
 .article-content .distribution-series .distribution-facts,.article-content .distribution-series .distribution-code{padding:20px 16px}
 .article-content .distribution-series .distribution-facts dl>div{grid-template-columns:1fr;gap:4px}
 .article-content .distribution-series .code-grid{grid-template-columns:1fr}
 .article-content .distribution-series .plus-editorial-equation{font-size:16px;padding:18px 14px}
 .article-content .distribution-series .review-table{overflow:visible}
 .article-content .distribution-series table,.article-content .distribution-series tbody{display:block;min-width:0}
 .article-content .distribution-series thead{display:none}
 .article-content .distribution-series tr{display:block;border:1px solid #dce3ef;border-radius:12px;margin:0 0 12px;overflow:hidden}
 .article-content .distribution-series th,.article-content .distribution-series td{display:block;width:auto;border:0;padding:10px 14px}
 .article-content .distribution-series tbody th{background:#e8eef9;color:var(--color-primary)}
 .article-content .distribution-series td::before{content:attr(data-label);display:block;font-size:12px;font-weight:600;color:var(--color-muted);margin-bottom:3px}
}
/* Reviewed editorial media: retain original portraits, show only approved crops. */
.article-content .editorial-cropped-portrait{max-width:390px;margin-inline:auto}
.article-content .editorial-portrait-crop{width:100%;background:white}
.article-content .editorial-local-video video{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:.8rem;background:#f2f5fa}
.article-content .comparison-table{margin:2rem 0 2.5rem}
.article-content .comparison-table table{min-width:0;width:100%;table-layout:fixed}
.article-content .comparison-table caption{text-align:left;color:#58657c;font-size:.875rem;font-style:italic;line-height:1.6;padding-bottom:1rem}
.article-content .comparison-table th:first-child{width:24%}
@media(max-width:600px){
 .article-content .comparison-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .article-content .comparison-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-bottom:12px;border:1px solid #d8e0ed}
 .article-content .comparison-table tbody th{grid-column:1/-1;width:auto!important;background:#e7edf7;padding:10px;font-size:14px}
 .article-content .comparison-table tbody td{font-size:13px;padding:12px 10px;border-bottom:0;overflow-wrap:normal;hyphens:auto}
 .article-content .comparison-table tbody td::before{content:attr(data-label);display:block;color:#2e4383;font-weight:700;margin-bottom:8px}
}
