/* LiteComments - override the variables in your template's user.css */
.lc-comments {
  --lc-accent: var(--cassiopeia-color-primary, #224faa);
  --lc-text: inherit;
  --lc-muted: #6b7280;
  --lc-border: #e5e7eb;
  --lc-bg: #fff;
  --lc-bg-soft: #f8fafc;
  --lc-radius: .6rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lc-border);
}

.lc-title { font-size: 1.4rem; margin: 0 0 1.25rem; }
.lc-empty, .lc-notice { color: var(--lc-muted); }

.lc-list { list-style: none; margin: 0; padding: 0; }
.lc-children { margin-left: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--lc-border); }
@media (max-width: 576px) { .lc-children { margin-left: .5rem; padding-left: .6rem; } }

.lc-comment { margin: 0 0 1rem; }
.lc-card {
  display: flex; gap: .85rem; padding: 1rem;
  background: var(--lc-bg); border: 1px solid var(--lc-border); border-radius: var(--lc-radius);
  transition: box-shadow .3s, border-color .3s;
}
.lc-comment:target > .lc-card { border-color: var(--lc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lc-accent) 20%, transparent); }

.lc-avatar {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .9rem; color: #fff;
  background: hsl(var(--lc-hue, 210) 45% 45%);
  object-fit: cover;
}

.lc-main { flex: 1; min-width: 0; }
.lc-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin-bottom: .35rem; }
.lc-author { font-weight: 600; }
.lc-date { font-size: .85rem; color: var(--lc-muted); text-decoration: none; }
.lc-date:hover { text-decoration: underline; }
.lc-body { overflow-wrap: anywhere; line-height: 1.55; }

.lc-actions { display: flex; gap: .5rem; margin-top: .6rem; }
.lc-actions button {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .65rem; font-size: .85rem; line-height: 1.4;
  color: var(--lc-muted); background: transparent;
  border: 1px solid var(--lc-border); border-radius: 999px; cursor: pointer;
}
.lc-actions button:hover, .lc-actions button:focus-visible { color: var(--lc-accent); border-color: var(--lc-accent); }
.lc-like.is-liked { color: #d6336c; border-color: #d6336c; cursor: default; }

.lc-reply-slot:not(:empty) { margin-top: 1rem; }

.lc-form {
  padding: 1.25rem; margin-top: 1rem;
  background: var(--lc-bg-soft); border: 1px solid var(--lc-border); border-radius: var(--lc-radius);
}
.lc-form-title { font-size: 1.15rem; margin: 0 0 1rem; }
.lc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 576px) { .lc-row { grid-template-columns: 1fr; } }
.lc-field { margin-bottom: 1rem; }
.lc-field label { display: block; font-weight: 500; margin-bottom: .3rem; }
.lc-field input, .lc-field textarea {
  width: 100%; padding: .55rem .7rem; font: inherit;
  background: #fff; border: 1px solid #cbd5e1; border-radius: .4rem;
}
.lc-field input:focus, .lc-field textarea:focus { outline: 2px solid var(--lc-accent); outline-offset: 1px; border-color: transparent; }
.lc-field textarea { resize: vertical; min-height: 7rem; }
.lc-hint { display: block; margin-top: .25rem; font-size: .8rem; color: var(--lc-muted); }
.lc-check { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .75rem; font-size: .92rem; }
.lc-check input { margin-top: .25rem; }
.lc-logged-in { color: var(--lc-muted); }
.lc-replying { display: flex; align-items: center; gap: .5rem; margin: -.25rem 0 1rem; font-size: .92rem; }
.lc-cancel { background: none; border: 0; padding: 0; color: var(--lc-accent); text-decoration: underline; cursor: pointer; }
.lc-submit[disabled] { opacity: .6; }

.lc-alert { padding: .7rem .9rem; margin-bottom: 1rem; border-radius: .4rem; font-size: .95rem; }
.lc-alert-success { background: #ecfdf3; color: #065f46; border: 1px solid #a7f3d0; }
.lc-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Honeypot: hidden from people, visible to bots */
.lc-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
