.single-post-shell {
	padding-block: clamp(4.25rem, 8vw, 6.25rem) clamp(2.5rem, 5vw, 4rem);
}

.single-post-shell .term-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.9rem;
}

.single-post-hero {
	padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.single-post-hero__media {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	background: #0a0a0a;
	min-height: clamp(220px, 24vw, 320px);
	max-height: 56vh;
}

.single-post-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: clamp(220px, 24vw, 320px);
	max-height: 56vh;
	object-fit: cover;
}

.single-post-hero__image--placeholder {
	background:
		linear-gradient(135deg, rgba(27, 79, 216, 0.2), rgba(23, 64, 176, 0.55)),
		#ebf1ff;
}

.single-post-hero__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: end;
	padding: clamp(1rem, 3vw, 2rem);
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.02) 12%, rgba(10, 10, 10, 0.78) 100%);
}

.single-post-hero__inner {
	max-width: min(100%, 760px);
}

.term-badges--hero a {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	backdrop-filter: blur(6px);
}

.single-post-title {
	margin: 0;
	font-size: clamp(1.7rem, 2.8vw, 2.45rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.045em;
	color: #ffffff;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1rem;
	font-size: 0.94rem;
	color: #1740b0;
}

.single-post-hero .post-meta {
	color: rgba(255, 255, 255, 0.9);
}

.post-meta__separator {
	opacity: 0.35;
}

.single-post-layout {
	display: grid;
	grid-template-columns: minmax(0, 740px) minmax(250px, 300px);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
	justify-content: space-between;
}

.single-post-shell .container--wide {
	padding-inline: clamp(1rem, 3vw, 3.25rem);
}

.single-post-main {
	min-width: 0;
}

.single-post-content {
	width: 100%;
	padding: 0.25rem 0 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: 1rem;
}

.single-post-content > * + * {
	margin-top: 1.15em;
}

.single-post-content p,
.single-post-content li,
.single-post-content td,
.single-post-content th {
	font-family: var(--font-serif);
	font-size: clamp(1.05rem, 1.8vw, 1.16rem);
	line-height: 1.85;
	color: #0a0a0a;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
	font-family: var(--font-sans);
	font-weight: 800;
	line-height: 1.15;
	color: #0a0a0a;
}

.single-post-content h2 {
	font-size: clamp(1.45rem, 2.4vw, 1.95rem);
	margin-top: 2.2rem;
}

.single-post-content h3 {
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	margin-top: 1.8rem;
}

.single-post-content blockquote {
	background: #ebf1ff;
	border-left-color: #1b4fd8;
	color: #0a0a0a;
}

.single-post-content table {
	background: #ffffff;
}

.single-post-content a {
	color: #1b4fd8;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.single-post-content a:hover,
.single-post-content a:focus-visible {
	color: #1740b0;
}

.single-post-section {
	margin-top: clamp(2rem, 4vw, 3rem);
	padding-top: clamp(1.5rem, 3vw, 2rem);
	border-top: 1px solid var(--color-border);
}

.single-post-section__title {
	margin: 0 0 1rem;
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	font-weight: 800;
	line-height: 1.15;
	color: #0a0a0a;
}

.single-post-author {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.single-post-author__avatar-image {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 50%;
}

.single-post-author__name {
	margin: 0 0 0.4rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.single-post-author__name a {
	color: #0a0a0a;
}

.single-post-author__bio {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.7;
	color: rgba(10, 10, 10, 0.78);
}

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

.single-post-related__item {
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: 16px;
	background: #ffffff;
}

.single-post-related__media {
	display: block;
	background: #ebf1ff;
}

.single-post-related__image {
	display: block;
	width: 100%;
	height: 170px;
	object-fit: cover;
}

.single-post-related__image--placeholder {
	background: #ebf1ff;
}

.single-post-related__content {
	padding: 1rem;
}

.single-post-related__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}

.single-post-related__title a {
	color: #0a0a0a;
}

.single-post-related__meta {
	margin: 0.5rem 0 0;
	font-size: 0.86rem;
	color: rgba(10, 10, 10, 0.64);
}

.single-post-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

.single-post-links__item {
	display: block;
	padding: 1rem 1.1rem;
	border: 1px solid var(--color-border);
	border-radius: 14px;
	background: #ffffff;
	color: #0a0a0a;
}

.single-post-links__item:hover,
.single-post-links__item:focus-visible {
	border-color: rgba(27, 79, 216, 0.22);
	color: #0a0a0a;
}

.single-post-links__label {
	display: block;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.45;
}

.single-post-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.4rem;
	border: 1px solid var(--color-border);
	border-radius: 18px;
	background: #ebf1ff;
}

.single-post-cta__content {
	max-width: 36rem;
}

.single-post-cta__text {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.7;
	color: rgba(10, 10, 10, 0.78);
}

.single-post-sidebar {
	position: sticky;
	top: 100px;
	display: grid;
	gap: 1rem;
}

.single-post-sidebar__section {
	padding: 1.2rem;
	border: 1px solid var(--color-border);
	border-radius: 18px;
	background: #ffffff;
	box-shadow: var(--shadow-sm);
}

.single-post-sidebar__title {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #0a0a0a;
}

.single-post-sidebar__list {
	display: grid;
	gap: 0.9rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-post-sidebar__item {
	display: grid;
	gap: 0.22rem;
}

.single-post-sidebar__item-link {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 0.8rem;
	align-items: start;
	color: #0a0a0a;
}

.single-post-sidebar__item-link:hover,
.single-post-sidebar__item-link:focus-visible {
	color: #1b4fd8;
}

.single-post-sidebar__item-media {
	display: block;
}

.single-post-sidebar__thumb {
	display: block;
	width: 76px;
	height: 76px;
	border-radius: 12px;
	object-fit: cover;
	background: #ebf1ff;
}

.single-post-sidebar__thumb--placeholder {
	background: #ebf1ff;
}

.single-post-sidebar__item-text {
	display: grid;
	gap: 0.3rem;
	min-width: 0;
}

.single-post-sidebar__item-title {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.42;
	color: #0a0a0a;
}

.single-post-sidebar__item-date,
.single-post-sidebar__item span {
	font-size: 0.84rem;
	color: rgba(10, 10, 10, 0.64);
}

.single-post-sidebar__list--categories .single-post-sidebar__item {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.65rem;
}

@media (max-width: 980px) {
	.single-post-layout {
		grid-template-columns: 1fr;
	}

	.single-post-sidebar {
		position: static;
		order: 2;
	}

	.single-post-related__grid,
	.single-post-links {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.single-post-shell {
		padding-top: 4.75rem;
	}

	.single-post-hero__media,
	.single-post-hero__image {
		min-height: 220px;
		border-radius: 22px;
	}

	.single-post-hero__overlay {
		padding: 1rem;
	}

	.single-post-author {
		grid-template-columns: 1fr;
	}

	.single-post-sidebar__item-link {
		grid-template-columns: 68px minmax(0, 1fr);
	}

	.single-post-sidebar__thumb {
		width: 68px;
		height: 68px;
	}
}
