/* BCSF - Stewardship Agencies of BC (SABC) - Main Website Layout CSS */
/* Last Updated: 2024.08.09 ET */

/* Basic elements */

html,
body {
	height: 100%;
}

body {
	margin: 0;
	display: flex;
	flex-direction: column;
}

body > main {
	flex: 1 0 auto;
}

main > header {
	position: relative;
	overflow: hidden;
	background: url('/images/bcsf_banner_about-us.jpg') no-repeat center center / cover;
	color: white;
	text-align: center;
	min-height: 16rem;
	width: 100%;
	padding: 2rem;
	display: flex;
	flex-direction: column;
}

main > header.stewardship-agencies {
	background: url('/images/bcsf_banner_stewardships.jpg') no-repeat center center / cover;
}

main > header.stewardship-agencies.details {
	background: radial-gradient(rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 20%, rgba(255,255,255,0.1) 100%),
		url('/images/bcsf_banner_stewardships-details.jpg') no-repeat center center / cover;
}

main > section {
	padding: 1rem 2rem;
}

main > section:first-child {
	padding-bottom: 2rem;
}

main > section:last-child {
	padding-bottom: 4rem;
}

nav {
	-webkit-user-select: none; /* Safari */
	-ms-user-select: none; /* IE 10 and IE 11 */
	user-select: none; /* Standard syntax */
}

section.withnav,
section.afternav {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: stretch;
}

section + section.withnav {
	padding-top: 0;
}

section.withnav > article {
	max-width: 40rem;
	margin-right: 1.7rem;
}

section.withnav > nav {
	flex: 0 0 12rem;
	padding-left: 2rem;
	border-left: 1px solid rgb(178,196,229);
	margin-top: 2rem;
}

section.withnav > nav > h3 {
	text-transform: uppercase;
	margin: 0 auto 2em;
}

ul.subnav {
	list-style: none;
	padding: 0 0 3rem 0;
	margin: 0;
}

ul.subnav > li {
	padding: 0;
	margin: 0 0 1em 0;
}

table.loginform {
	margin-top: 3rem;
	margin-bottom: 3rem;
	/* margin: 2rem auto; */
}

p.backlink {
	margin: 2em 0 0;
}

.backlink::before {
	content: '\25C0';
	display: inline-block;
	vertical-align: top;
	color: rgb(4,60,187);
	font-size: 0.6em;
	padding-top: 0.3em;
	margin-right: 0.75em;
}

.backlink:hover::before {
	color: rgb(78,189,9);
}

.nextlink {
	display: block;
	float: right;
}

.adminonly {
	background-color: rgba(255,159,0,0.2);
}

span.adminonly {
	display: inline-block;
	padding: 0.1em 0.7em;
	margin: 0em 1em;
}

.adminlink {
	color: #999 !important;
	font-family: 'FFMetaWebNormal', sans-serif;
	font-size: 0.76rem;
	line-height: 1rem;
}

.adminlink a, .adminlink a:visited {
	color: #fc7d00 !important;
	text-decoration: underline !important;
	border: none !important;
}

.adminlink a:hover {
	color: #82bc00 !important;
	border: none !important;
}

ul.childnav span.adminlink {
	visibility: hidden;
	float: right;
}

ul.childnav li:hover span.adminlink {
	visibility: visible;
}

#sitelogo {
	width: 134px;
	height: 40px;
}

#siteheader {
	height: 90px;
	padding: 1.5rem 2.25rem;
	border-bottom: 1px solid rgb(200,200,200);
	flex-shrink: 0;
}

#siteindicator {
	position: fixed;
	top: 0;
	left: 0;
	background: red;
	color: white;
	font-size: 14px;
	line-height: 1;
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
	padding: 0.4em 1em;
	z-index: 20000;
}

#sitenav {
	float: right;
}

#sitenav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#sitenav ul > li {
	display: inline-block;
	padding: 0;
	margin: 0;
}

#sitenav ul > li > a,
#sitenav ul > li > a:visited {
	display: block;
	color: rgb(100,100,100);
	text-decoration: none;
	padding: 0.25em 0.6em;
	border-bottom: 1px solid transparent;
}

#sitenav ul > li > a.active {
	color: rgb(4,60,187);
	border-bottom: 1px solid rgb(4,60,187);
}

#sitenav ul > li > a:not(.active):hover {
	color: rgb(78,189,9);
	border-bottom: 1px solid rgb(78,189,9);
}

#sitefooter {
	background-color: rgb(4,60,187);
	color: white;
	padding: 2rem 3rem 2rem 4.75rem;
	flex-shrink: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-content: stretch;
	align-items: center;
}

#sitefooter > div {
	font-size: 0.75rem;
	text-align: right;
}

p.copyright {
	margin-top: 2em;
}

#sitefooter a,
#sitefooter a:visited {
	color: white;
	text-decoration: none;
}

#footerlogo {
	width: 210px;
	height: 50px;
}

#menu-checkbox,
#menu-control {
	display: none;
}

/* Media and capability hiders */

.printonly { display: none; }

.jsonly { display: none; }

/* Responsive adjustments */

@media (min-width: 1200px) {

	h5 {
		margin-left: calc(-50vw - 35rem);
		margin-right: calc(-50vw - 35rem);
	}

	main > header,
	main > section {
		padding-left: calc(50vw - 35rem);
		padding-right: calc(50vw - 35rem);
	}

}


@media (min-width: 800px) {

	#sitenav > ul > li > ul {
		position: absolute;
		background-color: white;
		padding: 1rem;
		box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
		z-index: 2000;
		visibility: hidden;
	}

	#sitenav > ul > li:hover > ul {
		visibility: visible;
	}

	#sitenav > ul > li > ul > li {
		display: block;
	}

}

@media (max-width: 800px) {

	#sitenav > ul {
		position: absolute;
		top: 4rem;
		right: 1rem;
		background-color: white;
		padding: 1rem;
		box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
		z-index: 1000;
	}
	
	#sitenav ul li {
		display: block;
	}

	#sitenav > ul > li > ul {
		margin-left: 1rem;
	}
	
	#menu-control {
		display: block;
		position: absolute;
		top: 1rem;
		right: 1rem;
		background: none;
		font-size: 3rem;
		line-height: 1;
		/* border: 1px dashed red; */
	}

	#menu-control::after {
		content: '\2630';
		position: relative;
	}

	#menu-checkbox:checked + #menu-control::after {
		content: '\00D7';
	}

	#menu-control + ul {
		visibility: hidden;
	}

	#menu-checkbox:checked + #menu-control + ul {
		visibility: visible;
	}

}

@media (max-width: 620px) {

	#sitefooter {
		padding: 2rem;
		display: block;
		text-align: center;
	}

	#sitefooter > div {
		text-align: center;
	}

}