/* Approved shared button feedback. Keep each action's existing semantic colors
   (especially destructive actions); tint/elevation supplies the common highlight.
   Match the action selector in action-feedback.js. No geometry or layout changes. */
body :is(button, input[type="button"], input[type="submit"], input[type="reset"], input[type="image"], [role="button"], a.btn, a.button, a.control, a.primary, a.secondary, a[class*="-button"], a[class*="-btn"], a[class^="btn-"]):not(:disabled, .disabled, .is-disabled, [aria-disabled="true"]):is(:hover, :focus-visible) {
    filter: brightness(.94);
    box-shadow: inset 0 0 0 100vmax color-mix(in srgb, var(--care-primary, #08765d) 9%, transparent),
        0 5px 14px color-mix(in srgb, var(--care-primary, #08765d) 18%, transparent);
    translate: 0 -2px;
}

body :is(button, input[type="button"], input[type="submit"], input[type="reset"], input[type="image"], [role="button"], a.btn, a.button, a.control, a.primary, a.secondary, a[class*="-button"], a[class*="-btn"], a[class^="btn-"]):not(:disabled, .disabled, .is-disabled, [aria-disabled="true"]):focus-visible {
    outline: 2px solid var(--care-focus, #145f9e);
    outline-offset: 3px;
}

body :is(button, input[type="button"], input[type="submit"], input[type="reset"], input[type="image"], [role="button"], a.btn, a.button, a.control, a.primary, a.secondary, a[class*="-button"], a[class*="-btn"], a[class^="btn-"]):active {
    translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
    body :is(button, input[type="button"], input[type="submit"], input[type="reset"], input[type="image"], [role="button"], a.btn, a.button, a.control, a.primary, a.secondary, a[class*="-button"], a[class*="-btn"], a[class^="btn-"]):not(:disabled, .disabled, .is-disabled, [aria-disabled="true"]):is(:hover, :focus-visible, :active) {
        translate: none;
        transition: none;
    }
}

@media print {
    body :is(button, input[type="button"], input[type="submit"], input[type="reset"], input[type="image"], [role="button"], a.btn, a.button, a.control, a.primary, a.secondary, a[class*="-button"], a[class*="-btn"], a[class^="btn-"]):not(:disabled, .disabled, .is-disabled, [aria-disabled="true"]):is(:hover, :focus-visible, :active) {
        filter: none;
        box-shadow: none;
        translate: none;
    }
}
