/* Encorp Pacific (Canada) 2024 Annual Report - Home Page CSS */
/* Last Updated: 2025.05.20 ET */

body {
	background-color: white;
	background-image: linear-gradient(to bottom, rgba(255,255,255,0) 0, rgba(255,255,255,0) 65%, rgba(255,255,255,1) 80%),
		url('../images/encp_bkgd_ar2024_containers_grey.svg');
	background-repeat: no-repeat;
	background-position: top 100px center;
}

main {
	min-height: calc(100vh - 240px);
	background: transparent;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    align-content: flex-start;
    padding-top: calc(4vh + 10px);
    padding-left: 50px;
    padding-right: 50px;
    margin-top: 30px;
	margin-bottom: 0;
}

h1 {
	width: 3.8em;
	color: rgb(249,158,28);
	font-weight: 900;
	font-size: 120px;
	line-height: 0.9;
	letter-spacing: -0.05em;
	text-transform: uppercase;
	margin: 0;
	margin-top: 0.8em;
	margin-left: -0.05em;
}

h1 span {
	letter-spacing: -0.015em;
}

p.subhead {
	color: rgb(34,67,156);
	font-weight: bold;
	font-size: 23.5px;
	line-height: 1.2;
	margin-top: 0.4em;
}

a.start-button,
a.start-button:visited {
	display: inline-block;
	vertical-align: top;
	background: rgb(34,67,156) url('../images/encp_icon_ar-arrow-right.svg') no-repeat right 30px center / 27px 15px;
	color: white;
	font-weight: 500;
	font-size: 24px;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 0.05em;
	padding: 13px 80px 9px 30px;
	margin-left: 0.5em;
}

a.start-button:hover,
a.pdf:hover {
	background-color: rgb(249,158,28);
}

a.pdf,
a.pdf:visited {
	background: url('../images/encp_icon_ar-download_blue.svg') 26px center / 22px 29px no-repeat;
	color: rgb(34,67,156);
	width: 160px;
	background-position: 16px center;
	padding: 0.5em 0.2em 0.3em 56px;
	border-color: rgb(34,67,156);
}

div.panel {
	/* border: 1px dashed red; */
}

#home > header {
	height: 100px;
}

#home #main-logo {
	top: 12px;
	width: 140px;
}

#home #title {
	top: 44px;
	color: rgb(170,170,170);
	font-size: 18px;
	text-align: left;
	text-transform: none;
	margin-left: -400px;
}

#home #back-to-website {
	top: 40px;
}

#home #toc {
	padding-top: 100px;
}

#home #show-toc {
	height: 100px;
	padding-top: 28px;
}

#home > footer {
	background: transparent;
	color: rgb(34,67,156);
	padding-top: 0;
	margin-top: 0;
}

#home > footer a,
#home > footer a:visited {
	color: rgb(34,67,156);
}

#social-links {
	background: url('../images/encp_rule_vert_blue.svg') right center no-repeat;
}

#social-links svg path,
#show-help svg path {
	fill: rgb(34,67,156);
}

#anniversary-logo {
	width: 200px;
	height: auto;
}

@media (min-width: 1240px) {
	main {
		padding-left: calc(50vw - 580px);
		padding-right: calc(50vw - 580px);
	}
}

@media (max-width: 1400px) {
	body {
		background-image: linear-gradient(to bottom, rgba(255,255,255,0) 0, rgba(255,255,255,0) 500px, rgba(255,255,255,1) 650px),
			url('../images/encp_bkgd_ar2024_containers_grey.svg');
		background-size: 1400px 650px; /* ratio 1:0.465 */
	}
}

@media (max-width: 1190px) {
	#home #title {
		left: 190px;
		margin-left: 0;
	}
}

@media (max-width: 900px) {
	#social-links {
		background: url('../images/encp_rule_vert_blue.svg') no-repeat left center;
	}
}

@media (max-width: 800px) {
	h1 {
		font-size: 100px;
	}
	p.subhead {
		font-size: 19.5px;
	}
	#anniversary-logo {
		width: 160px;	
	}
}

@media (max-width: 720px) {
	a.pdf {
		display: block;
		margin-bottom: 1em;
	}
	a.start-button {
		margin-left: 0;
	}
}

@media (max-width: 700px) {
	main {
		display: block;
	    padding-left: 30px;
	    padding-right: 30px;
	}
	h1 {
		margin-top: 0.2em;
	}
	div.panel {
		max-width: 370px;
		margin-left: auto;
		margin-right: 0;
	}
}

@media (max-width: 460px) {
	h1 {
		font-size: 22vw;
	}
	p.subhead {
		font-size: 4.3vw;
		white-space: nowrap;
	}
	#anniversary-logo {
		width: 140px;
	}
}
