body[data-page="calculus-source"] { background: var(--paper); color: var(--ink); font-family: Georgia, 'Times New Roman', serif; line-height: 1.7; margin: 0; }
.source-header { padding: 1rem 4vw; border-bottom: 1px solid var(--rule); display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.source-header a, .source-header button, .source-navigation { font: 1rem/1.5 system-ui, sans-serif; }
.source-header nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.source-header button, .source-navigation select { background: var(--paper-elevated); color: var(--ink); padding: .5rem .7rem; border: 1px solid var(--rule-strong); border-radius: .35rem; }
.source-main, .source-footer { max-width: 58rem; margin: auto; padding: 2rem 1.25rem; }
.source-main { font-size: 1.125rem; }
.source-main a, .source-footer a, .source-header a { color: var(--brass-gold); text-decoration: underline; text-underline-offset: .15em; }
.source-intro { border-bottom: 1px solid var(--rule-strong); padding-bottom: 1.5rem; }
.source-eyebrow { font: 1rem system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-gold); }
.source-intro h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; margin: .75rem 0; }
.source-credit, .source-footer { font-size: 1rem; }
.source-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; padding: 1.5rem 0; }
.source-navigation select { max-width: 100%; font-size: 1rem; }
.source-module { margin: 3rem 0; scroll-margin-top: 1rem; }
.source-module > h2 { font-size: 2rem; line-height: 1.3; border-bottom: 2px solid var(--brass-gold); padding-bottom: .5rem; }
.source-module h3 { font-size: 1.3rem; line-height: 1.4; margin: 1.5rem 0 .75rem; }
.source-para, .source-equation { margin: .85rem 0; }
.source-equation { padding: .75rem 0; overflow-x: auto; text-align: center; }
.source-module math { font-family: 'STIX Two Math', 'Cambria Math', math; font-size: 1.1em; }
.source-equation > math { display: block; }
.source-example, .source-note, .source-definition { border: 1px solid var(--rule-strong); padding: .5rem 1.25rem; margin: 1.5rem 0; border-radius: .4rem; }
.source-example { border-left: 4px solid var(--brass-gold); }
.source-exercise { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.source-published-label { font: bold 1rem/1.5 system-ui, sans-serif; color: var(--brass-gold); margin: .5rem 0; }
.source-solution { padding: .75rem 0; }
.source-solution summary { font: 1rem system-ui, sans-serif; cursor: pointer; color: var(--brass-gold); }
.source-module figure { margin: 2rem 0; text-align: center; }
.source-module img { max-width: 100%; height: auto; background: white; }
.source-module figcaption { font-size: 1rem; margin: .75rem 0; text-align: left; }
.source-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.source-table-wrap table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.source-table-wrap td { border: 1px solid var(--rule-strong); padding: .5rem .65rem; text-align: center; }
.source-table-wrap thead { font-weight: bold; }
.source-table-wrap caption { text-align: left; font-weight: bold; padding: .5rem 0; }
.source-module [id] { scroll-margin-top: 1.5rem; }
.source-module :target { outline: 2px solid var(--brass-gold); outline-offset: .3rem; }
.source-module .source-media { display: inline-block; max-width: 100%; }
@media (max-width: 600px) { .source-main { font-size: 1rem; } .source-navigation { align-items: stretch; flex-direction: column; } .source-header nav { gap: .75rem; } .source-example, .source-note, .source-definition { padding: .5rem .75rem; } }
@media print { .source-header, .source-navigation, .source-footer, .skip-link { display: none; } .source-main { padding: 0; max-width: none; font-size: 11pt; } .source-module { break-before: page; } .source-module img { max-height: 6in; } .source-equation, .source-example { break-inside: avoid; } .source-intro { font-size: 10pt; } }
