.cr-reader { --cr-accent:#8157c7; --cr-border:#e8e0ef; --cr-muted:#807889; min-width:0; max-width:100%; color:#443d4d; font-size:15px; line-height:1.85; overflow-wrap:anywhere; }
.cr-reader *, .cr-reader *::before, .cr-reader *::after { box-sizing:border-box; }
.cr-reader .cr-toc, .cr-reader .cr-code-section { margin:0 0 30px; border:0; border-radius:0; background:transparent; }
.cr-reader details > summary { cursor:pointer; list-style:none; position:relative; padding:13px 40px 13px 18px; color:#64556f; font-size:14px; font-weight:600; }
.cr-reader details > summary::-webkit-details-marker { display:none; }
.cr-reader details > summary::after { content:'＋'; position:absolute; right:17px; color:#a393b3; font-size:17px; font-weight:400; }
.cr-reader details[open] > summary::after { content:'−'; }
.cr-reader .cr-toc-list { padding:1px 18px 17px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 18px; }
.cr-reader .cr-toc-list a { display:block; padding:3px 0; color:#776482; text-decoration:none; font-size:13px; line-height:1.55; }
.cr-reader .cr-toc-list a:hover { color:var(--cr-accent); }
.cr-reader .cr-toc-list .cr-toc-sub { padding-left:13px; color:#8d8096; }
.cr-reader .cr-content { min-width:0; max-width:100%; }
.cr-reader .cr-content > :first-child { margin-top:0; }
.cr-reader .cr-content h2, .cr-reader .cr-content h3, .cr-reader .cr-content h4 { color:#382f42; line-height:1.45; font-weight:650; letter-spacing:0; scroll-margin-top:var(--course-anchor-offset,30px); }
.cr-reader .cr-content h2 { font-size:23px; margin:38px 0 15px; padding:0; border:0; }
.cr-reader .cr-content h3 { font-size:18px; margin:26px 0 11px; }
.cr-reader .cr-content h4 { font-size:16px; margin:22px 0 9px; }
.cr-reader .cr-content p { margin:0 0 15px; line-height:1.85; font-size:15px; }
.cr-reader .cr-content a { color:var(--cr-accent); text-decoration:underline; text-decoration-color:#d6c7e5; text-underline-offset:3px; }
.cr-reader .cr-content ul, .cr-reader .cr-content ol { padding-left:1.65em; margin:12px 0 20px; }
.cr-reader .cr-content li { margin:7px 0; padding-left:3px; }
.cr-reader .cr-content li p { margin:7px 0; }
.cr-reader .cr-content blockquote { border-left:3px solid #c5acdf; margin:20px 0; padding:6px 18px; background:#faf7fd; }
.cr-reader .cr-content code { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.88em; padding:2px 5px; border-radius:4px; color:#725185; background:#f3eef7; white-space:normal; }
.cr-reader .cr-content pre, .cr-reader .cr-script { max-width:100%; min-width:0; overflow:auto; overscroll-behavior-inline:contain; tab-size:2; padding:18px; border:1px solid var(--cr-border); border-radius:10px; background:#f8f5fa; font-size:12.5px; line-height:1.7; text-align:left; white-space:pre; overflow-wrap:normal; }
.cr-reader .cr-content pre code, .cr-reader .cr-script code { padding:0; color:#4d415a; background:none; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:inherit; line-height:inherit; white-space:pre; overflow-wrap:normal; }
.cr-reader .cr-table-scroll { min-width:0; max-width:100%; overflow:auto; overscroll-behavior-inline:contain; margin:20px 0; border:0; border-radius:0; }
.cr-reader .cr-content table { width:100%; min-width:500px; margin:0; border:0; border-collapse:collapse; font-size:13px; line-height:1.7; }
.cr-reader .cr-content th, .cr-reader .cr-content td { padding:11px 13px; border:0; border-bottom:1px solid #eee8f2; text-align:left; vertical-align:top; word-break:normal; overflow-wrap:anywhere; }
.cr-reader .cr-content th { background:#f6f1fa; color:#5a496a; font-weight:600; }
.cr-reader .cr-content tr:last-child td { border-bottom:0; }
.cr-reader .cr-content figure { max-width:100%; margin:30px 0; padding:0; border:0; border-radius:0; background:transparent; }
.cr-reader .cr-image-open { display:flex; justify-content:center; align-items:center; width:100%; max-width:100%; min-width:0; margin:0; padding:0; border:0; border-radius:0; background:transparent; cursor:zoom-in; box-shadow:none; }
.cr-reader .cr-image-open:hover { background:transparent; box-shadow:none; transform:none; }
.cr-reader .cr-content img { display:block; width:auto; max-width:100%; height:auto; max-height:460px; object-fit:contain; margin:0 auto; border:0; border-radius:3px; }
.cr-reader .cr-content figcaption { padding:10px 4px 0; margin:0; color:var(--cr-muted); font-size:12px; line-height:1.6; text-align:center; }
.cr-reader .cr-content .math.display { display:block; max-width:100%; overflow:auto; overscroll-behavior-inline:contain; padding:3px 0; margin:18px 0; }
.cr-reader .cr-content .math.inline { display:inline; padding:0; margin:0; }
.cr-reader .cr-content .katex { font-size:1.05em; }
.cr-reader .cr-content .katex-display { width:max-content; min-width:100%; margin:.35em 0; padding:0 8px; }
.cr-reader .cr-content .footnotes { margin-top:36px; color:#817589; font-size:12px; }
.cr-reader .cr-content .footnotes hr { width:100%; border:0; border-top:1px solid var(--cr-border); margin:0 0 18px; }
.cr-reader .cr-content .footnotes p { font-size:12px; line-height:1.8; }
.cr-reader .cr-content .footnotes li { scroll-margin-top:24px; }
.cr-reader .cr-content .footnote-ref { font-size:.9em; text-decoration:none; }
.cr-reader .cr-code-section { margin-top:35px; margin-bottom:0; scroll-margin-top:var(--course-anchor-offset,30px); }
.cr-reader .cr-code-section > summary { padding-left:0; }
.cr-reader .cr-code-intro { padding:0 18px; margin:0 0 15px; color:var(--cr-muted); font-size:13px; }
.cr-reader .cr-code-file { margin:0 0 18px; border:0; border-radius:0; background:transparent; min-width:0; }
.cr-reader .cr-code-file > summary { padding:11px 38px 11px 14px; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:13px; }
.cr-reader .cr-code-content { min-width:0; padding:0 12px 12px; }
.cr-reader .cr-code-locate { margin:0 0 10px; }
.cr-reader .cr-script { max-height:560px; margin:0; }
.cr-reader .cr-status { padding:16px 0; color:var(--cr-muted); font-size:14px; }
.cr-reader .cr-retry { display:inline-flex; align-items:center; padding:8px 15px; border:1px solid #ded1eb; border-radius:9px; color:var(--cr-accent); background:#f6f0fc; font-size:13px; cursor:pointer; }
.cr-reader .cr-image-dialog { width:min(1400px,94vw); max-width:94vw; max-height:92vh; padding:18px; border:1px solid #e3d6ef; border-radius:18px; color:#53415f; background:#fff; box-shadow:0 25px 100px #25143750; overflow:auto; }
.cr-reader .cr-image-dialog::backdrop { background:rgba(34,25,43,.6); backdrop-filter:blur(3px); }
.cr-reader .cr-image-dialog-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:12px; }
.cr-reader .cr-image-dialog-title { margin:0; font-size:14px; line-height:1.6; }
.cr-reader .cr-image-close { flex:0 0 auto; min-height:36px; padding:6px 14px; border:1px solid #e6daef; border-radius:9px; color:#745787; background:#f8f2fc; cursor:pointer; font-size:13px; }
.cr-reader .cr-image-full { display:block; width:auto; max-width:100%; height:auto; max-height:calc(92vh - 105px); margin:auto; object-fit:contain; }
.cr-reader :is(button,a,summary,pre,.cr-table-scroll,.math.display):focus-visible { outline:2px solid #a07dcc; outline-offset:3px; }
@media (max-width:700px) {
 .cr-reader .cr-toc-list { grid-template-columns:1fr; }
 .cr-reader .cr-content h2 { font-size:21px; margin-top:30px; }
 .cr-reader .cr-content figure { padding:0; margin:22px 0; }
 .cr-reader .cr-content img { max-height:360px; }
 .cr-reader .cr-content table { min-width:450px; }
 .cr-reader .cr-content .katex { font-size:1em; }
 .cr-reader .cr-image-dialog { padding:12px; }
}
/* Closed disclosures participate in page sizing through their summary only. */
@media screen {
 .cr-reader details:not([open]) > :not(summary) { display:none; }
}
