/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/**
 * @file
 * The actual sort link.
 */

.sortable-heading {
  padding: 0 var(--space-m);
  & > a {
    display: block;
    padding-block: var(--space-xs);
    padding-inline: 0 1.5rem;
    -webkit-text-decoration: none;
    text-decoration: none;
    color: inherit;

    &:focus,
    &:hover {
      -webkit-text-decoration: none;
      text-decoration: none;

      &::before {
        border-color: inherit;
      }

      &::after {
        opacity: 1;
      }
    }

    &::before {
      position: absolute;
      z-index: 0;
      inset-block-start: 0;
      inset-inline-end: 1rem;
      inset-block-end: 0;
      inset-inline-start: 1rem;
      display: block;
      content: "";
      border-bottom: 0.125rem solid transparent;
    }

    &::after {
      position: absolute;
      inset-block-start: 50%;
      inset-inline-end: 1rem;
      width: 0.875rem;
      height: 1rem;
      margin-block-start: -0.5rem;
      content: "";
      opacity: 0.5;
      background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23000f33'/%3e%3c/svg%3e") no-repeat 50% 50%;
      background-size: contain;

      [dir="rtl"] & {
        /* Horizontally flip the element. */
        transform: scaleX(-1);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23000f33'/%3e%3c/svg%3e");

        @media (forced-colors: active) {
          mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23000f33'/%3e%3c/svg%3e") no-repeat 50% 50%;
        }
      }

      @media (forced-colors: active) {
        opacity: 1;
        background: linktext;
        mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23000f33'/%3e%3c/svg%3e") no-repeat 50% 50%;
      }
    }
  }

  &.is-active > a {
    color: var(--color-absolutezero);

    &::before {
      border-bottom: 0.1875rem solid var(--color-absolutezero);
    }

    &::after {
      content: none;
    }
  }
}
