/* Hidden gems strip — three cards above the hub table on a vertical page.
   Palette is taken from hub.css custom properties where they exist so the strip
   follows the table's theme instead of defining a second one. */

.lb-gems {
	margin: 0 0 22px;
}

.lb-gems__hd {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin: 0 0 12px;
}

.lb-gems__h {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	display: flex;
	align-items: center;
	gap: 8px;
}

.lb-gems__spark {
	font-size: 17px;
	line-height: 1;
}

.lb-gems__scope {
	font-weight: 600;
	opacity: 0.6;
}

.lb-gems__sub {
	margin: 0;
	font-size: 13px;
	opacity: 0.62;
}

.lb-gems__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

@media (max-width: 900px) {
	.lb-gems__grid {
		grid-template-columns: 1fr;
	}
}

.lb-gem {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 16px 14px;
	border: 1px solid rgba(127, 127, 127, 0.22);
	border-radius: 14px;
	background: rgba(127, 127, 127, 0.04);
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.lb-gem:hover {
	border-color: rgba(127, 127, 127, 0.42);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.lb-gem__place {
	position: absolute;
	top: 10px;
	right: 12px;
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	opacity: 0.1;
}

.lb-gem__hd {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding-right: 26px;
}

.lb-gem__logo {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	object-fit: contain;
}

.lb-gem__id {
	min-width: 0;
}

.lb-gem__name {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lb-gem__name a {
	color: inherit;
	text-decoration: none;
}

.lb-gem__name a:hover {
	text-decoration: underline;
}

.lb-gem__price {
	display: inline-block;
	margin-top: 3px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	opacity: 0.55;
}

.lb-gem__tagline {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	opacity: 0.75;
}

.lb-gem__ft {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;
}

.lb-gem__btn,
.lb-gem__link {
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	padding: 6px 12px;
	line-height: 1.2;
}

.lb-gem__btn {
	color: #fff;
	background: #111827;
	border: 1px solid #111827;
}

.lb-gem__link {
	color: inherit;
	border: 1px solid rgba(127, 127, 127, 0.3);
}

.lb-gem__btn:hover {
	opacity: 0.88;
}

.lb-gem__link:hover {
	border-color: rgba(127, 127, 127, 0.55);
}

@media (prefers-color-scheme: dark) {
	.lb-gem__btn {
		color: #0b1120;
		background: #e5e7eb;
		border-color: #e5e7eb;
	}
}
