/* Newsam Editions Strip — front end
   Desktop: all cards in one static row (equal widths).
   Mobile:  the row becomes a swipeable, scroll-snap slider. */

.nestrip {
	--nestrip-gap: 16px;
	--nestrip-radius: 12px;
	--nestrip-accent: #c8102e;
	margin: 0 0 24px;
}

.nestrip__heading {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 12px;
	line-height: 1.2;
}

/* ---- The track: row on desktop ---- */
.nestrip__track {
	display: grid;
	grid-template-columns: repeat(var(--nestrip-count, 5), 1fr);
	gap: var(--nestrip-gap);
}

/* ---- Card ---- */
.nestrip__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: var(--nestrip-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.nestrip__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
	border-color: #e0e0e0;
}

.nestrip__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: #f2f3f5;
	overflow: hidden;
}
.nestrip__img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	display: block;
}
.nestrip__media-ph {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #e9ecef 0%, #f6f7f9 100%);
}

.nestrip__body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1 1 auto;
}
.nestrip__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}
.nestrip__desc {
	font-size: 13px;
	line-height: 1.4;
	color: #555;
}
.nestrip__cta {
	margin-top: auto;
	padding-top: 8px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--nestrip-accent);
}
.nestrip__cta svg { width: 14px; height: 14px; }

/* ---- Text-only variant (images toggled off, e.g. "Upcoming States") ---- */
.nestrip--no-images .nestrip__card {
	border-left: 3px solid var(--nestrip-accent);
	background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}
.nestrip--no-images .nestrip__body {
	padding: 16px 16px 16px;
	gap: 7px;
	min-height: 118px;
	justify-content: center;
}
.nestrip--no-images .nestrip__title { font-size: 16px; }
.nestrip--no-images .nestrip__desc { font-size: 13.5px; }

/* Dots are only shown on mobile (slider mode). */
.nestrip__dots { display: none; }

/* ---- Mobile: slider ---- */
@media (max-width: 782px) {
	.nestrip__track {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
		scroll-padding-left: 0;
	}
	.nestrip__track::-webkit-scrollbar { display: none; }

	.nestrip__card {
		flex: 0 0 78%;
		max-width: 320px;
		scroll-snap-align: start;
	}

	.nestrip__dots {
		display: flex;
		justify-content: center;
		gap: 7px;
		margin-top: 12px;
	}
	.nestrip__dot {
		width: 7px;
		height: 7px;
		border-radius: 50%;
		border: 0;
		padding: 0;
		background: #cfcfcf;
		cursor: pointer;
		transition: background .2s ease, transform .2s ease;
	}
	.nestrip__dot.is-on {
		background: var(--nestrip-accent);
		transform: scale(1.3);
	}
}

@media (max-width: 480px) {
	.nestrip__card { flex-basis: 85%; }
}
