/* ============================================================
   comments.css — on-brand static comments block
   Replaces the retired Disqus widget. Works full-width (blog/video
   posts) and inside the narrow span4 gallery sidebar (.disco).
   Brand: red #c1272d / dark #861b1f, off-white #fdfdfd,
   fonts My_Nevis (display) + My_PublicSans (body).
   ============================================================ */

.cnpx-comments {
	width: 100%;
	box-sizing: border-box;
	margin-top: 20px;
	padding: 18px 20px 14px;
	background: #fdfdfd;
	border: 1px solid #ead9da;
	border-top: 3px solid #c1272d;
	border-radius: 2px;
}
.cnpx-comments * { box-sizing: border-box; }

/* --- header bar: "N Comments" + brand seal --- */
.cnpx-comments-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 10px;
	margin-bottom: 14px;
	border-bottom: 1px solid #ececec;
}
.cnpx-comments-count {
	font-family: 'My_Nevis', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 15px;
	color: #c1272d;
}
.cnpx-comments-seal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1.5px solid #c1272d;
	color: #c1272d;
	font-size: 11px;
	line-height: 1;
	opacity: 0.85;
}

/* --- comment list --- */
.cnpx-comment-list { list-style: none; margin: 0; padding: 0; }
.cnpx-comment {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f1f1f1;
}
.cnpx-comment:last-child { border-bottom: 0; }

.cnpx-comment-avatar {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 22%;   /* rounded SQUARE (app-icon style), not a circle */
	border: 0.1px solid transparent; /* border radius aliasing fix */
	background: #c1272d; /* border radius aliasing fix */
	box-shadow: 0 0 0 1.5px #c1272d, 0 0 5px rgba(0, 0, 0, 0.18); /* border radius aliasing fix */
	object-fit: cover;
}
.cnpx-comment-main { flex: 1 1 auto; min-width: 0; }

.cnpx-comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 6px;
}
.cnpx-comment-author {
	font-family: 'My_PublicSans_Bold', sans-serif;
	color: #861b1f;
	font-size: 14px;
}
.cnpx-comment-badge {
	font-family: 'My_PublicSans', sans-serif;
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #fff;
	background: #c1272d;
	padding: 1px 6px;
	border-radius: 3px;
}
.cnpx-comment-time { color: #9a9a9a; font-size: 12px; }

.cnpx-comment-text {
	font-family: 'My_PublicSans', sans-serif;
	color: #333;
	font-size: 14px;
	line-height: 1.55;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.cnpx-comment-text p { margin: 0 0 10px; }
.cnpx-comment-text p:last-child { margin-bottom: 0; }
/* My_PublicSans ships regular-only; bold/italic are separate families, so
   point strong/em/link at the real faces instead of relying on faux styling. */
.cnpx-comment-text strong { font-family: 'My_PublicSans_Bold', sans-serif; font-weight: normal; }
.cnpx-comment-text em { font-family: 'My_PublicSans_Italic', sans-serif; font-style: normal; color: #555; }
.cnpx-comment-link { font-family: 'My_PublicSans_Bold', sans-serif; color: #c1272d; text-decoration: none; }
.cnpx-comment-link:hover { color: #861b1f; text-decoration: underline; }

/* --- empty + disabled note --- */
.cnpx-comments-empty {
	font-family: 'My_PublicSans', sans-serif;
	color: #9a9a9a;
	font-style: italic;
	font-size: 14px;
	margin: 6px 0 0;
}
.cnpx-comments-note {
	margin: 14px 0 0;
	padding-top: 10px;
	border-top: 1px dashed #e3e3e3;
	font-family: 'My_PublicSans', sans-serif;
	font-size: 12px;
	color: #b0b0b0;
	font-style: italic;
}

/* Narrow sidebar (span4 .disco): stack avatar above text below ~360px */
@media (max-width: 380px) {
	.cnpx-comment { flex-direction: column; gap: 8px; }
}

/* ============================================================
   Guest composer (logged-out state) — brand-styled placeholder.
   Same layout as the original Disqus composer, ChinesePixel skin.
   ============================================================ */
.cnpx-composer {
	border: 1px solid #ead9da;
	border-radius: 3px;
	padding: 14px;
	margin-bottom: 16px;
	background: #fff;
}
.cnpx-composer-row { display: flex; align-items: flex-start; gap: 12px; }
.cnpx-composer-avatar {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #861b1f;
	color: #fff;
	font-family: 'My_Nevis', sans-serif;
	font-size: 22px;
	line-height: 48px;
	text-align: center;
	border: 2px solid #c1272d;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.18);
}
.cnpx-composer-input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 48px;
	display: flex;
	align-items: center;
	padding: 0 14px;
	border: 1px solid #dcdcdc;
	border-radius: 22px;
	color: #9a9a9a;
	font-family: 'My_PublicSans', sans-serif;
	font-size: 14px;
	background: #fdfdfd;
}
.cnpx-composer-login {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0 60px;
}
.cnpx-composer-login-label,
.cnpx-composer-or {
	font-family: 'My_PublicSans', sans-serif;
	font-size: 10px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #b0b0b0;
}
.cnpx-composer-icons { display: inline-flex; gap: 6px; }
.cnpx-login-icon {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'My_PublicSans', sans-serif;
	font-size: 13px;
	font-weight: bold;
	color: #fff;
	line-height: 1;
	user-select: none;
}
.cnpx-login-icon.i-disqus    { background: #2e9fff; }
.cnpx-login-icon.i-facebook  { background: #1877f2; }
.cnpx-login-icon.i-x         { background: #000; }
.cnpx-login-icon.i-google    { background: #ea4335; }
.cnpx-login-icon.i-microsoft { background: #5e5e5e; }
.cnpx-login-icon.i-apple     { background: #111; }

@media (max-width: 480px) {
	.cnpx-composer-login { margin-left: 0; }
}
