/**
 * LH Blockerville print stylesheet.
 *
 * Loaded as its own stylesheet (handle lh-blockerville-print) with
 * media="print", after style.css, so none of this applies on screen.
 *
 * Strips backgrounds, shadows, navigation, sidebar, footer and form elements,
 * and lays the content out as a single plain black-on-white column.
 */

@page {
	margin: 2cm 1.8cm;
}

/* Backgrounds, shadows and colour ---------------------------------------- */

*,
*::before,
*::after {
	background: transparent !important;
	box-shadow: none !important;
	text-shadow: none !important;
	color: #000 !important;
	transition: none !important;
}

html,
body {
	background: #fff !important;
	font-size: 12pt;
	line-height: 1.5;
}

/* Hidden: chrome, menus, sidebar, footer --------------------------------- */

#wpadminbar,
pwa-install,
.skip-link,
.header .cover,
.header-search-block,
.navigation,
.mobile-navigation,
.nav-toggle,
.search-toggle,
.wp-block-navigation,
.wp-block-breadcrumbs,
.sidebar,
.footer,
.credits,
.tothetop,
.archive-nav,
.wp-block-query-pagination,
.post-nav,
.author-links,
.post-edit-link,
.sticky-post,
.flex-direction-nav,
.comment-actions,
.comment-actions-below,
.comment-nav-below,
.comment.bypostauthor::after,
.post-author::before,
.post-author::after,
.post .post-header::before,
.post .post-header::after,
.page .post-header::before,
.page .post-header::after,
.single .post-meta-container::after {
	display: none !important;
}

/* Hidden: forms and form elements ---------------------------------------- */

form,
fieldset,
input,
select,
textarea,
button,
.comment-respond,
.searchform,
.search-form,
.wp-block-search,
.wp-block-file__button {
	display: none !important;
}

/* Layout: one full-width column ------------------------------------------ */

.section,
.wrapper.section,
.section.header {
	padding: 0 !important;
}

.section-inner,
.section-inner.content,
.section-inner.wide,
.section-inner.thin,
body.single .content,
body.single .content.center,
.content {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
}

.fleft,
.fright {
	float: none !important;
}

/* Header: keep the site name as plain text ------------------------------- */

.header {
	background-image: none !important;
	margin-bottom: 1.5em;
	padding-bottom: 0.5em !important;
	border-bottom: 1pt solid #000;
}

.blog-title,
.blog-logo,
.blog-description {
	text-align: left;
}

.blog-title {
	font-size: 16pt;
}

.blog-description {
	margin-top: 0.3em;
	font-size: 11pt;
}

.header .logo img {
	max-height: 2cm;
}

/* Posts and post cards --------------------------------------------------- */

.posts,
.posts .wp-block-post-template {
	display: block !important;
}

.posts .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.posts .wp-block-post-template > li {
	grid-row-end: auto !important;
}

.post-container {
	margin-bottom: 1.5em;
}

.hentry,
.post,
.posts .page,
.single {
	border-radius: 0;
	overflow: visible;
}

.posts .post,
.posts .page {
	border-bottom: 1pt solid #999;
	padding-bottom: 1em;
}

.post-header,
.post-excerpt,
.single .post-content,
.post-quote,
.post-link,
.content .comments {
	padding: 0 !important;
	border: none !important;
}

.post-header {
	margin-bottom: 1em;
}

.single .post-title {
	font-size: 22pt;
}

.featured-media a:hover img {
	transform: none !important;
	opacity: 1 !important;
}

.featured-media {
	margin-bottom: 1em;
}

.media-caption {
	margin: 0 !important;
	border: none !important;
}

.posts .post-meta {
	padding: 0 !important;
}

.posts .post-meta a {
	padding-left: 0 !important;
	background-image: none !important;
}

/* Single post meta: author and dates as plain text ----------------------- */

.post-meta-container {
	margin-top: 1.5em;
	padding-top: 0.75em;
	border-top: 1pt solid #000;
}

.post-author,
.single .post-meta {
	width: auto !important;
	float: none !important;
	padding: 0 !important;
}

.post-author-content {
	margin-left: 0 !important;
}

.post-author h4 {
	margin-bottom: 0.3em;
}

.single .post-meta p,
.single .post-meta > a {
	padding-left: 0 !important;
	margin-top: 0.3em;
	background-image: none !important;
}

/* Post content ----------------------------------------------------------- */

.post-content a,
.comment-content a {
	text-decoration: underline;
}

.post-content a[href^="http"]:not(:has(img))::after {
	content: " (" attr(href) ")";
	font-size: 0.85em;
	word-break: break-all;
}

.post-content pre,
.post-content code,
.post-content kbd,
.post-content address,
.post-content .wp-block-file {
	border: 1pt solid #999;
}

.post-content .alignfull {
	margin-left: 0 !important;
	width: auto !important;
	max-width: 100% !important;
}

.post-content table tbody > tr > td,
.post-content th {
	border-bottom: 1pt solid #999;
}

/* Comments: keep the thread, drop the chrome ----------------------------- */

.comment-inner {
	margin-left: 0 !important;
	padding: 0 0 0 1em !important;
	border-left: 2pt solid #ccc;
}

.comment-inner::after,
.comment .avatar {
	display: none !important;
}

/* Page breaks ------------------------------------------------------------ */

h1, h2, h3, h4, h5, h6,
.post-title {
	break-after: avoid;
	page-break-after: avoid;
}

img,
figure,
pre,
blockquote,
table,
tr,
.comment {
	break-inside: avoid;
	page-break-inside: avoid;
}

p {
	orphans: 3;
	widows: 3;
}
