/**
 * Header: "Jobs" button (.contactLink) and search.
 *
 * Was two stacked half-height blocks in the top-right corner; now a button in
 * the page accent next to a square search button, centred on the menu line.
 */

.headerContentEnd .contactLink {
	background-color: var(--lightgreen);
	background-image: linear-gradient(to right, var(--hovergreen) 100%, transparent);
	background-size: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.45s ease-out;
}

.headerContentEnd .contactLink:hover {
	background-image: linear-gradient(to right, var(--hovergreen) 100%, transparent);
	background-size: 100% 100%;
}

.headerContentEnd .contactLink a {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Barlow ExtraBold", sans-serif;
	font-size: 16px;
	letter-spacing: 0.02em;
	color: #fff !important;
	text-decoration: none;
}

/* Mobile menu: a real button instead of loose text */
@media only screen and (max-width: 1119px) {
	.headerContentEnd .contactLink {
		display: inline-flex;
		margin: 0 auto 1.75rem;
	}

	.headerContentEnd .contactLink a {
		padding: 0.7rem 2.25rem;
	}
}

@media only screen and (min-width: 1120px) {
	.headerContentEnd {
		flex-flow: row nowrap;
		align-items: center;
		justify-content: flex-end;
		gap: 8px;
		width: auto;
		height: 90px;
		margin-left: 1.5rem;
	}

	.headerContentEnd > div {
		width: auto;
		height: 44px;
		margin: 0;
	}

	.headerContentEnd .contactLink {
		display: flex;
	}

	.headerContentEnd .contactLink a {
		height: 100%;
		padding: 0 1.6rem;
	}

	.headerContentEnd .search {
		flex: 0 0 44px;
		width: 44px;
		height: 44px;
	}

	/* Search field drops down from the bottom of the header */
	.headerContentEnd .searchField {
		top: calc(100% + 23px);
		right: 0;
		width: 320px;
	}
}
