.article-toc-rail{min-width:0;align-self:stretch}
.article-shell .article-toc{position:fixed;top:var(--ci-toc-top,88px);left:var(--ci-toc-left,0px);width:var(--ci-toc-width,180px);max-width:var(--ci-toc-width,180px);max-height:var(--ci-toc-height,calc(100vh - 208px));display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #dce3e7;border-radius:9px;padding:17px 12px;background:#fff;box-shadow:0 12px 32px rgba(16,36,58,.06);z-index:100;visibility:hidden}
.article-shell .article-toc.is-in-reading{visibility:visible}
.article-shell .article-toc>span{flex:0 0 auto;font-size:12px;letter-spacing:0;text-transform:none;padding:0 6px}
.article-shell .article-toc nav{display:flex;flex-direction:column;gap:4px;align-items:stretch;flex:1 1 auto;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable}
.article-shell .article-toc a{flex:0 0 auto;min-width:0;max-width:100%;min-height:40px;display:flex;align-items:center;padding:8px;color:#536573;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.article-shell .article-toc a.is-h3{padding-left:18px}.article-shell .article-toc a.is-h4{padding-left:26px}
.article-shell .article-toc a.is-active{background:#f7f2e7;color:#76571d;box-shadow:inset 2px 0 #b19357}
.article-shell .article-body :is(h2,h3,h4){scroll-margin-top:104px}
.article-shell .article-toc-toggle{display:none;position:fixed;z-index:1250;left:auto;right:calc(12px + env(safe-area-inset-right,0px));top:var(--ci-mobile-toc-top,calc(72px + env(safe-area-inset-top,0px)));bottom:auto;transform:none;max-width:calc(100vw - 32px);align-items:center;justify-content:center;gap:9px;min-height:48px;border:1px solid #c8ae76;border-radius:8px;background:#132a36;color:#f2e4c8;padding:11px 17px;font:650 14px/1.4 var(--article-sans,system-ui,sans-serif);box-shadow:0 8px 25px rgba(8,25,35,.25);cursor:pointer}
.article-toc-toggle>span{font-size:22px}.article-toc-toggle[hidden],.article-toc-modal[hidden]{display:none!important}
.article-toc-modal{position:fixed;inset:0;z-index:2900;display:flex;align-items:flex-end;justify-content:center;padding:14px;color:#203744;font-family:var(--article-sans,system-ui,sans-serif)}
.article-toc-shade{position:absolute;inset:0;background:rgba(4,15,24,.62)}
.article-toc-sheet{position:relative;display:flex;flex-direction:column;width:min(100%,620px);max-height:76vh;max-height:76dvh;border:1px solid #dac69d;border-radius:16px;background:#fcfbf7;box-shadow:0 20px 60px rgba(0,0,0,.3);overflow:hidden;padding-bottom:env(safe-area-inset-bottom,0px)}
.article-toc-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 14px 12px 20px;border-bottom:1px solid #e4ded1;flex:none}
.article-toc-sheet-head h2{margin:0;font-size:18px;color:#17313f}.article-toc-sheet-head button{display:grid;place-items:center;flex:none;min-width:44px;min-height:44px;border:1px solid #d8d3c6;border-radius:7px;background:#fff;color:#314c5a;font-size:26px;cursor:pointer}
.article-toc-sheet nav{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:12px 14px 18px}
.article-toc-sheet nav a{display:flex;align-items:center;min-height:48px;gap:8px;border-bottom:1px solid #ece6d9;padding:12px 10px;color:#264a5f;font-size:15px;line-height:1.5;text-decoration:none;overflow-wrap:anywhere}
.article-toc-sheet nav a.is-h3{padding-left:24px;font-size:14px}.article-toc-sheet nav a.is-h4{padding-left:34px;font-size:14px}
.article-toc-sheet nav a.is-active{background:#f1eadc;color:#775a22;border-radius:5px}
.article-toc-sheet :is(a,button):focus-visible,.article-toc-toggle:focus-visible{outline:2px solid #a27e37;outline-offset:3px}
body.ci-toc-open{overflow:hidden}
body.cn-open .article-toc-toggle,body.ci-toc-editing .article-toc-toggle{visibility:hidden;pointer-events:none}
.article-shell .article-reading-next{margin-top:40px;padding-top:28px;border-top:1px solid #dce3e7}
.article-reading-next-head{display:flex;align-items:end;justify-content:space-between;gap:16px}.article-reading-next-head h2{margin:0 0 9px;color:#17313f;font-size:25px;line-height:1.35}.article-reading-next-head p{margin:0;color:#637783;font-size:13px;line-height:1.65}.article-reading-next-head>a{flex:none;color:#81612d;font-size:12px;font-weight:700;text-decoration:none;min-height:44px;display:flex;align-items:center}
.article-reading-next .ci-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}
.article-reading-next .ci-library-card{min-width:0;display:flex;flex-direction:column;border:1px solid #dce3e7;border-radius:9px;padding:19px;background:#fcfcfa;overflow-wrap:anywhere}
.article-reading-next .ci-meta{display:flex;flex-wrap:wrap;gap:7px;color:#6b7b84;font-size:10px;line-height:1.6}.article-reading-next .ci-meta>span:first-child{color:#836326;font-weight:700}
.article-reading-next .ci-access-badge{padding:1px 5px;border:1px solid #dbe3e7;border-radius:4px}.article-reading-next .ci-access-badge.is-premium{color:#886529;border-color:#d8c597;background:#f8f1e2}
.article-reading-next h3{margin:13px 0 10px;font-size:17px;line-height:1.5}.article-reading-next h3 a{color:#173d51;text-decoration:none}.article-reading-next h3 a:hover{color:#886529}.article-reading-next .ci-library-card>p{margin:0 0 16px;color:#637581;font-size:12px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.article-reading-next .ci-library-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #e4e8e7;padding-top:10px}.article-reading-next .ci-library-foot small{font-size:10px;line-height:1.6;color:#6a7a85}.article-reading-next .ci-library-foot>a{display:grid;place-items:center;flex:none;width:44px;min-height:44px;border:1px solid #e1d3b7;border-radius:6px;color:#84632a;text-decoration:none;background:#faf6ed}
@media(min-width:901px){.article-shell .article-reading-grid{grid-template-columns:minmax(0,1fr) 180px;gap:28px}}
@media(min-width:901px) and (max-width:1100px){.article-shell .article-card{padding:28px 24px}.article-reading-next .ci-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* F4.6.60.2: right-side mobile control; desktop frame stays inside the article reading column. */
@media(max-width:900px){.article-shell #articleBody :is(h2,h3,h4){scroll-margin-top:var(--ci-reader-offset,calc(144px + env(safe-area-inset-top,0px)))}.article-shell .article-reading-grid{grid-template-columns:1fr}.article-toc-rail{display:none}.article-shell .article-toc-toggle:not([hidden]){display:inline-flex}.article-reading-next .ci-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-shell{padding-bottom:100px}}
@media(max-width:620px){.article-reading-next-head{align-items:start;flex-direction:column}.article-reading-next .ci-library-grid{grid-template-columns:1fr}.article-toc-modal{padding:10px}.article-toc-sheet nav{padding:8px 10px 14px}}
@media print{.article-toc-rail,.article-toc-toggle,.article-toc-modal{display:none!important}.article-shell .article-reading-grid{display:block}}
