/* Rendered Markdown (view-control A5) — styles the sanitised HTML on list/view
   pages. Theme-token aware with safe fallbacks. */
.pp-md-rendered > :first-child { margin-top: 0; }
.pp-md-rendered > :last-child { margin-bottom: 0; }
.pp-md-rendered h2, .pp-md-rendered h3, .pp-md-rendered h4 { line-height: 1.25; margin: 1.1em 0 .5em; }
.pp-md-rendered p { margin: 0 0 .8em; line-height: 1.6; }
.pp-md-rendered ul, .pp-md-rendered ol { margin: 0 0 .8em 1.3em; }
.pp-md-rendered li { margin: .2em 0; }
.pp-md-rendered pre { background: var(--cf-code-bg, #0f172a); color: #e5e7eb; padding: .8rem 1rem; border-radius: 8px; overflow: auto; margin: 0 0 .9em; }
.pp-md-rendered code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.pp-md-rendered :not(pre) > code { background: var(--cf-code-inline, rgba(99,102,241,.12)); padding: .1em .35em; border-radius: 4px; }
.pp-md-rendered blockquote { border-left: 3px solid var(--cf-primary, #5b54ec); margin: .6em 0 .9em; padding: .1rem 1rem; color: var(--cf-muted, #6b7280); }
.pp-md-rendered a { color: var(--cf-primary, #5b54ec); }
.pp-md-rendered img { max-width: 100%; height: auto; border-radius: 6px; }
.pp-md-rendered table { border-collapse: collapse; margin: 0 0 .9em; }
.pp-md-rendered th, .pp-md-rendered td { border: 1px solid var(--cf-border, #d3dbe9); padding: .35rem .6rem; }
