/* Image-first course discovery, with learning and purchasing in the main column. */
body.site-course-page>main{max-width:1780px;padding:0 24px}
body.site-course-page .cd-page:before{display:none}
body.site-course-page .cd-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:24px;padding-top:22px}
body.site-course-page .cd-page .cd-hero{display:flex;flex-direction:column;gap:0;padding:0;margin:0;min-height:0;background:transparent;color:#242424}
body.site-course-page .cd-page .cd-hero-preview{display:block;position:relative;width:100%;max-width:none;border:0;border-radius:14px;overflow:hidden;background:#193b30;color:#fff;text-decoration:none}
.cd-hero-preview img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.cd-preview-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#193b30dc;color:white;border:1px solid #ffffffb0}
body.site-course-page .cd-preview-caption{position:absolute;bottom:12px;left:12px;padding:7px 12px;border-radius:8px;background:#193b30eb;color:#fff;font-size:13px}
.cd-preview-caption>span{display:none}
.cd-hero-copy{width:100%;min-width:0;padding:0}
body.site-course-page .cd-page .cd-hero h1{color:#202124;font-size:clamp(22px,2vw,29px);line-height:1.3;letter-spacing:-.4px;margin:16px 0 9px}
body.site-course-page .cd-summary{color:#46494c;font-size:16px;line-height:1.6;margin:0 0 12px;max-width:none}
body.site-course-page .cd-hero a{color:#193b30;text-decoration:none}
body.site-course-page .cd-tags{margin:12px 0;gap:7px}
body.site-course-page .cd-tags span{color:#484b4e;background:#f2f2f2;border:0;border-radius:6px}
body.site-course-page .cd-author-meta{color:#56595c;flex-wrap:wrap}
body.site-course-page .cd-hero-action{display:none}
body.site-course-page .cd-main>.cd-enrol{position:static;max-width:none;width:100%;margin:18px 0 20px;border-radius:12px;box-shadow:none;border:1px solid #e5e5e5;overflow:visible}
body.site-course-page .cd-enrol-body{padding:18px 20px}
body.site-course-page .cd-enrol-body h2{font-size:24px;margin:0 0 12px}
body.site-course-page .cd-enrol-body>.button,body.site-course-page .cd-enrol-body>form{display:inline-flex;width:auto;margin:0 10px 8px 0;vertical-align:top}
body.site-course-page .cd-enrol-body>form button{margin:0;width:auto}
body.site-course-page .cd-enrol-body ul{display:flex;flex-wrap:wrap;gap:7px 25px;padding-left:18px;margin:8px 0}
body.site-course-page .cd-enrol-body h3{margin:14px 0 6px}
body.site-course-page .cd-enrol-body>p{margin:8px 0}
.cw-rail{min-width:0}.cw-group{margin:0 0 28px;padding:0;min-width:0}.cw-group h2{font-size:16px;line-height:1.4;margin:0 0 12px;color:#292b2e}
.cw-tabs{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:0 0 10px;margin-bottom:4px}
.cw-tabs button{flex:0 0 auto;min-height:36px;margin:0;padding:8px 12px;border:1px solid #e5e5e5;border-radius:8px;background:#f5f5f5;color:#292b2e;font-size:13px;white-space:nowrap}
.cw-tabs button[aria-selected=true]{background:#292b2e;color:white;border-color:#292b2e}
.cw-tabs button:focus-visible,.cw-course:focus-visible{outline:2px solid #98773e;outline-offset:3px}
.cw-panel[hidden]{display:none!important}.cw-panel{min-width:0}.cw-course{display:grid;grid-template-columns:44% minmax(0,1fr);gap:12px;align-items:start;margin:0 0 14px;color:#242424;text-decoration:none!important}
.cw-course img,.cw-placeholder{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:9px;background:#edf0eb;display:block}.cw-placeholder{display:grid;place-items:center;color:#193b30;font-size:30px}
.cw-copy{min-width:0;display:flex;flex-direction:column;gap:5px}.cw-copy strong{font-size:14px;line-height:1.35;color:#242424;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.cw-copy small{font-size:11px;line-height:1.4;color:#666}.cw-copy b{font-size:13px;color:#193b30}.cw-browse{display:inline-block;font-size:13px;padding:6px 0;color:#193b30}
@media(max-width:1000px){body.site-course-page .cd-layout{grid-template-columns:minmax(0,1fr) 300px;gap:18px}.cw-course{grid-template-columns:42% minmax(0,1fr);gap:9px}}
@media(max-width:850px){body.site-course-page>main{padding:0 14px}body.site-course-page .cd-layout{display:flex;flex-direction:column;padding-top:14px}.cw-rail{width:100%;order:2}.cd-main{width:100%}body.site-course-page .cd-enrol-body>ul,body.site-course-page .cd-enrol-body>h3,body.site-course-page .cd-enrol-body>hr{display:block}.cw-course{grid-template-columns:minmax(120px,38%) minmax(0,1fr)}.cw-copy strong{font-size:15px}.cw-tabs button{min-height:44px}body.site-course-page .cd-page .cd-hero h1{font-size:23px}.cd-preview-caption{max-width:calc(100% - 24px)}body.site-course-page .cd-main>.cd-enrol{order:initial}}
@media print{.cw-rail{display:none}}
body.site-course-page .cw-tabs button{background:#f5f5f5!important;color:#292b2e!important;border-color:#e5e5e5!important;font-weight:600}
body.site-course-page .cw-tabs button[aria-selected=true]{background:#292b2e!important;color:#fff!important;border-color:#292b2e!important}
body.site-course-page .cw-course img{height:auto!important;min-height:0!important;max-height:none;aspect-ratio:16/9;object-fit:cover}
body.site-course-page .cw-panel{max-height:520px;overflow-y:auto;overscroll-behavior-y:contain;padding:2px 5px 2px 0;scrollbar-width:thin}
body.site-course-page .cd-author-meta .cd-stat,body.site-course-page .cd-author-meta .cd-rating{color:#62666a}
body.site-course-page .cd-hero .course-share-trigger{background:#f4f4f4!important;border-color:#e3e3e3!important;color:#303437!important}
@media(max-width:850px){body.site-course-page .cw-panel{max-height:480px}}

/* Let the broad discovery feed fill the right column instead of clipping it. */
body.site-course-page .cw-group-other .cw-panel{max-height:none;overflow:visible;overscroll-behavior:auto}

/* Arrow controls share the compact category-navigation language. */
.cw-tab-navigation{min-width:0;margin-bottom:4px}
.cw-overflow .cw-tab-navigation{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;align-items:center;gap:5px}
.cw-tab-navigation .cw-tabs{margin:0;padding-bottom:6px;scrollbar-width:none}.cw-tabs::-webkit-scrollbar{display:none}
body.site-course-page .cw-tab-navigation .cw-tab-arrow{display:grid;place-items:center;flex:none;width:32px;height:36px;min-height:36px;margin:0;padding:0;border:1px solid #e6e6e6;border-radius:8px;background:#fafafa!important;color:#303437!important;box-shadow:none}
body.site-course-page .cw-tab-navigation .cw-tab-arrow[hidden]{display:none}
body.site-course-page .cw-tab-arrow:disabled{opacity:.35;cursor:default}
body.site-course-page .cw-tab-arrow:focus-visible{outline:2px solid #98773e;outline-offset:2px}
.cd-preview-watch .lp-page{max-width:none;margin:0 0 30px;width:100%}
.cd-preview-watch .lp-page header.lp-hero{grid-template-columns:minmax(0,1fr);gap:14px;padding:22px;margin:0;background:#f7f8f6;border:1px solid #e5e8e2;border-radius:12px}
.cd-preview-watch .lp-header-action{display:flex;align-items:center;flex-wrap:wrap;gap:12px;text-align:left}
.cd-preview-watch .lp-header-action .lp-note{margin:0}
.cd-preview-watch .lp-reading{min-width:0;width:100%;box-sizing:border-box}
.cd-preview-watch .lp-reading iframe{max-width:100%}
@media(max-width:850px){.cw-overflow .cw-tab-navigation{grid-template-columns:40px minmax(0,1fr) 40px}body.site-course-page .cw-tab-navigation .cw-tab-arrow{width:40px;height:44px;min-height:44px}.cd-preview-watch .lp-page header.lp-hero{padding:18px}}
body.site-course-page .cd-preview-watch .lp-hero h1{color:#202124;font-size:clamp(23px,2.1vw,30px);line-height:1.3;margin:10px 0}
body.site-course-page .cd-preview-watch .lp-hero .lp-intro,body.site-course-page .cd-preview-watch .lp-hero .lp-note{color:#515a55}
body.site-course-page .cd-preview-watch .lp-hero .lp-course{color:#315b46}
body.site-course-page .cd-preview-watch .lp-hero .lp-cta{background:#193b30;color:#fff;border-color:#193b30}
.cw-tab-navigation .cw-tabs{min-width:0;width:auto}
body.site-course-page .cd-preview-watch .lp-hero .lp-course{color:#315b46!important}
body.site-course-page .cd-preview-watch .lp-hero .lp-cta{background:#193b30!important;color:#fff!important;border-color:#193b30!important}
.cd-preview-watch .lp-header-action{max-width:none}
body.lesson-focus-mode .cd-preview-watch .cd-layout{display:block}

/* Match the header strip: show only directions with more tabs to reveal. */
.cw-overflow .cw-tab-navigation{display:flex;align-items:center;gap:5px}
.cw-tab-navigation .cw-tabs{flex:1 1 0;min-width:0}

/* Keep preview context separate and each learning step numbered once. */
.cd-preview-watch .lp-context{display:flex;flex-wrap:wrap;align-items:center;gap:9px 14px;margin-bottom:12px}
.cd-preview-watch .lp-context .lp-course{flex:1 1 240px;margin:0;min-width:0;line-height:1.5}
.cd-preview-watch .lp-context .lp-course span{min-width:0;overflow-wrap:anywhere}
.cd-preview-watch .lp-context .lp-badge{flex:0 0 auto;margin:0;white-space:nowrap}
.cd-preview-watch ol.lp-sequence{list-style:none!important;padding:14px 2px;margin:0}
.cd-preview-watch .lp-sequence li{list-style:none!important;display:flex!important;align-items:flex-start;gap:8px;padding:0;margin:0}
.cd-preview-watch .lp-sequence li::marker{content:''}
.cd-preview-watch .lp-sequence li::before{content:none!important}
.cd-preview-watch .lp-sequence li>.lp-step-label{display:block;flex:1;min-width:0;width:auto;height:auto;border:0;border-radius:0;background:none;color:inherit;font:inherit}
@media(max-width:850px){
 .cd-preview-watch .lp-context{flex-direction:column;align-items:flex-start;gap:10px}
 .cd-preview-watch .lp-context .lp-course{flex:none;max-width:100%}
 body.site-course-page .cw-tab-navigation .cw-tab-arrow{width:44px;flex-basis:44px}
 body.site-course-page .cw-panel{max-height:none;overflow:visible;overscroll-behavior:auto}
 .cd-preview-watch .lp-reading :is(iframe.video,iframe[src*="youtube"],iframe[src*="vimeo"]){width:100%!important;height:auto!important;aspect-ratio:16/9}
 .cd-preview-watch .lp-reading :is(table,pre){max-width:100%}
 body.site-course-page .cd-enrol-body>.button,body.site-course-page .cd-enrol-body>form{max-width:100%;box-sizing:border-box}
 body.site-course-page .cd-enrol-body :is(button,.button){white-space:normal;overflow-wrap:anywhere}
 .cw-copy strong{overflow-wrap:anywhere}
}
@media(max-width:360px){.cw-course{grid-template-columns:36% minmax(0,1fr);gap:10px}.cw-copy strong{font-size:14px}.cd-preview-watch .lp-reading{padding:18px 13px}}

.mobile-course-help{display:none!important}
@media(max-width:850px){
 body.site-course-page .mobile-course-help{display:inline-flex!important;align-items:center;gap:8px;min-height:44px;width:auto!important;max-width:100%;padding:9px 12px;margin:0 0 8px;border:1px solid #dce5de!important;background:#f5f7f4!important;color:#24533d!important;border-radius:8px;font-size:13px;line-height:1.4}
 .mobile-course-help svg{width:19px;height:19px;flex:none}
 body.site-course-page.public-premium:not(.kp-shell) .whatsapp-help{position:static!important;width:0!important;height:0;margin:0!important}
 body.site-course-page .whatsapp-help>summary{display:none!important}
 body.site-course-page .whatsapp-help .whatsapp-help-card{position:fixed!important;top:76px!important;bottom:auto!important;right:12px!important;left:12px!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 156px)!important;overflow-y:auto;z-index:250}
 
 
}

/* Keep the trailing slot stable while hiding Next at the endpoint; changing
   its width during smooth scrolling can repeatedly move the endpoint. */
body.site-course-page .cw-overflow .cw-tab-navigation .cw-tab-arrow[data-tab-scroll="1"][hidden]{display:grid;visibility:hidden;pointer-events:none}

/* One consistent control row: arrow buttons and subject chips share an edge. */
body.site-course-page .cw-tab-navigation{align-items:center;gap:6px}
body.site-course-page .cw-tab-navigation .cw-tabs{align-items:center;padding:0;margin:0;min-height:40px}
body.site-course-page .cw-tab-navigation .cw-tabs button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:40px;min-height:40px;margin:0;padding:0 12px;line-height:1.3;white-space:nowrap;max-width:none;flex:0 0 auto}
body.site-course-page .cw-tab-navigation .cw-tab-arrow{box-sizing:border-box;align-self:center;flex:0 0 40px;width:40px;height:40px;min-height:40px;margin:0;padding:0;border-radius:8px}
body.site-course-page .cw-tab-navigation .cw-tab-arrow svg{display:block;width:18px;height:18px;margin:0;flex:none}
@media(max-width:850px){body.site-course-page .cw-tab-navigation .cw-tabs{min-height:44px}body.site-course-page .cw-tab-navigation .cw-tabs button,body.site-course-page .cw-tab-navigation .cw-tab-arrow{height:44px;min-height:44px}body.site-course-page .cw-tab-navigation .cw-tab-arrow{width:44px;flex-basis:44px}}

/* Course title scale requested by the owner; cards keep their existing scale. */
body.site-course-page .cd-page .cd-hero h1{font-size:22px;line-height:1.35;letter-spacing:-.25px}

body.site-course-page .cd-page .cd-hero-action{display:none!important}

/* Match the lighter header-chip scale without heavy preview typography. */
body.site-course-page .cd-preview-caption strong{font-weight:400}
body.site-course-page .cw-tab-navigation .cw-tabs{min-height:36px}
body.site-course-page .cw-tab-navigation .cw-tabs button{height:36px;min-height:36px;padding:0 11px;font-size:13px;font-weight:500;line-height:1.4}
body.site-course-page .cw-tab-navigation .cw-tab-arrow{width:36px;height:36px;min-height:36px;flex-basis:36px}
@media(max-width:850px){body.site-course-page .cw-tab-navigation .cw-tabs{min-height:40px}body.site-course-page .cw-tab-navigation .cw-tabs button,body.site-course-page .cw-tab-navigation .cw-tab-arrow{height:40px;min-height:40px}body.site-course-page .cw-tab-navigation .cw-tab-arrow{width:40px;flex-basis:40px}}
body.site-course-page .cw-tab-navigation .cw-tab-arrow{border-radius:50%!important}
/* One clear course enrolment area, with secondary access guidance on demand. */
body.site-course-page .cd-enrol-clear .cd-enrol-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 24px;align-items:center;padding:22px 24px}
.cd-enrol-label{display:block;font:600 10px/1.5 system-ui;letter-spacing:.12em;color:#6c735e;margin-bottom:5px}
body.site-course-page .cd-enrol-offer h2{margin:0 0 6px;font-size:24px}
.cd-enrol-offer p,.cd-enrol-signin{margin:0;font-size:13px;line-height:1.5;color:#647168}
.cd-enrol-actions{min-width:190px;text-align:center}
.cd-enrol-actions>form{margin:0}
.cd-enrol-actions :is(button,.button){min-height:44px;width:100%;justify-content:center;margin:0}
.cd-enrol-signin{margin-top:9px;font-size:12px}.cd-enrol-signin a{font-weight:600;text-decoration:underline;text-underline-offset:3px}
.cd-access-details{grid-column:1/-1;border-top:1px solid #e6e9e1;padding-top:12px;font-size:13px}
.cd-access-details summary{cursor:pointer;width:fit-content;min-height:32px;align-content:center;color:#405748}
.cd-access-details p{max-width:650px;line-height:1.6}.cd-access-links{display:flex;flex-wrap:wrap;gap:10px 22px;padding:4px 0}
.cd-access-links a{font-size:12px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:650px){body.site-course-page .cd-enrol-clear .cd-enrol-body{grid-template-columns:1fr;padding:18px;gap:16px}.cd-enrol-actions{text-align:left;min-width:0}.cd-enrol-actions :is(button,.button){display:flex;width:100%}.cd-enrol-signin{text-align:center}.cd-access-details{grid-column:1}}
body.site-course-page .cd-enrol-clear details.cd-access-details{margin:0!important;padding:12px 0 0!important;border:0!important;border-top:1px solid #e6e9e1!important;border-radius:0;background:transparent!important}
body.site-course-page .cd-access-details>summary{padding:2px 0!important;background:transparent!important;font-weight:500}
/* Compact titles in the related-course thumbnail rail. */
body.site-course-page .cw-course .cw-copy strong{font-size:12px;line-height:1.45}
/* Shared course-page rhythm, without repeating the enrolment panel or preview pitch. */
body.site-course-page .cd-main>.cd-box,body.site-course-page .cd-main>.cd-certificate{margin:24px 0;padding:24px;border-radius:12px}
body.site-course-page .cd-main>.cd-box h2,body.site-course-page .cd-main>.cd-certificate h2{font-size:22px;line-height:1.35;margin:0 0 16px}
body.site-course-page .cd-main>.cd-box h3{font-size:17px;line-height:1.45}
body.site-course-page .cd-tabs{align-items:center;gap:10px 18px;padding:12px 0;margin:0 0 24px}
body.site-course-page .cd-tabs a{display:inline-flex;align-items:center;min-height:36px;font-size:13px;line-height:1.4;font-weight:500}
body.site-course-page .cd-curriculum summary{padding:14px 12px;line-height:1.5}
body.site-course-page .cd-curriculum li{padding:12px;line-height:1.55}
body.site-course-page .cd-enrol-offer h2 .course-price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.cd-preview-watch .lp-heading .lp-duration{font-size:12px;color:#647064;margin:12px 0 0;line-height:1.5}
.cd-preview-watch .lp-header-action{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}
.cd-preview-watch .lp-header-action .lp-note{margin:0;font-size:12px;line-height:1.5}
.cd-preview-watch .lp-next{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;margin:24px 0;border-radius:12px}
.cd-preview-watch .lp-next h2{font-size:22px;line-height:1.35;margin:6px 0 10px}.cd-preview-watch .lp-next p{font-size:14px;line-height:1.6;margin:0;max-width:620px}.cd-preview-watch .lp-next-actions{flex:0 0 auto;margin:0}
@media(max-width:650px){body.site-course-page .cd-main>.cd-box,body.site-course-page .cd-main>.cd-certificate{margin:18px 0;padding:18px}.cd-preview-watch .lp-next{align-items:flex-start;flex-direction:column;padding:18px;margin:18px 0;gap:16px}.cd-preview-watch .lp-next-actions,.cd-preview-watch .lp-next-actions .button{width:100%}.cd-preview-watch .lp-header-action{align-items:flex-start}.cd-preview-watch .lp-header-action .lp-note{flex-basis:100%}body.site-course-page .cd-main>.cd-box h2,body.site-course-page .cd-main>.cd-certificate h2,.cd-preview-watch .lp-next h2{font-size:20px}body.site-course-page .cd-tabs{gap:6px 16px;margin-bottom:18px}}
