/**
 * WB Gamification - BuddyX brand integration.
 *
 * Loaded only when WB Gamification is active (see inc/Styles/Component.php).
 * The plugin already maps its neutral surface/text/border colours onto the
 * --bx-color-* tokens and flips them with [data-bx-mode], so only the accent
 * is left: its blocks default to a purple unless the theme provides
 * --wbcom-link-color. Point it at the BuddyX accent so points, badges and
 * leaderboards match the active skin in light and dark mode.
 */
:root {
    --wbcom-link-color: var(--bx-color-accent, #c92a2b);
    --wbcom-link-hover-color: var(--bx-color-link-hover, #b82526);
}

/* On-accent text. The nudge button is painted with the theme accent, so its label comes from the
 * theme's on-accent token in light and dark (the plugin derives its own label from the plugin
 * accent, which gave black on the theme red in light mode: 3.85:1). Limit: a custom accent an owner
 * sets inside WB Gamification itself still gets this theme label; revisit if that becomes common. */
body .gam-nudge__action,
body .wb-gam-btn--primary {
    color: var(--bx-color-accent-inverse, #fff);
}
