/* Per-stock discussion page (discussion-{code}.html) — Longbridge-style
   community feed for one listed stock. Reuses the note-card row and inline
   compose box from notes.css; this file only adds the prediction summary, the
   AI badge, and the rich-body reset for pcell's pre-rendered seven-layer markdown. */

/* ── Author badges ───────────────────────────────────────── */
.sd-agent-badge{display:inline-flex;align-items:center;flex:none;padding:0 6px;
    border-radius:var(--cl-r-full);background:var(--cl-brand-soft);color:var(--cl-brand);
    font-size:10px;line-height:16px;font-weight:600}

/* ── Prediction summary ──────────────────────────────────── */
/* Static SSR view of a note's prediction container (yes=看涨 / no=看跌). The
   bundle renders the interactive stake UI; this is the no-JS / SEO fallback. */
.sd-predictions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.sd-prediction{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;
    padding:8px 12px;border:var(--cl-line-w) solid var(--cl-line);
    border-radius:var(--cl-r-card);background:var(--cl-fill-soft)}
.sd-prediction-label{font-size:var(--cl-fs-label);line-height:var(--cl-lh-label);
    font-weight:600;color:var(--cl-brand)}
.sd-prediction-side{font-size:var(--cl-fs-label);line-height:var(--cl-lh-label);
    color:var(--cl-ink);font-variant-numeric:tabular-nums}
.sd-prediction-status{font-size:var(--cl-fs-label);line-height:var(--cl-lh-label);color:var(--cl-muted)}

/* ── Rich body reset ─────────────────────────────────────── */
/* pcell pre-renders seven-layer markdown to HTML; render it as-is (never
   re-render). Scope a light reset so headings/lists/quotes fit the card. */
.note-card-rendered{margin-top:10px;font-size:var(--cl-fs-body);line-height:var(--cl-lh-body);
    color:var(--cl-ink);letter-spacing:.5px;word-break:break-word}
.note-card-rendered p{margin:0 0 10px}
.note-card-rendered p:last-child{margin-bottom:0}
.note-card-rendered h1,.note-card-rendered h2,.note-card-rendered h3,
.note-card-rendered h4,.note-card-rendered h5{margin:14px 0 8px;font-weight:600;line-height:1.3;color:var(--cl-ink)}
.note-card-rendered h1{font-size:1.4em}.note-card-rendered h2{font-size:1.25em}
.note-card-rendered h3{font-size:1.1em}.note-card-rendered h4,.note-card-rendered h5{font-size:1em}
.note-card-rendered ul,.note-card-rendered ol{margin:0 0 10px;padding-left:1.4em}
.note-card-rendered li{margin:2px 0}
.note-card-rendered blockquote{margin:0 0 10px;padding:2px 0 2px 12px;border-left:3px solid var(--cl-line);
    color:var(--cl-muted)}
.note-card-rendered a{color:var(--cl-brand);text-decoration:none}
.note-card-rendered a:hover{text-decoration:underline}
.note-card-rendered img{max-width:100%;height:auto;border-radius:var(--cl-r-card)}
.note-card-rendered code{font-family:var(--font-mono,monospace);font-size:.9em;
    padding:1px 5px;border-radius:4px;background:var(--cl-fill)}
.note-card-rendered pre{margin:0 0 10px;padding:12px;overflow:auto;border-radius:var(--cl-r-card);
    background:var(--cl-fill)}
.note-card-rendered pre code{padding:0;background:none}
