.chc-community-index,
.chc-community-category,
.chc-community-group,
.chc-category-wall,
.chc-category-card,
.chc-topic-list,
.chc-topic-view,
.chc-comment-thread,
.chc-thread-header {
  display: grid;
}

.chc-community-index,
.chc-community-category,
.chc-community-group,
.chc-category-wall,
.chc-topic-list,
.chc-comment-thread {
  gap: 1rem;
}

.chc-community-group {
  padding: 1.5rem;
}

.chc-category-card {
  grid-template-columns: minmax(0, 1.2fr) minmax(150px, 0.55fr) minmax(210px, 0.8fr);
  gap: 1rem;
  align-items: center;
  padding: 1.1rem;
  border-radius: var(--chc-radius-sm);
  background: var(--chc-surface-soft);
  border: 1px solid var(--chc-line);
}

.chc-latest-topic {
  padding: 0.95rem 1rem;
  border-radius: var(--chc-radius-sm);
  background: #fff;
  border: 1px solid var(--chc-line);
  color: var(--chc-text);
  font-size: 0.84rem;
}

.chc-latest-topic strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--chc-heading);
}

.chc-topic-row {
  gap: 0.8rem;
}

.chc-thread-header {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.chc-topic-comments #comments,
.chc-topic-comments .comment-list {
  list-style: none;
  padding: 0;
}

.chc-topic-comments .comment-list {
  display: grid;
  gap: 0.85rem;
}

.chc-topic-comments .comment-body,
.chc-topic-comments .comment-respond {
  padding: 1rem;
  border-radius: var(--chc-radius-sm);
  background: #fff;
  border: 1px solid var(--chc-line);
}

@media (max-width: 920px) {
  .chc-category-card,
  .chc-thread-header {
    grid-template-columns: 1fr;
  }
}
