header {
	background-color: var(--primary);
	color: var(--header-color);
	height: var(--header-height);
	display: flex;
	align-items: center; /* ensures vertical centering */
	font-size:1rem;
	z-index:999;
}

.nav-bar {
	display: flex;
	align-items: center;       /* vertical alignment */
	justify-content: space-between;
	width: 100%;
	max-width: 85%;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.nav-left,
.nav-center,
.nav-right {
	display: flex;
	align-items: center;       /* align elements inside each section */
	gap: 12px;
}

.nav-center {
	flex: 1;
	justify-content: center;
}

.nav-center form {
	display: flex;             /* ensures input stays aligned */
	margin:20px 0px;
}

.nav-center input {
	width: 250px;
	padding: 0.25rem 10px;
	border-radius: 1rem;
	border: 1px solid var(--border);
	background-color:var(--primary);
	color:var(--text);
	outline: none;
	line-height: 1;            /* reset weird line-box behavior */
	box-sizing: border-box;
}

.nav-left img {
	display: block;            /* remove inline baseline alignment offset */
	height:var(--header-height);
	padding:0.5rem;
}

.nav-right i, .nav-right img {
	display: flex;
	align-items: center;
	justify-content: center;
}

.nav-right form {
	display: flex;
	align-items: center;
	margin: 20px 0px;
}

.nav-right form button {
	border: none;
	background: #e11d48;
	color: white;
	border-radius: 6px;
	padding: 0 14px;
	cursor: pointer;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-avatar {
	height: 30px;
	width: 30px;
	border-radius: 50%;
}