/*<meta />*/

@import url('../../css-variables.css');

@import url('../selector/selector.css');

/* Style for the main header div */

.custom-header
{
	display: grid;
	grid-template-areas: "logo links searchbar toggle hamburger";
	grid-template-columns: 370px 1fr 420px 36px 45px;
	background-color: var(--background-nav1);
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	margin: 0;
	text-align: left;
	z-index: 10;
	font-family: var(--font-html);
	border-bottom: 1px solid var(--border-neutral-weak, #E7E9ED);
	height: 72px;
	align-items: center;
}

/*Styles for the site title*/

.company-logo span.mc-variable
{
	color: var(--text-neutral-inverted);
	font-family: var(--font-family-brand, "Euclid Square");
	font-size: 28px;
	font-style: normal;
	font-weight: 600;
	line-height: 36px;
}

@media (max-width: 1278px)
{
	.custom-header
	{
		grid-template-columns: 1fr 1fr 1fr 36px 45px;
		gap: 38px;
	}

	.company-logo img
	{
		margin-right: 8px !important;
	}
}

/* Style for the div that holds the logo */

.company-logo
{
	grid-area: logo;
	padding-left: 40px;
}

/* Height settings for the rest of the page; if your header height increases, increase the value below */

div.main-section
{
	margin-top: 90px;
}

/*Holds logo and custom links*/

@media (max-width: 960px)
{
	.custom-header
	{
		grid-template-areas: "logo searchbar toggle hamburger" "links links . .";
		grid-template-columns: 1fr 1fr 48px 45px;
		grid-template-rows: auto auto;
		row-gap: 0px;
		column-gap: 5px;
		height: 120px;
	}

	.links
	{
		padding-left: 18px;
	}

	.company-logo span.mc-variable
	{
		font-size: 18px;
		line-height: 20px;
	}

	.company-logo img
	{
		height: 20px !important;
	}

	.searchbar
	{
		padding-left: 18px;
	}

	.company-logo
	{
		padding-left: 18px;
	}
}

/*Lays out search bar*/

.searchbar
{
	grid-area: searchbar;
}

.links
{
	grid-area: links;
	display: flex;
	flex-direction: row;
	gap: 32px;
}

.links p,
.links p a
{
	color: #dae6f9;
	font-family: var(--font-family-brand, "Euclid Square");
	font-size: var(--font-size-18, 18px);
	font-style: normal;
	font-weight: 600;
	line-height: var(--font-line-height-20, 20px);
	text-decoration: none;
}

[data-theme="dark"] .links p,
[data-theme="dark"] .links p a
{
	color: var(--text-neutral-inverted);
}

/*Lays out hamburger icon*/

.hamburger
{
	display: block;
	z-index: 99;
	grid-area: hamburger;
	min-width: 45px;
	top: 7px;
	position: relative;
}

.hamburger,
button.menu-icon
{
	color: var(--text-neutral-strong);
}

/* 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 search bar component*/
/*Prevents the border around the svg magnifying glass from shifting*/

.search-bar._Skins_HomeSearchBar.mc-component .search-submit
{
	border: none;
}

.search-bar._Skins_HomeSearchBar.mc-component,
#st-search-bar
{
	width: 100%;
}

.icon-search
{
	position: absolute;
	top: 60%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	left: 12px;
	opacity: 1;
	z-index: 2;
	color: var(--icon-brand-default);
}

/*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-bottom: 9px;
		position: relative;
	}

	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: 200px;
	}

	div.custom-header
	{
		height: 12em;
	}
}

/* Dropdown styles for main navigation */

.links-1,
.links-2,
.links-3
{
	position: relative;
}

.links-1 p:first-child,
.links-2 p:first-child,
.links-3 p:first-child
{
	cursor: pointer;
	display: block;
	/* Ensure this is always visible */
}

.link-dropdown-content
{
	display: none !important;
	/* Force hide by default */
	position: absolute;
	top: calc(100% + 16px);
	left: 0;
	background-color: #FCFCFD;
	border: 1px solid var(--border-neutral-default);
	border-radius: 4px;
	min-width: 200px;
	z-index: 1000;
	padding: 4px;
	box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
}

/* Add a class that JS will use to show the dropdown */

.link-dropdown-content.show
{
	display: block !important;
}

.link-dropdown-content p
{
	padding: 12px;
	margin: 0;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.link-dropdown-content p:hover,
.link-dropdown-content p:focus
{
	background-color: var(--background-neutral-strong);
}

.link-dropdown-content p a
{
	color: var(--text-neutral-default);
	text-decoration: none;
	display: block;
}

.link-dropdown-content p:hover a,
.link-dropdown-content p:focus a,
.link-dropdown-content p.active a
{
	color: var(--text-brand-default);
}

button.toggle
{
	grid-area: toggle;
}

#theme-toggle
{
	border: none !important;
	background: none;
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s;
	position: relative;
	margin-left: 20px;
}

#theme-toggle:hover
{
	background-color: var(--icon-brand-default);
}

#theme-toggle img
{
	opacity: 1;
	/* Ensure no transparency */
}

/* Show/hide icons based on theme */

#theme-toggle .light-icon,
#theme-toggle .dark-icon
{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#theme-toggle .light-icon
{
	display: none;
}

#theme-toggle .dark-icon
{
	display: none;
}

/* Update theme-specific display rules */

[data-theme="light"] #theme-toggle .light-icon
{
	display: block;
}

[data-theme="dark"] #theme-toggle .dark-icon
{
	display: block;
}

p.light-icon,
p.dark-icon
{
	height: 20px;
	margin: 0;
}

.links p a:hover,
.links p:hover
{
	color: white;
	text-decoration: underline;
}

html.HomePage #mc-main-content .searchbar
{
	padding-right: 0;
}

/*Save header space on mobile*/

@media (max-width: 768px)
{
	.company-logo
	{
		margin-right: 12px;
	}
}

@media (max-width: 425px)
{
	body p.booktitle
	{
		font-size: 1.7em;
	}

	body .company-logo span.mc-variable
	{
		font-size: 1.2em;
	}
}

