/* Add transitions to the resting states so hover eases both in and out. */
.home-perspective-contact a,
body.account-page a:not(footer a),
body.account-page .text-action {
  text-decoration-line: underline;
  text-decoration-color: transparent;
}

body.account-page a:not(footer a):hover,
body.account-page .text-action:hover,
.home-perspective-contact a:hover {
  text-decoration-color: currentColor;
}

.home-perspective-contact a {
  text-underline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    --rwa-hover-duration: 200ms;
    --rwa-hover-easing: ease-out;
  }

  img[data-image-reveal].is-awaiting-reveal {
    opacity: 0;
  }

  img[data-image-reveal].is-revealing {
    animation: image-reveal 650ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  @keyframes image-reveal {
    from {
      opacity: 0;
      transform: translateY(18px) scale(1.035);
    }
  }

  .navbar_link,
  .dropdown-toggle,
  .nav_fixed .dropdown-list a,
  .nav_fixed .dropdown-list .dropdown-list-wrapper-link,
  .nav_fixed .dropdown-list .sitemap-category {
    transition:
      color var(--rwa-hover-duration) var(--rwa-hover-easing),
      opacity var(--rwa-hover-duration) var(--rwa-hover-easing);
  }

  .nav_fixed .navbar_button-wrapper .nav-action-icon {
    transition: filter var(--rwa-hover-duration) var(--rwa-hover-easing);
  }

  .home-faq .faq_icon-wrapper,
  .home-faq .home-faq-all,
  .home-perspective-about,
  .home-resource-links a,
  .investment-all,
  .news-card h3,
  .pp2-arrow,
  .ab-contact a,
  .pp-email,
  .ac-alert-l,
  .ac-dl-b,
  .ac-ext a h3,
  .ac-m .ac-m-a,
  .lx-pol a,
  .ct-off a,
  .ct-off-contact a,
  .ct-ex a h3,
  .ob-tile-links a,
  body.account-page footer a,
  body.account-page .back {
    transition: color var(--rwa-hover-duration) var(--rwa-hover-easing);
  }

  .ab-link,
  .ab .ab-hero .ct-quick a,
  .lx-art .legal-contact-actions a {
    transition:
      color var(--rwa-hover-duration) var(--rwa-hover-easing),
      border-color var(--rwa-hover-duration) var(--rwa-hover-easing),
      text-decoration-color var(--rwa-hover-duration) var(--rwa-hover-easing);
  }

  .ac-tags button,
  body.account-page .secondary {
    transition:
      color var(--rwa-hover-duration) var(--rwa-hover-easing),
      border-color var(--rwa-hover-duration) var(--rwa-hover-easing),
      background-color var(--rwa-hover-duration) var(--rwa-hover-easing);
  }

  .news-arrow {
    transition:
      transform 0.2s ease,
      color var(--rwa-hover-duration) var(--rwa-hover-easing);
  }

  .home-perspective-contact a,
  .lx-art a:not(.legal-contact-actions a, .lx-mtoc a, .lx-mpol a),
  body.account-page a:not(footer a),
  body.account-page .text-action {
    transition: text-decoration-color var(--rwa-hover-duration) var(--rwa-hover-easing);
  }

  @supports selector(details::details-content) and (interpolate-size: allow-keywords) and (transition-behavior: allow-discrete) {
    main details::details-content {
      block-size: 0;
      overflow: clip;
      interpolate-size: allow-keywords;
      transition:
        block-size 260ms cubic-bezier(0.25, 0.7, 0.25, 1),
        content-visibility 260ms allow-discrete;
    }

    main details[open]::details-content {
      block-size: auto;
    }
  }
}
