/* ==========================================================================
   Pulse Trending Stories
   ========================================================================== */

.pulse-trending {
	font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
	background: #fff;
	max-width: 100%;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.pulse-trending__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px 9px;
	background: #c0392b;
}

.pulse-trending__label {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #fff;
	line-height: 1;
}

.pulse-trending__updated {
	font-size: 9px;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: rgba(255,255,255,0.5);
	line-height: 1;
}

/* --------------------------------------------------------------------------
   List
   -------------------------------------------------------------------------- */

.pulse-trending__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.pulse-trending__item {
	border-bottom: 1px solid #f0f0f0;
}

.pulse-trending__item:last-child {
	border-bottom: none;
}

/* --------------------------------------------------------------------------
   Row link — wraps number + headline, makes the whole row clickable
   -------------------------------------------------------------------------- */

.pulse-trending__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	text-decoration: none !important;
	transition: background 0.12s ease;
}

.pulse-trending__link:hover {
	background: #f7f7f7;
	text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   Rank number — large, filled, shaded by rank
   -------------------------------------------------------------------------- */

.pulse-trending__rank {
	flex-shrink: 0;
	width: 2.6rem;
	text-align: right;

	font-size: 3.5rem;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.06em;
	font-variant-numeric: tabular-nums;
	user-select: none;

	/* filled, progressively shaded lighter */
	color: #111;
}

.pulse-trending__item--1 .pulse-trending__rank { color: #111111; }
.pulse-trending__item--2 .pulse-trending__rank { color: #555555; }
.pulse-trending__item--3 .pulse-trending__rank { color: #888888; }
.pulse-trending__item--4 .pulse-trending__rank { color: #b0b0b0; }
.pulse-trending__item--5 .pulse-trending__rank { color: #d0d0d0; }

/* --------------------------------------------------------------------------
   Headline
   -------------------------------------------------------------------------- */

.pulse-trending__headline {
	flex: 1;
	min-width: 0;

	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: #111;

	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;

	transition: color 0.12s ease;
}

.pulse-trending__item--1 .pulse-trending__headline {
	font-size: 1.05rem;
}

.pulse-trending__link:hover .pulse-trending__headline {
	color: #333;
}

/* --------------------------------------------------------------------------
   Empty / loading
   -------------------------------------------------------------------------- */

.pulse-trending__empty {
	padding: 20px 14px;
	text-align: center;
	font-size: 0.8rem;
	color: #bbb;
	font-style: italic;
}

/* --------------------------------------------------------------------------
   Editor preview — block but don't hide links
   -------------------------------------------------------------------------- */

.pulse-trending-editor-wrapper .pulse-trending__link {
	pointer-events: none;
}
