/* Astro Latest Articles — front-end styles */

.astroart {
	--at-bg-1: #0b1026;
	--at-bg-2: #05060f;
	--at-fg: #eef2ff;
	--at-muted: #9aa6c9;
	--at-accent: #cdd7ff;
	--at-border: rgba(255, 255, 255, 0.1);

	box-sizing: border-box;
	margin: 0 auto;
	padding: 14px 18px;
	border-radius: 16px;
	background: radial-gradient(120% 120% at 50% 0%, var(--at-bg-1) 0%, var(--at-bg-2) 85%);
	color: var(--at-fg);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.astroart * {
	box-sizing: border-box;
}

.astroart--light {
	--at-bg-1: #f4f6fc;
	--at-bg-2: #e7ecf7;
	--at-fg: #1a2238;
	--at-muted: #5b6688;
	--at-accent: #2b3a78;
	--at-border: rgba(20, 30, 60, 0.12);
	box-shadow: 0 14px 36px rgba(40, 60, 110, 0.16);
}

.astroart .astroart__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.astroart .astroart__item {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--at-border);
}

.astroart .astroart__item:last-child {
	border-bottom: 0;
}

.astroart .astroart__item::before,
.astroart .astroart__item::marker {
	content: none;
}

.astroart .astroart__link {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 2px;
	text-decoration: none;
	color: inherit;
}

.astroart .astroart__link:hover .astroart__title {
	color: var(--at-accent);
}

/* Thumbnail */
.astroart .astroart__thumb {
	position: relative;
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
	display: block;
}

.astroart .astroart__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	border: 0;
	border-radius: inherit;
}

.astroart .astroart__thumb-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	color: var(--at-muted);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

/* Body */
.astroart .astroart__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.astroart .astroart__title {
	font-size: 0.96rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: var(--at-fg);
	transition: color 0.15s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.astroart .astroart__date {
	font-size: 0.7rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--at-muted);
}

.astroart .astroart__excerpt {
	margin-top: 2px;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--at-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Compact layout: text only, tighter */
.astroart--compact .astroart__link {
	padding: 9px 2px;
}

.astroart--compact .astroart__title {
	font-size: 0.9rem;
}

/* Excerpt layout: slightly larger thumbnail */
.astroart--excerpt .astroart__thumb {
	width: 84px;
	height: 84px;
}

.astroart .astroart__empty {
	margin: 6px 2px;
	color: var(--at-muted);
	font-size: 0.9rem;
}
