.forum-shell {
  --forum-gap: 0.75rem;
}

.forum-nav {
  padding-top: 0.75rem;
}

.forum-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.forum-category-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forum-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.forum-topic-row {
  min-width: 0;
}

.forum-post-card .forum-post-body {
  line-height: 1.68;
}

.forum-reply-quote {
  position: relative;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-left: 4px solid var(--bs-primary);
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
}

.forum-reply-quote::before {
  position: absolute;
  top: 0.2rem;
  left: 0.75rem;
  color: var(--bs-primary);
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 2.5rem;
  line-height: 1;
}

.forum-reply-children {
  margin: 0 0 0 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--bs-info);
}

.forum-reply-card {
  border-color: var(--bs-info-border-subtle);
}

.forum-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-secondary-bg);
  font-weight: 600;
}

.forum-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.forum-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1030;
}

.forum-composer {
  position: sticky;
  bottom: 0;
  z-index: 10;
  padding-bottom: env(safe-area-inset-bottom);
}

.forum-autogrow {
  min-height: 120px;
  resize: vertical;
}

@media (prefers-reduced-motion: reduce) {
  .forum-category-card,
  .forum-fab {
    transition: none !important;
    animation: none !important;
  }
}
