/* GamesAndApp comments — loaded only on singular pages that use comments. */
.ga-comments {
  margin-block-start: clamp(2.5rem, 6vw, 4.5rem);
}

.ga-comments__published {
  position: relative;
  overflow: hidden;
  border: 1px solid #c9ecd6;
  border-radius: 1.2rem;
  background:
    linear-gradient(rgba(21, 128, 61, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 128, 61, .035) 1px, transparent 1px),
    #eaf8ef;
  background-size: 2.5rem 2.5rem;
  padding: clamp(1rem, 3vw, 2rem);
}

.ga-comments__published::before {
  position: absolute;
  width: 4rem;
  height: .22rem;
  background: #2ecc71;
  content: "";
  inset-block-start: 0;
  inset-inline-end: clamp(1rem, 3vw, 2rem);
}

.ga-comments__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin: 0 0 1.25rem;
  color: #132719;
  font-family: var(--f-head);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
}

.ga-comments__title > span {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid #9fe5b9;
  background: #f8fdf9;
  color: #15803d;
  clip-path: polygon(.45rem 0, 100% 0, 100% calc(100% - .45rem), calc(100% - .45rem) 100%, 0 100%, 0 .45rem);
}

.ga-comments__title-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.ga-comments__list,
.ga-comments__list .children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ga-comments__list > li + li {
  margin-block-start: .9rem;
}

.ga-comments__list > :not([hidden]) ~ :not([hidden]) {
  margin-block-start: .9rem;
  margin-block-end: 0;
}

.ga-comments__list .children {
  margin-block-start: .9rem;
  margin-inline-start: clamp(1rem, 5vw, 3.5rem);
}

.ga-comments__list .children > li + li {
  margin-block-start: .75rem;
}

.ga-comments__list .children > :not([hidden]) ~ :not([hidden]) {
  margin-block-start: .75rem;
  margin-block-end: 0;
}

.ga-comment {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: start;
  gap: .8rem;
}

.ga-comment__avatar {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border: 1px solid #2b6641;
  background: #0c1911;
  color: #62d88d;
  box-shadow: 0 .4rem 1rem rgba(19, 71, 38, .12);
  clip-path: polygon(.7rem 0, 100% 0, 100% calc(100% - .7rem), calc(100% - .7rem) 100%, 0 100%, 0 .7rem);
}

.ga-comment__avatar-icon {
  width: 1.65rem;
  height: 1.65rem;
}

.ga-comment__card {
  position: relative;
  min-width: 0;
  border: 1px solid #d4eadc;
  border-radius: .9rem;
  background: rgba(255, 255, 255, .94);
  padding: 1rem 1.1rem 1.05rem;
  box-shadow: 0 .55rem 1.6rem rgba(26, 81, 47, .07);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ga-comment__card::before {
  position: absolute;
  width: .22rem;
  height: 2.4rem;
  border-radius: 1rem;
  background: #2ecc71;
  content: "";
  inset-block-start: 1rem;
  inset-inline-start: 0;
  transform: translateX(-50%);
}

[dir="rtl"] .ga-comment__card::before {
  transform: translateX(50%);
}

.ga-comment__card:hover {
  border-color: #9fe5b9;
  box-shadow: 0 .75rem 2rem rgba(26, 81, 47, .1);
  transform: translateY(-1px);
}

.ga-comment__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
}

.ga-comment__author,
.ga-comment__author a {
  color: #132719;
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.ga-comment__author a:hover {
  color: #15803d;
}

.ga-comment__date a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #627067;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.ga-comment__date a:hover {
  color: #15803d;
}

.ga-comment__date-icon {
  width: .95rem;
  height: .95rem;
  flex: 0 0 auto;
}

.ga-comment__content {
  margin-block-start: .7rem;
  color: #334a3a;
  font-size: .95rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.ga-comment__content > :first-child {
  margin-block-start: 0;
}

.ga-comment__content > :last-child {
  margin-block-end: 0;
}

.ga-comment__reply {
  margin-block-start: .75rem;
}

.ga-comment__reply a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  border: 1px solid #bce9cc;
  padding: .28rem .75rem;
  color: #15803d;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.ga-comment__reply a:hover,
.ga-comment__reply a:focus-visible {
  border-color: #15803d;
  background: #15803d;
  color: #fff;
}

.ga-comment__reply a:active {
  transform: translateY(1px);
}

.ga-comment .comment-awaiting-moderation {
  margin: .7rem 0 0;
  border-inline-start: .2rem solid #2ecc71;
  background: #eaf8ef;
  padding: .5rem .7rem;
  color: #166534;
  font-size: .8rem;
}

.ga-comments #respond {
  margin-block-end: 2rem;
  border: 1px solid #d4eadc;
  border-radius: 1rem;
  background: #fff;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.ga-comments #respond .ga-h2 {
  margin-block-end: 1rem;
}

.ga-comments .comment-form textarea {
  min-height: 11rem;
  border-color: #bce9cc;
  background: #fafffb;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ga-comments .comment-form textarea:focus {
  border-color: #15803d;
  box-shadow: 0 0 0 .2rem rgba(46, 204, 113, .14);
  outline: 0;
}

.ga-comments .logged-in-as {
  color: #627067;
  font-size: .85rem;
}

.ga-comments .logged-in-as a {
  color: #15803d;
}

@media (max-width: 560px) {
  .ga-comments__published {
    border-radius: .9rem;
    padding: 1rem .8rem 1.1rem;
  }

  .ga-comment {
    grid-template-columns: 2.65rem minmax(0, 1fr);
    gap: .55rem;
  }

  .ga-comment__avatar {
    width: 2.65rem;
    height: 2.65rem;
  }

  .ga-comment__avatar-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .ga-comment__card {
    border-radius: .75rem;
    padding: .85rem;
  }

  .ga-comment__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .ga-comments__list .children {
    margin-inline-start: .75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ga-comment__card,
  .ga-comment__reply a {
    transition: none;
  }
}
