/* ---------- Posts: editorial layout (single-editorial.html, Jake Nov 18) ----------
   Header in its own space, then label, title and byline in the reading column, the photo wider
   than the column, and a calm type scale for the article. Everything is scoped to .b33-editorial. */

.b33-editorial .b33-ed-title {
	text-wrap: balance;
}
.b33-editorial .b33-ed-label a:hover,
.b33-editorial .b33-ed-byline a:hover {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* Photo: cover the 16:9 frame (post content can still override, for example post 560). */
:where(.b33-editorial .b33-ed-hero) img {
	object-fit: cover;
}
/* Post 560 pads its top image for the old overlapping card; that card is gone here. */
.postid-560 .b33-editorial .b33-ed-hero img.post-top-featured.wp-post-image {
	padding-bottom: 20px;
}

/* Article text: 18px on 1.7 lines, about 70 characters a line. */
.b33-editorial .b33-ed-content {
	font-size: 18px;
	line-height: 1.7;
}
.b33-editorial .b33-ed-content > * {
	margin-block-start: 20px;
	margin-block-end: 0;
}
.b33-editorial .b33-ed-content > :first-child {
	margin-block-start: 0;
}

/* Headings: plain letter spacing, clear steps, more space above than below. */
.b33-editorial .b33-ed-content > :is(h2, h3, h4) {
	font-family: var(--wp--preset--font-family--primary);
	font-weight: 700;
	letter-spacing: 0;
	color: var(--wp--preset--color--bark);
	text-wrap: balance;
}
.b33-editorial .b33-ed-content > h2 {
	font-size: clamp(23px, 1rem + 0.8vw, 28px);
	line-height: 1.25;
	margin-block-start: 48px;
}
.b33-editorial .b33-ed-content > h3 {
	font-size: clamp(20px, 0.95rem + 0.45vw, 22px);
	line-height: 1.3;
	margin-block-start: 36px;
}
.b33-editorial .b33-ed-content > h4 {
	font-size: 18px;
	line-height: 1.4;
	margin-block-start: 28px;
}
.b33-editorial .b33-ed-content > :is(h2, h3, h4):first-child {
	margin-block-start: 0;
}
.b33-editorial .b33-ed-content > :is(h2, h3, h4) + * {
	margin-block-start: 16px;
}

/* Photos and galleries: more room around them, quiet captions. */
.b33-editorial .b33-ed-content > :is(figure, .wp-block-image, .wp-block-gallery),
.b33-editorial .b33-ed-content > :is(figure, .wp-block-image, .wp-block-gallery) + * {
	margin-block-start: 32px;
}
.b33-editorial .b33-ed-content figcaption {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: #5c4528;
}

/* Lists and links. */
.b33-editorial .b33-ed-content li + li {
	margin-top: 6px;
}
.b33-editorial .b33-ed-content a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

@media (max-width: 1024px) {
	.b33-editorial .b33-ed-content > h2 {
		margin-block-start: 40px;
	}
	.b33-editorial .b33-ed-content > :is(h2, h3, h4) + * {
		margin-block-start: 12px;
	}
}
@media (max-width: 767px) {
	.b33-editorial .b33-ed-content {
		font-size: 17px;
		line-height: 1.65;
	}
	.b33-editorial .b33-ed-content > * {
		margin-block-start: 16px;
	}
	.b33-editorial .b33-ed-content > h2 {
		margin-block-start: 36px;
	}
	.b33-editorial .b33-ed-content > h3 {
		margin-block-start: 28px;
	}
	.b33-editorial .b33-ed-content > :is(figure, .wp-block-image, .wp-block-gallery),
	.b33-editorial .b33-ed-content > :is(figure, .wp-block-image, .wp-block-gallery) + * {
		margin-block-start: 24px;
	}
}
