.guide-comments {
  margin-top: clamp(32px, 6vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.guide-comments > h2 {
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  line-height: 1.08;
}

.guide-comments .guide-comments-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: .95rem;
}

.guide-comments .comment-list,
.guide-comments .children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-comments .comment-list {
  margin-top: 20px;
}

.guide-comments .comment-list > .comment {
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.guide-comments .comment-body {
  min-width: 0;
  padding-block: 10px;
}

.guide-comments .children {
  margin-inline-start: clamp(10px, 2vw, 20px);
  padding-inline-start: clamp(10px, 2vw, 20px);
  border-inline-start: 1px solid var(--line);
}

.guide-comments .comment-author {
  font-weight: 600;
}

.guide-comments .comment-metadata {
  color: var(--muted);
  font-size: .875rem;
}

.guide-comments .comment-content {
  margin-top: 8px;
}

.guide-comments .comment-content > * + * {
  margin-top: .75em;
}

.guide-comments .comment-content :is(pre, table) {
  max-width: 100%;
  overflow-x: auto;
}

.guide-comments .comment-awaiting-moderation {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
}

.guide-comments .comment-author a,
.guide-comments .comment-metadata a,
.guide-comments .reply a,
.guide-comments #cancel-comment-reply-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.guide-comments .reply a {
  font-size: .95rem;
  font-weight: 600;
}

.guide-comments .comment-respond {
  margin-top: 24px;
}

.guide-comments .comment-reply-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.guide-comments .comment-reply-title small {
  font: .9rem/1.5 var(--sans);
}

.guide-comments .comment-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.guide-comments .comment-form p {
  margin: 0;
}

.guide-comments .comment-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.guide-comments .comment-form input[type="text"],
.guide-comments .comment-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--muted);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: max(16px, 1rem);
  line-height: 1.5;
}

.guide-comments .comment-form textarea {
  min-height: 160px;
  max-width: 100%;
  resize: vertical;
  overflow-wrap: anywhere;
}

.guide-comments .comment-form textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.guide-comments .submit {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--green);
  border-radius: 5px;
  background: var(--green);
  color: var(--paper);
  font: 600 1rem/1.5 var(--sans);
  cursor: pointer;
}

.guide-comments .submit:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.guide-comments :is(a, input, textarea):focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.guide-comments .comments-pagination {
  margin-top: 20px;
}

.guide-comments .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guide-comments .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 4px;
}

.guide-comments .page-numbers.current {
  background: var(--soft);
  font-weight: 600;
}

.guide-comments .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
