/**
 * NeonPress HUB public presentation.
 */

.np-hub-switcher {
	position: relative;
	z-index: 101;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: #071425;
	color: #fff;
}

.np-hub-switcher__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 42px;
}

.np-hub-switcher__title {
	flex: 0 0 auto;
	color: rgba(255, 255, 255, 0.58);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.np-hub-switcher__track {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.np-hub-switcher__track::-webkit-scrollbar {
	display: none;
}

.np-hub-switcher__item {
	--np-hub-link-color: var(--np-hub-link-light-color);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	min-height: 30px;
	padding: 5px 3px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.82);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	transition: color 160ms ease, opacity 160ms ease;
}

.np-hub-switcher__item:hover,
.np-hub-switcher__item:focus-visible {
	background: transparent;
	color: var(--np-hub-link-color);
}

.np-hub-switcher__item.is-active {
	background: transparent;
	color: var(--np-hub-link-color);
}

html[data-theme="dark"] .np-hub-switcher__item {
	--np-hub-link-color: var(--np-hub-link-dark-color);
}

.np-hub-switcher--header-menu {
	z-index: 1;
	width: 100%;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.np-hub-switcher--header-menu .np-hub-switcher__inner {
	width: 100%;
	padding: 0 14px;
}

.np-active-hub-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 14px;
	color: var(--np-hub-color, var(--np-accent));
	font-family: var(--np-display);
	font-size: clamp(12px, 1.2vw, 16px);
	font-weight: 900;
	letter-spacing: 0.04em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.np-active-hub-label span {
	color: var(--np-muted);
	font-weight: 400;
}

.np-hub-active .np-archive-hero {
	position: relative;
	overflow: hidden;
}

.np-hub-active .np-archive-hero::before {
	position: absolute;
	inset: 0 auto 0 0;
	width: 6px;
	background: var(--np-hub-color);
	content: "";
}

.np-hub-active .np-archive-hero::after {
	position: absolute;
	top: -160px;
	right: -90px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--np-hub-color) 14%, transparent);
	content: "";
	pointer-events: none;
}

.np-hub-active .np-archive-hero__inner {
	position: relative;
	z-index: 1;
}

.np-hub-identity {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 10px;
	color: var(--np-hub-color);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.np-hub-identity__icon {
	display: inline-grid;
	place-items: center;
	min-width: 29px;
	height: 29px;
	padding-inline: 7px;
	border-radius: 9px;
	background: var(--np-hub-color);
	color: var(--np-hub-contrast);
	letter-spacing: 0;
}

.np-hub-active .np-filter-chips {
	border-bottom-color: color-mix(in srgb, var(--np-hub-color) 32%, var(--np-border));
}

.np-hub-active .np-chip span,
.np-hub-active .np-section-heading__dot {
	background: var(--np-hub-color);
}

.np-hub-active .np-chip.is-active {
	border-color: var(--np-hub-color);
	background: var(--np-hub-color);
	color: var(--np-hub-contrast);
}

.np-hub-active .np-article__header > .np-badge,
.np-hub-active .np-card .np-badge {
	background: var(--np-hub-color) !important;
	color: var(--np-hub-contrast) !important;
}

.np-home-hubs {
	margin: 28px 0 34px;
}

.np-home-hubs__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.np-home-hub-card {
	--np-hub-card-color: var(--np-hub-card-light-color);
	--np-hub-card-contrast: var(--np-hub-card-light-contrast);
	display: grid;
	grid-template-columns: minmax(112px, 35%) 1fr;
	min-height: 210px;
	overflow: hidden;
	border: 1px solid var(--np-border);
	border-top: 4px solid var(--np-hub-card-color);
	border-radius: var(--np-radius-lg);
	background: var(--np-surface-raised);
	box-shadow: var(--np-shadow-sm);
}

html[data-theme="dark"] .np-home-hub-card {
	--np-hub-card-color: var(--np-hub-card-dark-color);
	--np-hub-card-contrast: var(--np-hub-card-dark-contrast);
}

.np-home-hub-card__media {
	display: block;
	min-height: 100%;
	overflow: hidden;
	background: color-mix(in srgb, var(--np-hub-card-color) 18%, var(--np-surface));
}

.np-home-hub-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease;
}

.np-home-hub-card:hover .np-home-hub-card__media img {
	transform: scale(1.035);
}

.np-home-hub-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 205px;
	background: linear-gradient(145deg, color-mix(in srgb, var(--np-hub-card-color) 84%, #071425), var(--np-hub-card-color));
	color: var(--np-hub-card-contrast);
	font-family: var(--np-display);
	font-size: clamp(34px, 5vw, 68px);
	font-weight: 950;
}

.np-home-hub-card__content {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
}

.np-home-hub-card__name {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--np-hub-card-color);
	font-family: var(--np-display);
	font-size: 16px;
	text-decoration: none;
	text-transform: uppercase;
}

.np-home-hub-card__content p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--np-muted);
	font-size: 12px;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.np-home-hub-card__latest {
	display: -webkit-box;
	margin-top: auto;
	overflow: hidden;
	color: var(--np-ink);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.np-home-hub-card__latest small {
	display: block;
	margin-bottom: 3px;
	color: var(--np-hub-card-color);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

@supports not (background: color-mix(in srgb, red 20%, transparent)) {
	.np-hub-active .np-archive-hero::after {
		background: transparent;
	}
	.np-home-hub-card__media {
		background: var(--np-surface);
	}
}

@media (max-width: 1040px) {
	.np-home-hubs__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.np-hub-switcher__inner {
		gap: 8px;
		padding-right: 0;
	}

	.np-hub-switcher__title {
		display: none;
	}

	.np-hub-switcher__track {
		padding-right: 18px;
	}

	.np-hub-switcher__item {
		font-size: 11px;
	}

	.np-hub-switcher--header-menu {
		border-radius: 11px;
	}

	.np-hub-switcher--header-menu .np-hub-switcher__inner {
		padding-left: 12px;
	}

	.np-active-hub-label {
		max-width: 120px;
		overflow: hidden;
		font-size: 11px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.np-home-hubs__grid {
		grid-template-columns: 1fr;
	}

	.np-home-hub-card {
		grid-template-columns: 122px 1fr;
		min-height: 190px;
	}
}

@media (max-width: 440px) {
	.np-home-hub-card {
		grid-template-columns: 105px 1fr;
	}

	.np-home-hub-card__content {
		padding: 15px;
	}

	.np-home-hub-card__content p {
		display: none;
	}
}
