/**
 * Site-wide link colors + contrast on dark backgrounds (footer).
 *
 * @package EDsmartData
 */

/* -------------------------------------------------------------------------
   Light backgrounds — default content, posts, imported HTML
   ------------------------------------------------------------------------- */

.entry-content a:not(.wp-block-button__link):not(.wp-element-button):not(.btn-download),
.entry-content .wp-block-html a:not(.wp-block-button__link):not(.btn-download),
main .wp-block-post-content a:not(.wp-block-button__link):not(.wp-element-button):not(.btn-download),
article a:not(.wp-block-button__link):not(.wp-element-button):not(.btn-download) {
	color: var(--wp--preset--color--link, #0a5f6d);
	text-underline-offset: 0.2em;
}

.entry-content a:not(.wp-block-button__link):not(.wp-element-button):not(.btn-download):hover,
.entry-content .wp-block-html a:not(.wp-block-button__link):not(.btn-download):hover,
main .wp-block-post-content a:not(.wp-block-button__link):not(.wp-element-button):not(.btn-download):hover,
article a:not(.wp-block-button__link):not(.wp-element-button):not(.btn-download):hover {
	color: var(--wp--preset--color--link-hover, #064a55);
	text-decoration: underline;
}

.entry-content a:not(.wp-block-button__link):not(.btn-download):focus-visible,
article a:not(.wp-block-button__link):not(.btn-download):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, #00b3c6);
	outline-offset: 2px;
	border-radius: 2px;
}

/* -------------------------------------------------------------------------
   Footer — links on #0D1726 (must not use saturated blue alone; use light blue)
   ------------------------------------------------------------------------- */

.site-footer.has-footer-bg-background-color a:not(.wp-block-button__link):not(.wp-element-button),
.site-footer.has-footer-bg-background-color .wp-block-post-content a {
	color: var(--wp--preset--color--link-on-dark, #9cf0ff) !important;
	text-decoration: none;
}

.site-footer.has-footer-bg-background-color a:not(.wp-block-button__link):not(.wp-element-button):hover,
.site-footer.has-footer-bg-background-color .wp-block-post-content a:hover {
	color: #ffffff !important;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.site-footer.has-footer-bg-background-color a:not(.wp-block-button__link):focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
	border-radius: 2px;
}

.site-footer.has-footer-bg-background-color a[href^="mailto:"] {
	color: var(--wp--preset--color--link-on-dark, #9cf0ff) !important;
}

.site-footer.has-footer-bg-background-color a[href^="mailto:"]:hover {
	color: #ffffff !important;
}
