.naemt-program-calendar {
	--npc-card-bg: #461d63;
	--npc-card-accent: #f2c14e;
	--npc-card-radius: 16px;
	--npc-column-gap: 18px;
	--npc-max-visible-stages: 4;
	--npc-breakpoint-visible-stages: 4;
	--npc-stage-width: 13rem;
	--npc-stage-min-width: 13rem;
	--npc-text: #1b1b1b;
	--npc-line: #dfdfdf;
	--npc-timeline-guide: #d9dde3;
	--npc-surface-bg: #fff;
	--npc-stage-border: #262626;
	--npc-nav-border: #cfcfcf;
	--npc-stage-mask-image: url("./basic-gradient.svg");
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	color: var(--npc-text);
}

.naemt-program-calendar * {
	box-sizing: border-box;
}

nav.npc-day-filter {
	--npc-day-filter-accent: #d0a32f;
	display: flex;
	justify-content: center;
	gap: 3rem;
	width: 100%;
	max-width: 980px;
	margin: 0 auto 2.2rem;
}

.npc-day-filter.is-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.npc-day-filter__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.78rem;
	padding: 0.25rem 0.25rem 0.4rem;
	color: #1f2026;
	text-decoration: none;
	text-align: center;
	width: fit-content;
}

.npc-day-filter__item::after {
	content: "";
	width: min(255px, 100%);
	border-top: 2px solid var(--npc-day-filter-accent);
}

.npc-day-filter__name {
	font-size: 1.25rem;
	line-height: 1;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.npc-day-filter__date {
	font-size: 1.25rem;
	line-height: 1;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.npc-day-filter__item.is-active {
	--npc-day-filter-accent: #4a2a63;
	color: #111217;
}

.npc-day-filter__item.is-active::after {
	border-top-width: 2px;
}

.naemt-program-calendar--empty,
.naemt-program-calendar--error {
	padding: 1rem 0;
}

.npc-calendar__shell {
	position: relative;
}

.npc-calendar__main {
	min-width: 0;
}

.npc-calendar__header,
.npc-calendar__body {
	display: grid;
	grid-template-columns: minmax(56px, 72px) minmax(0, 1fr);
	column-gap: var(--npc-column-gap);
}

.npc-calendar__header {
	margin-bottom: 1.25rem;
	align-items: center;
}

.npc-calendar__header-spacer {
	min-height: 1px;
}

.npc-calendar__stages-viewport {
	min-width: 0;
	overflow: hidden;
}

.npc-calendar__stages-track,
.npc-calendar__lanes-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: var(--npc-stage-width);
	column-gap: 0;
	width: max-content;
	min-width: 100%;
}

.npc-calendar__stage-label {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(8rem, calc(100% - 0.5rem));
	min-height: 2.5rem;
	margin: 0 auto;
	padding: 0.45rem 1rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
	isolation: isolate;
}

.npc-calendar__stage-label::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 2px;
	border-radius: inherit;
	background: var(--npc-stage-mask-image) center / 100% 100% no-repeat;
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.npc-calendar__timeline,
.npc-calendar__lane {
	position: relative;
	min-height: var(--npc-timeline-height);
}

.npc-calendar__timeline {
	padding-right: 0.35rem;
}

.npc-calendar__timeline::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	border-left: 1px dashed var(--npc-timeline-guide);
	pointer-events: none;
}

.npc-calendar__time-mark {
	position: absolute;
	left: 50%;
	width: max-content;
	max-width: calc(100% - 0.5rem);
	padding: 0.5rem;
	background: #efefef;
	transform: translate(-50%, -50%);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1;
	color: #343434;
	z-index: 1;
	white-space: nowrap;
}

.npc-calendar__lanes-viewport {
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: smooth;
}

.npc-calendar__lanes-viewport::-webkit-scrollbar {
	display: none;
}

.npc-calendar__lane {
	border-left: 1px dashed var(--npc-line);
}

.npc-calendar__lane::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(to bottom, rgba(17, 17, 17, 0.08) 1px, transparent 1px);
	background-size: 100% calc(30 * var(--npc-pixels-per-minute));
	pointer-events: none;
}

.npc-calendar__card {
	position: absolute;
	left: 0.5rem;
	right: 0.5rem;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--npc-card-radius);
	background: var(--npc-card-bg);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(28, 11, 46, 0.14);
	transition: 300ms all ease;
}

.npc-calendar__card:hover,
.npc-calendar__card:focus-visible {
	transform: translateY(-6px);
	box-shadow: 0 12px 26px rgba(28, 11, 46, 0.18);
}

.npc-calendar__card-meta {
	position: absolute;
	top: 0.45rem;
	left: 0.45rem;
	right: 0.45rem;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.npc-calendar__pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: var(--npc-card-accent);
	color: #231b0f;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.01em;
}

.npc-calendar__image {
	flex: 1 1 auto;
	min-height: 52px;
	border-radius: var(--npc-card-radius) var(--npc-card-radius) 0 0;
	background-color: var(--npc-card-bg);
	background-size: cover;
	background-position: center;
}

.npc-calendar__content {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.45rem;
	min-height: 0;
	padding: 0.8rem 0.85rem 0.9rem;
	background: var(--npc-card-bg);
	border-radius: 0 0 var(--npc-card-radius) var(--npc-card-radius);
}

.npc-calendar__content--no-image {
	flex: 1 1 auto;
	justify-content: flex-end;
	padding-top: 2.45rem;
	min-height: 0;
	border-radius: var(--npc-card-radius);
	overflow: hidden;
}

.npc-calendar__content--no-image .npc-calendar__description {
	-webkit-line-clamp: 2;
}

h3.npc-calendar__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.2;
	font-weight: 700;
	color: #fff !important;
}

.npc-calendar__description {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.92);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.npc-calendar__nav-button {
	--npc-nav-translate-y: -50%;
	position: absolute;
	top: 1.25rem;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 1rem;
	border: unset;
	border-radius: 999px;
	background: unset;
	color: #000000;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transform: translateY(var(--npc-nav-translate-y));
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.npc-calendar__nav-button--prev {
	left: 0;
}

.npc-calendar__nav-button--next {
	right: 0;
}

.npc-calendar__nav-button:hover,
.npc-calendar__nav-button:focus-visible {
	color: unset;
	border-color: unset;
	transform: translateY(calc(var(--npc-nav-translate-y) - 1px));
}

.npc-calendar__nav-button[disabled] {
	opacity: 0.45;
	cursor: default;
	pointer-events: none;
}

@media (max-width: 1119px) {
	.naemt-program-calendar {
		--npc-breakpoint-visible-stages: 3;
		--npc-stage-min-width: 12rem;
		--npc-overlay-time-col: 3.75rem;
		--npc-overlay-nav-pad: 1.8rem;
	}

	.npc-calendar__header,
	.npc-calendar__body {
		grid-template-columns: 3.75rem minmax(0, 1fr);
		column-gap: 1rem;
	}

	.npc-calendar__header {
		position: relative;
	}

	.npc-calendar__timeline {
		padding-right: 0.25rem;
	}

	.npc-calendar__stages-viewport {
		padding-inline: var(--npc-overlay-nav-pad);
	}

	.npc-calendar__nav-button {
		top: 17.6px;
		padding: 0.35rem 0.5rem;
		font-size: 1.35rem;
	}

	.npc-calendar__nav-button--prev {
		left: 0;
	}

	.npc-calendar__nav-button--next {
		right: 0;
	}
}

@media (max-width: 1023px) {
	.npc-day-filter {
		flex-wrap: wrap;
	}

	.npc-day-filter__name,
	.npc-day-filter__date {
		font-size: 1rem;
	}

	.npc-calendar__stage-label::before {
		padding: 1.5px;
	}

	.naemt-program-calendar {
		--npc-breakpoint-visible-stages: 2;
		--npc-stage-min-width: 14rem;
		--npc-overlay-time-col: 3.25rem;
		--npc-overlay-nav-pad: 1.65rem;
	}

	.npc-calendar__header,
	.npc-calendar__body {
		grid-template-columns: 3.25rem minmax(0, 1fr);
		column-gap: 0.9rem;
	}

	.npc-calendar__stage-label {
		width: min(9rem, calc(100% - 0.5rem));
	}

	.npc-calendar__time-mark {
		position: absolute;
		left: 50%;
		width: max-content;
		max-width: calc(100% - -0.5rem);
		padding: 0.5rem;
		background: #efefef;
		transform: translate(-50%, -50%);
		font-size: 0.95rem;
		font-weight: 500;
		line-height: 1;
		color: #343434;
		z-index: 1;
		white-space: nowrap;
	}

	.npc-calendar__title {
		font-size: 0.95rem;
	}

	.npc-calendar__description {
		font-size: 0.74rem;
	}

	.npc-calendar__nav-button {
		font-size: 1.2rem;
	}
}

@media (max-width: 767px) {
	.npc-day-filter {
		grid-template-columns: 1fr;
		gap: 1.2rem;
		margin-bottom: 1.35rem;
	}

	.npc-day-filter__item {
		gap: 0.45rem;
		padding: 0.55rem 0.35rem;
	}

	.naemt-program-calendar {
		--npc-breakpoint-visible-stages: 2;
		--npc-stage-min-width: 11rem;
		--npc-column-gap: 12px;
		--npc-overlay-time-col: 2.8rem;
		--npc-overlay-nav-pad: 1.35rem;
		--npc-mobile-side-rail: 3.4rem;
	}

	.npc-calendar__main {
		position: relative;
	}

	.npc-calendar__header {
		display: block;
	}

	.npc-calendar__header-spacer {
		display: none;
	}

	.npc-calendar__stages-viewport {
		padding-inline: var(--npc-mobile-side-rail);
	}

	.npc-calendar__body {
		position: relative;
		display: block;
		padding-inline: var(--npc-mobile-side-rail);
	}

	.npc-calendar__timeline {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		width: var(--npc-mobile-side-rail);
		padding-right: 0;
	}

	.npc-calendar__stage-label {
		min-height: 2.2rem;
		padding: 0.35rem 0.75rem;
		font-size: 0.86rem;
	}

	.npc-calendar__time-mark {
		max-width: calc(100% - -1.5rem);
		padding: 0.5rem 0;
		font-size: 0.82rem;
	}

	.npc-calendar__card {
		left: 0.35rem;
		right: 0.35rem;
	}

	.npc-calendar__content {
		padding: 0.7rem 0.72rem 0.75rem;
	}

	.npc-calendar__content--no-image {
		padding-top: 2.2rem;
	}

	h3.npc-calendar__title {
		font-size: 0.92rem;
	}

	.npc-calendar__description {
		font-size: 0.72rem;
	}

	.npc-calendar__pill {
		padding: 0.25rem 0.6rem;
		font-size: 0.68rem;
	}

	.npc-calendar__nav-button {
		padding: 0.35rem 0.45rem;
		font-size: 1.05rem;
	}

	.npc-calendar__nav-button--prev {
		left: 0;
	}

	.npc-calendar__nav-button--next {
		right: 0;
	}
}

@media (max-width: 479px) {
	.npc-day-filter {
		gap: 0.65rem;
	}

	.npc-day-filter__name,
	.npc-day-filter__date {
		font-size: 1rem;
	}

	.naemt-program-calendar {
		--npc-breakpoint-visible-stages: 1;
		--npc-stage-min-width: 14rem;
		--npc-column-gap: 10px;
		--npc-overlay-time-col: 2.5rem;
		--npc-overlay-nav-pad: 1.1rem;
		--npc-mobile-side-rail: 3rem;
	}

	.npc-calendar__stage-label {
		width: min(8.5rem, 100%);
	}

	.npc-calendar__time-mark {
		font-size: 0.76rem;
	}

	.npc-calendar__nav-button {
		padding: 0.25rem 0.35rem;
		font-size: 0.95rem;
	}
}
