/* Original Demo learning surfaces, optional V2 chapter tree. */
body.dl-at-learning #main{width:100%;max-width:none;margin:0;padding:24px;box-sizing:border-box}
.dl-workspace{--dl-ink:#28415e;--dl-muted:#687e98;--dl-line:#dfe8f3;--dl-accent:#2464d9;width:100%;min-width:0;color:var(--dl-ink)}
.dl-workspace-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px}
.dl-location{display:flex;align-items:center;gap:10px;min-width:0;font-size:14px;line-height:1.5;color:var(--dl-muted)}
.dl-location>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dl-directory-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;flex:none;padding:10px 15px;border:1px solid var(--dl-line);border-radius:10px;background:#f8fbff;color:var(--dl-ink);font:inherit;font-size:14px;cursor:pointer}
.dl-directory-toggle svg{width:18px;height:18px}.dl-directory-toggle svg:last-child{width:14px;height:14px;transform:rotate(-90deg)}.dl-directory-toggle[aria-expanded=true] svg:last-child{transform:rotate(90deg)}
.dl-directory-toggle:hover{background:#edf4ff;border-color:#aac6ed}.dl-workspace button:focus-visible,.dl-workspace select:focus-visible,.dl-workspace summary:focus-visible{outline:2px solid var(--dl-accent);outline-offset:3px}
.dl-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}.dl-workspace.is-directory-open .dl-layout{grid-template-columns:clamp(360px,30vw,420px) minmax(0,1fr)}
.dl-content{min-width:0;width:100%}.dl-content>.route-enter,.dl-content .fs-workspace,.dl-content .pl-workspace{width:100%;max-width:none;margin:0;min-width:0}
.dl-content .classroom-landing{max-width:1100px;margin:0 auto;border-radius:20px;overflow:hidden}.dl-content .classroom-cover{aspect-ratio:16/9;max-height:530px;width:100%;background:#102d46}.dl-content .classroom-cover img{object-fit:contain;width:100%;height:100%}
.dl-content>h1,.dl-content>.route-enter>h1{max-width:1100px;margin:0 auto 20px;font-size:24px}.dl-content .classroom-lessons{max-height:none;overflow:visible}.dl-content #classroom-tab-panel{max-height:none}
.dl-course-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:22px 30px;border-top:1px solid var(--dl-line);flex-wrap:wrap}.dl-course-actions .dl-quiet{background:#f1f6fd;color:#4d6d94;border:0}.dl-course-actions .btn{min-height:44px}
body .dl-workspace .sw-directory{position:sticky;top:96px;display:flex;flex-direction:column;min-width:0;width:100%;max-height:calc(100dvh - 120px);padding:0;background:#f9fbfe;border:1px solid var(--dl-line);border-radius:14px;box-shadow:none;overflow:hidden}
body .dl-workspace .sw-directory[hidden]{display:none!important}
body .dl-workspace .sw-directory-head{padding:18px;border-bottom:1px solid var(--dl-line)}
body .dl-workspace .completion-directory-course{display:flex;flex-direction:column;gap:12px;width:100%;font-size:15px;font-weight:600}
body .dl-workspace .completion-directory-course select{font:inherit;font-size:14px;min-height:44px;padding:8px 10px;width:100%;min-width:0;border:1px solid var(--dl-line);border-radius:8px;background:#f1f6fd;color:var(--dl-ink)}
body .dl-workspace .sw-tree{overflow:auto;min-height:0;padding:10px;scrollbar-gutter:stable}
body .dl-workspace .sw-chapter{border:0;border-bottom:1px solid #e7edf5;margin:0;background:transparent;border-radius:0}
body .dl-workspace .sw-chapter>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 6px;list-style:none;cursor:pointer;font-size:14px;color:var(--dl-ink);font-weight:600}
body .dl-workspace .sw-chapter>summary::-webkit-details-marker{display:none}.dl-workspace .sw-chapter>summary small{margin-left:auto;color:var(--dl-muted);font-size:12px}
.dl-workspace .sw-chapter>summary:after{content:'›';font-size:20px;font-weight:400;transform:rotate(0)}.dl-workspace .sw-chapter[open]>summary:after{transform:rotate(90deg)}
body .dl-workspace .sw-points{display:grid;gap:3px;padding:4px 0 12px}
body .dl-workspace :is(.sw-points,.pe-reader-point)>button[data-action]{display:flex;align-items:center;gap:9px;text-align:left;min-height:48px;padding:10px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:#4a6382;font:inherit;font-size:13px;line-height:1.6;cursor:pointer}
body .dl-workspace :is(.sw-points,.pe-reader-point)>button[data-action]>span:nth-child(2){flex:1;min-width:0}
body .dl-workspace :is(.sw-points,.pe-reader-point)>button[data-action]:hover{background:#edf3fc}body .dl-workspace :is(.sw-points,.pe-reader-point)>button[data-action][aria-current=page]{background:#e9f2ff;border-color:#b7cff3;color:#2464d9}
body .dl-workspace .sw-requirement{flex:none;font-size:11px;padding:2px 5px;border-radius:5px;background:#fceedd;color:#9a6224}
.dl-point-state{flex:none;width:18px;display:inline-flex}.dl-point-state .completion-status{font-size:0;gap:0}.dl-point-state .completion-status svg{width:16px;height:16px}.dl-point-state .completion-status:before{font-size:14px}
body .dl-at-learning .handout-workspace{max-width:none}.dl-content .handout-workspace.is-expanded{z-index:120}
@media(max-width:1000px){.dl-workspace.is-directory-open .dl-layout{gap:18px}}
body[data-surface=mini].dl-at-learning #main{padding:12px 12px 100px}.dl-at-learning[data-surface=mini] .dl-location{font-size:12px;gap:6px}.dl-at-learning[data-surface=mini] .dl-workspace-bar{gap:10px;margin-bottom:14px}.dl-at-learning[data-surface=mini] .dl-directory-toggle{padding:8px 11px;font-size:13px}
@media(max-width:760px){body.dl-at-learning #main{padding:16px}.dl-workspace.is-directory-open .dl-layout{grid-template-columns:minmax(0,1fr);gap:16px}body .dl-workspace .sw-directory{position:static;max-height:48dvh}.dl-content .classroom-course-heading{padding:18px;gap:14px}.dl-content .classroom-course-heading h2{font-size:22px;line-height:1.4}.dl-content .classroom-materials{padding:0 18px 18px;gap:10px}.dl-content .classroom-resource{min-width:0;padding:12px;font-size:15px}.dl-content .classroom-lesson{padding:14px 8px}.dl-course-actions{padding:18px;gap:8px}.dl-course-actions .btn{font-size:13px;flex:1;white-space:nowrap}.dl-location{font-size:12px}.dl-directory-toggle{font-size:13px;padding:8px 10px}.dl-content .classroom-landing{border-radius:14px}.dl-content .pl-point-heading{font-size:13px}}
@media(prefers-reduced-motion:reduce){.dl-workspace *{scroll-behavior:auto!important;transition:none!important}}

.dl-back-home{display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:6px 8px 6px 0;border:0;background:transparent;color:#4e6e99;font:inherit;font-size:13px;cursor:pointer}.dl-back-home svg{width:16px;height:16px}.dl-back-home:hover{color:#2464d9}

body[data-surface=pc] .dl-content .pl-workspace [data-action="pl-back"]{display:none}

.dl-point-state .sh-state-check{font-size:16px;line-height:1}.dl-point-state .completion-status{width:18px;min-width:18px;display:inline-flex;justify-content:center}

/* Chapter names open the summary. The surrounding disclosure toggles its points. */
body[data-surface=pc] .dl-chapter-link{
 display:inline-flex;align-items:center;min-height:44px;min-width:44px;max-width:100%;white-space:normal;
 color:#275b9b;text-decoration:none;text-underline-offset:4px;border-radius:6px;
}
body[data-surface=pc] .dl-chapter-link>span{min-width:0;overflow-wrap:anywhere}
body[data-surface=pc] .dl-chapter-link:hover{color:#164d9d;text-decoration:underline}
body[data-surface=pc] .dl-chapter-link:focus-visible{outline:2px solid #2865c5;outline-offset:2px}
body[data-surface=pc] .dl-chapter-link[aria-current=page]{color:#185cca;text-decoration:underline;box-shadow:none}
body[data-surface=pc] .dl-workspace .sw-chapter:has(.dl-chapter-link[aria-current=page])>summary{background:#f8fbff}
body[data-surface=pc] .dl-workspace .sw-chapter>summary:has(>.dl-chapter-link){padding-block:3px}
body[data-surface=pc] .sh-chapter-scroll .ps-module-row:has(.dl-chapter-link) .completion-chevron{cursor:pointer}
body[data-surface=pc] .sh-chapter-scroll .pe-chapter-title-cluster>.dl-chapter-link{flex:0 1 auto}

.dl-summary{
 margin-inline:auto;max-width:940px;box-sizing:border-box;padding:clamp(22px,4vw,52px);
 color:#2e4560;background:var(--dl-sheet,#fffdfa);border:1px solid var(--dl-sheet-rule,#e6dfd2);border-radius:18px;
}
.dl-summary-heading{padding-bottom:24px;border-bottom:1px solid var(--dl-sheet-rule,#e6dfd2)}
.dl-summary-heading>span{color:#486c96;font-size:14px;font-weight:600}
#main .dl-summary h1{margin:9px 0 0;font-size:clamp(26px,3vw,38px);line-height:1.25;color:#213b59}
.dl-summary h1:focus-visible{outline:2px solid #2865c5;outline-offset:4px}
.dl-summary-heading p{max-width:60ch;margin:14px 0 0;font-size:16px;line-height:1.8}
.dl-summary-group{display:grid;grid-template-columns:64px minmax(0,1fr);gap:18px;padding:22px 0;border-bottom:1px solid var(--dl-sheet-rule,#e6dfd2)}
.dl-summary-group:last-child{border-bottom:0;padding-bottom:0}
#main .dl-summary-group h2{align-self:start;margin:0;padding:5px 8px;border-radius:7px;background:#edf3fb;color:#325d8d;font-size:14px;text-align:center}
.dl-summary-group ul{margin:0;padding-inline-start:1.3em;font-size:16px;line-height:1.65}
.dl-summary-group li+li{margin-top:12px}
.dl-summary-group li::marker{color:#6389b4}
.dl-summary-group li p{margin:2px 0 0;color:#4a617c;font-size:15px;line-height:1.7}
.dl-summary-empty{margin:22px 0 0;color:#516b88}
@media(max-width:1000px){
 .dl-summary{padding:24px}
 .dl-summary-group{grid-template-columns:minmax(0,1fr);gap:10px}
 #main .dl-summary-group h2{justify-self:start}
}
