/* Ordinary text links. Colors live in design-tokens.css.
   Keep cards, navigation, filters and filled buttons in their own components.
   Explicit visited color avoids browser-default purple; no !important override. */
@layer tokens, base, layout, components, utilities;
@layer base {
    /* Low priority default; explicit component roles retain their own colors. */
    :where(a:link, a:visited) { color: var(--fq-color-link); }
    :where(a:hover) { color: var(--fq-color-link-hover); }
}

.pack-result-card .pack-result-links a,
.pack-result-login,
.pack-guest-delete,
.account-feature-all-link,
.article-content a,
.back-to-main,
.challenge-explore-link,
.code-hunt__test-link a,
.creator-manage-collections-link,
.creator-paste-back,
.creator-session-end .creator-text-link,
.creator-settings-link,
.curated-quiz-packs__footer a,
.curated-quiz-packs__header a,
.deal-more-link,
.feed-wyr-more-link,
.fq-answer-stats-link,
.fq-hero-trust a,
.fq-landing-board header a,
.fq-next-game__all-link,
.fq-next-section__title>a,
.fq-next-text-link,
.fq-next-weekly-actions .fq-next-text-link,
.fq-share-back-link,
.fq-text-link,
.home-code-hunt__all-link,
.latest-answer-link,
.latest-tf-link,
.music-quiz-packs__header a,
.music-taxonomy-back a,
.music-taxonomy-hub__links a,
.music-taxonomy-hub__more,
.pack-back-button,
.pack-game-top a,
.pack-result-card .pack-result-quiz-links .pack-result-text-link,
.pack-result-view .pack-result-quiz-links .pack-result-text-link,
.riddle-hub-text-link,
.segment-sidebar-games-all-link,
.segment-sidebar-geography-more,
.segment-sidebar-pack-related-more,
.terms-content a,
.tf-feedback-more-link,
.tf-read-more-link,
.trivia-pack-example-list a,
.weekly-game-side-archive > a,
.weekly-prestart-back { color: var(--fq-color-link); }

.pack-result-card .pack-result-links a:visited,
.pack-result-login:visited,
.pack-guest-delete:visited,
.account-feature-all-link:visited,
.article-content a:visited,
.back-to-main:visited,
.challenge-explore-link:visited,
.code-hunt__test-link a:visited,
.creator-manage-collections-link:visited,
.creator-paste-back:visited,
.creator-session-end .creator-text-link:visited,
.creator-settings-link:visited,
.curated-quiz-packs__footer a:visited,
.curated-quiz-packs__header a:visited,
.deal-more-link:visited,
.feed-wyr-more-link:visited,
.fq-answer-stats-link:visited,
.fq-hero-trust a:visited,
.fq-landing-board header a:visited,
.fq-next-game__all-link:visited,
.fq-next-section__title>a:visited,
.fq-next-text-link:visited,
.fq-next-weekly-actions .fq-next-text-link:visited,
.fq-share-back-link:visited,
.fq-text-link:visited,
.home-code-hunt__all-link:visited,
.latest-answer-link:visited,
.latest-tf-link:visited,
.music-quiz-packs__header a:visited,
.music-taxonomy-back a:visited,
.music-taxonomy-hub__links a:visited,
.music-taxonomy-hub__more:visited,
.pack-back-button:visited,
.pack-game-top a:visited,
.pack-result-card .pack-result-quiz-links .pack-result-text-link:visited,
.pack-result-view .pack-result-quiz-links .pack-result-text-link:visited,
.riddle-hub-text-link:visited,
.segment-sidebar-games-all-link:visited,
.segment-sidebar-geography-more:visited,
.segment-sidebar-pack-related-more:visited,
.terms-content a:visited,
.tf-feedback-more-link:visited,
.tf-read-more-link:visited,
.trivia-pack-example-list a:visited,
.weekly-game-side-archive > a:visited,
.weekly-prestart-back:visited { color: var(--fq-color-link); }

.pack-result-card .pack-result-links a:hover,
.pack-result-login:hover,
.pack-guest-delete:hover,
.account-feature-all-link:hover,
.article-content a:hover,
.back-to-main:hover,
.challenge-explore-link:hover,
.code-hunt__test-link a:hover,
.creator-manage-collections-link:hover,
.creator-paste-back:hover,
.creator-session-end .creator-text-link:hover,
.creator-settings-link:hover,
.curated-quiz-packs__footer a:hover,
.curated-quiz-packs__header a:hover,
.deal-more-link:hover,
.feed-wyr-more-link:hover,
.fq-answer-stats-link:hover,
.fq-hero-trust a:hover,
.fq-landing-board header a:hover,
.fq-next-game__all-link:hover,
.fq-next-section__title>a:hover,
.fq-next-text-link:hover,
.fq-next-weekly-actions .fq-next-text-link:hover,
.fq-share-back-link:hover,
.fq-text-link:hover,
.home-code-hunt__all-link:hover,
.latest-answer-link:hover,
.latest-tf-link:hover,
.music-quiz-packs__header a:hover,
.music-taxonomy-back a:hover,
.music-taxonomy-hub__links a:hover,
.music-taxonomy-hub__more:hover,
.pack-back-button:hover,
.pack-game-top a:hover,
.pack-result-card .pack-result-quiz-links .pack-result-text-link:hover,
.pack-result-view .pack-result-quiz-links .pack-result-text-link:hover,
.riddle-hub-text-link:hover,
.segment-sidebar-games-all-link:hover,
.segment-sidebar-geography-more:hover,
.segment-sidebar-pack-related-more:hover,
.terms-content a:hover,
.tf-feedback-more-link:hover,
.tf-read-more-link:hover,
.trivia-pack-example-list a:hover,
.weekly-game-side-archive > a:hover,
.weekly-prestart-back:hover { color: var(--fq-color-link-hover); }

/* Footer text links keep the same blue in all states. */
.site-footer a,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer a:active,
.site-footer .site-footer-link-button,
.site-footer .site-footer-link-button:hover,
.site-footer .site-footer-link-button:focus-visible,
.site-footer .site-footer-link-button:active { color: var(--fq-color-footer-link); }
