/* Comments (js/comments.js): at the bottom of a person's page, above their social links. From the
   Comments mockup: initials on the Gia gradient, a lavender box to write in, replies indented. */
.person-talk { grid-area: talk; padding-top: 18px; border-top: 1px solid var(--line, #e3e3e8); }
.cm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cm-head h2 { margin: 0; font-size: 20px; }
.cm-count { padding: 2px 9px; border-radius: 999px; background: #e9e6fd; color: #21167c; font-size: 13px; font-weight: 800; }

.cm-av { width: 36px; height: 36px; font-size: 12px; }
.cm-av.is-sm { width: 28px; height: 28px; font-size: 10px; }

.cm-compose { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; margin-bottom: 20px; }
.cm-compose textarea { box-sizing: border-box; width: 100%; min-height: 74px; padding: 12px 14px; border: 0; border-radius: 16px; resize: vertical;
  background: #f1eefe; color: #150e5e; font: 15px/1.4 var(--font-read); }
.cm-compose.is-reply { margin: 8px 0 4px; }
.cm-compose.is-reply textarea { min-height: 52px; }
.cm-compose textarea:focus { outline: 3px solid #a98bff; outline-offset: 0; background: #fff; }
.cm-acts { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cm-note { color: #6b6890; font-size: 12px; }
.cm-left { margin-left: auto; color: #6b6890; font-size: 12px; font-variant-numeric: tabular-nums; }
.cm-left:empty { display: none; }
.cm-post { margin-left: auto; padding: 8px 16px; border: 0; border-radius: 12px; background: #21167c; color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.cm-left:not(:empty) ~ .cm-post, .cm-link + .cm-post { margin-left: 0; }
.cm-post:disabled { background: #d3cdfb; color: #6b6890; cursor: default; }
.cm-link { padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: #4232d4; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cm-link:hover { background: #f1eefe; }

/* signed out: the box reads as one to write in; clicking it shows "Join the conversation" */
.cm-compose.is-out textarea { cursor: pointer; }
.cm-compose.is-out .cm-av { font-size: 16px; }
.cm-join { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: 16px;
  background: #fff; box-shadow: 0 0 0 2px #d3cdfb, 0 8px 20px rgba(38, 27, 143, .10); }
.cm-join > div { flex: 1 1 220px; }
.cm-join b { color: #150e5e; font-size: 15px; }
.cm-join p { margin: 2px 0 0; color: #6b6890; font-size: 13px; }
.cm-join .cm-post { margin-left: 0; }
.cm-join.is-pop { animation: cm-pop .4s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cm-pop { 0% { transform: scale(.96); opacity: .4; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cm-join.is-pop { animation: none; } }

.cm-list { display: grid; gap: 16px; }
.cm-none { margin: 0; color: var(--muted, #6b6890); font-size: 14px; }
.cm-c { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; }
.cm-c > :not(.cm-av) { grid-column: 2; }
.cm-c > .cm-av { grid-row: span 2; }
.cm-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; }
.cm-who b, .cm-who .cm-name { color: #150e5e; font-weight: 700; }
.cm-who a.cm-name { text-decoration: none; } .cm-who a.cm-name:hover { text-decoration: underline; }
.cm-note.is-bad { color: #b3261e; font-weight: 700; }
.cm-link.is-quiet { color: #8b88ad; font-weight: 600; }
.cm-link:disabled { cursor: default; }
.cm-who span, .cm-who time { color: #6b6890; font-size: 13px; }
.cm-text { margin: 0; font-size: 15px; line-height: 1.45; color: #1b1840; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-held { justify-self: start; margin: 4px 0 0; padding: 6px 10px; border-radius: 10px; background: #fff4d6; color: #7a5200; font-size: 12.5px; font-weight: 600; }
.cm-held.is-removed { background: #fde7e9; color: #9b1c22; } .cm-held.is-removed a { color: inherit; }
.is-removed > .cm-text { color: #8a87a6; text-decoration: line-through; }
.cm-row { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-left: -8px; }
.cm-replies { display: grid; gap: 12px; margin-top: 6px; padding-left: 14px; border-left: 2px solid #ece9fc; }
