/* The article return uses the same typography and right alignment as editorial links. */
.article-return > .article-back-link {
  display:inline-block;
  color:var(--navy);
  font-size:.9375rem;
  font-weight:var(--type-cta-weight,700);
  line-height:var(--type-cta-line,1.2);
  letter-spacing:var(--type-cta-track,0);
  text-decoration:none;
}

/* Keyboard focus stays visible on return links without an enclosing frame. */
:is(.archive-intro .back-link,.article-return > .article-back-link):focus-visible{
  outline:none;text-decoration:underline var(--coral) 2px;text-underline-offset:.24em;
}
:is(.archive-intro .back-link,.article-return > .article-back-link):focus-visible::after{opacity:0}

/* Draw the green stroke from the beginning of the text without reflow. */
@media (hover: hover) and (pointer: fine) {
  :is(
    .technologies-home .technology-section-link a,
    .news-component.homepage-news-component .home-focus .read-more,
    .news-component.homepage-news-component .home-focus .focus-bottom button[data-route="news"],
    .news-component .news-card > .read-more,
    .news-component .list-controls > .archive-link,
    .news-component .archive-intro .back-link,
    .article-return > .article-back-link,
    .technology-component .tests-link-v8,
    .about-page .partner-external-link
  ) {
    position:relative;
  }
  :is(
    .technologies-home .technology-section-link a,
    .news-component.homepage-news-component .home-focus .read-more,
    .news-component.homepage-news-component .home-focus .focus-bottom button[data-route="news"],
    .news-component .news-card > .read-more,
    .news-component .list-controls > .archive-link,
    .news-component .archive-intro .back-link,
    .article-return > .article-back-link,
    .technology-component .tests-link-v8,
    .about-page .partner-external-link
  )::after {
    content:"";
    position:absolute;
    inset-inline:0;
    inset-block-end:-3px;
    border-block-end:1px solid var(--green);
    pointer-events:none;
    transform:scaleX(0);
    transform-origin:left center;
    transition:transform 240ms ease-out;
  }
  :is(
    .technologies-home .technology-section-link a,
    .news-component.homepage-news-component .home-focus .read-more,
    .news-component.homepage-news-component .home-focus .focus-bottom button[data-route="news"],
    .news-component .news-card > .read-more,
    .news-component .list-controls > .archive-link,
    .news-component .archive-intro .back-link,
    .article-return > .article-back-link,
    .technology-component .tests-link-v8
  ):hover {
    color:var(--navy);
  }
  :is(
    .technologies-home .technology-section-link a,
    .news-component.homepage-news-component .home-focus .read-more,
    .news-component.homepage-news-component .home-focus .focus-bottom button[data-route="news"],
    .news-component .news-card > .read-more,
    .news-component .list-controls > .archive-link,
    .news-component .archive-intro .back-link,
    .article-return > .article-back-link,
    .technology-component .tests-link-v8,
    .about-page .partner-external-link
  ):hover::after {
    transform:scaleX(1);
  }
  @media (prefers-reduced-motion: reduce) {
    :is(
      .technologies-home .technology-section-link a,
      .news-component.homepage-news-component .home-focus .read-more,
      .news-component.homepage-news-component .home-focus .focus-bottom button[data-route="news"],
      .news-component .news-card > .read-more,
      .news-component .list-controls > .archive-link,
      .news-component .archive-intro .back-link,
      .article-return > .article-back-link,
      .technology-component .tests-link-v8,
      .about-page .partner-external-link
    )::after {transition:none}
  }
}
