.community-hero {
  background: #3455ef;
  color: #fff;
  padding: 40px;
  border-radius: 28px;
  position: relative;
}
.community-hero h1 {
  margin: 12px 0 20px;
  font-weight: 700;
  letter-spacing: -2px;
}
.community-hero .eyebrow {
  color: #ffd447;
}
.community-hero p {
  max-width: 650px;
}
.privacy-note {
  font-size: 14px;
  opacity: 0.9;
}
.community-tabs,
.community-heading,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.community-heading {
  justify-content: space-between;
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.community-card {
  background: white;
  border: 1px solid #d8e0ff;
  border-radius: 20px;
  padding: 24px;
  overflow-wrap: anywhere;
}
.community-card h3 {
  margin-top: 0;
}
.community-card button {
  margin: 6px 8px 0 0;
}
.community-card .meta,
.post-meta {
  font-size: 13px;
  color: #55617a;
}
.community-card .match-reason {
  color: #2443bf;
}
.discover-search {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  align-items: end;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 20px;
}
.discover-search label,
.inline-form label {
  display: block;
  flex: 1;
}
.thread-post {
  border-bottom: 1px solid #e0e6f5;
  padding: 20px 0;
}
.thread-post p,
.event-description {
  white-space: pre-wrap;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
}
.member-row span {
  flex: 1;
}
.community-tabs [aria-current='true'] {
  background: #3455ef;
  color: white;
}
.community-tabs [aria-current='false'] {
  background: white;
  color: #2443bf;
}
#community-status {
  padding: 10px 0;
  min-height: 24px;
}
#group-summary h2 {
  font-size: 36px;
  line-height: 1.2;
}
#profile-panel .account-card {
  max-width: 800px;
}
#group-detail > h2 {
  margin-top: 32px;
}
@media (max-width: 700px) {
  .community-grid,
  .discover-search {
    grid-template-columns: 1fr;
  }
  .community-hero {
    padding: 26px;
  }
  .community-tabs button {
    flex: 1;
  }
  .community-card {
    padding: 20px;
  }
}

[hidden] {
  display: none !important;
}
.event-book-row {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 12px;
  margin: 12px 0;
}
.event-book-row button {
  align-self: end;
}
fieldset {
  border: 1px solid #d8e0ff;
  border-radius: 14px;
  margin: 24px 0;
  padding: 20px;
}

.profile-picture {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.reader-avatar {
  display: inline-flex;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.reader-avatar .reader-avatar {
  width: 80px;
  height: 80px;
}
.profile-copy {
  white-space: pre-wrap;
}
#reader-profile-view {
  max-width: 800px;
}
#profile-suggestions {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0;
}
#profile-suggestions:empty {
  display: none;
}

.community-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
}
.community-hero-copy {
  min-width: 0;
}
.community-group-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}
.community-hero .privacy-note {
  opacity: 1;
}
@media (max-width: 800px) {
  .community-hero {
    grid-template-columns: 1fr;
  }
  .community-group-art {
    max-height: 440px;
    object-fit: contain;
  }
}

#group-form {
  scroll-margin-top: calc(var(--app-nav-height, 76px) + 16px);
}
