/*
 * Visible links in body copy.
 *
 * Not ported from the theme — this is a deliberate change from the live site,
 * asked for because links in content were invisible there. The theme sets
 * `a { color: var(--color-headings) }`, i.e. #222, the same colour as the text
 * around them, so an internal or external link in a paragraph read as plain
 * prose.
 *
 * Colour choice: the brand teal is #4da8b3, which is only 2.78:1 against white
 * and fails WCAG AA for body text (4.5:1). #0f6f7a is the same hue darkened
 * until it passes — 5.87:1 on white and 5.44:1 on the light grey band behind
 * `#list-info`. The underline is deliberate too: colour alone is not an
 * acceptable way to signal a link (WCAG 1.4.1).
 *
 * Scoped to text elements (p, li, td, headings, blockquote) rather than to
 * `.entry-content a`, because the casino cards live inside `.entry-content` as
 * well and their CTA buttons and logo wrappers must keep the theme's styling.
 */

:root {
  --color-link: #0f6f7a;
  --color-link-hover: #0a5f69;
}

.entry-content p a,
.entry-content li a,
.entry-content td a,
.entry-content th a,
.entry-content blockquote a,
.entry-content h2 a,
.entry-content h3 a,
.entry-content h4 a,
.entry-content h5 a,
.entry-content h6 a,
.faq-item a,
.author-about-content a,
.pros a,
.cons a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.entry-content p a:hover,
.entry-content li a:hover,
.entry-content td a:hover,
.entry-content th a:hover,
.entry-content blockquote a:hover,
.entry-content h2 a:hover,
.entry-content h3 a:hover,
.entry-content h4 a:hover,
.entry-content h5 a:hover,
.entry-content h6 a:hover,
.faq-item a:hover,
.author-about-content a:hover,
.pros a:hover,
.cons a:hover,
.entry-content p a:focus-visible,
.entry-content li a:focus-visible {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* The casino listing keeps the theme's look: the CTA, the logo wrapper and the
   offer text are components, not prose. */
.casino a,
.casino-list a,
.mega-offer a,
.buttons a,
.casino-logo-wrapper,
.quick-nav-links a,
.related-post a {
  color: inherit;
  text-decoration: none;
}

.mega-offer a,
.casino-excerpt a {
  text-decoration: none;
}

/* On the teal subheader a dark teal would disappear, so links there are white
   and rely on the underline. */
.subheader a,
.subheader .header-content a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.subheader a:hover {
  color: #ffffff;
  text-decoration: underline;
}
