/* v57: Keep all copy readable whenever a card turns navy/blue. */
/* Explicit dark sections; override v56's black-text rule on pale sections. */
#root .always-dark :is(p, li, small),
#root .always-dark :is(h1, h2, h3, h4),
#root section.bg-brand-navy :is(p, li, small),
#root section.bg-brand-navy :is(h1, h2, h3, h4) {
  color: #fff !important;
}
/* For panels that turn navy on hover: override dark text set by older CSS. */
#root [class*="hover:bg-brand-navy"]:hover :is(p, li, small, span, h2, h3, h4),
#root [class*="group-hover:bg-brand-navy"]:is(:hover, :focus-within) :is(p, li, small, span, h2, h3, h4),
#root .dd-process-step-card:hover :is(p, li, small, span) {
  color: #fff !important;
}
/* High contrast on blue/navy card surfaces, including text that inherits a
   muted navy color from legacy styles. Keep input fields and light panels intact. */
#root [class~="bg-brand-navy"] > :is(p, li, small),
#root [class~="bg-brand-navy"] > :is(div, article) > :is(p, li, small) {
  color: #fff !important;
}
