/*!
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

.spectrum-Link{
  --spectrum-link-animation-duration:var(--spectrum-animation-duration-100);
  --spectrum-link-text-color-primary-default:var(--spectrum-accent-content-color-default);
  --spectrum-link-text-color-primary-hover:var(--spectrum-accent-content-color-hover);
  --spectrum-link-text-color-primary-active:var(--spectrum-accent-content-color-down);
  --spectrum-link-text-color-primary-focus:var(--spectrum-accent-content-color-key-focus);
  --spectrum-link-text-color-secondary-default:var(--spectrum-neutral-content-color-default);
  --spectrum-link-text-color-secondary-hover:var(--spectrum-neutral-content-color-hover);
  --spectrum-link-text-color-secondary-active:var(--spectrum-neutral-content-color-down);
  --spectrum-link-text-color-secondary-focus:var(--spectrum-neutral-content-color-key-focus);

  --spectrum-link-text-color-white:var(--spectrum-white);
  --spectrum-link-text-color-black:var(--spectrum-black);
}

@media (forced-colors: active){
  .spectrum-Link{
    --highcontrast-link-text-color-primary-default:LinkText;
    --highcontrast-link-text-color-primary-hover:LinkText;
    --highcontrast-link-text-color-primary-active:LinkText;
    --highcontrast-link-text-color-primary-focus:LinkText;

    --highcontrast-link-text-color-secondary-default:LinkText;
    --highcontrast-link-text-color-secondary-hover:LinkText;
    --highcontrast-link-text-color-secondary-active:LinkText;
    --highcontrast-link-text-color-secondary-focus:LinkText;

    --highcontrast-link-text-color-white:LinkText;
    --highcontrast-link-text-color-black:LinkText;
  }
}

.spectrum-Link{
  background-color:transparent;
  -webkit-text-decoration-skip:objects;
          text-decoration-skip:objects;
  -webkit-text-decoration:underline;
  text-decoration:underline;
  transition:color var(--mod-link-animation-duration, var(--spectrum-link-animation-duration)) ease-in-out;
  outline:none;
  cursor:pointer;

  color:var(--highcontrast-link-text-color-primary-default, var(--mod-link-text-color-primary-default, var(--spectrum-link-text-color-primary-default)));
}

.spectrum-Link:active,
.spectrum-Link.is-active{
    color:var(--highcontrast-link-text-color-primary-active, var(--mod-link-text-color-primary-active, var(--spectrum-link-text-color-primary-active)));
  }

.spectrum-Link:focus-visible,
.spectrum-Link.is-focus-visible{
    color:var(--highcontrast-link-text-color-primary-focus, var(--mod-link-text-color-primary-focus, var(--spectrum-link-text-color-primary-focus)));
    -webkit-text-decoration:underline;
    text-decoration:underline;
    text-decoration-style:double;
    text-decoration-color:var(--highcontrast-link-focus-color, inherit);
  }

.spectrum-Link--secondary{
  color:var(--highcontrast-link-text-color-secondary-default, var(--mod-link-text-color-secondary-default, var(--spectrum-link-text-color-secondary-default)));
}

.spectrum-Link--secondary:active,
.spectrum-Link--secondary.is-active{
    color:var(--highcontrast-link-text-color-secondary-active, var(--mod-link-text-color-secondary-active, var(--spectrum-link-text-color-secondary-active)));
  }

.spectrum-Link--secondary:focus{
    color:var(--highcontrast-link-text-color-secondary-focus, var(--mod-link-text-color-secondary-focus, var(--spectrum-link-text-color-secondary-focus)));
  }

.spectrum-Link--quiet{
  -webkit-text-decoration:none;
  text-decoration:none;
}

.spectrum-Link--staticWhite{
  color:var(--highcontrast-link-text-color-white, var(--mod-link-text-color-white, var(--spectrum-link-text-color-white)));
}

.spectrum-Link--staticWhite:active, .spectrum-Link--staticWhite:focus,
.spectrum-Link--staticWhite.is-active{
    color:var(--highcontrast-link-text-color-white, var(--mod-link-text-color-white, var(--spectrum-link-text-color-white)));
  }

.spectrum-Link--staticBlack{
  color:var(--highcontrast-link-text-color-black, var(--mod-link-text-color-black, var(--spectrum-link-text-color-black)));
}

.spectrum-Link--staticBlack:active, .spectrum-Link--staticBlack:focus,
.spectrum-Link--staticBlack.is-active{
    color:var(--highcontrast-link-text-color-black, var(--mod-link-text-color-black, var(--spectrum-link-text-color-black)));
  }

@media (hover: hover){

.spectrum-Link:hover,
.spectrum-Link.is-hover{
    color:var(--highcontrast-link-text-color-primary-hover, var(--mod-link-text-color-primary-hover, var(--spectrum-link-text-color-primary-hover)));
  }

.spectrum-Link--secondary:hover,
.spectrum-Link--secondary.is-hover{
    color:var(--highcontrast-link-text-color-secondary-hover, var(--mod-link-text-color-secondary-hover, var(--spectrum-link-text-color-secondary-hover)));
  }

.spectrum-Link--quiet:hover,
.spectrum-Link--quiet.is-hover{
    -webkit-text-decoration:underline;
    text-decoration:underline;
  }

.spectrum-Link--staticWhite:hover,
.spectrum-Link--staticWhite.is-hover{
    color:var(--highcontrast-link-text-color-white, var(--mod-link-text-color-white, var(--spectrum-link-text-color-white)));
  }

.spectrum-Link--staticBlack:hover,
.spectrum-Link--staticBlack.is-hover{
    color:var(--highcontrast-link-text-color-black, var(--mod-link-text-color-black, var(--spectrum-link-text-color-black)));
  }
}
