/* Legacy styles
----------------------------------------------------------------------------- */
body.blog_inner_page_outer .entry-content .wp-block-heading:not(.title, h1) {
	border-bottom: 1px solid var(--wp--preset--color--neutral-darker);
	color: var(--wp--preset--color--contrast);
	display: flow-root;
	font-size: var(--wp--preset--font-size--10);
	margin: var(--wp--preset--spacing--12) 0 var(--wp--preset--spacing--06);
	padding: 0px 0 var(--wp--preset--spacing--06);
}

body.single-post .wp-block-post-title {
	font-weight: 500;
}

body.single-post .entry-content > h2.wp-block-heading {
	font-size: var(--wp--preset--font-size--12);
	font-weight: 600;
}

body.single-post .entry-content > h3.wp-block-heading {
	font-weight: 400;
}

body.home .migration-home-blog-preview {
	margin: 8px 5px 10px;
	padding: 5px 20px 10px !important;

	> h1.wp-block-heading {
		font-size: 16px;
		line-height: 1.1;
		margin: 12px 0 8px;
	}

	.kalsi-latest-post-preview {
		margin-top: 0;

		h2 {
			font-size: 20px;
			line-height: 1.1;
			margin: 12px 0 8px;
		}

		p {
			margin: 0 0 10px;
		}

		.kalsi-latest-post-preview__excerpt > .wp-block-group {
			padding: 10px 20px 20px !important;
		}
	}
}

body.content-right-page {
	h3.wp-block-heading {
		border-bottom: 1px solid var(--wp--preset--color--neutral-medium);
		color: var(--wp--preset--color--neutral-darker);
		display: flow-root;
		font-size: var(--wp--preset--font-size--10);
		margin: var(--wp--preset--spacing--12) 0 var(--wp--preset--spacing--06);
		padding: 0px 0 var(--wp--preset--spacing--06);
	}
}

body.page-id-101.content-right-page h3.wp-block-heading {
	border-bottom: 0;
}

/* The opening image strip used two narrow figures followed by one wide figure. */
body.page-id-1356 .entry-content > .wp-block-columns:first-of-type {
	> .wp-block-column:nth-child(1),
	> .wp-block-column:nth-child(2) {
		flex: 1 1 25%;
	}

	> .wp-block-column:nth-child(3) {
		flex: 2 1 50%;
	}
}

/* Restore the compact bordered legacy form without affecting other CF7 forms. */
body.page-id-12608 .wpcf7-form {
	border: 1px solid var(--wp--preset--color--neutral-light);
	box-sizing: border-box;
	max-width: 726px;
	min-height: 342px;
	padding: 15px 20px;

	p {
		margin: 0;
	}

	:is(input:not([type="submit"]), textarea) {
		border: 1px solid var(--wp--preset--color--neutral-medium) !important;
		box-sizing: border-box;
		padding: 1px 2px !important;
		width: 100%;
	}

	input:not([type="submit"]) {
		height: 25px !important;
	}

	textarea {
		height: 58px !important;
		min-height: 58px !important;
	}

	input[type="submit"] {
		height: 26px !important;
		padding: 2px 15px !important;
		width: auto;
	}
}

.post-password-form input[type="password"] {
	border: 1px solid var(--wp--preset--color--neutral-medium) !important;
	padding: 1px 2px;
	width: auto !important;
}

.wp-block-list {
	&.list-seal-left {
		display: inline-block;
		vertical-align: top;
		width: 30%;
		min-width: 230px;
	}
}

/* Preserve readable indentation in lists recovered from the Classic editor. */
.wp-block-post-content ul.wp-block-list {
	padding-inline-start: 40px;

	> li {
		margin-inline-start: -10px;
	}
}

/* Restore borders on tables retained inside legacy Custom HTML blocks. */
.wp-block-post-content .table-adjust table {
	border-collapse: collapse;
}

.wp-block-post-content .table-adjust :is(th, td) {
	border: 1px solid var(--wp--preset--color--neutral);
	padding: calc(var(--wp--preset--spacing--03) / 2) var(--wp--preset--spacing--03);
}
