/* 2026-10-19 / r16. Explicit foreground/background pairs for shared actions.
 * Component-scoped, no universal a/button recoloring. Rest, visited, hover,
 * focus, disabled and fullscreen states retain their intended surfaces.
 * The old reference-page a:not(.lref-btn)!important rule is removed at source.
 */
html body :is(.lt-btn,.ltc-btn,.lt-cert-btn,.lc-button,.lref-btn,.default-btn,.default-btn-one,.default-btn-two,.lt-about-safe-hero__btn,.lt-header-cta,.lt-coursehub-btn,.lt-cert-profile__btn){
 min-height:44px;height:auto;max-height:none;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.55;text-overflow:clip;
 -webkit-text-fill-color:currentColor!important;text-shadow:none!important;
}
html body :is(.lt-btn--primary,.lt-btn--dark,.ltc-btn--primary,.lt-cert-btn--primary,.lc-button-primary,.lref-btn,.default-btn,.default-btn-one,.lt-about-safe-hero__btn--primary),
html body :is(.lt-btn--primary,.lt-btn--dark,.ltc-btn--primary,.lt-cert-btn--primary,.lc-button-primary,.lref-btn,.default-btn,.default-btn-one,.lt-about-safe-hero__btn--primary):visited{
 color:#fff!important;background:#235740!important;border-color:#235740!important;
}
html body :is(.lt-btn--primary,.lt-btn--dark,.ltc-btn--primary,.lt-cert-btn--primary,.lc-button-primary,.lref-btn,.default-btn,.default-btn-one,.lt-about-safe-hero__btn--primary):is(:hover,:active){
 color:#fff!important;background:#163e2e!important;border-color:#163e2e!important;
}
/* Preserve blue secondary actions with a fully opaque, readable surface. */
html body :is(.lt-btn--secondary,.lt-about-safe-hero__btn--secondary),
html body :is(.lt-btn--secondary,.lt-about-safe-hero__btn--secondary):visited{
 color:#fff!important;background:#344db0!important;border-color:#344db0!important;
}
html body :is(.lt-btn--secondary,.lt-about-safe-hero__btn--secondary):is(:hover,:active){
 color:#fff!important;background:#253d92!important;border-color:#253d92!important;
}
html body :is(.ltc-btn--secondary,.lt-cert-btn--ghost,.lt-cert-btn--evidence),
html body :is(.ltc-btn--secondary,.lt-cert-btn--ghost,.lt-cert-btn--evidence):visited{
 color:#fff!important;background:#264d40!important;border-color:#a2b79f!important;
}
html body :is(.ltc-btn--secondary,.lt-cert-btn--ghost,.lt-cert-btn--evidence):is(:hover,:active){
 color:#fff!important;background:#173d2f!important;border-color:#d1dfc7!important;
}
/* Light actions are dark-on-light even when nested in a white-text panel. */
html body :is(.lt-btn--light,.ltc-btn--light,.ltc-btn--outline,.lt-cert-btn--secondary,.lt-cert-btn--ghost-soft,.lref-btn--light,.lref-btn--outline,.lc-button-outline),
html body :is(.lt-btn--light,.ltc-btn--light,.ltc-btn--outline,.lt-cert-btn--secondary,.lt-cert-btn--ghost-soft,.lref-btn--light,.lref-btn--outline,.lc-button-outline):visited{
 color:#193d31!important;background:#fff!important;border-color:#91aa8d!important;
}
html body :is(.lt-btn--light,.ltc-btn--light,.ltc-btn--outline,.lt-cert-btn--secondary,.lt-cert-btn--ghost-soft,.lref-btn--light,.lref-btn--outline,.lc-button-outline):is(:hover,:active){
 color:#153326!important;background:#edf3e6!important;border-color:#6d8768!important;
}
html body .lt-credentials .lc-button-gold,html body .lt-credentials .lc-button-gold:visited{
 color:#243b2d!important;background:#e5d4ae!important;border-color:#e5d4ae!important;
}
html body .lt-credentials .lc-button-gold:is(:hover,:active){color:#173d30!important;background:#f2e6c8!important;border-color:#f2e6c8!important}
html body .lt-credentials .lc-button-light,html body .lt-credentials .lc-button-light:visited{
 color:#fff!important;background:#234b3c!important;border-color:#b2c2a9!important;
}
/* Shared primary header and footer controls. */
html body > .lt-site-header .lt-header-cta,html body > .lt-site-header .lt-header-cta:visited,
html body .lt-site-footer .lt-footer-newsletter-form button[type=submit]{
 color:#fff!important;background:#235740!important;border-color:#235740!important;-webkit-text-fill-color:currentColor!important;
}
html body > .lt-site-header .lt-header-cta:is(:hover,:active),html body .lt-site-footer .lt-footer-newsletter-form button[type=submit]:is(:hover,:active){background:#163e2e!important;color:#fff!important}
/* Nested labels cannot inherit a panel's unrelated white text override. */
html body :is(.lt-btn,.ltc-btn,.lt-cert-btn,.lc-button,.lref-btn,.lt-header-cta,.lt-about-safe-hero__btn) :is(span,strong,small,i,svg){
 color:inherit!important;-webkit-text-fill-color:currentColor!important;
}
/* Screenshot issue 1: pale conversion button. All corporate detail languages. */
html body .lref-page .lco-conversation-panel .lref-btn,
html body .lref-page .lco-conversation-panel .lref-btn:visited{
 color:#193d2f!important;background:#e8efdb!important;border-color:#e8efdb!important;font-weight:650;
}
html body .lref-page .lco-conversation-panel .lref-btn:is(:hover,:active){
 color:#153426!important;background:#faf8e8!important;border-color:#faf8e8!important;
}
/* Screenshot issue 2: original-image and YouTube links in the dark dialogs.
   The fullscreen element remains below .lref-page, including the modal fallback. */
html body .lref-page :is(.lcm-dialog-tools,.lcm-video-tools) :is(a,button),
html body .lref-page :is(.lcm-dialog-tools,.lcm-video-tools) a:visited,
html body .lref-page .lcm-dialog-head>button{
 color:#f4f8ec!important;-webkit-text-fill-color:currentColor!important;background:#273c2e!important;border-color:#9aaf85!important;
 min-height:44px;min-width:44px;font-weight:600;white-space:normal;overflow-wrap:anywhere;line-height:1.6;opacity:1;
}
html body .lref-page :is(.lcm-dialog-tools,.lcm-video-tools) :is(a,button):is(:hover,:active),
html body .lref-page .lcm-dialog-head>button:is(:hover,:active){
 color:#fff!important;background:#38553d!important;border-color:#d1dfba!important;
}
html body .lref-page :is(.lcm-dialog-tools,.lcm-video-tools) button:disabled{
 color:#c8d4bf!important;background:#27382c!important;border-color:#677b5e!important;opacity:1;cursor:not-allowed;
}
/* Existing light image viewer and filters. */
html body .lref-page .lref-dialog__controls :is(button,a),
html body .lref-page .lref-dialog__controls a:visited{
 color:#193d31!important;background:#f4f7ee!important;border:1px solid #91aa8d;border-radius:7px;padding:10px 14px;min-height:44px;line-height:1.55;-webkit-text-fill-color:currentColor!important;
}
html body .lref-page .lref-dialog__controls :is(a,button):is(:hover,:active){background:#e1ecd6!important;color:#173729!important}
html body .lref-page :is(.lref-favorite-tab[aria-current],.lref-save[aria-pressed=true]){color:#fff!important;-webkit-text-fill-color:currentColor!important}
/***** Keyboard and high contrast settings *****/
html body :is(.lt-btn,.ltc-btn,.lt-cert-btn,.lc-button,.lref-btn,.lt-header-cta,.lt-about-safe-hero__btn):focus-visible,
html body .lref-page :is(.lcm-dialog-tools,.lcm-video-tools,.lref-dialog__controls,.lcm-dialog-head) :is(a,button):focus-visible{
 outline:3px solid #769246;outline-offset:4px;box-shadow:0 0 0 2px #fff!important;
}
@media(forced-colors:active){html body :is(.lt-btn,.ltc-btn,.lt-cert-btn,.lc-button,.lref-btn,.lt-header-cta,.lt-about-safe-hero__btn){forced-color-adjust:auto;border:1px solid ButtonText}}
/* Later page-local header styles and legacy certificate cards are also scoped.
   Keep focusable skip navigation readable; its existing off-screen/focus behavior remains. */
html body > header.lt-site-header a.lt-header-cta,
html body > header.lt-site-header a.lt-header-cta:visited{color:#fff!important;background:#235740!important;border-color:#235740!important}
html body > header.lt-site-header a.lt-header-cta:is(:hover,:focus-visible,:active){color:#fff!important;background:#163e2e!important;border-color:#163e2e!important}
html body a.lt-skip-link,html body a.lt-skip-link:visited,html body a.lt-skip-link:is(:hover,:focus,:active){color:#fff!important;background:#183d30!important;-webkit-text-fill-color:currentColor!important}
html body .lt-cert-card .lt-cert-card__label span{color:#465d64!important}
/* Chapter links: darker labels and numbers, without affecting media captions. */
html body .lref-page :is(.lref-case-nav,.lco-aside nav)>a{color:#294c3a!important;-webkit-text-fill-color:currentColor!important}
html body .lref-page :is(.lref-case-nav,.lco-aside nav)>a>span{color:#475f3d!important}
html body .lref-page :is(.lref-case-nav,.lco-aside nav)>a:is(:hover,:focus-visible,:active){color:#163b29!important;background:#eff4e8}
/* Other page-specific actions exposed by the shared-layout regression scan. */
html body .lt-cert-profile__btn--primary,html body .lt-cert-profile__btn--primary:visited{color:#fff!important;background:#235740!important;border-color:#235740!important}
html body .lt-cert-profile__btn--primary:is(:hover,:focus-visible,:active){color:#fff!important;background:#163e2e!important;border-color:#163e2e!important}
html body .lt-coursehub-btn--primary,html body .lt-coursehub-btn--primary:visited{color:#073c30!important;-webkit-text-fill-color:currentColor!important}
html body .lt-coursehub-btn--primary:is(:hover,:focus-visible,:active){color:#073c30!important;background:#7de7c7!important;border-color:#7de7c7!important}
html body .lt-home-proof .lt-proof-link span span{color:#445e4b!important}
/* Opaque pale surfaces keep language/menu controls readable over any hero image. */
html body > header.lt-site-header :is(.lt-language__trigger,.lt-mobile-toggle,.lt-nav-trigger){color:#254d3b!important;background:#f9fbf5!important;border-color:#96ac8d!important;-webkit-text-fill-color:currentColor!important;min-height:44px}
html body > header.lt-site-header :is(.lt-language__trigger,.lt-mobile-toggle,.lt-nav-trigger) :is(span,small,i,svg){color:inherit!important;-webkit-text-fill-color:currentColor!important}
html body > header.lt-site-header :is(.lt-language__trigger,.lt-mobile-toggle,.lt-nav-trigger):is(:hover,:focus-visible,:active){color:#193d2f!important;background:#edf3e7!important;border-color:#71946c!important}
html body > header.lt-site-header .lt-main-nav .lt-nav-item.is-active > button.lt-nav-trigger{color:#254d3b!important;background:#f9fbf5!important;border-color:#96ac8d!important}
html body > header.lt-site-header .lt-main-nav .lt-nav-item.is-active > button.lt-nav-trigger:is(:hover,:focus-visible,:active){color:#193d2f!important;background:#edf3e7!important;border-color:#71946c!important}
html body .lref-page .crm-module-nav a,html body .lref-page .crm-module-nav a:visited{color:#234c3d!important;-webkit-text-fill-color:currentColor!important}
html body .lref-page .crm-module-nav a .crm-module-number{color:#526c52!important}
html body .lt-home-proof .lt-proof-link .lt-proof-link__arrow{color:#365543!important}
html body .lt-site-footer .lt-footer-private-archive a{display:inline-flex;align-items:center;gap:10px;min-height:44px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}
html body:not(.lt-reference-page) .lt-site-footer .lt-footer-private-archive a,html body:not(.lt-reference-page) .lt-site-footer .lt-footer-private-archive a:visited{color:#e7eddd!important;-webkit-text-fill-color:currentColor!important}
html body:not(.lt-reference-page) .lt-site-footer .lt-footer-private-archive a:hover{color:#fff!important}
html body.lt-reference-page .lt-site-footer .lt-footer-private-archive a{color:#244b38!important;-webkit-text-fill-color:currentColor!important}
