/* Limited BBCode elements share the body layout and never widen the viewport. */
.post-body .bbcode-image,.feed-reply-body .bbcode-image{display:block;max-width:100%;margin:.75rem 0;white-space:normal;overflow-wrap:anywhere}
.bbcode-image img{display:block;max-width:100%;height:auto;max-height:42rem;object-fit:contain;border-radius:.5rem;margin:.35rem 0}
.bbcode-load-image{display:inline-block;max-width:100%;padding:.6rem .85rem;border:1px solid #cbd5e1;border-radius:.5rem;background:#f3f6fb;color:#245a9b;font:inherit;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.bbcode-load-image:disabled{opacity:.7;cursor:wait}
.bbcode-quote{display:block;border-left:3px solid #cbd5e1;padding:.4rem .8rem;margin:.6rem 0;color:#526174}
.bbcode-code{display:block;max-width:100%;white-space:pre;overflow-x:auto;background:#f3f5f8;padding:.65rem;border-radius:.35rem}
.format-help{margin:.4rem 0 .7rem;color:#526174;font-size:.85rem}
.format-help summary{cursor:pointer}
.format-help code{overflow-wrap:anywhere;white-space:normal}

/* Image attribution is a quiet footnote; article links and body text retain their styles. */
.markdown-body .bbcode-image>.bbcode-original,.markdown-body .bbcode-caption,.markdown-body .bbcode-caption a{font-size:11px;color:#9aa4b2;font-weight:400;line-height:1.45;overflow-wrap:anywhere}
.markdown-body .bbcode-image>.bbcode-original:hover,.markdown-body .bbcode-caption a:hover{color:#6b7280}
.bbcode-image img{font-size:11px;color:#9aa4b2}

/* Image source metadata stays in the document but is not shown in the reading view. */
.markdown-body .bbcode-image>.bbcode-original,.markdown-body .bbcode-caption{display:none}
.markdown-body p:has(>.bbcode-caption:only-child){display:none}
.bbcode-image img{font-size:0;color:transparent}
