@use "@styles/abstracts/functions" as fun;
@use "@styles/abstracts/variables" as var;
.link {
  background: linear-gradient(to top, var(--color-primary) 50%, transparent 50%)
    0 0 / 100% 201% no-repeat;
  color: var(--color-primary);
  text-decoration-thickness: 0.15em;
  text-underline-offset: 20%;
  transition: all 0.3s linear 0s, text-decoration 0.18s ease-in-out 0s;
  &:hover {
    color: var(--color-primary-light);
    text-decoration-thickness: 0.25em;
  }
  &:focus {
    background-position: 0 100%;
    color: var(--color-fg-inverted);
  }
  &:active {
    background-position: 0 0;
    color: var(--color-primary-dark);
    text-decoration-thickness: 18%;
  }
  &[hreflang] {
    &::after {
      display: inline-block;
      /* Prettier is removing spacing between content parts. */
      /* prettier-ignore */
      content: "\0000a0[" attr(hreflang) "]";
      font-size: var(--font-size-sm);
    }
  }
  &--download {
    &::after {
      display: inline-block;
      /* Prettier is removing spacing between content parts. */
      /* prettier-ignore */
      content: "\0000a0" url(
fun.encode-svg(
        ''
));
    }
    &:focus:not(:active)::after {
      /* Prettier is removing spacing between content parts. */
      /* prettier-ignore */
      content: "\0000a0" url(
fun.encode-svg(
        ''
));
    }
    &[hreflang] {
      &::after {
        /* Prettier is removing spacing between content parts. */
        /* prettier-ignore */
        content: "\0000a0[" attr(hreflang) "]\0000a0" url(
fun.encode-svg(
          ''
));
      }
    }
  }
  &--external {
    &::after {
      display: inline-block;
      /* Prettier is removing spacing between content parts. */
      /* prettier-ignore */
      content: "\0000a0" url(fun.encode-svg(''));
    }
    &:focus:not(:active)::after {
      /* Prettier is removing spacing between content parts. */
      /* prettier-ignore */
      content: "\0000a0" url(fun.encode-svg(''));
    }
    &[hreflang] {
      &::after {
        /* Prettier is removing spacing between content parts. */
        /* prettier-ignore */
        content: "\0000a0[" attr(hreflang) "]\0000a0" url(
fun.encode-svg(
            ''
));
      }
      &:focus:not(:active)::after {
        /* Prettier is removing spacing between content parts. */
        /* prettier-ignore */
        content: "\0000a0[" attr(hreflang) "]\0000a0" url(
fun.encode-svg(
            ''
));
      }
    }
  }
  &--external#{&}--download {
    &::after {
      /* Prettier is removing spacing between content parts. */
      /* prettier-ignore */
      content: "\0000a0" url(
fun.encode-svg(
          ''
)) "\0000a0" url(fun.encode-svg(''));
    }
    &[hreflang] {
      &::after {
        /* Prettier is removing spacing between content parts. */
        /* prettier-ignore */
        content: "\0000a0[" attr(hreflang) "]\0000a0" url(
fun.encode-svg(
          ''
)) "\0000a0" url(fun.encode-svg(''));
      }
      &:focus:not(:active)::after {
        /* Prettier is removing spacing between content parts. */
        /* prettier-ignore */
        content: "\0000a0[" attr(hreflang) "]\0000a0" url(
fun.encode-svg(
          ''
)) "\0000a0" url(fun.encode-svg(''));
      }
    }
  }
}