/* Arachne: site-neutral chapter content styles, final site theme owned by Hephaestus. */
main {min-width:0; max-width: min(100%, 980px); margin-inline:auto;}
body {font-family: system-ui, "Segoe UI", Arial, sans-serif; color:#111111; line-height:1.65;}
main p, main li {overflow-wrap:break-word;}
main p {margin: .95rem 0 1.1rem;}
main h1, main h2, main h3 {line-height:1.28;}
main h2 {margin-top:2.1rem;}main h3 {margin-top:1.65rem;}
figure.book-figure {clear:both; margin:1.8rem auto 2rem; max-width:min(100%, 800px);}
figure.book-figure img {display:block;width:auto;height:auto;max-width:100%;max-height:750px;margin-inline:auto;}
figure.book-figure figcaption {text-align:center; font-size:.91rem;color:#495566;line-height:1.5;margin-top:.65rem;}
.math.display, mjx-container[display="true"] {display:block;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;padding:.4rem 0;}
.book-prev-next {border-top:1px solid #d5dce2;margin-top:2.6rem;padding:1.1rem 0; display:flex; flex-wrap:wrap;justify-content:space-between;gap:.7rem;font-size:.95rem;}
.book-prev-next a {padding:.35rem .5rem; border-radius:4px;}
.book-prev-next a:focus-visible {outline:3px solid #175bb5;outline-offset:3px;}
.footnotes {overflow-wrap:anywhere;}
@media(max-width:640px){body{font-size:16px;line-height:1.65;}figure.book-figure{margin:1.45rem 0;}main h1{font-size:1.65rem;}main h2{font-size:1.4rem;}main h3{font-size:1.16rem;}}

/* HEPHAESTUS Chapter 3 SET0036 figure reductions. Relative to 800px existing rendered cap. */
#fig-ch03-01 img { width:min(80%, 640px); height:auto; max-width:100%; max-height:none; }
#fig-ch03-02 img { width:min(70%, 560px); height:auto; max-width:100%; max-height:none; }
#fig-ch03-03 img { width:min(70%, 560px); height:auto; max-width:100%; max-height:none; }
#fig-ch03-05 img { width:min(85%, 680px); height:auto; max-width:100%; max-height:none; }
#fig-ch03-06 img { width:min(85%, 680px); height:auto; max-width:100%; max-height:none; }
#fig-ch03-11 img { width:min(80%, 640px); height:auto; max-width:100%; max-height:none; }

/* Long aligned formulas retain a fallback scroll region on extremely narrow screens. */
.ch03-long-math { min-width:0; max-width:100%; }

/* Author-approved Descartes addition/subtraction calculation indent. */
.ch03-calculation-indent { margin: 1.1rem 0 1.5rem clamp(1.2rem, 5vw, 3rem); }
.ch03-calculation-indent p { margin: .65rem 0; }
