/* Course Studio: scoped content authoring, review and reading. */
.course-studio,.studio-learn{min-width:0;max-width:100%;font-size:16px;line-height:1.65;color:var(--ink,#253039)}
.course-studio *, .studio-learn *{box-sizing:border-box}
.course-studio :is(h1,h2,h3,h4),.studio-learn :is(h1,h2,h3,h4){text-wrap:pretty;overflow-wrap:anywhere}
.course-studio :is(p,li,dd,code),.studio-learn :is(p,li,dd,code){overflow-wrap:anywhere}
.course-studio :is(a,button,input,select,textarea,summary):focus-visible,.studio-learn :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--action,#287c9c);outline-offset:3px}
.course-studio :is(button,a,summary),.studio-learn :is(button,a,summary){touch-action:manipulation}
.course-studio :is(button,summary),.studio-learn :is(button,summary){cursor:pointer}
.studio-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 24px;flex-wrap:wrap}
.studio-header>div{min-width:0;flex:1 1 260px}.studio-header h1,.studio-header h2{font-size:24px;line-height:1.45;margin:0 0 8px}
.studio-header p{margin:4px 0;font-size:14px;color:var(--muted,#475569)}
.studio-steps{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;padding:0;list-style:none;border-bottom:1px solid var(--line,#d9e1e7)}
.studio-steps :is(a,button){display:flex;align-items:center;min-height:46px;padding:10px 16px;color:var(--muted,#475569);background:transparent;border:0;border-bottom:3px solid transparent;text-decoration:none;font-weight:600}
.studio-steps :is(a,button)[aria-current],.studio-steps .active{border-bottom-color:var(--action,#287c9c);color:var(--action,#287c9c);background:#edf5f8}
.studio-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:start}
.studio-main,.studio-learn-main{display:grid;gap:20px;min-width:0}
.studio-panel{min-width:0;padding:22px;background:#fff;border:1px solid var(--line,#d9e1e7);border-radius:8px}
.studio-panel>h2,.studio-panel>h3{font-size:20px;line-height:1.5;margin:0 0 14px}.studio-panel>p{margin:8px 0 14px}
.studio-outline,.studio-learn-outline{min-width:0;border:1px solid var(--line,#d9e1e7);border-radius:8px;background:#fff;overflow:hidden;align-self:start}
.studio-outline>summary,.studio-learn-outline>summary{padding:14px 16px;font-weight:600;min-height:48px;overflow-wrap:anywhere}
.studio-outline>h2,.studio-outline>h3,.studio-learn-outline>h2,.studio-learn-outline>h3{margin:0;padding:14px 16px;font-size:16px;border-bottom:1px solid var(--line,#d9e1e7)}
.studio-outline :is(nav,ol,ul),.studio-learn-outline :is(nav,ol,ul){margin:0;padding:0;list-style:none}
.studio-outline a,.studio-learn-outline a{display:grid;gap:4px;min-height:52px;padding:12px 16px;border-bottom:1px solid var(--line,#d9e1e7);text-decoration:none;color:var(--ink,#253039);overflow-wrap:anywhere;font-size:14px}
.studio-outline a:last-child,.studio-learn-outline a:last-child{border-bottom:0}
.studio-outline a:hover,.studio-learn-outline a:hover{background:#f5f8fa}
.studio-outline a[aria-current],.studio-learn-outline a[aria-current],.studio-outline a.active,.studio-learn-outline a.active{background:#edf5f8;color:var(--action,#287c9c);border-left:3px solid var(--action,#287c9c);font-weight:600}
.studio-outline :is(small,.muted),.studio-learn-outline :is(small,.muted){font-size:13px;color:var(--muted,#475569);font-weight:400}
.studio-form,.studio-panel form,.studio-practice form,.studio-notes form{display:grid;gap:16px;min-width:0}
.studio-form label,.studio-panel form label,.studio-practice form label,.studio-notes form label{display:grid;gap:7px;min-width:0;font-size:14px;font-weight:600}
.course-studio :is(input:not([type=checkbox]):not([type=radio]),select,textarea),.studio-learn :is(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%;min-width:0;max-width:100%;min-height:46px;padding:10px 12px;border:1px solid #becdd6;border-radius:4px;background:#fff;color:var(--ink,#253039);font:inherit;font-size:16px;font-weight:400;line-height:1.6}
.course-studio textarea,.studio-learn textarea{resize:vertical;min-height:120px}
.course-studio :is(.checkline,.settlement-check),.studio-learn :is(.checkline,.settlement-check){display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:8px 0;line-height:1.6}
.course-studio :is(input[type=checkbox],input[type=radio]),.studio-learn :is(input[type=checkbox],input[type=radio]){flex:none;width:18px;height:18px;margin-top:4px;accent-color:var(--action,#287c9c)}
.studio-field-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
.studio-form :is(.hint,.muted),.studio-panel form :is(.hint,.muted){font-size:14px;font-weight:400;color:var(--muted,#475569);margin:0}
.studio-chapter{min-width:0;border-top:1px solid var(--line,#d9e1e7);padding:12px 0;scroll-margin-top:100px}
.studio-chapter>summary{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 16px;min-height:48px;font-size:17px;font-weight:600;overflow-wrap:anywhere}
.studio-chapter>summary>span:first-child{min-width:0;flex:1 1 160px}
.studio-chapter[open]>.studio-form,.studio-chapter[open]>form{margin-top:16px}
.studio-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0 0;min-width:0;scroll-margin-top:100px}
.course-studio .studio-actions :is(a,button),.studio-learn .studio-actions :is(a,button){min-height:46px;display:inline-flex;align-items:center;justify-content:center}
.studio-actions .btn{width:auto;white-space:normal;line-height:1.5;padding:10px 16px}.studio-actions>form{margin:0}
.studio-workflow{display:grid;gap:12px;min-width:0}.studio-workflow>ol{display:grid;gap:12px;margin:0;padding-left:20px}
.studio-workflow p{margin:6px 0;white-space:pre-wrap}.studio-workflow .studio-actions{margin-top:8px}
.studio-feedback,[data-studio-feedback]{scroll-margin-top:100px;overflow-wrap:anywhere}
.studio-feedback:not([hidden]),[data-studio-feedback]:not([hidden]){margin:8px 0;padding:12px 16px;border-left:3px solid var(--action,#287c9c);background:#edf5f8;font-size:14px}
.studio-feedback:empty,[data-studio-feedback]:empty{display:none}
.studio-media{display:block;width:100%;aspect-ratio:16/9;height:auto;object-fit:cover;background:#eef3f6;border-radius:5px}
.studio-learn-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start}
.studio-lesson{min-width:0;padding:24px;background:#fff;border:1px solid var(--line,#d9e1e7);border-radius:8px;scroll-margin-top:100px}
.studio-lesson>h1,.studio-lesson>h2{font-size:24px;line-height:1.5;margin:0 0 12px}.studio-lesson>h3{font-size:19px;margin:24px 0 10px}
.studio-prose{font-size:16px;line-height:1.85;min-width:0;color:var(--ink,#253039);white-space:pre-wrap;overflow-wrap:anywhere}
.studio-prose p{margin:0 0 16px}.studio-prose :is(ol,ul){padding-left:24px;margin:12px 0 20px}.studio-prose li{padding:4px 0}
.studio-prose img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;margin:16px 0}
.studio-practice{min-width:0;padding:22px;border:1px solid #bdd6e2;border-radius:8px;background:#edf5f8}
.studio-practice>h2,.studio-practice>h3,.studio-notes>h2,.studio-notes>h3{font-size:20px;line-height:1.5;margin:0 0 12px}
.studio-practice>p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 16px}.studio-practice :is(ol,ul){margin:12px 0 20px;padding-left:24px}.studio-practice li{padding:4px 0}
.studio-notes{padding:22px;background:#fff;border:1px solid var(--line,#d9e1e7);border-radius:8px;min-width:0}
@media(min-width:1001px){.studio-outline,.studio-learn-outline{position:sticky;top:92px}}
@media(max-width:1000px){.studio-layout,.studio-learn-layout{grid-template-columns:minmax(0,1fr)}.studio-outline,.studio-learn-outline{position:static}.studio-layout>.studio-outline,.studio-learn-layout>.studio-learn-outline{order:0}.studio-main,.studio-learn-main{order:1}}
@media(max-width:640px){.course-studio,.studio-learn{font-size:15px}.studio-header{gap:12px;margin-bottom:18px}.studio-header h1,.studio-header h2{font-size:22px}.studio-steps{gap:4px}.studio-steps :is(a,button){padding:8px 10px;font-size:14px}.studio-panel,.studio-lesson,.studio-practice,.studio-notes{padding:16px}.studio-panel>h2,.studio-panel>h3,.studio-practice>h2,.studio-practice>h3,.studio-notes>h2,.studio-notes>h3{font-size:19px}.studio-field-pair{grid-template-columns:minmax(0,1fr);gap:16px}.studio-lesson>h1,.studio-lesson>h2{font-size:22px}.studio-layout,.studio-learn-layout{gap:16px}.studio-main,.studio-learn-main{gap:16px}.studio-actions{gap:10px}.studio-actions>.btn,.studio-actions>form{flex:1 1 100%;width:100%}.studio-actions>form>.btn{width:100%}.studio-chapter>summary{font-size:16px}.studio-prose{font-size:16px;line-height:1.8}.studio-feedback:not([hidden]),[data-studio-feedback]:not([hidden]){padding:12px;font-size:14px}}
@media(prefers-reduced-motion:no-preference){.studio-outline a,.studio-learn-outline a{transition:background-color 160ms ease,color 160ms ease}}
/* Actual editor, queue and reading markup. */
.course-studio #studio-editor{display:grid;gap:20px;min-width:0}
.course-studio form.studio-panel{display:grid;gap:16px}
.course-studio form.studio-panel>label{display:grid;gap:7px;font-size:14px;font-weight:600;min-width:0}
.course-studio form.studio-panel>label.checkline{display:flex;align-items:flex-start}
.studio-panel>summary{cursor:pointer;min-height:44px;font-weight:600;overflow-wrap:anywhere}
.studio-steps>li{display:flex;align-items:center;min-height:46px;padding:8px 14px;font-size:14px;font-weight:600;color:var(--muted,#475569)}
.studio-list{display:grid;gap:12px;margin-bottom:20px;min-width:0}
.studio-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px 20px;background:#fff;border:1px solid var(--line,#d9e1e7);border-radius:8px;min-width:0}
.studio-list-row>div{min-width:0}.studio-list-row h3{font-size:18px;margin:0 0 8px}.studio-list-row p{margin:4px 0 10px;font-size:14px;color:var(--muted,#475569)}
.studio-list-row>a{min-height:44px;display:flex;align-items:center;color:var(--action,#287c9c);font-weight:600;text-decoration:none}
.studio-list-row>a:hover{text-decoration:underline}
ol.studio-workflow{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 20px;padding:0;list-style:none;gap:8px}
ol.studio-workflow>li{min-height:46px;padding:10px 12px;background:#fff;border:1px solid var(--line,#d9e1e7);font-size:14px;color:var(--muted,#475569);overflow-wrap:anywhere}
ol.studio-workflow>li.active{background:#edf5f8;color:var(--action,#287c9c);border-color:#a8c9d8;font-weight:600}
ol.studio-workflow>li.done{color:var(--action,#287c9c);background:#f6fafb}
.studio-lesson>header{margin-bottom:20px}.studio-lesson>header>h2{font-size:24px;line-height:1.5;margin:0 0 8px}.studio-lesson>header>p{margin:0;font-size:14px;color:var(--muted,#475569)}
.studio-goal{padding:14px 16px;margin:0 0 22px;background:#f5f8fa;border-left:3px solid var(--action,#287c9c)}.studio-goal>p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.studio-lesson>.studio-practice{margin-top:24px}.studio-practice h4{font-size:16px;margin:22px 0 10px}
.studio-media-ref{padding:16px;border:1px solid var(--line,#d9e1e7);border-radius:4px;margin:20px 0;background:#f8fafb;min-width:0}.studio-media-ref p{margin:8px 0;overflow-wrap:anywhere}
.studio-learn-outline>p{margin:0;padding:10px 16px;border-top:1px solid var(--line,#d9e1e7)}
.studio-learn .studio-header{margin-top:24px}
.studio-public-outline{display:grid;gap:12px;padding-left:24px;min-width:0}.studio-public-outline p{margin:4px 0 0}
@media(max-width:640px){.course-studio #studio-editor{gap:16px}.studio-list-row{grid-template-columns:minmax(0,1fr);gap:8px;padding:16px}.studio-list-row>a{justify-self:start}.studio-steps>li{font-size:13px;padding:8px}.studio-lesson>header>h2{font-size:22px}.studio-goal{padding:12px;margin-bottom:18px}.studio-lesson>.studio-practice{margin-top:20px}ol.studio-workflow{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-learn .studio-header{margin-top:18px}}
/* Keep editor text inset: the chapter shares the panel class. */
.studio-chapter.studio-panel{padding:18px 20px}
.course-studio form.studio-panel>.btn,.studio-notes form>.btn,.studio-practice form>.btn{justify-self:start;min-height:46px}
@media(min-width:1001px){.studio-outline,.studio-learn-outline{max-height:calc(100dvh - 108px);overflow-y:auto;scrollbar-gutter:stable}}
@media(max-width:640px){.studio-chapter.studio-panel{padding:16px}.course-studio form.studio-panel>.btn,.studio-notes form>.btn,.studio-practice form>.btn{justify-self:stretch;width:100%}}
/* Studio course booking keeps action feedback visible on phones. */
@media(max-width:640px){.v2-published-detail[data-studio-ready="1"] .v2-published-feedback{display:block;min-width:0;overflow-wrap:anywhere;scroll-margin-top:100px}.v2-published-detail[data-studio-ready="1"] .v2-published-feedback:empty{display:none}}
