/*!
 * Manpage — print stylesheet
 *
 * Manpages were born to be printed. We strip the chrome (top nav, theme
 * toggle, comments form), force a clean black-on-white palette and keep
 * the section headings hierarchy intact.
 */

@page {
	size: A4;
	margin: 1.8cm 1.6cm;
}

html, body {
	background: #fff !important;
	color: #000 !important;
	font-size: 11pt;
	line-height: 1.55;
}

.wrap {
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Hide the elements that only make sense on screen. */
.site-nav,
.theme-toggle,
.search-form,
.navigation.pagination,
.man-comment-form,
.lang-switcher,
.screen-reader-text {
	display: none !important;
}

.site-header {
	border-bottom: 0.5pt solid #000;
	margin-bottom: 8mm;
}
.site-title { font-weight: 700; }
.site-title .tagline { color: #555; }

.man-pageframe {
	color: #555;
	border-color: #000 !important;
	font-size: 9pt;
}

.man-section h2 {
	font-weight: 700;
	letter-spacing: 0.5pt;
	margin-top: 6mm;
	page-break-after: avoid;
}
.man-section .body { padding-left: 8mm; }

.man-list { padding-left: 8mm; }
.man-list li { grid-template-columns: 30mm 1fr; }

pre, code {
	background: #f3f3f3 !important;
	color: #000 !important;
	border-color: #ccc !important;
	page-break-inside: avoid;
}

.entry-row { border-color: #000 !important; }

a {
	color: #000 !important;
	text-decoration: underline;
	border-bottom: none !important;
}
/* Print the URL after external links so the reader can find them on paper. */
a[href^="http"]::after {
	content: " (" attr(href) ")";
	font-size: 9pt;
	color: #555;
}

.cursor { display: none !important; }
