/**
 * Restore inline link styling in Elementor atomic paragraphs/headings.
 *
 * Elementor v4 sets `.e-paragraph-base a, .e-heading-base a { all: unset; }`,
 * which removes underlines that Theme Standards shows on body links.
 */

.e-paragraph-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]),
.e-heading-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]),
body[class*="elementor-kit-"] .e-paragraph-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]),
body[class*="elementor-kit-"] .e-heading-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]) {
	color: var(--color-text-muted, #333333);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.e-paragraph-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):hover,
.e-paragraph-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus,
.e-paragraph-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus-visible,
.e-heading-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):hover,
.e-heading-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus,
.e-heading-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus-visible,
body[class*="elementor-kit-"] .e-paragraph-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):hover,
body[class*="elementor-kit-"] .e-paragraph-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus,
body[class*="elementor-kit-"] .e-paragraph-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus-visible,
body[class*="elementor-kit-"] .e-heading-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):hover,
body[class*="elementor-kit-"] .e-heading-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus,
body[class*="elementor-kit-"] .e-heading-base a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus-visible {
	color: var(--color-primary, #2a2f6f);
	text-decoration: underline;
}

/* Classic Text Editor widget — Elementor v4 omits the .elementor-text-editor wrapper. */
.elementor-widget-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]),
.elementor-widget-text-editor .elementor-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]),
body[class*="elementor-kit-"] .elementor-widget-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]),
body[class*="elementor-kit-"] .elementor-widget-text-editor .elementor-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]) {
	color: var(--color-text-muted, #333333);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.elementor-widget-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):hover,
.elementor-widget-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus,
.elementor-widget-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus-visible,
.elementor-widget-text-editor .elementor-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):hover,
.elementor-widget-text-editor .elementor-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus,
.elementor-widget-text-editor .elementor-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus-visible,
body[class*="elementor-kit-"] .elementor-widget-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):hover,
body[class*="elementor-kit-"] .elementor-widget-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus,
body[class*="elementor-kit-"] .elementor-widget-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus-visible,
body[class*="elementor-kit-"] .elementor-widget-text-editor .elementor-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):hover,
body[class*="elementor-kit-"] .elementor-widget-text-editor .elementor-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus,
body[class*="elementor-kit-"] .elementor-widget-text-editor .elementor-text-editor a:not(.kbi-btn):not(.elementor-button):not([class*="kbi-link-on"]):focus-visible {
	color: var(--color-primary, #2a2f6f);
	text-decoration: underline;
}
