/* Scoped to the foundation course; existing classrooms and formula editors are unchanged. */
.yjf-course,.yjf-study{--yjf-ink:#173e62;--yjf-muted:#637e93;--yjf-line:#d7e5f0;--yjf-blue:#216ba6;color:var(--yjf-ink);font-family:inherit;box-sizing:border-box}
.yjf-course *,.yjf-study *{box-sizing:border-box}
.yjf-course{background:#fff;border:1px solid var(--yjf-line);border-radius:12px;overflow:hidden;margin:0 0 18px}
.yjf-course-head{display:flex;align-items:center;gap:16px;padding:22px 24px;background:#f2f8fd;border-bottom:1px solid var(--yjf-line)}
.yjf-course-icon{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;border-radius:14px;color:#fff;background:#246ca2;font-size:40px;font-weight:700;line-height:1}
.yjf-eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:800;color:#477b9e}
.yjf-course h3{font-size:23px;line-height:1.4;margin:3px 0 4px;color:var(--yjf-ink)}
.yjf-course p,.yjf-study-head p{margin:0;font-size:13px;color:var(--yjf-muted);line-height:1.6}
.yjf-course-tag{margin-left:auto;white-space:nowrap;border:1px solid #c7ddec;border-radius:20px;padding:6px 10px;font-size:12px;color:#3376a5;background:white}
.yjf-curriculum-label{display:flex;justify-content:space-between;align-items:center;padding:16px 24px 8px;font-size:14px}
.yjf-curriculum-label>span{color:var(--yjf-muted);font-size:12px}
.yjf-course .yjf-lessons{margin:0;padding:0 16px 16px}
.yjf-lessons{list-style:none;margin:0;padding:0}
.yjf-lessons li{list-style:none;margin:0;padding:0;border-bottom:1px solid #e9f0f5}
.yjf-lessons li:last-child{border-bottom:0}
.yjf-lessons a,.yjf-lessons .yjf-pending-row{display:flex;align-items:center;gap:16px;padding:12px 14px;min-height:48px;line-height:1.4;text-decoration:none!important;box-shadow:none!important;border:0;color:var(--yjf-ink);font-size:15px}
.yjf-lessons .yjf-lesson-number{font-variant-numeric:tabular-nums;font-size:12px;color:#6b879b;min-width:24px}
.yjf-lessons b{font-weight:600}
.yjf-lessons small{margin-left:auto;font-size:12px;white-space:nowrap;color:#8196a6}
.yjf-lessons .yjf-lesson-ready{background:#edf6fe;border:1px solid #a7cce8;border-radius:7px;margin-top:4px;margin-bottom:4px}
.yjf-lessons .yjf-lesson-ready a,.yjf-lessons .yjf-lesson-ready small{color:#1e68a0;font-weight:700}
.yjf-lessons a:hover{background:#deeffe;border-radius:6px}
.yjf-lessons a:focus-visible,.yjf-back:focus-visible{outline:3px solid #2a80bf;outline-offset:2px}
.yjf-renew{display:block;margin:0 24px 20px;color:var(--yjf-blue)}
.yjf-study{max-width:1600px;width:100%;margin:12px auto 30px;border:1px solid var(--yjf-line);border-radius:12px;overflow:hidden;background:#fff}
.yjf-study-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 24px;border-bottom:1px solid var(--yjf-line)}
.yjf-study-head h1{font-size:25px;margin:2px 0 4px;line-height:1.35;color:var(--yjf-ink)}
.yjf-back{display:inline-block;border:1px solid #bbd3e5;border-radius:6px;padding:9px 14px;text-decoration:none!important;font-size:13px;color:var(--yjf-ink);white-space:nowrap;background:#f8fbfd}
.yjf-study-layout{display:grid;grid-template-columns:200px minmax(0,1fr)}
.yjf-study-rail{padding:20px 12px;background:#fbfdff;border-right:1px solid var(--yjf-line)}
.yjf-study-rail h2{font-size:15px;margin:0 10px 16px;color:var(--yjf-ink)}
.yjf-study-rail .yjf-lessons a,.yjf-study-rail .yjf-pending-row{gap:8px;flex-wrap:wrap;padding:12px 9px;font-size:14px}
.yjf-study-rail .yjf-lessons small{display:block;flex-basis:100%;margin:0 0 0 33px;font-size:11px}
.yjf-study-main{min-width:0;background:#f4f9fd}
.yjf-lesson-heading{min-height:48px;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border-bottom:1px solid var(--yjf-line);font-size:14px}
.yjf-lesson-heading>span{font-size:12px;color:var(--yjf-muted)}
.yjf-study-frame{display:block;width:100%;height:calc(100vh - 230px);min-height:760px;border:0;margin:0;background:white}
@media(max-width:900px){.yjf-study-layout{grid-template-columns:165px minmax(0,1fr)}.yjf-lesson-heading>span{display:none}.yjf-study-rail{padding:14px 8px}}
@media(max-width:650px){.yjf-course-head{gap:10px;padding:16px}.yjf-course-icon{flex-basis:42px;width:42px;height:42px;font-size:32px}.yjf-course h3{font-size:21px}.yjf-course-tag{display:none}.yjf-course .yjf-lessons{padding:0 8px 10px}.yjf-curriculum-label{padding:14px 14px 8px;gap:8px}.yjf-curriculum-label>span{font-size:11px}.yjf-lessons a,.yjf-lessons .yjf-pending-row{gap:12px}.yjf-study-head{padding:14px;align-items:flex-start}.yjf-study-head h1{font-size:21px}.yjf-study-head p{font-size:11px}.yjf-back{font-size:11px;padding:8px;flex-shrink:0}.yjf-study-layout{display:block}.yjf-study-rail{border-right:0;border-bottom:1px solid var(--yjf-line);padding:10px}.yjf-study-rail h2{margin:0 3px 8px;font-size:13px}.yjf-study-rail .yjf-lessons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.yjf-study-rail .yjf-lessons li{margin:0;border:1px solid var(--yjf-line);border-radius:6px}.yjf-study-rail .yjf-lessons a,.yjf-study-rail .yjf-pending-row{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:8px 5px;font-size:11px;min-height:66px}.yjf-study-rail .yjf-lessons small{margin:0;font-size:10px}.yjf-study-rail .yjf-lesson-number{font-size:10px}.yjf-lesson-heading{padding:10px 12px;font-size:13px}.yjf-study-frame{height:80vh;min-height:650px}.yjf-study{margin-top:0}}

/* Purchased list: a compact course entry. Lessons remain inside the classroom. */
.yjf-course-compact .yjf-course-head{border-bottom:0;min-height:132px}
.yjf-course-summary{flex:1;min-width:0}
.yjf-course-kind{display:inline-block;font-size:11px;color:#477b9e;margin-top:8px}
.yjf-enter{display:inline-flex;align-items:center;justify-content:center;min-width:116px;min-height:42px;padding:10px 18px;background:#216ba6;color:#fff!important;border:1px solid #216ba6;border-radius:5px;text-decoration:none!important;font-size:14px;font-weight:700;white-space:nowrap;line-height:1.4;flex-shrink:0}
.yjf-enter:hover{background:#185685;border-color:#185685}
.yjf-enter:focus-visible{outline:3px solid #85bce7;outline-offset:3px}
@media(max-width:650px){.yjf-course-compact .yjf-course-head{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px 12px;min-height:0}.yjf-course-compact .yjf-enter{grid-column:2;justify-self:start;min-width:110px;min-height:40px;font-size:13px}.yjf-course-compact h3{font-size:21px}.yjf-course-kind{margin-top:4px}}
