/* Article discussions share the site's Rubik typography and restrained palette. */
.bp-comments {
  margin-top: 48px;
  margin-bottom: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--bp-line);
  font-family: var(--bp-body);
  color: var(--bp-ink);
}
.bp-comments [hidden] { display: none !important; }
.bp-comments .bp-comments-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font: 500 32px/1.2 var(--bp-display);
  letter-spacing: -.035em;
}
.bp-comment-count {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 32px;
  min-height: 32px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #edf0eb;
  color: #506255;
  font-size: 14px;
  letter-spacing: 0;
}
.bp-comments-intro { margin: 0 0 24px; color: var(--bp-muted); font-size: 15px; line-height: 1.7; }
.bp-comments .bp-comment-list,
.bp-comments .bp-comment-list .children { list-style: none; padding: 0; margin: 0; }
.bp-comments .bp-comment-list li { padding: 0; border: 0; margin: 0 0 14px; }
.bp-comments .bp-comment-list .children { padding-left: 28px; margin-top: 14px; border-left: 1px solid #dfe4dc; }
.bp-comment-card {
  padding: 24px;
  border: 1px solid #dfe4dc;
  border-radius: 12px;
  background: #fff;
  scroll-margin-top: 120px;
}
.bp-comment-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 17px; }
.bp-comment-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 12px;
  background: #fbede5;
  color: #aa411f;
  font-size: 18px;
  font-weight: 500;
}
.bp-comment-identity { display: flex; flex: 1 1 120px; min-width: 0; flex-direction: column; gap: 3px; }
.bp-comment-name { font-size: 16px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.bp-comments .bp-comment-date { color: var(--bp-muted); font-size: 12px; line-height: 1.5; text-decoration: none; width: fit-content; }
.bp-comments .bp-comment-date:hover { color: var(--bp-ink); text-decoration: underline; }
.bp-comment-badge { padding: 5px 9px; border-radius: 5px; background: #faf0e7; color: #91502b; font-size: 11px; line-height: 1.4; font-weight: 450; }
.bp-comment-badge--author { background: #e9f0e9; color: #386650; }
.bp-comment-body { font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.bp-comment-body p { margin: 0 0 12px; }
.bp-comment-body > :last-child { margin-bottom: 0; }
.bp-comment-body strong, .bp-comment-preview-body strong { font-weight: 600; }
.bp-comment-body blockquote { margin: 16px 0; padding: 0 0 0 16px; border-left: 2px solid var(--bp-accent); }
.bp-comment-body pre { white-space: pre-wrap; }
.bp-comment-actions { margin-top: 12px; }
.bp-comments .comment-reply-link { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 12px; gap: 7px; border: 0; border-radius: 7px; background: #fbede5; color: #a63e1d; font-size: 13px; line-height: 1.4; font-weight: 500; text-decoration: none; transition: background-color .18s ease, color .18s ease; }
.bp-comments .comment-reply-link::before { content: '↳'; font-size: 17px; line-height: 1; }
.bp-comments .comment-reply-link::after { display: none; }
.bp-comments .comment-reply-link:hover { background: #f5dbcd; color: #833315; text-decoration: none; }
.bp-comment-pending { padding: 10px 12px; margin: 0 0 16px; background: #f6f3e8; border-radius: 6px; color: #746126; font-size: 13px; line-height: 1.6; }
.bp-comments .comment-respond { margin: 28px 0 0; padding: 26px; border: 1px solid #dfe4dc; border-radius: 12px; background: #f4f6f2; scroll-margin-top: 120px; }
.bp-comments .bp-comment-list .comment-respond { margin: 14px 0 20px; }
.bp-comments .comment-reply-title { margin: 0 0 8px; font: 500 25px/1.3 var(--bp-display); letter-spacing: -.03em; }
.bp-comments .comment-reply-title small { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.bp-comments #cancel-comment-reply-link { color: #a63e1d; }
.bp-comments .bp-comment-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; margin-top: 0; }
.bp-comments .bp-comment-form > * { grid-column: 1 / -1; min-width: 0; margin: 0; }
.bp-comments .bp-comment-form .comment-form-author,
.bp-comments .bp-comment-form .comment-form-email { grid-column: auto; }
.bp-comments .comment-notes, .bp-comments .logged-in-as { font-size: 13px; color: var(--bp-muted); line-height: 1.7; }
.bp-comments .bp-comment-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 450; line-height: 1.5; }
.bp-comments .required { color: #a63e1d; }
.bp-comments .bp-comment-form input:not([type="checkbox"]):not([type="submit"]):not([type="hidden"]),
.bp-comments .bp-comment-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 13px 14px;
  min-height: 48px;
  border: 1px solid #cbd2c8;
  border-radius: 8px;
  background: #fff;
  color: var(--bp-ink);
  font: 400 16px/1.6 var(--bp-body);
  box-shadow: none;
}
.bp-comments .bp-comment-form textarea { display: block; resize: vertical; min-height: 170px; }
.bp-comments .bp-comment-form textarea::placeholder { color: #858b83; opacity: 1; }
.bp-comment-toolbar { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.bp-comments .bp-comment-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid #d2d8ce;
  border-radius: 7px;
  background: #fff;
  color: #41493f;
  font: 500 16px/1.2 var(--bp-body);
  cursor: pointer;
}
.bp-comments .bp-comment-tool:hover, .bp-comments .bp-comment-tool[aria-expanded="true"] { border-color: #bdb6a9; background: #fbeee5; color: #a63e1d; }
.bp-comments .bp-comment-tool--preview { width: auto; margin-left: auto; padding-inline: 12px; font-size: 12px; }
.bp-comments .bp-comment-format-hint { margin: 8px 0 0; color: var(--bp-muted); font-size: 12px; line-height: 1.6; }
.bp-comment-preview { margin-top: 14px; padding: 16px; background: #fff; border: 1px dashed #c5cec0; border-radius: 8px; }
.bp-comment-preview-label { margin: 0 0 10px; color: #63705d; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; }
.bp-comment-preview-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.8; }
.bp-comment-preview-body.is-empty { color: var(--bp-muted); font-size: 14px; }
.bp-comments .bp-comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.bp-comments .comment-form-cookies-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #a63e1d; }
.bp-comments .comment-form-cookies-consent label { margin: 0; font-size: 12px; line-height: 1.8; font-weight: 400; color: var(--bp-muted); cursor: pointer; }
.bp-comments .bp-comment-form .bp-comment-privacy { font-size: 12px; color: var(--bp-muted); line-height: 1.8; }
.bp-comments .bp-comment-privacy a { color: #536a52; text-underline-offset: 3px; }
.bp-comments .bp-comment-form .submit { display: inline-flex; width: auto; min-height: 48px; padding: 13px 21px; border: 1px solid #b23b18; border-radius: 8px; background: #bc401c; color: #fff; font: 500 14px/1.4 var(--bp-body); letter-spacing: 0; cursor: pointer; }
.bp-comments .bp-comment-form .submit:hover { background: #a83516; }
.bp-comments .comments-navigation { margin: 22px 0; font-size: 14px; }
.bp-comments .nav-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.bp-comments :is(button, a, input, textarea):focus-visible { outline: 2px solid #a64a2a; outline-offset: 3px; }
.bp-comments .bp-comment-form :is(input, textarea):focus { border-color: #a66a43; }
@media (max-width: 680px) {
  .bp-comments { margin-top: 34px; padding-top: 26px; }
  .bp-comments .bp-comments-title { font-size: 27px; }
  .bp-comments-intro { font-size: 14px; margin-bottom: 20px; }
  .bp-comment-card { padding: 18px; }
  .bp-comment-head { gap: 10px; margin-bottom: 14px; }
  .bp-comment-badge { flex-basis: auto; margin-left: 52px; }
  .bp-comments .bp-comment-list .children { padding-left: 12px; }
  .bp-comments .comment-respond { padding: 19px; margin-top: 22px; }
  .bp-comments .comment-reply-title { font-size: 23px; }
  .bp-comments .bp-comment-form { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .bp-comments .bp-comment-form :is(.comment-form-author, .comment-form-email) { grid-column: 1 / -1; }
  .bp-comments .bp-comment-form .submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-comments *, .bp-comments *::before, .bp-comments *::after { transition: none !important; scroll-behavior: auto !important; }
}
