.anchors-wrap {
  position: sticky;
  top: 0;
  background: var(--surface);
  margin-block-end: 0;
  z-index: 1;
}

/* Mobile toggle button */
.anchors-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: var(--border-1);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

/* Chevron */
.anchors-toggle-icon {
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-2) var(--ease-standard);
}

.anchors-wrap.is-open .anchors-toggle-icon {
  transform: rotate(-135deg);
}

/* Mobile dropdown panel */
.anchors {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% - 22px) !important;
  left: 0;
  right: 0;
  border: var(--border-1);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border-top: 0;
  margin-inline: var(--space-6);
}

.anchors-wrap.is-open .anchors {
  display: grid;
}

/* Mobile anchors */
.anchor {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-none);
  background: transparent;
  text-decoration: none;
  font-weight: 500;
}

.anchor:hover {
  background: var(--surface-1);
}

.anchor i {
  width: var(--space-4);
  text-align: center;
  margin-inline-end: var(--space-4);
}

.anchor__edit-profile-link::after {
  content: "\f08e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* solid icons */
  margin-left: var(--space-2);
  font-size: 0.75em; /* similar to fa-xs */
}

.lists .content-carousel header {
  display: none;
}

.list .page-header__actions .action-btn {
    width: fit-content;
    gap: var(--space-3);
    padding-inline: var(--space-4);
    font-size: var(--text-sm);
    height: fit-content;
    padding-block: var(--space-2);
}

/* > 320px / 20rem */
@media only screen and (min-width: 20rem) {
}

/* > 480px / 30rem */
@media only screen and (min-width: 30rem) {
}


/* 48rem / 768px */
@media only screen and (min-width: 48rem) {
  .anchors-toggle {
    display: none;
  }

  .anchors-wrap {
    border-bottom: var(--border-1);
    border-color: var(--border-strong);
    padding-block: var(--space-0);
    margin-block-end: var(--space-4);
    padding-inline: var(--space-0);
    z-index: 1;
  }

  .anchors {
    display: flex;
    position: static;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: transparent;
    box-shadow: none;
    margin-inline: 0;
    gap: 0;
    overflow: hidden;
  }

  .anchor {
        position: relative;
        color: var(--text-muted);
        padding-inline: var(--space-4);
        font-size: var(--text-xs);
        font-weight: 500;
        text-align: center;
        flex-direction: column;
        display: flex;
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-2);
        flex-basis: 100%;
  }

  .anchor:hover {
    color: var(--text-strong);
    background: color-mix(in srgb, var(--surface-2) 75%, transparent);
  }

  .anchor-active {
    color: var(--primary);
  }

  .anchor-active:hover {
    color: var(--primary-hover);
  }

  .anchor-active::after {
    content: "";
    bottom: -1px;
    position: absolute;
    width: 100%;
    height: 5px;
    background: var(--primary);
    left: 0;
    right: 0;
  }

  .anchor i {
    margin-inline-end: 0;
    font-size: var(--text-lg);
  }

}

/* 64rem / 1024px */
@media only screen and (min-width: 64rem) {
    .no-filter .results__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 80rem / 1280px */
@media only screen and (min-width: 80rem) {
  .anchors-wrap {
    margin-block-end: var(--space-8);
  }

  .anchor {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-3);
        text-align: left;
        padding: var(--space-4) var(--space-2);
  }

    .no-filter .results__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* 96rem / 1536px */
@media only screen and (min-width: 96rem) {
}
