/*
 * Legacy timeline ([legacy_timeline] shortcode).
 * Large orange year on the left, uppercase navy title, standard body text.
 * Colours and type come from the Elementor kit's global variables
 * (--e-global-color-* / --e-global-typography-*), so they follow the kit.
 */

.zlm {
	--zlm-accent: var(--e-global-color-secondary);
	--zlm-dark: var(--e-global-color-61f9ad1);
	--zlm-year-col: 120px;  /* width of the year column */
	--zlm-year-size: 40px;
	--zlm-gap: 48px;        /* space between entries */

	width: 100%;
	font-family: var(--e-global-typography-ed00615-font-family), sans-serif;
	color: var(--e-global-color-text);
}

.zlm__list {
	display: grid;
	gap: var(--zlm-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.zlm__item {
	margin: 0;
	padding: 0;
}

.zlm__entry {
	position: relative;
	padding-left: var(--zlm-year-col);
}

/* Title: kit style "TEAM - Name" */
.zlm .zlm__heading {
	margin: 0;
	padding: 0;
	font-family: var(--e-global-typography-6c26703-font-family), sans-serif;
	font-size: var(--e-global-typography-6c26703-font-size);
	font-weight: var(--e-global-typography-6c26703-font-weight);
	line-height: var(--e-global-typography-6c26703-line-height);
	letter-spacing: 0.08em;
	text-transform: var(--e-global-typography-6c26703-text-transform);
	color: var(--zlm-dark);
}

.zlm__title {
	display: block;
}

/* the dash is only there for screen readers and unstyled views */
.zlm__sep {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Year: in the left column, top-aligned with the title */
.zlm__year {
	position: absolute;
	top: -0.1em;
	left: 0;
	width: var(--zlm-year-col);
	font-family: var(--e-global-typography-primary-font-family), sans-serif;
	font-size: var(--zlm-year-size);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	color: var(--zlm-accent);
	font-variant-numeric: tabular-nums;
}

/* Body: kit style "Body" */
.zlm__body {
	margin-top: 8px;
	font-family: var(--e-global-typography-ed00615-font-family), sans-serif;
	font-size: var(--e-global-typography-ed00615-font-size);
	font-weight: var(--e-global-typography-ed00615-font-weight);
	line-height: var(--e-global-typography-ed00615-line-height);
	color: var(--e-global-color-text);
}

.zlm__body > :first-child {
	margin-top: 0;
}

.zlm__body > :last-child {
	margin-bottom: 0;
}

.zlm__body a {
	color: var(--zlm-dark);
	text-decoration: underline;
}

.zlm__media {
	margin: 20px 0 0;
}

.zlm__media img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

/* Scroll-in: only once the script has run, and only if motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
	.zlm--js .zlm__item {
		transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
	}

	.zlm--js .zlm__item:not(.is-visible) {
		opacity: 0;
		transform: translateY(18px);
	}
}

@media (max-width: 1280px) {
	.zlm {
		--zlm-year-col: 110px;
		--zlm-year-size: 36px;
		--zlm-gap: 44px;
	}
}

/* Phone: year above the title */
@media (max-width: 767px) {
	.zlm {
		--zlm-year-col: 0px;
		--zlm-year-size: 32px;
		--zlm-gap: 34px;
	}

	.zlm__year {
		position: static;
		display: block;
		width: auto;
		margin-bottom: 6px;
	}
}
