/* Markdown body — global (not scoped) because v-html bypasses scoped styles.
   box-shadow trick: never serialized into clipboard HTML, so dark code blocks
   render correctly in the viewer but paste clean into Google Docs / Word. */

.md-body {
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.7;
    max-width: 100%;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}
.md-body p, .md-body li, .md-body td, .md-body th { color: inherit; }
.md-body h1, .md-body h2, .md-body h3, .md-body h4 {
    color: var(--text-bright, #fff);
    margin: 1.4em 0 0.4em;
    font-weight: 600;
}
.md-body h1 { font-size: 1.4em; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.md-body h2 { font-size: 1.15em; }
.md-body h3 { font-size: 1em; }
.md-body p { margin: 0.5em 0; }
.md-body a { color: var(--accent); }
.md-body code {
    background: transparent;
    box-shadow: inset 0 0 0 999px var(--code-bg, #1e2227);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
}
.md-body pre {
    background: transparent;
    box-shadow: inset 0 0 0 999px var(--code-bg, #1e2227);
    padding: 12px 16px;
    border-radius: 6px;
    overflow-x: auto;
    max-width: 100%;
    margin: 0.8em 0;
}
.md-body pre code { background: none; padding: 0; }
.md-body blockquote {
    border-left: 3px solid var(--accent);
    margin: 0.5em 0;
    padding: 2px 12px;
    color: var(--text-dim);
}
.md-body ul, .md-body ol { padding-left: 1.5em; margin: 0.4em 0; }
.md-body li { margin: 0.2em 0; }
.md-body table { border-collapse: collapse; width: 100%; margin: 0.8em 0; display: block; overflow-x: auto; }
.md-body th, .md-body td { border: 1px solid var(--border); padding: 4px 10px; }
.md-body th { background: var(--code-bg, #1e2227); color: var(--text-bright, #fff); }
.md-body hr { border: none; border-top: 1px solid var(--border); margin: 1.2em 0; }
