/* Investment Mistakes — compact comment thread. Shared between the single
   entry page and the grid's inline expand panel, so it needs its own
   variables rather than relying on either page's wrapper. Deliberately
   compact — no avatars-as-cards, no full-width WordPress default comment
   spacing — so a thread doesn't dominate the page/panel it's embedded in. */

.imc-thread {
	--imc-ink: #111827;
	--imc-muted: #6b7280;
	--imc-border: #e5e7eb;
	--imc-bg: #f9fafb;
	--imc-accent: #4f46e5;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--imc-ink);
	margin-top: 1.5rem;
}

.imc-thread-heading { font-size: 0.95rem; margin: 0 0 0.85rem; }

.imc-comment-form textarea {
	width: 100%;
	box-sizing: border-box;
	resize: vertical;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--imc-border);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 0.85rem;
}
.imc-comment-form-actions { display: flex; align-items: center; gap: 0.6rem; margin: 0.5rem 0 1.25rem; }
.imc-btn-small { padding: 0.4rem 0.9rem !important; font-size: 0.8rem !important; }
/* .imc-btn-primary's white text normally comes from --imc-accent-ink, a
   custom property defined on .imc-form — this button lives in the compact
   .imc-comment-form instead, which never inherits it, leaving the browser's
   default dark text. Overridden directly here rather than adding the
   .imc-form class (which would pull in that form's other, unrelated styles). */
.imc-comment-form-actions .imc-btn-primary { color: #fff; }
.imc-comment-cancel-reply {
	background: none;
	border: none;
	color: var(--imc-muted);
	font-size: 0.8rem;
	cursor: pointer;
	padding: 0;
}
.imc-comment-login-prompt { font-size: 0.85rem; color: var(--imc-muted); margin: 0 0 1.25rem; }
.imc-comment-login-prompt a { color: var(--imc-accent); }

.imc-comment-list,
.imc-comment-children { list-style: none; margin: 0; padding: 0; }
.imc-comment-children { margin-top: 0.75rem; padding-left: 1rem; border-left: 2px solid var(--imc-border); }

.imc-comment { margin-bottom: 0.9rem; }
.imc-comment-body { display: flex; gap: 0.6rem; }
/* Hidden for now — the Gravatar fallback was rendering at an inconsistent
   size (theme CSS fighting the img's own width/height). Revisit once real
   avatar handling (upload plugin or the client's own asset) is in place. */
.imc-comment-avatar { display: none; }
.imc-comment-main { flex: 1; min-width: 0; }
.imc-comment-meta { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.imc-comment-author { font-weight: 700; font-size: 0.82rem; }
.imc-comment-date { font-size: 0.75rem; color: var(--imc-muted); }
.imc-comment-text { font-size: 0.85rem; line-height: 1.5; margin-top: 0.15rem; word-wrap: break-word; }
.imc-comment-text p { margin: 0 0 0.5rem; }
.imc-comment-text p:last-child { margin-bottom: 0; }

.imc-comment-reply-btn {
	background: none;
	border: none;
	color: var(--imc-muted);
	font-weight: 600;
	font-size: 0.75rem;
	cursor: pointer;
	padding: 0;
	margin-top: 0.3rem;
}
.imc-comment-reply-btn:hover { color: var(--imc-accent); }
.imc-reply-form-slot:not(:empty) { margin-top: 0.6rem; }
.imc-reply-form-slot .imc-comment-form textarea { font-size: 0.82rem; }

.imc-load-more-comments {
	display: block;
	margin: 0.5rem 0 0;
	background: none;
	border: 1px solid var(--imc-border);
	color: var(--imc-accent);
	font-weight: 600;
	font-size: 0.8rem;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	cursor: pointer;
}
.imc-load-more-comments:hover { background: var(--imc-bg); }
.imc-load-more-comments:disabled { opacity: 0.6; cursor: default; }

.imc-comments-closed { font-size: 0.82rem; color: var(--imc-muted); margin-top: 0.75rem; }
