.cg-post-sidebar {
	--cg-post-sidebar-card-bg: #ffffff;
	--cg-post-sidebar-accent: #b4202a;
	--cg-post-sidebar-accent-soft: rgba(180, 32, 42, 0.08);
	--cg-post-sidebar-border: #efd8da;
	--cg-post-sidebar-text: #20232a;
	--cg-post-sidebar-muted: #6f7782;
	--cg-post-sidebar-shadow: 0 18px 40px rgba(31, 35, 40, 0.08);
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	min-width: 0;
}

.cg-post-sidebar,
.cg-post-sidebar *,
.cg-post-sidebar *::before,
.cg-post-sidebar *::after {
	box-sizing: border-box;
}

.cg-post-sidebar__card {
	background: var(--cg-post-sidebar-card-bg);
	border: 1px solid var(--cg-post-sidebar-border);
	border-radius: 20px;
	padding: 18px;
	box-shadow: var(--cg-post-sidebar-shadow);
}

.cg-post-sidebar__eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	font-family: "Inter", sans-serif;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cg-post-sidebar-accent);
}

.cg-post-sidebar__title {
	margin: 0 0 16px;
	font-family: "DM Sans", sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--cg-post-sidebar-text);
}

.cg-post-sidebar__card--related .cg-post-sidebar__title,
.cg-post-sidebar__card--share .cg-post-sidebar__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
}

.cg-post-sidebar__card--related .cg-post-sidebar__title::before,
.cg-post-sidebar__card--share .cg-post-sidebar__title::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: var(--cg-post-sidebar-accent);
	box-shadow: 8px 0 0 rgba(180, 32, 42, 0.45);
}

.cg-post-sidebar__breadcrumb,
.cg-post-sidebar__breadcrumb p {
	margin: 0;
	font-family: "Inter", sans-serif;
	font-size: 13px;
	line-height: 1.6;
	color: var(--cg-post-sidebar-muted);
}

.cg-post-sidebar__breadcrumb a {
	color: var(--cg-post-sidebar-text);
	text-decoration: none;
	font-weight: 600;
}

.cg-post-sidebar__sep {
	display: inline-block;
	margin: 0 7px;
	color: var(--cg-post-sidebar-accent);
	opacity: 0.8;
}

.cg-post-sidebar__share-note {
	margin: -6px 0 14px;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	line-height: 1.55;
	color: var(--cg-post-sidebar-muted);
}

.cg-post-sidebar__share-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cg-post-sidebar__share-link {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: linear-gradient(180deg, #ffffff 0%, #f9f6f6 100%);
	border: 1px solid var(--cg-post-sidebar-border);
	color: var(--cg-post-sidebar-text);
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(31, 35, 40, 0.08);
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cg-post-sidebar__share-icon {
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cg-post-sidebar__share-icon svg {
	width: 18px;
	height: 18px;
	display: block;
	fill: currentColor;
}

.cg-post-sidebar__share-link:hover,
.cg-post-sidebar__share-link:focus {
	background: var(--cg-post-sidebar-accent);
	color: #ffffff;
	transform: translateY(-1px);
	border-color: var(--cg-post-sidebar-accent);
}

.cg-post-sidebar__card--share {
	background:
		radial-gradient(circle at top right, rgba(180, 32, 42, 0.08), transparent 38%),
		var(--cg-post-sidebar-card-bg);
}

.cg-post-sidebar__ad,
.cg-post-sidebar__ad .track-ad-view,
.cg-post-sidebar__ad .track-ad-view > div,
.cg-post-sidebar__ad .track-ad-view a,
.cg-post-sidebar__ad img,
.cg-post-sidebar__ad video {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.cg-post-sidebar__ad .track-ad-view > div {
	overflow: hidden;
	border-radius: 18px;
}

.cg-post-sidebar__related-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cg-post-sidebar__card--related {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 250, 0.98) 100%);
}

.cg-post-sidebar__related-item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	text-decoration: none;
	color: inherit;
	padding: 14px;
	border: 1px solid var(--cg-post-sidebar-border);
	border-radius: 16px;
	background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
	box-shadow: 0 10px 24px rgba(31, 35, 40, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cg-post-sidebar__related-item:hover,
.cg-post-sidebar__related-item:focus {
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(31, 35, 40, 0.08);
	border-color: rgba(180, 32, 42, 0.22);
}

.cg-post-sidebar__thumb {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 14px;
	overflow: hidden;
	background: #f2f4f7;
	flex-shrink: 0;
}

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

.cg-post-sidebar__related-content {
	display: flex;
	flex-direction: column;
	gap: 9px;
	min-width: 0;
}

.cg-post-sidebar__related-text {
	font-family: "Inter", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--cg-post-sidebar-accent);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cg-post-sidebar__related-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	line-height: 1.2;
	color: var(--cg-post-sidebar-muted);
}

.cg-post-sidebar__related-pill {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--cg-post-sidebar-border);
	background: #ffffff;
	color: #4a4f57;
	font-weight: 700;
}

.cg-post-sidebar__related-time {
	position: relative;
	padding-left: 12px;
}

.cg-post-sidebar__related-time::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	transform: translateY(-50%);
}

@media (max-width: 768px) {
	.cg-post-sidebar__card {
		padding: 14px;
		border-radius: 14px;
	}

	.cg-post-sidebar__share-note {
		margin-top: -4px;
	}

	.cg-post-sidebar__card--related .cg-post-sidebar__title,
	.cg-post-sidebar__card--share .cg-post-sidebar__title {
		font-size: 13px;
	}

	.cg-post-sidebar__related-item {
		grid-template-columns: 58px minmax(0, 1fr);
		gap: 10px;
		padding: 12px;
	}

	.cg-post-sidebar__thumb {
		width: 58px;
		height: 58px;
		border-radius: 12px;
	}

	.cg-post-sidebar__related-text {
		font-size: 14px;
	}

	.cg-post-sidebar__related-meta {
		gap: 8px;
	}
}
