/*
 * A row of large pale link pills with an arrow badge, between two rules.
 *
 *   <nav class="yb-link-pills yb-container" aria-label="…">
 *     <a href="/teenused/">Koolitused</a> …
 *   </nav>
 */
.yb-link-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: var(--yb-space-m);
  margin-top: -40px;
  margin-bottom: 40px;
  padding-block: 40px;
  border-top: 1px solid var(--yb-color-border);
  border-bottom: 1px solid var(--yb-color-border);
  background-clip: content-box;
}

.yb-link-pills a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: var(--yb-radius-pill);
  background: var(--yb-color-surface);
  color: var(--yb-color-primary);
  font-size: var(--yb-size-h6);
  font-weight: var(--yb-weight-medium);
  line-height: 1.2;
  position: relative;
  transition: background-color 0.2s;
}

/* The arrow badge: ::after is the blue circle, ::before the yellow arrow on it. */
.yb-link-pills a::after {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yb-color-primary);
}

.yb-link-pills a::before {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  z-index: 1;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  background: var(--yb-color-accent);
  -webkit-mask: url("../../icons/arrow-up-right.svg") center / 12px no-repeat;
  mask: url("../../icons/arrow-up-right.svg") center / 12px no-repeat;
}

.yb-link-pills a:hover {
  background: var(--yb-color-accent);
}

@media (max-width: 1024px) {
  .yb-link-pills {
    justify-content: center;
    margin-bottom: 100px;
  }
}

@media (max-width: 767px) {
  .yb-link-pills {
    justify-content: flex-start;
    gap: var(--yb-space-xs);
    margin-top: 0;
  }
}
