/* Ravens crest colour contrast repair v1.3.0.
   The predecessor's .rbc-crest-legacy-primary has !important dark ink even on
   newly forest-green sections. These rules are precise, paint-only overrides;
   they do NOT alter layout or rearrange Elementor content. */
body.rbc-crest-palette .rbc-crest-inner-page .rbc-crest-dark-surface.rbc-crest-dark-surface :is(h1,h2,h3,h4,h5,h6,.elementor-heading-title,p,li,label,legend,blockquote,.elementor-text-editor,.elementor-widget-text-editor),
body.rbc-crest-palette .rbc-crest-inner-page .rbc-crest-legacy-dark.rbc-crest-legacy-dark :is(h1,h2,h3,h4,h5,h6,.elementor-heading-title,p,li,label,legend,blockquote) {
  color:#f8fcf8;
}
/* The JavaScript applies these classes only when measured contrast is poor.
   Match the previous plugin's !important text overrides, and inline Elementor
   colours are overridden in memory, not saved to the post. */
body.rbc-crest-palette .rbc-crest-contrast-light.rbc-crest-contrast-light {
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
body.rbc-crest-palette .rbc-crest-contrast-dark.rbc-crest-contrast-dark {
  color:#10271f !important;
  -webkit-text-fill-color:#10271f !important;
}
/* Keep bright crest-yellow CTAs dark even if they live in dark sections. */
body.rbc-crest-palette :is(.rbc-crest-dark-surface,.rbc-crest-legacy-dark) :is(.btn-primary,.button-primary,.wp-block-button__link,.elementor-button)[data-rbc-contrast-button='yellow'],
body.rbc-crest-palette .rbc-crest-contrast-yellow-button.rbc-crest-contrast-yellow-button {
  color:#10271f !important;
  -webkit-text-fill-color:#10271f !important;
}
/* White contact and application fields are never made white-on-white. */
body.rbc-crest-palette :is(.rvc5-form-card,.rvhc-form-pane,.rbc-crest-light-surface) :is(input:not([type=submit]),textarea,select) {
  color:#17342a;
  -webkit-text-fill-color:#17342a;
}
