main .link-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

main .link-list div {
  margin-bottom: 2.5rem;
}

main .link-list div h2 {
  font-size: 1.5rem;
}

main .link-list div h5{
  font-weight: 500;
}

main .link-list a,
main .link-list button {
  display: block;
  padding: 1.25rem 0;
  font-weight: 500;
  text-decoration: none;
  color: var(--link-color);
}

main .link-list a:hover, main .link-list li button:hover{
  color: var(--blue-steel);
}

main .link-list a.with-chevron-style::after, main .link-list.with-chevron li i.symbol-chevron::after {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  margin-inline-start: 0.25rem;
  border: 2px solid currentcolor;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 2px;
  transition: margin 0.3s;
}

main .link-list a.with-chevron-style:hover::after, main .link-list.with-chevron button:hover i::after {
  margin-inline-start: 0.5rem;
}

main .link-list a.without-chevron-style::after {
  content: none;
}

html[dir='rtl'] .link-list a.with-chevron-style::after {
  transform: rotate(-135deg);
}

main .link-list ul li {
  border-bottom: 1px solid var(--gray-4);
}

main .link-list ul li:last-child {
  border-bottom: none;
}

main .section.location-page.link-list-container {
  padding-top: 1.5rem;
}

main .location-page .link-list.block {
  margin-block-end: 0;
}

main .section.location-page .default-content-wrapper {
  margin-top: 2rem;
}

main .section .link-list.block {
  margin-block-end: 4rem;
}

main .section .link-list.link-list-with-header {
  margin-block-end: 5rem;
}

main .location-page .default-content-wrapper p {
  margin: 2.5rem 0;
}

main .section.link-list-container .ups-title-wrapper:has(.keyline) + .default-content-wrapper p {
  font-size: var(--body-font-size-l);
}

main .link-list.without-chevron li i.symbol-chevron::after {
  content: none;
}

@media (width < 770px) {
  main .link-list ul {
    margin-top: 1.5rem;
  }
}

@media (width >= 770px) {
  main .section.location-page .default-content-wrapper {
    max-width: 40.5rem;
  }

  main .link-list ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
  }
}

@media (width >= 1280px) {
  main .section.location-page .default-content-wrapper {
    margin-top: 4rem;
    max-width: 50rem;
  }

  main .link-list ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 2rem;
  }

  main .link-list ul li:nth-child(3n+1):nth-last-child(-n+3),
  main .link-list ul li:nth-child(3n+1):nth-last-child(-n+3)~li {
    border-bottom: none;
  }
}

/* Down arrow icon shown before each label in the Anchor Link List style */
.link-list.down-arrow-chevron {

  /* stylelint-disable-next-line no-descending-specificity */
  ul li {
    border-bottom: none;

    a {
      display: inline-flex;
      align-items: center;
      gap: 2px;

      /* Down arrow icon before each label, implemented using the ::before pseudo-element */
      &::before {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        background-color: currentcolor;

        /* Down arrow symbol created using clip-path for the arrow shape */
        clip-path: polygon(46% 9%, 54% 9%, 54% 74%, 69% 59%, 75% 59%, 77% 63%, 53% 88%, 50% 89%, 47% 88%, 23% 66%, 25% 60%, 31% 59%, 46% 74%);
      }
    }
  }
}
