/**
 * GamiPress - BuddyX dark-mode compatibility.
 *
 * Loaded only when GamiPress is active (see inc/Styles/Component.php).
 * GamiPress points widgets, achievement lists and rank text hardcode dark
 * colors that disappear on a dark surface under [data-bx-mode="dark"]
 * (the card's "points counters remain black / rank titles unreadable").
 * Re-tint the text containers to the theme foreground and map the card-style
 * panels onto the surface token. Badge artwork keeps its own colors.
 */
:root[data-bx-mode="dark"] .gamipress-user-points,
:root[data-bx-mode="dark"] .gamipress-user-points-amount,
:root[data-bx-mode="dark"] .gamipress-user-points-label,
:root[data-bx-mode="dark"] .gamipress-user-points-description,
:root[data-bx-mode="dark"] .gamipress-points,
:root[data-bx-mode="dark"] .gamipress-achievements-list,
:root[data-bx-mode="dark"] .gamipress-achievements-container,
:root[data-bx-mode="dark"] .gamipress-achievement,
:root[data-bx-mode="dark"] .gamipress-achievement-title,
:root[data-bx-mode="dark"] .gamipress-achievement-title a,
:root[data-bx-mode="dark"] .gamipress-achievement-description,
:root[data-bx-mode="dark"] .gamipress-achievement-excerpt,
:root[data-bx-mode="dark"] .gamipress-achievement-points,
:root[data-bx-mode="dark"] .gamipress-achievement-unlock-with-points,
:root[data-bx-mode="dark"] .gamipress-rank-title,
:root[data-bx-mode="dark"] .gamipress-rank-description {
	color: var(--bx-color-fg, #e5e7eb);
}

/* Card-style panels (achievement cards, congratulations box) onto the dark
 * surface so any hardcoded light background follows the theme. */
:root[data-bx-mode="dark"] .gamipress-achievement,
:root[data-bx-mode="dark"] .gamipress-achievement-congratulations,
:root[data-bx-mode="dark"] .gamipress-rank {
	background-color: var(--bx-color-bg-elevated, #1f2937);
	border-color: var(--bx-color-border, #374151);
}
