/* Scoped to the three Chapter 2 explorers; independent of the site theme. */
.comm-ch2-demo{--comm-ink:#213c50;--comm-paper:#fbfcfd;color:var(--comm-ink);background:var(--comm-paper);border:1px solid #cfdee5;border-radius:10px;margin:1.8em 0;padding:20px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;line-height:1.65;contain:layout;overflow:hidden}
.comm-ch2-demo:empty{display:none}
.comm-ch2-demo-title{display:block;font-size:16px;margin-bottom:14px}
.comm-ch2-controls{display:grid;grid-template-columns:1fr auto auto;gap:6px 12px;align-items:center;font-size:14px}
.comm-ch2-controls label{margin:0;font-weight:500}
.comm-ch2-value{font-variant-numeric:tabular-nums;color:#087f74;font-weight:600}
.comm-ch2-controls input[type=range]{grid-column:1/3;width:100%;min-height:36px;padding:0;margin:2px 0;accent-color:#087f74;cursor:pointer}
.comm-ch2-reset{grid-column:3;grid-row:1/3;background:transparent;border:1px solid #b5c9d2;color:inherit;border-radius:5px;padding:6px 9px;cursor:pointer;font:inherit}
.comm-ch2-demo input:focus-visible,.comm-ch2-reset:focus-visible{outline:3px solid #2274a5;outline-offset:3px}
.comm-ch2-charts{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:12px}
.comm-ch2-chart{min-width:0}
.comm-ch2-chart svg{display:block;width:100%;height:auto;max-width:100%;overflow:visible}
.comm-ch2-chart text{font-family:inherit;fill:var(--comm-ink)}
.comm-ch2-chart .comm-ch2-plot-title{font-size:13px;font-weight:600}
.comm-ch2-chart .comm-ch2-axis,.comm-ch2-chart .comm-ch2-tick{font-size:12px}
.comm-ch2-readout{font-size:14px;font-variant-numeric:tabular-nums;background:#e9f3f2;border-left:3px solid #087f74;padding:10px 12px;margin:12px 0!important}
.comm-ch2-demo-note{font-size:13px;color:#536a79;margin:8px 0 0!important}
@media(min-width:1150px){.comm-ch2-demo[data-demo=pulse] .comm-ch2-charts,.comm-ch2-demo[data-demo=correlation] .comm-ch2-charts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:480px){.comm-ch2-demo{padding:14px 9px}.comm-ch2-demo-title{font-size:15px}.comm-ch2-controls{gap:4px 8px}.comm-ch2-readout{padding:9px;font-size:13px}}
@media(prefers-color-scheme:dark){html:not([data-user-color-scheme=light]) .comm-ch2-demo{--comm-ink:#e0e8ed;--comm-paper:#202b34;border-color:#435966}html:not([data-user-color-scheme=light]) .comm-ch2-readout{background:#173d3b}html:not([data-user-color-scheme=light]) .comm-ch2-demo-note{color:#b7cbd5}html:not([data-user-color-scheme=light]) .comm-ch2-value{color:#5bc7b6}}
html[data-user-color-scheme=dark] .comm-ch2-demo{--comm-ink:#e0e8ed;--comm-paper:#202b34;border-color:#435966}
html[data-user-color-scheme=dark] .comm-ch2-readout{background:#173d3b}
html[data-user-color-scheme=dark] .comm-ch2-demo-note{color:#b7cbd5}
html[data-user-color-scheme=dark] .comm-ch2-value{color:#5bc7b6}
@media print{.comm-ch2-demo{display:none}}

/* Chapter reading rhythm: explanations, equations, then the figure they explain. */
.comm-ch2{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:17px;line-height:1.9;letter-spacing:.01em}
.comm-ch2 p{margin:1em 0 1.2em;max-width:48em}
.comm-ch2 h3{margin:2.6em 0 1em;padding-top:.7em;border-top:1px solid #cfdee5;line-height:1.5;font-size:1.4em;color:#1b536b;scroll-margin-top:85px}
.comm-ch2 h4{margin:1.8em 0 .8em;line-height:1.6;font-size:1.08em;scroll-margin-top:85px}
.comm-ch2 mjx-container[display="true"]{display:block;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:12px 3px;margin:1.15em 0!important}
.comm-ch2 mjx-container[display="true"] svg{max-width:none}
.comm-ch2 img{max-width:100%;height:auto;margin:1.5em auto;border:1px solid #dce6eb;border-radius:7px;background:#fff}
.comm-ch2 details{margin:1.6em 0;padding:12px 16px;border:1px solid #d4e1e6;border-radius:7px;background:rgba(34,116,165,.025);font-size:.94em}
.comm-ch2 summary{cursor:pointer;font-weight:600;line-height:1.7;color:#1b536b}
.comm-ch2 details[open]>summary{margin-bottom:18px;padding-bottom:10px;border-bottom:1px solid #d4e1e6}
.comm-ch2 blockquote{font-style:normal;font-size:.95em;line-height:1.8}
.comm-ch2 table{font-size:.9em;line-height:1.8}
.comm-ch2-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:1.6em 0;padding:12px;background:#edf4f6;border:1px solid #d4e1e6;border-radius:8px;font-size:.9em;line-height:1.7}
.comm-ch2-nav a{display:block;padding:7px 10px;background:rgba(255,255,255,.7);border-radius:4px;text-decoration:none!important;color:#1b536b}
.comm-ch2-nav a:hover{background:#fff}
@media(max-width:600px){.comm-ch2{font-size:16px;line-height:1.85;letter-spacing:0}.comm-ch2 h3{font-size:1.25em;margin-top:2.2em}.comm-ch2 h4{font-size:1.05em}.comm-ch2 details{padding:10px 12px}.comm-ch2-nav{padding:8px;gap:6px;font-size:.85em}.comm-ch2-nav a{padding:7px}.comm-ch2 table{font-size:.86em}}
html[data-user-color-scheme=dark] .comm-ch2 h3,html[data-user-color-scheme=dark] .comm-ch2 summary{color:#a9cfde}
html[data-user-color-scheme=dark] .comm-ch2-nav{background:#25343e;border-color:#435966}
html[data-user-color-scheme=dark] .comm-ch2-nav a{background:#1b2933;color:#c1dce7}
@media(prefers-color-scheme:dark){html:not([data-user-color-scheme=light]) .comm-ch2 h3,html:not([data-user-color-scheme=light]) .comm-ch2 summary{color:#a9cfde}html:not([data-user-color-scheme=light]) .comm-ch2-nav{background:#25343e;border-color:#435966}html:not([data-user-color-scheme=light]) .comm-ch2-nav a{background:#1b2933;color:#c1dce7}}
