/* ── WorksheetGalaxy Comments ── */
.wg-comments-wrap {
  max-width: 860px;
  margin: 48px auto;
  padding: 0 24px 60px;
  font-family: 'DM Sans', 'Nunito', sans-serif;
}

.wg-comments-title {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1812;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e8e0d0;
}

/* ── Comment list ── */
.wg-comments-loading,
.wg-no-comments {
  color: #8a7a6a;
  font-size: .9rem;
  padding: 20px 0;
  font-style: italic;
}

.wg-comment {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #f0ebe0;
}
.wg-comment:last-child { border-bottom: none; }

.wg-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a7a7a, #2D1B69);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.wg-comment-body { flex: 1; }

.wg-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.wg-comment-name {
  font-weight: 700;
  font-size: .9rem;
  color: #1c1812;
}

.wg-comment-role {
  font-size: .75rem;
  background: #e4f4f4;
  color: #1a7a7a;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}

.wg-comment-date {
  font-size: .75rem;
  color: #8a7a6a;
  margin-left: auto;
}

.wg-comment-text {
  font-size: .92rem;
  color: #3a3228;
  line-height: 1.65;
}

/* ── Comment form ── */
.wg-comment-form {
  background: #fffdf7;
  border: 1.5px solid #e8e0d0;
  border-radius: 16px;
  padding: 28px;
  margin-top: 32px;
}

.wg-form-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1c1812;
  margin-bottom: 18px;
}

.wg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.wg-inp, .wg-ta {
  width: 100%;
  border: 1.5px solid #e8e0d0;
  border-radius: 10px;
  padding: 11px 14px;
  font-family: 'DM Sans', 'Nunito', sans-serif;
  font-size: .92rem;
  color: #1c1812;
  background: #fff;
  outline: none;
  transition: border .15s;
  box-sizing: border-box;
}
.wg-inp:focus, .wg-ta:focus { border-color: #1a7a7a; }
.wg-ta { resize: vertical; min-height: 100px; margin-bottom: 12px; }

.wg-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.wg-form-note {
  font-size: .78rem;
  color: #8a7a6a;
  font-weight: 500;
}

.wg-submit-btn {
  background: #1a7a7a;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 10px 24px;
  font-family: 'DM Sans', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: .15s;
}
.wg-submit-btn:hover { background: #145f5f; transform: translateY(-1px); }
.wg-submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.wg-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 600;
}
.wg-msg-success { background: #e6fff4; color: #1a7a4a; border: 1px solid #b0e8c8; }
.wg-msg-error   { background: #fff0f0; color: #c0392b; border: 1px solid #f0b0b0; }

@media(max-width: 600px) {
  .wg-form-row { grid-template-columns: 1fr; }
  .wg-form-footer { flex-direction: column; align-items: flex-start; }
}
