#learning-connections{scroll-margin-top:84px;overflow:visible;border:0;background:none;box-shadow:none;border-radius:0}
.graph-pin{border:1px solid #d4dbcc;border-radius:26px;background:#fffef9;padding:24px;box-sizing:border-box;display:flex;flex-direction:column;gap:18px;overflow:hidden;box-shadow:0 16px 50px #344c2110}
.graph-scroll.is-scroll{height:550vh;height:550svh;position:relative}
.is-scroll .graph-pin{--graph-top:max(calc(var(--header-h) + 12px),calc(var(--playback-top) - var(--graph-chrome,100px)));position:sticky;top:var(--graph-top);height:calc(100svh - var(--graph-top) - 16px);max-height:850px}
.graph-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#7c8770;font-size:12px}
.graph-topline .sign{font-size:10px;letter-spacing:.12em;margin:0}
.graph-chapters{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0;padding:0}
.graph-chapters li{position:relative;padding:13px 0 0;border-top:3px solid #e4e9dd;font-size:13px;color:#929b87;transition:color .25s}
.graph-chapters li:before{content:'';position:absolute;left:0;top:-3px;height:3px;width:calc(var(--step-fill,0)*100%);background:#759752}
.graph-chapters li.is-current{color:#37532b;font-weight:700}.graph-chapters li.is-done{color:#64824e}
.graph-flow{display:grid;grid-template-columns:.8fr 1.5fr;gap:32px;min-height:0;flex:1}
.graph-source{padding:24px;border:1px solid #e0e6d6;border-radius:18px;background:#f1f5e9;display:flex;flex-direction:column;justify-content:center;min-height:0;transition:box-shadow .4s,border-color .4s,background .4s}
.graph-source.is-current{border-color:#779b56;box-shadow:0 0 0 4px #a0bc7b30;background:#edf4e1}
.graph-book-covers{display:flex;align-items:center;justify-content:center;margin:0 auto 26px;width:100%;max-width:300px;min-height:0}
.graph-book-covers img{width:50%;height:auto;max-height:180px;object-fit:contain;filter:drop-shadow(4px 8px 7px #32533225);transform:rotate(-7deg);transition:transform .6s}
.graph-book-covers img+img{transform:rotate(7deg);margin-left:-10px}
.graph-source.is-current .graph-book-covers img:first-child{transform:rotate(-7deg) scale(1.08)}
.graph-source .sign{font-size:10px;margin:0;color:#7b896e}.graph-source h3{font-size:clamp(22px,2.3vw,32px);line-height:1.1;letter-spacing:-.04em;margin:10px 0}
.graph-source-copy{font-size:14px;line-height:1.55;color:#748067;margin:12px 0 20px}
.graph-book-trail{display:grid;gap:8px;border-left:2px solid #a7be90;padding-left:12px;font-size:11px;color:#809171;line-height:1.4;margin-bottom:20px}
.graph-book-trail b{color:#526c42}.graph-source a{font-size:11px;color:#52743f;text-underline-offset:4px}
.graph-panels{position:relative;min-height:0}
.graph-panel{padding:22px;border:1px solid #e2e7da;border-radius:18px;background:#fff;box-sizing:border-box}
.is-scroll .graph-panel{position:absolute;inset:0;display:flex;flex-direction:column;gap:12px;opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .25s,transform .35s,visibility .25s;overflow:hidden;pointer-events:none}
.is-scroll .graph-panel.is-current{visibility:visible;opacity:1;transform:none;pointer-events:auto}
.graph-step-label{font:500 11px/1.4 var(--font-mono);text-transform:uppercase;letter-spacing:.08em;color:#779259}
.graph-panel h3{font-size:clamp(23px,2.8vw,36px);line-height:1.1;letter-spacing:-.045em;margin:0}
.graph-panel>p{font-size:15px;line-height:1.5;color:#738267;margin:0}
.graph-contents{border-top:1px solid #e2e7d8;padding-top:18px;flex:1;display:grid;align-content:center;gap:8px}
.graph-contents>span{font-size:11px;color:#8b967e;margin-bottom:7px}.graph-contents>div{padding:10px 14px;background:#f9faf6;border:1px solid #eef0e8;border-radius:8px;font-size:12px;color:#8a987c;display:flex;gap:16px;flex-wrap:wrap;align-items:center}
.graph-contents b{font-size:15px;color:#697b59;font-weight:500}.graph-contents .graph-chapter-focus{background:#eaf3de;border-color:#b7cca1}.graph-chapter-focus small{width:100%;padding-left:30px;color:#56743d}
.graph-panel .graph-small{font-size:11px;color:#8c9781}
.graph-question-sheet{flex:1;display:flex;flex-direction:column;justify-content:center;border:1px solid #e9e7db;border-radius:12px;background:repeating-linear-gradient(0deg,transparent,transparent 31px,#e8e8de 32px),#fdfbf4;padding:28px}
.graph-question-sheet>span{font-size:12px;color:#8a917e}.graph-question-sheet>p{font-size:clamp(20px,2.2vw,30px);line-height:1.6;color:#45513b}.graph-question-sheet small{font-size:12px;color:#909883;margin-top:14px}
.graph-handwriting{font-family:Kalam,cursive;font-size:30px;line-height:1.5;color:#405a31}.graph-text-link{font-size:12px;color:#5c7c43;text-underline-offset:4px}
.graph-skill-map{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;padding:10px 0}
.graph-question-chip{background:#faf8ee;padding:12px 24px;border:1px solid #e5e4d3;border-radius:10px;font:25px Kalam,cursive;color:#667954}
.graph-vertical-line{height:28px;border-left:3px solid #8baa69}
.graph-skill-hub{border:2px solid #7e9c5b;border-radius:16px;background:#eff6e4;padding:22px;text-align:center;box-shadow:0 0 0 7px #b8d09922;width:85%}.graph-skill-hub span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#829c65;margin-bottom:10px}.graph-skill-hub b{font-size:24px;line-height:1.2;letter-spacing:-.04em;font-weight:600}
.graph-skill-branches,.graph-support-branches{display:flex;gap:18px;justify-content:center;width:100%}.graph-skill-branches span,.graph-support-branches span{position:relative;background:#f7f9f1;border:1px solid #d3dfc4;border-radius:10px;padding:12px 10px;text-align:center;font-size:12px;flex:1;max-width:220px;margin-top:26px}.graph-skill-branches span:before,.graph-support-branches span:before{content:'';position:absolute;bottom:100%;left:50%;height:27px;border-left:2px solid #a6be8a}.graph-support-branches span{background:#eff4fa;color:#5f7d9a;border-color:#d8e3ef}
.graph-student-work{display:grid;grid-template-columns:1fr 1fr;gap:14px;border-radius:10px;background:#faf8ef;padding:14px;border:1px solid #e7e6d8}
.graph-student-work>div>span{font-size:10px;color:#8b927c}.graph-student-work .graph-handwriting{font-size:24px}.graph-work-slip{color:#ad7954}.graph-work-slip small{font:16px sans-serif;color:#c48a55}.graph-uni-nudge{display:flex;align-items:center;gap:8px}.graph-uni-nudge img{width:55px;height:auto}.graph-uni-nudge p{font-size:13px;line-height:1.5;color:#587a9c;margin:0}
.graph-work-fix{display:none;color:#547b39!important}.graph-panel.is-corrected .graph-work-slip{display:none}.graph-panel.is-corrected .graph-work-fix{display:block}
.graph-resource-label{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}.graph-resource-label .sign{font-size:9px;margin:0;letter-spacing:.08em}.graph-media-status{font-size:10px;color:#849475;line-height:1.4}
.graph-media{position:relative;min-height:200px;width:100%;border-radius:9px;overflow:hidden;background:#faf9f3;flex:1}
.graph-media-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.graph-media iframe,.graph-media [data-video-host]{position:absolute;inset:0;width:100%;height:100%;border:0}.graph-media [hidden]{display:none}
.graph-media-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;color:#8a9580;flex-wrap:wrap}
.graph-media-actions button,.graph-motion{font:inherit;font-size:11px;border:1px solid #d0ddc3;background:#f6f9f1;color:#53713f;border-radius:20px;padding:8px 12px;cursor:pointer}.graph-media-actions a{color:#6d805b;text-underline-offset:4px}
.graph-attempt-summary{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:#f2f7e9;border:1px solid #dce7cb;border-radius:8px;padding:12px;font-size:12px;color:#597643}.graph-attempt-summary span{font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.graph-bottom{border-top:1px solid #e3e8da;padding-top:12px;display:flex;gap:16px;justify-content:space-between;align-items:center}.graph-bottom p{font-size:13px;line-height:1.5;color:#617b4d;margin:0}.graph-motion{flex-shrink:0}
.graph-library-links{display:flex;flex-wrap:wrap;gap:22px;padding:24px 0;font-size:13px;color:#849378}.graph-library-links a{color:#57783e;text-underline-offset:4px}
.graph-static .graph-pin{height:auto}.graph-static .graph-flow{display:block}.graph-static .graph-source{margin-bottom:20px}.graph-static .graph-panels{display:grid;gap:20px}.graph-static .graph-panel{display:flex;flex-direction:column;gap:16px}.graph-static .graph-media{height:300px;flex:none}.graph-static .graph-topline>span:last-child{display:none}
@media(max-width:760px){#learning-connections{scroll-margin-top:65px}.is-scroll .graph-pin{max-height:none;padding:12px;border-radius:16px;gap:12px}.graph-topline{font-size:9px;gap:10px}.graph-topline .sign{font-size:8px;max-width:180px}.graph-chapters{gap:7px}.graph-chapters li{font-size:9px;line-height:1.3;padding-top:8px}.graph-flow{display:flex;flex-direction:column;gap:12px}.graph-source{flex-direction:row;align-items:center;justify-content:start;padding:10px;gap:14px;flex:0 0 78px;border-radius:12px}.graph-book-covers{width:92px;flex:0 0 92px;margin:0}.graph-book-covers img{max-height:65px}.graph-source .sign{font-size:8px}.graph-source h3{font-size:16px;margin:5px 0}.graph-source h3 br{display:none}.graph-source-copy,.graph-book-trail{display:none}.graph-source a{font-size:9px}.graph-panels{flex:1}.is-scroll .graph-panel{padding:14px;gap:10px;border-radius:12px}.graph-step-label{font-size:9px;letter-spacing:.03em}.graph-panel h3{font-size:24px}.graph-panel>p{font-size:12px;line-height:1.5}.graph-contents{gap:6px;padding-top:8px}.graph-contents>div{padding:9px 10px;gap:12px;font-size:11px}.graph-contents b{font-size:12px}.graph-question-sheet{padding:18px}.graph-question-sheet>p{font-size:22px}.graph-handwriting{font-size:28px}.graph-skill-hub{padding:16px}.graph-skill-hub b{font-size:21px}.graph-skill-branches span,.graph-support-branches span{font-size:11px;padding:10px 6px;margin-top:19px}.graph-skill-branches span:before,.graph-support-branches span:before{height:20px}.graph-vertical-line{height:13px}.graph-question-chip{font-size:21px;padding:8px 16px}.graph-student-work{padding:10px;gap:8px;grid-template-columns:1fr 1fr}.graph-student-work .graph-handwriting{font-size:18px;white-space:nowrap}.graph-student-work>div>span{font-size:8px}.graph-uni-nudge{gap:5px}.graph-uni-nudge img{width:30px}.graph-uni-nudge p{font-size:10px}.graph-work-fix{font-size:14px!important}.graph-resource-label .sign{font-size:8px}.graph-media{min-height:180px}.graph-video-media{min-height:200px}.graph-media-actions{gap:6px;font-size:8px}.graph-media-actions button{font-size:9px;padding:6px 9px}.graph-media-status{font-size:8px}.graph-attempt-summary{padding:8px;font-size:11px;gap:5px}.graph-bottom{gap:8px;padding-top:8px}.graph-bottom p{font-size:10px;line-height:1.4}.graph-motion{font-size:9px;padding:7px 9px}.graph-library-links{font-size:11px;gap:16px}.graph-library-links>span{width:100%}.graph-static .graph-source{display:flex}.graph-static .graph-panel{min-height:460px}}
@media(prefers-reduced-motion:reduce){.graph-panel,.graph-source,.graph-book-covers img,.graph-chapters li{transition:none}}

.is-scroll .graph-skill-branches,.is-scroll .graph-support-branches{opacity:0;transform:translateY(8px);transition:opacity .35s,transform .35s}
.is-scroll .show-connections .graph-skill-branches,.is-scroll .show-connections .graph-support-branches{opacity:1;transform:none}
.is-scroll .show-connections .graph-support-branches{transition-delay:.12s}

/* Leave room for the inline lesson and the complete skill map on phones. */
@media(max-width:760px){
 .is-scroll .graph-panel{gap:8px}
 .is-scroll .graph-panel h3{font-size:22px}
 .is-scroll .graph-contents>div{padding-block:7px}
 .is-scroll .graph-skill-map{padding:4px 0}
 .is-scroll .graph-question-chip{font-size:19px;padding:4px 12px}
 .is-scroll .graph-vertical-line{height:12px}
 .is-scroll .graph-skill-hub{padding:10px}
 .is-scroll .graph-skill-hub b{font-size:18px}
 .is-scroll .graph-skill-hub span{margin-bottom:5px}
 .is-scroll .graph-skill-branches span,.is-scroll .graph-support-branches span{padding-block:5px;margin-top:12px;font-size:10px}
 .is-scroll .graph-skill-branches span:before,.is-scroll .graph-support-branches span:before{height:13px}
 .is-scroll .graph-media{min-height:140px}
 .is-scroll .graph-video-media{min-height:180px}
}
