/* Public course discovery and its entry points. */
a.geekge-course-entry{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;margin-top:22px;padding:8px 14px;border:1px solid transparent;border-radius:14px;color:#70518f;text-decoration:none;font-size:16px;line-height:1.5}
.geekge-course-entry svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.geekge-course-entry>span{color:#74677f}
.geekge-course-entry strong{font-weight:500}
a.geekge-course-entry:hover{background:#f0eaf6;border-color:#e4d9ef}
a.course-nav-link{text-decoration:none}
.courses-page{margin:0;min-height:100vh;display:flex;flex-direction:column;background:#fbf8ff;color:#29232f;font:18px/1.7 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}
.courses-page *{box-sizing:border-box}
.courses-page a{color:inherit}
.courses-page a:focus-visible{outline:3px solid #9273b2;outline-offset:5px}
.courses-skip{position:absolute;left:24px;top:-80px;background:#fff;padding:10px 16px;border-radius:10px}
.courses-skip:focus{top:12px;z-index:5}
.courses-header{display:flex;align-items:center;justify-content:space-between;gap:20px;width:min(1120px,100%);margin:0 auto;padding:24px 32px}
.courses-back{font-size:15px;min-height:44px;display:inline-flex;align-items:center;text-decoration:none;color:#75667f!important;white-space:nowrap}
.courses-back:hover{text-decoration:underline}
.courses-main{flex:1;width:min(1060px,100%);margin:0 auto;padding:48px 32px 80px}
.courses-intro{margin-bottom:36px}
.courses-intro h1{font-size:44px;line-height:1.25;font-weight:600;margin:0 0 16px;letter-spacing:1px}
.courses-intro p{font-size:18px;color:#75677f;margin:0}
.course-card{display:grid;grid-template-columns:300px minmax(0,1fr);overflow:hidden;background:#fff;border:1px solid #e5dced;border-radius:26px;box-shadow:0 14px 42px #4f346009}
.course-art{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:30px;min-height:340px;background:#eee6f6;padding:34px;color:#70518f}
.course-art svg{width:45px;height:45px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.course-art strong{font-size:44px;line-height:1.3;letter-spacing:4px;font-weight:600}
.course-art span{font-size:14px;letter-spacing:2px;color:#7b6689}
.course-copy{align-self:center;padding:40px}
.course-kicker{font-size:14px;letter-spacing:2px;color:#7b6689;margin:0 0 14px}
.course-copy h2{font-size:32px;line-height:1.35;margin:0 0 18px;font-weight:600}
.course-description{font-size:18px;line-height:1.8;color:#716577;margin:0 0 22px}
.course-facts{display:flex;flex-wrap:wrap;gap:10px 20px;list-style:none;padding:0;margin:0 0 30px;font-size:15px;color:#75667f}
.course-facts li{white-space:nowrap}
.course-start{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 26px;border-radius:25px;background:#70518f;color:#fff!important;text-decoration:none;font-size:16px;font-weight:500}
.course-start:hover{background:#5d4279}
.courses-footer{display:flex;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;width:min(1120px,100%);margin:0 auto;padding:24px 32px;color:#75667f;font-size:14px}
.courses-footer a{text-decoration:none}
.courses-footer a:hover{text-decoration:underline}
@media(max-width:700px){.courses-main{padding-top:32px}.course-card{grid-template-columns:minmax(0,1fr)}.course-art{min-height:210px;padding:28px;gap:24px;position:relative}.course-art svg{position:absolute;right:28px;top:30px;width:36px;height:36px}.course-art strong{font-size:38px}.course-art span{margin-top:10px}.course-copy{padding:30px 28px}.course-copy h2{font-size:28px}.courses-intro h1{font-size:36px}.courses-footer{justify-content:center;text-align:center}}
@media(max-width:400px){.courses-header{padding:20px}.courses-header .geekge-brand-symbol{width:30px;height:30px;flex-basis:30px}.courses-header .geekge-brand-type strong{font-size:21px}.courses-main{padding:24px 20px 50px}.courses-intro{margin-bottom:28px}.courses-intro p{font-size:17px}.course-art{padding:24px;min-height:200px}.course-art strong{font-size:34px}.course-copy{padding:26px 22px}.course-description{font-size:17px}.course-copy h2{font-size:26px}.course-facts{gap:8px 16px;font-size:14px}.course-start{width:100%}.courses-footer{padding:22px 20px}}

/* Public chapter preview uses the current learning catalog and native disclosure controls. */
.course-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px}
.course-preview-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;font-size:16px;text-underline-offset:5px;color:#70518f!important}
.chapter-preview{margin-top:60px;scroll-margin-top:24px}
.chapter-preview-heading{margin-bottom:24px}
.chapter-preview-heading h2{font-size:28px;line-height:1.4;margin:0 0 12px;font-weight:600}
.chapter-preview-heading p{margin:0;font-size:17px;color:#75667f}
.chapter-list{display:flex;flex-direction:column;gap:14px}
.chapter-preview-item{border:1px solid #e5dced;border-radius:20px;background:#fff;overflow:hidden}
.chapter-preview-item>summary{display:grid;grid-template-columns:64px minmax(0,1fr) 22px;align-items:center;gap:20px;padding:24px;cursor:pointer;list-style:none}
.chapter-preview-item>summary::-webkit-details-marker{display:none}
.chapter-preview-item>summary::marker{content:""}
.chapter-preview-item>summary:hover{background:#fcfaff}
.chapter-preview-item>summary:focus-visible{outline:3px solid #9273b2;outline-offset:-4px;border-radius:18px}
.chapter-index{display:flex;flex-direction:column;gap:5px;font-size:14px;line-height:1.5;color:#7b6689}
.chapter-index small{font-size:14px;color:#75667f}
.chapter-label{display:flex;flex-direction:column;gap:6px;min-width:0}
.chapter-label strong{font-size:21px;line-height:1.4;font-weight:600}
.chapter-label small{font-size:16px;line-height:1.6;color:#75667f}
.chapter-chevron{width:20px;height:20px;fill:none;stroke:#7b6689;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.chapter-preview-item[open] .chapter-chevron{transform:rotate(180deg)}
.chapter-content{padding:0 24px 24px}
.chapter-description{font-size:17px;line-height:1.8;color:#716577;margin:0 0 18px;padding-top:4px}
.chapter-lesson-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;list-style:none;margin:0;padding:0}
.chapter-lesson-list li{min-width:0}
.chapter-lesson-list a{display:flex;align-items:baseline;gap:12px;min-height:54px;height:100%;padding:12px 14px;border:1px solid #eee6f5;border-radius:12px;background:#fcfaff;text-decoration:none}
.chapter-lesson-list a:hover{background:#f1eaf7;border-color:#d8c8e6}
.lesson-preview-number{font-size:14px;line-height:1.6;flex:0 0 24px;color:#7b6689}
.lesson-preview-title{min-width:0;flex:1;font-size:17px;line-height:1.65;color:#493e52;overflow-wrap:anywhere}
.lesson-preview-free{font-size:13px;line-height:1.6;color:#70518f;white-space:nowrap}
@media(max-width:700px){.chapter-preview{margin-top:42px}.chapter-preview-heading h2{font-size:26px}.chapter-preview-item>summary{grid-template-columns:48px minmax(0,1fr) 18px;gap:12px;padding:20px 18px}.chapter-label strong{font-size:20px}.chapter-content{padding:0 18px 20px}.chapter-lesson-list{grid-template-columns:minmax(0,1fr)}.chapter-lesson-list a{padding:12px;gap:10px}.chapter-chevron{width:18px;height:18px}}
@media(max-width:400px){.course-actions{gap:8px}.course-preview-link{width:100%}.chapter-preview-item>summary{padding:18px 14px;gap:10px;grid-template-columns:44px minmax(0,1fr) 18px}.chapter-content{padding:0 14px 18px}.chapter-label small{font-size:16px}.chapter-preview-heading p{font-size:16px}}
@media(prefers-reduced-motion:reduce){.chapter-chevron{transition:none}}
@media(max-width:400px){
 .chapter-preview-item>summary .chapter-index{grid-column:1;grid-row:1}
 .chapter-preview-item>summary .chapter-label{display:contents}
 .chapter-preview-item>summary .chapter-label strong{grid-column:2;grid-row:1}
 .chapter-preview-item>summary .chapter-label small{grid-column:1/-1;grid-row:2}
 .chapter-preview-item>summary .chapter-chevron{grid-column:3;grid-row:1}
}

/* Keep the primary learning action close on phones; metadata remains readable. */
.lesson-preview-free{font-size:14px}
.course-art span{color:#6b537b}
@media(max-width:700px){.course-art{min-height:150px;padding:22px;gap:12px}.course-art strong{font-size:30px;line-height:1.2}.course-art span{margin-top:0;letter-spacing:1px}.course-art svg{top:24px;right:24px}}
