/* ==========================================================================
   News Cycle — Daily Timeline Overview
   Version: 4.6.0.0
   ========================================================================== */

/* Layout
   ========================================================================== */

.news-cycle-page {
	padding: 32px 0 56px;
}

.news-cycle-page__content {
	max-width: 920px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Header
   ========================================================================== */

.news-cycle__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 16px;
	margin-bottom: 32px;
	padding-bottom: 20px;
	border-bottom: 2px solid #222;
}

.news-cycle__title {
	margin: 0;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
	flex: 1 1 0;
	min-width: 0;
}

.news-cycle__title-date {
	font-weight: 400;
	color: #888;
}

/* Date picker — clean icon, right-aligned in header */
.news-cycle__date-picker {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	cursor: pointer;
	flex-shrink: 0;
}

.news-cycle__date-picker .fa-calendar {
	font-size: 1.5rem;
	color: #222;
	transition: color 0.15s ease;
}

.news-cycle__date-picker:hover .fa-calendar {
	color: #555;
}

.news-cycle__date-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.news-cycle__date {
	display: none; /* date shown inline in title instead */
}

.news-cycle__nav {
	display: flex;
	gap: 8px;
	align-items: center;
}

.news-cycle__nav-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: transparent;
	color: #333;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}

.news-cycle__nav-link:hover,
.news-cycle__nav-link:focus {
	background: #f5f5f5;
	border-color: #999;
	color: #111;
}

.news-cycle__nav-link--secondary {
	background: transparent;
}

/* Intro (optional page content) */

.news-cycle__intro {
	max-width: 65ch;
	margin-bottom: 28px;
	color: #555;
}

/* Timeline
   ========================================================================== */

.news-cycle__timeline {
	position: relative;
}

/* Global timeline line removed — each hour block has its own line */
.news-cycle__timeline::before {
	display: none;
}

/* Hour group */

.news-cycle__hour-group {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 0 40px;
	position: relative;
	padding: 20px 0;
}

.news-cycle__hour-group + .news-cycle__hour-group {
	border-top: 1px solid #eee;
}

/* Hour marker (left column) */

.news-cycle__hour-marker {
	position: relative;
	padding-top: 2px;
}

/* Hour marker dot removed — timeline runs within hour-items only */
.news-cycle__hour-marker::after {
	display: none;
}

.news-cycle__hour-label {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	color: #555;
}

/* Entries list (right column) */

.news-cycle__hour-items {
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: relative;
	padding-left: 24px;
}

/* Timeline line within each hour block — same parent as dots = perfect alignment */
.news-cycle__hour-items::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 10px;
	width: 1px;
	background: #ddd;
}

/* Single article entry
   ========================================================================== */

.news-cycle__entry {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	position: relative;
}

/* Dot on the timeline for each article — centered on the line at left:10px */
.news-cycle__entry::before {
	content: "";
	position: absolute;
	left: -17px;
	top: 8px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #bbb;
	box-shadow: 0 0 0 3px var(--news-cycle-surface, #fff);
	z-index: 1;
}

.news-cycle__entry-main {
	flex: 1 1 auto;
	min-width: 0;
}

/* Meta row: time · category · relative time */

.news-cycle__entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-bottom: 4px;
	font-size: 0.82rem;
	line-height: 1.4;
	color: #888;
}

.news-cycle__entry-time {
	font-weight: 600;
	color: #555;
}

.news-cycle__badge {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 3px;
	background: var(--news-cycle-category-color, #555);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.news-cycle__topic {
	color: #666;
	font-style: italic;
}

.news-cycle__relative {
	white-space: nowrap;
	color: #aaa;
}

.news-cycle__meta-separator {
	color: #ccc;
}

/* Title */

.news-cycle__entry-title {
	margin: 0 0 4px;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.35;
}

.news-cycle__entry-title a {
	color: #222;
	text-decoration: none;
}

.news-cycle__entry-title a:hover,
.news-cycle__entry-title a:focus {
	color: var(--news-cycle-accent, #69043B);
}

/* Excerpt */

.news-cycle__excerpt {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: #666;
}

/* Thumbnail */

.news-cycle__thumb {
	flex: 0 0 110px;
	width: 110px;
}

.news-cycle__thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Empty state */

.news-cycle__empty {
	padding: 40px 0 20px;
	text-align: center;
	color: #999;
}

.news-cycle__empty p {
	margin: 0;
	font-size: 1.1rem;
}

/* Bottom nav (duplicate for scroll convenience) */

.news-cycle__footer-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-top: 32px;
	margin-top: 32px;
	border-top: 2px solid #222;
}

/* ==========================================================================
   Tablet (≤ 991px)
   ========================================================================== */

@media (max-width: 991px) {
	.news-cycle__header {
		flex-direction: row;
		align-items: flex-start;
		gap: 12px;
	}

	.news-cycle__hour-group {
		grid-template-columns: 64px 1fr;
		gap: 0 24px;
	}

	.news-cycle__hour-label {
		font-size: 1.05rem;
	}

	.news-cycle__thumb {
		flex-basis: 90px;
		width: 90px;
	}

	.news-cycle__entry-title {
		font-size: 1.05rem;
	}
}

/* ==========================================================================
   Mobile (≤ 600px)
   ========================================================================== */

@media (max-width: 600px) {
	.news-cycle-page {
		padding: 16px 0 32px;
	}

	.news-cycle__header {
		margin-top: 20px;
	}

	.news-cycle-page__content {
		padding: 0 16px;
	}

	/* Header: title smaller, icon right-aligned */
	.news-cycle__header {
		gap: 10px;
		margin-bottom: 20px;
		padding-bottom: 14px;
		border-bottom-width: 1px;
		align-items: flex-start;
	}

	.news-cycle__date-picker {
		margin-top: 4px;
	}

	.news-cycle-page {
		padding-top: 28px;
	}

	.news-cycle__title {
		font-size: 1.5rem;
	}

	.news-cycle__title-date {
		display: block;
		font-size: 0.85em;
		margin-top: 2px;
	}

	/* Hide top nav on mobile — footer nav is sufficient */
	.news-cycle__header .news-cycle__nav {
		display: none;
	}

	/* No page-wide timeline line on mobile */
	.news-cycle__timeline::before {
		display: none;
	}

	/* Stacked layout: hour label on top, articles below */
	.news-cycle__hour-group {
		display: block;
		padding: 0;
		margin-bottom: 16px;
	}

	.news-cycle__hour-group + .news-cycle__hour-group {
		border-top: none;
	}

	/* Hour as a large standalone label */
	.news-cycle__hour-marker {
		padding: 12px 0 8px 0;
	}

	.news-cycle__hour-marker::after {
		display: none;
	}

	.news-cycle__hour-label {
		font-size: 1.6rem;
		font-weight: 700;
	}

	/* Article list with internal timeline line */
	.news-cycle__hour-items {
		gap: 0;
		padding-left: 20px;
		position: relative;
	}

	/* Timeline line WITHIN each hour block */
	.news-cycle__hour-items::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 3px;
		width: 1px;
		background: #ddd;
	}

	.news-cycle__entry {
		flex-direction: row;
		gap: 0;
		padding: 10px 0;
		border-bottom: none;
		position: relative;
	}

	/* Small dot on the timeline for each article */
	.news-cycle__entry::before {
		content: "";
		position: absolute;
		left: -20px;
		top: 17px;
		width: 5px;
		height: 5px;
		border-radius: 50%;
		background: #999;
		z-index: 1;
	}

	/* No dot on meta row */
	.news-cycle__entry-meta::before {
		display: none;
	}

	.news-cycle__entry-main {
		flex: 1;
	}

	/* Hide thumbnail on mobile for cleaner list */
	.news-cycle__thumb {
		display: none;
	}

	/* Hide excerpt on mobile — just meta + title like reference */
	.news-cycle__excerpt {
		display: none;
	}

	.news-cycle__entry-meta {
		gap: 4px 8px;
		font-size: 0.82rem;
		margin-bottom: 3px;
	}

	.news-cycle__badge {
		font-size: 0.75rem;
		padding: 1px 6px;
		border-radius: 2px;
	}

	.news-cycle__entry-title {
		font-size: 1rem;
		font-weight: 700;
		line-height: 1.35;
		margin-bottom: 0;
	}

	/* Footer nav */
	.news-cycle__footer-nav {
		padding-top: 20px;
		margin-top: 16px;
		border-top-width: 1px;
		gap: 8px;
	}

	.news-cycle__footer-nav .news-cycle__nav-link {
		flex: 1;
		justify-content: center;
		padding: 10px 14px;
		font-size: 0.85rem;
	}
}

/* ==========================================================================
   Small Mobile (≤ 400px)
   ========================================================================== */

@media (max-width: 400px) {
	.news-cycle__title {
		font-size: 1.3rem;
	}

	.news-cycle__entry-title {
		font-size: 0.92rem;
	}

	.news-cycle__hour-label {
		font-size: 1rem;
	}
}

/* ==========================================================================
   Dark Mode
   ========================================================================== */

html.aeon-dark-mode-active,
body.aeon-dark-mode-active {
	--news-cycle-surface: #1a1a1a;
}

html.aeon-dark-mode-active .news-cycle__header,
body.aeon-dark-mode-active .news-cycle__header {
	border-bottom-color: rgba(255, 255, 255, 0.2);
}

html.aeon-dark-mode-active .news-cycle__title-date,
body.aeon-dark-mode-active .news-cycle__title-date {
	color: rgba(255, 255, 255, 0.5);
}

html.aeon-dark-mode-active .news-cycle__nav-link,
body.aeon-dark-mode-active .news-cycle__nav-link {
	border-color: rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.85);
}

html.aeon-dark-mode-active .news-cycle__nav-link:hover,
body.aeon-dark-mode-active .news-cycle__nav-link:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.4);
}

html.aeon-dark-mode-active .news-cycle__hour-items::before,
body.aeon-dark-mode-active .news-cycle__hour-items::before {
	background: rgba(255, 255, 255, 0.12);
}

html.aeon-dark-mode-active .news-cycle__hour-group + .news-cycle__hour-group,
body.aeon-dark-mode-active .news-cycle__hour-group + .news-cycle__hour-group {
	border-top-color: rgba(255, 255, 255, 0.08);
}

html.aeon-dark-mode-active .news-cycle__date-picker .fa-calendar,
body.aeon-dark-mode-active .news-cycle__date-picker .fa-calendar {
	color: rgba(255, 255, 255, 0.85);
}

html.aeon-dark-mode-active .news-cycle__date-picker:hover .fa-calendar,
body.aeon-dark-mode-active .news-cycle__date-picker:hover .fa-calendar {
	color: rgba(255, 255, 255, 0.55);
}

html.aeon-dark-mode-active .news-cycle__hour-label,
body.aeon-dark-mode-active .news-cycle__hour-label {
	color: rgba(255, 255, 255, 0.7);
}

html.aeon-dark-mode-active .news-cycle__entry-meta,
html.aeon-dark-mode-active .news-cycle__relative,
body.aeon-dark-mode-active .news-cycle__entry-meta,
body.aeon-dark-mode-active .news-cycle__relative {
	color: rgba(255, 255, 255, 0.5);
}

html.aeon-dark-mode-active .news-cycle__entry-time,
body.aeon-dark-mode-active .news-cycle__entry-time {
	color: rgba(255, 255, 255, 0.7);
}

html.aeon-dark-mode-active .news-cycle__entry-title a,
body.aeon-dark-mode-active .news-cycle__entry-title a {
	color: #f0f0f0;
}

html.aeon-dark-mode-active .news-cycle__entry-title a:hover,
body.aeon-dark-mode-active .news-cycle__entry-title a:hover {
	color: #fff;
}

html.aeon-dark-mode-active .news-cycle__excerpt,
html.aeon-dark-mode-active .news-cycle__topic,
body.aeon-dark-mode-active .news-cycle__excerpt,
body.aeon-dark-mode-active .news-cycle__topic {
	color: rgba(255, 255, 255, 0.6);
}

html.aeon-dark-mode-active .news-cycle__empty,
body.aeon-dark-mode-active .news-cycle__empty {
	color: rgba(255, 255, 255, 0.4);
}

html.aeon-dark-mode-active .news-cycle__footer-nav,
body.aeon-dark-mode-active .news-cycle__footer-nav {
	border-top-color: rgba(255, 255, 255, 0.2);
}

html.aeon-dark-mode-active .news-cycle__hour-marker,
body.aeon-dark-mode-active .news-cycle__hour-marker {
	border-bottom-color: rgba(255, 255, 255, 0.1);
}

html.aeon-dark-mode-active .news-cycle__entry::before,
body.aeon-dark-mode-active .news-cycle__entry::before {
	background: rgba(255, 255, 255, 0.3);
}

html.aeon-dark-mode-active .news-cycle__hour-items::before,
body.aeon-dark-mode-active .news-cycle__hour-items::before {
	background: rgba(255, 255, 255, 0.12);
}
