/* Platform inline message. Bootstrap 5's own .alert markup; this sheet only recolours
 * the four house variants to the status tokens, the way Shared/Buttons does .btn-danger.
 *
 * Padding, margin and radius are deliberately absent — Bootstrap's are fine and 66
 * views already rely on them. Do not add them here.
 *
 * Text is the darker -text token, not the state colour: an alert is body copy and has
 * to clear 4.5:1. The border is the state colour so the region has a perceivable edge;
 * the fill alone is 1.1:1 against the page.
 *
 * The legacy set (.success, .fail-message, .alert-message, .notify-message,
 * .error-message in styles.css) stays where it is. This sheet is what new work uses.
 *
 * Rule: UI-RULES.md → Alert. Reasoning: docs/ui/alert.html */

.alert-success {
    color: var(--sw-success-text);
    background-color: var(--sw-success-bg);
    border-color: var(--sw-success);
}

.alert-warning {
    color: var(--sw-warning-text);
    background-color: var(--sw-warning-bg);
    border-color: var(--sw-warning);
}

.alert-danger {
    color: var(--sw-danger-text);
    background-color: var(--sw-danger-bg);
    border-color: var(--sw-danger);
}

.alert-info {
    color: var(--sw-info-text);
    background-color: var(--sw-info-bg);
    border-color: var(--sw-info);
}

/* A link takes the alert's colour and keeps its underline — no fifth blue. */
.alert .alert-link {
    color: inherit;
    text-decoration: underline;
}
