@use "00-base/configure" as *;

@use "sass:color" as *;

.ma__callout-link {
  border: 3px solid;
  display:flex;
  width: 100%;
  flex-flow: column wrap;
  justify-content: center;
  padding: 15px 20px;
  background-color: mix(#fff, $c-font-link,90%);
  border-color: mix(#fff, $c-font-link,50%);
  box-shadow: 0 0.25rem 0.5rem rgba(#000, 0.25);

  @media ($bp-small-min) {
    padding: 20px 30px;
  }

  &:hover,
  &:focus {

    .ma__callout-link__text {
      border-bottom-color: rgba($c-font-link,.5);
    }
  }

  &:last-child {
    margin-bottom: 0;
  }

  & > span {
    width: 100%;
  }

  &__container {
    font-size: $fonts-larger;
    line-height: 1.3;
    vertical-align: middle;
    padding-right: .8em;
    width: 100%;
  }

  &__text {

    @include ma-link-underline;
    display: inline;

    svg {

      @include ma-link-arrow;
      fill: rgba($c-font-link,.5);
    }
  }

  &__description {
    display: none;
    padding-top: 10px;
    font-size: $fonts-small;
    font-weight: $fonts-light;
    color: rgba($c-font-link,1);

    @media ($bp-x-small-min) {
      display: flex;
      align-content: stretch;
      align-items: center;
    }
  }

  &__eyebrow {
    background-color: $c-bg-section;
    font-weight: $fonts-bold;
  }

  &__header {
    align-content: stretch;
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: $c-font-detail;

    @media ($bp-small-min) {
        margin-bottom: 15px;
    }
  }

  &__eyebrow, &__time {
    font-size: $fonts-2xsmall;
    letter-spacing: $letter-spacing-large;
    text-transform: uppercase;
    padding: 5px 7px;
  }

  &__emphasized {
    font-size: $fonts-smaller;
    line-height: 1;
    padding-top: 15px;
    display: flex;
    color: $c-font-base;
    font-weight: $fonts-bold;
  }

  &--white {
    background-color: $c-white;
    border-color: mix(#fff, $c-font-detail,70%);
    box-shadow: 0 0.25rem 0.5rem rgba(#000, 0.25);
  }

  // removed after version 5.5.0

  &__info {

    @include ma-visually-hidden;
  }
}
