/*
 * Maps old block-theme preset slugs (custom-cognac, etc.) to the Leaf palette
 * so existing posts/patterns keep working after the palette rename.
 */

.has-custom-cognac-background-color {
    background-color: var(--wp--preset--color--leaf-accent, #729b79) !important;
}

.has-custom-cognac-color {
    color: var(--wp--preset--color--leaf-accent, #729b79) !important;
}

.has-custom-cognac-border-color {
    border-color: var(--wp--preset--color--leaf-accent, #729b79) !important;
}

.has-custom-white-linen-color {
    color: var(--wp--preset--color--leaf-bg-elevated, #f5f6f2) !important;
}

.has-custom-white-linen-background-color {
    background-color: var(--wp--preset--color--leaf-bg-elevated, #f5f6f2) !important;
}

.has-custom-merino-background-color {
    background-color: var(--wp--preset--color--leaf-bg, #e1e4dc) !important;
}

.has-custom-merino-color {
    color: var(--wp--preset--color--leaf-bg, #e1e4dc) !important;
}

.has-custom-treehouse-color {
    color: var(--wp--preset--color--leaf-text, #2e2c2f) !important;
}

.has-custom-roman-coffee-color {
    color: var(--wp--preset--color--leaf-text-muted, #565258) !important;
}

.has-custom-tussock-color {
    color: var(--wp--preset--color--leaf-accent-muted, #80af88) !important;
}

.has-custom-pueblo-color {
    color: var(--wp--preset--color--leaf-accent-hover, #628a69) !important;
}

.has-custom-sienna-color {
    color: var(--wp--preset--color--leaf-accent-muted, #80af88) !important;
}

.has-custom-white-linen-color :where(a, .wp-block-button__link) {
    color: inherit;
}
