/* -----------------------------------------
   LINK GRID
   /source/scss/cagov/link-grid.scss
----------------------------------------- */

.link-grid {
  display: block;
  border: 1px solid var(--bs-gray-200, $gray-200);
  border-radius: 5px;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1rem 2.25rem 1rem 1rem !important;
  position: relative;
  text-decoration: none !important;
  height: 100%;
  color: var(--color-p2, #046b99);
  border-bottom: 4px solid var(--bs-main, $main);

  &:hover,
  &:focus {
    background: var(--bs-gray-100, $gray-100);
    color: var(--bs-main-darker, $main);
  }

  &:focus {
    @include outline(2px);
  }

  &::after {
    font-family: CaGov;
    content: "5";
    position: absolute;
    top: 0.8rem;
    right: 0.7rem;
    font-size: 1.6rem;
  }
}

.link-before::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.bg-primary .link-grid {
  border-color: var(--bs-white, #fff);

  &:hover,
  &:focus {
    background-color: var(--bs-main-darker, $main);
  }
}
