/*
	(c)2021 - visuallizard.com

	General Layout Styles.
	Sets major blocking to elements that appear across the site in different templates.
	All can be removed and started from scratch or elements can be adjusted individually.
*/

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 1rem;
	position: relative;
}
.container-inner {
	max-width: var(--container-inner);
	margin: 0 auto;
}
.container-outter {
	max-width: var(--container-outter);
}

	.full-width {
		width: 100vw;
		position: relative;
		left: 50%;
		right: 50%;
		margin-left: -50vw;
		margin-right: -50vw;
	}
	.full-bleed {
	/* 	alternative to .full-width - https://andy-bell.design/wrote/creating-a-full-bleed-css-utility/ */
		width: 100vw;
		margin-left: 50%;
		transform: translateX(-50%);
	}

.site-header {
	padding: 1rem 0 2rem;
    border-bottom: 2px solid #d9d4db;
}
	.site-header-container {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-end;
		justify-content: space-between;
	}

.site-title {
	max-width: 400px;
	width: 100%;
	margin-inline-end: auto;
}
	.site-title > a {
		display: block;

		text-decoration: none;
		color: inherit;
		font-weight: 800;
		font-size: 30px;
		line-height: 1;
		transition: all .2s;
	}
	.site-title:hover > a {
		opacity: .8;
	}
	.site-title-img {
		width: 100%;
		height: auto;
	}

.languages {
	list-style: none;
	padding: 0;

	position: absolute;
	top: 1rem;
	right: 1.5rem;

	font-weight: 700;
	text-transform: uppercase;
}

/* Search Form */
.search-form {
	float: right;
	display: inline-flex;
	margin: .5em 0;
}
	.search-input {

	}
	.search-button {
		/* border-radius: 0; */
	}


/* ! Announcement Ribbon */
.announcement {
	display: block;
	background: var(--color-2);
	padding: 1rem 0;
	color: #fff;
	font-size: 80%;
	text-align: center;
}
	.announcement * {
		color: inherit;
	}
	.announcement > .container div > * {
		margin-bottom: .25em;
	}
	.announcement > .container div > *:last-child {
		margin-bottom: 0;
	}
	.announcement h2 {
		font-size: 26px;
		font-weight: 600;
		margin-block: .25rem;
	}
	.announcement a {
		color: inherit;
		text-decoration: underline;
		text-decoration-thickness: 1.5px;
	}
	.announcement a:hover {
		color: var(--color-link);
	}


/* 	! SECTIONS	*/
main {
	padding-bottom: 4rem;
}
	.primary {
		width: 70%;
		padding: 2em 5% 2em 0;
	}
	.sidebar {
		width: 30%;
		padding: 2em 0 2em 5%;
		border-left: 1px solid #777;
	}

	/* ! Regions for Layout Module */
	.region-row {
		display: flex;
	}
		.region-cell {
			width: 100%;
			padding: 2rem 5%;
		}
		.region-cell:first-child {
			padding-left: 0;
		}
		.region-cell:last-child {
			padding-right: 0;
		}


/* Sections */
.section {
	padding-block: 6rem;
	overflow-y: clip;

	--section-bg: var(--secondary);
	--section-fg: var(--primary);

	color: var(--section-fg);
	background-color: var(--section-bg);
	box-shadow: -50vw 0 0 0 var(--section-bg),
				-40vw 0 0 0 var(--section-bg),
				-30vw 0 0 0 var(--section-bg),
				-20vw 0 0 0 var(--section-bg),
				-10vw 0 0 0 var(--section-bg),
				 10vw 0 0 0 var(--section-bg),
				 20vw 0 0 0 var(--section-bg),
				 30vw 0 0 0 var(--section-bg),
				 40vw 0 0 0 var(--section-bg),
				 50vw 0 0 0 var(--section-bg);
}
	.type-1 + .type-1 {
		padding-top: 0;
	}

	.section.type-1 {
		--section-bg: var(--color-2);
		--section-fg: var(--secondary, #fff);
		background-image: url("../img/ornament-circles.svg");
		background-position: bottom right;
		background-repeat: no-repeat;
	}
		:where(.section.type-1) :is(h2, .h2, h3, .h3, h4, .h4) {
			color: var(--secondary);
		}
		:where(.section.type-1) .button {
			color: #fff;
			border-color: currentcolor;
		}

/* Extends .toggle-unit functionality and styes */
.toggle-section {

}
	.toggle-section .toggle-head {
		padding-left: 3rem;
	}
	.toggle-section .toggle {
		width: 4rem;
		height: 4rem;
	}
	.toggle-section .toggle-details {
		margin-left: 1rem;
	}


/* ! Social element */
.social {
	display: block;
	list-style: none;
	margin: .25em 0;
	margin-left: 1.5rem;
	padding: 0;
	line-height: 1;

	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	/* justify-content: flex-end; */

	--icon-size: 2rem;
}
	.social > li {
		display: inline-block;
		margin-left: .5rem;
		margin-bottom: 0;
	}
	.social > li:first-of-type {
		margin-left: -.25rem;
	}
	.social > li > a {
		display: inline-block;
		padding: 0;
		margin: 0;
		border: 0px solid transparent;
		border-radius: 100%;
		vertical-align: middle;

		color: var(--color-link);
		transition: opacity: .3s;
	}
	.social > li > a:hover {
		color: #000;
	}
	.social > li > a:focus {
		outline-width: medium;
		outline-color: dodgerblue;
		outline-offset: 4px;
	}
	.social .icon {
		width: var(--icon-size);
		height: var(--icon-size);
	}

	.site-header .social {
		/* --icon-size: 1.75rem; */

		position: absolute;
		right: 6rem;
		top: .5rem;
	}
	.site-footer .social {
		margin-left: 0;
	}


/* Layout Helpers */
	.align-center {
		text-align: center;
	}
	.align-content-middle .cke > * {
		align-content: center;
	}
	.no-padding {
		padding: 0;
	}



/* ! Site Footer  */
.site-footer {
	position: relative;
	clear: both;
	padding: 1em 0;
	margin: 0;
	background-color: #d9d4db;
	color: var(--primary);
	border-bottom: 2rem solid #d75382;
}

	:where(.site-footer) .region-cell {
		padding-inline: 2.5rem;
	}

	.site-footer h2 {
		margin: 0 0 .25rem 0;
		font-size: 1.5rem;
		font-weight: 600;
		line-height: 1.3;
		color: #111;
	}

/* ! Error Pages */
.error-header {
	font-size: 50px;
}
.error-code {
	font-size: 12px;
}
