/* Comments module styles: BEM-first, legacy-safe, a11y-color-aware. */

.comments-wrapper,
.comments {
  --comments-color-text: var(--a11y-color-text, #000000);
  --comments-color-bg: var(--a11y-color-bg, #ffffff);
  --comments-color-link: var(--a11y-color-text, var(--comments-color-text));
  --comments-color-border: var(--a11y-color-text, #000000);
  --comments-button-bg: var(--a11y-button-bg, #000000);
  --comments-button-text: var(--a11y-button-text, #ffffff);
  --comments-button-border: var(--a11y-button-border, #000000);
  background: transparent;
  color: var(--comments-color-text);
}

.membership-comments-wrapper,
.comments__membership,
.comments-wrapper .muted,
.comments__muted {
  font-size: var(--font-size-15);
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: 0.005em;
  text-align: left;
  color: var(--comments-color-text);
}

#comments {
  scroll-margin-top: 2rem;
}

.view-plans-link,
.comments__view-plans,
.comments__login-link {
  margin-top: 1.5rem;
  display: inline-block;
}

.muted .formname,
.comments-form__identity-name {
  font-family: var(--font-family-TimesNewRomanNarrow);
  font-size: var(--font-size-21);
}

.comments-form__field,
#kommentform label {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.comments-form__control,
#kommentform input[type="text"],
#kommentform input[type="email"],
#kommentform input[type="url"],
#kommentform textarea {
  width: 100%;
  padding: 2rem;
  border: 1px solid var(--comments-color-border);
  background: var(--comments-color-bg);
  color: var(--comments-color-text);
  font: inherit;
}

.comments-form__control--textarea,
#kommentform textarea {
  min-height: 25rem;
  resize: vertical;
  font-family: var(--font-family-TimesNewRoman);
  font-size: var(--font-size-20);
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: normal;
  text-align: left;
}

.comments-form__control:focus,
#kommentform input:focus,
#kommentform textarea:focus {
  outline: none;
}

.comments-form__control:focus-visible,
#kommentform input:focus-visible,
#kommentform textarea:focus-visible,
.comments-list a:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
}

/* Keep textarea focus ring keyboard-only for comment field. */
html[data-input-modality="pointer"] #kommentform #comment:focus,
html[data-input-modality="pointer"] #kommentform #comment:focus-visible {
  outline: none;
}

html[data-input-modality="keyboard"] #kommentform #comment:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
}

.comments-form__submit,
#kommentform input[type="submit"] {
  justify-self: start;
  padding: 0.8rem 3rem;
  border: 1px solid var(--comments-button-border);
  border-radius: 50%;
  background: var(--comments-button-bg);
  color: var(--comments-button-text);
  cursor: pointer;
  font-size: var(--font-size-20);
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: center;
  margin-top: 3rem;
}

.comments-form__privacy-row,
.komment-privacy-wrapper {
  margin-top: 0.6rem;
}

.comments-form__privacy,
#kommentform .komment-privacy {
  font-size: var(--font-size-15);
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.07;
  letter-spacing: normal;
  text-align: left;
  color: var(--comments-color-text);
}

/* Keep honeypot in DOM for bots, but out of visual flow for users. */
#kommentform .honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-feedback,
.comments-form__feedback {
  font-family: var(--font-family-TimesNewRoman);
  font-size: var(--font-size-20);
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: normal;
  text-align: left;
  color: var(--comments-color-text);
}

.comments-form__feedback {
  margin-bottom: 1.5rem;
}

.comments-form__feedback .msg,
#kommentform .form-feedback .msg {
  display: none;
}

.comments-form__feedback .msg.visible,
#kommentform .form-feedback .msg.visible {
  display: block;
}

.comments-form__feedback .msg.loader,
#kommentform .form-feedback .msg.loader {
  display: none;
  align-items: center;
  font-size: inherit;
  border: 1px solid var(--comments-color-border);
  padding: 1rem 2rem;
}

.comments-form__feedback .msg.loader.visible,
#kommentform .form-feedback .msg.loader.visible {
  display: block;
}

.comments-form__feedback .msg.loader svg,
#kommentform .form-feedback .msg.loader svg {
  display: none;
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  margin-right: 1rem;
}

.comments-form__reply-handle:empty {
  display: none;
}

.comments-form__reply-handle,
.comments-form__message.msg-success,
.comments-form__message.msg-error {
  border: 1px solid var(--comments-color-border);
  padding: 1rem 2rem;
  display: block;
}

.recent-comments-wrapper,
.comments__recent {
  margin-top: 6rem;
}

.recent-comments-wrapper h3,
.comments__recent-title {
  font-size: var(--font-size-20);
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: left;
  color: var(--comments-color-text);
}

.comments-list__empty {
  margin-top: 1.5rem;
}

.u-comment.h-cite {
  padding-bottom: 2.5rem;
}

.list-comments,
.comments-list,
.list-comments ul,
.comments-list ul,
.comments-list__children {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 1.5rem;
}

.list-comments>li,
.comments-list>li,
.comments-list__item {
  margin-top: 1.5rem;
}

.list-comments>li,
.list-comments ul>li,
.comments-list>li,
.comments-list ul>li,
.comments-list__item {
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid var(--comments-color-border);
}

.list-comments .h-card img,
.comments-list .h-card img {
  display: none;
}

.comments-list__author,
.comments-list__author-link,
.list-comments .p-author,
.list-comments .u-author,
.list-comments .p-content,
.list-comments footer,
.comments-list__content,
.comments-list__footer {
  font-family: var(--font-family-TimesNewRoman);
  font-size: var(--font-size-20);
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: normal;
  text-align: left;
  color: var(--comments-color-text);
  text-decoration: none;
}

.comments-list__footer,
.list-comments footer {
  margin-top: 7.5rem;
}

.membership-comments-wrapper a,
.comments__membership a,
.list-comments .kommentReply,
.comments-list__reply,
.comments-list__author-link {
  color: var(--comments-color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@media screen and (max-width: 50em) {
  /* 800px */

  .list-comments>li, .list-comments ul>li, .comments-list>li, .comments-list ul>li, .comments-list__item {
    padding: 2rem;
  }

  .comments-form__control, #kommentform input[type="text"], #kommentform input[type="email"], #kommentform input[type="url"], #kommentform textarea {
    padding: 2rem;
  }

}