/* 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: var(--liuer-accent);
	--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-classic-header > p a {
	color: var(--liuer-accent-strong);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.post-classic-header > p a:hover {
	color: var(--liuer-accent);
}

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

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

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

.post-classic-header h1 {
    margin: 0;
    color: var(--post-ink);
    font-size: 26px;
    font-weight: 600;
    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-content,
.post-wp-content {
	color: #33423b;
	font-size: 15px;
	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: 22px;
	font-weight: 600;
	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: 600;
	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: 600;
	letter-spacing: 0;
	scroll-margin-top: calc(var(--shop-header-height) + 16px);
}

.post-content ul {
	margin-left: 20px;
	padding: 0;
}

.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: 600;
	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(--liuer-border);
	border-left: 4px solid var(--liuer-border);
	border-radius: var(--shop-radius);
	background: #f7fbf9;
	color: var(--post-ink);
	font-size: 17px;
	font-weight: 600;
	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(--liuer-border);
	border-radius: var(--shop-radius);
	background: #ffffff;
	font-size: 14px;
	line-height: 1.5;
}

.post-content th,
.post-content td {
	padding: 11px 12px;
	border: 1px solid var(--liuer-border);
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}

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

.post-content tbody tr:nth-child(even) td {
	background: #f8fbf9;
}

.post-content caption {
	padding: 0 0 8px;
	color: var(--post-subtle);
	font-size: 13px;
	font-weight: 600;
	text-align: left;
}

.post-content .wp-block-table {
	max-width: 100%;
	margin: 0 0 16px;
	overflow-x: auto;
	border-radius: var(--shop-radius);
}

.post-content .wp-block-table table {
	margin: 0;
}

.post-related {
	grid-column: 1;
	min-width: 0;
}

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

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

.post-related-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.post-related-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 7;
	border-radius: 10px 10px 0 0;
	background: var(--liuer-bg);
}

.post-related-card__media picture {
	display: block;
	width: 100%;
	height: 100%;
}

.post-related-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-related-card h3 {
	display: -webkit-box;
	margin: 10px 0 8px;
	min-height: 4.2em;
	overflow: hidden;
	color: var(--post-ink);
	font-weight: 500;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	transition: color 0.2s ease;
}

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

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

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

.post-consult {
	overflow: hidden;
	border: 1px solid var(--liuer-border);
	border-radius: 10px;
	background: #fff;
}

.post-consult__media picture {
	display: block;
}

.post-consult__media img {
	display: block;
	width: 100%;
	height: auto;
}

.post-consult__footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 14px 10px;
}

.post-consult__copy {
    display: flex;
    gap: 5px;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.post-consult__caption {
	display: flex;
	align-items: center;
	gap: 5px;
	color: var(--liuer-copy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.post-consult__caption img {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
}

.post-consult__copy strong {
	color: var(--liuer-accent);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
}

.post-consult__button {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 10px 14px;
	border-radius: 100px;
	background: var(--liuer-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
	white-space: nowrap;
}

.post-consult__button strong {
	font-size: 14px;
	font-weight: 700;
}

.post-consult__button:focus-visible {
	outline: 2px solid var(--liuer-accent);
	outline-offset: 3px;
}

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

.post-side-card[hidden] {
	display: none;
}

.post-side-card--toc .ent-toc {
	max-height: min(55vh, 520px);
	overflow-y: auto;
	overscroll-behavior-y: contain;
}

.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(--liuer-border);
}

.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: 600;
}

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

.post-share > span {
	margin-right: 3px;
	color: var(--post-muted);
	font-size: 14px;
	font-weight: 600;
}

.post-share a, .post-share button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    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: 20px;
    font-weight: 600;
    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;
    text-align: center;
    display: flex;
    justify-content: center;
    line-height: 1;
}
.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(--liuer-border);
	background: #fff;
}

.post-share img {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.post-share a img,
.post-share button:hover img {
	filter: brightness(0) invert(1);
}

.post-share .post-share__check-icon,
.post-share .is-copied .post-share__copy-icon {
	display: none;
}

.post-share .is-copied .post-share__check-icon {
	display: block;
}

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