/* The Magna Bureau — The Feed: community section.
 *
 * v8c — MUSE FEED-TAB MIRROR (Boss directive, 2026-09-27): the stream is a
 * single column of clean white feed units — kicker, sans headline, sans
 * body, and a reaction row (thumbs up/down with counts, Discuss,
 * timestamp, info popover). Inline SVG icons, zero emojis. Site chrome
 * (header/nav/footer) untouched; this file carries ONLY feed-specific
 * styles.
 */

/* ---- page masthead (same language as newsroom/dossier pages) ---- */
.masthead-page { padding: 56px 0 8px; }
.masthead-page .kicker-row { margin-bottom: 18px; }
.masthead-page h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  color: #161616;
  margin: 0 0 12px;
}
.masthead-page .dek {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #3d3d3d;
  max-width: 46rem;
  margin: 0 0 8px;
}
.rule-red {
  border: 0;
  border-top: 3px solid #B80000;
  margin: 34px 0 0;
  max-width: 100%;
}

/* ---- composer: same composer-box language as the article comments ---- */
#feed-composer .composer-box {
  display: flex; gap: 14px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
#feed-composer .composer-avatar {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  background: #ececec; border: 1px solid #d9d9d9;
  color: #B80000;
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.05rem;
  overflow: hidden;
}
#feed-composer .composer-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
#feed-composer .signin-prompt b { color: #B80000; }

/* ---- the stream: one centered column, like the Feed tab ---- */
#feed-composer, #feed-list { max-width: 720px; }
#feed-stream { padding-top: 34px; }
#feed-stream .section-bar { max-width: 720px; }

/* ---- feed units ---- */
.mfeed-unit {
  position: relative;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 18px 20px 10px;
  margin: 0 0 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.mfeed-kicker {
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 8px;
}
.mfeed-kicker-bureau { color: #B80000; }
.mfeed-title {
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.35;
  color: #141414;
  margin: 0 0 8px;
  overflow-wrap: break-word;
}
.mfeed-title a { color: inherit; text-decoration: none; }
.mfeed-title a:hover { text-decoration: underline; }
.mfeed-body {
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #3c4043;
  margin: 0 0 4px;
  overflow-wrap: break-word;
}
.mfeed-wire-meta {
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  color: #9a9a9a;
  margin: 2px 0 0;
}
.mfeed-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: #777;
}
.mfeed-avatar {
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  background: #ececec;
  border: 1px solid #d9d9d9;
  color: #B80000;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700; font-size: 0.72rem;
  overflow: hidden;
}
.mfeed-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.mfeed-avatar-sm { width: 24px; height: 24px; font-size: 0.66rem; }
.mfeed-author { font-weight: 600; color: #4a4a4a; }
.mfeed-delete {
  margin-left: auto;
  background: none; border: 0;
  color: #a0a0a0; font-size: 0.76rem; cursor: pointer; padding: 4px;
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
}
.mfeed-delete:hover { color: #B80000; text-decoration: underline; }

/* ---- reaction row: thumbs | thumbs | Discuss .... time  info ---- */
.mfeed-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid #f1f1f1;
}
.mfeed-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0;
  color: #5f6368;
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem; font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.mfeed-btn svg { width: 20px; height: 20px; flex: none; }
.mfeed-btn:hover { background: #f4f4f4; color: #202124; }
.mfeed-btn:focus-visible { outline: 2px solid #B80000; outline-offset: 1px; }
.mfeed-btn[aria-pressed="true"].mfeed-up { color: #B80000; }
.mfeed-btn[aria-pressed="true"].mfeed-down { color: #202124; }
.mfeed-count { font-size: 0.82rem; color: #80868b; min-width: 1ch; text-align: left; }
.mfeed-btn[aria-pressed="true"] .mfeed-count { color: inherit; }
.mfeed-discuss span { font-size: 0.85rem; }
.mfeed-spacer { flex: 1 1 auto; }
.mfeed-time {
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: #80868b;
  white-space: nowrap;
  margin-right: 2px;
}
.mfeed-info { padding: 8px 6px; }

/* ---- info popover ---- */
.mfeed-info-pop {
  position: absolute;
  right: 12px;
  bottom: 56px;
  max-width: 240px;
  background: #202124;
  color: #fff;
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

/* ---- discuss thread ---- */
.mfeed-thread {
  border-top: 1px dashed #e6e6e6;
  margin-top: 6px;
  padding-top: 6px;
}
.mfeed-replies-empty {
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: #9a9a9a;
  padding: 8px 0;
}
.mfeed-thread-err {
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: #B80000;
  padding: 8px 0;
}
.mfeed-reply { display: flex; gap: 10px; padding: 10px 0; }
.mfeed-reply + .mfeed-reply { border-top: 1px solid #f4f4f4; }
.mfeed-reply-main { flex: 1; min-width: 0; }
.mfeed-reply-head {
  display: flex; align-items: baseline; gap: 8px;
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  margin-bottom: 2px;
}
.mfeed-reply-text {
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #3c4043;
  margin: 0;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}
.mfeed-reply-form { padding: 8px 0 4px; }
.mfeed-reply-form textarea {
  width: 100%;
  min-height: 64px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #202124;
  resize: vertical;
  box-sizing: border-box;
}
.mfeed-reply-form textarea:focus { outline: 2px solid #B80000; outline-offset: 0; border-color: #B80000; }
.mfeed-reply-post {
  margin-top: 6px;
  background: #B80000;
  color: #fff;
  font-weight: 600;
  padding: 8px 18px;
}
.mfeed-reply-post:hover { background: #9a0000; color: #fff; }
.mfeed-reply-signin { margin: 4px 0; color: #B80000; font-weight: 600; }
.mfeed-reply-signin:hover { background: #fdf0f0; color: #B80000; }

/* ---- stream states: never a blank page ---- */
.mfeed-status,
.mfeed-empty {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 30px 22px;
  margin: 0 0 14px;
  text-align: center;
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  color: #80868b;
  font-size: 0.92rem;
}
.mfeed-empty strong,
.mfeed-status strong {
  display: block;
  font-size: 1.05rem;
  color: #3c4043;
  margin-bottom: 6px;
}
.mfeed-empty span, .mfeed-status span { display: block; }

/* ---- mobile ---- */
@media (max-width: 640px) {
  .masthead-page { padding-top: 40px; }
  #feed-composer .composer-box { gap: 10px; }
  #feed-composer .composer-avatar { width: 40px; height: 40px; }
  #feed-stream { padding-top: 26px; }
  .mfeed-unit { padding: 14px 14px 8px; border-radius: 10px; }
  .mfeed-title { font-size: 1.05rem; }
  .mfeed-body { font-size: 0.9rem; }
  .mfeed-btn { padding: 8px 7px; }
  .mfeed-info-pop { right: 8px; left: 8px; max-width: none; }
}

/* ---- v10: moderation note + article interact section ---- */
.mfeed-mod-note {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  color: #9aa0a6;
  margin: 8px 0 0;
}
.mfeed-mod-note a { color: #B80000; text-decoration: none; }
.mfeed-mod-note a:hover { text-decoration: underline; }
.article-interact {
  max-width: 720px;
  margin: 3rem auto 1rem;
  padding: 0 16px;
}
.article-interact .mfeed-unit { margin: 0; }

/* ---- v11: homepage entry to the paper edition ---- */
.paper-entry {
  margin: 26px 0 10px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 22px;
}
.paper-entry-btn {
  display: inline-block;
  font-family: Rajdhani, "Inter", system-ui, sans-serif;
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
  color: #fff; background: #B80000;
  padding: 13px 30px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 18px rgba(184,0,0,0.28);
}
.paper-entry-btn:hover { background: #8f0000; }
.pe-note {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.86rem; color: #5f6368;
  margin: 0; max-width: 34rem; line-height: 1.6;
}
.pe-note a { color: #B80000; text-decoration: none; }
.pe-note a:hover { text-decoration: underline; }
.back-wire {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.85rem; margin: 18px 0 0;
}
.back-wire a { color: #B80000; text-decoration: none; }
.back-wire a:hover { text-decoration: underline; }
