/* Dedicated tokens prevent the light-site theme from replacing dark-surface text colors. */
.gk-smart-search-hero,
.gk-home-discussions,
.gk-community-stats,
.gk-form-card,
.gk-guide-card,
.gk-guide-cta,
.gk-file-card,
.gk-library-empty,
.gk-search-results,
.gk-directory-filters,
.gk-directory-empty,
.gk-partner-card,
.gk-digest-list {
  --gk-text: #f7f7f7;
  --gk-muted: #b8bdc7;
}

/* Large headings on charcoal panels. */
.entry-content .gk-smart-search-hero h2,
.entry-content .gk-home-discussions h2,
.entry-content .gk-section-heading h2,
.entry-content .gk-form-card h1,
.entry-content .gk-form-card h2,
.entry-content .gk-form-card h3,
.entry-content .gk-form-card h4 {
  color: #f7f7f7;
}

/* Live-topic rows: titles and numeric values had inherited #2b2b2b. */
.entry-content .gk-home-discussions .gk-topic-title,
.entry-content .gk-home-discussions .gk-topic-stats strong {
  color: #f1f3f6;
}

.entry-content .gk-home-discussions .gk-topic-title:hover,
.entry-content .gk-home-discussions .gk-topic-title:focus-visible {
  color: #ffd34f;
}

.entry-content .gk-home-discussions .gk-topic-sub,
.entry-content .gk-home-discussions .gk-topic-stats {
  color: #b8bdc7;
}

/* Asgaros' late link rule otherwise turns inactive dark pills black. */
body #af-wrapper nav.gk-filter-tabs a.gk-filter-tab:not(.button):not(.highlight-admin):not(.highlight-moderator) {
  color: #e6e9ee !important;
  background: #20242b;
}

body #af-wrapper nav.gk-filter-tabs a.gk-filter-tab:not(.button):not(.highlight-admin):not(.highlight-moderator):hover,
body #af-wrapper nav.gk-filter-tabs a.gk-filter-tab:not(.button):not(.highlight-admin):not(.highlight-moderator):focus-visible,
body #af-wrapper nav.gk-filter-tabs a.gk-filter-tab:not(.button):not(.highlight-admin):not(.highlight-moderator).is-active {
  color: #171717 !important;
  background: #f5b700;
  border-color: #f5b700;
}

/* Other reusable dark cards. */
.entry-content .gk-guide-card strong,
.entry-content .gk-guide-cta strong,
.entry-content .gk-file-card h3,
.entry-content .gk-search-results h3,
.entry-content .gk-search-results h3 a,
.entry-content .gk-partner-card h3,
.entry-content .gk-partner-card h3 a,
.entry-content .gk-digest-list h3,
.entry-content .gk-digest-list h3 a {
  color: #f1f3f6;
}

.entry-content .gk-guide-card small,
.entry-content .gk-guide-cta span,
.entry-content .gk-file-card p,
.entry-content .gk-search-results p,
.entry-content .gk-partner-meta,
.entry-content .gk-partner-excerpt,
.entry-content .gk-digest-list p {
  color: #b8bdc7;
}

.entry-content .gk-library-filters button,
.entry-content .gk-popular-searches a {
  color: #e1e5eb;
}

.entry-content .gk-library-filters button:hover,
.entry-content .gk-library-filters button:focus-visible,
.entry-content .gk-library-filters button.is-active,
.entry-content .gk-popular-searches a:hover,
.entry-content .gk-popular-searches a:focus-visible {
  color: #171717;
}

/* Keyboard users must see focus on every corrected dark link. */
.gk-topic-title:focus-visible,
.gk-filter-tab:focus-visible,
.gk-guide-card:focus-visible,
.gk-file-actions a:focus-visible,
.gk-search-results h3 a:focus-visible,
.gk-partner-card h3 a:focus-visible,
.gk-digest-list h3 a:focus-visible {
  outline: 2px solid #f5b700;
  outline-offset: 3px;
}
