/**
 * Blog and single post. Builds on timeline.css (tokens, header, footer, buttons).
 *
 * 1. Listing heading & categories   4. Post hero        7. Post end
 * 2. Post cards & pagination        5. Contents (toc)   8. Related & call to action
 * 3. Reading progress               6. Prose
 */

/* 1. Listing heading & categories ------------------------------------------------------------ */

.tlp-blog-head {
	padding: clamp(56px, 8vw, 112px) var(--tlp-gutter) clamp(36px, 4vw, 56px);
}

.tlp-blog-head__inner {
	max-width: var(--tlp-max);
	margin-inline: auto;
}

.tlp-blog-head .tlp-kicker {
	margin: 0 0 22px;
}

.tlp-blog-head__title {
	max-width: 900px;
	margin: 0;
	font-size: clamp(46px, 7vw, 96px);
	line-height: 0.98;
	letter-spacing: -0.025em;
}

.tlp-blog-head__lead {
	max-width: 620px;
	margin: 24px 0 0;
	font-size: clamp(17px, 1.4vw, 20px);
	line-height: 1.55;
	color: var(--tlp-ink-2);
}

.tlp-chips {
	margin-top: 40px;
}

.tlp-chips ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tlp-chips a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid var(--tlp-line-2);
	border-radius: 99px;
	color: var(--tlp-ink-2);
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.tlp-chips a:hover {
	border-color: var(--tlp-ink);
	color: var(--tlp-ink);
}

.tlp-chips a[aria-current] {
	border-color: var(--tlp-ink);
	background: var(--tlp-ink);
	color: var(--tlp-paper);
}

.tlp-chips span {
	font-family: var(--tlp-mono);
	font-size: 11.5px;
	opacity: 0.6;
}

/* 2. Post cards & pagination ----------------------------------------------------------------- */

.tlp-blog-posts {
	padding: 0 var(--tlp-gutter) clamp(80px, 10vw, 128px);
}

.tlp-blog-posts__inner {
	max-width: var(--tlp-max);
	margin-inline: auto;
}

.tlp-post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	height: 100%;
	padding-top: 22px;
	border-top: 1px solid var(--tlp-line-2);
}

.tlp-post-card__media {
	order: -1;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: 12px;
	background: var(--tlp-paper-2);
}

.tlp-post-card.has-image {
	padding-top: 0;
	border-top: 0;
}

.tlp-post-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--tlp-ease);
}

.tlp-post-card:hover .tlp-post-card__img {
	transform: scale(1.03);
}

.tlp-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
}

.tlp-post-card__body > * {
	margin: 0;
}

.tlp-post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	font-family: var(--tlp-mono);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tlp-ink-3);
}

.tlp-post-card__cat {
	color: var(--tlp-accent-ink);
}

.tlp-post-card__cat::after {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	margin-left: 12px;
	border-radius: 50%;
	background: var(--tlp-line-2);
	vertical-align: middle;
}

.tlp-post-card__title {
	font-size: clamp(23px, 2vw, 27px) !important;
	line-height: 1.18 !important;
}

.tlp-post-card__title a {
	color: var(--tlp-ink);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	transition: text-decoration-color 0.2s;
}

/* the title link covers the whole card */
.tlp-post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.tlp-post-card:hover .tlp-post-card__title a {
	text-decoration-color: var(--tlp-accent);
}

.tlp-post-card__title a:focus-visible {
	outline: none;
}

.tlp-post-card__title a:focus-visible::after {
	outline: 2px solid var(--tlp-accent);
	outline-offset: 6px;
	border-radius: 12px;
}

.tlp-post-card__excerpt {
	color: var(--tlp-ink-2);
	font-size: 15.5px;
	line-height: 1.55;
}

.tlp-post-card__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 4px;
	font-family: var(--tlp-mono);
	font-size: 12px;
	color: var(--tlp-ink-3);
}

.tlp-post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--tlp-ink);
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.25s, transform 0.3s var(--tlp-ease);
}

.tlp-post-card:hover .tlp-post-card__more {
	opacity: 1;
	transform: none;
}

/* the newest post on the first page */
.tlp-post-card.is-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	margin-bottom: clamp(48px, 6vw, 80px);
	padding-top: 32px;
	border-top: 1px solid var(--tlp-ink);
}

.tlp-post-card.is-featured .tlp-post-card__media {
	border-radius: 16px;
}

.tlp-post-card.is-featured .tlp-post-card__body {
	gap: 16px;
}

.tlp-post-card.is-featured .tlp-post-card__title {
	font-size: clamp(32px, 4vw, 52px) !important;
	line-height: 1.05 !important;
}

.tlp-post-card.is-featured .tlp-post-card__excerpt {
	font-size: 18px;
}

.tlp-post-card.is-featured .tlp-post-card__more {
	opacity: 1;
	transform: none;
}

.tlp-post-card.is-featured:not(.has-image) {
	grid-template-columns: minmax(0, 1fr);
}

.tlp-post-card.is-featured:not(.has-image) .tlp-post-card__body {
	max-width: 860px;
}

@media (max-width: 860px) {
	.tlp-post-card.is-featured {
		grid-template-columns: minmax(0, 1fr);
	}
}

.tlp-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 56px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tlp-cards > li {
	margin: 0;
}

@media (max-width: 960px) {
	.tlp-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.tlp-cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
}

.tlp-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: clamp(56px, 7vw, 88px);
}

.tlp-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--tlp-line-2);
	border-radius: 10px;
	color: var(--tlp-ink-2);
	font-family: var(--tlp-mono);
	font-size: 13.5px;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.tlp-pagination a.page-numbers:hover {
	border-color: var(--tlp-ink);
	color: var(--tlp-ink);
}

.tlp-pagination .current {
	border-color: var(--tlp-ink);
	background: var(--tlp-ink);
	color: var(--tlp-paper);
}

.tlp-pagination .dots {
	border-color: transparent;
}

.tlp-pagination .tlp-icon {
	width: 16px;
	height: 16px;
}

.tlp-empty {
	padding: 64px 0;
	border-top: 1px solid var(--tlp-line-2);
	text-align: center;
}

.tlp-empty__title {
	margin: 0 0 12px;
	font-family: var(--tlp-serif);
	font-size: 30px;
}

/* 3. Reading progress ------------------------------------------------------------------------ */

.tlp-header {
	position: relative;
}

.tlp-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	pointer-events: none;
}

.tlp-progress i {
	display: block;
	height: 100%;
	background: var(--tlp-accent);
	transform: scaleX(0);
	transform-origin: left;
}

/* 4. Post hero ------------------------------------------------------------------------------- */

.tlp-post-hero {
	padding: clamp(48px, 7vw, 96px) var(--tlp-gutter) 0;
}

.tlp-post-hero__inner {
	max-width: 880px;
	margin-inline: auto;
	text-align: center;
}

.tlp-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--tlp-mono);
	font-size: 12.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tlp-crumbs li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tlp-crumbs li + li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tlp-accent);
}

.tlp-crumbs a {
	color: var(--tlp-ink-3);
	text-decoration: none;
}

.tlp-crumbs li:last-child a {
	color: var(--tlp-accent-ink);
}

.tlp-crumbs a:hover {
	color: var(--tlp-ink);
}

.tlp-post-hero__title {
	margin: 26px 0 0;
	font-size: clamp(40px, 5.6vw, 74px);
	line-height: 1.03;
	letter-spacing: -0.022em;
}

.tlp-post-hero__dek {
	max-width: 680px;
	margin: 24px auto 0;
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.55;
	color: var(--tlp-ink-2);
}

.tlp-byline {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 34px;
	text-align: left;
}

.tlp-byline__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--tlp-line);
}

.tlp-byline__text {
	display: grid;
	gap: 2px;
	margin: 0;
}

.tlp-byline__name {
	font-weight: 600;
	font-size: 15.5px;
	text-decoration: none;
}

.tlp-byline__name:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.tlp-byline__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	font-family: var(--tlp-mono);
	font-size: 12px;
	color: var(--tlp-ink-3);
}

.tlp-byline__meta > * + *::before {
	content: "·";
	margin: 0 8px;
}

.tlp-post-hero__figure {
	max-width: 1120px;
	margin: clamp(40px, 5vw, 64px) auto 0;
}

.tlp-post-hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	object-fit: cover;
	background: var(--tlp-paper-2);
}

.tlp-post-hero__figure figcaption {
	margin-top: 12px;
	font-family: var(--tlp-mono);
	font-size: 12px;
	color: var(--tlp-ink-3);
	text-align: center;
}

/* 5. Contents -------------------------------------------------------------------------------- */

.tlp-article__layout {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr);
	column-gap: clamp(32px, 4vw, 64px);
	max-width: 1360px;
	margin-inline: auto !important;
	padding: clamp(48px, 6vw, 80px) var(--tlp-gutter) 0;
}

.tlp-article__layout > * {
	margin: 0 !important;
}

.tlp-article__layout > .tlp-prose {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

.tlp-toc {
	grid-column: 1;
	grid-row: 1;
	justify-self: end;
	align-self: start;
	position: sticky;
	top: 112px;
	width: 100%;
	max-width: 240px;
}

.admin-bar .tlp-toc {
	top: 144px;
}

.tlp-toc summary {
	margin-bottom: 14px;
	list-style: none;
	font-family: var(--tlp-mono);
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tlp-ink-3);
}

.tlp-toc summary::-webkit-details-marker {
	display: none;
}

.tlp-toc__list {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* the contents are a small timeline: a line, a dot per heading */
.tlp-toc__list::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 10px;
	bottom: 10px;
	width: 1px;
	background: var(--tlp-line-2);
}

.tlp-toc__item {
	margin: 0;
}

.tlp-toc__item a {
	position: relative;
	display: block;
	padding: 6px 0 6px 22px;
	color: var(--tlp-ink-3);
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.2s;
}

.tlp-toc__item a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 11px;
	width: 9px;
	height: 9px;
	border: 1.5px solid var(--tlp-line-2);
	border-radius: 50%;
	background: var(--tlp-paper);
	transition: border-color 0.2s, background-color 0.2s, box-shadow 0.25s;
}

.tlp-toc__item.is-h3 a {
	padding-left: 34px;
	font-size: 13px;
}

.tlp-toc__item.is-h3 a::before {
	left: 2px;
	top: 12px;
	width: 5px;
	height: 5px;
	border-width: 0;
	background: var(--tlp-line-2);
}

.tlp-toc__item a:hover {
	color: var(--tlp-ink);
}

.tlp-toc__item a.is-passed {
	color: var(--tlp-ink-2);
}

.tlp-toc__item a.is-passed::before {
	border-color: var(--tlp-accent);
	background: var(--tlp-accent);
}

.tlp-toc__item a.is-active {
	color: var(--tlp-ink);
	font-weight: 500;
}

.tlp-toc__item a.is-active::before {
	border-color: var(--tlp-accent);
	background: var(--tlp-accent);
	box-shadow: 0 0 0 4px var(--tlp-accent-soft);
}

@media (min-width: 1100px) {
	.tlp-toc summary {
		pointer-events: none;
	}
}

@media (max-width: 1099px) {
	.tlp-article__layout {
		grid-template-columns: minmax(0, 720px);
		justify-content: center;
	}

	.tlp-article__layout > .tlp-prose {
		grid-column: 1;
		grid-row: 2;
	}

	.tlp-toc {
		position: static;
		grid-column: 1;
		max-width: none;
		margin-bottom: 40px !important;
	}

	.tlp-toc.is-empty {
		display: none;
	}

	.tlp-toc__box {
		padding: 0 18px;
		border: 1px solid var(--tlp-line);
		border-radius: 12px;
		background: var(--tlp-card);
	}

	.tlp-toc summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0;
		padding: 15px 0;
		cursor: pointer;
	}

	.tlp-toc summary::after {
		content: "";
		width: 8px;
		height: 8px;
		margin-right: 4px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg) translateY(-3px);
		transition: transform 0.25s;
	}

	.tlp-toc details[open] summary::after {
		transform: rotate(-135deg) translateY(-1px);
	}

	.tlp-toc__list {
		padding-bottom: 14px;
	}
}

/* 6. Prose ----------------------------------------------------------------------------------- */

.tlp-prose {
	color: #2c2a26;
	font-size: 18.5px;
	line-height: 1.75;
}

.tlp-prose > * {
	margin-block: 0 !important;
}

.tlp-prose > * + * {
	margin-block-start: 1.35em !important;
}

/* the opening paragraph sets the tone */
.tlp-prose > p:first-child {
	font-size: 1.14em;
	line-height: 1.65;
	color: var(--tlp-ink);
}

.tlp-prose :where(h2, h3, h4) {
	scroll-margin-top: 110px;
	color: var(--tlp-ink);
}

.tlp-prose > h2 {
	margin-block-start: 2.3em !important;
	font-size: clamp(28px, 2.6vw, 36px);
	line-height: 1.15;
}

.tlp-prose > h3 {
	margin-block-start: 1.9em !important;
	font-size: clamp(22px, 2vw, 26px);
	line-height: 1.25;
}

.tlp-prose > h4 {
	margin-block-start: 1.7em !important;
	font-family: var(--tlp-sans);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0;
}

.tlp-prose > :is(h2, h3, h4) + * {
	margin-block-start: 0.7em !important;
}

.tlp-prose a:where(:not(.wp-block-button__link)) {
	color: var(--tlp-ink);
	text-decoration: underline;
	text-decoration-color: rgba(212, 70, 44, 0.55);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.2s;
}

.tlp-prose a:where(:not(.wp-block-button__link)):hover {
	text-decoration-color: var(--tlp-accent);
}

.tlp-prose strong {
	font-weight: 600;
	color: var(--tlp-ink);
}

.tlp-prose :where(ul, ol) {
	padding-left: 1.3em;
}

.tlp-prose li + li {
	margin-top: 0.45em;
}

.tlp-prose ul li::marker {
	color: var(--tlp-accent);
}

.tlp-prose ol li::marker {
	font-family: var(--tlp-mono);
	font-size: 0.85em;
	color: var(--tlp-ink-3);
}

.tlp-prose :not(pre) > code {
	padding: 0.12em 0.4em;
	border-radius: 5px;
	background: var(--tlp-paper-2);
	font-family: var(--tlp-mono);
	font-size: 0.84em;
	color: var(--tlp-ink);
}

.tlp-prose pre,
.tlp-prose .wp-block-code {
	overflow-x: auto;
	padding: 20px 24px;
	border-radius: 12px;
	background: #1d1c1a;
	color: #ece7dc;
	font-family: var(--tlp-mono);
	font-size: 14.5px;
	line-height: 1.65;
	tab-size: 4;
}

.tlp-prose pre code {
	font-family: inherit;
	background: none;
	color: inherit;
}

.tlp-prose .wp-block-quote,
.tlp-prose > blockquote {
	padding: 4px 0 4px 26px;
	border-left: 2px solid var(--tlp-accent);
}

.tlp-prose .wp-block-quote p,
.tlp-prose > blockquote p {
	font-family: var(--tlp-serif);
	font-size: 1.3em;
	font-style: italic;
	line-height: 1.45;
	color: var(--tlp-ink);
}

.tlp-prose .wp-block-quote cite {
	display: block;
	margin-top: 10px;
	font-family: var(--tlp-mono);
	font-size: 12.5px;
	font-style: normal;
	color: var(--tlp-ink-3);
}

.tlp-prose .wp-block-pullquote {
	padding: 36px 0;
	border-block: 1px solid var(--tlp-line-2);
	text-align: center;
}

.tlp-prose .wp-block-pullquote blockquote {
	margin: 0;
}

.tlp-prose .wp-block-pullquote p {
	font-family: var(--tlp-serif);
	font-size: clamp(26px, 2.6vw, 32px);
	line-height: 1.3;
	color: var(--tlp-ink);
}

.tlp-prose .wp-block-pullquote cite {
	display: block;
	margin-top: 14px;
	font-family: var(--tlp-mono);
	font-size: 12.5px;
	font-style: normal;
	color: var(--tlp-ink-3);
}

.tlp-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.tlp-prose figure {
	margin-inline: 0;
}

.tlp-prose figcaption,
.tlp-prose .wp-element-caption {
	margin-top: 10px;
	font-family: var(--tlp-mono);
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--tlp-ink-3);
	text-align: center;
}

.tlp-prose .wp-block-separator,
.tlp-prose > hr {
	height: auto;
	margin-block: 2.6em !important;
	border: 0;
	background: none;
	text-align: center;
	opacity: 1;
}

.tlp-prose .wp-block-separator::before,
.tlp-prose > hr::before {
	content: "· · ·";
	color: var(--tlp-ink-3);
	font-size: 22px;
	letter-spacing: 0.6em;
}

.tlp-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.tlp-prose .wp-block-table :is(th, td) {
	border: 0;
}

.tlp-prose .wp-block-table th,
.tlp-prose th {
	padding: 10px 12px 10px 0;
	border-bottom: 1px solid var(--tlp-ink);
	font-family: var(--tlp-mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.05em;
	text-align: left;
	text-transform: uppercase;
	color: var(--tlp-ink-3);
}

.tlp-prose .wp-block-table td,
.tlp-prose td {
	padding: 12px 12px 12px 0;
	border-bottom: 1px solid var(--tlp-line);
	vertical-align: top;
}

.tlp-prose .wp-block-table {
	overflow-x: auto;
}

.tlp-prose .wp-block-table thead {
	border-bottom: 0;
}

.tlp-prose .wp-block-details {
	padding: 4px 0;
	border-block: 1px solid var(--tlp-line);
}

.tlp-prose .wp-block-details summary {
	padding: 10px 0;
	cursor: pointer;
	font-weight: 600;
	color: var(--tlp-ink);
}

.tlp-prose .wp-block-embed iframe {
	width: 100%;
	border-radius: 12px;
}

@media (min-width: 1100px) {
	.tlp-prose > .alignwide {
		margin-inline: -100px;
	}

	.tlp-prose > .alignfull {
		margin-inline: -160px;
	}
}

/* 7. Post end -------------------------------------------------------------------------------- */

.tlp-post-end {
	max-width: calc(720px + 2 * var(--tlp-gutter));
	margin-inline: auto !important;
	padding: clamp(56px, 7vw, 88px) var(--tlp-gutter) clamp(80px, 10vw, 128px);
}

.tlp-post-end__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 24px;
	padding-top: 24px;
	border-top: 1px solid var(--tlp-ink);
}

.tlp-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tlp-tags a {
	display: inline-block;
	padding: 5px 11px;
	border-radius: 99px;
	background: var(--tlp-paper-2);
	color: var(--tlp-ink-2);
	font-family: var(--tlp-mono);
	font-size: 12.5px;
	text-decoration: none;
}

.tlp-tags a:hover {
	background: var(--tlp-ink);
	color: var(--tlp-paper);
}

.tlp-share {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.tlp-share__label {
	margin-right: 6px;
	font-family: var(--tlp-mono);
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tlp-ink-3);
}

.tlp-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--tlp-line-2);
	border-radius: 9px;
	background: transparent;
	color: var(--tlp-ink-2);
	font: 500 14px/1 var(--tlp-sans);
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
}

.tlp-share__btn.is-icon {
	padding: 0;
}

.tlp-share__btn:hover {
	border-color: var(--tlp-ink);
	color: var(--tlp-ink);
}

.tlp-share__btn .tlp-icon {
	width: 16px;
	height: 16px;
}

.tlp-author {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin-top: 40px;
	padding: 24px;
	border: 1px solid var(--tlp-line);
	border-radius: 16px;
	background: var(--tlp-card);
}

.tlp-author__avatar {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 50%;
}

.tlp-author p {
	margin: 0;
}

.tlp-author__label {
	font-family: var(--tlp-mono);
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tlp-ink-3);
}

.tlp-author__name {
	margin-top: 4px !important;
	font-family: var(--tlp-serif);
	font-size: 23px;
	line-height: 1.2;
}

.tlp-author__name a {
	text-decoration: none;
}

.tlp-author__name a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.tlp-author__bio {
	margin-top: 8px !important;
	color: var(--tlp-ink-2);
	font-size: 15.5px;
}

.tlp-adjacent {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.tlp-adjacent__link {
	display: grid;
	gap: 8px;
	padding: 18px 20px;
	border: 1px solid var(--tlp-line);
	border-radius: 14px;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s;
}

.tlp-adjacent__link:hover {
	border-color: var(--tlp-ink);
	background: var(--tlp-card);
}

.tlp-adjacent__link.is-next {
	grid-column: 2;
	text-align: right;
}

.tlp-adjacent__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--tlp-mono);
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tlp-ink-3);
}

.is-next .tlp-adjacent__label {
	justify-content: flex-end;
}

.tlp-adjacent__label .tlp-icon {
	width: 14px;
	height: 14px;
}

.tlp-adjacent__title {
	font-family: var(--tlp-serif);
	font-size: 19px;
	line-height: 1.3;
	color: var(--tlp-ink);
}

@media (max-width: 600px) {
	.tlp-share {
		margin-left: 0;
	}

	.tlp-adjacent {
		grid-template-columns: minmax(0, 1fr);
	}

	.tlp-adjacent__link.is-next {
		grid-column: 1;
	}
}

/* 8. Related & call to action ---------------------------------------------------------------- */

.tlp-related {
	padding: clamp(64px, 8vw, 104px) var(--tlp-gutter);
	border-top: 1px solid var(--tlp-line-2);
	background: var(--tlp-paper-2);
}

.tlp-related__inner {
	max-width: var(--tlp-max);
	margin-inline: auto;
}

.tlp-related__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 36px;
}

.tlp-related__title {
	margin: 0;
	font-size: clamp(32px, 3.6vw, 44px);
	line-height: 1.1;
}

.tlp-blog-cta {
	padding: clamp(56px, 7vw, 88px) var(--tlp-gutter);
	background: var(--tlp-night);
	color: #cfc8bc;
}

.tlp-blog-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px 40px;
	max-width: var(--tlp-max);
	margin-inline: auto;
}

.tlp-blog-cta__mark {
	display: block;
	flex: none;
	width: 64px;
	height: 64px;
}

.tlp-blog-cta__mark img {
	display: block;
	width: 64px;
	height: 64px;
}

.tlp-blog-cta__text {
	flex: 1 1 380px;
}

.tlp-blog-cta__text p {
	margin: 0;
}

.tlp-blog-cta__title {
	margin-bottom: 6px !important;
	font-family: var(--tlp-serif);
	font-size: clamp(24px, 2.4vw, 30px);
	line-height: 1.2;
	color: #f7f3ec;
}

.tlp-blog-cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
}

.tlp-page .tlp-blog-cta .tlp-btn {
	border-color: #f7f3ec;
	background: #f7f3ec;
	color: var(--tlp-ink);
}

.tlp-page .tlp-blog-cta .tlp-btn:hover {
	background: #fff;
}

.tlp-blog-cta .tlp-link {
	color: #f7f3ec;
	text-decoration-color: rgba(247, 243, 236, 0.35);
}

/* the editor shows the toc in place, not sticky */
.editor-styles-wrapper .tlp-toc {
	position: static;
}
