/* The Comments tab on the character page (cardcomments.js). Colours come from the tokens in style.css. */
/* the comment a link pointed to (#comment-<id>): a short gold glow */
.cm-item.cm-target { outline: 2px solid var(--gold-soft); outline-offset: 4px; border-radius: 6px; transition: outline-color 1s; }
.cm { display: flex; flex-direction: column; gap: 12px; }
.cm-rating { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.cm-avg { display: flex; align-items: center; gap: 4px; }
.cm-stars { letter-spacing: 1px; color: var(--line-strong); white-space: nowrap; }
.cm-stars .on { color: var(--gold); }
.cm-mine { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cm-pick { display: inline-flex; }
body.vf .cm-star { background: none; border: none; padding: 2px 3px; font-size: 22px; line-height: 1; color: var(--line-strong); letter-spacing: 0; }
body.vf .cm-star.on, body.vf .cm-pick:hover .cm-star { color: var(--gold); }
body.vf .cm-pick .cm-star:hover ~ .cm-star { color: var(--line-strong); }
body.vf .cm-link { background: none; border: none; padding: 2px 0; margin-right: 14px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: none; }
body.vf .cm-link:hover { color: var(--gold); opacity: 1; }
body.vf .cm-link.danger:hover { color: var(--danger); }
.cm-owner-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cm-owner-row button { padding: 6px 10px !important; }
.cm-blocked { margin-top: 6px; }
.cm-blocked-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.cm-blocked-row button { padding: 5px 10px !important; }
.cm-editor textarea { width: 100%; margin: 0 !important; min-height: 70px; }
.cm-editor-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.cm-count { margin-right: auto; }
.cm-list { display: flex; flex-direction: column; }
.cm-item { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.cm-item.cm-reply { padding: 10px 0 0; margin-top: 10px; }
.cm-pic { flex: none; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--gold); font-weight: 600; }
.cm-reply .cm-pic { width: 28px; height: 28px; font-size: 13px; }
.cm-main { flex: 1; min-width: 0; }
.cm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cm-name { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.cm-name:hover { color: var(--gold); }
.pill.cm-creator { color: var(--gold); border-color: var(--gold-soft); }
.cm-body { margin: 4px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.cm-gone { margin: 4px 0; font-style: italic; }
.cm-replies { margin-top: 2px; }
.cm-replies:empty { display: none; }
.cm-empty { margin: 6px 0; }
.vf-rating .cm-stars { margin-right: 2px; }
@media (max-width: 760px) {
  .cm-item { gap: 8px; }
  .cm-reply .cm-pic, .cm-pic { width: 28px; height: 28px; font-size: 13px; }
  body.vf .cm-star { font-size: 26px; padding: 2px 5px; }
}

/* a rating without text: one thin line */
.cm-item.cm-thin { align-items: center; padding: 7px 0; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.cm-thin .cm-pic { width: 22px; height: 22px; font-size: 11px; }
body.vf .cm-thin-act { margin: 0 0 0 auto; }
/* the comment the creator pinned */
.cm-item.cm-pinned { border: 1px solid var(--gold-soft); border-radius: 8px; padding: 10px; margin: 6px 0; background: color-mix(in srgb, var(--gold) 6%, transparent); }
.cm-pinlabel { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }

/* a pinned reply at the top says who it answers */
.cm-list > .cm-item.cm-reply.cm-pinned { margin-top: 6px; }
.cm-replyto { margin-bottom: 2px; }
.cm-replyto a { color: var(--gold); text-decoration: none; }

/* Threads (owner 2026-11-28): replies nest under the comment they answer, INDENT_MAX (cardcomments.js) levels deep;
   deeper ones stay at that level with "↳ Reply to <name>". On phones each extra level indents less, with a thin
   line down the side so the thread stays easy to follow at 375px. */
@media (max-width: 760px) {
  .cm-reply .cm-replies { margin-left: -22px; padding-left: 8px; border-left: 2px solid var(--line); }
  .cm-reply .cm-pic, .cm-reply .cm-reply .cm-pic { width: 24px; height: 24px; font-size: 12px; }
}
