/* NICHO Trabalho · todos os kits: busca de vagas no topo da Home (shared/vagas-data.php, rocket_trabalho_home_busca_vagas). */

.nx-hv {
	padding: 32px 0 28px;
	background: #fff;
}

.nx-hv__inner {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nx-hv__title {
	margin: 0;
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--nx-ink);
}

.nx-hv__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--nx-muted);
}

.nx-hv__busca {
	display: flex;
	align-items: center;
	max-width: 760px;
	margin-top: 8px;
	padding: 6px;
	border: 0;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--float, 0 1px 2px rgba(12, 32, 51, .04), 0 10px 30px rgba(12, 32, 51, .08));
	transition: box-shadow 0.15s ease;
}

.nx-hv__campo {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 10px;
	min-width: 0;
	height: 44px;
	padding: 0 12px;
	color: var(--nx-muted);
}

.nx-hv__campo {
	position: relative;
}

.nx-hv__campo svg {
	flex-shrink: 0;
}

/* Sem linha: ao digitar, a sombra fica um pouco mais forte */
.nx-hv__busca:focus-within {
	box-shadow: 0 2px 4px rgba(12, 32, 51, .06), 0 14px 36px rgba(12, 32, 51, .14);
}

.nx-hv__campo input,
.nx-hv__campo input:focus,
.nx-hv__campo input:focus-visible {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	outline: none;
	box-shadow: none;
	background: transparent;
	color: var(--nx-ink);
	font: 15px var(--nx-font);
}

/* Seta "ver todos os cargos" */
.nx-hv__abrir {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-right: -6px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--nx-muted);
	cursor: pointer;
}

.nx-hv__abrir:hover {
	background: #f2f4f7;
	color: var(--nx-ink);
}

.nx-hv__abrir svg {
	transition: transform 0.15s;
}

.nx-hv__campo.is-aberto .nx-hv__abrir svg {
	transform: rotate(180deg);
}

/* Lista de opções */
.nx-hv__lista {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	z-index: 40;
	min-width: 260px;
	max-height: 300px;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(17, 24, 39, 0.16);
	scrollbar-width: thin;
}

.nx-hv__lista[hidden] {
	display: none;
}

.nx-hv__lista li {
	margin: 0;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--nx-ink);
	font-size: 14px;
	line-height: 1.3;
	cursor: pointer;
}

.nx-hv__lista li:hover,
.nx-hv__lista li.is-ativo {
	background: #f2f4f7;
}

.nx-hv__lista mark {
	background: none;
	color: var(--nx-ink);
	font-weight: 800;
}

.nx-hv__sep {
	flex-shrink: 0;
	width: 1px;
	height: 28px;
	background: var(--nx-line);
}

.nx-hv__btn {
	flex-shrink: 0;
	height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 10px;
	background: var(--nx-accent);
	color: var(--nx-on-accent, #fff);
	font: 700 15px var(--nx-font);
	white-space: nowrap;
	cursor: pointer;
}

.nx-hv__btn:hover {
	background: var(--nx-accent-hover, var(--nx-accent));
}

.nx-hv__alta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.nx-hv__alta-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--nx-ink);
}

.nx-hv__chip {
	padding: 6px 12px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--float-sm, 0 1px 2px rgba(12, 32, 51, .05), 0 4px 12px rgba(12, 32, 51, .07));
	color: var(--nx-ink);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.nx-hv__chip:hover {
	box-shadow: var(--float, 0 1px 2px rgba(12, 32, 51, .04), 0 10px 30px rgba(12, 32, 51, .08));
	transform: translateY(-1px);
}

.nx-hv .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Celular: um campo embaixo do outro */
@media (max-width: 680px) {
	.nx-hv {
		padding: 24px 0 20px;
	}

	.nx-hv__title {
		font-size: 26px;
	}

	.nx-hv__busca {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.nx-hv__sep {
		width: auto;
		height: 1px;
	}

	.nx-hv__btn {
		margin-top: 4px;
	}
}
