/* PowerSite 2.93 - Client: MARR2 (Participants Portal) - Layout CSS */
/* Last Updated: 2025.04.30 ET */

body {
	background: #eee;
	margin: 0.8rem 1.2rem 1.2rem 1.2rem;
}

body.fullwidth {
	/* margin: 0; */
}

main {
	position: relative;
	background: #fff;
	max-width: 860px;
	min-height: 300px;
	padding: 30px;
	border-top: 30px solid #5271a4;
	margin: 0 auto 2em;
	box-shadow: 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.20);
}

body.fullwidth main {
	max-width: none;
}

main > header {
	position: relative;
	height: 140px;
	padding-top: 10px;
	border-bottom: 4px solid #5271a4;
	margin-bottom: 50px;
}

main > header.internal {
	height: 70px;
	padding-top: 0;
}

main > nav {
	background: #d5e3f3;
	margin-top: -50px;
}

main > nav *.inactive {
	cursor: not-allowed;
}

main > nav ul {
	list-style: none !important;
	padding: 0;
	margin: 0;
	display: flex;
}

main > nav > ul + ul {
	/* border-top: 0.5rem solid white; */
	background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0, rgba(255,255,255,1) 8px, transparent 9px);
	padding-top: 0.5rem;
}

main > nav ul li {
	list-style-type: none !important;
	padding: 0;
	margin: 0;
}

main > nav > ul > li {
	display: inline-block;
	vertical-align: top;
	border-right: 1px solid white;
}

main > nav > ul > li > ul {
	position: absolute;
	min-width: 12em;
	background: white;
	border-left: 3px solid white;
	border-right: 3px solid white;
	border-bottom: 3px solid white;
	margin-left: -3px;
	display: none;
	z-index: 100;
}

main > nav > ul > li:hover > ul {
	display: block;
}

main > nav > ul > li > a,
main > nav > ul > li > span {
	display: block;
	background: transparent;
	color: #1b305d;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	padding: 0.4em 1em;
}

main > nav > ul > li.admin {
	background: #acc7e8;
	border-right: 2px solid #d5e3f3;
}

main > nav > ul > li:hover > a,
main > nav > ul > li.active > a {
	background: #5271a4;
	color: white !important;
}

main > nav > ul > li > ul a,
main > nav > ul > li > ul span {
	display: block;
	line-height: 1;
	text-decoration: none;
	padding: 0.4em calc(1em - 1px);
	border-left: 1px solid #acc7e8;
	border-right: 1px solid #acc7e8;
	border-bottom: 1px solid #acc7e8;
}

main > nav > ul > li > ul a:hover,
main > nav > ul > li > ul > li.active > a,
main > nav > ul > li > ul > li.active > a:visited {
	background: #d5e3f3;
	color: #1b305d !important;
}	

main > nav > ul > li > ul a[data-icon] {
	padding-left: calc(0.75em - 1px);
}

main > footer {
	color: rgb(170,170,170);
	font-size: 0.6rem;
	margin-top: 3rem;
}

main > footer > p {
	margin: 0.5em auto;
}

main > footer > p:first-child {
	margin-top: 0;
}

main > footer > p:last-child {
	margin-bottom: 0;
}

table.floatleft {
	margin-right: 3em;
}

section.panel {
	position: relative;
	overflow: hidden;
}

section.admin {
	border: 1px dashed #c24234;
	padding: 1rem;
}

section.admin > *:first-child,
section.admin > *:first-child + h2 {
	margin-top: 0 !important;
}

section.admin > *:last-child {
	margin-bottom: 0 !important;
}

div.dialog {
	background: #eee;
	border: 1px solid #1F497D;
	padding: 1rem;
	margin-bottom: 1.5rem;
}

div.dialog > h2:first-child {
	background: #1F497D;
	color: white;
	padding: 0.2em 0.8em;
	margin: -1rem -1rem 1em;
}

div.dialog > p:last-child {
	margin-bottom: 0 !important;
}

section.dialogs {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: stretch;
	gap: 1.8rem;
	margin: 2rem auto;
}

section.panels {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: start;
	gap: 1.8rem;
	margin: 2rem auto;
}

section.dialogs > div.dialog,
section.dialogs > div.notice {
 	flex: 1 1 50%;
}

section.panels > div.dialog,
section.panels > div.notice {
 	flex: 1 1 50%;
}

div.popup {
	position: absolute;
	max-width: 32em;
	background-color: white;
	font-size: 0.9rem;
	padding: 1em 1em 1.4em 1em;
	border: 1px solid rgb(82,113,164);
	box-shadow: 0 7px 15px 0 rgba(0, 0, 0, 0.13), 0 1px 4px 0 rgba(0, 0, 0, 0.11); /* Fluent UI Creative */
	margin-top: -1.5rem;
	margin-left: 14rem;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s;
}

div.popup::before {
	/*
		<svg viewBox="0 0 20 15" width="20" height="15" preserveAspectRatio="none">
			<polygon points="20,0 0,7 20,15, 20,0" fill="#FFF"/>
			<path d="M20,0 L0,7 20,15" fill="none" stroke="#5271a4" stroke-linecap="square" stroke-width="1" stroke-miterlimit="30"/>
        </svg>
	*/
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 15' width='20' height='15' preserveAspectRatio='none'%3E%3Cpolygon points='20,0 0,7 20,15, 20,0' fill='%23FFF'/%3E%3Cpath d='M20,0 L0,7 20,15' fill='none' stroke='%235271a4' stroke-linecap='square' stroke-width='1' stroke-miterlimit='30'/%3E%3C/svg%3E");
	width: 20px;
	height: 15px;
	position: absolute;
	top: 0.4em;
	left: -20px;
	color: white;
	font-size: 1rem;
}

div.popup a {
	white-space: nowrap;
}

div.popup > *:first-child {
	margin-top: 0;
}

div.popup > *:last-child {
	margin-bottom: 0;
}

.haspopup {
	cursor: help;
}

.haspopup:hover div.popup {
	visibility: visible;
	opacity: 1;
}

nav.adminlinks {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: #bec9d8;
	padding: 0.4rem 2rem;
	border-top: 2px solid white;
	z-index: 11000;
}

nav.adminlinks a {
	text-decoration: none;
}

nav.adminlinks > ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

nav.adminlinks > ul > li {
	display: inline-block;
	padding: 0;
	margin: 0;
}

nav.adminlinks > ul > li + li {
	margin-left: 1.5em;
}

#mainlogo {
	display: block;
	width: 350px;
	height: 87px;
}

#bannerimg {
	position: absolute;
	top: -20px;
	right: 0;
	width: 200px;
	height: 209px;
}

main > header.internal #mainlogo {
	width: calc(350px / 2);
	height: calc(87px / 2);
}

main > header.internal #bannerimg {
	right: 10px;
	width: calc(200px / 2);
	height: calc(209px / 2);
}

@media (min-width: 1280px) {

	section.dialogs,
	section.panels {
		justify-content: start;
	}

}

@media (max-width: 1000px) {

	main > nav ul {
		align-items: stretch;
		align-content: stretch;
		flex-wrap: wrap;
	}

	main > nav ul li {
		border-bottom: 1px solid white;
		flex: 1 1 auto;
	}
	
	main > header.internal:not(.nomenu) #bannerimg {
		display: none;
	}

}

@media (max-width: 840px) {

	section.dialogs,
	section.panels {
		display: block;
	}

}

/* Specific ID elements */

#siteindicator {
	position: fixed;
	top: 0;
	left: 0;
	background: rgb(211,52,41);
	color: white;
	font-size: 14px;
	line-height: 1;
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
	padding: 0.4em 1em;
	z-index: 20000;
}

@media print {    

	#siteindicator {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

}
