/**
 * Readability of the WARNING colour, light theme only (the dark theme is a separate task).
 *
 * Tabler's warning is a bright yellow (#ffc107): as TEXT it is about 1.6:1 on white - nobody can read it. Every TEXT use of warning below is darkened to an
 * amber that passes WCAG AA on white (5.2:1) and on the pale warning ground (bg-warning-lt, 4.9:1). The BACKGROUND uses (bg-warning, btn-warning, the
 * badge ground) are deliberately untouched, so buttons and badges look exactly as before.
 *
 * Loaded after color-adjustments.css / colors.css through config/backpack/theme-tabler.php 'styles'.
 */
html:not([data-bs-theme=dark]) {
    --exp-warning-text: #a15c07;
    --exp-warning-alert-text: #7a4a00;   /* an alert sits on a stronger ground: darker still (the sectioned forms already used #5c3a00) */
}

html:not([data-bs-theme=dark]) .text-warning,
html:not([data-bs-theme=dark]) a.text-warning:hover,
html:not([data-bs-theme=dark]) .link-warning,
html:not([data-bs-theme=dark]) .link-warning:hover,
html:not([data-bs-theme=dark]) .badge.bg-warning-lt,
html:not([data-bs-theme=dark]) .bg-warning-lt,
html:not([data-bs-theme=dark]) .badge-outline.text-warning,
html:not([data-bs-theme=dark]) .form-hint.text-warning,
html:not([data-bs-theme=dark]) .invalid-feedback.text-warning {
    color: var(--exp-warning-text) !important;
}

html:not([data-bs-theme=dark]) .alert-warning,
html:not([data-bs-theme=dark]) .alert-warning .alert-title,
html:not([data-bs-theme=dark]) .alert-warning .alert-link,
html:not([data-bs-theme=dark]) .alert-warning .alert-description {
    --tblr-alert-color: var(--exp-warning-alert-text);
    color: var(--exp-warning-alert-text);
}

/* the icon of a warning alert / hint follows the text, not the yellow */
html:not([data-bs-theme=dark]) .alert-warning .alert-icon,
html:not([data-bs-theme=dark]) .text-warning .icon {
    color: var(--exp-warning-text);
}
