/**
 * Single post detail page.
 *
 * @package W3ctrl
 */

body.single,
body.single-post {
	background: #fff8f0;
}

.ps-single-page {
	padding-top: 0;
	margin-top: 0;
	background: #fff8f0;
}

.ps-single {
	padding: 2rem 0 3rem;
	background: #fff;
	margin-bottom: 1.5rem;
	box-shadow: 0 8px 28px rgba(139, 30, 63, 0.06);
}

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

.ps-single-card {
	padding: 1.5rem 1.65rem;
	border: 1px solid var(--ps-border, rgba(139, 30, 63, 0.14));
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(139, 30, 63, 0.04);
}

/* ── Header ── */
.ps-single-header {
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(139, 30, 63, 0.1);
}

.ps-single-header__tag {
	margin-bottom: 0.75rem;
}

.ps-single-header__title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.45rem, 2.8vw, 2rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--ps-maroon, #8b1e3f);
}

.ps-single-header__meta .list-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: rgba(34, 34, 34, 0.6);
	font-size: 0.8125rem;
}

.ps-single-header__meta .list-wrap a {
	color: var(--ps-btn-bg, #a9445f);
	text-decoration: none;
}

.ps-single-header__meta .list-wrap a:hover {
	color: var(--ps-maroon, #8b1e3f);
}

/* ── Featured image ── */
.ps-single-thumb {
	overflow: hidden;
	margin-bottom: 1.5rem;
	border-radius: 12px;
}

.ps-single-thumb img {
	display: block;
	width: 100%;
	height: auto;
}

/* ── Content ── */
.ps-single-content {
	color: var(--ps-text, #222);
	font-size: 1rem;
	line-height: 1.75;
}

.ps-single-content p {
	margin-bottom: 1.1rem;
}

.ps-single-content h2,
.ps-single-content h3,
.ps-single-content h4 {
	margin: 1.75rem 0 0.75rem;
	color: var(--ps-maroon, #8b1e3f);
	line-height: 1.35;
}

.ps-single-content a {
	color: var(--ps-btn-bg, #a9445f);
}

.ps-single-content a:hover {
	color: var(--ps-maroon, #8b1e3f);
}

.ps-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.ps-single-content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--ps-maroon, #8b1e3f);
	border-radius: 0 10px 10px 0;
	background: #fff8f0;
	color: rgba(34, 34, 34, 0.85);
}

/* ── Tags ── */
.ps-single-footer {
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(139, 30, 63, 0.1);
}

.ps-single-footer__label {
	margin: 0 0 0.65rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--ps-maroon, #8b1e3f);
}

.ps-single-footer .list-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ps-single-footer .list-wrap a {
	display: inline-block;
	padding: 0.3rem 0.7rem;
	border: 1px solid rgba(139, 30, 63, 0.2);
	border-radius: 999px;
	background: #fff8f0;
	color: var(--ps-maroon, #8b1e3f);
	font-size: 0.8rem;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.ps-single-footer .list-wrap a:hover {
	background: var(--ps-btn-bg, #a9445f);
	border-color: var(--ps-btn-bg, #a9445f);
	color: #fff;
}

/* ── Prev / next ── */
.ps-single-nav {
	margin-top: 1.5rem;
}

.ps-single-nav .post-item {
	display: flex;
	gap: 0.85rem;
	padding: 1rem;
	border: 1px solid var(--ps-border, rgba(139, 30, 63, 0.14));
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(139, 30, 63, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ps-single-nav .post-item:hover {
	border-color: rgba(139, 30, 63, 0.22);
	box-shadow: 0 8px 22px rgba(139, 30, 63, 0.08);
}

.ps-single-nav .post-item.next-post {
	flex-direction: row-reverse;
	text-align: right;
}

.ps-single-nav .thumb {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 8px;
}

.ps-single-nav .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ps-single-nav .content span {
	display: block;
	margin-bottom: 0.25rem;
	color: rgba(34, 34, 34, 0.55);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ps-single-nav .post-title {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.4;
}

.ps-single-nav .post-title a {
	color: var(--ps-maroon, #8b1e3f);
	text-decoration: none;
}

.ps-single-nav .post-title a:hover {
	color: var(--ps-btn-bg, #a9445f);
}

/* ── Responsive ── */
@media (max-width: 991px) {
	.ps-single {
		padding: 1.5rem 0 2rem;
	}

	.ps-single-card {
		padding: 1.15rem;
	}
}

@media (max-width: 767px) {
	.ps-single-nav .post-item,
	.ps-single-nav .post-item.next-post {
		flex-direction: column;
		text-align: left;
	}

	.ps-single-nav .thumb {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
	}
}
