.ewd-lede {
	margin: 0 0 1em;
	line-height: 1.55;
}

/* Companion notes: post title stays large; in-body headings are notes. */
body.single-post .entry-content > h1 {
	font-size: 1.22rem;
	line-height: 1.35;
	font-weight: 600;
	margin: 1.35em 0 0.45em;
}

body.single-post .entry-content > h2 {
	font-size: 1.05rem;
	line-height: 1.35;
	font-weight: 600;
	margin: 1.2em 0 0.35em;
	letter-spacing: 0.01em;
}

body.single-post .entry-content > h3 {
	font-size: 1rem;
	line-height: 1.35;
	font-weight: 600;
	margin: 1.1em 0 0.3em;
}

body.single-post .entry-content li {
	line-height: 1.55;
}

body.single-post .entry-content h1,
body.single-post .entry-content h2,
body.single-post .entry-content h3 {
	scroll-margin-top: 4.5rem;
}

.ewd-toc {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0.75rem 0 0.65rem;
}

.ewd-toc__label {
	flex: 1 1 100%;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.75;
	margin: 0;
}

.ewd-toc a {
	font-size: 0.82rem;
	line-height: 1.3;
	padding: 0.28rem 0.65rem;
	border: 1px solid rgba(127, 127, 127, 0.35);
	border-radius: 999px;
	text-decoration: none;
	color: inherit;
}

.ewd-toc a:hover,
.ewd-toc a:focus {
	border-color: currentColor;
}

.ewd-related {
	margin: 0.55rem 0 1.1rem;
}

.ewd-related__heading {
	font-size: 0.95rem !important;
	font-weight: 600;
	margin: 0 0 0.5rem !important;
	line-height: 1.3;
}

.ewd-related__grid {
	display: flex;
	gap: 0.6rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.2rem;
}

.ewd-related__card {
	flex: 0 0 78%;
	max-width: 280px;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(127, 127, 127, 0.35);
	border-radius: 10px;
	overflow: hidden;
	background: rgba(127, 127, 127, 0.08);
	min-height: 88px;
	max-height: 100px;
	scroll-snap-align: start;
}

.ewd-related__card:hover,
.ewd-related__card:focus {
	border-color: currentColor;
}

.ewd-related__card img,
.ewd-related__ph {
	display: block;
	flex: 0 0 140px;
	width: 140px;
	height: 100%;
	max-height: 100px;
	object-fit: cover;
	background: rgba(127, 127, 127, 0.2);
}

.ewd-related__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0.45rem 0.65rem;
	min-width: 0;
}

.ewd-related__title {
	font-size: 0.86rem;
	line-height: 1.3;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ewd-related--nudge {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 12px;
}

@media (min-width: 700px) {
	.ewd-related__grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		overflow: visible;
		scroll-snap-type: none;
	}

	.ewd-related__card {
		flex: none;
		max-width: none;
		width: auto;
	}
}

@media (max-width: 699px) {
	body.single-post .entry-content > h1 {
		font-size: 1.12rem;
	}

	body.single-post .entry-content > h2 {
		font-size: 1rem;
	}
}
