/* =========================================================
   Voxel Companion — Previous / Next navigation
   Editorial card layout. All values here are sensible
   defaults; Elementor style controls override via the
   widget's per-instance selectors.
   ========================================================= */

.vc-pn {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 0;
}

/* Top divider is opt-in (toggle adds .vc-pn--divider). */
.vc-pn--divider {
	padding-top: 32px;
	border-top: 1px solid #e8e1d8;
}

.vc-pn-link {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	padding: 14px;
	background: #ffffff;
	border: 1px solid #e8e1d8;
	border-radius: 14px;
	text-decoration: none;
	overflow: hidden;
	transition: border-color .18s ease, transform .15s ease, box-shadow .25s ease, background-color .25s ease;
}

.vc-pn-link:hover {
	border-color: #b1a28e;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px -16px rgba(80, 70, 55, .4);
}

.vc-pn--no-lift .vc-pn-link:hover {
	transform: none;
}

.vc-pn-prev {
	justify-content: flex-start;
}

.vc-pn-next {
	justify-content: flex-end;
	text-align: right;
}

.vc-pn-next .vc-pn-text {
	align-items: flex-end;
}

/* Thumbnail */
.vc-pn-thumb {
	display: inline-flex;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f2eee8;
}

.vc-pn-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.vc-pn-link:hover .vc-pn-thumb img {
	transform: scale(1.06);
}

.vc-pn--no-zoom .vc-pn-link:hover .vc-pn-thumb img {
	transform: none;
}

/* Text stack */
.vc-pn-text {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.vc-pn-dir {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #8a7a65;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vc-pn-next .vc-pn-dir {
	flex-direction: row-reverse;
}

.vc-pn-arrow {
	display: inline-block;
	transition: transform .3s ease;
}

.vc-pn-prev:hover .vc-pn-arrow {
	transform: translateX(-3px);
}

.vc-pn-next:hover .vc-pn-arrow {
	transform: translateX(3px);
}

.vc-pn-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.3;
	color: #333333;
	transition: color .18s ease;
}

.vc-pn-link:hover .vc-pn-title {
	color: #8a7a65;
}

.vc-pn-meta {
	font-size: 12px;
	color: #6b6560;
}

.vc-pn-hint {
	font-size: 12.5px;
	font-style: italic;
	color: #b1a28e;
}

/* ---------------------------------------------------------
   Anchored preset — full-height image flush to the outer
   edge, generous text padding. Mirrors the shared mockup.
   --------------------------------------------------------- */
.vc-pn--anchored .vc-pn-link {
	padding: 0;
	gap: 0;
	align-items: stretch;
}

.vc-pn--anchored .vc-pn-thumb {
	width: 130px;
	height: auto;
	border-radius: 0;
	align-self: stretch;
}

.vc-pn--anchored .vc-pn-thumb img {
	height: 100%;
}

.vc-pn--anchored .vc-pn-text {
	flex: 1;
	justify-content: center;
	padding: 22px 26px;
}

/* ---------------------------------------------------------
   Borderless preset — no card chrome, content sits directly
   on the page with a soft hover. Pairs with the top divider
   toggle for an editorial "keep reading" footer.
   --------------------------------------------------------- */
.vc-pn--borderless .vc-pn-link {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	padding: 6px 2px;
}

.vc-pn--borderless .vc-pn-link:hover {
	background: #faf9f6;
	border-color: transparent;
	box-shadow: none;
	transform: none;
}

/* Empty / placeholder slot keeps the grid balanced */
.vc-pn-empty {
	display: flex;
	align-items: center;
	padding: 14px;
	font-size: 13px;
	color: #b7afa6;
	border: 1px dashed #e8e1d8;
	border-radius: 14px;
}

.vc-pn-empty.vc-pn-next {
	justify-content: flex-end;
}

/* Honor reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	.vc-pn-link,
	.vc-pn-arrow,
	.vc-pn-thumb img {
		transition: none;
	}

	.vc-pn-link:hover {
		transform: none;
	}

	.vc-pn-link:hover .vc-pn-thumb img,
	.vc-pn-prev:hover .vc-pn-arrow,
	.vc-pn-next:hover .vc-pn-arrow {
		transform: none;
	}
}

/* Small screens: next card aligns left like the prev card.
   Column count itself is controlled per-breakpoint from the
   widget (defaults to a single column on mobile). */
@media (max-width: 680px) {
	.vc-pn-next {
		justify-content: flex-start;
		text-align: left;
	}

	.vc-pn-next .vc-pn-text {
		align-items: flex-start;
	}

	.vc-pn-next .vc-pn-dir {
		flex-direction: row;
	}
}
