.profile-comments {
  width: min(100% - 2rem, 720px);
  margin: clamp(3rem, 6vw, 5rem) auto 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line, #cfc8bb);
}

.profile-comments__heading {
  margin-bottom: 1rem;
}

.profile-comments__heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.profile-comments__form-panel {
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--line, #d5d0c6);
}

.profile-comments__form-panel h3 {
  margin: 0 0 .7rem;
  font-size: 1rem;
  line-height: 1.35;
}

.comment-form {
  display: grid;
  gap: .7rem;
}

.comment-form__fields {
  display: grid;
}

.comment-form label:not(.comment-form__trap) {
  display: grid;
  gap: .3rem;
}

.comment-form label > span:first-child {
  font-size: .76rem;
  font-weight: 700;
}

.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  border: 1px solid #b8b3a9;
  border-radius: 6px;
  background: white;
  color: inherit;
  font: inherit;
  font-size: .9rem;
}

.comment-form input[type="text"] {
  min-height: 40px;
  padding: .5rem .65rem;
}

.comment-form textarea {
  min-height: 84px;
  padding: .6rem .65rem;
  resize: vertical;
  line-height: 1.5;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  outline-offset: 2px;
}

.comment-form small {
  color: var(--muted, #5d625e);
  font-size: .7rem;
  line-height: 1.4;
}

.comment-form__privacy {
  margin: 0;
  font-size: .7rem;
}

.comment-form__privacy a {
  color: var(--muted, #5d625e);
  text-underline-offset: .18em;
}

.comment-form__trap {
  position: absolute !important;
  inset-inline-start: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.comment-form button[type="submit"] {
  justify-self: start;
  min-height: 38px;
  padding: .5rem .9rem;
  border: 1px solid var(--ink, #17241f);
  border-radius: 999px;
  background: var(--ink, #17241f);
  color: white;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.comment-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: .6;
}

.comment-form__status {
  min-height: 1.3em;
  margin: 0;
  color: var(--muted, #5d625e);
  font-size: .78rem;
}

.comment-form__status[data-kind="success"] { color: #216245; }
.comment-form__status[data-kind="error"] { color: #963d37; }

.profile-comments__list {
  display: grid;
  margin-top: 1rem;
}

.comments-count {
  margin: 0;
  padding-bottom: .55rem;
  color: var(--muted, #5d625e);
  font-size: .76rem;
  font-weight: 650;
}

.comments-message {
  margin: 0;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line, #d5d0c6);
  color: var(--muted, #5d625e);
  font-size: .88rem;
}

.profile-comment {
  padding: .9rem 0 1rem;
  border-top: 1px solid var(--line, #d5d0c6);
}

.profile-comment:last-child {
  border-bottom: 1px solid var(--line, #d5d0c6);
}

.profile-comment__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .5rem;
  margin: 0;
}

.profile-comment__meta strong {
  overflow-wrap: anywhere;
  font-size: .88rem;
  line-height: 1.35;
}

.profile-comment__meta time,
.profile-comment__meta span {
  color: var(--muted, #5d625e);
  font-size: .7rem;
}

.profile-comment__meta span {
  text-transform: uppercase;
}

.profile-comment__body {
  margin: .35rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .94rem;
  line-height: 1.55;
}

.profile-comment__translation {
  display: block;
  margin-top: .35rem;
  color: var(--muted, #5d625e);
  font-size: .7rem;
  font-style: italic;
  line-height: 1.4;
}

html[dir="rtl"] .profile-comment,
html[dir="rtl"] .profile-comments__heading,
html[dir="rtl"] .profile-comments__form-panel {
  text-align: right;
}

@media (max-width: 520px) {
  .profile-comments {
    width: min(100% - 1.25rem, 720px);
    margin-top: 2.5rem;
    padding-top: 1.15rem;
  }

  .profile-comments__heading {
    margin-bottom: .8rem;
  }

  .profile-comments__form-panel {
    padding-bottom: 1rem;
  }

  .profile-comment {
    padding-block: .8rem .9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-comments *,
  .profile-comments *::before,
  .profile-comments *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
