@page {
	margin: 16mm 15mm 16mm;
}

.manohara-print-view {
	margin: 0;
	padding: 0;
	background: var(--wp--preset--color--base-sunk, #f2f0ec);
}

.manohara-print__sheet {
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: 210mm;
	margin: 2rem auto 6rem;
	padding: 0 0 2.5rem;
	background: var(--wp--preset--color--base, #fff);
	box-shadow: 0 1px 3px rgb(0 0 0 / 10%), 0 24px 60px -24px rgb(0 0 0 / 35%);

	border-collapse: collapse;
	table-layout: fixed;
}

.manohara-print__cell {
	padding: 0;
	vertical-align: top;
}

.manohara-print__masthead {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding: 1.4rem 2.2rem;

	background: var(--manohara-bar, var(--wp--preset--color--contrast, #1a1a22));
	color: var(--manohara-bar-ink, var(--wp--preset--color--base, #fff));
	print-color-adjust: exact;
	-webkit-print-color-adjust: exact;
}

.manohara-print__brand {
	display: flex;
	align-items: center;
}

.manohara-print__logo {
	display: block;
	inline-size: auto;
	block-size: auto;
	max-block-size: 34px;
	max-inline-size: 60mm;
}

.manohara-print__wordmark {
	font-family: var(--wp--preset--font-family--structure, sans-serif);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.manohara-print__tagline {
	margin: 0;
	font-family: var(--wp--preset--font-family--structure, sans-serif);
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	opacity: 0.75;
}

.manohara-print__title,
.manohara-print__standfirst,
.manohara-print__byline,
.manohara-print__featured,
.manohara-print__content,
.manohara-print__colophon {
	margin-inline: auto;
	max-inline-size: 42rem;
	padding-inline: 2.2rem;
}

.manohara-print__title {
	margin-block: 2rem 0;
	color: var(--wp--preset--color--contrast, #111);
	font-family: var(--wp--preset--font-family--reading, serif);
	font-size: 2.1rem;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
	hyphens: auto;
	overflow-wrap: break-word;
}

.manohara-print__standfirst {
	margin-block: 0.75rem 0;
	color: var(--wp--preset--color--contrast-muted, #555);
	font-family: var(--wp--preset--font-family--reading, serif);
	font-size: 1.05rem;
	font-style: italic;
	line-height: 1.5;
}

.manohara-print__byline {
	margin-block: 1rem 0;
	padding-block: 0.6rem;
	border-block: 1px solid var(--wp--preset--color--rule, #ddd);
	color: var(--wp--preset--color--contrast-muted, #555);
	font-family: var(--wp--preset--font-family--structure, sans-serif);
	font-size: 0.75rem;
}

.manohara-print__dot {
	opacity: 0.6;
}

.manohara-print__featured {
	margin-block: 1.5rem 0;
}

.manohara-print__featured img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	border-radius: var(--wp--custom--radius--md, 8px);
}

.manohara-print__content {
	margin-block-start: 1.5rem;
	color: var(--wp--preset--color--contrast, #111);
	font-family: var(--wp--preset--font-family--reading, serif);
	line-height: 1.6;
}

.manohara-print__content > * {
	margin-block: 1em 0;
}

.manohara-print__content > :first-child {
	margin-block-start: 0;
}

.manohara-print__content :is(h2, h3, h4, h5, h6) {
	font-family: var(--wp--preset--font-family--structure, sans-serif);
	line-height: 1.25;
	break-after: avoid;
	page-break-after: avoid;
}

.manohara-print__content h2 {
	margin-block-start: 1.8em;
	font-size: 1.35rem;
}

.manohara-print__content h3 {
	margin-block-start: 1.5em;
	font-size: 1.1rem;
}

.manohara-print__content img {
	max-inline-size: 100%;
	block-size: auto;
}

.manohara-print__content :is(figure, table, pre, blockquote) {
	break-inside: avoid;
	page-break-inside: avoid;
}

.manohara-print__content :is(p, li, blockquote) {
	orphans: 3;
	widows: 3;
}

.manohara-print__content .is-style-manohara-marginalia {
	float: none;
	inline-size: auto;
	margin: 1.2em 0 1.2em 1.5em;
	padding-inline-start: 1em;
	border-inline-start: 2px solid var(--wp--preset--color--accent, #666);
	font-size: 0.85em;
}

.manohara-print__content .wp-block-table {
	overflow: visible;
}

.manohara-print__content table {
	inline-size: 100%;
	border-collapse: collapse;
	font-size: 0.85em;
}

.manohara-print__content :is(th, td) {
	padding: 0.4em 0.6em;
	border: 1px solid var(--wp--preset--color--rule, #ddd);
	text-align: start;
}

.manohara-print__content thead th {
	background: var(--wp--preset--color--base-sunk, #f2f0ec);
	print-color-adjust: exact;
	-webkit-print-color-adjust: exact;
}

.manohara-print__colophon {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	margin-block-start: 2.5rem;
	padding-block-start: 1.2rem;
	border-block-start: 2px solid var(--wp--preset--color--contrast, #111);
	break-inside: avoid;
	page-break-inside: avoid;
	font-family: var(--wp--preset--font-family--structure, sans-serif);
	font-size: 0.72rem;
	color: var(--wp--preset--color--contrast-muted, #555);
}

.manohara-print__colophon-text {
	min-inline-size: 0;
}

.manohara-print__colophon p {
	margin: 0.2rem 0 0;
}

.manohara-print__footlogo {
	display: block;
	inline-size: auto;
	block-size: auto;
	max-block-size: 26px;
	max-inline-size: 45mm;
	margin-block-end: 0.5rem;
}

.manohara-print__source {
	color: var(--wp--preset--color--contrast, #111);
	font-weight: 600;
}

.manohara-print__address a {
	color: var(--wp--preset--color--accent, #333);
	overflow-wrap: anywhere;
	text-decoration: none;
}

.manohara-print__qr {
	flex: 0 0 auto;
}

.manohara-print__qr svg {
	display: block;
	print-color-adjust: exact;
	-webkit-print-color-adjust: exact;
}

.manohara-print__bar {
	position: fixed;
	inset-block-end: 0;
	inset-inline: 0;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	padding: 0.9rem 1.25rem;
	background: var(--wp--preset--color--contrast, #1a1a22);
	color: var(--wp--preset--color--base, #fff);
	font-family: var(--wp--preset--font-family--structure, sans-serif);
	font-size: 0.8rem;
}

.manohara-print__hint {
	margin: 0;
	opacity: 0.8;
}

.manohara-print__bar-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
}

.manohara-print__button {
	min-block-size: 44px;
	padding: 0.5rem 1.2rem;
	border: 0;
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: var(--wp--preset--color--accent-surface, #fff);
	color: var(--wp--preset--color--contrast, #111);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
}

.manohara-print__back {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

@media (max-width: 40rem) {
	.manohara-print__sheet {
		margin: 0 0 7rem;
		box-shadow: none;
	}

	.manohara-print__masthead,
	.manohara-print__title,
	.manohara-print__standfirst,
	.manohara-print__byline,
	.manohara-print__featured,
	.manohara-print__content,
	.manohara-print__colophon {
		padding-inline: 1.25rem;
	}
}

@media print {

	.manohara-print-view,
	.manohara-print__sheet {
		background: #fff;
		color: #000;
	}

	.manohara-print__title,
	.manohara-print__content,
	.manohara-print__source {
		color: #000;
	}

	.manohara-print__standfirst,
	.manohara-print__byline,
	.manohara-print__colophon {
		color: #333;
	}

	.manohara-print__sheet {
		max-inline-size: none;
		margin: 0;
		padding: 0;
		box-shadow: none;
	}

	.manohara-print-view {
		font-size: 11pt;
	}

	.manohara-print__standfirst {
		font-size: 12pt;
	}

	.manohara-print__byline {
		font-size: 8pt;
	}

	.manohara-print__running {
		display: table-footer-group;
	}

	.manohara-print__colophon {
		align-items: center;
		gap: 6mm;
		margin-block-start: 0;
		padding-block: 2mm 0;
		border-block-start: 0.5pt solid #666;
		font-size: 7pt;
		line-height: 1.35;
	}

	.manohara-print__footlogo {
		display: none;
	}

	.manohara-print__colophon-text {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 0 3mm;
		min-inline-size: 0;
	}

	.manohara-print__source {
		order: 1;
	}

	.manohara-print__retrieved {
		order: 2;
	}

	.manohara-print__address {
		order: 3;
		flex-basis: 100%;
	}

	.manohara-print__colophon p {
		margin: 0;
	}

	.manohara-print__retrieved::before {
		content: "\00b7";
		margin-inline-end: 3mm;
		color: #999;
	}

	.manohara-print__address::before {
		content: none;
	}

	.manohara-print__qr svg {
		inline-size: var(--manohara-qr-size, 20mm);
		block-size: var(--manohara-qr-size, 20mm);
	}

	.manohara-print__masthead {
		padding: 0.9rem 1.1rem;
		border-radius: 2px;
	}

	.manohara-print__title,
	.manohara-print__standfirst,
	.manohara-print__byline,
	.manohara-print__featured,
	.manohara-print__content,
	.manohara-print__colophon {
		max-inline-size: none;
		padding-inline: 0;
	}

	.manohara-print__title {
		margin-block-start: 1.2rem;
		font-size: 20pt;
	}

	.manohara-print__content {
		font-size: 10.5pt;
	}

	.manohara-print__bar {
		display: none;
	}

	a {
		color: #000;
		text-decoration: underline;
		text-underline-offset: 0.15em;
	}

	.manohara-print__content a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 8.5pt;
		word-break: break-all;
		opacity: 0.7;
	}
}

.manohara-print-view .manohara-progress,
.manohara-print-view .manohara-top,
.manohara-print-view .manohara-top-wrap,
.manohara-print-view .manohara-topbar,
.manohara-print-view .manohara-accent,
.manohara-print-view .skip-link,
.manohara-print-view > header,
.manohara-print-view > footer,
.manohara-print-view > .wp-block-template-part,
.manohara-print-view .wp-block-navigation,
.manohara-print-view .wp-block-comments {
	display: none;
}

.manohara-print__sheet .manohara-toc {
	margin: 0 auto 1.5rem;
	max-inline-size: 34rem;
	padding-inline: 2.5rem;
}

.manohara-print__sheet .manohara-toc__summary {
	font-weight: 600;
	list-style: none;
}

@media print {
	.manohara-print__sheet .manohara-toc {
		padding-inline: 0;
		max-inline-size: none;
		break-inside: avoid;
	}

	.manohara-print__sheet .manohara-toc__box {
		display: block;
	}

	.manohara-print__sheet .manohara-toc__list {
		display: block;
	}

	.manohara-print__sheet .manohara-toc__list--nested {
		margin-block-start: 0;
	}

	.manohara-print__sheet .manohara-toc a[href^="#"]::after {
		content: none;
	}
}
