/* Native WordPress comments, scoped above both the theme and the design reset. */
#ntd-app .ntd-comments {
  color: var(--tn-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

#ntd-app .ntd-comments :is(.comments-area, #comments, .comment-respond, .comment-form) {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

#ntd-app .ntd-comments :is(.comments-title, .comment-reply-title) {
  margin: 0 0 24px;
  color: var(--tn-ink);
  font-family: inherit;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
}

#ntd-app .ntd-comments .comment-respond {
  margin-block: 32px 0;
  padding: 32px;
  border: 1px solid var(--tn-stone);
  border-top: 3px solid var(--tn-red);
  border-radius: 8px;
  background: var(--tn-paper);
}

#ntd-app .ntd-comments :is(.comments-area, #comments) > .comment-respond:first-child,
#ntd-app .ntd-comments > .comment-respond:first-child {
  margin-top: 0;
}

#ntd-app .ntd-comments .comment-reply-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 16px;
}

#ntd-app .ntd-comments .comment-reply-title small {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

#ntd-app .ntd-comments .comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-block: 0;
  padding: 0;
}

#ntd-app .ntd-comments .comment-form > * {
  grid-column: 1 / -1;
  min-width: 0;
}

#ntd-app .ntd-comments .comment-form > p {
  margin: 0;
  padding: 0;
}

#ntd-app .ntd-comments .comment-form label {
  display: block;
  float: none;
  margin: 0 0 10px;
  padding: 0;
  color: var(--tn-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

#ntd-app .ntd-comments .comment-form :is(.required, .required-field-message .required) {
  color: var(--tn-red-hover);
}

#ntd-app .ntd-comments .comment-form :is(.comment-notes, .logged-in-as, .must-log-in) {
  color: var(--tn-ink-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

#ntd-app .ntd-comments .comment-form :is(input:not([type]), input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], textarea, select) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid #8b8d88;
  border-color: color-mix(in srgb, var(--tn-ink) 40%, var(--tn-stone));
  border-radius: 5px;
  background: var(--tn-white);
  color: var(--tn-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#ntd-app .ntd-comments .comment-form textarea {
  height: 190px;
  min-height: 160px;
  resize: vertical;
}

#ntd-app .ntd-comments .comment-form :is(input, textarea)::placeholder {
  color: var(--tn-ink-muted);
  opacity: 0.8;
}

#ntd-app .ntd-comments .comment-form :is(input:not([type="hidden"]), textarea, select):focus-visible {
  border-color: var(--tn-red);
  outline: 2px solid var(--tn-red);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tn-red) 10%, transparent);
}

#ntd-app .ntd-comments .comment-form .comment-form-cookies-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

#ntd-app .ntd-comments .comment-form .comment-form-cookies-consent input[type="checkbox"] {
  appearance: auto;
  box-sizing: border-box;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 4px 0 0;
  padding: 0;
  accent-color: var(--tn-red);
  cursor: pointer;
}

#ntd-app .ntd-comments .comment-form .comment-form-cookies-consent label {
  margin: 0;
  color: var(--tn-ink-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  cursor: pointer;
}

#ntd-app .ntd-comments .comment-form .form-submit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

#ntd-app .ntd-comments .comment-form :is(input[type="submit"], button[type="submit"]) {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 24px;
  border: 1px solid var(--tn-red);
  border-radius: 5px;
  background: var(--tn-red);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

#ntd-app .ntd-comments .comment-form :is(input[type="submit"], button[type="submit"]):hover {
  border-color: var(--tn-red-hover);
  background: var(--tn-red-hover);
  color: #fff;
}

#ntd-app .ntd-comments a {
  color: var(--tn-red-hover);
  text-underline-offset: 3px;
}

#ntd-app .ntd-comments a:hover {
  text-decoration: underline;
}

#ntd-app .ntd-comments :is(.comment-list, .commentlist, .children) {
  list-style: none;
  margin: 0;
  padding: 0;
}

#ntd-app .ntd-comments .children {
  margin-inline-start: 20px;
  padding-inline-start: 20px;
  border-inline-start: 2px solid var(--tn-stone);
}

#ntd-app .ntd-comments .comment-body {
  padding-block: 24px;
  border-bottom: 1px solid var(--tn-stone);
}

#ntd-app .ntd-comments .comment-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: var(--tn-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

#ntd-app .ntd-comments .comment-author .avatar {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}

#ntd-app .ntd-comments .comment-author .fn {
  font-style: normal;
}

#ntd-app .ntd-comments :is(.comment-meta, .comment-metadata) {
  margin-block: 8px 0;
  color: var(--tn-ink-muted);
  font-size: 12px;
  line-height: 1.8;
}

#ntd-app .ntd-comments .comment-body p {
  margin-block: 12px 0;
  font-size: 15px;
  line-height: 1.85;
}

#ntd-app .ntd-comments .reply {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
}

#ntd-app .ntd-comments .comment-awaiting-moderation {
  display: block;
  margin-top: 12px;
  padding: 12px 16px;
  border-inline-start: 3px solid var(--tn-red);
  background: var(--tn-sky);
  color: var(--tn-ink-muted);
  font-size: 14px;
  font-style: normal;
}

@media (min-width: 768px) {
  #ntd-app .ntd-comments .comment-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #ntd-app .ntd-comments .comment-form > :is(.comment-form-author, .comment-form-email, .comment-form-url) {
    grid-column: auto;
  }
}

@media (max-width: 639px) {
  #ntd-app .ntd-comments .comment-respond {
    padding: 22px 18px;
    border-radius: 6px;
  }

  #ntd-app .ntd-comments .comment-form {
    gap: 22px;
  }

  #ntd-app .ntd-comments .comment-form :is(input[type="submit"], button[type="submit"]) {
    width: 100%;
    padding-inline: 16px;
  }

  #ntd-app .ntd-comments .children {
    margin-inline-start: 8px;
    padding-inline-start: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ntd-app .ntd-comments .comment-form :is(input, textarea, select, button) {
    transition: none;
  }
}
