@layer genr.component {
  .member-list {
    background-color: var(--color-darker-green);
  }

  .member-list__header {
    width: 100%;
    max-width: var(--width-lg);
    margin: auto;

    .headline {
      margin-bottom: 2.5rem;
      font-weight: 700;
      color: var(--color-light-patrol);
    }
  }

  .member-list__form {
    display: flex;
    gap: 2.5rem;
    /* flex-wrap: wrap; */
    flex-direction: column;
    scroll-margin-top: 14rem;

    @media (width > 576px) {
      flex-direction: row;
      align-items: flex-end;
    }

    /* Hide all direct children that do not have a class (e.g. hidden fields) */
    > div:not([class]) {
      display: none;
    }
  }

  .member-list__content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: var(--width-xl);
    margin-inline: auto;
    padding-inline: 1.5rem;
    padding-block: 8rem;

    @media (width > 1280px) {
      padding-inline: 0;
    }
  }

  .member-list__body {
    .h4 {
      width: 100%;
      max-width: var(--width-lg);
      margin: 0 auto 2.5rem;
    }
  }

  .member-list__items {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, 16rem);
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
  }

  .member-list__button--mobile {
    @media (width > 576px) {
      display: none;
    }
  }

  .member-list__button--desktop {
    display: none;

    @media (width > 576px) {
      display: inline-flex;
    }
  }
}
