/** 
 * main.css
 * 
 * 1. General HTML tags
 * 2. Masthead area
 * 3. Main content and sidebar
 * 4. Footer
 * 5. Media queries for responsive layout
 * 6. Accessibility helpers
 * 
 */

/*********************************************************************
 * 1. General HTML tags
 *
 */

@font-face {
	font-family: 'audreyregular';
	src: url('../../assets/fonts/Audrey/audrey-normal-webfont.woff2') format('woff2'),
	url('../../assets/fonts/Audrey/audrey-normal-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'junctionbold';
	src: url('../../assets/fonts/junction/junction-bold-webfont.woff2') format('woff2'),
	url('../../assets/fonts/junction/junction-bold-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'junctionregular';
	src: url('../../assets/fonts/junction/junction-regular-webfont.woff2') format('woff2'),
	url('../../assets/fonts/junction/junction-regular-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	background: #f7f6fa url("/site/assets/images/concrete-wall.png") repeat center center;
	background-size: cover;
	height: 100%;
}

body {
	padding: 0 7%;
	max-width: 1600px; 
	margin: 0;
}

body, td, input[type=text], textarea {
	margin-top: 4rem;
	font-family: 'junctionregular';
	font-weight: 400;
	font-size: 105%;
	line-height: 1.8em;
	color: #444444;
	background-repeat: no-repeat;
	background-position: 15rem;
	background-size: contain;
	text-align: justify;
	word-break: normal;
}

img {
	max-width: 100%; 
}

h1 {
	font-family: 'audreyregular';
	line-height: 1;
	font-size: 2.6rem;
	display: block;
	color: #eda218;
}

h2 {
	font-weight: normal;
}

h3 {
	/*border-top: 1px solid #eee; */
	padding-top: 1em;
	color: #eda218;
}

p {
	margin-top: 2rem;
}

a {
	text-decoration: none;
}
	a:hover,
	.nav a:hover {
		color: #eda218;
		border-color: #eda218;
	}

blockquote {
	margin-left: 0;
	padding-left: 1.5em;
	padding-right: 2em; 
	border-left: 4px solid #ddd; 
	font-style: italic; 
}

pre, code {
	border: 1px solid #eda218;
}

pre {
	font-size: 14px; 
	line-height: 1.4em;
	padding: 1em;
	border-left: 4px solid #eda218;
;
}

/*********************************************************************
 * 2. Masthead area
 *
 */
.navcontainer {
	position: sticky;
	top: 0;
	z-index: 200;
}
.topnav, .topnav li {
	list-style: none; 
	padding: 0;
	margin: 0.5rem 0;
	border: none;
	border-radius: 25px;
}
	.topnav li {
		float: left;
		border: 1px solid #eda218;
		border-radius: 25px;
		margin-right: 1em;
		margin-bottom: 1em;
		background-color: #f7f6fa;
	}
	.topnav a {
		padding: 0.25em 0.5em;
		text-decoration: none; 
		display: block;
		color: #eda218;
		border-bottom: none;
	}
.topnav a:hover, .topnav li:hover {
	background: url('../../assets/images/asfalt-light.png');
	}
	.topnav li.current a, .topnav li.current {
		color: #eda218;
		border-color: #eda218;
	}
	.topnav li.edit a {
		background: none; 
	}

.languages {
	list-style: none; 
	margin: 0;
	padding: 0; 
	float: right;
	font-size: 80%;
	color: #444444;
	font-weight: 900;
}

	.languages li {
		list-style: none; 
		display: inline-block;
		margin: 0;
		padding: 0;
	}

	.languages a {
		padding: 0 0.5em;
		border: none; 
		display: inline;
		border-left: 1px solid;
		color: #6a6a6a;
	}
		.languages li.current a {
			font-weight: bold;
			color: #eda218;
		}
		.languages li:first-child a {
			border: none; 
			padding-left: 0;
		}



form.search {
	float: right; 
	margin: 0;
	width: 30%; 
	padding-bottom: 1em;
}
	form.search input {
		margin: 0;
		padding: 0.25em 0.5em;
		border: 1px solid #ccc; 
		width: 100%; 
	}

.breadcrumbs {
	font-size: 80%; 
	width: 70%; 
	float: left;
	clear: both; 
	padding-top: 1em; 
}
	.breadcrumbs span:after {
		content: ">";
		color: #999; 
		padding-left: 0.5em;
		padding-right: 0.25em; 
	}

/*********************************************************************
 * 3. Main content and sidebar
 *
 */

#main {
	margin-top: 1em;
	clear: both; 
}

#content {
	width: 85%; 
}

#content, #sidebar {
	padding-bottom: 2em; 
}

body.has-sidebar #content {
	width: 75%;
	float: left;
}

body.has-sidebar #sidebar {
	width: 25%;
	padding-left: 5%; 
	float: left; 
}

.nav {
	margin-left: 0;
	padding-left: 0;
	list-style: none; 
}
	.nav .nav {
		padding-left: 1.5em;
		list-style: none;
	}
	.nav li {
		margin: 1em 0;
	}

	.nav-tree li {
		margin-top: 0.2rem;
		margin-bottom: 0;
		color: #444444;
		font-weight: 900;
	}

	.nav a {
		font-weight: bolder;
		color: inherit;
	}


	.nav .current > a {
		color: #eda218;
	}

#sidebar img + blockquote {
	margin-top: 0.5rem;
}

.align_left {
	/* for images placed in rich text editor */ 
	float: left;
	margin: 0 1em 0.5em 0; 
	position: relative;
	top: 0.5em;
	max-width: 50%; 
}

.align_right {
	/* for images placed in rich text editor */ 
	float: right;
	margin: 0 0 0.5em 1em;
	max-width: 50%; 
}

.align_center {
	/* for images placed in rich text editor */ 
	display: block;
	margin: 1em auto; 
	position: relative;
	top: 0.5em;
}

figure {
	display: table;
	width: 1px;
	margin: 1em 0;
}

figure img {
	display: table-row;
	margin-bottom: 0.5em;
}

figure figcaption {
	display: table-row;
	font-size: smaller;
	color: #777;
	line-height: 1.4em;
}

/*********************************************************************
 * 4. Footer
 *
 */

#footer {
	clear: both; 
	border-top: 1px solid #eda218;
	font-size: 110%;
}

/*********************************************************************
 * 5. Media queries for responsive layout
 *
 */

@media only screen and (max-width: 767px) {
	/* mobile layout */ 

	.languages {
		width: 100%; 
		margin-bottom: 1em;
	}
	.topnav {
		float: none;
		clear: both; 
		width: 100%;
	}
	.breadcrumbs {
		margin-bottom: 1em;
		margin-top: 0;
	}

	body, td, textarea {
		font-size: 100%; 
	}
	body.has-sidebar #content, 
	body.has-sidebar #sidebar {
		float: none;
		width: 100%; 
		padding: 0.5rem 0;
	}
	form.search {
		float: none; 
		width: 100%; 
		padding-bottom: 0;
	}
	#content {
		width: 100%; 
	}
	#sidebar {
		padding-top: 2em;
	}
	.align_left, .align_right, .align_center {
		display: block;
		float: none; 
		margin: 1em auto;
		max-width: 100%; 
	}

}

@media only screen and (min-width: 1200px) {
	/* extra-wide desktop layout */ 
	
	body, td, textarea {
		font-size: 115%; 
	}
}

/*********************************************************************
 * 6. Accessibility helpers
 *
 */

/* Hide visually, but remain approachable for screenreader */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	white-space: nowrap;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	border: 0;
}

/* Show bypass link on hover */

.element-focusable:focus {
	clip: auto;
	overflow: visible;
	height: auto;
}

/* Sample styling for bypass link */

.bypass-to-main:focus {
	top: 0;
	left: 0;
	width: 100%;
	height: 40px;
	line-height: 40px;
	text-align: center;
	background: #333;
	color: #fff;
}
