
/* Sitewide semantic surface contrast repair - 2026-11-12.
   Text contrast is determined by its actual card surface, never by body theme alone. */
:root{--dv-light-title:#092449;--dv-light-body:#435a74;--dv-dark-title:#f4f8ff;--dv-dark-body:#c1d0e3}
/* All ordinary cards use an explicitly light surface in either theme. */
:root .cc,:root .pj,:root .pd:not(.f),:root .bt:not(:first-child),
:root .service-directory .cc {background:#edf5fa!important;color:var(--dv-light-title)!important;border-color:#b7cddd!important}
:root .cc :is(h2,h3,h4,strong),:root .pj :is(h2,h3,h4,strong),
:root .pd:not(.f) :is(h2,h3,h4,strong),:root .bt:not(:first-child) :is(h2,h3,h4,strong),
:root .service-directory .cc {color:var(--dv-light-title)!important}
:root .cc :is(p,small),:root .pj :is(p,small),:root .pd:not(.f) :is(p,small),
:root .bt:not(:first-child) :is(p,small){color:var(--dv-light-body)!important}
/* The featured gradient panels are dark surfaces. */
:root .pd.f,:root .bt:first-child{color:var(--dv-dark-title)!important}
:root .pd.f :is(h2,h3,h4,strong),:root .bt:first-child :is(h2,h3,h4,strong){color:var(--dv-dark-title)!important}
:root .pd.f :is(p,small),:root .bt:first-child :is(p,small){color:var(--dv-dark-body)!important}
/* Product previews: pale canvas, dark labels; inset dark message cards, pale labels. */
:root .slide-window.hero-demo,:root .slide-window .hero-task {background:#eaf3f8!important;color:var(--dv-light-title)!important}
:root .slide-window .hero-task :is(strong,b,h3,span){color:var(--dv-light-title)!important}
:root .slide-window .hero-task :is(p,small){color:var(--dv-light-body)!important}
:root .slide-window .hero-message{background:#10253e!important;color:var(--dv-dark-body)!important}
:root .slide-window .hero-message :is(strong,b,h3){color:var(--dv-dark-title)!important}
:root .slide-window .hero-message :is(p,small){color:var(--dv-dark-body)!important}
:root .slide-window .crm-columns>div{background:#10253e!important;color:var(--dv-dark-title)!important}
:root .slide-window .crm-columns span{background:#f4f9fc!important;color:var(--dv-light-title)!important}
:root .slide-window .crm-columns span :is(b,strong){color:var(--dv-light-title)!important}
:root .slide-window .crm-columns span small{color:var(--dv-light-body)!important}
/* Neutral button/link contrast. */
:root .btn.o{color:var(--dv-light-title)!important;background:#edf5fa!important;border-color:#a8c5d6!important}
:root .btn.p{color:#fff!important}
/* Don't use navy as a generic text color; navy is a background token elsewhere. */
:root[data-theme=dark] .cc,:root[data-theme=dark] .pj,:root[data-theme=dark] .pd:not(.f),:root[data-theme=dark] .bt:not(:first-child){--ink:var(--dv-light-title);--mute:var(--dv-light-body)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .cc,:root:not([data-theme=light]) .pj,:root:not([data-theme=light]) .pd:not(.f),:root:not([data-theme=light]) .bt:not(:first-child){--ink:var(--dv-light-title);--mute:var(--dv-light-body)}}
@media(max-width:640px){:root .cc,:root .pd,:root .bt{overflow-wrap:anywhere}}
