/*
 * Link: inline text that keeps the surrounding font and line, so it sits in a sentence (or a `Trans` string) without
 * changing its rhythm. `accent` colours it and deepens on hover; `neutral` keeps the text colour and underlines.
 */

@layer dx-components {
  .dx-link {
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--radius-sm, 0.25rem);
  }
  .dx-link[data-variant='accent'] {
    color: var(--color-accent-text);
  }
  .dx-link[data-variant='accent']:hover {
    color: var(--color-accent-text-hover, var(--color-accent-text));
  }
  .dx-link[data-variant='neutral'] {
    color: inherit;
  }
  .dx-link[data-variant='neutral']:hover {
    text-decoration: underline;
  }

  /* Class forms for raw DOM and non-Link elements: `dx-link-accent` (the accent link), `dx-link-hover` (keeps its
     colour, takes the accent on hover). */
  .dx-link-accent {
    color: var(--color-accent-text);
    cursor: pointer;
  }
  .dx-link-accent:hover,
  .dx-link-hover:hover {
    color: var(--color-accent-text-hover, var(--color-accent-text));
  }
  .dx-link-hover {
    cursor: pointer;
  }
}
