/* NOT WOKE SHOWS preview — shared comments (show pages + news stories).
 * Show pages already style the list and form in show.css; the .news-comments block
 * below copies those same rules (show.css comment list / composer) for news stories.
 * Shared additions (name field, honeypot, editor tools, status chips) apply to both.
 */

/* ---------- shared additions ---------- */
.nwsc-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px; overflow: hidden;
}
[data-staff-option][hidden] { display: none !important; }
.comment-form .nwsc-name {
  display: block;
  margin: 0 0 12px;
  color: #595959;
  font-size: 14px;
  font-weight: 500;
}
.nwsc-optional { font-weight: 400; color: #9a9a9a; }
.comment-form .nwsc-name input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 22rem;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: #111;
}
.comment-form .comment-status.is-ok { color: #111; }
.comment-ul { margin: 4px 0 0; padding-left: 1.25em; white-space: normal; }
.comment-ul li { margin: 2px 0; text-wrap: pretty; }
.nwsc-item .comment-body strong { font-weight: 600; }
.nwsc-status {
  display: inline-block;
  margin: 6px 0 0;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #111;
  color: #fff;
}
.nwsc-status-pending { background: var(--red); }
.nwsc-item.is-hidden .comment-body,
.nwsc-item.is-pending .comment-body { opacity: .6; }
.nwsc-tools-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111 !important;
}
.comment-form button.comment-post[disabled] { opacity: .6; cursor: progress; }

/* ---------- news stories: same look as the show-page comments ---------- */
.news-comments { margin-top: 48px; }
.news-comments h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.025em;
  color: #111;
  text-wrap: balance;
}
.news-comments .nwsc-count { color: #9a9a9a; font-weight: 500; font-size: 1rem; }
.news-comments .comment-list { margin: 24px 0 0; padding: 0; list-style: none; }
.news-comments .comment-list:empty { margin: 0; }
.news-comments .comment-list > li { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.news-comments .comment-list > li:first-child { margin-top: 0; }
.news-comments .comment-row { display: flex; align-items: flex-start; gap: 12px; }
.news-comments .comment-row > div { flex: 1; width: 100%; min-width: 0; }
.news-comments .comment-row img.round {
  flex-shrink: 0;
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--well);
  box-shadow: 0 0 0 1px var(--line);
}
.news-comments .comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.news-comments .comment-name { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.025em; color: #111; }
.news-comments .comment-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }
.news-comments .comment-date { margin: 0; font-size: 11px; color: #9a9a9a; }
.news-comments .comment-body { margin: 4px 0 0; color: #111; white-space: pre-wrap; text-wrap: pretty; overflow-wrap: anywhere; }
.news-comments .comment-ul { white-space: normal; }
.news-comments .member-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.news-comments .comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; font-size: 12px; }
.news-comments .comment-actions button {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--red); font-size: 12px; font-weight: 500;
}
.news-comments .nwsc-empty { margin: 16px 0 0; color: #595959; font-size: 14px; text-wrap: pretty; }
.news-comments .comment-form { position: relative; margin-top: 24px; }
.news-comments .fmt-bar { display: flex; gap: 6px; margin: 0 0 6px; }
.news-comments .fmt-bar button {
  padding: 4px 8px;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.news-comments .comment-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 7rem;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: #111;
  resize: vertical;
}
.news-comments .post-anon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  color: #595959;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.news-comments .post-anon input { width: 16px; height: 16px; accent-color: #111; }
.news-comments .comment-hint { margin: 12px 0 0; color: #595959; font-size: 12px; line-height: 1.45; text-wrap: pretty; }
.news-comments .comment-status { margin: 8px 0 0; color: var(--red); font-size: 13px; font-weight: 600; }
.news-comments .comment-post {
  display: inline-flex;
  align-items: center;
  height: 36px;
  margin-top: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.news-comments .comment-post:hover { filter: none; background: #000; color: #fff; }

/* ---------- robot check (self-hosted proof-of-work) — both page types ---------- */
.nwsc-captcha {
  margin: 12px 0 0;
  padding: 12px 14px;
  max-width: 22rem;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fafafa;
}
.nwsc-captcha[hidden] { display: none !important; }
.nwsc-captcha .nwsc-captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #111;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.nwsc-captcha-box input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #111;
  cursor: pointer;
}
.nwsc-captcha-box input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.nwsc-captcha-spin {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  border: 2px solid #ccc;
  border-top-color: #111;
  border-radius: 50%;
  animation: nwsc-spin .8s linear infinite;
}
.nwsc-captcha.is-busy .nwsc-captcha-spin { display: inline-block; }
@keyframes nwsc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nwsc-captcha-spin { animation: none; } }
.nwsc-captcha-state { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: #595959; text-wrap: pretty; }
.nwsc-captcha-state:empty { display: none; }
.nwsc-captcha.is-ok .nwsc-captcha-state { color: #111; }
.nwsc-captcha.is-error .nwsc-captcha-state { color: var(--red); }
.nwsc-captcha-note { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: #595959; text-wrap: pretty; }
