/* =========================================================
   Editorial article template (templates/single.html)
   One stylesheet for the article page: the header, the hero
   photograph, the reading column and every component inside it,
   share links, author, end matter and related articles.

   Widths, type and ratios come from tokens.css (Article layout).
   Long-form components also apply on pages and plan pages, which
   use .chd-article__body for their text, and in the block editor
   (.is-root-container), so posts look the same while editing.
   ========================================================= */

/* ---------- Layout ---------- */

.chd-story {
	--story-gutter: var(--gutter);
}

.chd-story__head {
	max-width: calc(var(--article-head) + var(--story-gutter) * 2);
	margin-inline: auto;
	padding: clamp(20px, 0.75rem + 1.6vw, 40px) var(--story-gutter) 0;
	text-align: center;
}

.chd-story__hero {
	max-width: calc(var(--article-max) + var(--story-gutter) * 2);
	margin: var(--head-space) auto 0;
	padding-inline: var(--story-gutter);
}

.chd-story__end {
	padding-top: var(--space-2xl);
}

.chd-story__end,
.chd-story__comments {
	max-width: calc(var(--article-read) + var(--story-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--story-gutter);
}

/* The reading column, with wide and full-bleed lanes for tables,
   charts and images. Children sit in the reading column unless
   they ask for more. */
.chd-story__body {
	--side: calc((var(--article-wide) - var(--article-read)) / 2);

	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--story-gutter), 1fr)
		[wide-start] minmax(0, var(--side))
		[content-start] min(var(--article-read), 100% - var(--story-gutter) * 2)
		[content-end] minmax(0, var(--side))
		[wide-end] minmax(var(--story-gutter), 1fr)
		[full-end];
	padding-top: var(--head-space);
}

.chd-story__body > * {
	grid-column: content;
	min-width: 0;
	margin-block: 0;
}

.chd-story__body > :is(.alignwide, .wp-block-table, .chd-bars, .wp-block-gallery) {
	grid-column: wide;
}

/* Two-column tables read like a list: they stay in the text column */
.chd-story__body > .wp-block-table:not(:has(tr > :nth-child(3))) {
	grid-column: content;
}

.chd-story__body > .alignfull {
	grid-column: full;
}

/* ---------- Header ---------- */

.chd-story__head .breadcrumbs ol {
	justify-content: center;
}

.chd-story__head .breadcrumbs {
	margin-bottom: var(--space-lg);
}

/* On phones the trail stops at the topic: the title follows directly */
@media (max-width: 639px) {
	.chd-story__head .breadcrumbs li:has([aria-current]) {
		display: none;
	}
}

.chd-story__title {
	max-width: 18em;
	margin: 0 auto;
	font-family: var(--font-display);
	font-size: var(--article-title);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -0.026em;
	text-wrap: balance;
}

.chd-story__dek {
	max-width: 36em;
	margin: var(--space-md) auto 0;
	color: var(--muted);
	font-size: var(--fs-lead);
	line-height: var(--lh-lead);
	text-wrap: pretty;
}

.chd-story__dek .wp-block-post-excerpt__more-text {
	display: none;
}

.chd-story__dek p {
	margin: 0;
}

/* Byline */
.chd-meta {
	margin-top: var(--space-lg);
	font-size: var(--fs-small);
	line-height: var(--lh-small);
}

.chd-meta p,
.chd-meta ul {
	margin: 0;
}

.chd-meta__name {
	color: var(--ink);
	font-weight: var(--fw-medium);
}

.chd-meta__author {
	color: var(--muted);
}

.chd-meta__facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 var(--space-sm);
	margin-top: var(--space-3xs);
	padding: 0;
	list-style: none;
	color: var(--muted);
}

/* Dots between the facts only where they fit on one line; narrower
   screens wrap them with space instead, so no line starts with a dot */
@media (min-width: 900px) {
	.chd-meta__facts {
		column-gap: var(--space-2xs);
	}

	.chd-meta__facts li + li::before {
		content: "·";
		margin-right: var(--space-2xs);
		color: var(--rule-strong);
	}
}

.chd-meta__topic a {
	color: var(--corten);
	font-weight: var(--fw-medium);
}

.chd-meta__topic a:hover {
	color: var(--corten-deep);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ---------- Share links ---------- */

.chd-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs) var(--space-sm);
}

.chd-share__label {
	margin: 0;
	color: var(--muted);
	font-size: var(--fs-label);
	font-weight: var(--fw-strong);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
}

.chd-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.chd-share__list > li {
	margin: 0;
}

.chd-share__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2xs);
	min-width: 44px;
	height: 44px;
	padding: 0 var(--space-xs);
	border: 1px solid var(--rule-strong);
	background: var(--ground);
	color: var(--ink);
	font: inherit;
	font-size: var(--fs-small);
	font-weight: var(--fw-medium);
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.chd-share__item:hover {
	border-color: var(--ink);
	color: var(--corten);
}

.chd-share__item:focus-visible {
	outline: 2px solid var(--corten);
	outline-offset: 3px;
}

.chd-share__item.is-copied {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--on-ink);
}

.chd-share__icon {
	flex: none;
	width: 18px;
	height: 18px;
}

/* Compact: icons only, with Copy link spelled out */
.chd-share--compact {
	justify-content: center;
	margin-top: var(--space-md);
}

.chd-share--compact .chd-share__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.chd-share--compact .chd-share__item:not(.chd-share__item--copy, .chd-share__item--native) {
	padding: 0;
}

.chd-share--compact .chd-share__item:not(.chd-share__item--copy, .chd-share__item--native) .chd-share__name {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.chd-share--compact .chd-share__list {
	justify-content: center;
}

/* End of article: a ruled band with names beside the icons */
.chd-share--end {
	margin-top: var(--space-xl);
	padding-block: var(--space-md);
	border-top: 1px solid var(--ink);
	border-bottom: 1px solid var(--rule);
}

.chd-share--end .chd-share__label {
	flex: 1 0 100%;
}

@media (max-width: 639px) {
	.chd-share--end .chd-share__item:not(.chd-share__item--copy, .chd-share__item--native) {
		padding: 0;
	}

	.chd-share--end .chd-share__item:not(.chd-share__item--copy, .chd-share__item--native) .chd-share__name {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* ---------- Hero photograph ---------- */

.chd-story__hero img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--hero-ratio);
	object-fit: cover;
	background: var(--paper);
	filter: saturate(0.86) contrast(1.02);
}

@media (min-width: 640px) {
	.chd-story {
		--hero-ratio: 3 / 2;
	}
}

@media (min-width: 1024px) {
	.chd-story {
		--hero-ratio: 16 / 10;
	}
}

.chd-story__hero figcaption {
	margin-top: var(--space-xs);
	color: var(--muted);
	font-size: var(--fs-small);
}

/* ---------- Long-form text ----------
   Shared by articles, pages and plan pages. */

:is(.chd-story__body, .chd-article__body, .is-root-container) {
	font-size: var(--article-fs);
	line-height: var(--article-lh);
}

:is(.chd-story__body, .chd-article__body, .is-root-container) > * + * {
	margin-top: var(--article-flow);
}

:is(.chd-story__body, .chd-article__body, .is-root-container) :is(h2, h3, h4) {
	font-family: var(--font-display);
	font-weight: 400;
	text-wrap: balance;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) h2 {
	font-size: var(--fs-h3);
	line-height: var(--lh-h3);
	letter-spacing: var(--ls-h3);
}

:is(.chd-story__body, .chd-article__body, .is-root-container) h3 {
	font-size: var(--fs-h4);
	line-height: var(--lh-h4);
	letter-spacing: var(--ls-h4);
}

:is(.chd-story__body, .chd-article__body, .is-root-container) h4 {
	font-size: var(--fs-lead);
	font-style: italic;
	line-height: 1.35;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) > h2 {
	margin-top: 2.1em;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) > h3 {
	margin-top: 1.9em;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) > h4 {
	margin-top: 1.7em;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) > :is(h2, h3, h4) + * {
	margin-top: 0.7em;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) > h2 + h3 {
	margin-top: 1em;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) :is(h2, h3)[id] {
	scroll-margin-top: calc(var(--header-h, 76px) + var(--space-md));
}

:is(.chd-story__body, .chd-article__body, .is-root-container) p {
	text-wrap: pretty;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) strong {
	font-weight: var(--fw-strong);
}

:is(.chd-story__body, .chd-article__body, .is-root-container) :is(ul, ol) {
	padding-left: 1.25em;
}

/* Content lists keep their markers (the base reset removes them from
   every list with a class, and editor lists always have one) */
:is(.chd-story__body, .chd-article__body, .is-root-container) ul.wp-block-list {
	list-style: square;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) ol.wp-block-list {
	list-style: decimal;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) li + li {
	margin-top: 0.45em;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) li::marker {
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) a,
.chd-listing__intro a {
	color: var(--corten);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) a:hover {
	color: var(--corten-deep);
	text-decoration-thickness: 2px;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) hr {
	width: 100%;
	margin-block: 2.5em;
	border: 0;
	border-top: 1px solid var(--rule);
}

/* Small notes: review dates, labels for illustrative figures */
:is(.chd-story__body, .chd-article__body, .is-root-container) :is(.chd-note, .is-style-chd-note) {
	color: var(--muted);
	font-size: var(--fs-small);
	line-height: var(--lh-small);
}

/* ---------- Images and captions ---------- */

:is(.chd-story__body, .chd-article__body, .is-root-container) :is(.wp-block-image, figure) {
	margin-inline: 0;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	filter: saturate(0.86) contrast(1.02);
}

:is(.chd-story__body, .chd-article__body, .is-root-container) :is(figcaption, .wp-element-caption) {
	margin-top: var(--space-xs);
	color: var(--muted);
	font-size: var(--fs-small);
	line-height: var(--lh-small);
	text-align: left;
}

/* ---------- Blockquote and pull quote ---------- */

:is(.chd-story__body, .chd-article__body, .is-root-container) :is(.wp-block-quote, .wp-block-pullquote):not(.chd-takeaways, .is-style-chd-takeaways) {
	margin-inline: 0;
	padding: 0;
	border: 0;
	font-family: var(--font-display);
	font-size: var(--fs-h4);
	font-style: italic;
	line-height: var(--lh-h4);
}

:is(.chd-story__body, .chd-article__body, .is-root-container) :is(.wp-block-quote, .wp-block-pullquote):not(.chd-takeaways, .is-style-chd-takeaways)::before {
	content: "";
	display: block;
	width: 48px;
	margin-bottom: var(--space-sm);
	border-top: 1px solid var(--corten);
}

:is(.chd-story__body, .chd-article__body, .is-root-container) :is(.wp-block-quote, .wp-block-pullquote) cite {
	display: block;
	margin-top: var(--space-xs);
	color: var(--muted);
	font-family: var(--font-body);
	font-size: var(--fs-small);
	font-style: normal;
}

/* ---------- Key Takeaways ---------- */

:is(.chd-story__body, .chd-article__body, .is-root-container) .wp-block-quote:is(.chd-takeaways, .is-style-chd-takeaways) {
	margin-block: 2em;
	margin-inline: 0;
	padding: var(--space-md) clamp(20px, 1rem + 1.6vw, 36px) var(--space-lg);
	border: 0;
	border-top: 1px solid var(--ink);
	background: var(--paper);
	font-family: var(--font-body);
	font-size: var(--article-fs);
	font-style: normal;
}

:is(.chd-takeaways, .is-style-chd-takeaways) > p:first-child {
	margin: 0 0 var(--space-sm);
	font-size: var(--fs-label);
	font-weight: var(--fw-strong);
	letter-spacing: var(--ls-label);
	line-height: 1.4;
	text-transform: uppercase;
}

:is(.chd-takeaways, .is-style-chd-takeaways) > p:first-child strong {
	font-weight: inherit;
}

:is(.chd-takeaways, .is-style-chd-takeaways) ul {
	margin: 0;
	padding-left: 1.1em;
	list-style: square;
}

:is(.chd-takeaways, .is-style-chd-takeaways) li::marker {
	color: var(--corten);
}

/* ---------- Table of contents ---------- */

:is(.chd-story__body, .chd-article__body, .is-root-container) :is(.chd-toc, .is-style-chd-toc) {
	padding-block: var(--space-md);
	border-top: 1px solid var(--ink);
	border-bottom: 1px solid var(--rule);
}

:is(.chd-toc, .is-style-chd-toc) > p:first-child {
	margin: 0 0 var(--space-sm);
	font-size: var(--fs-label);
	font-weight: var(--fw-strong);
	letter-spacing: var(--ls-label);
	line-height: 1.4;
	text-transform: uppercase;
}

:is(.chd-toc, .is-style-chd-toc) > p:first-child strong {
	font-weight: inherit;
}

:is(.chd-toc, .is-style-chd-toc) :is(ol, ul) {
	margin: 0;
	padding-left: 1.6em;
	font-size: var(--fs-small);
	line-height: var(--lh-small);
}

:is(.chd-toc, .is-style-chd-toc) li,
:is(.chd-toc, .is-style-chd-toc) li + li {
	margin: 0;
	padding-block: calc(var(--space-2xs) / 2);
}

:is(.chd-story__body, .chd-article__body, .is-root-container) :is(.chd-toc, .is-style-chd-toc) a {
	color: var(--ink);
	text-decoration: none;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) :is(.chd-toc, .is-style-chd-toc) a:hover {
	color: var(--corten);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

@media (min-width: 720px) {
	:is(.chd-toc, .is-style-chd-toc) :is(ol, ul) {
		columns: 2;
		column-gap: var(--space-xl);
	}

	:is(.chd-toc, .is-style-chd-toc) li {
		break-inside: avoid;
	}
}

/* ---------- Callouts: Note, Warning, Key information ---------- */

:is(.chd-story__body, .chd-article__body, .is-root-container) [class*="is-style-chd-callout-"] {
	padding: var(--space-md) clamp(20px, 1rem + 1.6vw, 32px);
}

:is(.chd-story__body, .chd-article__body, .is-root-container) [class*="is-style-chd-callout-"] > * + * {
	margin-top: 0.75em;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) [class*="is-style-chd-callout-"] > :first-child {
	margin-top: 0;
}

.is-style-chd-callout-note {
	background: var(--paper);
}

.is-style-chd-callout-warning {
	border: 1px solid var(--corten);
}

.is-style-chd-callout-warning > p:first-child strong {
	color: var(--corten);
}

.is-style-chd-callout-key {
	border-top: 1px solid var(--ink);
	border-bottom: 1px solid var(--rule);
	padding-inline: 0 !important;
}

/* ---------- Tables ---------- */

:is(.chd-story__body, .chd-article__body, .is-root-container) .wp-block-table {
	margin-block: 2em;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-color: var(--rule-strong) transparent;
	scrollbar-width: thin;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) .wp-block-table:focus-visible {
	outline: 2px solid var(--corten);
	outline-offset: 3px;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid var(--ink);
	font-size: var(--fs-small);
	line-height: var(--lh-small);
	font-variant-numeric: tabular-nums lining-nums;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) .wp-block-table table.has-fixed-layout {
	table-layout: auto;
}

/* Wide tables (four or more columns) keep a readable width and scroll
   sideways on phones instead of squeezing their columns */
:is(.chd-story__body, .chd-article__body, .is-root-container) .wp-block-table table:has(tr > :nth-child(4)) {
	min-width: 600px;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) .wp-block-table :is(thead, tfoot) {
	border: 0;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) .wp-block-table :is(th, td) {
	padding: 0.7em 1em 0.7em 0;
	border: 0;
	border-bottom: 1px solid var(--rule);
	text-align: left;
	vertical-align: top;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) .wp-block-table :is(th, td):last-child {
	padding-right: 0;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) .wp-block-table thead th {
	padding-block: 0.8em;
	border-bottom: 1px solid var(--ink);
	color: var(--ink);
	font-size: var(--fs-label);
	font-weight: var(--fw-strong);
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: uppercase;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) .wp-block-table tbody th {
	font-weight: var(--fw-medium);
}

:is(.chd-story__body, .chd-article__body, .is-root-container) .wp-block-table tbody tr:last-child > * {
	border-bottom-color: var(--ink);
}

:is(.chd-story__body, .chd-article__body, .is-root-container) .wp-block-table .chd-num {
	padding-left: 1em;
	text-align: right;
	white-space: nowrap;
}

:is(.chd-story__body, .chd-article__body, .is-root-container) .wp-block-table :is(figcaption, .wp-element-caption) {
	margin-top: var(--space-xs);
	color: var(--muted);
	font-size: var(--fs-small);
	text-align: left;
}

/* ---------- Bar chart (Custom HTML: figure.chd-bars) ---------- */

.chd-bars {
	margin-block: 2.25em;
	margin-inline: 0;
	padding-top: var(--space-md);
	border-top: 1px solid var(--ink);
}

.chd-bars__title {
	margin-bottom: var(--space-md);
	font-size: var(--fs-small);
	line-height: var(--lh-small);
	color: var(--muted);
}

.chd-bars__title strong {
	display: block;
	margin-bottom: var(--space-3xs);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: var(--fs-h4);
	font-weight: 400;
	line-height: var(--lh-h4);
}

.chd-bars__title br {
	display: none;
}

.chd-bars ol.chd-bars__list {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 0 !important;
	list-style: none;
}

.chd-bars__row {
	display: grid;
	grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) 7.5rem;
	gap: 0.25rem var(--space-sm);
	align-items: center;
	margin: 0 !important;
	font-size: var(--fs-small);
	line-height: 1.35;
}

.chd-bars__track {
	display: block;
	height: 0.875rem;
}

.chd-bars__fill {
	display: block;
	width: var(--w);
	height: 100%;
	background: var(--stone);
	transform-origin: left center;
}

.chd-bars__row--accent .chd-bars__fill {
	background: var(--corten);
}

.chd-bars__row--accent :is(.chd-bars__label, .chd-bars__value) {
	color: var(--corten);
	font-weight: var(--fw-strong);
}

.chd-bars__value {
	font-variant-numeric: tabular-nums lining-nums;
	text-align: right;
	white-space: nowrap;
}

.chd-bars__sub {
	color: var(--muted);
}

.chd-bars__note {
	margin-top: var(--space-md);
	color: var(--muted);
	font-size: 0.8125rem;
	line-height: var(--lh-small);
}

.js .chd-bars .chd-bars__fill {
	transform: scaleX(0);
	transition: transform var(--dur-slow) var(--ease);
	transition-delay: calc(var(--i, 0) * 70ms);
}

.js .chd-bars.is-in .chd-bars__fill {
	transform: scaleX(1);
}

@media (max-width: 639px) {
	.chd-bars__row {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.chd-bars__label {
		grid-column: 1 / -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.js .chd-bars .chd-bars__fill {
		transform: none;
		transition: none;
	}
}

/* ---------- FAQ (recognised from its heading) ---------- */

.chd-story__body > .chd-faq__q {
	margin-top: 1.6em;
	padding-top: var(--space-md);
	border-top: 1px solid var(--rule);
}

.chd-story__body > .chd-faq__title + .chd-faq__q {
	margin-top: 1.25em;
	border-top-color: var(--ink);
}

/* ---------- End matter: method, about this guide, sources ---------- */

.chd-story__body > .chd-endnotes-start {
	margin-top: 3.5em;
	padding-top: var(--space-xl);
	border-top: 1px solid var(--ink);
}

.chd-story__body > .chd-endnote__title {
	font-size: var(--fs-h4);
	line-height: var(--lh-h4);
	letter-spacing: var(--ls-h4);
}

.chd-story__body > .chd-endnote__title:not(.chd-endnotes-start) {
	margin-top: 2em;
}

.chd-story__body > .chd-endnote {
	color: var(--ink-soft);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}

:is(.chd-story__body, .chd-article__body, .is-root-container) ul:is(.chd-sources, .is-style-chd-sources) {
	padding: 0;
	list-style: none;
	counter-reset: source;
	font-size: var(--fs-small);
	line-height: var(--lh-small);
}

:is(.chd-sources, .is-style-chd-sources) > li {
	position: relative;
	margin: 0;
	padding: var(--space-xs) 0 var(--space-xs) 2.25em;
	border-bottom: 1px solid var(--rule);
	counter-increment: source;
	overflow-wrap: anywhere;
}

:is(.chd-sources, .is-style-chd-sources) > li + li {
	margin-top: 0;
}

:is(.chd-sources, .is-style-chd-sources) > li::before {
	content: counter(source);
	position: absolute;
	left: 0;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

/* ---------- Author ---------- */

.chd-author {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: var(--space-md);
	align-items: start;
	margin-top: 0;
	padding: var(--space-lg) 0;
	border-top: 1px solid var(--ink);
}

.chd-author__mark {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: var(--fs-h4);
}

.chd-author__mark svg {
	display: block;
	width: 32px;
	height: auto;
	fill: currentColor;
}

.chd-author p {
	margin: 0;
}

.chd-author__role {
	color: var(--muted);
	font-size: var(--fs-label);
	font-weight: var(--fw-strong);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
}

.chd-author__name {
	margin-top: var(--space-3xs) !important;
	font-family: var(--font-display);
	font-size: var(--fs-h4);
	line-height: var(--lh-h4);
}

.chd-author__bio {
	margin-top: var(--space-2xs) !important;
	color: var(--muted);
	font-size: var(--fs-small);
	line-height: var(--lh-small);
	max-width: 56ch;
}

.chd-author__link {
	margin-top: var(--space-xs) !important;
	font-size: var(--fs-small);
}

.chd-author__link a {
	color: var(--ink);
	font-weight: var(--fw-medium);
	text-decoration: underline;
	text-decoration-color: var(--rule-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.chd-author__link a:hover {
	color: var(--corten);
	text-decoration-color: currentColor;
}

.chd-author + .chd-share--end {
	margin-top: 0;
}

/* ---------- Tags and comments ---------- */

.chd-story__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	margin-top: var(--space-lg);
	font-size: var(--fs-small);
}

.chd-story__tags a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 var(--space-sm);
	border: 1px solid var(--rule-strong);
	color: var(--ink-soft);
}

.chd-story__tags a:hover {
	border-color: var(--ink);
	color: var(--corten);
}

.chd-story__tags .wp-block-post-terms__separator {
	display: none;
}

.chd-story__comments {
	padding-top: var(--space-xl);
}

/* ---------- Related articles ---------- */

.chd-related {
	max-width: calc(var(--article-related) + var(--story-gutter) * 2);
	margin: var(--section-space) auto 0;
	padding: var(--space-xl) var(--story-gutter) 0;
	border-top: 1px solid var(--rule);
}

.chd-related__title {
	margin: 0 0 var(--head-space);
	font-family: var(--font-display);
	font-size: var(--fs-h3);
	font-weight: 400;
	line-height: var(--lh-h3);
	letter-spacing: var(--ls-h3);
}

.chd-related__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl) var(--grid-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.chd-related__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.chd-related__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.chd-related__card {
	display: grid;
	align-content: start;
	gap: var(--text-gap);
	margin: 0;
}

.chd-related__card p,
.chd-related__card h3 {
	margin: 0;
}

.chd-related__media {
	display: block;
	margin-bottom: calc(var(--media-gap) - var(--text-gap));
	overflow: hidden;
	aspect-ratio: var(--card-ratio);
	background: var(--paper);
}

.chd-related__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.86) contrast(1.02);
	transition: transform 1.1s var(--ease);
}

.chd-related__card:hover .chd-related__media img {
	transform: scale(1.03);
}

.chd-related__topic {
	color: var(--corten);
	font-size: var(--fs-label);
	font-weight: var(--fw-strong);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
}

.chd-related__name {
	font-family: var(--font-display);
	font-size: var(--fs-h4);
	font-weight: 400;
	line-height: var(--lh-h4);
	letter-spacing: var(--ls-h4);
	text-wrap: balance;
}

.chd-related__name a {
	color: var(--ink);
	transition: color var(--dur-fast) ease;
}

.chd-related__card:hover .chd-related__name a,
.chd-related__name a:focus-visible {
	color: var(--corten);
}

.chd-related__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.chd-related__card {
	position: relative;
}

.chd-related__date {
	color: var(--muted);
	font-size: var(--fs-small);
}

@media (prefers-reduced-motion: reduce) {
	.chd-related__media img,
	.chd-share__item {
		transition: none;
	}

	.chd-related__card:hover .chd-related__media img {
		transform: none;
	}
}

/* ---------- Print ---------- */

@media print {
	.js [data-reveal],
	.js .chd-bars .chd-bars__fill {
		opacity: 1;
		transform: none;
	}

	.chd-share,
	.chd-related,
	.chd-story__comments {
		display: none;
	}
}
