/* Text-only contrast fixes. Nested light cards, inputs and buttons retain their own text colours. */
:is(.bg-dark,.bg-black,.text-bg-dark,[data-surface="dark"]){color:#fff!important}
:is(.bg-dark,.bg-black,.text-bg-dark,[data-surface="dark"]) > :is(h1,h2,h3,h4,h5,h6,p,a,label,small,strong,span,legend,summary):not(.btn):not(.alert):not(.badge):not(.bg-white):not(.bg-light){color:#fff!important}
@scope (.bg-dark,.bg-black,.text-bg-dark,[data-surface="dark"],body.dark-only) to (.bg-white:not(.bg-opacity-10):not(.bg-opacity-25),.bg-light,.text-bg-light,.card:not(.bg-dark):not(.bg-black):not(.text-bg-dark),input,select,textarea,.btn,.alert,.badge,.bg-warning,.bg-info) {
 :scope,:is(h1,h2,h3,h4,h5,h6,p,a,label,small,strong,span,li,dt,dd,legend,summary,.text-dark,.text-body,.text-muted,.text-secondary){color:#fff!important}
}
nav.sidebar :is(.nav-link,.text-muted,.text-white-50,h1,h2,h3,h4,h5,h6),.fl-side :is(.fl-link,h1,h2,h3,h4,h5,h6,p,small){color:#fff!important}
:is(.sj-hero,.lx-banner,.sample-pass) :is(h1,h2,h3,h4,h5,h6,p,small,label,.kicker,.lx-kicker){color:#fff!important}
/* These illustrated panels have their own permanently dark backgrounds, even on a white homepage. */
#cinematic-home :is(.ch-dashboard,.ch-ticker,.ch-install-help,.ch-float-label){--ch-ink:#fff;--ch-muted:#fff;color:#fff}
#cinematic-home .ch-dashboard :is(h1,h2,h3,h4,p,small,strong,span,b),#cinematic-home .ch-ticker :is(span,b),#cinematic-home .ch-install-help :is(p,button){color:#fff!important}
#cinematic-home .ch-tour button{background:color-mix(in srgb,var(--ln-home-background,#fff) 92%,var(--ln-home-foreground,#000))}
#cinematic-home .ch-unboxing :is(.u-card-face,.u-tag-face,.u-box-base,.u-box-lid) :is(span,strong,b,h2,h3,p){color:#fff!important}
body:has(#cinematic-home) footer,body:has(#cinematic-home) footer :is(h1,h2,h3,h4,h5,h6,p,a,small,li,span,.text-muted){color:#fff!important}
body:has(#cinematic-home) footer .social-links a{background:#242631!important;color:#fff!important}
/* Scroll scenes retain a dark gradient. Give their text a stable local palette in every animation state. */
#cinematic-home .ch-tool{--ch-ink:#fff;--ch-muted:#fff;color:#fff;background:linear-gradient(145deg,#191920,#0d0e13);border-color:#ffffff30}
#cinematic-home .ch-tool :is(h3,p,.ch-tool-meta,.ch-tool-meta span,.ch-tool-link){color:#fff!important}
#cinematic-home .ch-tool h3{font-size:23px;line-height:1.3;letter-spacing:-.3px;overflow-wrap:anywhere}
#cinematic-home .ch-tool>p{font-size:14px;line-height:1.7}
#cinematic-home .ch-tool-link{font-size:13px;line-height:1.5}
#cinematic-home .ch-tool-meta{font-size:10px}
#cinematic-home .ch-section-heading>p:last-child{position:static;margin-top:18px;max-width:65ch;font-size:14px;line-height:1.7}
/* Light-theme copy must override the original cinematic dark-theme selectors. */
#cinematic-home :is(.ch-story-copy>p,.ch-section-heading>p,.ch-finale p,.ch-faq details p,.ch-faq summary span,.ch-text-link,.ch-text-link span,.ch-scroll,.ch-scroll span,.ch-motion,.ch-motion span,.ch-install-row>span,.ch-business-copy article>span){color:var(--ln-home-foreground,#000)!important}
#cinematic-home .ch-tour :is(strong,span,button){color:var(--ln-home-foreground,#000)!important}
#cinematic-home :is(.u-chapter span,.u-slide-number){color:var(--ln-home-foreground,#000)!important}
/* Bootstrap link and outline colours need a little more contrast on pale panels. */
body{--bs-link-color:#0b5ed7;--bs-link-color-rgb:11,94,215}
.btn-outline-primary{--bs-btn-color:#0b5ed7;--bs-btn-border-color:#0b5ed7}
.btn-warning,.btn-warning.text-white,.btn-orange,.sj-btn.orange{color:#211b12!important}
.navbar .ln-signup-link{color:#211b12!important}
.bg-dark.bg-opacity-50.badge{--bs-bg-opacity:.85}
.card:not(.bg-dark):not(.bg-black) .card-body .text-warning{color:#805500!important}
.profile-action-btn .fw-bold{color:#24415d!important}
.bg-light :is(a,p)[style*="color: #f97316"],.text-orange.text-uppercase{color:#9a3412!important}
#cinematic-home .ch-carousel-kicker span{color:var(--ln-home-foreground,#000)!important}
#cinematic-home [data-carousel-label]{color:var(--ln-home-foreground,#000)!important}
.signup-choices a strong{color:#23475a}
.lx .lx-help,.auth-story>p,.auth-grid .kicker{color:#40566b!important}
.bos :is(.bos-muted,.bos-module p,.bos-empty p){color:#45586e!important}
.sj-hero>a{color:#fff!important;text-decoration:underline;text-underline-offset:3px}
.sj .sj-hero{background:linear-gradient(120deg,#132e58,#10666a)}
.sj-hero .sj-nav a{color:#fff!important}
.sj form>p{color:#40566b!important}
.sj button.orange{color:#211b12!important}
.ln-auth-shell .bg-primary>.text-white-50{color:#fff!important}
.business-banner-wrapper .banner-info-row .text-white{background:#102349e8;border-radius:14px;padding:14px!important}
.business-banner-wrapper .banner-info-row .text-white-50{color:#fff!important}
nav.container.rounded-4.text-center>p{color:#174c91!important}
.card-body a[style*="#f09433"]{background:linear-gradient(45deg,#9c4228,#a51b35,#8a1264)!important}
.ls-widest.text-white{color:#fff!important;background:#102349;padding:4px 8px;border-radius:6px}
.fl-title .fl-orange{color:#a83208}
.lead.text-white-50{color:#fff!important}
.lx :is(.lx-panel>p,.lx-panel p>strong,.lx-top p,.lx-stat span,fieldset>p),.lx>p{color:#40566b}
.lx :is(.lx-panel,.lx-top) .lx-kicker{color:#076b67}
.lx>.lx-kicker{color:#076b67}
.lx>p,.lx .lx-panel form>p{color:#40566b!important}
.customer-profile-hero :is(h1,p,.lx-kicker){color:#fff!important}
#cinematic-home :is(.u-heading,.u-story)>span{color:var(--ln-home-foreground,#000)!important}
/* A collapsed homepage menu uses a dark panel independently of the page theme. */
@media(max-width:1100px){
 body:has(#cinematic-home) .navbar-collapse.show :is(.nav-link,.language-toggle,.account-menu-trigger,.ln-login-link,.ln-rewards-link,.ln-account-trigger){color:#fff!important}
 body:has(#cinematic-home) .navbar-collapse.show .language-toggle{background:#242631!important}
 body:has(#cinematic-home) .navbar-collapse.show .nav-link.active-nav{background:#342d47!important}
}
@media(max-width:575.98px){
 #cinematic-home .ch-tool-grid{grid-template-columns:minmax(0,1fr)}
 #cinematic-home .ch-tool{min-height:0;padding:22px}
 #cinematic-home .ch-tool h3{font-size:22px}
 #cinematic-home .ch-tool>p{font-size:14px}
 #cinematic-home .ch-tool-link{font-size:13px}
}
