/**
 * Accessibility: text contrast (WCAG AA, 4.5:1) for two site-wide colours. Ticket #41.
 * Load AFTER app.css. Uses only the theme's own colour variables (no new hex values), so it
 * follows whatever the admin sets under Appearance > Theme colours.
 *
 * - Primary button: dark text (--text_color) on the brand green instead of white (white on
 *   #4caf50 was 2.78:1, --text_color on #4caf50 is 5.09:1). The brand green is not changed.
 * - Placeholder: --text_color mixed 70% with white (about #6b6b6b), was --text_muted #8e9cba
 *   at 2.76:1. Muted text elsewhere on the site is not touched.
 */

.btn.btn-primary,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:focus-visible,
.btn.btn-primary:active,
.btn.btn-primary.active,
.btn.btn-primary:disabled,
.btn.btn-primary.disabled,
.btn-check:checked + .btn.btn-primary,
.show > .btn.btn-primary.dropdown-toggle {
    color: var(--text_color);
}

.form-control::placeholder {
    color: color-mix(in srgb, var(--text_color) 70%, white);
    opacity: 1;
}

.form-control::-ms-input-placeholder {
    color: color-mix(in srgb, var(--text_color) 70%, white);
}
