/* Modern native WordPress comments — standard editorial posts only. */

body.poweren-modern-article .pw-article-comments {
  --pw-comment-ink: #082d3c;
  --pw-comment-muted: #617b86;
  --pw-comment-line: #d8e8ed;
  --pw-comment-cyan: #08a9c8;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.poweren-modern-article .pw-comments,
body.poweren-modern-article .pw-comments * {
  box-sizing: border-box;
}

body.poweren-modern-article .pw-comments {
  width: 100%;
  color: var(--pw-comment-ink);
  direction: rtl;
  text-align: right;
}

body.poweren-modern-article .pw-comments__header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(18, 190, 219, .18);
  border-radius: 24px;
  background: linear-gradient(135deg, #063d4e, #052b3a);
  box-shadow: 0 18px 42px rgba(5, 43, 58, .13);
  color: #fff;
}

body.poweren-modern-article .pw-comments__header::after {
  position: absolute;
  bottom: -105px;
  left: -72px;
  width: 220px;
  height: 220px;
  border: 32px solid rgba(74, 220, 235, .08);
  border-radius: 50%;
  content: "";
}

body.poweren-modern-article .pw-comments__title-wrap,
body.poweren-modern-article .pw-comments__count {
  position: relative;
  z-index: 1;
}

body.poweren-modern-article .pw-comments__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #54d9eb;
  font-size: 10px;
  font-weight: 850;
}

body.poweren-modern-article .pw-comments__title {
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 2.2vw, 29px);
  font-weight: 950;
  line-height: 1.65;
}

body.poweren-modern-article .pw-comments__title-wrap>p {
  max-width: 680px;
  margin: 7px 0 0;
  color: #bad7de;
  font-size: 11px;
  line-height: 2;
}

body.poweren-modern-article .pw-comments__count {
  display: grid;
  place-items: center;
  min-width: 68px;
  height: 68px;
  padding-inline: 14px;
  border: 1px solid rgba(101, 225, 239, .3);
  border-radius: 20px;
  background: rgba(9, 105, 126, .34);
  color: #70ecf6;
  font-size: 25px;
  font-weight: 950;
}

body.poweren-modern-article .pw-comments__list,
body.poweren-modern-article .pw-comments__list .children {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

body.poweren-modern-article .pw-comments__list .children {
  position: relative;
  margin: 14px 36px 0 0;
  padding-right: 22px;
}

body.poweren-modern-article .pw-comments__list .children::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(#45d0df, #dcebed);
  content: "";
}

body.poweren-modern-article .pw-comment+ .pw-comment {
  margin-top: 14px;
}

body.poweren-modern-article .pw-comment__card {
  padding: 22px;
  border: 1px solid var(--pw-comment-line);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 55, 70, .055);
}

body.poweren-modern-article .pw-comments__list .children .pw-comment__card {
  background: linear-gradient(145deg, #f7fbfc, #fff);
}

body.poweren-modern-article .pw-comment__header {
  display: flex;
  gap: 13px;
  align-items: center;
}

body.poweren-modern-article .pw-comment__avatar {
  display: grid;
  flex: 0 0 54px;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #cee6eb;
  border-radius: 17px;
  background: #e9f7f9;
}

body.poweren-modern-article .pw-comment__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 13px;
  object-fit: cover;
}

body.poweren-modern-article .pw-comment__identity {
  min-width: 0;
}

body.poweren-modern-article .pw-comment__author-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

body.poweren-modern-article .pw-comment__author-line strong,
body.poweren-modern-article .pw-comment__author-line strong a {
  color: var(--pw-comment-ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

body.poweren-modern-article .pw-comment__author-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: #dff8f5;
  color: #087567;
  font-size: 8px;
  font-weight: 850;
}

body.poweren-modern-article .pw-comment__date {
  display: inline-flex;
  margin-top: 4px;
  color: #8298a0;
  font-size: 9px;
  text-decoration: none;
}

body.poweren-modern-article .pw-comment__content {
  margin-top: 16px;
  color: #385661;
  font-size: 12px;
  line-height: 2.15;
}

body.poweren-modern-article .pw-comment__content p {
  margin: 0 0 10px;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: justify;
}

body.poweren-modern-article .pw-comment__content p:last-child {
  margin-bottom: 0;
}

body.poweren-modern-article .pw-comment__moderation {
  margin: 15px 0 0;
  padding: 11px 13px;
  border: 1px solid #f1ddb4;
  border-radius: 12px;
  background: #fff9e9;
  color: #85621a;
  font-size: 10px;
  font-weight: 750;
}

body.poweren-modern-article .pw-comment__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid #e8f0f2;
}

body.poweren-modern-article .pw-comment__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #d4e7eb;
  border-radius: 10px;
  background: #f5fafb;
  color: #087e99;
  font-size: 9px;
  font-weight: 850;
  text-decoration: none;
}

body.poweren-modern-article .pw-comment__edit a {
  background: #fff;
  color: #6a8189;
}

body.poweren-modern-article .pw-comment__pingback {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px 18px;
  border: 1px dashed #cfe2e7;
  border-radius: 14px;
  background: #f6fafb;
  color: #526d78;
  font-size: 10px;
}

body.poweren-modern-article .pw-comments__pagination {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 15px 17px;
  border: 1px solid var(--pw-comment-line);
  border-radius: 18px;
  background: #fff;
}

body.poweren-modern-article .pw-comments__pagination-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #708992;
  font-size: 8px;
}

body.poweren-modern-article .pw-comments__pagination-copy strong {
  color: var(--pw-comment-ink);
  font-size: 12px;
}

body.poweren-modern-article .pw-comments__pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

body.poweren-modern-article .pw-comments__pagination-links .page-numbers {
  display: grid;
  place-items: center;
  min-width: 35px;
  min-height: 35px;
  padding: 6px 9px;
  border: 1px solid #d8e8ec;
  border-radius: 10px;
  background: #f7fbfc;
  color: #315461;
  font-size: 9px;
  font-weight: 850;
  text-decoration: none;
}

body.poweren-modern-article .pw-comments__pagination-links .current {
  border-color: #08a9c8;
  background: #08a9c8;
  color: #fff;
}

body.poweren-modern-article .pw-comments__closed {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
  padding: 17px;
  border: 1px solid #e1e9ec;
  border-radius: 16px;
  background: #f7f9fa;
}

body.poweren-modern-article .pw-comments__closed strong {
  font-size: 12px;
}

body.poweren-modern-article .pw-comments__closed span {
  color: #718890;
  font-size: 9px;
}

body.poweren-modern-article .pw-comments .comment-respond,
body.poweren-modern-article .pw-comment-form-wrap {
  width: 100%;
  margin-top: 22px;
  padding: 25px;
  border: 1px solid var(--pw-comment-line);
  border-radius: 23px;
  background: linear-gradient(145deg, #f2fafb, #fff 58%);
  box-shadow: 0 13px 34px rgba(7, 55, 70, .06);
}

body.poweren-modern-article .pw-comment .comment-respond {
  position: relative;
  margin: 15px 0 0;
  padding: 20px;
  border-color: #bfe1e7;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(16, 185, 215, .08), transparent 32%),
    #f7fcfd;
  box-shadow: inset -3px 0 0 #25bfd5, 0 10px 24px rgba(7, 55, 70, .055);
}

body.poweren-modern-article .pw-comment .comment-respond::before {
  position: absolute;
  top: -9px;
  right: 27px;
  width: 16px;
  height: 16px;
  border-top: 1px solid #bfe1e7;
  border-right: 1px solid #bfe1e7;
  background: #f7fcfd;
  content: "";
  transform: rotate(-45deg);
}

body.poweren-modern-article .pw-comment .comment-respond .pw-comment-form__heading {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dcecef;
}

body.poweren-modern-article .pw-comment .comment-respond .pw-comment-form__heading h3 {
  font-size: 18px;
}

body.poweren-modern-article .pw-comment .comment-respond .pw-comment-form textarea {
  min-height: 130px;
}

body.poweren-modern-article .pw-comment-form__heading {
  margin-bottom: 18px;
}

body.poweren-modern-article .pw-comment-form__heading>span {
  display: block;
  color: #0589a3;
  font-size: 9px;
  font-weight: 850;
}

body.poweren-modern-article .pw-comment-form__heading h3 {
  margin: 4px 0 0;
  color: var(--pw-comment-ink);
  font-size: 21px;
  font-weight: 950;
  line-height: 1.7;
}

body.poweren-modern-article .pw-comment-form__heading p {
  margin: 4px 0 0;
  color: #708993;
  font-size: 9px;
  line-height: 1.9;
}

body.poweren-modern-article #cancel-comment-reply-link {
  display: inline-flex;
  margin-right: 9px;
  padding: 5px 8px;
  border-radius: 9px;
  background: #fff0f0;
  color: #bf3a3a;
  font-size: 8px;
  font-weight: 850;
  text-decoration: none;
}

body.poweren-modern-article .pw-comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

body.poweren-modern-article .pw-comment-form>p {
  margin: 0;
}

body.poweren-modern-article .pw-comment-form .comment-notes,
body.poweren-modern-article .pw-comment-form .logged-in-as,
body.poweren-modern-article .pw-comment-form .must-log-in,
body.poweren-modern-article .pw-comment-form .comment-form-comment,
body.poweren-modern-article .pw-comment-form .comment-form-cookies-consent,
body.poweren-modern-article .pw-comment-form .form-submit {
  grid-column: 1 / -1;
}

body.poweren-modern-article .pw-comment-form .comment-notes,
body.poweren-modern-article .pw-comment-form .logged-in-as,
body.poweren-modern-article .pw-comment-form .must-log-in {
  padding: 11px 13px;
  border: 1px solid #d9e9ed;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  color: #657e87;
  font-size: 9px;
  line-height: 1.9;
}

body.poweren-modern-article .pw-comment-form .logged-in-as a,
body.poweren-modern-article .pw-comment-form .must-log-in a {
  color: #057f99;
  font-weight: 800;
}

body.poweren-modern-article .pw-comment-form label {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 7px;
  color: #244b59;
  font-size: 10px;
  font-weight: 850;
}

body.poweren-modern-article .pw-comment-form label>span:not(.required) {
  color: #84989f;
  font-size: 8px;
  font-weight: 650;
}

body.poweren-modern-article .pw-comment-form .required {
  color: #d44a4a;
}

body.poweren-modern-article .pw-comment-form input[type="text"],
body.poweren-modern-article .pw-comment-form input[type="email"],
body.poweren-modern-article .pw-comment-form input[type="url"],
body.poweren-modern-article .pw-comment-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #cfe2e7;
  border-radius: 13px;
  outline: 0;
  background: #fff;
  box-shadow: none;
  color: var(--pw-comment-ink);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.9;
  transition: border-color .18s ease, box-shadow .18s ease;
}

body.poweren-modern-article .pw-comment-form input[type="text"],
body.poweren-modern-article .pw-comment-form input[type="email"],
body.poweren-modern-article .pw-comment-form input[type="url"] {
  min-height: 48px;
}

body.poweren-modern-article .pw-comment-form textarea {
  min-height: 165px;
  resize: vertical;
}

body.poweren-modern-article .pw-comment-form input:focus,
body.poweren-modern-article .pw-comment-form textarea:focus {
  border-color: var(--pw-comment-cyan);
  box-shadow: 0 0 0 4px rgba(8, 169, 200, .11);
}

body.poweren-modern-article .pw-comment-form__hint {
  display: block;
  margin-top: 7px;
  color: #7d939b;
  font-size: 8px;
}

body.poweren-modern-article .pw-comment-form .comment-form-cookies-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 11px 13px;
  border-radius: 12px;
  background: #eef8f9;
}

body.poweren-modern-article .pw-comment-form .comment-form-cookies-consent input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--pw-comment-cyan);
}

body.poweren-modern-article .pw-comment-form .comment-form-cookies-consent label {
  margin: 0;
  color: #526e78;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.8;
}

/* Legacy iranwp-content.css hides .form-submit globally. Restore it only here. */
body.poweren-modern-article .pw-comments .pw-comment-form .form-submit {
  display: block !important;
  width: 100%;
  min-height: 50px;
}

body.poweren-modern-article .pw-comment-form__submit {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 50px;
  margin: 2px 0 0;
  padding: 11px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #08b8d6, #0789ad);
  box-shadow: 0 12px 25px rgba(5, 145, 178, .2);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
}

body.poweren-modern-article .pw-comments a:focus-visible,
body.poweren-modern-article .pw-comments button:focus-visible,
body.poweren-modern-article .pw-comments input:focus-visible,
body.poweren-modern-article .pw-comments textarea:focus-visible {
  outline: 3px solid rgba(8, 169, 200, .28);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  body.poweren-modern-article .pw-comment__actions a:hover,
  body.poweren-modern-article .pw-comments__pagination-links a:hover {
    border-color: #8ed5df;
    background: #e8f8fa;
  }

  body.poweren-modern-article .pw-comment-form__submit:hover {
    background: linear-gradient(135deg, #07aaca, #067b9c);
  }
}

@media (max-width: 640px) {
  body.poweren-modern-article .pw-comments__header {
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 13px;
    padding: 21px 18px;
    border-radius: 19px;
  }

  body.poweren-modern-article .pw-comments__count {
    min-width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 19px;
  }

  body.poweren-modern-article .pw-comments__title {
    font-size: 20px;
  }

  body.poweren-modern-article .pw-comments__list .children {
    margin-right: 10px;
    padding-right: 13px;
  }

  body.poweren-modern-article .pw-comment__card {
    padding: 17px;
    border-radius: 17px;
  }

  body.poweren-modern-article .pw-comment__avatar {
    flex-basis: 47px;
    width: 47px;
    height: 47px;
    border-radius: 14px;
  }

  body.poweren-modern-article .pw-comment__avatar img {
    border-radius: 10px;
  }

  body.poweren-modern-article .pw-comments__pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  body.poweren-modern-article .pw-comments .comment-respond,
  body.poweren-modern-article .pw-comment-form-wrap {
    padding: 19px 16px;
    border-radius: 19px;
  }

  body.poweren-modern-article .pw-comment .comment-respond {
    margin-top: 13px;
    padding: 16px 13px;
    border-radius: 15px;
  }

  body.poweren-modern-article .pw-comment-form {
    grid-template-columns: minmax(0, 1fr);
  }

  body.poweren-modern-article .pw-comment-form>p {
    grid-column: 1;
  }

  body.poweren-modern-article .pw-comment-form__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.poweren-modern-article .pw-comment-form input,
  body.poweren-modern-article .pw-comment-form textarea {
    transition: none;
  }
}
