/* COMMENTS */

.comments-title-wrap {
  margin-bottom: 1em;
}

.discourse-comments-title {
  color: var(--theme-palette-color-4);
}

.comment-list {
  padding-left: 0;
  list-style-type: none;
}

/* Comment Meta */

li.comment .comment-author img {
  border-radius: 100px;
  margin-right: 0.4em;
}

li.comment .comment-metadata {
  font-style: italic;
  margin-top: 1em;
}

/* Comment Content */

li.comment article {
  background-color: var(--theme-palette-color-5);
  border-radius: 6px;
  padding: 1.1em 1em;
}

li.comment:not(:last-child) {
  margin-bottom: 1em;
}

li.comment .comment-content {
  margin-top: 0.2em;
}

.comment-content aside {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.5em;
  margin-top: 1em;
}

.comment-content blockquote {
  font-style: italic;
}

.comment-content a {
  color: var(--theme-palette-color-4);
  text-decoration: underline;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

li.comment .comment-content p {
  margin-top: 0.8em;
}

/* Discourse button */

.respond #reply-title {
  display: block;
  color: var(--theme-palette-color-4);
  font-size: 1.2em;
  margin-bottom: 0 !important;
}

.respond .comment-reply-title a {
  background: var(--theme-palette-color-3);
  border-radius: 6px;
  color: var(--theme-palette-color-4);
  display: block;
  font-size: 0.9em;
  font-weight: 700;
  margin-top: 0.8em;
  max-width: 400px;
  padding: 15px 30px;
  text-align: center;
  transition: 0.2s;
  width: 100%;
}

.respond .comment-reply-title a:hover {
  background: var(--theme-palette-color-4);
  color: var(--theme-palette-color-8);
  transform: translateY(-4px);
}

.respond .comment-reply-title:has(.discourse-participants) {
  display: none;
}

/* Single blog tweaks, avoid styling elsewhere */

.single-post .comment-body {
  background: var(--theme-palette-color-8);
}

.single-post .comment-respond:not(:only-child) .comment-reply-title {
  border-top: none;
}

.single-post .respond .comment-reply-title {
  margin-top: 1.7em;
}

.single-post .respond .comment-reply-title a {
  font-size: 1.1em;
  box-shadow: 6px 6px var(--theme-palette-color-4) !important;
}

.single-post .respond .comment-reply-title a:hover {
  box-shadow: 6px 6px var(--theme-palette-color-8) !important;
}

/* Same but avoid some styling elsewhere */

body:not(.single-post) .discourse-comments-title {
  display: none;
}

body:not(.single-post) li.comment .comment-author .fn a {
  color: var(--theme-palette-color-4);
  font-size: 1.1em;
}

body:not(.single-post) li.comment .comment-author .fn a:hover {
  color: var(--theme-palette-color-4);
}
