/* TM Timeline */
.tm-timeline__head {
	margin-bottom: var(--tm-head-gap, 56px);
}

.tm-timeline__list {
	position: relative;
	display: grid;
	gap: 18px;
	max-width: 760px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.tm-timeline__item {
	--tm-dot: var(--tm-red);

	position: relative;
	display: grid;
	grid-template-columns: 120px 28px minmax(0, 1fr);
	align-items: start;
}

.tm-timeline__item--brass {
	--tm-dot: var(--tm-brass);
}

.tm-timeline__item--carbon {
	--tm-dot: var(--tm-carbon);
}

.tm-timeline__item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 22px;
	bottom: -18px;
	left: calc(120px + 13px);
	width: 2px;
	background: var(--tm-line);
}

.tm-timeline__when {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	padding: 8px 18px 0 0;
}

.tm-timeline__year {
	color: var(--tm-dot);
	font-family: var(--tm-font-serif);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
}

.tm-timeline__item--carbon .tm-timeline__year {
	color: var(--tm-carbon);
}

.tm-timeline__label {
	margin-top: 6px;
	color: var(--tm-steel);
	font-family: var(--tm-font-cond);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .14em;
	text-align: right;
	text-transform: uppercase;
}

.tm-timeline__dot {
	position: relative;
	z-index: 1;
	width: 12px;
	height: 12px;
	margin: 14px auto 0;
	border-radius: 50%;
	background: var(--tm-dot);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 1), 0 0 0 5px var(--tm-line);
}

.tm-timeline__card {
	padding: 22px 24px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius-sm);
	background: var(--tm-white);
	box-shadow: var(--tm-shadow-sm);
	transition: box-shadow .3s, transform .3s var(--tm-ease);
}

.tm-timeline__item:hover .tm-timeline__card {
	box-shadow: var(--tm-shadow);
	transform: translateX(4px);
}

.tm-timeline__title {
	margin: 0 0 8px;
	color: var(--tm-carbon);
	font-family: var(--tm-font-serif);
	font-size: 19px;
	font-weight: 700;
	text-transform: uppercase;
}

.tm-timeline__text {
	margin: 0;
	color: var(--tm-steel);
	font-size: 14px;
	line-height: 1.6;
}

.tm-timeline__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 40px;
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--tm-line);
}

.tm-timeline__stats dt {
	color: var(--tm-steel);
	font-family: var(--tm-font-cond);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.tm-timeline__stats dd {
	margin: 4px 0 0;
	color: var(--tm-carbon);
	font-family: var(--tm-font-serif);
	font-size: 17px;
	font-weight: 700;
}

@media (max-width: 767px) {
	.tm-timeline__item {
		grid-template-columns: 22px minmax(0, 1fr);
	}

	.tm-timeline__when {
		grid-column: 2;
		flex-direction: row;
		align-items: baseline;
		gap: 10px;
		padding: 0 0 10px;
	}

	.tm-timeline__dot {
		grid-column: 1;
		grid-row: 1;
		margin: 8px 0 0;
	}

	.tm-timeline__card {
		grid-column: 2;
	}

	.tm-timeline__item:not(:last-child)::after {
		left: 5px;
		top: 20px;
	}

	.tm-timeline__year {
		font-size: 24px;
	}
}

/* ---------------------------------------------------------------------------
   Theo bản mẫu (About - Growing with our customers):
   khối tiêu đề space-y-2, gạch đỏ sau mô tả; danh sách max-w-3xl, space-y-4;
   mỗi mốc: cột năm w-20 sm:w-28 (pt-3, căn phải) | chấm 14px | thẻ p-4 sm:p-5, gap-3 sm:gap-6
   ------------------------------------------------------------------------ */
.tm-timeline__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 40px;
}

.tm-timeline__head .tm-eyebrow {
	margin-bottom: 8px;
}

.tm-timeline__head .tm-head__text {
	margin-top: 8px;
}

.tm-timeline__head .tm-divider {
	order: 9;
	width: 48px;
	height: 2px;
	margin-top: 8px;
}

.tm-timeline__list {
	gap: 16px;
	max-width: 768px;
}

.tm-timeline__item {
	grid-template-columns: 80px 14px minmax(0, 1fr);
	column-gap: 12px;
	align-items: stretch;
}

.tm-timeline__item:not(:last-child)::after {
	top: 30px;
	bottom: 4px;
	left: calc(80px + 12px + 6px);
	background: #E2E8F0;
}

.tm-timeline__when {
	grid-column: auto;
	flex-direction: column;
	align-items: flex-end;
	gap: 0;
	padding: 12px 0 0;
}

.tm-timeline__dot {
	width: 14px;
	height: 14px;
	margin: 12px 0 0;
	border: 2px solid var(--tm-white);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.tm-timeline__card {
	grid-column: auto;
	padding: 16px;
	border-color: #E2E8F0;
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.tm-timeline__item:hover .tm-timeline__card {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
	transform: none;
}

.tm-timeline__title {
	margin-bottom: 6px;
}

.tm-timeline__stats {
	gap: 12px 24px;
	margin-top: 7px;
	padding-top: 6px;
	border-top-color: #F1F5F9;
}

@media (min-width: 640px) {
	.tm-timeline__item {
		grid-template-columns: 112px 14px minmax(0, 1fr);
		column-gap: 24px;
	}

	.tm-timeline__item:not(:last-child)::after {
		left: calc(112px + 24px + 6px);
	}

	.tm-timeline__card {
		padding: 20px;
	}
}
