﻿/* BCSF - Stewardship Agencies of BC (SABC) - Default CSS */
/* Last Updated: 2024.08.09 ET */

@import url('//fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/** Colours

#646464 rgb(100,100,100); text grey
#c8c8c8 rgb(200,200,200); light grey
#043cbb rgb(4,60,187); cobalt blue
#4ebd09 rgb(78,189,9); fern green
#8ee7ec rgb(142,231,236); sky blue
#b7ff49 rgb(183,255,73); kiwi green
#000243 rgb(0,2,67); midnight blue

**/

html * {
	box-sizing: border-box;
}

body {
	color: rgb(100,100,100);
	font-family: 'Nunito Sans', sans-serif;
	font-size: 18px;
}

h1 {
	font-size: 1.5rem;
	line-height: 1.2;
	font-weight: normal;
	margin: 2rem 0 1rem;
}

h2 {
	font-size: 1.25rem;
	line-height: 1.2;
	font-weight: normal;
	margin: 3rem 0 1rem;
}

h1.mainhead,
h1.mainhead + h2,
h2.mainhead {
	text-align: center;
}

h3 {
	font-size: 1.2rem;
	line-height: 1.2;
}

h5 {
	background-color: rgb(4,60,187);
	color: white;
	font-weight: normal;
	font-size: 1rem;
	text-align: center;
	padding: 2rem;
	margin: 2rem -2rem 1rem;
}

a,
a:visited {
	color: rgb(4,60,187);
	text-decoration: none;
}

a .mat-icon-fill {
	fill: rgb(4,60,187);
}

a:hover {
	color: rgb(78,189,9);
	text-decoration: underline;
}

a:hover .mat-icon-fill {
	fill: rgb(78,189,9);
}

a img {
	text-decoration: none !important;
	border: none !important;
}

ul,
ol {
	padding: 0;
	margin-left: 0;
}

li {
	padding: 0;
	margin-left: 2.4em;
}

dt {
	font-weight: normal;
	letter-spacing: 0.07em;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

th,
td {
	text-align: left;
	vertical-align: top;
}

td {
	font-size: 0.94em;
	padding: 0.25em 1em 0.25em 0em;
}

th {
	font-weight: normal;
	font-size: 0.76em;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 0.34em 1em 0.34em 0em;
}

input,
button,
textarea {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="file"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime"],
textarea,
select {
	font-size: 0.94em;
	padding: 4px 8px;
	border: 1px solid #c7c2bc;
	border-radius: 4px;
}

input[type="submit"],
input[type="reset"],
button,
a.button,
span.button {
	display: inline-block;
	background-color: rgb(78,189,9);
	color: white;
	text-align: center;
	text-decoration: none;
	padding: 1em 3em;
	border: none;
	border-radius: 1.5em;
}

.center,
.text-center {
	text-align: center;
}

.right,
.text-right {
	text-align: right;
}

.left,
.text-left {
	text-align: right;
}

.note {
	color: #333;
	font-size: 0.76em;
}

.floatleft,
.float-left {
	float: left;
	max-width: 50%;
	height: auto;
	margin-right: 2em;
	margin-bottom: 1em;
}

.floatright,
.float-right {
	float: right;
	max-width: 50%;
	height: auto;
	margin-left: 2em;
	margin-bottom: 1em;
}

.clearfloats {
	clear: both;
}

.nofloatwrap {
	position: relative;
	overflow: hidden;
}

.num {
	text-align: right;
}

.newsect,
.separate {
	margin-top: 3rem;
}

.mat-icon-nofill {
	fill: none;
}

.infobox {
	background-color: white;
	border: 2px solid rgb(4,60,187);
	padding: 2rem;
	border-radius: 1.2rem;
	box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
	margin-bottom: 2rem;
}

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

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

p.intro {
	font-size: 1.2rem;
}

/* Child Page Navigation - included here in case any gets copied into TinyMCE fields */

ul.childnav {
	list-style: none;
	padding: 0;
	margin: 0 0 2em 0;
}

ul.childnav li {
	padding: 0;
	margin: 0;
}

ul.childnav li a.linkhead {
	display: inline-block;
	margin-left: 2.4em;
}

ul.childnav li a.linkhead::before {
	content: '\2022';
	position: absolute;
	color: #000;
	text-decoration: none !important;
	margin-left: -1em;
}

ul.childnav li.sublink,
ul.childnav li.expanded {
	padding-bottom: 1.4em;
	border-bottom: 1px solid #dfdfdf;
	margin-bottom: 1em;
}

ul.childnav div.teaser {
	font-size: 0.94em;
	margin: 0.5em 2.4em;
}

/* Stewardship Icons */

ul.stewardicons {
	list-style: none;
	text-align: center;
	padding: 0;
	margin: 2rem;
}

ul.stewardicons > li {
	display: inline-block;
	vertical-align: top;
	width: 200px;
	height: 184px;
	margin: 1rem 1.5rem;
}

ul.stewardicons > li > a {
	display: block;
	width: 200px;
	height: 184px;
	color: white;
	padding: 16px;
	border-radius: 1rem;
	box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

ul.stewardicons > li:nth-child(odd) > a {
	border: 2px solid rgb(4,60,187);
}

ul.stewardicons > li:nth-child(even) > a {
	border: 2px solid rgb(78,189,9);
}

ul.stewardicons > li > a > img {
	display: block;
	width: calc(200px - 36px);
	height: calc(184px - 36px);
	object-fit: contain;
	object-position: center;
}

@media (min-width: 1024px) {

	.flexrow {
		display: flex;
		gap: 40px;
		align-items: stretch;
	}

	.flexrow > * {
		flex: 1;
	}

}

@media (max-width: 640px) {

	.floatleft,
	.floatright,
	.float-left,
	.float-right {
		float: none;
		max-width: 100%;
		display: block;
		margin: 1.5em auto;
	}

}
