/**
 * Body Copy Links
 *
 * Elementor's global Link colour is set to #2A3037 - the same dark tone as body
 * text - so an editor-authored link is indistinguishable from the words around
 * it. The site worked around that with a `body p > a` rule in Additional CSS,
 * but the child combinator only reaches links that are a *direct* child of a
 * paragraph. Any link an editor wraps in emphasis, bold or a pasted span (very
 * common when copy is pasted in from Word) is skipped and falls back to the dark
 * global colour.
 *
 * Using a descendant selector instead picks those links up wherever they sit in
 * the copy. Scoped to the editor content widgets so navigation, buttons, cards
 * and other components keep their own styling, and `!important` is needed to
 * outrank the Elementor global (`.elementor-kit-6 a`), which cannot be changed
 * from plugin code.
 *
 * @package Calgary_Chamber
 */

/*
 * The plugin's own blocks are excluded. A shortcode dropped into a text editor
 * widget puts a whole directory inside this selector's reach, and at five
 * classes deep it outranked the card styles - the navy maker and member names
 * came out in body-copy blue. Each block styles its own links, so this rule
 * only has to cover editor copy.
 */
.elementor-widget-text-editor a:not(.elementor-button):not(.button):not(.bespoke-btn):not([class*="wp-block-button"]):not([class*="calgary-chamber-"] a),
.elementor-widget-theme-post-content a:not(.elementor-button):not(.button):not(.bespoke-btn):not([class*="wp-block-button"]):not([class*="calgary-chamber-"] a) {
	color: var(--chamber-link, #3392D2) !important;
}
