.thread-feed {
  max-width: var(--layout-content);
  margin: 0 auto;
}

.thread-post {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-xs);
}

.thread-post--nested {
  margin-left: 2.75rem;
  margin-top: 0.55rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: var(--color-surface-subtle);
  border-color: var(--color-border-light);
  box-shadow: none;
}

.thread-post__bio::before {
  content: "/";
  margin-right: 0.25rem;
  color: var(--color-text-muted);
}

.thread-post__header {
  color: var(--color-text);
}

.thread-post__content {
  font-size: 0.98rem;
  line-height: 1.75;
  word-break: break-word;
  color: var(--color-text);
}

.thread-post__content p:last-child {
  margin-bottom: 0;
}

.thread-post__content a {
  word-break: break-all;
  color: var(--color-accent);
  font-weight: 600;
}

.thread-post__content a:hover {
  color: var(--color-accent-hover);
}

.thread-post__actions {
  border-top: 1px solid var(--color-border-light);
  padding-top: 0.6rem;
}

.thread-feed .answer-citations {
  max-width: calc(var(--layout-content) - 4rem);
  padding: 0.75rem 0.9rem !important;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  background: var(--color-surface-subtle);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.thread-feed .answer-citations a {
  word-break: break-all;
  color: var(--color-accent);
  font-weight: 600;
}

.like-form button:hover {
  opacity: 0.85;
}

.min-width-0 {
  min-width: 0;
}

.thread-reply-form textarea {
  font-size: 0.92rem;
}

.thread-section-title {
  border-bottom: 1px solid var(--color-border-light);
}

.thread-section-title h2 {
  color: var(--color-text-muted);
  font-weight: 700;
}

@media (max-width: 576px) {
  .thread-post {
    padding: 0.95rem 1rem;
  }

  .thread-post .d-flex.gap-3 {
    gap: 0.75rem !important;
  }

  .thread-post--nested {
    margin-left: 1.25rem;
  }

  .thread-feed .answer-citations {
    margin-left: 0 !important;
    max-width: 100%;
  }
}
