.textbook-inline-math{display:inline-block;max-width:100%;vertical-align:middle;overflow-x:auto;overflow-y:hidden;padding:.16em .06em;line-height:1.5;scrollbar-width:thin}.textbook-inline-math .katex{font-size:1em}
.textbook-content{font-size:16px;line-height:1.85;color:var(--mn-text,#173b68)}
.textbook-content p{line-height:1.85}.textbook-section{margin:22px 0}.textbook-section h3,.textbook-example h3{font-size:15px;margin:0 0 10px;color:var(--mn-text,#173b68)}
.textbook-section li{margin:8px 0;padding-left:4px}.textbook-section ol,.textbook-section ul{padding-left:24px}
.textbook-formula{max-width:100%;overflow-x:auto;overflow-y:hidden;background:#f3f6f8;border-radius:10px;margin:12px 0;padding:10px 16px;scrollbar-width:thin}.textbook-formula .katex-display{margin:8px 0}.textbook-formula .katex{font-size:1.08em}.textbook-formula pre{white-space:pre-wrap}
.textbook-scope{padding:12px 16px;border-left:3px solid #4e9290;background:#f1f8f7;border-radius:0 8px 8px 0}.textbook-scope strong{display:block;font-size:13px;margin-bottom:4px}
.textbook-page-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:20px 0}.textbook-page-links>span{font-size:13px;color:#52708b;margin-right:4px}.textbook-page-links button{background:#f1f6fb;border:1px solid #c6d8e7;border-radius:8px;padding:8px 12px;text-align:left;font-size:13px;line-height:1.5;color:#214a70;min-height:40px}.textbook-page-links button:disabled{opacity:.8;cursor:default;border-style:dashed}
.textbook-article{border-top:1px solid #dce5ed;margin-top:12px}.textbook-article>summary{padding:16px 0;line-height:1.65;cursor:pointer}.textbook-article>summary small{display:block;margin:4px 0 0 18px;font-size:12px;color:#567089;font-weight:400}.textbook-more-title{font-size:14px;margin-top:28px}.textbook-more-title span{font-weight:400;color:#567089}.textbook-context summary{font-size:13px;cursor:pointer}.textbook-example{padding:18px 20px;background:#fbf7ee;border:1px solid #eee1c7;border-radius:12px;margin:22px 0}
#textbook-reader{color:#193750;border:1px solid #d5dfe6;border-radius:16px;box-shadow:0 28px 100px #162e4b35;width:min(1100px,calc(100vw - 48px));height:calc(100dvh - 48px);max-height:none;max-width:calc(100vw - 24px);padding:0;overflow:hidden;background:#f8fafb;resize:horizontal;min-width:min(640px,calc(100vw - 24px))}
#textbook-reader::backdrop{background:#20344d50}#textbook-reader.expanded{width:100vw;height:100dvh;max-width:none;border-radius:0;border:0;margin:0;resize:none}
.textbook-reader-shell{height:100%;display:flex;flex-direction:column;min-height:0}.textbook-reader-header{position:static;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;background:#fff;border-bottom:1px solid #dce5ed;flex-shrink:0;min-height:0;height:auto}.textbook-reader-header h2{font-size:18px;line-height:1.4;margin:4px 0 0}.textbook-eyebrow{font-size:12px;letter-spacing:.04em;color:#54718a}.textbook-reader-header>div:last-child{display:flex;gap:8px}
#textbook-reader button{min-height:40px;padding:7px 12px;border:1px solid #d2dde6;border-radius:8px;background:#fff;color:#294760;white-space:nowrap;cursor:pointer;transition:background-color 120ms ease,transform 120ms ease}#textbook-reader button:active{transform:scale(.98)}#textbook-reader button:disabled{opacity:.4;cursor:default}#textbook-reader :focus-visible{outline:2px solid #326db4;outline-offset:3px}
.textbook-reader-toolbar{display:flex;align-items:center;gap:8px;padding:12px 22px 6px;flex-shrink:0}.textbook-reader-toolbar label{display:flex;gap:8px;align-items:center;font-size:12px;color:#567089}.textbook-reader-toolbar select{max-width:260px;padding:8px;border:1px solid #d2dde6;border-radius:8px;background:white;color:#193750;font-size:14px;min-height:40px}.textbook-toolbar-space{flex:1}#textbook-zoom-label{min-width:60px;text-align:center;font-size:12px}#textbook-version{font-size:11px;color:#607789;margin:0;padding:2px 22px 12px;line-height:1.5;flex-shrink:0}
#textbook-viewport{flex:1;min-height:0;overflow:auto;padding:24px;background:#e9eef1;overscroll-behavior:contain}#textbook-image-wrap{width:100%;margin:0 auto}#textbook-image{width:100%;height:auto;display:block;background:white;box-shadow:0 3px 16px #22354c14}#textbook-image[hidden]{display:none}#textbook-page-state{text-align:center;padding:48px 16px;font-size:14px}#textbook-page-state button{display:block;margin:12px auto}
.textbook-reader-footer{display:flex;gap:18px;justify-content:space-between;align-items:center;padding:12px 22px;background:white;border-top:1px solid #dce5ed;flex-shrink:0}.textbook-reader-footer strong{display:block;font-size:12px;font-weight:500}.textbook-reader-footer span{display:block;font-size:12px;color:#607789;line-height:1.6;margin-top:4px;max-height:3.2em;overflow:auto}.textbook-reader-footer a{font-size:12px;white-space:nowrap;color:#32618b;text-decoration:underline;text-underline-offset:3px}
@media(hover:hover) and (pointer:fine){#textbook-reader button:not(:disabled):hover,.textbook-page-links button:not(:disabled):hover{background:#e8f1f8;border-color:#a1bdd5}}
@media(max-width:640px){#textbook-reader{width:100vw;height:100dvh;max-width:none;margin:0;border:0;border-radius:0;resize:none}.textbook-reader-header{padding:14px 16px}.textbook-reader-header h2{font-size:16px}#textbook-expand{display:none}.textbook-reader-toolbar{flex-wrap:wrap;padding:10px 12px 6px;gap:6px}.textbook-reader-toolbar label{flex:1}.textbook-reader-toolbar select{width:100%;max-width:220px}.textbook-toolbar-space{flex-basis:100%}#textbook-version{padding:4px 14px 10px}#textbook-viewport{padding:12px}.textbook-reader-footer{padding:10px 14px;align-items:flex-start;gap:10px}.textbook-reader-footer a{font-size:11px}.textbook-page-links button{min-height:44px}.textbook-formula{padding:8px 10px}.textbook-content{font-size:16px}}
@media(prefers-reduced-motion:reduce){#textbook-reader button{transition:none}#textbook-reader button:active{transform:none}}
