/* Reading styles for the synchronized source document. */
.chapter p,.chapter h2,.chapter h3,.chapter figcaption{overflow-wrap:anywhere}
.chapter h3,.chapter h2[id]{scroll-margin-top:110px}
.chapter figure img{width:auto;max-width:100%;height:auto;margin-inline:auto}
.chapter figure .image-link{background:#f1f4f2}
.source-code{max-width:100%;overflow-x:auto;padding:22px;background:#e9eeeb;border-radius:16px;font-size:15px;line-height:1.8;tab-size:4;white-space:pre}
.source-code code{font-family:Consolas,'Cascadia Code',monospace}
.toc nav{max-height:65vh;overflow-y:auto}
.chapter p[id]{scroll-margin-top:110px}
@media(max-width:540px){.source-code{padding:17px;font-size:14px;border-radius:12px}.chapter h3,.chapter p[id]{scroll-margin-top:92px}}

/* Keep the paired source screenshots together on desktop and readable on phones. */
.source-image-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.source-image-pair figure{margin:0}.source-image-pair>div{min-width:0}
@media(max-width:600px){.source-image-pair{grid-template-columns:1fr}}

.reprint-source{margin:0 0 32px;color:#526459;font-size:14px;line-height:1.8}.chapter li{margin:10px 0;line-height:1.9;overflow-wrap:anywhere}.chapter ul,.chapter ol{padding-left:1.5em}.chapter blockquote{margin:24px 0;padding-left:20px;border-left:2px solid #cad4cb}.chapter hr{margin:36px 0;border:0;border-top:1px solid #e1e7e1}.chapter figure img{max-height:850px}.journal-recent+#reprints{margin-top:60px}
