/* Scoped presentation; native forms, access rules and navigation remain intact. */
body.ieb-lex-active {
  --ieb-page:#f3f0e8; --ieb-surface:#fffefb; --ieb-ink:#173247;
  --ieb-secondary:#536773; --ieb-terracotta:#925035; --ieb-sand:#d6d7ce;
  --ieb-fact:#2f6473; --ieb-fact-soft:#e8f0f2;
  --ieb-hypothesis:#855325; --ieb-hypothesis-soft:#f6ebdd;
  --ieb-recommendation:#2e6554; --ieb-recommendation-soft:#eaf0e6;
  --ieb-danger:#8c3a3a; --ieb-danger-soft:#f8e7e5;
}
body.ieb-lex-active .ieb-lex,
body.ieb-lex-active .learndash-wrapper,
body.ieb-lex-active .learndash-wrapper .ld-focus-content,
body.ieb-lex-active .learndash-wrapper .ld-focus-content :is(h1,h2,h3) {
  font-family:'Source Sans 3',Arial,sans-serif; color:var(--ieb-ink);
}
body.ieb-lex-active .ieb-lex {font-size:18px;line-height:1.65;min-width:0;overflow-wrap:anywhere;}
body.ieb-lex-active .ieb-lex *, body.ieb-lex-active .ieb-lex *::before, body.ieb-lex-active .ieb-lex *::after {box-sizing:border-box;}
body.ieb-lex-active .ieb-lex :is(h1,h2,h3,p,ul,ol,figure) {max-width:100%;}
body.ieb-lex-active .ieb-lex :is(h1,h2),
body.ieb-lex-active .learndash-wrapper .ld-focus-content h1 {font-family:'Source Serif 4',Georgia,serif;font-weight:400;letter-spacing:-.025em;line-height:1.18;}
body.ieb-lex-active .ieb-lex h1 {font-size:clamp(32px,4vw,52px);}
body.ieb-lex-active .ieb-lex h2 {font-size:clamp(27px,3vw,38px);}
body.ieb-lex-active .ieb-lex h3 {font-size:22px;line-height:1.3;font-weight:600;}
body.ieb-lex-active .ieb-lex p {margin:0 0 1em;}
body.ieb-lex-active .ieb-lex :is(a,button,input,select,textarea,summary):focus-visible,
body.ieb-lex-active .learndash-wrapper :is(a,button,input,select,textarea,summary):focus-visible {outline:3px solid var(--ieb-terracotta)!important;outline-offset:4px;}
body.ieb-lex-active .ieb-lex :is(button,input,select,textarea) {font:inherit;max-width:100%;}
body.ieb-lex-active .ieb-lex :is(button,select,input[type=file]) {min-height:44px;}
body.ieb-lex-active .ieb-lex :is(input[type=text],textarea,select) {background:var(--ieb-surface);color:var(--ieb-ink);border:1px solid #a9b5b8;border-radius:0;padding:10px;}
body.ieb-lex-active .ieb-lex textarea {width:100%;min-height:130px;resize:vertical;line-height:1.6;}
body.ieb-lex-active .ieb-lex label {display:block;font-weight:600;margin:16px 0 6px;}
body.ieb-lex-active .ieb-lex a {color:var(--ieb-ink);text-underline-offset:4px;}
body.ieb-lex-active .ieb-lex-button,
body.ieb-lex-active .learndash-wrapper .ld-button,
body.ieb-lex-active .learndash-wrapper .learndash_mark_complete_button,
body.ieb-lex-active .learndash-wrapper #learndash_mark_complete_button {
  background:var(--ieb-ink)!important;color:var(--ieb-surface)!important;border:1px solid var(--ieb-ink)!important;
  border-radius:0!important;padding:13px 20px;min-height:48px;white-space:normal;text-align:center;
}
body.ieb-lex-active .ieb-lex-button {display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:600;}
body.ieb-lex-active .ieb-lex-actions {display:flex;gap:12px;flex-wrap:wrap;align-items:center;}
body.ieb-lex-active .ieb-lex-heading {padding:20px 0 34px;border-bottom:1px solid var(--ieb-sand);}
body.ieb-lex-active .ieb-lex-kicker {font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--ieb-terracotta);font-weight:600;}
body.ieb-lex-active .ieb-lex-course {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;padding:28px 0;border-bottom:1px solid var(--ieb-sand);}
body.ieb-lex-active .ieb-lex-course h3 {margin:0 0 16px;}
body.ieb-lex-active .ieb-lex-notice {padding:18px 22px;background:var(--ieb-page);border-left:2px solid var(--ieb-terracotta);font-size:16px;}
body.ieb-lex-active .ieb-lex-tools {display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:14px 0;margin-bottom:28px;border-bottom:1px solid var(--ieb-sand);font-size:14px;}
body.ieb-lex-active .ieb-lex-tools label {margin:0;font-weight:400;}
body.ieb-lex-active .ieb-lex-large {font-size:22px;line-height:1.8;}
body.ieb-lex-active .ieb-lex-large :is(.ieb-experience-block,.ieb-experience-journal) {font-size:inherit;}
body.ieb-lex-active .ieb-lex :is(img,svg,video) {max-width:100%;height:auto;}
body.ieb-lex-active .ieb-lex-table {max-width:100%;overflow-x:auto;margin:22px 0;}
body.ieb-lex-active .ieb-lex-table:focus-visible {outline:3px solid var(--ieb-terracotta);outline-offset:3px;}
body.ieb-lex-active .ieb-lex table {border-collapse:collapse;font-size:16px;line-height:1.5;}
body.ieb-lex-active .ieb-lex :is(th,td) {padding:12px;text-align:left;vertical-align:top;border:1px solid var(--ieb-sand);}
body.ieb-lex-active .ieb-lex th {background:var(--ieb-page);}
body.ieb-lex-active .ieb-lex [data-ieb-save-status] {font-size:14px;color:var(--ieb-secondary);margin:14px 0;}
body.ieb-lex-active .learndash-wrapper .ld-focus-sidebar {background:var(--ieb-page);border-color:var(--ieb-sand);}
body.ieb-lex-active .learndash-wrapper .ld-focus-header {background:var(--ieb-surface);border-color:var(--ieb-sand);}
body.ieb-lex-active .learndash-wrapper .ld-focus-content {background:var(--ieb-surface);}
body.ieb-lex-active .learndash-wrapper .ld-progress .ld-progress-bar .ld-progress-bar-percentage {background:var(--ieb-terracotta)!important;}
body.ieb-lex-active .ieb-lex :is(.ieb-experience-course,.ieb-experience-block,.ieb-experience-role,.ieb-experience-journal,.ieb-experience-lens,.ieb-experience-scene,.ieb-experience-relay,.ieb-experience-before-after) {border-radius:0;border-top-width:0;border-left:2px solid var(--ieb-terracotta);padding:24px;background:var(--ieb-page);}
@media(max-width:760px) {
  body.ieb-lex-active .ieb-lex-course {grid-template-columns:minmax(0,1fr);gap:14px;}
  body.ieb-lex-active .ieb-lex {font-size:18px;}
  body.ieb-lex-active .ieb-lex-large {font-size:21px;}
  body.ieb-lex-active .ieb-lex :is(.ieb-experience-course,.ieb-experience-block,.ieb-experience-role,.ieb-experience-journal,.ieb-experience-lens,.ieb-experience-scene,.ieb-experience-relay,.ieb-experience-before-after) {padding:18px;}
  body.ieb-lex-active .ieb-lex-tools {justify-content:flex-start;flex-wrap:wrap;}
}
@media(prefers-reduced-motion:reduce) {body.ieb-lex-active .ieb-lex * {scroll-behavior:auto!important;transition:none!important;animation:none!important;}}
@media print {body.ieb-lex-active .ieb-lex :is(.ieb-lex-tools,.ieb-lex-actions,[data-ieb-legacy-export],[data-ieb-import-journal]) {display:none!important;}body.ieb-lex-active .ieb-lex textarea {min-height:200px;}}

/* Native controls: measured contrast on the actual LearnDash 5.2.1 output. */
body.ieb-lex-active .learndash-wrapper .ld-expand-button:not(.ld-button-alternate){background:var(--ieb-ink)!important;color:var(--ieb-surface)!important;}
body.ieb-lex-active .learndash-wrapper .ld-expand-button:not(.ld-button-alternate) :is(.ld-text,.ld-icon,.screen-reader-text){color:inherit!important;}
body.ieb-lex-active .learndash-wrapper .ld-progress-percentage{color:var(--ieb-recommendation)!important;}
body.ieb-lex-active .learndash-wrapper :is(.ld-status.ld-status-complete,.ld-status-icon.ld-status-complete){background:var(--ieb-recommendation)!important;color:var(--ieb-surface)!important;}
body.ieb-lex-active .ieb-lex :is(input[type=text],textarea,select){border-color:var(--ieb-secondary);}

body.ieb-lex-active .learndash-wrapper .ieb-focus-close{display:none;}
@media(max-width:1023px){
 body.ieb-lex-active .learndash-wrapper .ld-focus-sidebar{width:min(350px,100vw)!important;max-width:100vw;}
 body.ieb-lex-active .learndash-wrapper .ld-focus-sidebar .ld-course-navigation-heading{width:100%;}
 body.ieb-lex-active .learndash-wrapper .ld-focus-mode-course-heading-wrapper{min-width:0;flex:1;}
 body.ieb-lex-active .learndash-wrapper .ieb-focus-close{display:block;flex:0 0 auto;min-height:44px;min-width:64px;padding:6px 10px;margin-left:8px;background:var(--ieb-ink);color:var(--ieb-surface);border:1px solid var(--ieb-surface);border-radius:0;font:600 14px 'Source Sans 3',Arial,sans-serif;}
}

@media (max-width:1023px){.learndash-wrapper .ld-focus .ld-focus-sidebar-trigger{display:none!important}}

/* Match the native script breakpoint: its CSS hides the trigger at 768px. */
@media(max-width:1023px){body.ieb-lex-active .learndash-wrapper .ld-mobile-nav{display:flex!important}}

/* Long recovery labels must wrap without hiding the export action. */
body.ieb-lex-active .ieb-lex :is([data-ieb-legacy-export],[data-ieb-recovery-export]) {white-space:normal;overflow-wrap:anywhere;line-height:1.4;}
