/**
 * Responsive Content Slider - multi-card carousel
 * @version 1.5.0
 */

.jx-rcs {
	--rcs-accent: #c2410c;
	--rcs-accent-soft: color-mix(in srgb, var(--rcs-accent) 16%, transparent);
	--rcs-speed: 500ms;
	--rcs-radius: 18px;
	--rcs-gap: 1rem;
	--rcs-per-view: 3;
	--rcs-ink: #1c1917;
	--rcs-muted: #78716c;
	--rcs-line: rgba(28, 25, 23, 0.12);
	--rcs-surface: #f5f5f4;
	--rcs-panel: #ffffff;
	--rcs-shadow: 0 12px 28px rgba(28, 25, 23, 0.08);
	font-family: "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif;
	color: var(--rcs-ink);
	margin: 0;
	outline: none;
}

.jx-rcs *,
.jx-rcs *::before,
.jx-rcs *::after {
	box-sizing: border-box;
}

.jx-rcs-shell {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	min-width: 0;
}

.jx-rcs-stage {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.55rem;
	align-items: center;
	min-width: 0;
}

.jx-rcs-viewport {
	overflow: hidden;
	min-width: 0;
	padding: 0.15rem 0;
}

.jx-rcs--peek .jx-rcs-viewport {
	padding-right: 1.25rem;
	mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
}

.jx-rcs-track {
	display: flex;
	gap: var(--rcs-gap);
	will-change: transform;
	transition: transform var(--rcs-speed) cubic-bezier(0.22, 1, 0.36, 1);
}

.jx-rcs-card {
	flex: 0 0 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: var(--rcs-panel);
	border: 1px solid var(--rcs-line);
	border-radius: var(--rcs-radius);
	overflow: hidden;
	box-shadow: var(--rcs-shadow);
	height: auto;
	align-self: stretch;
}

.jx-rcs-media {
	margin: 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--rcs-surface);
}

.jx-rcs-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.jx-rcs-card:hover .jx-rcs-media img {
	transform: scale(1.04);
}

.jx-rcs-body {
	padding: 1.05rem 1.15rem 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	flex: 1;
}

.jx-rcs-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.7rem;
	font-size: 0.72rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--rcs-muted);
}

.jx-rcs-cat {
	color: var(--rcs-accent);
	font-weight: 700;
}

.jx-rcs-title {
	margin: 0;
	font-size: clamp(1.05rem, 1.6vw, 1.28rem);
	line-height: 1.3;
	font-weight: 750;
	letter-spacing: -0.02em;
}

.jx-rcs-title a {
	color: inherit;
	text-decoration: none;
}

.jx-rcs-title a:hover,
.jx-rcs-title a:focus-visible {
	color: var(--rcs-accent);
}

.jx-rcs-content {
	color: var(--rcs-muted);
	font-size: 0.94rem;
	line-height: 1.55;
	flex: 1;
}

.jx-rcs-content > *:first-child { margin-top: 0; }
.jx-rcs-content > *:last-child { margin-bottom: 0; }

.jx-rcs-actions {
	margin-top: 0.2rem;
}

.jx-rcs-readmore {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--rcs-accent);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid color-mix(in srgb, var(--rcs-accent) 35%, transparent);
	padding-bottom: 0.1rem;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.jx-rcs-readmore:hover,
.jx-rcs-readmore:focus-visible {
	border-bottom-color: var(--rcs-accent);
}

.jx-rcs-arrow {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--rcs-line);
	background: var(--rcs-panel);
	color: var(--rcs-ink);
	display: inline-grid;
	place-items: center;
	cursor: pointer;
	flex-shrink: 0;
	box-shadow: var(--rcs-shadow);
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.jx-rcs-arrow:hover,
.jx-rcs-arrow:focus-visible {
	border-color: var(--rcs-accent);
	color: var(--rcs-accent);
	background: var(--rcs-accent-soft);
	outline: none;
}

.jx-rcs-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.jx-rcs-progress {
	height: 3px;
	border-radius: 999px;
	background: var(--rcs-line);
	overflow: hidden;
}

.jx-rcs-progress span {
	display: block;
	height: 100%;
	width: 100%;
	transform-origin: left center;
	transform: scaleX(0);
	background: var(--rcs-accent);
}

.jx-rcs-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.45rem;
}

.jx-rcs-dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 999px;
	border: 0;
	padding: 0;
	background: color-mix(in srgb, var(--rcs-muted) 45%, transparent);
	cursor: pointer;
	transition: width 0.25s ease, background 0.25s ease;
}

.jx-rcs-dot.is-active {
	width: 1.45rem;
	background: var(--rcs-accent);
}

/* Layouts */
.jx-rcs--layout-magazine .jx-rcs-card {
	flex-direction: row;
	min-height: 10.5rem;
}

.jx-rcs--layout-magazine .jx-rcs-media {
	flex: 0 0 42%;
	aspect-ratio: auto;
	min-height: 100%;
}

.jx-rcs--layout-magazine .jx-rcs-body {
	flex: 1;
	justify-content: center;
}

.jx-rcs--layout-overlay .jx-rcs-card {
	position: relative;
	min-height: 16rem;
}

.jx-rcs--layout-overlay .jx-rcs-media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.jx-rcs--layout-overlay .jx-rcs-body {
	position: relative;
	z-index: 1;
	margin-top: auto;
	background: linear-gradient(180deg, transparent, rgba(12, 10, 9, 0.82));
	color: #fafaf9;
	padding-top: 3.5rem;
}

.jx-rcs--layout-overlay .jx-rcs-title,
.jx-rcs--layout-overlay .jx-rcs-title a,
.jx-rcs--layout-overlay .jx-rcs-content,
.jx-rcs--layout-overlay .jx-rcs-meta,
.jx-rcs--layout-overlay .jx-rcs-readmore {
	color: #fafaf9;
}

.jx-rcs--layout-overlay .jx-rcs-cat,
.jx-rcs--layout-overlay .jx-rcs-readmore {
	color: #fdba74;
}

.jx-rcs--layout-overlay .jx-rcs-readmore {
	border-bottom-color: rgba(253, 186, 116, 0.45);
}

.jx-rcs--layout-minimal .jx-rcs-card {
	box-shadow: none;
	background: transparent;
	border-color: transparent;
	border-top: 3px solid var(--rcs-accent);
	border-radius: 0;
}

.jx-rcs--layout-minimal .jx-rcs-body {
	padding-inline: 0.15rem;
}

/* Themes */
.jx-rcs--theme-soft {
	--rcs-panel: #fffaf5;
	--rcs-surface: #f3ebe3;
	--rcs-ink: #292524;
	--rcs-muted: #8a8178;
	--rcs-line: rgba(68, 48, 32, 0.1);
	--rcs-shadow: 0 14px 32px rgba(68, 48, 32, 0.07);
}

.jx-rcs--theme-contrast {
	--rcs-panel: #ffffff;
	--rcs-surface: #e7e5e4;
	--rcs-ink: #0c0a09;
	--rcs-muted: #44403c;
	--rcs-line: #0c0a09;
	--rcs-shadow: none;
	--rcs-radius: 4px;
}

.jx-rcs--theme-contrast .jx-rcs-card {
	border-width: 2px;
}

.jx-rcs--theme-ink {
	--rcs-ink: #f5f5f4;
	--rcs-muted: #a8a29e;
	--rcs-line: rgba(245, 245, 244, 0.14);
	--rcs-surface: #292524;
	--rcs-panel: #1c1917;
	--rcs-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.jx-rcs--theme-ink .jx-rcs-title { color: #fafaf9; }
.jx-rcs--theme-ink .jx-rcs-arrow { background: #292524; }

.jx-rcs--theme-forest {
	--rcs-accent: #166534;
	--rcs-panel: #f3f7f3;
	--rcs-surface: #dce8dc;
	--rcs-ink: #14532d;
	--rcs-muted: #3f6212;
	--rcs-line: rgba(20, 83, 45, 0.14);
}

.jx-rcs-empty {
	padding: 1rem;
	color: var(--rcs-muted);
}

@media (max-width: 979px) {
	.jx-rcs--layout-magazine .jx-rcs-card {
		flex-direction: column;
		min-height: 0;
	}

	.jx-rcs--layout-magazine .jx-rcs-media {
		flex-basis: auto;
		aspect-ratio: 16 / 10;
		min-height: 0;
	}
}

@media (max-width: 639px) {
	.jx-rcs-stage {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
		gap: 0.65rem;
	}

	.jx-rcs-viewport {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.jx-rcs-prev {
		grid-row: 2;
		grid-column: 1;
		justify-self: start;
	}

	.jx-rcs-next {
		grid-row: 2;
		grid-column: 2;
		justify-self: end;
	}

	.jx-rcs-arrow {
		width: 44px;
		height: 44px;
	}

	.jx-rcs--peek .jx-rcs-viewport {
		padding-right: 0.85rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jx-rcs-track,
	.jx-rcs-media img,
	.jx-rcs-dot,
	.jx-rcs-arrow {
		transition: none !important;
	}
}
