/* Global Source theme overrides that should stay separate from modal styling. */

:root {
  --revia-link-color: #2dd4bf;
  --revia-link-color-hover: #14b8a6;
  --revia-link-color-visited: #0f766e;
  --ghost-accent-color: var(--revia-link-color);
}

.gh-main .gh-content a:not(.kg-bookmark-container):not(.kg-btn):not(.kg-file-card-container):not(.kg-product-card-button),
.gh-main .gh-article-tag,
.gh-main .gh-article-meta a,
.gh-main .gh-comments a,
.gh-navigation-members > a:not(.gh-button),
footer a:not(.gh-button),
.gh-powered-by a {
  color: var(--revia-link-color);
  text-decoration-color: currentColor;
}

.gh-main .gh-content a:not(.kg-bookmark-container):not(.kg-btn):not(.kg-file-card-container):not(.kg-product-card-button) {
  text-underline-offset: 0.18em;
}

.gh-main .gh-content a:not(.kg-bookmark-container):not(.kg-btn):not(.kg-file-card-container):not(.kg-product-card-button):hover,
.gh-main .gh-content a:not(.kg-bookmark-container):not(.kg-btn):not(.kg-file-card-container):not(.kg-product-card-button):focus-visible,
.gh-main .gh-article-tag:hover,
.gh-main .gh-article-tag:focus-visible,
.gh-main .gh-article-meta a:hover,
.gh-main .gh-article-meta a:focus-visible,
.gh-main .gh-comments a:hover,
.gh-main .gh-comments a:focus-visible,
.gh-navigation-members > a:not(.gh-button):hover,
.gh-navigation-members > a:not(.gh-button):focus-visible,
footer a:not(.gh-button):hover,
footer a:not(.gh-button):focus-visible,
.gh-powered-by a:hover,
.gh-powered-by a:focus-visible {
  color: var(--revia-link-color-hover);
}

.gh-main .gh-content a:not(.kg-bookmark-container):not(.kg-btn):not(.kg-file-card-container):not(.kg-product-card-button):visited,
.gh-main .gh-article-meta a:visited,
.gh-main .gh-comments a:visited,
.gh-navigation-members > a:not(.gh-button):visited,
footer a:not(.gh-button):visited,
.gh-powered-by a:visited {
  color: var(--revia-link-color-visited);
}
