/* =========================================================
   threadslabin - BLOG
   Loads on: blog listing, single post, category, tag, author
   (mapping lives in inc/body-classes.php)

   Save as: assets/css/blog.css

   Scoped to .tl-blog so nothing here can reach the shop, the
   product page or the cart.
   ========================================================= */

.tl-blog {
	--bl-accent: var(--madder, #a8402f);
	--bl-accent-dark: #8c3526;
	--bl-accent-soft: #faf1ef;

	--bl-ink: var(--ink, #1a1d1a);
	--bl-text: var(--ink-soft, #5d625c);
	--bl-muted: #8a8f89;

	--bl-border: rgba(26, 29, 26, 0.12);
	--bl-border-soft: rgba(26, 29, 26, 0.07);

	--bl-shadow: 0 14px 34px rgba(26, 29, 26, 0.07);
	--bl-shadow-sm: 0 6px 18px rgba(26, 29, 26, 0.05);

	--bl-radius: 14px;
	--bl-radius-sm: 9px;

	padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

/* =========================================================
   1. HEADER
   ========================================================= */

.tl-blog__header {
	margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
	text-align: center;
}

.tl-blog__title {
	margin: 0;
	font-family: var(--display, system-ui, sans-serif);
	font-size: clamp(2.6rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.04em;
	color: var(--bl-ink);
}

.tl-blog__intro {
	max-width: 62ch;
	margin: 0.9rem auto 0;
	color: var(--bl-text);
	line-height: 1.7;
}

.tl-blog__intro p:last-child { margin-bottom: 0; }

/* =========================================================
   2. LAYOUT

   Content column first, sidebar second. The sidebar sticks
   below the sticky site header rather than under the top of
   the viewport, so it never hides behind the navigation.
   ========================================================= */

.tl-blog__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
	gap: 32px;
}

.tl-blog__main { min-width: 0; }

.tl-blog__sidebar {
	position: sticky;
	top: calc(var(--header-height, 78px) + 22px);
}

.tl-blog__sidebar-inner {
	display: grid;
	gap: 20px;
	/* Long sidebars scroll on their own instead of pushing the
	   sticky box past the bottom of the screen. */
	max-height: calc(100vh - var(--header-height, 78px) - 44px);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.tl-blog__sidebar-inner::-webkit-scrollbar { width: 6px; }
.tl-blog__sidebar-inner::-webkit-scrollbar-thumb {
	background: var(--bl-border);
	border-radius: 999px;
}

/* =========================================================
   3. POST GRID
   ========================================================= */

.tl-posts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 1.25rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.tl-post { margin: 0; }

.tl-post__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	padding: 0.75rem;
	background: #fff;
	border: 1px solid var(--bl-border);
	border-radius: var(--bl-radius);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tl-post__inner:hover {
	border-color: var(--bl-ink);
	box-shadow: var(--bl-shadow);
	transform: translateY(-2px);
}

/* ---------- Image ---------- */

.tl-post__media {
	display: block;
	margin-bottom: 0.9rem;
	border-radius: 10px;
	overflow: hidden;
	background: var(--chalk, #f3f2ed);
}

.tl-post__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.tl-post__inner:hover .tl-post__media img { transform: scale(1.04); }

/* Placeholder when a post has no featured image */
.tl-post__noimg {
	display: block;
	aspect-ratio: 16 / 10;
	background:
		repeating-linear-gradient(
			45deg,
			var(--chalk, #f3f2ed) 0 10px,
			#eceae3 10px 20px
		);
}

/* ---------- Body ---------- */

.tl-post__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 0 0.35rem 0.35rem;
}

.tl-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 0.7rem;
}

.tl-blog .tl-post__cat {
	padding: 0.32em 0.65em;
	background: var(--bl-accent-soft);
	border: 1px solid rgba(168, 64, 47, 0.18);
	border-radius: 999px;
	color: var(--bl-accent);
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.tl-blog .tl-post__cat:hover {
	background: var(--bl-accent);
	color: #fff;
}

.tl-post__date {
	font-size: 0.8rem;
	color: var(--bl-muted);
	font-variant-numeric: tabular-nums;
}

.tl-post__title {
	margin: 0 0 0.5rem;
	font-family: var(--display, system-ui, sans-serif);
	font-size: 1.22rem;
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -0.01em;
}

.tl-blog .tl-post__title a {
	color: var(--bl-ink);
	text-decoration: none;
}

.tl-blog .tl-post__title a:hover { color: var(--bl-accent); }

.tl-post__excerpt {
	margin: 0 0 1.1rem;
	font-size: 0.94rem;
	line-height: 1.65;
	color: var(--bl-text);
}

/* ---------- Read more ---------- */

.tl-blog .tl-post__more {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: auto;
	padding: 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	align-self: flex-start;
	color: var(--bl-ink);
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: color 0.16s ease, gap 0.16s ease;
}

.tl-blog .tl-post__more:hover {
	color: var(--bl-accent);
	gap: 0.7rem;
}

.tl-post__more svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
	flex: 0 0 auto;
}

/* =========================================================
   4. SIDEBAR WIDGETS
   ========================================================= */

.tl-blog-widget {
	padding: 20px;
	background: #fff;
	border: 1px solid var(--bl-border);
	border-radius: var(--bl-radius);
	box-shadow: var(--bl-shadow-sm);
}

.tl-blog-widget__title,
.tl-blog-widget .widget-title {
	margin: 0 0 1rem;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid var(--bl-border);
	font-family: var(--display, system-ui, sans-serif);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--bl-ink);
}

/* ---------- Recent posts ---------- */

.tl-recent {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.9rem;
}

.tl-recent__item {
	display: flex;
	gap: 0.8rem;
	align-items: flex-start;
	margin: 0;
}

.tl-recent__item + .tl-recent__item {
	padding-top: 0.9rem;
	border-top: 1px dotted var(--bl-border);
}

.tl-recent__media {
	flex: 0 0 68px;
	width: 68px;
	height: 68px;
	border-radius: var(--bl-radius-sm);
	overflow: hidden;
	background: var(--chalk, #f3f2ed);
	display: block;
}

.tl-recent__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tl-recent__noimg { display: block; width: 100%; height: 100%; }

.tl-recent__info { min-width: 0; }

.tl-recent__title {
	margin: 0 0 0.25rem;
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.35;
}

.tl-blog .tl-recent__title a {
	color: var(--bl-ink);
	text-decoration: none;
}

.tl-blog .tl-recent__title a:hover { color: var(--bl-accent); }

.tl-recent__date {
	font-size: 0.78rem;
	color: var(--bl-muted);
	font-variant-numeric: tabular-nums;
}

/* ---------- Categories ---------- */

.tl-blog-cats {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tl-blog-cats li { margin: 0; }

.tl-blog-cats li + li { border-top: 1px dotted var(--bl-border-soft); }

.tl-blog .tl-blog-cats a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	padding: 0.52rem 0.5rem;
	border-radius: 6px;
	color: var(--bl-ink);
	font-size: 0.94rem;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.tl-blog .tl-blog-cats a:hover {
	background: var(--chalk, #f3f2ed);
	color: var(--bl-accent);
}

.tl-blog-cats__name { min-width: 0; }

.tl-blog-cats__count {
	flex: 0 0 auto;
	min-width: 1.8em;
	padding: 0.1em 0.45em;
	background: var(--chalk, #f3f2ed);
	border-radius: 999px;
	color: var(--bl-muted);
	font-size: 0.76rem;
	font-weight: 700;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

/* Category currently being viewed */
.tl-blog .tl-blog-cats .is-current > a,
.tl-blog .tl-blog-cats .is-current > a:hover {
	background: var(--bl-ink);
	color: #fff;
}

.tl-blog-cats .is-current > a .tl-blog-cats__count {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

/* ---------- Widgets dropped in from the Customizer ---------- */

.tl-blog-widget--custom .widget { margin-bottom: 1.25rem; }
.tl-blog-widget--custom .widget:last-child { margin-bottom: 0; }

.tl-blog-widget--custom ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tl-blog .tl-blog-widget--custom a {
	color: var(--bl-ink);
	text-decoration: none;
}

.tl-blog .tl-blog-widget--custom a:hover { color: var(--bl-accent); }

/* =========================================================
   5. AJAX LOADING STATE

   The loader floats over the grid so the page does not grow a
   strip at the bottom every time the page number changes, and
   the scroll position stays where the script put it.
   ========================================================= */

.tl-blog__main { position: relative; }

.tl-blog__main:focus { outline: none; }

.tl-blog__results { min-height: 220px; }

.tl-blog__results.is-busy {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.tl-blog__loader {
	position: absolute;
	top: 130px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 1.1rem;
	background: #fff;
	border: 1px solid var(--bl-border);
	border-radius: 999px;
	box-shadow: var(--bl-shadow);
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--bl-ink);
}

.tl-blog__loader[hidden] { display: none; }

.tl-blog__spinner {
	width: 15px;
	height: 15px;
	border: 2px solid var(--bl-border);
	border-top-color: var(--bl-accent);
	border-radius: 50%;
	animation: tl-blog-spin 0.7s linear infinite;
}

@keyframes tl-blog-spin {
	to { transform: rotate(360deg); }
}

/* =========================================================
   6. PAGINATION
   ========================================================= */

.tl-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 2.25rem;
}

.tl-blog .tl-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 42px;
	height: 42px;
	padding: 0 0.85em;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--bl-border);
	border-radius: var(--bl-radius-sm);
	color: var(--bl-ink);
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.tl-blog .tl-pagination a.page-numbers:hover {
	border-color: var(--bl-ink);
	background: var(--chalk, #f3f2ed);
}

.tl-blog .tl-pagination .page-numbers.current {
	background: var(--bl-ink);
	border-color: var(--bl-ink);
	color: #fff;
}

.tl-blog .tl-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	min-width: 26px;
	padding: 0;
}

/* =========================================================
   7. EMPTY STATE
   ========================================================= */

.tl-blog-empty {
	display: grid;
	justify-items: center;
	gap: 0.6rem;
	padding: clamp(2.5rem, 7vw, 4rem) 1.5rem;
	text-align: center;
	background: #fff;
	border: 1px solid var(--bl-border);
	border-radius: var(--bl-radius);
}

.tl-blog-empty svg {
	width: 44px;
	height: 44px;
	color: var(--bl-muted);
	margin-bottom: 0.4rem;
}

.tl-blog-empty strong {
	font-family: var(--display, system-ui, sans-serif);
	font-size: 1.25rem;
	color: var(--bl-ink);
}

.tl-blog-empty span {
	max-width: 46ch;
	color: var(--bl-text);
	line-height: 1.6;
}

/* Admin-only line inside the empty state */
.tl-blog-empty__admin {
	max-width: 46ch;
	margin-top: 0.3rem;
	padding: 0.6rem 0.9rem;
	background: var(--chalk, #f3f2ed);
	border-radius: var(--bl-radius-sm);
	color: var(--bl-muted);
	font-size: 0.84rem;
	line-height: 1.5;
}

.tl-blog .tl-blog-empty__btn {
	margin-top: 0.8rem;
	padding: 0.8em 1.6em;
	background: var(--bl-accent);
	border-radius: var(--bl-radius-sm);
	color: #fff;
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.16s ease;
}

.tl-blog .tl-blog-empty__btn:hover { background: var(--bl-accent-dark); }

/* =========================================================
   8. RESPONSIVE
   ========================================================= */

/* Laptop: narrower sidebar, tighter gutters */
@media (max-width: 1200px) {
	.tl-blog__layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
	.tl-posts { gap: 1.25rem 1rem; }
	.tl-post__title { font-size: 1.14rem; }
}

/* Tablet: sidebar moves below the posts */
@media (max-width: 992px) {
	.tl-blog__layout { grid-template-columns: 1fr; gap: 28px; }

	.tl-blog__sidebar {
		position: static;
	}

	.tl-blog__sidebar-inner {
		max-height: none;
		overflow: visible;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}
}

/* Small tablet */
@media (max-width: 768px) {
	.tl-blog__sidebar-inner { grid-template-columns: 1fr; }
}

/* Phone: one post per row */
@media (max-width: 600px) {
	.tl-blog { padding-block: 2rem; }

	.tl-posts { grid-template-columns: 1fr; gap: 1rem; }

	.tl-post__title { font-size: 1.1rem; }
	.tl-post__excerpt { font-size: 0.9rem; }

	.tl-blog-widget { padding: 16px; }

	.tl-blog .tl-pagination .page-numbers {
		min-width: 38px;
		height: 38px;
		padding: 0 0.6em;
		font-size: 0.85rem;
	}

	/* Prev/Next keep their arrows but drop the words on narrow screens */
	.tl-pagination__label { display: none; }
}

@media (max-width: 400px) {
	.tl-recent__media { flex-basis: 58px; width: 58px; height: 58px; }
}

/* =========================================================
   9. MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
	.tl-post__inner,
	.tl-post__media img,
	.tl-blog .tl-post__more { transition: none !important; }

	.tl-post__inner:hover { transform: none; }
	.tl-post__inner:hover .tl-post__media img { transform: none; }

	.tl-blog__spinner { animation-duration: 1.6s; }
}

/* =========================================================
   10. SINGLE POST

   Reuses .tl-blog__layout, so the article sits in the same
   two column frame as the listing and the sidebar does not
   jump when a reader opens a post.
   ========================================================= */

.tl-single__main {
	min-width: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}

/* ---------- Breadcrumb ---------- */

.tl-single__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 1.5rem;
	font-size: 0.85rem;
	color: var(--bl-muted);
}

.tl-blog .tl-single__crumbs a {
	color: var(--bl-text);
	text-decoration: none;
}

.tl-blog .tl-single__crumbs a:hover {
	color: var(--bl-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tl-single__crumbs-current {
	color: var(--bl-muted);
	max-width: 32ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- Header ---------- */

.tl-single__header { margin-bottom: 1.5rem; }

.tl-single__header .tl-post__cat { margin-bottom: 0.9rem; display: inline-flex; }

.tl-single__title {
	margin: 0 0 1rem;
	font-family: var(--display, system-ui, sans-serif);
	font-size: clamp(1.9rem, 3.6vw, 2.9rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: var(--bl-ink);
}

.tl-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	padding-bottom: 1.2rem;
	border-bottom: 1px solid var(--bl-border);
	font-size: 0.88rem;
	color: var(--bl-muted);
}

.tl-single__author {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 600;
	color: var(--bl-text);
}

.tl-single__author img {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: block;
}

/* ---------- Featured image ---------- */

.tl-single__media {
	margin: 0 0 1.75rem;
	border-radius: var(--bl-radius);
	overflow: hidden;
	background: var(--chalk, #f3f2ed);
}

.tl-single__media img {
	width: 100%;
	max-height: 460px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

.tl-single__media figcaption {
	padding: 0.7rem 0.9rem;
	font-size: 0.82rem;
	color: var(--bl-muted);
	text-align: center;
}

/* ---------- Article body ---------- */

/*
 * No max-width on the text itself.
 *
 * It was capped at 72ch for readability, but the article column on a
 * 1360px page is wider than that, so every post ended with a strip of
 * empty page between the text and the sidebar. The readable measure is
 * set by narrowing the page below instead, which keeps the line length
 * right AND closes the gap.
 */
.tl-single__content {
	max-width: none;
	font-size: 1.02rem;
	line-height: 1.78;
	color: var(--bl-text);
}

/*
 * A single post is one column of prose plus a sidebar, so it does not
 * need the full 1360px the listing uses for its card grid. At 1120px the
 * article column lands close to 70 characters on its own.
 */
.tl-single > .wrap {
	width: min(100% - 2.5rem, 1120px);
}

.tl-single__content > *:first-child { margin-top: 0; }

.tl-single__content p { margin: 0 0 1.25rem; }

/* The first paragraph reads as a standfirst */
.tl-single__content > p:first-of-type {
	font-size: 1.12rem;
	line-height: 1.7;
	color: var(--bl-ink);
}

.tl-single__content h2,
.tl-single__content h3,
.tl-single__content h4 {
	font-family: var(--display, system-ui, sans-serif);
	color: var(--bl-ink);
	letter-spacing: -0.02em;
	/* Keeps a heading clear of the sticky header when the contents
	   list jumps to it */
	scroll-margin-top: calc(var(--header-height, 78px) + 24px);
}

.tl-single__content h2 {
	margin: 2.4rem 0 0.9rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--bl-border-soft);
	font-size: 1.55rem;
	font-weight: 700;
	line-height: 1.25;
}

.tl-single__content h3 {
	margin: 1.9rem 0 0.7rem;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
}

.tl-single__content h4 {
	margin: 1.5rem 0 0.6rem;
	font-size: 1.04rem;
	font-weight: 700;
}

.tl-single__content ul,
.tl-single__content ol {
	margin: 0 0 1.25rem;
	padding-left: 1.3rem;
}

.tl-single__content li { margin-bottom: 0.5rem; }

.tl-single__content li::marker { color: var(--bl-accent); }

.tl-single__content strong { color: var(--bl-ink); font-weight: 700; }

.tl-blog .tl-single__content a {
	color: var(--bl-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.tl-blog .tl-single__content a:hover { color: var(--bl-accent-dark); }

.tl-single__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--bl-radius-sm);
	margin: 0.5rem 0 1.5rem;
}

.tl-single__content blockquote {
	margin: 1.75rem 0;
	padding: 1.1rem 1.4rem;
	background: var(--bl-accent-soft);
	border-left: 3px solid var(--bl-accent);
	border-radius: 0 var(--bl-radius-sm) var(--bl-radius-sm) 0;
	font-size: 1.06rem;
	color: var(--bl-ink);
}

.tl-single__content blockquote p:last-child { margin-bottom: 0; }

.tl-single__content code {
	padding: 0.15em 0.4em;
	background: var(--chalk, #f3f2ed);
	border-radius: 4px;
	font-size: 0.9em;
}

/* Tables scroll sideways on narrow screens instead of breaking the page */
.tl-single__content table {
	width: 100%;
	margin: 1.5rem 0;
	border-collapse: collapse;
	font-size: 0.94rem;
}

.tl-single__content th,
.tl-single__content td {
	padding: 0.7rem 0.8rem;
	border-bottom: 1px solid var(--bl-border-soft);
	text-align: left;
}

.tl-single__content th {
	font-family: var(--display, system-ui, sans-serif);
	font-weight: 700;
	color: var(--bl-ink);
	border-bottom-color: var(--bl-border);
}

.tl-single__content hr {
	margin: 2.2rem 0;
	border: 0;
	border-top: 1px solid var(--bl-border);
}

/* ---------- Footer: tags and share ---------- */

.tl-single__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2.25rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--bl-border);
}

.tl-single__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.85rem;
}

.tl-single__tags-label {
	color: var(--bl-muted);
	font-weight: 600;
}

.tl-blog .tl-single__tags a {
	padding: 0.3em 0.65em;
	background: var(--chalk, #f3f2ed);
	border-radius: 999px;
	color: var(--bl-text);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.tl-blog .tl-single__tags a:hover {
	background: var(--bl-ink);
	color: #fff;
}

.tl-single__share {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.tl-single__share-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--bl-muted);
}

.tl-single__share-links { display: inline-flex; gap: 0.35rem; }

.tl-blog .tl-single__share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: #fff;
	border: 1px solid var(--bl-border);
	border-radius: 50%;
	color: var(--bl-ink);
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.tl-blog .tl-single__share-link:hover {
	background: var(--bl-ink);
	border-color: var(--bl-ink);
	color: #fff;
	transform: translateY(-2px);
}

.tl-single__share-link svg { width: 17px; height: 17px; }

/* ---------- Previous / next ---------- */

.tl-single__nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 2rem;
}

.tl-blog .tl-single__nav-link {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1rem 1.15rem;
	background: #fff;
	border: 1px solid var(--bl-border);
	border-radius: var(--bl-radius);
	color: var(--bl-ink);
	text-decoration: none;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.tl-blog .tl-single__nav-link:hover {
	border-color: var(--bl-ink);
	box-shadow: var(--bl-shadow-sm);
}

.tl-single__nav-link.is-next { text-align: right; }

.tl-single__nav-label {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bl-muted);
}

.tl-single__nav-title {
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.35;
}

/* ---------- Contents list ---------- */

.tl-toc__list {
	list-style: none;
	counter-reset: tl-toc;
	margin: 0;
	padding: 0;
}

.tl-toc__list li {
	counter-increment: tl-toc;
	margin: 0;
}

.tl-toc__list li + li { border-top: 1px dotted var(--bl-border-soft); }

.tl-blog .tl-toc__list a {
	display: flex;
	gap: 0.55rem;
	padding: 0.5rem 0.4rem;
	border-radius: 6px;
	color: var(--bl-text);
	font-size: 0.9rem;
	line-height: 1.45;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.tl-blog .tl-toc__list a::before {
	content: counter(tl-toc);
	flex: 0 0 auto;
	min-width: 1.4em;
	color: var(--bl-muted);
	font-family: var(--display, system-ui, sans-serif);
	font-weight: 700;
	font-size: 0.82rem;
	font-variant-numeric: tabular-nums;
}

.tl-blog .tl-toc__list a:hover {
	background: var(--chalk, #f3f2ed);
	color: var(--bl-accent);
}

/* ---------- Comments ---------- */

.tl-single__comments {
	margin-top: 2.5rem;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--bl-border);
	border-radius: var(--bl-radius);
}

.tl-single__comments .comment-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.tl-single__comments h2,
.tl-single__comments h3,
.tl-single__comments .comment-reply-title {
	margin: 0 0 1rem;
	font-family: var(--display, system-ui, sans-serif);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--bl-ink);
}

.tl-single__comments label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--bl-ink);
}

.tl-single__comments input[type="text"],
.tl-single__comments input[type="email"],
.tl-single__comments input[type="url"],
.tl-single__comments textarea {
	width: 100%;
	padding: 0.7em 0.8em;
	margin-bottom: 1rem;
	background: #fff;
	border: 1px solid var(--bl-border);
	border-radius: var(--bl-radius-sm);
	font-family: var(--body, system-ui, sans-serif);
	font-size: 0.95rem;
	color: var(--bl-ink);
}

.tl-single__comments input:focus,
.tl-single__comments textarea:focus {
	outline: none;
	border-color: var(--bl-ink);
}

.tl-single__comments .submit {
	padding: 0.8em 1.8em;
	background: var(--bl-accent);
	border: 0;
	border-radius: var(--bl-radius-sm);
	color: #fff;
	font-family: var(--display, system-ui, sans-serif);
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.16s ease;
}

.tl-single__comments .submit:hover { background: var(--bl-accent-dark); }

/* ---------- Keep reading ---------- */

.tl-related {
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding-top: clamp(2rem, 4vw, 2.75rem);
	border-top: 1px solid var(--bl-border);
}

.tl-related__title {
	margin: 0 0 1.5rem;
	font-family: var(--display, system-ui, sans-serif);
	font-size: clamp(1.4rem, 2.5vw, 1.9rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--bl-ink);
}

.tl-related .tl-posts {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 0;
}

/* =========================================================
   11. SINGLE POST RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
	.tl-related .tl-posts { gap: 1.25rem 1rem; }
}

@media (max-width: 992px) {
	.tl-single__content { max-width: none; }
	.tl-related .tl-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.tl-single__crumbs { font-size: 0.8rem; margin-bottom: 1.1rem; }
	.tl-single__crumbs-current { display: none; }

	.tl-single__media img { max-height: 260px; }

	.tl-single__content { font-size: 0.98rem; line-height: 1.72; }
	.tl-single__content > p:first-of-type { font-size: 1.04rem; }
	.tl-single__content h2 { font-size: 1.32rem; margin-top: 2rem; }
	.tl-single__content h3 { font-size: 1.1rem; }

	/* Wide tables get their own scroll instead of stretching the page */
	.tl-single__content table { display: block; overflow-x: auto; white-space: nowrap; }

	.tl-single__footer { flex-direction: column; align-items: flex-start; }

	.tl-single__nav { grid-template-columns: 1fr; }
	.tl-single__nav-link.is-next { text-align: left; }

	.tl-single__comments { padding: 16px; }

	.tl-related .tl-posts { grid-template-columns: 1fr; }
}