﻿/********************************************************************
	
   HEADER

*********************************************************************/

header {
	margin-top: 5pt;
	background-color: var(--clr_Header_Background);
	/* AI: banner artwork, placement and header height were hardcoded to one
	   site. They are themed values now, set in 02.SiteColors.css. */
	background-image: var(--img_Header_Banner);
	background-position: var(--img_Header_Banner_Position);
	background-repeat: no-repeat;
	border-radius: var(--DefaultBorderRadius);
	box-shadow: var(--DefaultBoxShadow);
	height: var(--Header_Height);
	position: relative;
}
	
header img
	{
	position: absolute;
	top: 10px;
	left: 10px;
	}

header h1
	{
	z-index: 100;
	position: relative;
	min-width: 200px;
	max-width: 400px;
	margin: 0;
	left: 12px;
	width: fit-content;
	}
	
header h2
	{
	text-align: right;
	font-family: var(--fnt_Header_SectionTitle);
	color: var(--clr_Header_PageTitle);
	font-weight: 700;
	font-size: 110%;
	font-style: italic;
	margin: 0;
	margin-top: auto;
	margin-right: 10px;
	width: 60%;
	text-shadow: black 2px 2px 3px;
	align-self: flex-end;
	}

header h3
	{
	text-align: right;
	font-family: var(--fnt_Header_PageTitle);
	color: var(--clr_Header_PageTitle);
	font-weight: 900;
	font-size: clamp(1.1em, 2.5vw + 0.5em, 2em);
	margin: 0;
	margin-right: 10px;
	margin-bottom: 10pt;
	width: 60%;
	text-shadow: black 4px 4px 4px;
	align-self: flex-end;
	text-wrap: balance;
	}

header p {
	font-family: var(--fnt_Header_Text);
	color: var(--clr_Header_Text);
}

header a {
	font-family: var(--fnt_Header_Link);
	color: var(--clr_Header_Link);
}

header a:visited, header a:hover, header a:active {
	font-family: var(--fnt_Header_Accent);
	color: var(--clr_Header_Visited);
}

@media only screen and (max-width: 1024px) {
	header h1
		{
		font-size: 80%;
		left: 0px;
		max-width: calc(100% - 60px);
		z-index: 1;
		}
	header h1:hover { animation: none; }
	header h2 { font-size: 90%; }
	header img { max-width: 40px; }
}

/* AI: Mobile viewport fixes for h1 overflow (375px devices) */
@media only screen and (max-width: 640px) {
	header h1
		{
		font-size: 60%;
		max-width: 90%;
		word-wrap: break-word;
		overflow-wrap: break-word;
		}
}
