.atf-history {
	--atf-history-yellow: #ffd400;
	--atf-history-title: #151515;
	--atf-history-muted: #666;
	--atf-history-line: #dedede;
	--atf-history-surface: #fff;
	--atf-history-radius: 18px;
	--atf-history-shadow: 0 10px 30px rgba(0, 0, 0, .08);
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 18px 0;
	color: var(--atf-history-muted);
	font-family: Calibri, Arial, Helvetica, sans-serif;
	box-sizing: border-box;
	contain: layout style;
}

.atf-history *,
.atf-history *::before,
.atf-history *::after {
	box-sizing: inherit;
}

.atf-history__list {
	position: relative;
	list-style: none;
	padding: 10px 0;
	margin: 0;
}

.atf-history__list::before {
	content: "";
	position: absolute;
	top: 18px;
	bottom: 18px;
	left: 50%;
	width: 3px;
	border-radius: 999px;
	background: linear-gradient(to bottom, transparent 0, var(--atf-history-line) 24px, var(--atf-history-line) calc(100% - 24px), transparent 100%);
	transform: translateX(-50%);
}

.atf-history__item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 94px minmax(0, 1fr);
	align-items: start;
	min-height: 150px;
	margin: 0;
	padding: 0 0 52px;
	content-visibility: auto;
	contain-intrinsic-size: 500px 300px;
}

.atf-history__item:last-child {
	padding-bottom: 0;
}

.atf-history__marker {
	position: relative;
	z-index: 2;
	grid-column: 2;
	grid-row: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin: 16px auto 0;
	border: 5px solid var(--atf-history-surface);
	border-radius: 50%;
	background: var(--atf-history-yellow);
	color: var(--atf-history-title);
	box-shadow: 0 0 0 2px var(--atf-history-title), 0 7px 20px rgba(0, 0, 0, .13);
}

.atf-history__marker svg {
	display: block;
	width: 27px;
	height: 27px;
}

.atf-history__card {
	grid-column: 1;
	grid-row: 1;
	justify-self: end;
	width: min(100%, 500px);
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: var(--atf-history-radius);
	background: var(--atf-history-surface);
	box-shadow: var(--atf-history-shadow);
}

.atf-history__item:nth-child(even) .atf-history__card {
	grid-column: 3;
	justify-self: start;
}

.atf-history__item::after {
	content: "";
	position: absolute;
	top: 34px;
	left: calc(50% - 48px);
	width: 20px;
	height: 3px;
	background: var(--atf-history-title);
	border-radius: 999px;
}

.atf-history__item:nth-child(even)::after {
	left: calc(50% + 28px);
}

.atf-history__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #ececec;
}

.atf-history__image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.atf-history__content {
	padding: clamp(20px, 3vw, 30px);
}

.atf-history__date {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	margin: 0 0 13px;
	padding: 4px 11px 3px;
	border-radius: 999px;
	background: var(--atf-history-yellow);
	color: var(--atf-history-title);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: .01em;
}

.atf-history__title {
	margin: 0;
	padding: 0;
	color: var(--atf-history-title);
	font-family: inherit;
	font-size: clamp(24px, 2.5vw, 34px);
	font-weight: 700;
	line-height: 1.08;
	text-wrap: balance;
}

.atf-history__description {
	margin-top: 14px;
	color: var(--atf-history-muted);
	font-size: clamp(16px, 1.5vw, 18px);
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.atf-history-empty {
	padding: 16px 18px;
	border-left: 4px solid #ffd400;
	background: #f5f5f5;
}

@media (max-width: 820px) {
	.atf-history {
		padding-right: 0;
		padding-left: 0;
	}

	.atf-history__list::before {
		left: 30px;
		transform: none;
	}

	.atf-history__item {
		display: grid;
		grid-template-columns: 62px minmax(0, 1fr);
		min-height: 0;
		padding-bottom: 34px;
	}

	.atf-history__marker {
		grid-column: 1;
		width: 48px;
		height: 48px;
		margin: 14px 0 0 6px;
		border-width: 4px;
	}

	.atf-history__marker svg {
		width: 22px;
		height: 22px;
	}

	.atf-history__card,
	.atf-history__item:nth-child(even) .atf-history__card {
		grid-column: 2;
		justify-self: stretch;
		width: 100%;
	}

	.atf-history__item::after,
	.atf-history__item:nth-child(even)::after {
		top: 36px;
		left: 49px;
		width: 14px;
	}
}

@media (max-width: 480px) {
	.atf-history__list::before {
		left: 23px;
	}

	.atf-history__item {
		grid-template-columns: 48px minmax(0, 1fr);
		padding-bottom: 26px;
	}

	.atf-history__marker {
		width: 40px;
		height: 40px;
		margin-left: 3px;
		border-width: 3px;
		box-shadow: 0 0 0 2px var(--atf-history-title), 0 5px 14px rgba(0, 0, 0, .12);
	}

	.atf-history__marker svg {
		width: 19px;
		height: 19px;
	}

	.atf-history__card,
	.atf-history__item:nth-child(even) .atf-history__card {
		border-radius: 14px;
	}

	.atf-history__item::after,
	.atf-history__item:nth-child(even)::after {
		top: 32px;
		left: 38px;
		width: 11px;
	}

	.atf-history__content {
		padding: 19px;
	}

	.atf-history__title {
		font-size: 24px;
	}

	.atf-history__description {
		font-size: 16px;
	}
}

@supports not (content-visibility: auto) {
	.atf-history__item {
		content-visibility: visible;
	}
}

@media (prefers-reduced-motion: reduce) {
	.atf-history *,
	.atf-history *::before,
	.atf-history *::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	.atf-history {
		contain: none;
	}

	.atf-history__item {
		content-visibility: visible;
		contain-intrinsic-size: auto;
	}

	.atf-history__card {
		box-shadow: none;
		break-inside: avoid;
	}
}
