/* Original educational diagrams and scripts are retained inside a shared reader. */
.legacy-content,.legacy-content[data-theme="dark"]{--paper:#101310;--surface:#181e15;--ink:#e8eddf;--muted:#a3ad99;--line:#35422e;--orange:#c1ee84;--orange-soft:#2b3820;--teal:#8fcbbe;--teal-soft:#20352c;--rust:#f2b384;--rust-soft:#332a21;--cpp:#a0b9f5;--cpp-soft:#222b40;--green:#aad99b;--green-soft:#263a22;--dark:#111b12;--dark-2:#202c1b;color:var(--ink);background:var(--paper);font-family:Arial,'Noto Sans CJK SC','Microsoft YaHei',sans-serif;font-size:15px;line-height:1.9;color-scheme:dark;overflow-wrap:break-word}
.legacy-content [data-legacy-chrome],.legacy-content>.hero,.legacy-content .site-header,.legacy-content .site-footer,.legacy-content .rail,.legacy-content .skip,.legacy-content .progress{display:none!important}.legacy-content .layout{display:block;padding:0}.legacy-content .container,.legacy-content .wrap{width:100%;max-width:none;padding-inline:0;margin:0}.legacy-content .hero{display:none}.legacy-content section.chapter:first-child,.legacy-content .article-section:first-of-type{padding-top:0}.legacy-content section.chapter{scroll-margin-top:25px;padding-block:40px}.legacy-content h2{font-family:inherit;font-size:27px;line-height:1.6;color:var(--ink)}.legacy-content h3{font-family:inherit;color:var(--ink)}.legacy-content .chapter-lead,.legacy-content .hero-deck,.legacy-content .notation span:last-child{color:#adbba1}.legacy-content .notation{background:#1d2817}.legacy-content .equation.key{background:#192a20}.legacy-content .equation.key.orange{background:#2b311b}.legacy-content .equation{color:var(--ink)}.legacy-content .mini-panel{background:var(--surface)}.legacy-content .card{background:var(--surface);box-shadow:none;border:1px solid var(--line);padding:23px;border-radius:8px}.legacy-content .box{border-color:var(--line)}.legacy-content code{background:#0c130a;color:#c7eda0}.legacy-content .lab,.legacy-content .hero-art{background:#111b15}.legacy-content .card-heading,.legacy-content .card-body{padding:20px}.legacy-content .article-section{padding-top:50px}.legacy-content .chapter:first-child{padding-top:0}.legacy-content .section-title h2{font-size:25px}.legacy-content .thesis{grid-template-columns:90px 1fr}.legacy-content .topic-strip{grid-template-columns:repeat(2,1fr)}.legacy-content svg{max-width:100%}.legacy-content .math-display svg,.legacy-content .math-inline svg{max-width:none}.legacy-content .math-inline{max-width:100%;overflow-x:auto;vertical-align:middle}.legacy-content .lab-grid{min-width:0}.legacy-content button{white-space:normal}.legacy-content .matrix-row{grid-template-columns:130px 1fr 1fr}.legacy-content .matrix-row>div{padding:14px}.legacy-content .note,.legacy-content .muted{color:var(--muted)}.legacy-content table{max-width:100%}.legacy-content .comparison-wrap{overflow-x:auto}.legacy-content .rail-bottom{display:none}.legacy-content .toast{z-index:200}.legacy-content [id]{scroll-margin-top:25px}
@media(max-width:1100px){.legacy-content .twins,.legacy-content .two-col,.legacy-content .taxonomy,.legacy-content .compare-grid{grid-template-columns:1fr}.legacy-content .layout{display:block}.legacy-content .lab-grid,.legacy-content .demo-layout{grid-template-columns:1fr}.legacy-content .matrix-row{grid-template-columns:110px 1fr 1fr}}
@media(max-width:600px){.legacy-content h2{font-size:23px}.legacy-content .section-title h2{font-size:22px}.legacy-content .chapter-lead{font-size:14px}.legacy-content .notation{grid-template-columns:1fr;padding:12px}.legacy-content .thesis{display:block}.legacy-content .section-head-row{display:block}.legacy-content .segmented{flex-wrap:wrap;margin-top:10px}.legacy-content .matrix{overflow-x:auto}.legacy-content .matrix-row{min-width:550px}.legacy-content .card{padding:17px}.legacy-content .code-grid{grid-template-columns:1fr}.legacy-content .flow-strip{flex-wrap:wrap}.legacy-content .flow-node{flex-basis:40%}.legacy-content .equation{padding:20px 12px}.legacy-content .table-wrap{overflow-x:auto}.legacy-content .controls{min-width:0}.legacy-content .topic-strip a{font-size:10px}.legacy-content .grid{grid-template-columns:1fr}}
@media print{.legacy-content{--paper:white;--surface:#fafafa;--ink:#111;--muted:#555;--line:#ccc;--orange:#487b20;--orange-soft:#f0f4e9;--teal:#236054;--teal-soft:#ecf4ee;color:#111}.legacy-content .notation,.legacy-content .equation.key,.legacy-content .equation.key.orange{background:#f5f5f5}.legacy-content .chapter-lead{color:#333}}
.legacy-content .controls{background:#1b2517}.legacy-content .experiment-caption{background:#172011;color:#a9b79e}.legacy-content .compare tr:nth-child(even){background:#1d2718}.legacy-content .derived-result,.legacy-content .ref-item .ref-description{color:#a6b49c}.legacy-content .back-top{display:none}.legacy-content .taxonomy-card:nth-child(3) .tax-names{color:#c4b58b}
