/*<meta />*/

@import url('../../css-variables.css');

/* Style for the main header div */

.custom-header
{
	/*background: center top no-repeat url('../../../../gfx/commongfx/HTML/header-bg.svg');
	background-size: cover;*/
	background-color: var(--brand);
	color: #fff;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	margin: 0;
	padding: 0.5em 1em 1em 0.5em;
	text-align: left;
	z-index: 10;
	font-family: var(--font-html);
}

/*adjustment for search bar alignment on wide screens*/

@media only screen and (min-width: 1269px)
{
	.custom-header
	{
		padding: 0.5em 2em 1em 0.5em;
	}
}

/* Style for the div that holds the logo */

.company-logo
{
	margin-top: 15px;
	margin-left: 15px;
	float: left;
	width: auto;
	grid-area: logo;
	min-height: 40px;
	/*if you want your header shorter than the default, you can decrease this value or remove this entry*/
	justify-self: end;
	margin-right: 0;
}

@media (min-width: 1720px) and (max-width: 2048px)
{
	.company-logo
	{
		margin-right: calc((100vw - 1720px) * 0.18);
	}
}

/*Grows the right margin to ensure alignment with the search bar*/

@media (min-width: 2048px)
{
	.company-logo
	{
		margin-right: calc((100vw - 2048px) * 0.15 + 60px);
	}
}

@media (min-width: 2560px)
{
	.company-logo
	{
		margin-right: calc((100vw - 2560px) * 0.17 + 137px);
	}
}

@media (max-width: 1279px)
{
	.company-logo
	{
		margin-top: 0;
	}
}

/*Adjusts the top margin for mobile*/
/* Height settings for the rest of the page; if your header height increases, increase the value below */

div.main-section
{
	margin-top: 215px;
}

/*Holds logo and custom links*/

.header-container
{
	display: grid;
	grid-template-areas: "logo";
	/*grid-template-areas:  "logo links hamburger";*/
	/*use this line if you want to include links in header*/
	grid-template-columns: auto;
}

@media (max-width: 1279px)
{
	.header-container
	{
		grid-template-areas: "logo hamburger";
		grid-template-columns: 1fr 50px;
	}
}

/*Holds site title and search*/

.header-container-2nd
{
	display: grid;
	grid-template-columns: 2fr 1fr;
}

/*Lays out custom links and hamburger icon*/

.hamburger
{
	display: none;
}

@media (max-width: 1279px)
{
	.hamburger
	{
		display: flex;
		justify-content: flex-end;
		grid-area: hamburger;
		min-width: 55px;
	}
}

/* Style for the hamburger icon image */

.hamburger img
{
	min-width: 30px;
}

/* Style for the custom links */

.top-nav-links
{
	grid-area: links;
	display: flex;
	justify-content: flex-end;
}

/*Hide hamburger on laptop/PC medium*/

button.menu-icon
{
	display: none;
}

/*Styles for the site title*/

.site-title
{
	position: relative;
	margin-left: 15px;
	margin-top: 0;
	font-size: 1.7em;
	font-weight: 500;
}

.site-title > a
{
	color: var(--white);
}

.site-title > a:hover
{
	color: var(--white);
}

.site-title-row-1
{
	font-size: 0.8em;
	font-weight: 600;
	line-height: normal;
	margin-top: -10px;
}

.site-title-row-2
{
	font-size: 1.2em;
	line-height: normal;
	margin-top: -5px;
	margin-bottom: 0;
}

@media (max-width: 650px)
{
	.site-title-row-1
	{
		font-size: 0.6em;
		/* proportionally reduced */
	}

	.site-title-row-2
	{
		font-size: 0.9em;
		/* proportionally reduced */
	}
}

/*styles for the search bar component*/

.search-bar.search-bar-container.needs-pie._Skins_HomeSearchBar.mc-component
{
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.search-bar.search-bar-container._Skins_HomeSearchBar.mc-component .search-submit
{
	height: 40px;
	border: none;
	margin: 0;
	margin-right: 5px;
}

input.search-field.needs-pie
{
	width: 375px;
}

@media (max-width: 650px)
{
	input.search-field.needs-pie
	{
		width: 100%;
		max-width: 1000px;
		box-sizing: border-box;
		margin-right: -4px;
	}
}

/*Prevents the border around the svg magnifying glass from shifting*/

.search-bar._Skins_HomeSearchBar.mc-component .search-submit
{
	border: none;
}

/*Styles for the on-hover menu*/
/* Applies to all unordered lists inside the uppernav element */

nav.uppernav ul
{
	list-style: none;
	font-weight: 500;
	margin: 0;
	padding-left: 0;
	font-family: var(--font-html);
}

/* Applies to all list items inside the uppernav element */

nav.uppernav li
{
	color: var(--white);
	display: block;
	float: left;
	padding: 1rem;
	position: relative;
	text-decoration: none;
	transition-duration: 0.5s;
	border-radius: 5px;
}

/* Applies to all links inside the list items */

nav.uppernav li a
{
	color: var(--white);
}

/* Applies when the mouse hovers over or focuses on a list item */

nav.uppernav li:hover,
nav.uppernav li:focus-within
{
	font-weight: 500;
	background: var(--menu-hover);
	cursor: pointer;
}

/* Applies to links inside a list item that has focus */

nav.uppernav li:focus-within a
{
	outline: none;
}

/* Applies to all unordered lists inside a list item */

nav.uppernav ul li ul
{
	visibility: hidden;
	opacity: 0;
	min-width: 5rem;
	position: absolute;
	transition: all 0.5s ease;
	margin-top: 1rem;
	left: 0;
	display: none;
	background: var(--menu-dropdown);
	border-radius: 5px;
}

/* Applies when the mouse hovers over or focuses on a list item that contains an unordered list */

nav.uppernav ul li:hover > ul,
nav.uppernav ul li:focus-within > ul,
nav.uppernav ul li ul:hover,
nav.uppernav ul li ul:focus
{
	visibility: visible;
	opacity: 1;
	display: block;
}

/* Applies to all list items inside an unordered list */

nav.uppernav ul li ul li
{
	clear: both;
	width: 100%;
}

/* Applies to all unordered lists with the class dropdown */

ul.dropdown
{
	z-index: 10;
}

/*end of menu*/
/*Layout adaptations for tablet and mobile*/

@media only screen and (max-width: 1279px)
{
	button.menu-icon
	{
		display: block;
		background: none;
		color: inherit;
		border: none;
		padding: 0;
		font: inherit;
		cursor: pointer;
		outline: inherit;
		padding: 5px;
		margin-top: 22px;
		margin-bottom: 22px;
		position: absolute;
	}

	.custom-header
	{
		position: sticky;
		margin-bottom: 10px;
	}

	div.main-section
	{
		margin-top: 0;
	}

	div.main-section > .outer-row
	{
		padding-left: 0;
		padding-right: 0;
	}

	.body-container
	{
		padding-top: 0;
	}

	div.MCBreadcrumbsBox_p\00002Ebreadcrumb_0
	{
		padding-left: 15px;
		padding-right: 15px;
	}

	#mc-main-content
	{
		padding-left: 15px;
		padding-right: 15px;
	}

	/*Change this value if your site title is particularly long/short and page looks off when scaled down*/

	.header-container-2nd
	{
		display: grid;
		grid-template-columns: 1fr 1fr;
		/*divides the available space 50:50*/
	}

	div.site-title
	{
		position: relative !important;
	}
}

/*Change this break point if your site title is particularly long/short*/

@media (max-width: 850px)
{
	.header-container-2nd
	{
		display: grid;
		grid-template-rows: 1fr 1fr;
		/*divides the available space 50:50*/
		grid-template-columns: 100%;
	}

	.search,
	.search-bar
	{
		width: 90%;
	}
}

/*Print css for the custom header portals*/

@media print
{
	.custom-header,
	.custom-header-mobile
	{
		display: block;
		position: absolute !important;
		top: -320px;
	}

	body nav.title-bar.tab-bar
	{
		display: none !important;
	}

	body .topicContent,
	body div#mc-main-content
	{
		margin-top: -130px;
	}

	.search,
	.search-bar
	{
		display: none;
	}

	div.main-section
	{
		margin-top: 300px;
	}

	div.custom-header
	{
		height: 12em;
	}
}

