/**
 * IFA-Timeline frontend styles.
 */

.ifa-timeline {
	--ifa-timeline-blue: var(--ifa-color-brand, var(--nm--color-accent, #124389));
	--ifa-timeline-blue-deep: var(--ifa-color-brand-deep, var(--nm--color-font-highlight, #0d336b));
	--ifa-timeline-ink: var(--ifa-color-ink, var(--nm--color-font-strong, #282828));
	--ifa-timeline-text: var(--ifa-color-text, var(--nm--color-font, #44515f));
	--ifa-timeline-muted: var(--ifa-color-muted, var(--nm--color-font-light, #718096));
	--ifa-timeline-surface: var(--ifa-color-surface, var(--nm--color-surface, #fbfcfd));
	--ifa-timeline-surface-muted: var(--ifa-color-surface-muted, var(--nm--color-surface-muted, #eef1f4));
	--ifa-timeline-line: var(--ifa-color-border, var(--nm--color-border, #d8e1ec));
	--ifa-timeline-divider: var(--nm--color-divider, #c8d1db);
	--ifa-timeline-button-bg: var(--nm--color-button-background, #282828);
	--ifa-timeline-button-text: var(--nm--color-button, #fbfcfd);
	--ifa-timeline-radius-button: var(--nm--border-radius-button, 8px);
	--ifa-timeline-motion: 180ms ease-out;
	--ifa-timeline-marker-motion: 420ms cubic-bezier(.16, 1, .3, 1);
	--ifa-timeline-point-motion: 420ms cubic-bezier(.16, 1, .3, 1);
	--ifa-timeline-progress-motion: 600ms cubic-bezier(.16, 1, .3, 1);
	--ifa-timeline-progress-x: 17px;
	--ifa-timeline-progress-y: 17px;
	--ifa-timeline-progress-width: 0px;
	--ifa-timeline-progress-height: 1px;
	--ifa-timeline-progress-transform: translateY(-50%);
	--ifa-timeline-marker-size: 34px;
	--ifa-timeline-focus: 0 0 0 3px color-mix(in srgb, var(--ifa-timeline-blue) 22%, transparent);
	--ifa-timeline-content-width: var(--ifa-layout-wide, 1600px);
	--ifa-timeline-content-gutter: var(--nm--page-column-spacing, 15px);
	width: 100%;
	margin: 0;
	padding: clamp(42px, 5vw, 72px) 0;
	background: var(--ifa-timeline-surface);
	background-image: none;
	color: var(--ifa-timeline-ink);
	font-family: var(--ifa-font-family, Montserrat, Arial, sans-serif);
	overflow-x: clip;
}

.ifa-timeline *,
.ifa-timeline *::before,
.ifa-timeline *::after {
	box-sizing: border-box;
}

.ifa-timeline__inner {
	width: 100%;
	max-width: var(--ifa-timeline-content-width);
	margin: 0 auto;
	padding-right: var(--ifa-timeline-content-gutter);
	padding-left: var(--ifa-timeline-content-gutter);
}

.ifa-timeline__header {
	display: grid;
	grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.44fr);
	gap: clamp(22px, 3.5vw, 46px);
	align-items: end;
	margin: 0 0 34px;
}

.ifa-timeline__eyebrow {
	margin: 0 0 8px;
	color: var(--ifa-timeline-blue);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: uppercase;
}

.ifa-timeline__heading h2 {
	margin: 0;
	color: var(--ifa-timeline-ink);
	font-size: clamp(30px, 2.4vw, 36px);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.22;
	text-transform: uppercase;
}

.ifa-timeline__description {
	max-width: 58ch;
	margin: 0;
	color: var(--ifa-timeline-text);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.7;
}

.ifa-timeline__controls {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin: 0 0 34px;
	padding: 10px 0;
	border: 0;
}

.ifa-timeline__status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.ifa-timeline__button-row {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	flex-wrap: nowrap;
}

.ifa-timeline__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--ifa-timeline-ink);
	cursor: pointer;
	font: inherit;
	letter-spacing: 0;
	line-height: 1;
	padding: 0;
	transition:
		background-color var(--ifa-timeline-motion),
		border-color var(--ifa-timeline-motion),
		color var(--ifa-timeline-motion),
		box-shadow var(--ifa-timeline-motion);
}

.ifa-timeline__button:hover {
	border-color: var(--ifa-timeline-blue);
	background: transparent;
	color: var(--ifa-timeline-blue-deep);
}

.ifa-timeline__button:focus-visible {
	outline: 2px solid var(--ifa-timeline-blue);
	outline-offset: 0;
	box-shadow: none;
}

.ifa-timeline__button:disabled {
	border-color: transparent;
	background: transparent;
	color: var(--ifa-timeline-muted);
	cursor: not-allowed;
}

.ifa-timeline__button--primary {
	border-color: var(--ifa-timeline-line);
	background: transparent;
	color: var(--ifa-timeline-ink);
}

.ifa-timeline__button--primary:hover {
	border-color: var(--ifa-timeline-blue);
	background: transparent;
	color: var(--ifa-timeline-blue);
}

.ifa-timeline__button--primary[aria-pressed="true"] {
	border-color: var(--ifa-timeline-blue);
	background: transparent;
	color: var(--ifa-timeline-blue);
}

.ifa-timeline__button-icon {
	width: 1em;
	height: 1em;
	color: currentColor;
	font-size: 22px;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
}

.ifa-timeline__button-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.ifa-timeline__track {
	position: relative;
	isolation: isolate;
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ifa-timeline;
}

.ifa-timeline--layout-horizontal .ifa-timeline__track,
.ifa-timeline--layout-auto .ifa-timeline__track {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	align-items: stretch;
}

@media (min-width: 761px) {
	.ifa-timeline--layout-horizontal .ifa-timeline__track {
		--ifa-timeline-progress-x: calc(50% - 50vw);
		--ifa-timeline-progress-width: calc(50vw - 50% + (var(--ifa-timeline-marker-size) / 2));
	}
}

@media (min-width: 1181px) {
	.ifa-timeline--layout-auto .ifa-timeline__track {
		--ifa-timeline-progress-x: calc(50% - 50vw);
		--ifa-timeline-progress-width: calc(50vw - 50% + (var(--ifa-timeline-marker-size) / 2));
	}
}

.ifa-timeline--layout-horizontal .ifa-timeline__track::before,
.ifa-timeline--layout-auto .ifa-timeline__track::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: calc(var(--ifa-timeline-marker-size) / 2);
	left: 50%;
	width: 100vw;
	height: 1px;
	background: var(--ifa-timeline-line);
	transform: translateX(-50%);
}

.ifa-timeline__track::after {
	content: "";
	position: absolute;
	z-index: 1;
	top: var(--ifa-timeline-progress-y);
	left: var(--ifa-timeline-progress-x);
	width: var(--ifa-timeline-progress-width);
	height: var(--ifa-timeline-progress-height);
	background: var(--ifa-timeline-blue);
	pointer-events: none;
	transform: var(--ifa-timeline-progress-transform);
	transform-origin: left center;
	transition:
		top var(--ifa-timeline-progress-motion),
		left var(--ifa-timeline-progress-motion),
		width var(--ifa-timeline-progress-motion),
		height var(--ifa-timeline-progress-motion);
}

.ifa-timeline--layout-vertical .ifa-timeline__track {
	gap: 24px;
}

.ifa-timeline__item {
	position: relative;
	z-index: 2;
	min-width: 0;
	list-style: none;
}

.ifa-timeline.is-enhanced .ifa-timeline__item[hidden] {
	display: none;
}

@media (min-width: 1181px) {
	.ifa-timeline--layout-horizontal.is-enhanced .ifa-timeline__item[hidden],
	.ifa-timeline--layout-auto.is-enhanced .ifa-timeline__item[hidden] {
		display: list-item;
		visibility: hidden;
		pointer-events: none;
	}
}

.ifa-timeline.is-enhanced .ifa-timeline__item.is-visible {
	animation: ifaTimelinePointIn var(--ifa-timeline-point-motion) both;
}

.ifa-timeline__card {
	position: relative;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 14px;
	height: 100%;
	padding: 0 18px 0 0;
	color: var(--ifa-timeline-ink);
}

.ifa-timeline--layout-horizontal .ifa-timeline__card,
.ifa-timeline--layout-auto .ifa-timeline__card {
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	padding: 46px clamp(24px, 2vw, 34px) 0 0;
}

.ifa-timeline--layout-vertical .ifa-timeline__card::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: 0;
	bottom: 0;
	left: calc(var(--ifa-timeline-marker-size) / 2);
	width: 1px;
	background: var(--ifa-timeline-line);
}

.ifa-timeline__marker {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ifa-timeline-marker-size);
	height: var(--ifa-timeline-marker-size);
	border: 1px solid var(--ifa-timeline-divider);
	border-radius: 999px;
	background: var(--ifa-timeline-surface);
	color: var(--ifa-timeline-ink);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
	box-shadow: 0 0 0 4px var(--ifa-timeline-surface);
	transition:
		background-color var(--ifa-timeline-marker-motion),
		border-color var(--ifa-timeline-marker-motion),
		box-shadow var(--ifa-timeline-marker-motion),
		color var(--ifa-timeline-marker-motion);
}

.ifa-timeline--layout-horizontal .ifa-timeline__marker,
.ifa-timeline--layout-auto .ifa-timeline__marker {
	position: absolute;
	top: 0;
	left: 0;
}

.ifa-timeline.is-enhanced .ifa-timeline__item.is-visible .ifa-timeline__marker {
	border-color: var(--ifa-timeline-blue);
	color: var(--ifa-timeline-blue);
}

.ifa-timeline.is-enhanced .ifa-timeline__item.is-current .ifa-timeline__marker {
	background: var(--ifa-timeline-surface);
	border-color: var(--ifa-timeline-blue);
	color: var(--ifa-timeline-blue);
	box-shadow:
		0 0 0 4px var(--ifa-timeline-surface),
		0 0 0 6px color-mix(in srgb, var(--ifa-timeline-blue) 18%, transparent);
}

@keyframes ifaTimelinePointIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ifa-timeline__content {
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow-wrap: anywhere;
}

.ifa-timeline__year {
	margin: 0 0 10px;
	color: var(--ifa-timeline-blue);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: uppercase;
}

.ifa-timeline__content h3 {
	margin: 0;
	color: var(--ifa-timeline-ink);
	font-size: clamp(18px, 1.35vw, 20px);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.3;
}

.ifa-timeline__subtitle {
	margin: 10px 0 0;
	color: var(--ifa-timeline-ink);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.5;
}

.ifa-timeline__media {
	margin: 18px 0 0;
	overflow: hidden;
	border: 1px solid var(--ifa-timeline-line);
	background: transparent;
}

.ifa-timeline__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.ifa-timeline__body {
	margin-top: 14px;
	color: var(--ifa-timeline-text);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.7;
}

.ifa-timeline__body p {
	margin: 0 0 10px;
}

.ifa-timeline__body p:last-child {
	margin-bottom: 0;
}

.ifa-timeline__link {
	display: inline-flex;
	align-items: center;
	margin-top: 14px;
	color: var(--ifa-timeline-ink);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.ifa-timeline__link:hover {
	color: var(--ifa-timeline-blue);
}

.ifa-timeline__link:focus-visible {
	outline: 2px solid var(--ifa-timeline-blue);
	outline-offset: 0;
	box-shadow: none;
}

.ifa-timeline__empty {
	display: grid;
	gap: 6px;
	padding: 18px 0;
	border-top: 1px solid var(--ifa-timeline-line);
	border-bottom: 1px solid var(--ifa-timeline-line);
	background: transparent;
	color: var(--ifa-timeline-text);
	font-size: 14px;
	line-height: 1.6;
}

.ifa-timeline__empty strong {
	color: var(--ifa-timeline-ink);
	font-size: 16px;
	font-weight: 800;
}

@media (max-width: 1180px) {
	.ifa-timeline--layout-auto .ifa-timeline__track {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ifa-timeline--layout-auto .ifa-timeline__track::before {
		content: none;
	}

	.ifa-timeline--layout-auto .ifa-timeline__card {
		grid-template-columns: 52px minmax(0, 1fr);
		gap: 14px;
		padding: 0;
	}

	.ifa-timeline--layout-auto .ifa-timeline__card::before {
		content: "";
		position: absolute;
		z-index: 0;
		top: 0;
		bottom: 0;
		left: calc(var(--ifa-timeline-marker-size) / 2);
		right: auto;
		width: 1px;
		height: auto;
		background: var(--ifa-timeline-line);
	}

	.ifa-timeline--layout-auto .ifa-timeline__marker {
		position: relative;
		top: 0;
		left: 0;
	}
}

@media (max-width: 760px) {
	.ifa-timeline {
		margin: 0;
		padding: 38px 0 58px;
	}

	.ifa-timeline__inner {
		width: calc(100% - 10vw);
	}

	.ifa-timeline__header {
		grid-template-columns: 1fr;
		align-items: start;
		gap: 14px;
		margin-bottom: 22px;
	}

	.ifa-timeline__heading h2 {
		font-size: 27px;
		line-height: 1.18;
	}

	.ifa-timeline__controls {
		display: flex;
		gap: 10px;
		align-items: center;
		justify-content: flex-end;
	}

	.ifa-timeline__button-row {
		display: inline-flex;
		width: auto;
	}

	.ifa-timeline__button {
		width: 44px;
		min-width: 44px;
		min-height: 44px;
		padding: 0;
	}

	.ifa-timeline--layout-horizontal .ifa-timeline__track {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ifa-timeline--layout-horizontal .ifa-timeline__track::before {
		content: none;
	}

	.ifa-timeline--layout-horizontal .ifa-timeline__card {
		grid-template-columns: 52px minmax(0, 1fr);
		padding: 0;
	}

	.ifa-timeline--layout-horizontal .ifa-timeline__card::before {
		content: "";
		position: absolute;
		z-index: 0;
		top: 0;
		bottom: 0;
		left: calc(var(--ifa-timeline-marker-size) / 2);
		right: auto;
		width: 1px;
		height: auto;
		background: var(--ifa-timeline-line);
	}

	.ifa-timeline--layout-horizontal .ifa-timeline__marker {
		position: relative;
		top: 0;
		left: 0;
	}

	.ifa-timeline__content {
		padding: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ifa-timeline *,
	.ifa-timeline *::before,
	.ifa-timeline *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
