.forum-body {
  background: #f8f9fa;
}

.forum-card {
  background: #fff;
  border: 0;
  border-radius: 0.4rem;
  box-shadow: 0 1px 2px rgba(33, 37, 41, 0.06), 0 8px 24px rgba(33, 37, 41, 0.04);
}

.forum-board {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid #e9ecef;
}

.forum-board:last-child {
  border-bottom: 0;
}

.forum-board:hover {
  background: #f8f9fa;
  color: inherit;
}

.forum-board h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.forum-meta {
  color: #6c757d;
  font-size: 0.9rem;
}

.forum-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #212529;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.forum-post {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid #e9ecef;
}

.forum-post:last-child {
  border-bottom: 0;
}

.forum-post-body {
  flex: 1;
  min-width: 0;
}

.forum-composer textarea {
  min-height: 8rem;
}

.forum-thread-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e9ecef;
  text-decoration: none;
  color: inherit;
}

.forum-thread-row:last-child {
  border-bottom: 0;
}

.forum-thread-row:hover {
  background: #f8f9fa;
  color: inherit;
}

.forum-thread-title {
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.forum-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #6c757d;
}

.forum-narrow {
  max-width: 28rem;
}

.forum-form {
  max-width: 36rem;
}

.forum-embed,
.forum-photos img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.3rem;
  margin: 0.5rem 0;
}

.forum-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.forum-photos img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  margin: 0;
}

.forum-emoji .btn {
  margin: 0 0.15rem 0.15rem 0;
}

.forum-trust-select {
  width: auto;
}

a.forum-nick {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

a.forum-nick:hover {
  text-decoration: underline;
}

.forum-post.pending {
  background: #fff8e8;
}

@media (max-width: 575.98px) {
  .forum-thread-row {
    grid-template-columns: 1fr;
  }
}
