.home-org-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(216px, calc((100% - 60px) / 6), 240px);
  justify-content: start;
  gap: 12px;
  overflow-x: auto;
  list-style: none;
  margin: 0;
  padding: 2px 2px 8px;
}

.home-org-card {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  height: 100%;
  padding: 10px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.home-org-card:hover,
.home-org-card:focus-visible {
  border-color: #4abac0;
  color: inherit;
  text-decoration: none;
}

.home-org-card .profile-result-avatar {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
}

.home-org-info h3,
.home-org-bio,
.home-org-areas {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-org-info h3 {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.4;
}

.home-org-bio {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.home-org-info .result-profile-areas {
  display: flex;
  margin-top: 8px;
}

.home-org-areas {
  min-width: 0;
}

body.theme-dark .home-org-card {
  background: #20262d;
  border-color: #46505c;
}

body.theme-dark .home-org-card:hover,
body.theme-dark .home-org-card:focus-visible {
  border-color: #58c4cb;
}

body.theme-dark .home-org-info .result-profile-areas,
body.theme-dark .home-org-info .result-profile-label {
  color: #c5cbd3;
}

.home-org-list > li:nth-child(n + 7) {
  display: none;
}

@media (max-width: 768px) {
  .home-org-list {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    padding-inline: 16px;
  }

  .home-org-list > li:nth-child(n + 7) {
    display: list-item;
  }

  .home-org-card {
    gap: 8px;
    padding: 8px;
  }

  .home-org-card .profile-result-avatar {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .home-org-info h3 {
    font-size: 14px;
  }

  .home-org-info .result-profile-areas {
    flex-wrap: wrap;
    gap: 2px 6px;
  }
}
