/* Keep the complete example, its result and the necessary explanation together. */
main:has(.early-study){position:relative;padding:16px 24px!important;max-width:1760px!important}
main:has(.early-study) .l1-shell{display:block}
main:has(.early-study) .l1-reading{padding:16px 20px}
main:has(.early-study) .l1-reading>h1{font-size:28px;line-height:1.3;margin:6px 0 10px}
main:has(.early-study) .l1-reading>.l1-lead{font-size:18px;line-height:1.55;margin:0 0 14px}
main:has(.early-study) .level-note{padding:5px 12px;margin:6px 0 10px}
.workspace:has(.early-study) .topbar{height:54px}
.l1-teaching:has(.early-study){display:block}
.l1-teaching .l1-art:has(.early-study){padding:0;background:none;border:0;overflow:visible}
.early-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px 16px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid #e1e8ef;margin-bottom:12px}
.early-toolbar .l1-switch{margin:0;gap:7px}
.early-toolbar .l1-switch button{padding:7px 12px;font-size:16px}
.early-actions{display:flex;gap:12px;align-items:center;margin-left:auto}
.early-actions .l2-trace-top{display:block;font-size:14px;line-height:1.6}
.early-actions .l2-trace-top span{display:block}
.early-study{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.early-program,.early-understand{min-width:0}
.early-study .l1-pair{display:block;margin:0}
.early-study .l1-code,.early-study .l1-output{padding:12px 14px}
.early-study .l1-code{border-radius:16px 16px 0 0}
.early-study .l1-output{border-radius:0 0 16px 16px}
.early-study .l1-code pre,.early-study .l1-output pre{font-size:18px;line-height:1.5;margin-top:8px}
.early-study .l1-code pre>span,.early-study .l1-output-row{min-height:1.5em}
.early-study .l1-output p{font-size:18px;margin:6px 0;line-height:1.55}
.early-study .l3-input-record{padding:8px 12px;margin:0 0 10px;line-height:1.5}
.early-study .l3-input-record p{display:inline-flex;margin:2px 12px;gap:10px}
.early-study .l3-input-record small{display:block;font-size:14px}
.early-study .l2-trace{margin:0}
.early-study .l2-svg-scroll{margin:0 0 8px;overflow:visible}
.early-study .l2-svg-scroll svg{min-width:0}
.early-study .l1-explain{font-size:18px;line-height:1.55;padding:8px 12px;margin:8px 0;background:#edf5fa}
.early-study .l2-calc{font-size:18px;padding:7px 12px;line-height:1.5}
.early-explanation{padding:10px 14px;background:#f2f7fc;border-radius:10px;margin-top:10px}
.early-explanation h2{font-size:18px;margin:0 0 5px;line-height:1.5}
.early-explanation p,.early-keypoint{font-size:18px;line-height:1.6;margin:0}
.early-keypoint{padding:8px 13px;margin-top:10px;border-left:3px solid #e9c567;border-radius:5px;background:#fff8e6}
.early-keypoint strong{font-size:16px;color:#8a6a33;margin-right:8px}
.early-study .l3-flow{max-width:100%;margin:0 0 8px}
.early-flow{display:flex;align-items:stretch;gap:18px;list-style:none;padding:0;margin:0}
.early-flow li{position:relative;flex:1;min-width:0;padding:10px;background:#e6f1fb;border:1px solid #bccfdf;border-radius:12px;font-size:18px;line-height:1.5;overflow-wrap:anywhere}
.early-flow li:nth-child(even){background:#fff0c7}
.early-flow li+li:before{content:'→';position:absolute;left:-19px;top:calc(50% - 14px);color:#5a81a0}
.early-study .l3-operators{margin:0;gap:8px}
.early-study .l3-operators>div{font-size:18px;padding:7px 12px}
.early-bindings{padding:10px 14px;background:#fff9e7;border-radius:15px;margin-bottom:8px}
.early-bindings>div{display:grid;grid-template-columns:1fr 40px 1fr;gap:10px;align-items:center;margin-bottom:8px}
.early-bindings code,.early-bindings span{font-size:18px;line-height:1.5;text-align:center;padding:5px 10px;border:1px solid #aac7e1;border-radius:10px;background:#e5efff;overflow-wrap:anywhere}
.early-bindings span{background:#fff0be;border-color:#d9c899}
.early-bindings .is-unassigned span{background:#f1f3f5;border-color:#cbd6df}
.early-bindings .is-unassigned path{stroke:#a8b9c6;stroke-dasharray:3 4}
.early-bindings svg{width:40px;height:20px}
.early-bindings p{font-size:16px;line-height:1.5;text-align:center}
.early-companion{display:flex;gap:10px;align-items:center;margin-top:10px;padding:8px 10px;border:1px solid #dbe8f5;border-radius:14px;background:#fff}
.early-companion img{width:80px;height:80px;flex-shrink:0;object-fit:contain}
.early-companion .l1-explain{background:none;padding:0;margin:0;font-size:18px;line-height:1.55}
.early-study .l1-diagram{overflow:visible;margin-bottom:10px}
.early-study .l1-diagram svg{min-width:0}
.early-study .l1-items{padding:10px 0;gap:8px}
.early-study .l1-items strong{font-size:23px;padding:6px 12px}
.early-study .l1-token-line{font-size:30px;padding:10px}
.early-program>.l1-pair+.l1-pair{margin-top:12px}
.first-speech{display:flex;align-items:center;gap:14px;padding:12px;background:#fff9e7;border:1px solid #ede0b6;border-radius:18px}
.first-speech img{width:130px;height:130px;object-fit:contain;flex-shrink:0}
.first-speech p{font-size:18px;line-height:1.6}
.first-anatomy{display:flex;justify-content:center;gap:4px;padding:14px 0}
.first-anatomy button{font:24px var(--font-code);padding:8px!important}
.first-quotes{text-align:center;padding:14px;background:#fff9e7;border:1px solid #eadfb9;border-radius:18px}
.first-quote-caption,.first-quotes p{font-size:18px;line-height:1.6}
.first-quote-tokens{display:grid;grid-template-columns:14% 72% 14%;align-items:center;width:300px;max-width:100%;margin:12px auto 0;font:26px var(--font-code);line-height:1.6}
.first-quote-tokens mark{padding:0;background:#dceeff;color:#2d6696;border-radius:8px;text-align:center}
.first-quote-tokens b{font-weight:400;color:#996223;background:#fff0b4}
.first-quotes svg{display:block;width:300px;max-width:100%;height:32px;margin:0 auto 8px}
.first-symbols>div{padding:12px 14px;background:#eef5fc;border-radius:12px;margin-bottom:8px}
.first-symbols strong,.first-symbols p{font-size:18px;line-height:1.6}
.first-symbols code{display:block;font-size:24px;margin-top:4px}
@media(min-width:1000px){main:has(.early-study) .l1-menu{position:absolute;right:40px;top:22px;width:174px;z-index:10;background:#fff;border:1px solid #dce6ef;border-radius:9px;padding:0 10px;max-height:calc(100vh - 100px);overflow:auto;box-shadow:0 3px 10px #2c4d6810}main:has(.early-study) .l1-menu>summary{font-size:14px;padding:7px 0}main:has(.early-study) .l1-menu>summary>span{display:none}main:has(.early-study) .l1-menu[open]{width:250px;padding:8px 12px}}
@media(max-width:999px){.early-study{grid-template-columns:1fr}main:has(.early-study){padding:16px!important}main:has(.early-study) .l1-reading{padding:16px}.early-actions{flex-wrap:wrap}.early-study .l2-svg-scroll{overflow:auto}.early-study .l2-svg-scroll svg{min-width:480px}.early-flow{flex-direction:column;gap:18px}.early-flow li+li:before{content:'↓';left:calc(50% - 7px);top:-22px}.early-study .l3-input-record p{display:flex;margin:4px 0}}
