/**
 * Single blog post — scoped to .single-post only.
 */

.single-post .ll-main--single {
	background: #fff;
}

.single-post .ll-single-post {
	position: relative;
	overflow: hidden;
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.single-post .ll-single-post::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 50% at 0% 0%, rgba(0, 102, 255, 0.05) 0%, transparent 55%),
		radial-gradient(ellipse 55% 45% at 100% 100%, rgba(0, 163, 42, 0.04) 0%, transparent 50%);
	pointer-events: none;
}

.single-post .ll-single-post__inner {
	position: relative;
	z-index: 1;
	max-width: 760px;
	margin-inline: auto;
}

/* ── Meta bar ── */
.single-post .ll-single-post__header {
	margin-bottom: 1.75rem;
}

.single-post .ll-single-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
}

.single-post .ll-single-post__date {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #7a8a9a;
}

.single-post .ll-single-post__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-post .ll-single-post__categories a {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	border: 1px solid rgba(0, 102, 255, 0.2);
	background: #f6f9ff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--ll-primary);
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.single-post .ll-single-post__categories a:hover {
	border-color: rgba(0, 102, 255, 0.35);
	background: #e8f0ff;
}

/* ── Featured image ── */
.single-post .ll-single-post__featured {
	margin: 0 0 2rem;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--ll-surface);
	box-shadow: 0 8px 28px rgba(2, 12, 42, 0.08);
	background: var(--ll-surface-light);
}

.single-post .ll-single-post__featured img {
	display: block;
	width: 100%;
	height: auto;
}

/* ── Article prose ── */
.single-post .ll-single-post__content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #3d4f63;
}

.single-post .ll-single-post__content > *:first-child {
	margin-top: 0;
}

.single-post .ll-single-post__content > *:last-child {
	margin-bottom: 0;
}

.single-post .ll-single-post__content p {
	margin: 0 0 1.25rem;
}

.single-post .ll-single-post__content h2,
.single-post .ll-single-post__content h3,
.single-post .ll-single-post__content h4 {
	margin: 2.25rem 0 0.875rem;
	font-family: "DM Sans", sans-serif;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--ll-navy);
}

.single-post .ll-single-post__content h2 {
	font-size: clamp(1.5rem, 3vw, 1.75rem);
}

.single-post .ll-single-post__content h3 {
	font-size: clamp(1.25rem, 2.5vw, 1.375rem);
}

.single-post .ll-single-post__content h4 {
	font-size: 1.125rem;
}

.single-post .ll-single-post__content a {
	font-weight: 600;
	color: var(--ll-primary);
	text-decoration: underline;
	text-decoration-color: rgba(0, 102, 255, 0.35);
	text-underline-offset: 0.15em;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.single-post .ll-single-post__content a:hover {
	color: var(--ll-primary-dark);
	text-decoration-color: currentColor;
}

.single-post .ll-single-post__content ul,
.single-post .ll-single-post__content ol {
	margin: 0 0 1.25rem;
	padding-left: 1.35rem;
}

.single-post .ll-single-post__content li {
	margin-bottom: 0.5rem;
}

.single-post .ll-single-post__content li::marker {
	color: var(--ll-primary);
}

.single-post .ll-single-post__content blockquote {
	margin: 1.75rem 0;
	padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--ll-primary);
	border-radius: 0 12px 12px 0;
	background: linear-gradient(90deg, #f4f8ff 0%, #fff 100%);
	font-size: 1.125rem;
	font-style: italic;
	line-height: 1.6;
	color: var(--ll-navy);
}

.single-post .ll-single-post__content blockquote p {
	margin: 0;
}

.single-post .ll-single-post__content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.single-post .ll-single-post__content figure {
	margin: 1.75rem 0;
}

.single-post .ll-single-post__content figcaption {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #7a8a9a;
	text-align: center;
}

.single-post .ll-single-post__content pre,
.single-post .ll-single-post__content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.9em;
}

.single-post .ll-single-post__content code {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: var(--ll-surface-light);
	color: var(--ll-navy);
}

.single-post .ll-single-post__content pre {
	margin: 1.5rem 0;
	padding: 1.25rem 1.35rem;
	overflow-x: auto;
	border-radius: 12px;
	border: 1px solid var(--ll-surface);
	background: #f8fafc;
	line-height: 1.55;
}

.single-post .ll-single-post__content pre code {
	padding: 0;
	background: transparent;
}

.single-post .ll-single-post__content hr {
	margin: 2.5rem 0;
	border: 0;
	border-top: 1px solid var(--ll-surface);
}

.single-post .ll-single-post__content table {
	width: 100%;
	margin: 1.5rem 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.single-post .ll-single-post__content th,
.single-post .ll-single-post__content td {
	padding: 0.75rem 1rem;
	border: 1px solid var(--ll-surface);
	text-align: left;
}

.single-post .ll-single-post__content th {
	background: var(--ll-surface-light);
	font-weight: 700;
	color: var(--ll-navy);
}

.single-post .ll-single-post__content .wp-block-image {
	margin: 1.75rem 0;
}

.single-post .ll-single-post__content .wp-block-button__link {
	text-decoration: none;
}

/* ── Footer ── */
.single-post .ll-single-post__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--ll-surface);
}

.single-post .ll-single-post__back {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ll-navy);
	text-decoration: none;
	transition: color 0.15s ease;
}

.single-post .ll-single-post__back:hover {
	color: var(--ll-primary);
}

@media (max-width: 640px) {
	.single-post .ll-single-post {
		padding-block: 2rem;
	}

	.single-post .ll-single-post__featured {
		margin-bottom: 1.5rem;
		border-radius: 12px;
	}

	.single-post .ll-single-post__content {
		font-size: 1rem;
	}

	.single-post .ll-single-post__footer {
		flex-direction: column;
		align-items: stretch;
		margin-top: 2.5rem;
	}

	.single-post .ll-single-post__footer .ll-btn {
		justify-content: center;
		width: 100%;
	}
}
