/**
 * VisualBlogger - Print stylesheet (technical articles).
 * Loaded with media="print".
 */

/* Hide interactive / non-content chrome. */
.vb-progress,
.vb-to-top,
.vb-copy-btn,
.vb-toc-toggle,
.wp-block-navigation,
.wp-block-social-links,
header.wp-block-template-part,
footer.wp-block-template-part,
.wp-block-post-comments-form,
#wpdiscuz_form_anchor,
.wpd-form {
	display: none !important;
}

/* Show full URLs after links so printed copies remain useful. */
.wp-block-post-content a[href^="http"]::after {
	content: " (" attr( href ) ")";
	font-size: 0.85em;
	word-break: break-all;
	color: #555;
}

/* Code blocks: light background, wrap long lines, keep together. */
.vb-code-snippet pre.wp-block-code,
pre.wp-block-code {
	background: #f4f4f4 !important;
	color: #000 !important;
	border: 1px solid #ccc;
	white-space: pre-wrap !important;
	word-break: break-word;
	page-break-inside: avoid;
}
.vb-code-lang {
	color: #555 !important;
	background: none !important;
}

/* Diagrams and images fit the page. */
.vb-mermaid svg,
img {
	max-width: 100% !important;
	page-break-inside: avoid;
}

/* Keep the TOC, but expanded. */
.vb-toc.is-collapsed .vb-toc-list {
	display: block !important;
}

/* Avoid orphaned headings. */
h1, h2, h3, h4 {
	page-break-after: avoid;
}
