/*
Theme Name: Twenty Twenty-Five Child — wdlobin
Theme URI: https://wdlobin.com/blog/
Description: A quiet editorial child theme for wdlobin's notes, tutorials and projects.
Author: wdlobin
Template: twentytwentyfive
Version: 1.9.0
Text Domain: wdlobin
*/

:root {
	/* Blog aliases point to the shared design system; do not duplicate values. */
	--wdl-paper: var(--site-bg);
	--wdl-paper-deep: var(--site-line-soft);
	--wdl-ink: var(--site-text);
	--wdl-muted: var(--site-text-muted);
	--wdl-line: var(--site-line);
	--wdl-blue: var(--site-accent);
	--wdl-blue-soft: var(--site-accent-soft);
	--wdl-mark: var(--site-mark);
	--wdl-radius: var(--site-radius);
	--wdl-ease: var(--site-ease);
}

.wp-site-blocks > main,
main.wp-block-group { margin-block-start: 0 !important; }

a { transition: color .2s var(--wdl-ease), opacity .2s var(--wdl-ease), transform .2s var(--wdl-ease); }

/*
 * WordPress' constrained layout can make each child calculate its own
 * horizontal position. Explicit frames keep the composition stable on
 * high-resolution and scaled Windows displays.
 */
.wdl-home-intro,
.wdl-home-feed,
.wdl-article-header,
.wdl-article-shell {
	width: min(100%, calc(var(--site-content) + 2 * var(--site-gutter)));
	margin-inline: auto !important;
}
.wdl-nav a[aria-current="page"],
body.blog .wdl-nav a[href="/blog/"],
body.single-post .wdl-nav a[href="/blog/"] { color: var(--wdl-ink) !important; }

.wdl-kicker {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--wdl-muted);
}
.wdl-kicker::before { content: ""; width: 1.7rem; height: 2px; background: var(--wdl-mark); }

.wdl-home-intro { padding-top: clamp(.75rem, 1.8vw, 1.75rem); padding-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.wdl-home-intro > * { margin-inline: 0 !important; }
.wdl-home-title {
	max-width: 760px;
	margin-top: 1.1rem !important;
	font-size: clamp(2.65rem, 2.15rem + 2vw, 4.2rem) !important;
	line-height: 1.08 !important;
	text-wrap: balance;
	letter-spacing: -.045em;
}
.wdl-home-lede { max-width: 680px; color: var(--wdl-muted); text-wrap: pretty; }
.wdl-home-intro .wp-block-buttons { justify-content: flex-start; }

.wdl-section-heading {
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--wdl-line);
}

.wdl-section-heading .wp-block-categories-dropdown select {
	min-width: 10rem;
	padding: .45rem 2.1rem .45rem .75rem;
	color: var(--wdl-muted);
	border: 1px solid var(--wdl-line);
	border-radius: 999px;
	background: #fff;
	font: 500 .78rem/1.4 var(--wp--preset--font-family--manrope);
}

.wdl-post-list .wp-block-post {
	position: relative;
	padding: clamp(1.2rem, 1.8vw, 1.7rem) 0;
	border-bottom: 1px solid var(--wdl-line);
}
.wdl-post-list .wp-block-post-template {
	border: 1px solid var(--wdl-line);
	border-radius: var(--wdl-radius);
	background: #fff;
	overflow: hidden;
	box-shadow: 0 10px 36px rgba(24,31,48,.045);
}
.wdl-post-list .wp-block-post { padding-inline: clamp(1rem, 2vw, 1.75rem); }
.wdl-post-list .wp-block-post:last-child { border-bottom: 0; }
.wdl-post-list .wp-block-post > .wdl-post-row,
.wdl-post-list .wp-block-post > .wp-block-group:first-child {
	display: grid !important;
	grid-template-columns: clamp(120px, 14vw, 180px) minmax(0, 1fr) !important;
	gap: clamp(1.5rem, 4vw, 4rem) !important;
	align-items: start;
}
.wdl-post-list .wdl-post-row > *,
.wdl-post-list .wp-block-post > .wp-block-group:first-child > * { min-width: 0; margin-inline: 0 !important; }
.wdl-post-list .wp-block-post-title { max-width: 900px; font-size: clamp(1.5rem, 1.22rem + .7vw, 2rem) !important; }
.wdl-post-list .wp-block-post-excerpt { max-width: 760px; }
.wdl-post-list .wp-block-post::before {
	content: "";
	position: absolute;
	left: 0;
	top: -1px;
	width: 0;
	height: 2px;
	background: var(--wdl-blue);
	transition: width .45s var(--wdl-ease);
}
.wdl-post-list .wp-block-post:hover::before { width: 100%; }
.wdl-post-list .wp-block-post-title a { text-decoration: none; }
.wdl-post-list .wp-block-post:hover .wp-block-post-title a { color: var(--wdl-blue); }
.wdl-post-list .wp-block-post-excerpt__excerpt { color: var(--wdl-muted); }
.wdl-post-meta, .wdl-post-meta a {
	font-family: var(--wp--preset--font-family--manrope);
	font-size: .76rem;
	letter-spacing: .035em;
	color: var(--wdl-muted);
	text-decoration: none;
}

.wdl-filter-row a {
	display: inline-flex;
	padding: .45rem .8rem;
	border: 1px solid var(--wdl-line);
	border-radius: 999px;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: .78rem;
}
.wdl-filter-row a:hover { border-color: var(--wdl-blue); color: var(--wdl-blue); transform: translateY(-1px); }

.wdl-article-header { padding-top: clamp(1.25rem, 2vw, 2rem); padding-bottom: .65rem; }
.wdl-article-header > * { margin-inline: 0 !important; }
.wdl-article-title {
	width: 100%;
	max-width: 960px !important;
	font-size: clamp(2.4rem, 1.85rem + 1.8vw, 3.75rem) !important;
	line-height: 1.08 !important;
	text-wrap: balance;
	letter-spacing: -.05em;
}
.wdl-article-title { margin-block: 0 !important; }
.wdl-article-deck { max-width: 720px; margin-top: .8rem !important; margin-bottom: 0 !important; color: var(--wdl-muted); }
.wdl-article-header .wdl-post-meta { margin-top: .85rem !important; margin-bottom: 0 !important; }
.wdl-article-rule { width: 4rem; height: 3px; background: var(--wdl-mark); border: 0; margin: 1rem 0 0; }
.wdl-article-header .wdl-article-rule { margin-top: .9rem; }

.wdl-header-actions { display: contents; }
.wdl-toc-toggle, .wdl-header-toc { display: none; }

.wdl-article-shell {
	display: grid;
	grid-template-columns: minmax(150px, 210px) minmax(0, 720px) minmax(140px, 190px);
	gap: clamp(2rem, 4vw, 4.5rem);
	align-items: start;
	margin-top: clamp(.8rem, 1.5vw, 1.25rem) !important;
}
.wdl-article-featured {
	width: min(1240px, calc(100% - 48px)) !important;
	margin-inline: auto !important;
	max-height: min(620px, 65vh);
	overflow: hidden;
	border: 1px solid var(--wdl-line);
	border-radius: var(--wdl-radius);
	background: #fff;
}
.wdl-article-featured img {
	display: block;
	width: 100%;
	height: min(620px, 65vh) !important;
	object-fit: contain;
}
.single-post main > .wp-block-post-featured-image.alignwide:not(.wdl-article-featured) {
	width: min(1240px, calc(100% - 48px)) !important;
	margin-inline: auto !important;
	max-height: min(620px, 65vh);
	overflow: hidden;
	border-radius: var(--wdl-radius);
}
.single-post main > .wp-block-post-featured-image.alignwide:not(.wdl-article-featured) img {
	width: 100%;
	height: min(620px, 65vh) !important;
	object-fit: contain;
}
.wdl-toc { grid-column: 1; }
.wdl-article-body { grid-column: 2; min-width: 0; }
.wdl-article-aside { grid-column: 3; }
.wdl-article-body, .wdl-article-body > * { max-width: 100%; }
.wdl-article-body > * + * { margin-block-start: 1.45em; }
.wdl-article-body :is(h1, h2, h3, h4, h5, h6) {
	line-height: 1.28;
	text-wrap: balance;
	scroll-margin-top: 6rem;
}
.wdl-article-body h1 {
	margin: 2.1rem 0 .85rem !important;
	font-size: clamp(1.85rem, 1.62rem + .7vw, 2.3rem) !important;
	letter-spacing: -.03em;
}
.wdl-article-body h2 {
	margin: 2rem 0 .8rem !important;
	font-size: clamp(1.65rem, 1.48rem + .55vw, 2.05rem) !important;
	letter-spacing: -.025em;
}
.wdl-article-body h3 {
	margin: 1.7rem 0 .65rem !important;
	font-size: clamp(1.3rem, 1.2rem + .32vw, 1.55rem) !important;
}
.wdl-article-body h4 {
	margin: 1.45rem 0 .55rem !important;
	font-size: clamp(1.1rem, 1.04rem + .2vw, 1.25rem) !important;
}
.wdl-article-body h5, .wdl-article-body h6 {
	margin: 1.3rem 0 .5rem !important;
	font-size: 1.02rem !important;
}
.wdl-article-body > :is(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0 !important; }
.wdl-article-body p, .wdl-article-body li { text-wrap: pretty; }
.wdl-article-body a { color: var(--wdl-blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.wdl-article-body blockquote {
	margin: 1.1em 0;
	padding: .15rem 0 .15rem 1rem;
	border-left: 2px solid #cfd4dc;
	color: var(--wdl-muted);
	font-size: .94em;
	line-height: 1.68;
}
.wdl-article-body blockquote > :first-child { margin-block-start: 0; }
.wdl-article-body blockquote > :last-child { margin-block-end: 0; }
.wdl-article-body blockquote :is(p, li) { font-size: inherit; line-height: inherit; }
.wdl-article-body blockquote strong { color: #555b65; }
.wdl-article-body pre {
	position: relative;
	max-width: 100%;
	overflow: auto;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
	margin: 0;
	padding: 1.15rem 0 1.15rem;
	border: 1px solid #2c3135;
	border-radius: var(--wdl-radius);
	background: #232830 !important;
	color: #edf0f3 !important;
	box-shadow: 0 10px 30px rgba(20,22,24,.1);
	scrollbar-color: #626a72 #202428;
	tab-size: 2;
}
.wdl-article-body code, .wdl-article-body kbd, .wdl-article-body samp {
	font-family: "Fira Code", ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: .88em;
}
.wdl-article-body :not(pre) > code { padding: .16em .38em; border-radius: 4px; background: var(--wdl-paper-deep); color: #b13e2d; }
.wdl-article-body :is(.wp-block-code, .wp-block-preformatted) { padding: 0; border: 0; background: transparent !important; }
.wdl-code-frame { position: relative; min-width: 0; margin-block: 1.15em; padding-top: 2.25rem; overflow: hidden; border: 1px solid #343b45; border-radius: var(--wdl-radius); background: #232830; box-shadow: 0 10px 28px rgba(24,31,42,.09); }
.wdl-code-frame pre { border: 0; border-radius: 0; box-shadow: none; }
.wdl-code-toolbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 2.25rem;
	padding: 0 .65rem 0 .9rem;
	border: 0;
	border-bottom: 0;
	border-radius: var(--wdl-radius) var(--wdl-radius) 0 0;
	background: #2a3039;
	font-family: var(--wp--preset--font-family--code);
	font-size: .68rem;
	letter-spacing: .07em;
	color: #9ea7b0;
}
.wdl-code-copy {
	display: inline-grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 1px solid #48515a;
	border-radius: 5px;
	background: transparent;
	color: #d9dfe5;
	font: inherit;
	letter-spacing: 0;
	cursor: pointer;
}
.wdl-code-copy svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wdl-code-copy:hover, .wdl-code-copy:focus-visible { border-color: #79b8ff; color: #fff; outline: none; }
.wdl-code-copy.is-copied { border-color: #67d391; color: #67d391; }
.wdl-code-frame code { display: block; min-width: max-content; counter-reset: wdl-code-line; font-size: .84rem; line-height: 1.7; }
.wdl-code-line { position: relative; display: block; min-height: 1.7em; padding: 0 1.25rem 0 4rem; counter-increment: wdl-code-line; }
.wdl-code-line::before {
	content: counter(wdl-code-line);
	position: absolute;
	left: 0;
	width: 2.8rem;
	padding-right: .75rem;
	border-right: 1px solid #343a40;
	color: #66707a;
	text-align: right;
	user-select: none;
}
.wdl-token-comment { color: #7f8c7a; font-style: italic; }
.wdl-token-string { color: #a8d58d; }
.wdl-token-keyword { color: #d59bf6; }
.wdl-token-number { color: #f3b77b; }
.wdl-token-function { color: #79b8ff; }
.wdl-article-body .wp-block-table {
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-color: var(--wdl-muted) var(--wdl-paper-deep);
}
.wdl-article-body table { width: 100%; border-collapse: collapse; }
.wdl-article-body th, .wdl-article-body td {
	padding: .7rem .9rem;
	border: 1px solid var(--wdl-line);
	vertical-align: top;
}
.wdl-article-body thead { border-bottom: 1px solid var(--wdl-line) !important; }
.wdl-article-body thead :is(th, td) { border-bottom-color: var(--wdl-line); }
/* Wide comparison tables need readable columns instead of one-character lines. */
.wdl-article-body table:has(tr > :nth-child(6)) {
	width: max-content;
	min-width: 100%;
	table-layout: auto;
}
.wdl-article-body table:has(tr > :nth-child(6)) :is(th, td) {
	min-width: 7.5rem;
	line-height: 1.55;
	white-space: normal;
	word-break: normal;
	overflow-wrap: break-word;
}
.wdl-article-body table:has(tr > :nth-child(6)) :is(th, td):first-child {
	min-width: 4.5rem;
}
.wdl-article-body img { border-radius: var(--wdl-radius); }
.wdl-article-body > img,
.wdl-article-body .wp-block-image:not(.alignleft):not(.alignright) > img {
	display: block;
	margin-inline: auto;
}
.wdl-article-body .wp-block-image:not(.alignleft):not(.alignright) { text-align: center; }
.wdl-article-body .wp-block-image:not(.alignleft):not(.alignright) > a {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
}
.wdl-article-body img,
.wdl-article-body video,
.wdl-article-body iframe,
.wdl-article-body svg { height: auto; }
.wdl-article-body math,
.wdl-article-body .katex {
	font-family: "Noto Serif Math", "Cambria Math", math, serif;
	font-size: 1.04em;
	font-style: normal;
	font-weight: 400;
	letter-spacing: normal;
	word-spacing: normal;
	font-kerning: normal;
}
.wdl-article-body math * { font-family: inherit !important; }
.wdl-article-body .katex-display, .wdl-article-body math[display="block"] { overflow-x: auto; overflow-y: hidden; padding: .7rem 0; }

.wdl-toc, .wdl-article-aside { position: sticky; top: 6.5rem; }
.wdl-toc-title, .wdl-aside-label {
	font-family: var(--wp--preset--font-family--manrope);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wdl-muted);
}
.wdl-toc ol { margin: .9rem 0 0; padding: 0; list-style: none; }
.wdl-toc li + li { margin-top: .55rem; }
.wdl-toc li[data-level="3"] { padding-left: .8rem; }
.wdl-toc a { display: block; color: var(--wdl-muted); font-size: .78rem; line-height: 1.5; text-decoration: none; }
.wdl-toc a:hover, .wdl-toc a.is-active { color: var(--wdl-blue); }
.wdl-article-aside { padding-left: 1rem; border-left: 1px solid var(--wdl-line); color: var(--wdl-muted); }

.wdl-taxonomy a { text-decoration: none; }
.wdl-taxonomy a:hover { color: var(--wdl-blue); }
.wdl-post-nav { border-top: 1px solid var(--wdl-line); border-bottom: 1px solid var(--wdl-line); }
.wdl-article-footer { margin-top: clamp(2.2rem, 3.5vw, 3.5rem) !important; }
.wdl-article-footer .wdl-post-nav { padding-block: 1.35rem !important; }
.single-post main > .wp-block-group.alignwide:has(.wdl-post-nav) { margin-top: clamp(2.2rem, 3.5vw, 3.5rem) !important; }
.single-post main > .wp-block-group.alignwide:has(.wdl-post-nav) .wdl-post-nav { padding-block: 1.35rem !important; }
.wdl-post-nav a { text-decoration: none; }
.wdl-post-nav a:hover { color: var(--wdl-blue); }

.wdl-related { margin-top: clamp(2.25rem, 4vw, 3.5rem); }
.wdl-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--wdl-line); border: 1px solid var(--wdl-line); }
.wdl-related-item { padding: 1.5rem; background: var(--wdl-paper); }
.wdl-related-item a { text-decoration: none; }
.wdl-related-item:hover a { color: var(--wdl-blue); }

/*
 * 2560px displays at 125% Windows scaling expose a roughly 2048px CSS
 * viewport. Use that extra room for the article without changing the more
 * compact reading measure on laptops and smaller desktop windows.
 */
@media (min-width: 1600px) {
	.wdl-home-intro,
	.wdl-home-feed,
	.wdl-article-header,
	.wdl-article-shell,
	.wdl-article-featured,
	.single-post main > .wp-block-post-featured-image.alignwide:not(.wdl-article-featured) {
		/*
		 * Keep the outer frame identical to the shared site container. The
		 * previous 1440px value described the content width but was applied to
		 * the border box; with 24px side padding that made WordPress pages 48px
		 * narrower and caused a visible horizontal jump during navigation.
		 */
		width: min(100%, calc(var(--site-content) + 2 * var(--site-gutter))) !important;
		max-width: none !important;
	}

	.wdl-article-title { max-width: 1360px !important; }

	.wdl-article-shell {
		grid-template-columns: minmax(170px, 210px) minmax(0, 820px) minmax(150px, 190px);
	}

	.wdl-home-feed { margin-top: 1.25rem !important; }
	.wdl-post-list .wp-block-post-template {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
		border: 0;
		border-radius: 0;
		background: transparent;
		overflow: visible;
		box-shadow: none;
	}

	.wdl-post-list .wp-block-post {
		padding: 1.35rem 1.5rem;
		border: 1px solid var(--wdl-line) !important;
		border-radius: var(--wdl-radius);
		background: #fff;
		box-shadow: 0 8px 26px rgba(24,31,48,.035);
	}

	.wdl-post-list .wp-block-post > .wdl-post-row,
	.wdl-post-list .wp-block-post > .wp-block-group:first-child {
		grid-template-columns: 90px minmax(0, 1fr) !important;
		gap: 1.35rem !important;
	}

	.wdl-post-list .wp-block-post-title {
		font-size: clamp(1.25rem, 1.05rem + .35vw, 1.55rem) !important;
	}
}

@media (max-width: 980px) {
	.wdl-article-shell { grid-template-columns: minmax(0, 1fr) 160px; }
	.wdl-toc { grid-column: 1 / -1; position: static; padding: 1rem 0; border-top: 1px solid var(--wdl-line); border-bottom: 1px solid var(--wdl-line); }
	.wdl-article-body { grid-column: 1; }
	.wdl-article-aside { grid-column: 2; }
	.wdl-toc ol { columns: 2; column-gap: 2rem; }
}

@media (max-width: 700px) {
	.wdl-home-intro,
	.wdl-home-feed,
	.wdl-article-header,
	.wdl-article-shell,
	.wdl-article-featured {
		width: min(1240px, calc(100% - 28px)) !important;
	}
	.wdl-home-intro { padding-top: .75rem; }
	.wdl-article-shell { display: block; }
	.wdl-article-shell {
		width: 100vw !important;
		max-width: 100vw !important;
		margin-top: 1.15rem !important;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
		padding-inline: 20px !important;
	}
	.wdl-article-shell > .wdl-toc { display: none; }
	.wdl-header-actions { display: flex; align-items: center; margin-left: auto; }
	.wdl-toc-toggle {
		width: 42px;
		height: 42px;
		padding: 9px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: 0;
		border-radius: 8px;
		background: transparent;
		color: var(--wdl-text);
		font-family: var(--wp--preset--font-family--manrope);
		cursor: pointer;
	}
	.wdl-toc-toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
	.wdl-toc-toggle:hover, .wdl-toc-toggle[aria-expanded="true"] { background: var(--wdl-paper-deep); color: var(--wdl-blue); }
	.wdl-toc-toggle:focus-visible { outline: 2px solid var(--wdl-blue); outline-offset: 1px; }
	.wdl-header-toc {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		z-index: 102;
		display: block;
		padding: 10px 20px 16px;
		border-bottom: 1px solid var(--wdl-line);
		background: color-mix(in srgb, #fff 96%, transparent);
		box-shadow: 0 14px 30px rgba(24,31,48,.06);
		font-family: var(--wp--preset--font-family--manrope);
	}
	.wdl-header-toc[hidden] { display: none; }
	.wdl-header-toc nav { max-height: min(58dvh, 28rem); overflow-y: auto; overscroll-behavior: contain; }
	.wdl-header-toc ol { margin: 0; padding: 0; list-style: none; }
	.wdl-header-toc li + li { margin-top: .2rem; }
	.wdl-header-toc li[data-level="3"] { padding-left: .9rem; }
	.wdl-header-toc a { display: block; padding: .48rem 0; color: var(--wdl-muted); font-size: .84rem; line-height: 1.45; text-decoration: none; }
	.wdl-header-toc a.is-active { color: var(--wdl-blue); font-weight: 600; }
	.wdl-article-aside { position: static; margin: 2.5rem 0 0; padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--wdl-line); }
	.wdl-related-grid { grid-template-columns: 1fr; }
	.wdl-post-list .wp-block-post > .wdl-post-row,
	.wdl-post-list .wp-block-post > .wp-block-group:first-child { display: block !important; }
	.wdl-post-list .wdl-post-row > * + * { margin-top: 1rem !important; }
	.wdl-article-featured,
	.wdl-article-featured img { max-height: none; height: auto !important; }
	.wdl-article-header { padding-inline: 0 !important; padding-top: 1.25rem; padding-bottom: .75rem; }
	.wdl-article-header .wdl-article-rule { margin-top: 1rem; }
	.wdl-article-featured { margin-top: .5rem !important; }
	.wdl-article-body {
		width: 100vw !important;
		max-width: 100vw !important;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
		padding-inline: 24px !important;
		font-size: clamp(1.02rem, .97rem + .25vw, 1.1rem);
		line-height: 1.78;
	}
	.wdl-article-body > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
		width: 100% !important;
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.wdl-article-body p,
	.wdl-article-body li,
	.wdl-article-body h2,
	.wdl-article-body h3,
	.wdl-article-title { overflow-wrap: anywhere; word-break: normal; }
	.wdl-article-body .alignwide,
	.wdl-article-body .alignfull { width: 100% !important; max-width: 100% !important; margin-inline: 0 !important; }
	.wdl-article-body pre,
	.wdl-article-body table,
	.wdl-article-body .wp-block-table { max-width: 100%; overflow-x: auto; }
	.wdl-article-body blockquote { margin: 1em 0; padding: .1rem 0 .1rem .85rem; }
	.wdl-article-body ul,
	.wdl-article-body ol { padding-inline-start: 1.4rem; }
	.wdl-article-body li { padding-inline-start: .15rem; }
	.wdl-article-body blockquote {
		width: 100%;
		font-size: .94em !important;
		line-height: 1.68;
		text-align: left;
	}
	.wdl-article-body blockquote ul,
	.wdl-article-body blockquote ol { padding-inline-start: 1.35rem; }
	.wdl-article-body > * + * { margin-block-start: .9em; }
	.wdl-article-body h2 { margin-top: 1.35em; }
	.wdl-article-body h3 { margin-top: 1.2em; }

	/* Mobile article endings should use the same compact rhythm as the rest of the site. */
	.wdl-article-aside {
		margin-top: 1.5rem;
		padding-top: .8rem;
	}
	.wdl-article-aside > * {
		margin-block: 0 !important;
	}
	.wdl-article-aside > * + * {
		margin-block-start: .7rem !important;
	}
	.wdl-article-footer,
	.single-post main > .wp-block-group.alignwide:has(.wdl-post-nav) {
		width: 100vw !important;
		max-width: 100vw !important;
		margin-top: 1.5rem !important;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
		padding-inline: 24px !important;
	}
	.wdl-article-footer .wdl-post-nav,
	.single-post main > .wp-block-group.alignwide:has(.wdl-post-nav) .wdl-post-nav {
		padding-block: .9rem !important;
	}
	.wdl-related { margin-top: 1.5rem; }
	.wdl-related .wdl-kicker,
	.wdl-related h2 { margin-block: 0 !important; }
	.wdl-related h2 { margin-top: .8rem !important; }
	.wdl-related-grid { margin-top: 1rem !important; }
	.wdl-related-item { padding: 1rem 1.1rem; }
	.wdl-related-item .wdl-post-meta,
	.wdl-related-item h3 { margin-block: 0 !important; }
	.wdl-related-item h3 { margin-top: .35rem !important; }

	.wdl-article-body math,
	.wdl-article-body .katex { font-size: 1.08em; }
	.wdl-article-body math[display="block"],
	.wdl-article-body .katex-display {
		width: 100%;
		margin-block: 0 !important;
		padding-block: .35rem;
		line-height: 1.35;
		-webkit-overflow-scrolling: touch;
	}
	.wdl-article-body .wp-block-math {
		margin-block: .9em !important;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Keep intro and feed content on the same horizontal frame. */
.wdl-home-intro,
.wdl-home-feed { box-sizing: border-box; padding-inline: 24px !important; }
.wdl-post-list .wp-block-post-template > .wp-block-post { margin-block-start: 0 !important; }
.wdl-archive-title { margin-block: .8rem !important; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem) !important; line-height: 1.25; }
.wdl-archive-intro { padding-top: 2.5rem; padding-bottom: 1rem; }
.wdl-archive-intro .wp-block-term-description { max-width: 680px; color: var(--wdl-muted); }
.wdl-archive-feed .wp-block-post-template { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.wdl-archive-feed .wp-block-post { padding: 1.5rem; border: 1px solid var(--wdl-line) !important; border-radius: var(--wdl-radius); background: #fff; box-shadow: 0 8px 26px rgba(24,31,48,.035); }
.wdl-archive-feed .wp-block-post > .wdl-post-row:first-child { display: flex !important; flex-direction: column; gap: .8rem !important; }
.wdl-archive-feed .wdl-post-row > .wp-block-group:first-child { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.wdl-archive-feed .wdl-post-row > .wp-block-group:first-child > * { margin: 0; }
.wdl-archive-feed .wp-block-post-title { font-size: 1.35rem !important; line-height: 1.45; overflow-wrap: anywhere; }
.wdl-archive-feed a:focus-visible { outline: 2px solid var(--wdl-blue); outline-offset: 4px; }
@media (max-width: 700px) {
 .wdl-home-intro, .wdl-home-feed { padding-inline: 0 !important; }
 .wdl-archive-feed .wp-block-post-template { grid-template-columns: 1fr; }
}

.wdl-post-list .wdl-post-row > .wp-block-group { padding-inline: 0; }
.wdl-archive-feed .wdl-post-row > .wp-block-group { margin-block-start: 0 !important; }
