/* ===== ANONYMOUS COMMUNITY COMMENTS & 1-5 STAR RATINGS =====
 * Strictly uses :root tokens from styles/main.css, WCAG AA contrast,
 * 44px touch targets, RTL-safe honeypot, and prefers-reduced-motion.
 */
.dq-community {
  margin: 2rem auto 0;
  max-width: 54rem;
  padding: clamp(1rem, 3.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 0.85rem;
  background: var(--bg-card);
  color: var(--text-body);
  font-family: var(--font-ui);
}
.dq-cm-title {
  margin: 0 0 0.35rem;
  font: 700 clamp(1.25rem, 4vw, 1.6rem) / 1.25 var(--font-heading);
  color: var(--text);
}
.dq-cm-sub {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--soft);
  line-height: 1.5;
}
.dq-cm-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--bg-alt);
}
.dq-cm-rating-label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.dq-cm-stars { display: inline-flex; gap: 0.15rem; }
.dq-cm-star {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0.4rem;
}
.dq-cm-star.is-on, .dq-cm-star:hover { color: var(--gold); }
.dq-cm-rating-status { font-size: 0.88rem; color: var(--soft); }
.dq-cm-meta { font-size: 0.88rem; color: var(--soft); margin-bottom: 0.75rem; }
.dq-cm-notify {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--gold);
  border-radius: 0.55rem;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
}
.dq-cm-notify-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; }
.dq-cm-notify-title { font-weight: 700; color: var(--gold); font-size: 0.92rem; }
.dq-cm-notify-list { list-style: none; margin: 0.4rem 0 0; padding: 0; font-size: 0.88rem; }
.dq-cm-notify-item { padding: 0.25rem 0; color: var(--text-body); }
.dq-cm-list { list-style: none; margin: 0; padding: 0; }
.dq-cm-item { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.dq-cm-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.55rem; margin-bottom: 0.45rem; }
.dq-cm-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
}
.dq-cm-nick { font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.dq-cm-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}
.dq-cm-badge-dist { border: 1px solid var(--gold-dim); color: var(--gold); background: var(--bg-alt); }
.dq-cm-badge-verified { border: 1px solid var(--teal); color: var(--teal-bright); background: var(--bg-alt); }
.dq-cm-time { font-size: 0.8rem; color: var(--soft); }
.dq-cm-body { white-space: pre-wrap; word-break: break-word; line-height: 1.55; color: var(--text-body); }
.dq-cm-item-actions { margin-top: 0.25rem; }
.dq-cm-link-btn {
  background: transparent;
  border: 0;
  color: var(--gold);
  font: 600 0.88rem / 1.2 var(--font-ui);
  min-height: 44px;
  padding: 0 0.35rem;
  cursor: pointer;
  text-decoration: underline;
}
.dq-cm-replies {
  list-style: none;
  margin: 0.65rem 0 0 0.9rem;
  padding-inline-start: 0.85rem;
  border-inline-start: 2px solid var(--line);
}
.dq-cm-reply-item { padding: 0.65rem 0; }
.dq-cm-more {
  margin-top: 0.85rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 0.5rem;
  background: var(--bg-alt);
  color: var(--gold);
  font: 600 0.92rem var(--font-ui);
  cursor: pointer;
}
.dq-cm-form { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.65rem; max-width: 42rem; }
.dq-cm-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 12.5rem); gap: 0.6rem; }
@media (max-width: 34rem) { .dq-cm-row { grid-template-columns: 1fr; } }
.dq-cm-input, .dq-cm-select, .dq-cm-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--soft);
  border-radius: 0.5rem;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.dq-cm-textarea { min-height: 5.5rem; resize: vertical; }
.dq-cm-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.dq-cm-submit {
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 0.5rem;
  background: var(--gold);
  color: var(--bg);
  font: 700 0.95rem var(--font-ui);
  cursor: pointer;
}
.dq-cm-submit:hover { background: var(--gold-bright); }
.dq-cm-submit:disabled { opacity: 0.6; cursor: default; }
.dq-cm-error { color: var(--ember); font-size: 0.88rem; min-height: 1.2em; }
.dq-cm-hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.dq-community :focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dq-community * { transition: none !important; animation: none !important; } }
