/* Paper's comment section stays outside article typography. */
#comments#comments.paper-comments {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft, rgb(0 0 0 / 12%));
  color-scheme: light;
  font-family: var(--font-body, sans-serif);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.dark #comments#comments.paper-comments { color-scheme: dark; }

#comments#comments .paper-comments__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display, serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
}

#comments#comments .paper-comments__status {
  margin: 0 0 1rem;
  color: var(--meta);
  font-size: 0.875rem;
}

#comments#comments .paper-comments__retry {
  margin-bottom: 1.25rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

#tcomment#tcomment#tcomment {
  min-width: 0;
  --paper-comment-accent: #525252;
}

.dark #tcomment#tcomment#tcomment {
  --paper-comment-accent: #d4d4d4;
}

#tcomment#tcomment#tcomment .twikoo .tk-input__inner,
#tcomment#tcomment#tcomment .twikoo .tk-input-group__prepend,
#tcomment#tcomment#tcomment .twikoo .tk-input-group__append {
  border-color: var(--rule);
}

#tcomment#tcomment#tcomment .twikoo .tk-input__inner:focus {
  border-color: var(--paper-comment-accent);
}

#tcomment#tcomment#tcomment .twikoo .tk-textarea .tk-input__inner {
  min-height: 8rem;
}

#tcomment#tcomment#tcomment .twikoo .tk-button.tk-button--primary,
#tcomment#tcomment#tcomment .twikoo .tk-button.tk-button--primary:is(:hover, :focus, :active) {
  background: var(--paper-comment-accent);
  border-color: var(--paper-comment-accent);
  color: var(--bg, #faf8f1);
}

.dark #tcomment#tcomment#tcomment .twikoo .tk-button.tk-button--primary,
.dark #tcomment#tcomment#tcomment .twikoo .tk-button.tk-button--primary:is(:hover, :focus, :active) {
  color: #222;
}

#tcomment#tcomment#tcomment .twikoo .tk-button.tk-button--primary.is-disabled {
  opacity: 0.5;
}

#tcomment#tcomment#tcomment .twikoo .tk-comments-title {
  font-size: 1rem;
  line-height: 1.5;
}

#tcomment#tcomment#tcomment .twikoo .tk-avatar { border-radius: 50%; }

#tcomment#tcomment#tcomment .twikoo .tk-content {
  overflow-wrap: anywhere;
}

#tcomment#tcomment#tcomment .twikoo .tk-content p,
#tcomment#tcomment#tcomment .twikoo .tk-preview-container p {
  margin: 0.5em 0;
}

#tcomment#tcomment#tcomment .twikoo .tk-content img {
  max-width: 100%;
  height: auto;
}

#tcomment#tcomment#tcomment .OwO .OwO-body {
  background: var(--bg, #faf8f1);
  color: inherit;
}

#tcomment#tcomment#tcomment .OwO .OwO-body .OwO-items .OwO-item {
  margin: 0;
}

.dark #tcomment#tcomment#tcomment .OwO .OwO-body {
  background: #272727;
}

@media (max-width: 480px) {
  #comments#comments.paper-comments { margin-top: 2.5rem; }
}
