/*
 * comments.css — default minimal theme for the comment SDK (docs/04 §4.7.3).
 * Deliberately low-opinion: sites override via the CSS variables below or by
 * restyling the .cmt-* class hooks. Same data, different design (G2/FR-D1).
 */
.cmt-root {
  --cmt-gap: 0.75rem;
  --cmt-max-width: 48rem;
  --cmt-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --cmt-fg: #1a1a1a;
  --cmt-muted: #6b7280;
  --cmt-border: #e5e7eb;
  --cmt-anchor-color: #2563eb;
  --cmt-highlight: #fff3bf;

  font-family: var(--cmt-font);
  color: var(--cmt-fg);
  max-width: var(--cmt-max-width);
  line-height: 1.55;
}

.cmt-list {
  display: flex;
  flex-direction: column;
  gap: var(--cmt-gap);
}

.cmt-notice,
.cmt-form-notice {
  color: var(--cmt-muted);
  font-size: 0.9em;
  padding: 0.5em 0;
}

.cmt-form-error {
  color: #b91c1c;
}

.cmt {
  padding: var(--cmt-gap);
  border: 1px solid var(--cmt-border);
  border-radius: 6px;
}

.cmt-deleted {
  opacity: 0.6;
  font-style: italic;
}

.cmt-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  font-size: 0.85em;
  color: var(--cmt-muted);
  margin-bottom: 0.35em;
}

.cmt-name {
  font-weight: 600;
  color: var(--cmt-fg);
}

.cmt-body {
  white-space: pre-wrap;
  word-break: break-word;
  content-visibility: auto;
}

.cmt-anchor {
  color: var(--cmt-anchor-color);
  text-decoration: none;
}

.cmt-anchor:hover {
  text-decoration: underline;
}

.cmt-replies {
  margin-top: 0.4em;
  font-size: 0.85em;
  color: var(--cmt-muted);
}

.cmt-highlight {
  background: var(--cmt-highlight);
  transition: background 0.4s ease;
}

.cmt-sentinel {
  height: 1px;
}

/* Posting widget */
.cmt-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: var(--cmt-max-width, 48rem);
  font-family: var(--cmt-font, system-ui, sans-serif);
}

.cmt-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cmt-label {
  font-size: 0.8em;
  color: #6b7280;
}

.cmt-input {
  font: inherit;
  padding: 0.4em 0.5em;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

textarea.cmt-input {
  min-height: 5em;
  resize: vertical;
}

.cmt-submit {
  align-self: flex-start;
  font: inherit;
  padding: 0.45em 1.1em;
  border: 0;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

.cmt-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Honeypot: never shown to humans, never in the a11y tree. */
.cmt-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
