/*
 * Patch 020 — Comptabilité visual contrast QA
 * Scope: post IDs 218 and 51 only.
 * No layout, content, form runtime or business logic changes.
 */

/* #218 /comptabilite-pme-vaud/
 * 10C.8A introduced .rp-box.dark inside a navy section.
 * The legacy page family had no .rp-box rules, so body colours
 * were inherited onto the dark surface.
 */
body.r111-object-218 .rp-section.rp-navy .rp-box.dark,
body.page-id-218 .rp-section.rp-navy .rp-box.dark {
  color: #e7edf3 !important;
}

body.r111-object-218 .rp-section.rp-navy .rp-box.dark h3,
body.page-id-218 .rp-section.rp-navy .rp-box.dark h3 {
  color: #ffffff !important;
}

body.r111-object-218 .rp-section.rp-navy .rp-box.dark p,
body.page-id-218 .rp-section.rp-navy .rp-box.dark p {
  color: #e7edf3 !important;
  -webkit-text-fill-color: #e7edf3 !important;
  opacity: 1 !important;
}

body.r111-object-218 .rp-section.rp-navy .rp-box.dark a,
body.page-id-218 .rp-section.rp-navy .rp-box.dark a {
  color: #f2cc63 !important;
  -webkit-text-fill-color: #f2cc63 !important;
  text-decoration-color: rgba(242,204,99,.55) !important;
}

/* #51 /comptabilite-lausanne-vaud/
 * Keep primary CTA text navy in every link state.
 */
body.r111-object-51 .rf-hero .rf-actions a.rf-btn,
body.r111-object-51 .rf-hero .rf-actions a.rf-btn:visited,
body.r111-object-51 .rf-hero .rf-actions a.rf-btn:hover,
body.r111-object-51 .rf-hero .rf-actions a.rf-btn:focus,
body.page-id-51 .rf-hero .rf-actions a.rf-btn,
body.page-id-51 .rf-hero .rf-actions a.rf-btn:visited,
body.page-id-51 .rf-hero .rf-actions a.rf-btn:hover,
body.page-id-51 .rf-hero .rf-actions a.rf-btn:focus,
body.r111-object-51 .rf-card-cta,
body.r111-object-51 .rf-card-cta:visited,
body.page-id-51 .rf-card-cta,
body.page-id-51 .rf-card-cta:visited {
  color: #0f2340 !important;
  -webkit-text-fill-color: #0f2340 !important;
  opacity: 1 !important;
}

/* #51 dark embedded RCL form.
 * Patch 014 intentionally uses navy labels for generic embedded forms
 * on light surfaces. This page embeds the same form on navy.
 */
body.r111-object-51 .rf-form-body :where([data-rcl-form],.rr-p014-rcl) :where(label,.rcl-label),
body.page-id-51 .rf-form-body :where([data-rcl-form],.rr-p014-rcl) :where(label,.rcl-label) {
  color: #e7edf3 !important;
  -webkit-text-fill-color: #e7edf3 !important;
  opacity: 1 !important;
}

body.r111-object-51 .rf-form-body :where([data-rcl-form],.rr-p014-rcl) :where(
  .rcl-privacy,.rcl-help,.rcl-helper,.rcl-note,.rcl-description,
  .form-privacy,.form-help,.form-note,.privacy,.description
),
body.page-id-51 .rf-form-body :where([data-rcl-form],.rr-p014-rcl) :where(
  .rcl-privacy,.rcl-help,.rcl-helper,.rcl-note,.rcl-description,
  .form-privacy,.form-help,.form-note,.privacy,.description
) {
  color: #cbd6e1 !important;
  -webkit-text-fill-color: #cbd6e1 !important;
  opacity: 1 !important;
}
