/* TrainerBinder 0.2.57 - LINK TESTUALI GLOBALI: mai blu standard.
   Azzurrino chiaro coerente con i collegamenti del footer (Privacy, Cookie, Termini).
   E' volutamente una regola globale caricata nel layout condiviso: tutte le pagine.
   NON convertire pulsanti in testo ciano: contrasto su sfondi gialli garantito. */
:root {
  --tb-text-link-cyan: #a5e5f4;
  --tb-text-link-hover: #e5faff;
}

/* La lista negativa lascia intatti navigazione, pulsanti oro, badge, schede icona e nickname.
   Link non classificati, compresi i link senza classi (come «Accedi» in Condividi),
   assumono l'azzurrino anche da visitati e se CSS locali impostano il blu. */
html body a:any-link:not(:is(
  .tab, .header-link, .hunter-button, .role-badge, .account-name,
  .tb-social-alert, .mb-share-option, .mb-news-back, .mb-news-read-more,
  .mb-news-release-link, .mb-news-cover, .mb-news-related-cover,
  .tb-voted-binder-cover, .tb-nl-button, .mb-creator-link,
  [role="button"], [class*="btn"], [class*="button"], [class*="Button"],
  [class*="badge"], [class*="pill"], [class*="toggle"],
  [class*="-tab"], [class*="-action"], [class*="-control"],
  [style*="background:"], [style*="background-color:"]
)) {
  color: var(--tb-text-link-cyan) !important;
  text-decoration-color: currentColor;
}

html body a:any-link:hover:not(:is(
  .tab, .header-link, .hunter-button, .role-badge, .account-name,
  .tb-social-alert, .mb-share-option, .mb-news-back, .mb-news-read-more,
  .mb-news-release-link, .mb-news-cover, .mb-news-related-cover,
  .tb-voted-binder-cover, .tb-nl-button, .mb-creator-link,
  [role="button"], [class*="btn"], [class*="button"], [class*="Button"],
  [class*="badge"], [class*="pill"], [class*="toggle"],
  [class*="-tab"], [class*="-action"], [class*="-control"],
  [style*="background:"], [style*="background-color:"]
)),
html body a:any-link:focus-visible:not(:is(
  .tab, .header-link, .hunter-button, .role-badge, .account-name,
  .tb-social-alert, .mb-share-option, .mb-news-back, .mb-news-read-more,
  .mb-news-release-link, .mb-news-cover, .mb-news-related-cover,
  .tb-voted-binder-cover, .tb-nl-button, .mb-creator-link,
  [role="button"], [class*="btn"], [class*="button"], [class*="Button"],
  [class*="badge"], [class*="pill"], [class*="toggle"],
  [class*="-tab"], [class*="-action"], [class*="-control"],
  [style*="background:"], [style*="background-color:"]
)) {
  color: var(--tb-text-link-hover) !important;
  text-decoration: underline;
  text-underline-offset: .16em;
}

/* Il riquadro Condividi è la regressione segnalata: «Accedi» deve essere ciano.
   Non influenziamo le opzioni social, che sono pulsanti con sfondo scuro. */
html body .mb-news-share p a:any-link:not(.mb-share-option),
html body .mb-news-share p a:visited:not(.mb-share-option) {
  color: var(--tb-text-link-cyan) !important;
}
html body .mb-news-share p a:hover:not(.mb-share-option),
html body .mb-news-share p a:focus-visible:not(.mb-share-option) {
  color: var(--tb-text-link-hover) !important;
}

/* Evidenziazione accessibile anche per link testuali fuori dal layout news. */
html body a:any-link:focus-visible:not(:is(.tab, .mb-share-option, .header-link, .hunter-button, .mb-news-back, [role="button"], [class*="btn"], [class*="button"])) {
  outline: 2px solid var(--tb-text-link-cyan);
  outline-offset: 3px;
}
