:root{font-family:system-ui,-apple-system,'Noto Sans KR',sans-serif;color:#252c40;background:#f8f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:#f8f7fb}a{color:inherit}button{font:inherit}
header{max-width:1060px;margin:auto;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;font-weight:750;text-decoration:none;font-size:18px}.brand span{display:inline-grid;place-items:center;width:34px;height:34px;background:#6858be;border-radius:11px;color:white;margin-right:9px}.back{font-size:13px;text-decoration:none;color:#63558c}
main{max-width:1000px;padding:16px 24px 48px;margin:auto}.intro{padding:35px 0 24px}.eyebrow{color:#83749f;font-size:11px;letter-spacing:.18em;font-weight:750}h1{font-size:clamp(30px,5vw,44px);line-height:1.35;letter-spacing:-.05em;margin:16px 0}p{line-height:1.75;color:#697080}
.coverage{border:1px solid #dfdaed;border-radius:18px;padding:22px 25px;background:#f0edf7;font-size:13px}.coverage p{margin:6px 0 0}.coverage strong{color:#574872;font-size:15px}.coverage a{color:#574872;font-weight:650}
.bands{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}.bands a{text-decoration:none;font-size:13px;font-weight:650;color:#574872;border:1px solid #d5cee5;background:white;border-radius:999px;padding:10px 16px}
#summary{font-size:12px;margin:22px 0 0}
.band h2{font-size:18px;letter-spacing:-.02em;margin:30px 0 12px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:12px;align-items:start}
.course{background:white;border:1px solid #e8e7ed;border-radius:16px;padding:18px 20px;display:flex;flex-direction:column;gap:12px;min-width:0}.course h3{margin:0;font-size:17px;letter-spacing:-.02em}.course .meta{margin:4px 0 0;font-size:12px;color:#676177}
.start{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:12px;background:#6858be;color:white;font-size:14px;font-weight:700;text-decoration:none;padding:10px 14px;text-align:center}.start:hover{background:#5a4aae}
.toc summary{cursor:pointer;font-size:13px;font-weight:650;color:#574872;min-height:44px;display:flex;align-items:center}.unit h4{margin:12px 0 6px;font-size:13px;color:#3f3a52}.unit ol{margin:0;padding-left:20px;font-size:13px;line-height:1.7;color:#4a4f60}.unit li{overflow-wrap:anywhere}.unit li.without{color:#676177}.tag{font-size:11px;border:1px solid #dcd6e8;border-radius:6px;padding:1px 5px;white-space:nowrap}.unit .tag{margin-left:6px}.tag.sample{border-color:#b9a8e6;background:#fff;color:#574872;font-weight:650}.coverage .tag{margin:0 2px}
#error{margin-top:24px;border:1px dashed #d5d0e1;border-radius:15px;padding:24px;text-align:center}#error p{margin:0 0 12px}
footer{max-width:1000px;margin:40px auto 0;padding:25px 24px 40px;display:flex;flex-wrap:wrap;gap:20px;font-size:12px;color:#777488;border-top:1px solid #e3e1e9}
button{cursor:pointer;border:1px solid #d5cee5;border-radius:10px;padding:10px 15px;background:white;color:#5e4b8b;min-height:44px}button:disabled{opacity:.55;cursor:wait}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #a894d4;outline-offset:3px}
@media(max-width:540px){header{padding:20px 18px}main{padding:0 18px 35px}.intro{padding-top:18px}.coverage{padding:18px}.course{padding:16px}footer{padding:22px 18px 36px}}

/* 카드 머리·단원 미리보기(두 모드 공통) */
.course-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.chip{background:#f0edf7;color:#574872;font-size:11.5px;font-weight:750;border-radius:99px;padding:3px 10px}.course-top .no{font-size:12px;font-weight:750;color:#8a8499}
.unit-preview{list-style:none;margin:0;padding:12px 0 0;border-top:1px solid #efedf3;display:flex;flex-direction:column;gap:6px;font-size:13.5px;line-height:1.4;color:#4a4f60}.unit-preview li{display:flex;gap:9px;align-items:baseline;overflow-wrap:anywhere}.unit-preview li:before{content:"";flex:none;width:6px;height:6px;border-radius:2px;background:#6858be;transform:translateY(-2px)}.unit-preview li.more{color:#8a8499;font-size:12.5px}.unit-preview li.more:before{background:transparent}

/* Embedded course browser on mk landing — 랜딩 COURSE LIBRARY 디자인(2026-11-11): 크림 배경에 그대로 이어지는 학교급 탭 + 카드.
   데이터/API·시작 링크는 apex 그대로. */
body.embedded{background:#fff9ee;font-family:Pretendard,"Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif;color:#10203c}
body.embedded header,body.embedded .intro,body.embedded .coverage,body.embedded footer{display:none}
body.embedded main{max-width:none;padding:0 0 4px}
body.embedded .band-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;padding-bottom:18px;margin-bottom:22px;border-bottom:2px solid #10203c}
body.embedded .bands{margin:0;gap:8px}
body.embedded .bands button{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:9px 18px;border-radius:99px;font-weight:800;font-size:15.5px;border:1.5px solid #c9d4e6;background:#fff;color:#10203c}
body.embedded .bands button[aria-pressed="true"]{border-color:#10203c;background:#10203c;color:#fff}
body.embedded .bands .count{font-size:12.8px;font-weight:800;opacity:.72}
body.embedded .bands button:focus-visible{outline:3px solid #ffd76c;outline-offset:2px}
body.embedded .band-note{font-size:13.4px;font-weight:700;color:#66738b}
body.embedded #summary{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);margin:0}
body.embedded .band h2{display:none}
body.embedded .grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;align-items:stretch}
body.embedded .course{border:1px solid #dbe4f2;border-radius:22px;padding:22px;gap:14px;box-shadow:none}
body.embedded .course h3{color:#10203c;font-size:24px;line-height:1.22;letter-spacing:-.045em}
body.embedded .course .meta{color:#66738b}
body.embedded .chip{background:#edf4ff;color:#20417e}
body.embedded .course-top .no{color:#66738b}
body.embedded .unit-preview{flex-grow:1;border-top-color:#edf1f7;color:#516078;font-size:14.4px}
body.embedded .unit-preview li:before{background:#2058ee}
body.embedded .unit-preview li.more{color:#66738b}
body.embedded .start{min-height:46px;border-radius:14px;background:#2058ee;font-weight:800;font-size:15px}
body.embedded .start:hover{background:#1748c8}
body.embedded .toc summary{justify-content:center;color:#20417e;font-weight:800;font-size:14px}
body.embedded .unit h4{color:#10203c}
body.embedded #error{background:#fff;border-color:#c9d4e6}
@media(max-width:560px){body.embedded .grid{grid-template-columns:1fr}body.embedded .course h3{font-size:21px}}
