/* The palette slug formerly named `border` — see inc/palette-compat.php.
 *
 * Saved content from before 1.19.0 can still name the old preset. Each form it
 * takes is pointed at `border-subtle`, so existing borders keep their colour:
 *
 *   var:preset|color|border       → var(--wp--preset--color--border)
 *   borderColor: "border"         → .has-border-border-color
 *   backgroundColor: "border"     → .has-border-background-color
 *
 * `.has-border-color` (the old text colour) is deliberately NOT restored. That
 * class is also what border support adds to every bordered block, and its
 * colour rule is the bug the rename fixes. */

:root {
    --wp--preset--color--border: var(--wp--preset--color--border-subtle);
}

.has-border-border-color {
    border-color: var(--wp--preset--color--border-subtle) !important;
}

.has-border-background-color {
    background-color: var(--wp--preset--color--border-subtle) !important;
}
