/**
 * Archive — Timeline variation. Portrait thumbnail.
 */

.hk-archive--timeline {
	font-family: 'Poppins', system-ui, sans-serif;
	max-width: 900px; margin: 0 auto;
	padding: 40px 20px 80px; color: #2c3e50;
}
.hk-archive--timeline .hk-archive__header { text-align: center; margin-bottom: 40px; }
.hk-archive--timeline .hk-archive__title  { font-size: 36px; font-weight: 700; margin: 0 0 8px; }
.hk-archive--timeline .hk-archive__subtitle { color: #7d8896; margin: 0; }

.hk-tl__group { margin-bottom: 28px; }
.hk-tl__group-header {
	font-size: 13px; font-weight: 700; color: #1d6f42;
	letter-spacing: 0.12em; text-transform: uppercase;
	margin-bottom: 14px; padding-left: 90px;
}

.hk-tl__row {
	display: grid;
	grid-template-columns: 64px 24px 1fr;
	gap: 10px;
	margin-bottom: 14px;
	align-items: stretch;
}

.hk-tl__date {
	text-align: center; padding: 8px 4px;
	background: #fff; border: 0.5px solid #e6eaee;
	border-radius: 12px; height: fit-content;
}
.hk-tl__date-day { font-size: 22px; font-weight: 800; line-height: 1; color: #1d6f42; }
.hk-tl__date-dow { font-size: 10px; font-weight: 600; color: #7d8896; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

.hk-tl__line { position: relative; display: flex; justify-content: center; }
.hk-tl__line::before {
	content: ''; position: absolute;
	top: 0; bottom: -14px; left: 50%;
	width: 2px; background: #e6eaee; transform: translateX(-50%);
}
.hk-tl__dot {
	position: relative; width: 12px; height: 12px;
	background: #1d6f42; border: 3px solid #fff; border-radius: 50%;
	margin-top: 18px; z-index: 1;
	box-shadow: 0 0 0 2px #1d6f42;
}

/* Card with portrait thumb */
.hk-tl__card {
	display: grid;
	grid-template-columns: 1fr 80px;
	gap: 12px;
	background: #fff; border: 0.5px solid #e6eaee;
	border-radius: 12px; padding: 14px 16px;
	color: inherit; text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hk-tl__card:hover { transform: translateX(4px); box-shadow: 0 8px 24px rgba(20,30,50,0.06); }
.hk-tl__chip { display: inline-block; font-size: 10px; font-weight: 700; color: #1d6f42; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.hk-tl__title {
	font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0 0 6px; color: #1a2332;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hk-tl__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #7d8896; }

/* PORTRAIT thumbnail — 3:4 */
.hk-tl__thumb {
	aspect-ratio: 3 / 4;
	border-radius: 8px; overflow: hidden; background: #f0f4f8;
	align-self: start;
}
.hk-tl__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

/* Base countdown layout (used inside timeline cards).
   Timeline-specific tweaks below override sizes. */
.hk-card-countdown {
	margin-top: auto;
	padding-top: 10px;
	border-top: 0.5px solid #f0f0f5;
}
.hk-card-countdown__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	text-align: center;
}
.hk-card-countdown__cell {
	background: #f7f8fa;
	border-radius: 8px;
	padding: 6px 4px;
}
.hk-card-countdown__num {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #1d6f42;
	line-height: 1;
	font-feature-settings: 'tnum';
}
.hk-card-countdown__label {
	display: block;
	font-size: 9px;
	font-weight: 600;
	color: #7d8896;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-top: 3px;
}

/* Mini countdown in timeline card */
.hk-tl__body .hk-card-countdown {
	margin-top: 8px; padding-top: 8px;
	border-top: 0.5px solid #f0f0f5;
}
.hk-tl__body .hk-card-countdown__cell { border-radius: 6px; }
.hk-tl__body .hk-card-countdown__num { font-size: 14px; }

/* Pagination */
.hk-archive__nav { margin-top: 40px; text-align: center; }
.hk-archive__nav .nav-links { display: inline-flex; gap: 6px; }
.hk-archive__nav .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border-radius: 8px; background: #fff;
	border: 0.5px solid #e6eaee; color: #2c3e50;
	text-decoration: none; font-size: 14px;
}
.hk-archive__nav .page-numbers.current { background: #1d6f42; color: #fff; border-color: #1d6f42; }
.hk-archive__empty { text-align: center; padding: 80px 20px; }
.hk-archive__empty-icon { font-size: 64px; margin-bottom: 16px; }

@media (max-width: 600px) {
	.hk-tl__row { grid-template-columns: 56px 16px 1fr; }
	.hk-tl__group-header { padding-left: 72px; }
	.hk-tl__card { grid-template-columns: 1fr 64px; }
}
