.community-main {
  padding-bottom: 50px;
}
.community-page {
  padding: 28px 0;
}
.community-page h1 {
  font-family: Metropolis, sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -0.8px;
  color: #302c3c;
}
.community-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 20px;
  color: #705ce6;
  font-size: 14px;
}
.community-section {
  margin: 25px 0 55px;
}
.community-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0;
}
.community-section-heading h2 {
  margin: 0;
  color: #5e586a;
  font-size: 24px;
  font-weight: 600;
}
.community-section-heading a,
.community-section-heading span {
  font-size: 13px;
  color: #705ce6;
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.community-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.community-card-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.community-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e9e4f8;
  color: #6e58be;
  font-size: 12px;
  font-weight: 600;
}
.community-card-person > div {
  min-width: 0;
  flex: 1;
}
.community-card-person strong {
  display: block;
  color: #635c70;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.community-card-person a,
.community-card-person time {
  display: block;
  font-size: 11px;
  color: #82788f;
  margin-top: 4px;
}
.community-card h2 {
  font-size: 24px;
  line-height: 28px;
  margin: 20px 0 14px;
  color: #332e40;
  font-weight: 600;
}
.community-card h2 a {
  display: block;
  text-decoration: none;
}
.community-card p,
.community-card > time {
  font-size: 12px;
  color: #7b7287;
}
.community-open {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  border-top: 1px solid #efebf6;
  padding-top: 10px;
  color: #705ce6;
  font-size: 13px;
  text-decoration: none;
}
.community-empty {
  grid-column: 1/-1;
  padding: 32px;
  border-radius: 24px;
  background: #fff;
}
.community-empty h2 {
  color: #42394f;
  font-size: 22px;
}
.community-empty p {
  font-size: 14px;
  line-height: 1.7;
  color: #7b7287;
}
.community-scope {
  font-size: 12px;
  color: #7b7287;
  line-height: 1.7;
}
.community-search {
  background: #fff;
  padding: 22px;
  border-radius: 20px;
  margin: 25px 0;
}
.community-search label {
  display: block;
  font-size: 13px;
  color: #63566f;
  margin-bottom: 10px;
}
.community-search > div {
  display: flex;
  gap: 10px;
}
.community-search input {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  border: 1px solid #e0d9eb;
  border-radius: 25px;
  padding: 12px 16px;
}
.community-search > a {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: #705ce6;
}
.community-pages {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 20px 0;
}
.community-pages a {
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.community-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: white;
  padding: 30px;
  border-radius: 24px;
}
.community-brand > div:nth-child(2) {
  flex: 1;
  min-width: 160px;
}
.community-brand h1 {
  font-size: 30px;
  line-height: 36px;
  margin: 5px 0 10px;
  overflow-wrap: anywhere;
}
.community-brand p,
.community-brand small {
  font-size: 12px;
  color: #7b7287;
  margin: 0;
}
.community-brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #f5f2fb;
  color: #705ce6;
  font-weight: 600;
}
.community-brand-mark img {
  max-width: 54px;
  max-height: 54px;
  object-fit: contain;
}
.community-brand-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.community-secondary {
  background: transparent;
  color: #705ce6;
  border: 1px solid #dbd2ed;
}
#community-related {
  margin-top: 36px;
}
#community-message {
  font-size: 13px;
  color: #a23550;
}
#community-message:empty {
  display: none;
}
.community-main button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.community-secondary[aria-pressed="true"] {
  background: #705ce6;
  color: white;
}
.community-loading {
  padding: 40px 0;
  color: #7b7287;
}
.community-page :focus-visible {
  outline: 3px solid #9583d2;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
  .community-page {
    padding-top: 20px;
  }
  .community-page h1 {
    font-size: 26px;
    line-height: 31.2px;
  }
  .community-section-heading h2 {
    font-size: 22px;
  }
  .community-card {
    padding: 22px;
  }
  .community-brand {
    padding: 22px;
    gap: 14px;
  }
  .community-brand-actions {
    width: 100%;
    flex-direction: column;
  }
  .community-brand-actions > * {
    width: 100%;
    min-width: 0;
    font-size: 13px;
    white-space: nowrap;
    justify-content: center;
  }
  .community-search {
    padding: 18px;
  }
  .community-search > div {
    flex-wrap: wrap;
  }
  .community-search input {
    min-width: 130px;
  }
  .community-empty {
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .community-card h2 {
    font-size: 20px;
    line-height: 28px;
  }
  .community-brand h1 {
    font-size: 20px;
    line-height: 20px;
  }
}
