/* Timeline Posts — minimal, elegant vertical timeline */

.tlp-timeline {
	--tlp-accent: #c8a97e;
	--tlp-line: #e5e0d8;
	--tlp-radius: 10px;
	--tlp-thumb-size: 400px;
	--tlp-gap: 56px; /* distance from card edge to the center line */

	position: relative;
	max-width: 1040px;
	margin: 0 auto;
	padding: 24px 0;
}

/* Center line */
.tlp-timeline::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	margin-left: -1px;
	background: var(--tlp-line);
}

/* Year marker */
.tlp-year {
	position: relative;
	width: 100%;
	text-align: center;
	padding: 4px 0 48px;
	z-index: 1;
	line-height: 1;
}

.tlp-year span {
	display: inline-block;
	background: var(--tlp-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.18em;
	padding: 7px 20px 6px 23px; /* extra left padding balances letter-spacing */
	border-radius: 999px;
}

/* Items alternate left / right of the center line */
.tlp-item {
	position: relative;
	width: 50%;
	padding: 0 var(--tlp-gap) 64px;
	box-sizing: border-box;
}

.tlp-item:last-child {
	padding-bottom: 8px;
}

.tlp-item.tlp-left {
	left: 0;
	text-align: right;
}

.tlp-item.tlp-right {
	left: 50%;
	text-align: left;
}

.tlp-item.tlp-left .tlp-card {
	margin-left: auto;
}

.tlp-item.tlp-right .tlp-card {
	margin-right: auto;
}

/* Card */
.tlp-card {
	display: inline-block;
	max-width: var(--tlp-thumb-size);
}

/* Thumbnail: 400x400, slightly rounded */
.tlp-thumb-link {
	display: block;
	position: relative;
	line-height: 0;
}

.tlp-thumb,
img.tlp-thumb {
	display: block;
	width: 100%;
	max-width: var(--tlp-thumb-size);
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--tlp-radius);
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tlp-thumb-link:hover .tlp-thumb {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tlp-thumb-placeholder {
	background: linear-gradient(135deg, var(--tlp-line), #f5f2ec);
	width: var(--tlp-thumb-size);
	max-width: 100%;
}

/* Node dot: vertically centered on the thumbnail, sitting on the center line */
.tlp-node {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--tlp-accent);
	box-sizing: border-box;
	z-index: 1;
}

.tlp-left .tlp-node {
	right: calc(-1 * var(--tlp-gap) - 7px);
}

.tlp-right .tlp-node {
	left: calc(-1 * var(--tlp-gap) - 7px);
}

/* Connector line from thumbnail edge to the node */
.tlp-node::before {
	content: "";
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: 2px;
	width: calc(var(--tlp-gap) - 7px);
	background: var(--tlp-line);
}

.tlp-left .tlp-node::before {
	right: 100%;
}

.tlp-right .tlp-node::before {
	left: 100%;
}

/* Date */
.tlp-date {
	display: block;
	margin-top: 14px;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tlp-accent);
}

/* Title */
.tlp-title {
	margin: 6px 0 0;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.35;
}

.tlp-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.tlp-title a:hover {
	color: var(--tlp-accent);
}

/* ---------- Mobile: single column ---------- */
@media (max-width: 767px) {
	.tlp-timeline {
		--tlp-gap: 30px;
	}

	.tlp-timeline::before {
		left: 10px;
	}

	.tlp-year {
		text-align: left;
	}

	.tlp-item,
	.tlp-item.tlp-left,
	.tlp-item.tlp-right {
		width: 100%;
		left: 0;
		text-align: left;
		padding: 0 0 48px 40px;
	}

	.tlp-left .tlp-node,
	.tlp-right .tlp-node {
		left: calc(-1 * var(--tlp-gap) - 7px);
		right: auto;
	}

	.tlp-left .tlp-node::before,
	.tlp-right .tlp-node::before {
		right: auto;
		left: 100%;
	}

	.tlp-item .tlp-card {
		margin: 0;
	}
}
