/* ==========================================================================
   Blog listing + single post
   ========================================================================== */

/* Listing hero ------------------------------------------------------------ */

.blog-hero {
	position: relative; overflow: hidden;
	padding: 56px 0 36px;
	background:
		radial-gradient(60% 80% at 12% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
		radial-gradient(50% 70% at 92% 10%, color-mix(in srgb, var(--mint) 14%, transparent), transparent 70%),
		var(--tint);
	text-align: center;
}
.blog-hero__inner { max-width: 720px; margin: 0 auto; }
.blog-hero__label {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 14px; border-radius: 99px;
	background: color-mix(in srgb, var(--bg, #fff) 80%, transparent);
	border: 1px solid var(--accent-line);
	font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.blog-hero__label .dtc-icon { width: 15px; height: 15px; }
.blog-hero__title {
	margin-top: 16px;
	font-family: var(--font-display); font-size: clamp(30px, 5vw, 50px); font-weight: 700;
	letter-spacing: -0.025em; line-height: 1.12; color: var(--heading);
}
.blog-hero__sub { max-width: 600px; margin: 14px auto 0; font-size: 16.5px; line-height: 1.7; color: var(--muted); }

.blog-search {
	display: flex; align-items: center; gap: 8px;
	max-width: 520px; margin: 28px auto 0; padding: 6px 6px 6px 18px;
	background: #fff; border: 1px solid var(--line); border-radius: 99px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.blog-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 10px 30px rgba(15, 23, 42, .06); }
.blog-search > .dtc-icon { width: 19px; height: 19px; color: var(--muted); }
.blog-search input[type="search"] {
	flex: 1; min-width: 0; padding: 10px 4px;
	border: 0; background: none; outline: none; font-size: 15px; color: var(--ink);
}
.blog-search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.blog-search button {
	flex: none; padding: 10px 22px; border: 0; border-radius: 99px; cursor: pointer;
	background: var(--brand, var(--ink)); color: var(--brand-text, #fff);
	font-family: var(--font-display); font-size: 14.5px; font-weight: 600;
	transition: background-color .2s ease;
}
.blog-search button:hover { background: var(--brand-hover, #000); }

.blog-cats {
	display: flex; gap: 8px; margin: 28px -12px 0; padding: 2px 12px 6px;
	overflow-x: auto; scrollbar-width: none;
}
.blog-cats::-webkit-scrollbar { display: none; }
.blog-cats__item {
	flex: none; display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 16px; border-radius: 99px;
	background: #fff; border: 1px solid var(--line);
	font-size: 14px; font-weight: 500; color: var(--slate); white-space: nowrap;
	transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.blog-cats__item span {
	min-width: 22px; padding: 1px 7px; border-radius: 99px;
	background: var(--tint); font-size: 11.5px; font-weight: 600; text-align: center; color: var(--muted);
}
.blog-cats__item:hover { border-color: var(--accent-line); color: var(--accent); }
.blog-cats__item.is-active { background: var(--brand, var(--ink)); border-color: var(--brand, var(--ink)); color: var(--brand-text, #fff); }
.blog-cats__item.is-active span { background: rgba(255, 255, 255, .2); color: inherit; }

/* Listing body ------------------------------------------------------------ */

.blog-section { padding: 36px 0 64px; background: var(--bg, #fff); border-top: 1px solid var(--line); }
.blog-section__head { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; }
.blog-section__head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 680; letter-spacing: -0.015em; color: var(--heading); }
.blog-section__head > span { flex: 1; height: 1px; background: var(--line); }
.blog-section__head a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.blog-section__head a .dtc-icon { width: 16px; height: 16px; transition: transform .2s ease; }
.blog-section__head a:hover .dtc-icon { transform: translateX(3px); }

.blog-grid { display: grid; gap: 24px; }
.blog-card + .blog-section__head, .blog-card--featured + .blog-grid { margin-top: 48px; }

/* Card */
.blog-card {
	position: relative; display: flex; flex-direction: column;
	overflow: hidden; background: #fff;
	border: 1px solid var(--line); border-radius: 20px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.blog-card:hover, .js .blog-card.reveal.is-visible:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 2px 6px rgba(15, 23, 42, .04), 0 18px 44px rgba(15, 23, 42, .1); }
.js .blog-card.reveal { transition: opacity .6s ease, transform .6s ease, box-shadow .3s ease, border-color .3s ease; }
.blog-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.blog-card__media > img, .blog-card__media > .post-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.blog-card:hover .blog-card__media > img, .blog-card:hover .blog-card__media > .post-ph { transform: scale(1.05); }
.blog-card__cat {
	position: absolute; top: 14px; left: 14px; z-index: 1;
	padding: 5px 12px; border-radius: 99px;
	background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font-size: 12px; font-weight: 600; color: var(--ink);
	box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}
.blog-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.blog-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.blog-card__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.blog-card__title {
	margin-top: 10px;
	font-family: var(--font-display); font-size: 19px; font-weight: 650; line-height: 1.4; letter-spacing: -0.01em; color: var(--heading);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card__title a { transition: color .2s ease; }
.blog-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.blog-card__title a:focus-visible { outline: none; }
.blog-card:has(.blog-card__title a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.blog-card:hover .blog-card__title a { color: var(--accent); }
.blog-card__excerpt {
	margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--text);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card__more {
	display: inline-flex; align-items: center; gap: 6px;
	margin-top: auto; padding-top: 16px;
	font-size: 14px; font-weight: 600; color: var(--accent);
}
.blog-card__more .dtc-icon { width: 16px; height: 16px; transition: transform .25s ease; }
.blog-card:hover .blog-card__more .dtc-icon { transform: translateX(4px); }
.blog-card--compact .blog-card__title { font-size: 17px; }
.blog-card__flag {
	display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
	margin-bottom: 14px; padding: 5px 12px; border-radius: 99px;
	background: var(--accent-soft); color: var(--accent);
	font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.blog-card__flag .dtc-icon { width: 14px; height: 14px; }

/* Featured card */
.blog-card--featured { border-radius: 24px; }
.blog-card--featured .blog-card__title { font-size: clamp(22px, 3vw, 32px); line-height: 1.25; letter-spacing: -0.02em; -webkit-line-clamp: 3; }
.blog-card--featured .blog-card__excerpt { font-size: 15.5px; -webkit-line-clamp: 4; }
.blog-card--featured .blog-card__more {
	align-self: flex-start; margin-top: auto; padding: 11px 20px;
	border-radius: 99px; background: var(--brand, var(--ink)); color: var(--brand-text, #fff);
}
.blog-card--featured .blog-card__body > .blog-card__more { margin-top: 24px; }

/* Placeholder when a post has no featured image */
.post-ph {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	width: 100%; height: 100%; min-height: 160px;
	background: linear-gradient(135deg, var(--ph-a), var(--ph-b));
	color: var(--ph-ink);
}
.post-ph::before, .post-ph::after {
	content: ""; position: absolute; border-radius: 50%; border: 1px solid currentColor; opacity: .14;
}
.post-ph::before { width: 70%; aspect-ratio: 1; top: -30%; right: -18%; }
.post-ph::after { width: 45%; aspect-ratio: 1; bottom: -22%; left: -10%; }
.post-ph__ring {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	background: rgba(255, 255, 255, .6); box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}
.post-ph__ring .dtc-icon { width: 24px; height: 24px; }
.post-ph__script { font-family: var(--font-script); font-size: 26px; line-height: 1; }
.post-ph--rose { --ph-a: #fde8ee; --ph-b: #f6d5e0; --ph-ink: #b24a6b; }
.post-ph--sky  { --ph-a: #e6f0fd; --ph-b: #d6e4fa; --ph-ink: #3d63a8; }
.post-ph--sage { --ph-a: #e7f3ec; --ph-b: #d3e9dc; --ph-ink: #3f7a58; }
.post-ph--sand { --ph-a: #fbf1e3; --ph-b: #f2e0c6; --ph-ink: #9a6a2c; }

/* Empty state */
.blog-empty { max-width: 460px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.blog-empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--accent); box-shadow: var(--shadow-card); }
.blog-empty__icon .dtc-icon { width: 28px; height: 28px; }
.blog-empty h2 { margin-top: 18px; font-family: var(--font-display); font-size: 22px; }
.blog-empty p { margin: 8px 0 22px; color: var(--muted); }

/* Pagination */
.blog-pagination { margin-top: 48px; }
.blog-pagination .page-numbers { min-width: 44px; height: 44px; border-radius: 12px; font-weight: 600; transition: border-color .2s ease, color .2s ease; }
.blog-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.blog-pagination .page-numbers .dtc-icon { width: 18px; height: 18px; }
.blog-pagination .page-numbers.dots { border-color: transparent; background: none; }

/* CTA band */
.blog-cta {
	position: relative; overflow: hidden;
	display: grid; gap: 24px; align-items: center;
	margin-top: 64px; padding: 32px 24px;
	border-radius: 28px;
	background:
		radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
		radial-gradient(60% 120% at 0% 100%, color-mix(in srgb, var(--mint) 14%, transparent), transparent 60%),
		#fff;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-card);
}
.blog-cta__kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.blog-cta__kicker .dtc-icon { width: 16px; height: 16px; }
.blog-cta h2 { margin-top: 10px; font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.blog-cta p { margin-top: 10px; max-width: 520px; color: var(--muted); }
.blog-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.blog-cta__actions .btn { flex: 1 1 200px; }

@media (min-width: 640px) {
	.blog-grid--grid3, .blog-grid--grid2, .blog-grid--magazine { grid-template-columns: repeat(2, 1fr); }
	.blog-card--row { display: grid; grid-template-columns: 40% 1fr; }
	.blog-card--row .blog-card__media { aspect-ratio: auto; height: 100%; min-height: 220px; }
	.blog-card--row .blog-card__media > img, .blog-card--row .blog-card__media > .post-ph { position: absolute; inset: 0; }
	.blog-card--row .blog-card__body { padding: 26px 28px; }
}

@media (min-width: 768px) {
	.blog-hero { padding: 88px 0 48px; }
	.blog-section { padding: 48px 0 96px; }
	.blog-cta { grid-template-columns: 1.4fr 1fr; padding: 48px 56px; }
	.blog-cta__actions { flex-direction: column; }
	.blog-cta__actions .btn { flex: none; }
}

@media (min-width: 900px) {
	.blog-card--featured { display: grid; grid-template-columns: 1.15fr 1fr; }
	.blog-card--featured .blog-card__media { aspect-ratio: auto; min-height: 400px; height: 100%; }
	.blog-card--featured .blog-card__media > img, .blog-card--featured .blog-card__media > .post-ph { position: absolute; inset: 0; }
	.blog-card--featured .blog-card__body { justify-content: center; padding: 44px 48px; }
	.blog-card--featured .blog-card__cat { top: 20px; left: 20px; }
}

@media (min-width: 1024px) {
	.blog-grid--grid3, .blog-grid--magazine { grid-template-columns: repeat(3, 1fr); gap: 28px; }
	.blog-grid--grid2 { gap: 32px; }
	.blog-grid--list { max-width: 960px; margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
   Single post
   ========================================================================== */

.read-progress { display: none; }
@supports (animation-timeline: scroll()) {
	.read-progress {
		display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 101;
		height: 3px; background: linear-gradient(90deg, var(--accent), var(--brand, var(--accent)));
		transform-origin: 0 50%; transform: scaleX(0);
		animation: dtc-read-progress linear both; animation-timeline: scroll(root);
	}
	.admin-bar .read-progress { top: 32px; }
	@keyframes dtc-read-progress { to { transform: scaleX(1); } }
}

.post-hero {
	padding: 32px 0 40px;
	background:
		radial-gradient(55% 90% at 10% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
		radial-gradient(45% 80% at 95% 20%, color-mix(in srgb, var(--mint) 12%, transparent), transparent 70%),
		var(--tint);
	text-align: center;
}
.post-single:has(.post-cover) .post-hero { padding-bottom: 96px; }
.post-hero__inner { max-width: 860px; }
.post-crumbs {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
	font-size: 13.5px; color: var(--muted);
}
.post-crumbs a { display: inline-flex; align-items: center; transition: color .2s ease; }
.post-crumbs a:hover { color: var(--accent); }
.post-crumbs .dtc-icon { width: 16px; height: 16px; }
.post-crumbs > span { opacity: .5; }
.post-hero__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.post-hero__cats a {
	padding: 5px 14px; border-radius: 99px;
	background: var(--accent-soft); border: 1px solid var(--accent-line);
	font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
	transition: background-color .2s ease, color .2s ease;
}
.post-hero__cats a:hover { background: var(--accent); color: #fff; }
.post-hero__title {
	margin-top: 18px;
	font-family: var(--font-display); font-size: clamp(28px, 5vw, 50px); font-weight: 720;
	letter-spacing: -0.028em; line-height: 1.15; color: var(--heading);
	text-wrap: balance;
}
.post-hero__lead { max-width: 680px; margin: 18px auto 0; font-size: 18px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.post-hero__meta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px;
	margin-top: 28px; font-size: 14px; color: var(--muted);
}
.post-hero__author { display: inline-flex; align-items: center; gap: 10px; text-align: left; }
.post-hero__author > span { display: flex; flex-direction: column; line-height: 1.3; font-weight: 600; color: var(--ink); }
.post-hero__author small { font-size: 12px; font-weight: 400; color: var(--muted); }
.post-hero__avatar, .post-hero__author img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .1); }
.post-hero__facts { display: inline-flex; flex-wrap: wrap; gap: 8px 18px; }
.post-hero__facts > span { display: inline-flex; align-items: center; gap: 6px; }
.post-hero__facts .dtc-icon { width: 16px; height: 16px; color: var(--accent); }

.post-cover { max-width: 1140px; margin: -64px auto 0; }
.post-cover img {
	width: 100%; max-height: 620px; object-fit: cover;
	border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .28);
}
.post-cover figcaption { margin-top: 12px; font-size: 13.5px; text-align: center; color: var(--muted); }

/* Body layout */
.post-layout { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 64px; }
.post-main { min-width: 0; width: 100%; max-width: 740px; margin: 0 auto; }
.post-aside { min-width: 0; }
.post-aside__cta { display: none; }

.post-toc { background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.post-toc summary {
	display: flex; align-items: center; gap: 8px;
	padding: 16px 20px; cursor: pointer; list-style: none;
	font-family: var(--font-display); font-size: 15px; font-weight: 650; color: var(--heading);
}
.post-toc summary::-webkit-details-marker { display: none; }
.post-toc summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.post-toc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.post-toc summary .dtc-icon { width: 18px; height: 18px; color: var(--accent); }
.post-toc ol { display: grid; gap: 2px; padding: 0 12px 14px; counter-reset: toc; }
.post-toc li a {
	display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px;
	font-size: 14px; line-height: 1.45; color: var(--text);
	transition: background-color .2s ease, color .2s ease;
}
.post-toc__l2 { counter-increment: toc; }
.post-toc__l2 a::before { content: counter(toc, decimal-leading-zero); flex: none; font-size: 12px; font-weight: 700; line-height: 1.7; color: var(--accent); opacity: .7; }
.post-toc .post-toc__l3 a { padding-left: 38px; font-size: 13.5px; color: var(--muted); }
.post-toc li a:hover { background: var(--tint); color: var(--ink); }
.post-toc li a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Content typography */
.post-content { font-size: 17.5px; line-height: 1.85; color: color-mix(in srgb, var(--text) 80%, var(--heading)); overflow-wrap: break-word; }
.post-content > * + * { margin-top: 1.25em; }
.post-content > p:first-child { font-size: 1.1em; color: var(--heading); }
.post-content h2, .post-content h3, .post-content h4 { scroll-margin-top: calc(var(--header-h) + 24px); font-family: var(--font-display); letter-spacing: -0.015em; color: var(--heading); }
.post-content h2 { margin-top: 2em; font-size: clamp(23px, 3vw, 28px); font-weight: 700; line-height: 1.3; }
.post-content h3 { margin-top: 1.7em; font-size: clamp(19px, 2.4vw, 22px); font-weight: 650; }
.post-content h4 { margin-top: 1.5em; font-size: 18px; }
.post-content h2 + *, .post-content h3 + *, .post-content h4 + * { margin-top: .7em; }
.post-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-thickness .15s ease; }
.post-content a:hover { text-decoration-thickness: 2px; }
.post-content strong { color: var(--heading); }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content li + li { margin-top: .45em; }
.post-content li::marker { color: var(--accent); font-weight: 700; }
.post-content blockquote, .post-content .wp-block-quote {
	position: relative; margin: 2em 0; padding: 24px 28px 24px 32px;
	border: 0; border-left: 4px solid var(--accent); border-radius: 0 18px 18px 0;
	background: var(--accent-soft);
	font-family: var(--font-serif); font-size: 1.12em; font-style: italic; line-height: 1.7; color: var(--heading);
}
.post-content blockquote p + p { margin-top: .8em; }
.post-content blockquote cite, .post-content .wp-block-quote cite { display: block; margin-top: 12px; font-family: var(--font); font-size: 14px; font-style: normal; font-weight: 600; color: var(--muted); }
.post-content .wp-block-pullquote { padding: 32px 0; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); text-align: center; }
.post-content .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; background: none; }
.post-content img { border-radius: 16px; }
.post-content figure { margin-left: 0; margin-right: 0; }
.post-content figcaption, .post-content .wp-element-caption { margin-top: 10px; font-size: 14px; line-height: 1.5; text-align: center; color: var(--muted); }
.post-content .aligncenter { margin-left: auto; margin-right: auto; }
.post-content .alignwide, .post-content .alignfull { max-width: none; }
.post-content hr, .post-content .wp-block-separator {
	width: 100%; height: 20px; margin: 2.5em 0; border: 0; overflow: visible;
	background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
	text-align: center;
}
.post-content hr::after { content: "♥"; position: relative; top: -3px; padding: 0 14px; background: var(--bg, #fff); font-size: 14px; color: var(--accent); }
.post-content code { padding: 2px 6px; border-radius: 6px; background: var(--tint); font-size: .88em; }
.post-content pre { padding: 18px 20px; overflow-x: auto; border-radius: 14px; background: var(--ink-2); color: #e2e8f0; font-size: 14px; line-height: 1.6; }
.post-content pre code { padding: 0; background: none; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-content .wp-block-table { overflow-x: auto; }
.post-content th, .post-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.post-content thead th { background: var(--tint); font-weight: 650; color: var(--heading); }
.post-content iframe { width: 100%; border: 0; border-radius: 16px; }
.post-content .wp-block-embed.is-type-video iframe { aspect-ratio: 16 / 9; height: auto; }
.post-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2em; font-weight: 600; }
.post-pages a, .post-pages > span:not(:first-child) { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }

/* Post footer */
.post-foot { display: grid; gap: 28px; margin-top: 48px; }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-tags > .dtc-icon { width: 18px; height: 18px; color: var(--muted); }
.post-tags a { padding: 6px 14px; border-radius: 99px; background: var(--tint); font-size: 13.5px; font-weight: 500; color: var(--slate); transition: background-color .2s ease, color .2s ease; }
.post-tags a:hover { background: var(--accent-soft); color: var(--accent); }

.post-share {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
	padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.post-share__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 650; color: var(--heading); }
.post-share__label .dtc-icon { width: 18px; height: 18px; color: var(--accent); }
.post-share__links { display: flex; gap: 10px; }
.post-share__btn {
	position: relative; display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
	border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer;
	font-size: 17px; font-weight: 700; color: var(--slate);
	transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.post-share__btn .dtc-icon { width: 18px; height: 18px; }
.post-share__btn:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.post-share__btn--fb:hover { background: #1877f2; }
.post-share__btn--x:hover { background: #0f1419; }
.post-share__btn--mail:hover { background: #ea580c; }
.post-share__btn--copy:hover, .post-share__btn--copy.is-copied { background: var(--mint); color: #fff; border-color: transparent; }
.post-share__copied:empty { display: none; }
.post-share__copied {
	position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
	padding: 4px 10px; border-radius: 8px; background: var(--ink-2); color: #fff;
	font-size: 12px; font-weight: 500; white-space: nowrap;
}

.post-author { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: 20px; background: var(--tint); }
.post-author img { flex: none; width: 72px; height: 72px; border-radius: 50%; border: 3px solid #fff; }
.post-author small { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.post-author strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 18px; color: var(--heading); }
.post-author p { margin-top: 6px; font-size: 14.5px; line-height: 1.65; }

.post-nav { display: grid; gap: 14px; }
.post-nav__item {
	display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
	border: 1px solid var(--line); border-radius: 18px; background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.post-nav__item:hover { border-color: var(--accent-line); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.post-nav__item small { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.post-nav__item small .dtc-icon { width: 15px; height: 15px; }
.post-nav__item span { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--heading); }
.post-nav__item--next { text-align: right; }
.post-nav__item--next small { justify-content: flex-end; }

.post-related { padding: 56px 0 72px; background: var(--tint); }

/* Comments */
.post-comments-wrap { max-width: 788px; padding-top: 56px; padding-bottom: 72px; }
.comments__title { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-family: var(--font-display); font-size: 22px; }
.comments__title .dtc-icon { color: var(--accent); }
.comments__list, .comments__list .children { display: grid; gap: 16px; }
.comments__list .children { margin-top: 16px; padding-left: 24px; border-left: 2px solid var(--line); }
.comments__list .comment-body { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.comments__list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--heading); }
.comments__list .comment-author img { border-radius: 50%; }
.comments__list .comment-author .says { display: none; }
.comments__list .comment-metadata { margin: 4px 0 0 54px; font-size: 12.5px; color: var(--muted); }
.comments__list .comment-content { margin-top: 10px; font-size: 15px; line-height: 1.7; }
.comments__list .reply { margin-top: 10px; }
.comments__list .comment-reply-link { font-size: 13px; font-weight: 600; color: var(--accent); }
.comments__closed { margin-top: 20px; color: var(--muted); }
.comments > .comment-respond:first-child { margin-top: 0; }
.comment-respond { margin-top: 36px; padding: 28px 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-card); }
.comment-reply-title { font-family: var(--font-display); font-size: 21px; }
.comment-reply-title small { margin-left: 8px; font-size: 13px; }
.comment-reply-title small a { color: var(--accent); }
.comment-notes, .logged-in-as { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.logged-in-as a { color: var(--accent); }
.comment-form { display: grid; gap: 16px; margin-top: 18px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px;
	border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font-size: 15px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--muted); }
.comment-form .form-submit { margin: 0; }

@media (min-width: 640px) {
	.post-nav { grid-template-columns: 1fr 1fr; }
	.post-nav__item--next:only-child { grid-column: 2; }
	.comment-form-author, .comment-form-email { display: inline-block; }
	.comment-respond { padding: 32px; }
}

@media (min-width: 768px) {
	.post-hero { padding: 48px 0 56px; }
	.post-single:has(.post-cover) .post-hero { padding-bottom: 140px; }
	.post-cover { margin-top: -100px; }
	.post-layout { padding-top: 56px; padding-bottom: 88px; }
	.post-related { padding: 80px 0 96px; }
}

@media (min-width: 1100px) {
	.post-layout.has-toc { grid-template-columns: minmax(0, 740px) 290px; justify-content: center; gap: 64px; align-items: start; }
	.post-layout.has-toc .post-main { grid-row: 1; grid-column: 1; margin: 0; }
	.post-aside { position: sticky; top: calc(var(--header-h) + 28px); grid-row: 1; grid-column: 2; display: grid; gap: 20px; }
	.post-aside__cta {
		display: block; padding: 22px; border-radius: 18px;
		background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, #fff), #fff 70%);
		border: 1px solid var(--accent-line);
	}
	.post-aside__cta strong { font-family: var(--font-display); font-size: 17px; color: var(--heading); }
	.post-aside__cta p { margin: 6px 0 16px; font-size: 14px; line-height: 1.6; }
	.post-toc ol { max-height: calc(100vh - var(--header-h) - 300px); overflow-y: auto; }
}

@media (max-width: 600px) {
	.admin-bar .read-progress { top: 0; }
	.post-share { justify-content: center; }
}
