/* Scoped globally to LearnDash single course and step pages. */
body.csrn-ldx {--csrn-navy:#0c2948;--csrn-deep:#071c33;--csrn-gold:#e9b949;--csrn-teal:#087e72;--csrn-line:#dce6ee;--csrn-soft:#f3f7fa;}
.csrn-ldx .entry-title {color:var(--csrn-navy);letter-spacing:-.025em;line-height:1.2}
.csrn-ldx .learndash-wrapper .ld-item-list .ld-item-list-item,
.csrn-ldx .learndash-wrapper .ld-table-list,
.csrn-ldx .learndash-wrapper .ld-lesson-topic-list,
.csrn-ldx .wpProQuiz_content .wpProQuiz_questionListItem {border:1px solid var(--csrn-line);border-radius:14px;box-shadow:0 7px 24px rgba(12,41,72,.055);overflow:hidden}
.csrn-ldx .learndash-wrapper .ld-item-list .ld-item-list-item {margin-bottom:14px;transition:transform .18s,box-shadow .18s}
.csrn-ldx .learndash-wrapper .ld-item-list .ld-item-list-item:hover {transform:translateY(-2px);box-shadow:0 12px 30px rgba(12,41,72,.12)}
.csrn-ldx .learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-name,
.csrn-ldx .learndash-wrapper .ld-topic-title {font-weight:650;color:var(--csrn-navy)}
.csrn-ldx .learndash-wrapper .ld-table-list .ld-table-list-header {background:var(--csrn-navy)!important;color:#fff;border-radius:12px 12px 0 0}
.csrn-ldx .learndash-wrapper .ld-table-list .ld-table-list-item-preview {padding:19px 20px;transition:background .18s}
.csrn-ldx .learndash-wrapper .ld-table-list .ld-table-list-item-preview:hover {background:#edf8f7}
.csrn-ldx .learndash-wrapper .ld-breadcrumbs {background:var(--csrn-soft);border:1px solid var(--csrn-line);border-radius:12px;padding:14px 17px}
.csrn-ldx .learndash-wrapper .ld-progress {background:var(--csrn-soft);border-radius:12px;padding:15px}
.csrn-ldx .learndash-wrapper .ld-progress-bar {background:#dce5ee;border-radius:30px;overflow:hidden}
.csrn-ldx .learndash-wrapper .ld-progress-bar-percentage {background:var(--csrn-gold)!important}
.csrn-ldx .learndash-wrapper .ld-button,
.csrn-ldx .learndash-wrapper .learndash_mark_complete_button,
.csrn-ldx .wpProQuiz_content .wpProQuiz_button,
.csrn-ldx .csrn-ldx-launch {background:var(--csrn-teal)!important;color:#fff!important;border:0!important;border-radius:999px!important;font-weight:700;padding:12px 22px;box-shadow:0 5px 15px rgba(8,126,114,.16);cursor:pointer}
.csrn-ldx .learndash-wrapper .ld-button:hover,
.csrn-ldx .wpProQuiz_content .wpProQuiz_button:hover {background:#07665d!important}
.csrn-ldx .learndash-wrapper .ld-tabs-content {line-height:1.8}
.csrn-ldx .learndash-wrapper .ld-tabs-content h3,
.csrn-ldx .learndash-wrapper .ld-tabs-content h4 {color:var(--csrn-navy)}
.csrn-ldx .learndash-wrapper .ld-tabs-content table {width:100%;border-collapse:collapse;display:block;overflow-x:auto}
.csrn-ldx .learndash-wrapper .ld-tabs-content th {background:var(--csrn-navy);color:white}
.csrn-ldx .learndash-wrapper .ld-tabs-content th,
.csrn-ldx .learndash-wrapper .ld-tabs-content td {padding:12px;border:1px solid var(--csrn-line)}
.csrn-ldx .learndash-wrapper .ld-tabs-content .callout,
.csrn-ldx .hv-retake {background:#e7f6f2;border-left:4px solid var(--csrn-teal);padding:18px 20px;border-radius:8px;margin:18px 0}
.csrn-ldx .ld-video iframe {max-width:100%;width:100%;aspect-ratio:16/9;height:auto}
.csrn-ldx .wpProQuiz_content .wpProQuiz_questionList {padding:0}
.csrn-ldx .wpProQuiz_content .wpProQuiz_questionListItem {margin:10px 0!important;padding:15px!important}
.csrn-ldx .wpProQuiz_content .wpProQuiz_questionListItem:hover {background:#f0f8f7}
.csrn-ldx-overlay {position:fixed;inset:0;z-index:2147483000;background:rgba(3,15,31,.82);display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(5px)}
.csrn-ldx-dialog {display:flex;flex-direction:column;width:min(1280px,100%);height:min(94vh,100%);background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 22px 85px rgba(0,0,0,.35)}
.csrn-ldx-toolbar {background:var(--csrn-navy,#0c2948);color:#fff;display:flex;align-items:center;gap:12px;padding:12px 18px;min-height:62px}
.csrn-ldx-toolbar strong {flex:1;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.csrn-ldx-toolbar button {border:1px solid rgba(255,255,255,.35);border-radius:8px;background:transparent;color:white;cursor:pointer;padding:9px 12px;font-weight:700}
.csrn-ldx-toolbar button:hover {background:rgba(255,255,255,.14)}
.csrn-ldx-frame {width:100%;height:100%;border:0;background:#fff;flex:1}
body.csrn-ldx-lock {overflow:hidden!important}
body.csrn-ldx-iframe {background:#fff!important}
.csrn-ldx-modal-main {max-width:1080px;margin:0 auto;padding:24px 26px 65px}
.csrn-ldx-modal-main .entry-title {margin:0 0 22px}
@media(max-width:650px) {.csrn-ldx-overlay{padding:0}.csrn-ldx-dialog{height:100dvh;border-radius:0}.csrn-ldx-toolbar{padding:10px}.csrn-ldx-modal-main{padding:18px 15px 50px}.csrn-ldx-toolbar strong{font-size:13px}}

/* v0.2: Moodle-inspired dashboard and richer course UI */
body.single-sfwd-courses.csrn-ldx main#content,body.single-sfwd-courses.csrn-ldx main.page-main{max-width:1200px!important;width:calc(100% - 40px)!important;margin:35px auto!important}
body.single-sfwd-courses.csrn-ldx .csrn-dashboard-hero{position:relative;overflow:hidden;background:linear-gradient(115deg,#082a53 0%,#0758b9 67%,#1497c8 100%);color:#fff;border-radius:26px;padding:42px 44px 34px;margin-bottom:28px;box-shadow:0 22px 50px rgba(8,42,83,.17)}
body.single-sfwd-courses.csrn-ldx .csrn-dashboard-hero:after{content:"";position:absolute;right:-100px;top:-145px;width:430px;height:430px;border:65px solid rgba(255,255,255,.055);border-radius:50%;pointer-events:none}
.csrn-dashboard-eyebrow{font-size:13px;font-weight:800;letter-spacing:.13em;color:#c4e5ff;margin-bottom:16px}
.csrn-dashboard-hero h2{font-size:clamp(27px,3.5vw,46px);line-height:1.16;color:#fff!important;margin:0 0 12px;font-weight:700}
.csrn-dashboard-hero p{color:#e0f1ff;font-size:17px;margin:0 0 30px}
.csrn-hero-progress{display:grid;grid-template-columns:1fr auto;gap:12px;font-size:14px;font-weight:700}
.csrn-hero-progress strong{font-size:18px}
.csrn-hero-track{grid-column:1/-1;height:15px;border-radius:99px;background:rgba(255,255,255,.26);overflow:hidden}
.csrn-hero-track span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#6ce8a6,#e9bf4f);min-width:0;transition:width .4s}
.csrn-original-heading{font-size:1px!important;line-height:0!important;height:0;overflow:hidden;margin:0!important}
.csrn-learning-path-title{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:32px 0 18px;color:#082a53}
.csrn-learning-path-title span{font-size:25px;font-weight:800}
.csrn-learning-path-title small{color:#577087;font-size:13px}
.csrn-ldx .learndash-wrapper .csrn-learning-path .ld-item-list-item{border:1px solid #d9e6f4!important;border-radius:19px!important;margin:0 0 18px!important;box-shadow:0 9px 28px rgba(12,41,72,.07)!important;background:#fff}
.csrn-ldx .learndash-wrapper .csrn-learning-path .ld-item-list-item-preview{padding:21px!important;min-height:80px;display:flex;align-items:center;gap:12px}
.csrn-path-number{flex:0 0 44px;display:inline-grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#eaf3ff;color:#0758b9;font-size:18px;font-weight:800}
.csrn-ldx .learndash-wrapper .ld-progress-bar{height:12px!important;background:#dce9f3!important;border-radius:50px!important;overflow:hidden}
.csrn-ldx .learndash-wrapper .ld-progress-bar-percentage{height:100%!important;background:linear-gradient(90deg,#0960c8,#10a78c,#eabf50)!important;border-radius:50px!important}
.csrn-ldx .learndash-wrapper .ld-breadcrumbs{border:1px solid #d9e6f4;border-radius:15px!important;background:#eff6fd!important;padding:16px!important}
.csrn-ldx .learndash-wrapper .ld-table-list-header{background:linear-gradient(100deg,#0b2e55,#087e72)!important}
.csrn-ldx .learndash-wrapper .ld-button,.csrn-ldx .wpProQuiz_button{border-radius:12px!important;box-shadow:0 5px 12px rgba(8,42,83,.12)}
.csrn-ldx .wpProQuiz_question{border-radius:17px;padding:18px 22px;background:#f7faff;border:1px solid #dce8f4;margin:15px 0}
.csrn-ldx .wpProQuiz_questionListItem{transition:background .15s,border-color .15s}
.csrn-ldx .wpProQuiz_questionListItem:hover{background:#eaf4ff;border-color:#81b4e7}
@media(max-width:720px){body.single-sfwd-courses.csrn-ldx main#content,body.single-sfwd-courses.csrn-ldx main.page-main{width:calc(100% - 22px)!important;margin:14px auto!important}.csrn-dashboard-hero{padding:27px 23px!important;border-radius:18px!important}.csrn-learning-path-title{display:block}.csrn-learning-path-title small{display:block;margin-top:7px}.csrn-path-number{width:34px;height:34px;flex-basis:34px}}

/* v0.3.0: polished LearnDash infobars, content and embedded activity view */
body.csrn-ldx-iframe .site-nav,
body.csrn-ldx-iframe .provider-strip,
body.csrn-ldx-iframe footer[role="contentinfo"],
body.csrn-ldx-iframe #wpadminbar,
body.csrn-ldx-iframe .site-header {display:none!important}
body.csrn-ldx-iframe {margin-top:0!important}
html:has(body.csrn-ldx-iframe) {margin-top:0!important}
body.csrn-ldx-iframe main#content {padding-top:20px!important}
body.csrn-ldx-iframe.single-sfwd-topic h1.entry-title,
body.csrn-ldx-iframe.single-sfwd-quiz h1.entry-title {display:none!important}
body.csrn-ldx-iframe .csrn-ldx-modal-main {width:min(100% - 36px, 1100px);max-width:1100px;margin:0 auto;padding:22px 0 48px}
body.csrn-ldx-iframe .csrn-ldx-modal-main article,
body.csrn-ldx-iframe .csrn-ldx-modal-main .entry-content {width:100%;max-width:none}
body.csrn-ldx-iframe .ld-video,
body.csrn-ldx-iframe .ld-video iframe {width:100%!important;max-width:100%!important}
body.csrn-ldx-iframe .ld-video {aspect-ratio:16/9;margin:14px auto 22px}
body.csrn-ldx-iframe .ld-video iframe {height:100%!important}
body.csrn-ldx .ld-breadcrumbs,
body.csrn-ldx .ld-lesson-status,
body.csrn-ldx .ld-topic-status,
body.csrn-ldx .ld-quiz-status {border-radius:15px!important}
body.csrn-ldx .ld-breadcrumbs {padding:16px 20px!important;background:#eaf4fa!important;border:1px solid #d2e5f1!important}
body.csrn-ldx .ld-breadcrumbs-segments {font-weight:650!important}
body.csrn-ldx .ld-progress {background:#f3f8fc!important;border-radius:14px!important;padding:17px 20px!important;margin-top:10px!important}
body.csrn-ldx .ld-progress-bar {height:12px!important;background:#dce9f4!important;border-radius:99px!important;overflow:hidden}
body.csrn-ldx .ld-progress-bar-percentage {height:100%!important;border-radius:99px!important;background:linear-gradient(90deg,#0865c7,#098c80,#f0bc46)!important;transition:width .3s ease}
body.csrn-ldx .ld-status-progress {background:#e0f6f0!important;color:#087967!important;border-radius:99px!important}
body.csrn-ldx .wpProQuiz_content>h2 {color:#0c2a4b!important}
body.csrn-ldx .wpProQuiz_questionListItem {border-radius:12px!important}
@media(max-width:700px){
 body.csrn-ldx-iframe .csrn-ldx-modal-main {width:calc(100% - 24px)}
 body.csrn-ldx .ld-breadcrumbs {padding:12px!important}
}

/* v0.4 visual refinements */
html.csrn-embedded-document .site-nav,
html.csrn-embedded-document .provider-strip,
html.csrn-embedded-document footer[role="contentinfo"],
html.csrn-embedded-document #wpadminbar,
html.csrn-embedded-document .site-header {display:none!important}
html.csrn-embedded-document,html.csrn-embedded-document body{margin-top:0!important}
html.csrn-embedded-document body.single-sfwd-topic h1.entry-title,
html.csrn-embedded-document body.single-sfwd-quiz h1.entry-title{display:none!important}
.csrn-ldx .learndash-wrapper .ld-lesson-status{margin:22px 0 32px;border:1px solid #d5e4f2;border-radius:18px!important;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(9,38,72,.07)}
.csrn-ldx .learndash-wrapper .ld-lesson-status .ld-breadcrumbs{border:0!important;border-radius:0!important;background:linear-gradient(110deg,#eef6ff,#e8f8f5)!important;padding:20px 24px!important}
.csrn-ldx .learndash-wrapper .ld-lesson-status .ld-progress{border-radius:0!important;margin:0!important;background:#f8fbff!important;padding:22px 24px 26px!important}
.csrn-ldx .learndash-wrapper .ld-progress-label{color:#102e52!important;font-size:12px!important;letter-spacing:.06em;font-weight:800!important}
.csrn-ldx .learndash-wrapper .ld-progress-percentage{color:#075fc5!important;font-weight:800!important}
.csrn-ldx .learndash-wrapper .ld-progress-bar{height:14px!important}
.csrn-ldx .learndash-wrapper .ld-breadcrumbs-segments a{color:#087e78!important;text-decoration:none}
.csrn-ldx .entry-content{font-size:16px;line-height:1.8}
.csrn-ldx .entry-content h2,.csrn-ldx .entry-content h3{color:#0c2948;letter-spacing:-.015em;line-height:1.3}
.csrn-ldx .entry-content p{margin-bottom:1.15em}
.csrn-ld-status-replaced{display:none!important}
.csrn-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0 0 32px}
.csrn-stat-card{padding:23px 25px;background:linear-gradient(145deg,#fff,#f7fbff);border:1px solid #d7e5f3;border-radius:20px;box-shadow:0 9px 24px rgba(8,42,83,.06);display:flex;flex-direction:column;gap:7px}
.csrn-stat-caption{font-size:12px;font-weight:800;letter-spacing:.11em;color:#59748f}
.csrn-stat-card strong{font-size:34px;line-height:1.2;color:#082a53}
.csrn-stat-card small{font-size:13px;color:#607b92}
.csrn-stat-track{height:7px;border-radius:20px;background:#e3ecf5;margin-top:10px;overflow:hidden}
.csrn-stat-track span{height:100%;display:block;border-radius:20px;background:linear-gradient(90deg,#0960c8,#10a78c,#eabf50)}
body.csrn-ldx-iframe .csrn-ldx-modal-main{max-width:1240px!important;width:calc(100% - 64px)!important}
body.csrn-ldx-iframe .ld-video{max-width:100%!important}
@media(max-width:720px){.csrn-stat-grid{grid-template-columns:1fr;gap:12px}.csrn-stat-card{padding:18px}body.csrn-ldx-iframe .csrn-ldx-modal-main{width:calc(100% - 24px)!important}}

/* Combined lesson progress: topic completions and required quiz completions. */
.csrn-lesson-combined-progress .ld-progress-percentage{font-variant-numeric:tabular-nums}
.csrn-lesson-combined-progress .ld-status-progress.csrn-lesson-all-done{background:#087e78!important;color:white!important}
