/* Single post detail. */
.post-detail {
	--post-accent: var(--liuer-accent);
	--post-accent-strong: var(--liuer-accent-strong);
	--post-ink: var(--shop-text-color);
	--post-muted: var(--shop-muted-color);
	--post-subtle: var(--shop-subtle-color);
	--post-line: var(--liuer-border);
	--post-card: #fff;
	--post-soft: #f8fbf9;
	--post-button: linear-gradient(180deg, var(--liuer-accent), var(--liuer-accent-strong));
	--post-glow: rgba(0, 122, 69, 0.22);
	overflow: visible;
	padding: 0 0 30px;
	background: #fff;
	color: var(--post-ink);
}

.post-detail a {
	text-decoration: none;
}

.post-detail__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 12px 0;
	color: #66746e;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
}

.post-detail__breadcrumb nav,
.post-detail__breadcrumb .yoast-breadcrumb,
.post-detail__breadcrumb .yoast-breadcrumb > span {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-detail__breadcrumb .yoast-breadcrumb span {
	display: inline-flex !important;
	align-items: center;
}

.post-detail__breadcrumb .breadcrumb_last {
	color: var(--post-accent);
}

.post-detail__breadcrumb a {
	color: inherit;
}

.post-detail__breadcrumb a:hover {
	color: var(--post-accent);
}

.post-detail__breadcrumb .shop-icon {
	width: 14px;
	height: 14px;
	opacity: 0.72;
}

.post-hero {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: 40px;
	margin-bottom: 20px;
	padding: 0 0 20px;
	border-bottom: 0;
}

.post-hero__copy {
	min-width: 0;
}

.post-hero h1 {
	margin: 0;
	color: var(--post-ink);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: 0;
}

.post-hero__copy > p {
	margin: 12px 0 0;
	color: var(--post-muted);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.65;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-top: 14px;
}

.post-meta span,
.post-meta a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #5f6f68;
	font-size: 13px;
	font-weight: 600;
}

.post-meta a:hover {
	color: var(--post-accent);
}

.post-meta .shop-icon {
	width: 17px;
	height: 17px;
}

.post-hero__media {
	overflow: hidden;
	border: 1px solid var(--post-line);
	border-radius: var(--shop-radius);
	background: #eef6f2;
}

.post-hero__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	box-shadow: none;
}

.post-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	align-items: start;
}

.post-article {
	min-width: 0;
}

.post-detail--classic .post-layout {
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 30px;
}

.post-classic-header {
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--post-line);
}

.post-classic-header h1 {
	margin: 0;
	color: var(--post-ink);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: 0;
}

.post-classic-header > p {
	margin: 12px 0 0;
	color: var(--post-muted);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.65;
}

.post-classic-featured {
	overflow: hidden;
	margin-bottom: 22px;
	border: 1px solid var(--post-line);
	border-radius: var(--shop-radius);
	background: #eef6f2;
}

.post-classic-featured img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-content,
.post-wp-content {
	color: #33423b;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.72;
	letter-spacing: 0;
}

.post-wp-content > * + * {
	margin-top: 14px;
}

.post-content > *:first-child {
	margin-top: 0;
}

.post-content > *:last-child {
	margin-bottom: 0;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content figure,
.post-content table {
	margin: 0 0 16px;
}

.post-content h2,
.post-related h2,
.post-side-card h2 {
	margin: 0;
	color: var(--post-ink);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
}

.post-content h2 {
	margin-bottom: 10px;
	scroll-margin-top: calc(var(--shop-header-height) + 16px);
}

.post-content h2:not(:first-child) {
	margin-top: 30px;
}

.post-content h3 {
	margin: 20px 0 8px;
	color: var(--post-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
	scroll-margin-top: calc(var(--shop-header-height) + 16px);
}

.post-content h4 {
	margin: 18px 0 8px;
	color: var(--post-ink);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0;
	scroll-margin-top: calc(var(--shop-header-height) + 16px);
}

body.admin-bar .post-content h2,
body.admin-bar .post-content h3,
body.admin-bar .post-content h4 {
	scroll-margin-top: calc(var(--shop-header-height) + 48px);
}


.post-content a {
	color: var(--post-accent);
	font-weight: 700;
	text-decoration: none;
}

.post-content ul,
.post-content ol {
	padding-left: 20px;
}

.post-content li + li {
	margin-top: 8px;
}

.post-content img {
	border-radius: var(--shop-radius);
}

.post-content figure img {
	width: 100%;
}

.post-content figcaption {
	margin-top: 8px;
	color: var(--post-subtle);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.post-content blockquote {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	margin-top: 20px;
	padding: 18px 20px;
	border: 1px solid var(--shop-accent-border-soft-color);
	border-left: 4px solid var(--post-accent);
	border-radius: var(--shop-radius);
	background: #f7fbf9;
	color: var(--post-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.7;
}

.post-content blockquote::before {
	display: none;
}

.post-content blockquote p {
	margin: 0;
}

.post-content table {
	width: 100%;
	border-collapse: collapse;
	overflow: hidden;
	border: 1px solid var(--post-line);
	border-radius: var(--shop-radius);
	font-size: 14px;
}

.post-content th,
.post-content td {
	padding: 11px 12px;
	border-bottom: 1px solid var(--post-line);
	text-align: left;
}

.post-content th {
	background: var(--post-soft);
	font-weight: 900;
}

.post-author-box {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	margin: 24px 0 0;
	padding: 14px;
	border: 1px solid var(--post-line);
	border-radius: var(--shop-radius);
	background: #fff;
}

.post-author-box img {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	object-fit: cover;
}

.post-author-box span {
	display: block;
	color: var(--post-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.post-author-box__name {
	display: block;
	margin: 3px 0 0;
	color: var(--post-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}

.post-author-box p {
	margin: 6px 0 0;
	color: var(--post-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.65;
}

.post-related {
	margin-top: 24px;
}

.post-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.post-related-card,
.post-side-card {
	border: 1px solid var(--post-line);
	border-radius: var(--shop-radius);
	background: var(--post-card);
}

.post-related-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--shop-radius);
	box-shadow: var(--shop-shadow-card);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-related-card:hover {
	border-color: var(--shop-accent-border-color);
	box-shadow: 0 8px 22px color-mix(in srgb, var(--liuer-shadow-hex) 9%, transparent);
	transform: translateY(-2px);
}

.post-related-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	height: 180px;
	background: #eef3f0;
}

.post-related-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-related-card:hover img {
	transform: scale(1.06);
}

.post-related-card > div {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	padding: 13px 14px 15px;
}

.post-related-card time {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-bottom: 8px;
	padding: 3px 9px;
	border-radius: 999px;
	background: #eef7f2;
	color: var(--post-accent);
	font-size: 12px;
	font-weight: 700;
}

.post-related-card h3 {
	display: -webkit-box;
	margin: 0 0 8px;
	overflow: hidden;
	color: var(--post-ink);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	transition: color 0.2s ease;
}

.post-related-card:hover h3 {
	color: var(--post-accent);
}

.post-related-card p {
	display: -webkit-box;
	margin: 0 0 12px;
	overflow: hidden;
	color: var(--post-muted);
	font-size: 13px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.post-related-card__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: auto;
	color: var(--post-accent);
	font-size: 12px;
	font-weight: 700;
}

.post-related-card__more::after {
	--icon: var(--i-chevron-right);
	content: "";
	display: block;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
	transition: transform 0.18s ease;
}

.post-related-card:hover .post-related-card__more::after {
	transform: translateX(3px);
}

.post-sidebar {
	position: sticky;
	top: calc(var(--shop-header-height) + 46px);
	display: grid;
	gap: 12px;
	align-self: start;
}

.post-side-card {
	padding: 16px;
}

.post-side-card h2 {
	font-size: 18px;
}

.ent-toc .toc_list {
	display: grid;
	gap: 10px;
	margin: 14px 0 0;
	padding-left: 0;
	color: var(--post-accent);
	font-size: 14px;
	font-weight: 600;
	list-style: none;
}

.ent-toc ul {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.ent-toc li ul {
	display: grid;
	gap: 8px;
	margin-top: 8px;
	padding-left: 18px;
	border-left: 1px solid var(--post-line);
}

.ent-toc a {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 8px;
	padding: 0;
	color: var(--post-accent);
	line-height: 1.55;
	transition: color 0.2s ease;
}

.ent-toc a.active,
.ent-toc a:hover {
	color: var(--post-accent-strong);
}

.ent-toc .toc_level_3,
.ent-toc .toc_level_4 {
	font-size: 13px;
}

.ent-toc .toc_number {
	color: #98a2b3;
	font-weight: 900;
}

.post-share {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 14px;
}

.post-share a,
.post-share button {
	display: inline-grid;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	place-items: center;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: rgba(0, 122, 69, 0.08);
	color: var(--post-accent);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-transform: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.post-share a:hover,
.post-share button:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 12px color-mix(in srgb, var(--liuer-shadow-hex) 14%, transparent);
}

.post-share a:focus-visible,
.post-share button:focus-visible {
	outline: 2px solid var(--post-accent);
	outline-offset: 3px;
}

.post-share .post-share__facebook {
	background: #2457a6;
	color: #fff;
}

.post-share .post-share__linkedin {
	background: #0a76b7;
	color: #fff;
}

.post-share .post-share__x {
	background: #18201d;
	color: #fff;
}

.post-share button {
	position: relative;
	border-color: var(--shop-accent-border-color);
	background: #fff;
}

.post-share button::before {
	--icon: var(--i-copy);
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
}

.post-share button.is-copied::before {
	--icon: var(--i-check);
}

.post-share button.is-copied,
.post-share button:hover {
	background: var(--post-accent);
	color: #fff;
}

.post-comments {
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid var(--post-line);
}

