/* =========================================================
   Custom Header Override — "Today's Timeline" widget styles
   A vertically scrollable list of today's posts, each with a
   red dot + publish time, a connecting line, and a card with
   thumbnail + title — matching the reference screenshot.
   ========================================================= */

.cho-timeline {
	max-width: 480px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cho-timeline-heading {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 14px;
	color: #222;
}

.cho-timeline-list {
	position: relative;
	max-height: 640px;
	overflow-y: auto; /* makes the whole list vertically scrollable */
	padding-right: 4px;
}

.cho-timeline-list::-webkit-scrollbar {
	width: 5px;
}

.cho-timeline-list::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 4px;
}

/* The thin vertical line connecting each red dot, like a timeline rail */
.cho-timeline-list::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 5px;
	width: 1px;
	background: #f3c9c9;
	z-index: 0;
}

.cho-timeline-item {
	position: relative;
	margin-bottom: 18px;
}

.cho-timeline-item:last-child {
	margin-bottom: 0;
}

.cho-timeline-time {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--cho-accent, #d8232a);
	margin-bottom: 8px;
}

.cho-timeline-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--cho-accent, #d8232a);
	flex-shrink: 0;
}

.cho-timeline-card {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: 17px;
	padding: 10px;
	border: 1px solid #f0f0f0;
	border-radius: 6px;
	text-decoration: none;
	background: #fff;
	transition: box-shadow 0.15s ease;
}

.cho-timeline-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cho-timeline-thumb {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 4px;
	overflow: hidden;
	background: #eee;
}

.cho-timeline-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cho-timeline-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: #222;
}

.cho-timeline-card:hover .cho-timeline-title {
	color: var(--cho-accent, #d8232a);
}

.cho-timeline-empty {
	color: #888;
	font-size: 14px;
}

@media (max-width: 480px) {
	.cho-timeline-thumb {
		width: 56px;
		height: 56px;
	}

	.cho-timeline-title {
		font-size: 14px;
	}
}
