.nscs,
.nscs-single {
	--p: var(--nscs-primary, #1a56db);
	--d: var(--nscs-dark, #0f172a);
}
.nscs {
	margin: 2rem 0;
	font-family: inherit;
}

/* Filter bar */
.nscs__filters ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}
.nscs__filters button,
.nscs__filters a {
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	padding: .55rem 1.2rem;
	border: 1.5px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	color: var(--d);
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: all .2s ease;
}
.nscs__filters button:hover,
.nscs__filters button:focus-visible,
.nscs__filters a:hover,
.nscs__filters a:focus-visible {
	border-color: var(--p);
	color: var(--p);
}
.nscs__filters button.is-active,
.nscs__filters a.is-active {
	background: var(--p);
	border-color: var(--p);
	color: #fff;
}

/* Grid */
.nscs__grid {
	display: grid;
	grid-template-columns: repeat(var(--nscs-cols, 3), 1fr);
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nscs__item { margin: 0; padding: 0; }
.nscs__item[hidden] { display: none !important; }

/* Card */
.nscs-card {
	height: 100%;
	background: #fff;
	border: 1px solid #dcddd6;
	border-radius: 14px;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}
.nscs-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
}
a.nscs-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}
.nscs-card__media {
	position: relative;
	margin: 0;
	padding: 8px 8px 0;
	background: #eeeeea;
}
.nscs-card__media img,
.nscs-card__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 8px 8px 0 0;
}
.nscs-card__placeholder { background: linear-gradient(135deg, #f5f5f0, #dcdcd4); }
.nscs-card__badge {
	position: absolute;
	top: 18px;
	left: 18px;
	padding: .35rem .7rem;
	background: #24201b;
	color: #fff;
	border-radius: 7px;
	font-size: .68rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .03em;
	text-transform: uppercase;
}
.nscs-card__go {
	position: absolute;
	right: 18px;
	bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #ffe000;
	color: #111;
	transition: transform .25s ease;
}
.nscs-card:hover .nscs-card__go { transform: rotate(45deg) scale(1.06); }
.nscs-card__body {
	display: flex;
	flex-direction: column;
	gap: .55rem;
	flex: 1;
	padding: 1.35rem 1.4rem 1.4rem;
}
.nscs-card__cat {
	margin: 0;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #6b5600;
}
.nscs-card__title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.25;
	color: #111;
}
.nscs-card__tag,
.nscs-card__text { margin: 0; font-size: .9rem; line-height: 1.5; }
.nscs-card__tag { font-weight: 600; color: #111; }
.nscs-card__text { color: #3f3f3f; }
.nscs-card__more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	margin-top: auto;
	padding-top: 1.1rem;
	font-size: .88rem;
	font-weight: 700;
	color: #111;
}
.nscs-card__more .nscs-arrow { color: #6b5600; transition: transform .25s ease; }
.nscs-card:hover .nscs-card__more .nscs-arrow { transform: translate(2px, -2px); }
.nscs-card__location { display: flex; align-items: center; gap: .3rem; margin: 0; font-size: .85rem; color: #64748b; }
.nscs-icon { flex: none; color: var(--p); }

/* Archive page */
.nscs-archive__inner { max-width: 1240px; margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; }
.nscs__pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; margin: 2.5rem 0 0; padding: 0; }
.nscs__pagination a,
.nscs__pagination span {
	display: block;
	min-width: 40px;
	padding: .55rem .8rem;
	text-align: center;
	border: 1px solid #dcddd6;
	border-radius: 8px;
	background: #fff;
	color: #111;
	text-decoration: none;
}
.nscs__pagination .current { background: #ffe000; border-color: #ffe000; font-weight: 700; }

/* Result figures */
.nscs-card__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
	gap: .75rem;
	margin: .25rem 0 0;
	padding: .9rem 0 0;
	border-top: 1px solid #eef0f3;
}
.nscs-card__stats div { display: flex; flex-direction: column-reverse; }
.nscs-card__stats dt { font-size: .75rem; color: #64748b; }
.nscs-card__stats dd { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--p); }

/* Buttons */
.nscs-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-top: auto;
	padding-top: .75rem;
}
.nscs-btn {
	display: inline-block;
	padding: .6rem 1.1rem;
	border-radius: 8px;
	border: 1.5px solid var(--p);
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: all .2s ease;
}
.nscs-btn--primary { background: var(--p); color: #fff; }
.nscs-btn--primary:hover { background: var(--d); border-color: var(--d); color: #fff; }
.nscs-btn--ghost { background: transparent; color: var(--p); }
.nscs-btn--ghost:hover { background: var(--p); color: #fff; }

/* Single case study: text left, images right (50 / 50) */
.nscs-single {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: start;
	margin: 1.5rem 0 2.5rem;
}
.nscs-single--no-media { grid-template-columns: 1fr; }
.nscs-single__body { min-width: 0; }
.nscs-single__media { min-width: 0; position: sticky; top: 2rem; }
.nscs-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}
.nscs-single__meta {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}
.nscs-single__meta li { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0; }
.nscs-single__meta strong { color: var(--d); }
.nscs-single__content > :first-child { margin-top: 0; }
.nscs-single__stats { margin: 1.5rem 0; padding: 1.25rem; background: #f8fafc; border: 0; border-radius: 12px; }
.nscs-single__stats dd { font-size: 1.6rem; }
.nscs-single__cta { margin: 1.75rem 0 0; }
.nscs-single .nscs-btn { padding: .8rem 1.5rem; }
.nscs-single a.nscs-btn--primary,
.nscs-single a.nscs-btn--primary:visited,
.nscs-single a.nscs-btn--primary:focus { background: var(--p); border-color: var(--p); color: #fff; }
.nscs-single a.nscs-btn--primary:hover { background: var(--d); border-color: var(--d); color: #fff; }

/* Image slider (swipe on touch, arrows and dots on desktop) */
.nscs-slider { position: relative; }
.nscs-slider__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	border-radius: 14px;
	background: #f1f5f9;
}
.nscs-slider__track::-webkit-scrollbar { display: none; }
.nscs-slider__track:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }
.nscs-slider__slide {
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	aspect-ratio: 16 / 10;
}
.nscs-slider__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}
.nscs-slider__nav {
	all: unset;
	box-sizing: border-box;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--d);
	box-shadow: 0 2px 10px rgba(15, 23, 42, .25);
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.nscs-slider__nav:hover,
.nscs-slider__nav:focus-visible { background: var(--p); color: #fff; }
.nscs-slider__nav[hidden] { display: none; }
.nscs-slider__prev { left: 12px; }
.nscs-slider__next { right: 12px; }
.nscs-slider__dots { display: flex; justify-content: center; gap: .5rem; margin-top: .9rem; }
.nscs-slider__dot {
	all: unset;
	box-sizing: border-box;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #cbd5e1;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.nscs-slider__dot.is-active { background: var(--p); transform: scale(1.25); }
.nscs-slider__dot:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }

/* Responsive */
@media (max-width: 1024px) {
	.nscs__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.nscs-single { grid-template-columns: 1fr; gap: 1.5rem; }
	.nscs-single__media { order: -1; position: static; }
	.nscs-slider__nav { width: 34px; height: 34px; }
}
@media (max-width: 640px) {
	.nscs__grid { grid-template-columns: 1fr; }
	.nscs__filters ul { justify-content: flex-start; }
}

/* Archive filter pills: dark active state like the design */
.nscs-archive .nscs__filters button.is-active,
.nscs-archive .nscs__filters a.is-active { background: #111; border-color: #111; color: #fff; }
.nscs-archive .nscs__filters button:hover,
.nscs-archive .nscs__filters a:hover { border-color: #111; color: #111; }
.nscs-archive .nscs__filters button.is-active:hover,
.nscs-archive .nscs__filters a.is-active:hover { color: #fff; }
.nscs-archive .nscs__filters ul { justify-content: flex-start; }
