/* IETEF Campus 6.9 / 7.0 — mobile, accessibility and performance */
.ietef-skip-link{position:fixed;left:16px;top:12px;z-index:100000;transform:translateY(-160%);background:#fff;color:#102c24!important;border:2px solid currentColor;border-radius:10px;padding:10px 14px;font-weight:800;text-decoration:none;box-shadow:0 8px 30px rgba(0,0,0,.16)}.ietef-skip-link:focus{transform:none}.ietef-app :where(a,button,input,select,textarea,summary):focus-visible,.ietef-sales-page :where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--ietef-secondary,#c7a35a);outline-offset:3px}.ietef-app :where(button,.ietef-btn,.ietef-nav-item),.ietef-sales-page :where(button,.ietef-btn){min-height:44px}.ietef-nav-item{min-height:44px}.ietef-mobile-course-nav,.ietef-mobile-nav-overlay{display:none}.ietef-content{overflow-wrap:anywhere}.ietef-prose :where(img,video,iframe,embed,object){max-width:100%}.ietef-prose iframe{width:100%}.ietef-sales-section:not(.ietef-sales-hero){content-visibility:auto;contain-intrinsic-size:auto 520px}.ietef-card img,.ietef-sales-page img{height:auto}.ietef-progress i{will-change:width}.ietef-sidebar{scrollbar-gutter:stable}.ietef-content:focus{outline:none}.ietef-nav-item[aria-current=page]{box-shadow:inset 3px 0 0 var(--ietef-secondary,#c7a35a)}
@media(max-width:900px){.ietef-course.ietef-builder-mobile-drawer .ietef-mobile-course-nav,.ietef-course.ietef-builder-mobile-compact .ietef-mobile-course-nav{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:8px 0 14px;border:1px solid color-mix(in srgb,var(--ietef-primary) 22%,#dce3df);background:#fff;color:var(--ietef-primary);border-radius:12px;padding:11px 14px;font-weight:800;cursor:pointer}.ietef-course.ietef-builder-mobile-drawer .ietef-sidebar,.ietef-course.ietef-builder-mobile-compact .ietef-sidebar{position:fixed!important;z-index:99992;left:0;top:0;bottom:0;width:min(88vw,360px);max-height:none!important;border-radius:0;transform:translateX(-105%);transition:transform .22s ease;overflow:auto;padding:76px 15px 24px;box-shadow:18px 0 50px rgba(7,23,17,.18)}.ietef-course.ietef-builder-mobile-drawer.is-nav-open .ietef-sidebar,.ietef-course.ietef-builder-mobile-compact.is-nav-open .ietef-sidebar{transform:none}.ietef-course.ietef-builder-mobile-drawer .ietef-mobile-nav-overlay,.ietef-course.ietef-builder-mobile-compact .ietef-mobile-nav-overlay{position:fixed;display:block;z-index:99991;inset:0;border:0;background:rgba(8,20,16,.55);opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease}.ietef-course.ietef-builder-mobile-drawer.is-nav-open .ietef-mobile-nav-overlay,.ietef-course.ietef-builder-mobile-compact.is-nav-open .ietef-mobile-nav-overlay{opacity:1;visibility:visible}.ietef-course.is-nav-open{overflow:visible}.ietef-course.ietef-builder-mobile-compact .ietef-sidebar{width:min(82vw,320px)}.ietef-layout{margin-top:12px}.ietef-content{min-height:420px}}
@media(max-width:620px){.ietef-app{border-radius:0;margin:0 auto;padding:12px}.ietef-topbar{min-height:52px}.ietef-topbar .ietef-logo{max-width:150px}.ietef-course-head{margin-bottom:12px}.ietef-course-head h1{font-size:clamp(28px,9vw,42px)}.ietef-content{padding:18px 16px}.ietef-prose{font-size:16px;line-height:1.72}.ietef-quiz fieldset,.ietef-assessment-form fieldset{padding:14px}.ietef-quiz fieldset label,.ietef-assessment-form fieldset label{min-height:44px}.ietef-sales-hero h1{font-size:clamp(34px,10vw,46px)}.ietef-sales-actions .ietef-btn,.ietef-sales-cta .ietef-btn{width:100%;min-height:48px}.ietef-sales-meta span{min-height:34px;display:inline-flex;align-items:center}.ietef-curriculum-list summary{min-height:48px}.ietef-sales-section:not(.ietef-sales-hero){contain-intrinsic-size:auto 620px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}.ietef-progress i{transition:none!important}}
@media(prefers-contrast:more){.ietef-nav-item,.ietef-card,.ietef-content,.ietef-sidebar{border-color:currentColor}.ietef-btn.ghost{border-width:2px}.ietef-kicker{font-weight:900}}


/* 7.5.3 — Front-end legibility, spacing and contrast hardening
   Final cascade layer: keeps course/public surfaces readable even when dark/light
   templates are combined or when a parent theme provides aggressive typography. */
:where(.ietef-site,.ietef-app,.ietef-sales-page,.ietef-vb-front){--ietef-readable:#17211e;--ietef-readable-muted:#52605b;--ietef-light:#f7f9f8;--ietef-light-muted:#c6d0cb;--ietef-dark-surface:#101714;--ietef-dark-surface-2:#17201d;--ietef-dark-line:rgba(255,255,255,.11)}

/* Box model and safe typography inside every Campus-owned front-end surface. */
:where(.ietef-site,.ietef-app,.ietef-sales-page,.ietef-vb-front) :where(*,*::before,*::after){box-sizing:border-box}
:where(.ietef-site,.ietef-app,.ietef-sales-page,.ietef-vb-front) :where(p,li,dd,dt,blockquote,figcaption,label,legend){overflow-wrap:anywhere}
:where(.ietef-site,.ietef-app,.ietef-sales-page,.ietef-vb-front) :where(img,video,iframe,embed,object){max-width:100%}

/* Light surfaces must never inherit white text from a dark ancestor. */
.ietef-site :where(.ietef-card,.ietef-empty,.ietef-static-page,.ietef-auth-card,.ietef-form-card,.ietef-payment-result,.ietef-public-course-body){color:var(--ietef-readable)}
.ietef-site :where(.ietef-card,.ietef-empty,.ietef-static-page,.ietef-auth-card,.ietef-form-card,.ietef-payment-result,.ietef-public-course-body) :where(h1,h2,h3,h4,h5,h6,strong,label,legend){color:var(--ietef-readable)}
.ietef-site :where(.ietef-card,.ietef-empty,.ietef-static-page,.ietef-auth-card,.ietef-form-card,.ietef-payment-result,.ietef-public-course-body) :where(p,li,small,figcaption){color:var(--ietef-readable-muted)}
.ietef-site :where(input:not([type=checkbox]):not([type=radio]),textarea,select){background:#fff;color:var(--ietef-readable);border-color:#c9d3cf}
.ietef-site :where(input,textarea)::placeholder{color:#6e7a75;opacity:1}

/* Baseline spacing: no content card or main course panel should touch its edge. */
.ietef-card-body{padding:clamp(18px,2.1vw,24px)}
.ietef-content{padding:clamp(22px,3.2vw,40px)}
.ietef-task-card,.ietef-list-card,.ietef-player-activity,.ietef-notice,.ietef-finish{min-width:0}

/* Streaming sales: keep the entire visual language dark instead of placing white
   text on legacy light cards or legacy dark text on the dark page. */
.ietef-streaming-sales .ietef-sales-section{padding:clamp(28px,4.2vw,52px)!important}
.ietef-streaming-sales .ietef-sales-section-head{margin-bottom:clamp(20px,2.6vw,30px)}
.ietef-streaming-sales .ietef-sales-section-head>p,.ietef-streaming-sales .ietef-sales-prose{color:var(--ietef-light-muted)!important}
.ietef-streaming-sales .ietef-sales-list-item,
.ietef-streaming-sales .ietef-sales-pair-grid article,
.ietef-streaming-sales .ietef-sales-instructor-grid article,
.ietef-streaming-sales .ietef-curriculum-list details,
.ietef-streaming-sales .ietef-offer-card{
  background:var(--ietef-dark-surface-2)!important;
  color:var(--ietef-light)!important;
  border:1px solid var(--ietef-dark-line)!important;
  box-shadow:none
}
.ietef-streaming-sales .ietef-sales-list-item{padding:18px}
.ietef-streaming-sales .ietef-sales-pair-grid article,.ietef-streaming-sales .ietef-sales-instructor-grid article{padding:20px}
.ietef-streaming-sales .ietef-sales-list-item :where(p,strong),
.ietef-streaming-sales .ietef-sales-pair-grid article :where(h3,h4,strong),
.ietef-streaming-sales .ietef-sales-instructor-grid article :where(h3,h4,strong),
.ietef-streaming-sales .ietef-offer-card :where(h3,h4,strong){color:var(--ietef-light)!important}
.ietef-streaming-sales .ietef-sales-list-item p,
.ietef-streaming-sales .ietef-sales-pair-grid article p,
.ietef-streaming-sales .ietef-sales-instructor-grid article p,
.ietef-streaming-sales .ietef-offer-card small{color:var(--ietef-light-muted)!important}
.ietef-streaming-sales .ietef-curriculum-list summary{color:var(--ietef-light)!important;background:transparent;padding:18px 20px;min-height:54px}
.ietef-streaming-sales .ietef-curriculum-list summary small{color:var(--ietef-light-muted)!important}
.ietef-streaming-sales .ietef-curriculum-list ol{padding:2px 42px 22px}
.ietef-streaming-sales .ietef-curriculum-list li{color:#dce4e0!important;padding:8px 0}
.ietef-streaming-sales .ietef-offer-price{color:var(--ietef-stream-accent,#d6b86c)!important}
.ietef-streaming-sales .ietef-sales-offer{background:var(--ietef-dark-surface)!important}
.ietef-streaming-sales .ietef-streaming-public-curriculum{padding:clamp(28px,4.2vw,52px)!important;background:var(--ietef-dark-surface)!important;border:1px solid var(--ietef-dark-line)!important;border-radius:22px}
.ietef-streaming-sales .ietef-streaming-public-curriculum>.ietef-sales-section-head{padding:0;margin-bottom:22px}

/* Player: streaming shell owns a dark canvas. Explicit colors prevent older light
   templates from reintroducing dark text on that dark canvas. */
.ietef-streaming-shell .ietef-course-head,
.ietef-streaming-shell.ietef-player-minimal .ietef-course-head{color:var(--ietef-light)!important}
.ietef-streaming-shell .ietef-course-head :where(h1,h2,h3,strong),
.ietef-streaming-shell.ietef-player-minimal .ietef-course-head :where(h1,h2,h3,strong),
.ietef-streaming-shell.ietef-player-minimal .ietef-course-pct{color:var(--ietef-light)!important}
.ietef-streaming-shell .ietef-course-head p,
.ietef-streaming-shell.ietef-player-minimal .ietef-course-head p{color:var(--ietef-light-muted)!important}
.ietef-streaming-shell .ietef-sidebar{color:#e8eeeb}
.ietef-streaming-shell .ietef-content{color:#e8eeeb;padding:clamp(24px,3.2vw,40px)}
.ietef-streaming-shell .ietef-content :where(p,li,dd,dt,blockquote,figcaption,label,legend){color:#e3eae6}
.ietef-streaming-shell .ietef-content :where(h1,h2,h3,h4,h5,h6){color:#f5f8f6}
.ietef-streaming-shell .ietef-quiz-summary span{background:#1b2622!important;color:#dce5e1!important;border:1px solid rgba(255,255,255,.08)}
.ietef-streaming-shell .ietef-quiz fieldset,.ietef-streaming-shell .ietef-assessment-form fieldset{border-color:#34423c}
.ietef-streaming-shell .ietef-quiz fieldset label:hover,.ietef-streaming-shell .ietef-assessment-form fieldset label:hover{background:rgba(255,255,255,.07);color:#fff}

/* Forms inside a dark player remain light controls with dark, readable input text. */
.ietef-streaming-shell :where(.ietef-answer-text,.ietef-quiz textarea,.ietef-assessment-form textarea,.ietef-assignment-form textarea,.ietef-assignment-form input:not([type=checkbox]):not([type=radio]),.ietef-assessment-form input:not([type=checkbox]):not([type=radio]),.ietef-assessment-form select){background:#fff!important;color:#17211e!important;border-color:#c8d2ce!important}
.ietef-streaming-shell :where(textarea,input)::placeholder{color:#66736e!important;opacity:1}

/* Light academic cards inside the dark player receive their own dark foreground. */
.ietef-streaming-shell .ietef-player-activity,
.ietef-streaming-shell .ietef-submission-result,
.ietef-streaming-shell .ietef-notice:not(.ietef-finish){color:var(--ietef-readable)!important}
.ietef-streaming-shell .ietef-player-activity :where(h1,h2,h3,h4,p,li,strong,label),
.ietef-streaming-shell .ietef-submission-result :where(h1,h2,h3,h4,p,li,strong,a),
.ietef-streaming-shell .ietef-notice:not(.ietef-finish) :where(h1,h2,h3,h4,p,li,strong,a){color:var(--ietef-readable)!important}
.ietef-streaming-shell .ietef-player-activity header p{color:#5d6a65!important}
.ietef-streaming-shell .ietef-player-activity{padding:clamp(20px,2.6vw,28px);background:#f6f8f7 linear-gradient(180deg,#fbfcfb,#f3f6f4)!important;background-color:#f6f8f7!important;border-color:#d8e0dc!important}
.ietef-streaming-shell .ietef-player-assignment-form{border-top-color:#d9e1dd}
.ietef-streaming-shell .ietef-submission-result{background:#f3f7f5!important;border:1px solid #dce4e0;padding:15px}
.ietef-streaming-shell .ietef-notice:not(.ietef-finish){background:#fff!important;border-color:#d7dfdb!important}
.ietef-streaming-shell .ietef-notice.error{background:#fff4f4!important}
.ietef-streaming-shell .ietef-notice.success{background:#f2fbf6!important}

/* Visual Builder: light tones explicitly own dark text; dark tones explicitly own
   light text. This fixes white-on-white when a soft block lives inside the player. */
.ietef-vb-section.tone-soft:not(.has-text-color):not(.has-auto-text-color),
.ietef-vb-block.tone-soft:not(.has-text-color):not(.has-auto-text-color){color:var(--ietef-readable)!important}
.ietef-vb-section.tone-soft:not(.has-text-color):not(.has-auto-text-color) :where(h1,h2,h3,h4,h5,h6,p,li,strong,span,small,.ietef-vb-rich),
.ietef-vb-block.tone-soft:not(.has-text-color):not(.has-auto-text-color) :where(h1,h2,h3,h4,h5,h6,p,li,strong,span,small,.ietef-vb-rich){color:var(--ietef-readable)!important}
.ietef-vb-section.tone-contrast:not(.has-text-color):not(.has-auto-text-color),
.ietef-vb-block.tone-contrast:not(.has-text-color):not(.has-auto-text-color){color:#fff!important}
.ietef-vb-section.tone-contrast:not(.has-text-color):not(.has-auto-text-color) :where(h1,h2,h3,h4,h5,h6,p,li,strong,span,small,.ietef-vb-rich),
.ietef-vb-block.tone-contrast:not(.has-text-color):not(.has-auto-text-color) :where(h1,h2,h3,h4,h5,h6,p,li,strong,span,small,.ietef-vb-rich){color:#fff!important}

/* Explicit and automatic builder foregrounds win over surrounding player/template colors. */
.ietef-vb-section.has-text-color :where(h1,h2,h3,h4,h5,h6,p,li,strong,span,small,.ietef-vb-rich),
.ietef-vb-section.has-auto-text-color :where(h1,h2,h3,h4,h5,h6,p,li,strong,span,small,.ietef-vb-rich),
.ietef-vb-column.has-auto-text-color :where(h1,h2,h3,h4,h5,h6,p,li,strong,span,small,.ietef-vb-rich),
.ietef-vb-block.has-text-color :where(h1,h2,h3,h4,h5,h6,p,li,strong,span,small,.ietef-vb-rich),
.ietef-vb-block.has-auto-text-color :where(h1,h2,h3,h4,h5,h6,p,li,strong,span,small,.ietef-vb-rich){color:inherit!important}
/* Background photos get a default readability veil unless the author explicitly
   chose text/overlay styling. */
.ietef-vb-section.has-bg-image:not(.has-overlay):not(.has-text-color):before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,13,10,.68),rgba(6,13,10,.38));pointer-events:none;border-radius:inherit}
.ietef-vb-section.has-bg-image:not(.has-text-color):not(.has-auto-text-color){color:#fff!important}
.ietef-vb-section.has-bg-image:not(.has-text-color):not(.has-auto-text-color) :where(h1,h2,h3,h4,h5,h6,p,li,strong,span,small,.ietef-vb-rich){color:#fff!important}

/* Full-bleed background is allowed, but readable content keeps a minimum safe inset. */
.ietef-vb-section.pad-none>.ietef-vb-section-inner{padding-inline:clamp(16px,2.4vw,32px)}
.ietef-vb-section.pad-sm>.ietef-vb-section-inner{padding-inline:max(4px,env(safe-area-inset-left));padding-right:max(4px,env(safe-area-inset-right))}
.ietef-vb-block[data-vb-block="text"] .ietef-vb-rich>p:first-child{margin-top:0}
.ietef-vb-block[data-vb-block="text"] .ietef-vb-rich>p:last-child{margin-bottom:0}
.ietef-vb-block[data-vb-block="lesson_title"] h2{margin-top:.15em}

/* Course rows/cards: explicitly preserve dark-mode card typography. */
.ietef-streaming-card,.ietef-streaming-card :where(h3,h4,strong){color:#fff!important}
.ietef-streaming-card-state{color:#b4bfba!important}
.ietef-streaming-card.is-complete .ietef-streaming-card-state{color:#78d7ad!important}

/* Readability and touch spacing on compact screens. */
@media(max-width:700px){
  .ietef-site-content{padding-inline:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
  .ietef-streaming-sales .ietef-sales-section,.ietef-streaming-sales .ietef-streaming-public-curriculum{padding:22px 18px!important;border-radius:16px}
  .ietef-streaming-sales .ietef-sales-pair-grid article,.ietef-streaming-sales .ietef-sales-instructor-grid article,.ietef-streaming-sales .ietef-sales-list-item{padding:17px}
  .ietef-streaming-sales .ietef-curriculum-list summary{padding:16px}
  .ietef-streaming-sales .ietef-curriculum-list ol{padding:0 32px 18px}
  .ietef-streaming-shell .ietef-content{padding:20px 16px}
  .ietef-streaming-shell .ietef-player-activity{padding:18px 15px}
  .ietef-vb-section.pad-none>.ietef-vb-section-inner{padding-inline:16px}
}

/* 7.5.3 QA pass 2 — template-specific edge cases found during cross-template review. */
.ietef-streaming-shell .ietef-player-activity .ietef-kicker,
.ietef-streaming-shell .ietef-submission-result .ietef-kicker,
.ietef-site :where(.ietef-static-page,.ietef-card,.ietef-auth-card,.ietef-form-card,.ietef-payment-result) .ietef-kicker{color:#7a5a18!important}
.ietef-streaming-shell.ietef-player-long .ietef-module h3{background:#101614!important;color:#aeb9b4!important}
.ietef-streaming-shell :is(.ietef-v2-assessment,.ietef-v2-assignment):not(.ietef-v2-video-focus):not(.ietef-v2-premium){color:var(--ietef-readable)!important}
.ietef-streaming-shell :is(.ietef-v2-assessment,.ietef-v2-assignment):not(.ietef-v2-video-focus):not(.ietef-v2-premium) :where(h1,h2,h3,h4,h5,h6,p,li,strong,label,legend){color:var(--ietef-readable)!important}
.ietef-streaming-shell :is(.ietef-v2-video-focus,.ietef-v2-premium):is(.ietef-v2-assessment,.ietef-v2-assignment),
.ietef-streaming-shell :is(.ietef-v2-video-focus,.ietef-v2-premium):is(.ietef-v2-assessment,.ietef-v2-assignment) :where(h1,h2,h3,h4,h5,h6,p,li,strong,label,legend){color:var(--ietef-light)!important}
.ietef-streaming-shell .ietef-v2-minimal-learning:is(.ietef-v2-assessment,.ietef-v2-assignment){padding-left:clamp(16px,2vw,22px)!important;padding-right:clamp(16px,2vw,22px)!important}
.ietef-streaming-shell :is(.ietef-v2-assessment,.ietef-v2-assignment):not(.ietef-v2-video-focus):not(.ietef-v2-premium) .ietef-kicker{color:#7a5a18!important}
