/* A single responsive curriculum, rendered from existing learning state. */
.course-map{--route-green:#08764f;--route-tint:#e9faf2;color:var(--text);text-align:left}
:root[data-theme=dark] .course-map,:root[data-theme=dark] .course-route{--route-green:#65efbb;--route-tint:#20352c}
.course-route{--route-green:#08764f;--route-tint:#e9faf2;min-width:0}
dialog:has(.course-map){max-width:1080px;padding:40px;scrollbar-gutter:stable}
.map-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-right:24px;margin-bottom:24px}.map-heading h2{font-size:clamp(30px,4vw,46px);letter-spacing:-1.6px;margin:0 0 10px;padding:0;line-height:1.1}.map-heading p:last-child{margin:0;color:var(--muted);font-size:16px}.map-heading .eyebrow{font-size:10px;letter-spacing:1.6px;margin-bottom:12px;color:var(--muted)}.map-module-count{border:1px solid var(--line);border-radius:30px;padding:8px 14px;font-size:12px;white-space:nowrap;color:var(--muted)}
.map-resume{display:flex;align-items:center;justify-content:space-between;gap:32px;background:#172821;color:#fff;border-radius:24px;padding:32px;margin-bottom:32px;position:relative;overflow:hidden}.map-resume-copy{max-width:610px;position:relative;z-index:1}.map-resume-label{display:block;font-size:10px;letter-spacing:1.6px;color:#8ae6b9;margin-bottom:12px}.map-resume h3{font-size:clamp(23px,3vw,30px);line-height:1.25;margin:0 0 10px;letter-spacing:-.6px}.map-resume p{font-size:14px;line-height:1.6;color:#bdcec5;margin:0 0 20px;max-width:440px}.map-resume .map-continue{background:#12e4a0;color:#102a1f;border:0;min-height:44px;font-size:13px;padding:12px 18px;gap:24px}.map-continue:hover{background:#7bf4c6;transform:translateY(-2px)}.map-continue:focus-visible{outline-color:#fff}.map-continue span{font-size:20px;line-height:1}
.map-progress{display:grid;justify-items:center;gap:12px;flex-shrink:0;padding:0 14px;font-size:12px;color:#bdcec5}.map-progress-ring{width:124px;height:124px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#42efb0 calc(var(--route-progress)*1%),#ffffff18 0);position:relative}.map-progress-ring:before{content:'';position:absolute;inset:5px;border-radius:50%;background:#172821}.map-progress-ring strong{font-size:36px;font-weight:500;letter-spacing:-1px;z-index:1;color:white}.map-progress-ring strong span{font-size:19px;margin-left:2px;color:#91b2a2}
.map-route-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin:0 0 20px}.map-route-heading h3{font-size:18px;margin:0}.map-route-heading>span{font-size:12px;color:var(--muted)}
.route-overview{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.route-module{border:1px solid var(--line);border-radius:20px;background:var(--surface);min-width:0;overflow:hidden}.route-module.is-current{border-color:var(--route-green);box-shadow:0 0 0 1px color-mix(in srgb,var(--route-green) 12%,transparent)}.route-module>summary{list-style:none;display:flex;align-items:start;gap:14px;padding:22px;cursor:pointer}.route-module>summary::-webkit-details-marker{display:none}.route-module>summary:hover{background:var(--surface-soft)}.route-module>summary:focus-visible{outline:3px solid var(--accent);outline-offset:-4px;border-radius:20px}.route-node{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border:1px solid var(--line);border-radius:13px;font-size:13px;font-variant-numeric:tabular-nums;color:var(--muted);background:var(--surface-soft)}.is-done>summary .route-node{background:var(--route-tint);color:var(--route-green);border-color:transparent;font-size:21px}.is-current>summary .route-node{background:#12e4a0;border-color:transparent;color:#143b2a}.route-module-copy{flex:1;min-width:0}.route-kicker{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:10px;color:var(--muted);margin:0 0 7px;line-height:1.4}.route-kicker>span{color:var(--route-green)}.route-module-copy>strong{display:block;font-size:16px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}.route-module-meta{display:block;font-size:11px;color:var(--muted);margin-top:9px}.route-meter{height:3px;background:var(--line);border-radius:6px;display:block;margin-top:13px;overflow:hidden}.route-meter i{display:block;height:100%;background:var(--route-green);border-radius:6px;transition:width .35s ease}.route-chevron{width:7px;height:7px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);margin-top:14px;flex-shrink:0;transition:transform .2s}.route-module[open]>summary .route-chevron{transform:rotate(225deg)}
.route-lessons{list-style:none;padding:0 14px 14px;margin:0}.route-lesson{position:relative;margin:0;padding:0}.route-lesson:not(:last-child):after{content:'';position:absolute;top:44px;bottom:-10px;left:25px;width:1px;background:var(--line);pointer-events:none}.route-lesson a{display:flex;gap:12px;align-items:center;min-height:66px;padding:12px;border-radius:12px;position:relative;transition:background .18s}.route-lesson a:hover{background:var(--surface-soft)}.route-lesson a[aria-current]{background:var(--route-tint)}.route-lesson-mark{display:grid;place-items:center;flex:0 0 26px;height:26px;border:1px solid var(--line);background:var(--surface);border-radius:50%;font-size:11px;color:var(--muted);z-index:1}.done .route-lesson-mark{color:var(--route-green);background:var(--route-tint);border-color:transparent;font-size:15px}.current .route-lesson-mark{background:#12e4a0;color:#143b2a;border-color:transparent;font-size:17px}.pending .route-lesson-mark{color:#9f6100;background:#fff0d0;border:0;font-size:17px}.revision .route-lesson-mark{color:#b94328;background:#ffebe2;border:0;font-size:15px}.route-lesson-copy{flex:1;min-width:0}.route-lesson-copy strong{display:block;font-size:13px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}.route-lesson-copy small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.done .route-lesson-copy small,.current .route-lesson-copy small{color:var(--route-green)}.route-lesson-arrow{font-size:16px;color:var(--muted);flex-shrink:0}.locked .route-lesson-arrow,.soon .route-lesson-arrow{display:none}.map-footnote{color:var(--muted);font-size:11px;margin:22px 0 0;line-height:1.6}.route-empty{padding:20px;color:var(--muted)}
.curriculum .route-compact{display:grid;gap:10px;margin-top:16px}.route-compact .route-module>summary{padding:16px 12px;gap:10px}.route-compact .route-node{width:30px;height:30px;flex-basis:30px;border-radius:10px;font-size:11px}.route-compact .route-module-copy>strong{font-size:14px}.route-compact .route-kicker{font-size:9px}.route-compact .route-kicker>span{display:none}.route-compact .route-module-meta{font-size:10px}.route-compact .route-lessons{padding:0 6px 8px}.route-compact .route-lesson a{padding:10px;gap:8px}.route-compact .route-lesson-copy strong{font-size:12px}.route-compact .route-lesson:not(:last-child):after{left:23px}.route-compact .route-lesson-arrow{display:none}.curriculum-map-button{width:100%;margin-top:14px;min-height:40px!important;font-size:12px!important}.learning-sidebar:has(.course-route){padding:20px}.learning-sidebar .curriculum>summary{font-size:16px}
@media(max-width:700px){dialog:has(.course-map){padding:24px 16px;width:calc(100% - 16px);max-height:94dvh;border-radius:24px}.map-heading{align-items:start;margin:8px 0 22px;gap:10px;flex-direction:column}.map-heading h2{font-size:31px;letter-spacing:-1px}.map-heading .eyebrow{font-size:9px}.map-module-count{padding:0;border:0}.map-heading p:last-child{font-size:14px}.map-resume{padding:22px;gap:18px;flex-wrap:wrap;margin-bottom:24px;border-radius:20px}.map-resume-copy{flex-basis:100%}.map-resume h3{font-size:24px}.map-resume p{font-size:13px}.map-resume .map-continue{width:100%;justify-content:space-between}.map-progress{width:100%;display:flex;justify-content:start;padding:16px 0 0;border-top:1px solid #ffffff20;gap:12px}.map-progress-ring{width:50px;height:50px}.map-progress-ring:before{inset:3px}.map-progress-ring strong{font-size:16px;letter-spacing:0}.map-progress-ring strong span{font-size:10px}.map-route-heading{display:block}.map-route-heading h3{margin-bottom:5px}.map-route-heading>span{font-size:11px}.route-overview{grid-template-columns:1fr;gap:12px}.route-module>summary{padding:18px 16px;gap:12px}.route-module-copy>strong{font-size:15px}.route-module-meta{font-size:10px}.route-lessons{padding:0 8px 12px}.route-lesson-copy strong{font-size:13px}.map-footnote{font-size:10px}.learning-sidebar:has(.course-route){padding:0;background:none}.route-kicker{font-size:9px}}
@media(prefers-reduced-motion:reduce){.course-map *,.course-route *{transition:none!important;animation:none!important}.map-continue:hover{transform:none}}
