/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
:root {
	--light-peach: #f9ebe6;
	--pomegrenade: #941a19;
}

html {
	line-height: 1.15;
	box-sizing: border-box;
}

.content {
	background: #e6d6cb;
	background-position-x: 0%;
	background-position-y: 0%;
	background-repeat: repeat;
	background-image: none;
	-webkit-box-shadow: 5px 5px 5px #000;
	-moz-box-shadow: 5px 5px 5px #000;
	box-shadow: 5px 5px 5px #000;
	background-image: url(../img/background.png);
	background-position: bottom right;
	background-repeat: no-repeat;
	margin: 0 auto 1.5em;
}

*, *::before, *::after {
	box-sizing: inherit;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

body {
	background: #6c1515;
	color: var(--pomegrenade);	
	font-family: Verdana, Helvetica, sans-serif;
	line-height: 1.5;
	margin: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: verdana, geneva;
}

h1 {
	font-style: italic;
	font-weight: initial;
	text-align: center;
	margin: 4rem 0;
	font-size: 2.5em;
}

h2 {
	text-align: center;
	margin: 3rem 0;
	font-size: 1.2em;
}

h3 {
	font-weight: bolder;
	font-style: italic;
	margin: 0;
	font-size: .85em;
}

p, li {
	font-family: verdana, geneva;
	text-align: justify;
	font-size: .85em;
	margin: 0.5em 0;
}

b, strong {
	font-weight: bolder;
}

em, i {
	font-style: italic;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/

ul, ol {
	margin: 0;
	padding: 0 15px;
}

ul li, ol li {
	margin: 0;
	font-family: verdana, geneva;
	font-size: .85em;
}

ul {
	list-style: disc;
}

li > ul {
	margin-bottom: 0;
	margin-left: 1.5em;
}

button {
	cursor: pointer;
}

blockquote {
	font-family: verdana, geneva;
	font-size: .85em;
	margin: 0.5em 0;
	text-align: center;
	font-style: italic;
	line-height: 2;
}

main table {
	font-family: verdana, geneva;
	font-size: .85em;
	margin: 0.5em 0 2em;
	border-spacing: 0 .5em;
	text-align: left;
}

main th {
	text-align: left;
	font-style: italic;
	padding-top: 1em;
}

main td:nth-child(2n) {
	text-align: right;
	font-weight: bold;
}

/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/
a {
	color: var(--pomegrenade);
	background: transparent;
	text-decoration: underline;
}

a:hover {
	text-decoration: none;
}

a:focus, a:active, a:hover {
	font-size: 103%;
	font-weight: bolder;
}

a:focus {
	outline: 2px dotted #3e0c0c;
}

a:hover, a:active {
	outline: 0;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu.active {
	overflow: scroll;
	max-height: calc(100vh - 120px);
}

.main-navigation li {
	border-bottom: 1px solid var(--pomegrenade);
	padding: .4em 0 .2em;
	margin: 0;
	font-size: .8rem;
}

.main-navigation li.has-children {
	padding-bottom: 0;
	border-bottom: none;
}

.menu li:first-child {
	border-top: 1px solid var(--pomegrenade);
}

.sub-menu {
	font-size: 12px;
}

.sub-menu li {
	padding-left: 1em;
}

.main-navigation a {
	display: block;
	text-decoration: none;
	font-family: Verdana, Helvetica, sans-serif;
}

.current-page {
	font-weight: bold;
}

/* Small menu. */
.widescreen {
	display: none;
}

.menu-toggle {
	border: 0;
	cursor: pointer;
	position: absolute;
	right: 0;
	top: 0;
	margin: 0;
	background-color: #e6d6cb;
	padding: .3em .5em .5em .9em;
	border-radius: 0 0 0 2.5em;
}

.toggled {
	top: 0;
	height: 100vh;
	transition: 300ms;
}

.main-navigation.toggled ul {
	display: block;
	background-color: #000;
}

.menu-toggle:hover {
	background-color: transparent;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

.navTrigger i {
	content: '';
	display: block;
	background: #941a19;
	width: 30px;
	height: 4px;
	margin: 5px 0;
	border-radius: 2px;
}

.has-children ul {
	display: block;
}

.smallscreen {
	text-align: center;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.primary {
	margin: 1em 1em 0;
	width: calc(100% - 2em);
	padding: 0;
}

.secondary {
	display: inline;
	width: 560px;
	margin: 0 1em;
	hyphens: auto;
	hyphenate-limit-chars: auto 7 7;
}

.content {
	width: 540px;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 20px;
}

.flex {
	display: flex;
	flex-wrap: wrap;
	padding: 0 1rem;
}
/*
.flex div {
	text-align: center;
}
*/
.flex div:first-child {
	width: 365px;
	text-align: center;
}

.flex div:nth-child(2) {
	width: 170px;
}

header {
	padding: 2rem 0;
	clear: both;
}

.clear {
	background: none;
	border: 0;
	clear: both;
	display: block;
	float: none;
	font-size: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	visibility: hidden;
	width: 0;
	height: 0;	
}

.home p {
	margin: 0.5em 0;
	text-align: center;
	line-height: 2;
	font-size: 1.3em;
}

.contact p {
	text-align: left;
	font-size: 10pt;
	font-style: italic;
	margin: 0;
	line-height: 1.4;
}

.external-link {
	margin-top: 1em;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
img {
	border-style: none;
	vertical-align: top;
	max-width: 100%;
}

.content > img {
	grid-column: span 2;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
}

/*--------------------------------------------------------------
# cWeb Admin Layer
--------------------------------------------------------------*/

input[type="text"], input[type="password"] {
	border: none;
	text-align: center;
	border-bottom: 1px solid var(--pomegrenade);
	min-width: 300px;
	margin: .3em 0;
}

input[type="submit"].button {
	background-color: var(--pomegrenade);
	border: none;
	font-size: 1em;
	padding: 1em 2em;
	margin: .5em 0 0;
}

.trumbowyg-editor table td, .trumbowyg-editor table th, .trumbowyg-editor table {
	border: 1px solid #ccc;
}
/*--------------------------------------------------------------
# Media Query
--------------------------------------------------------------*/
@media screen and (max-width: 767px) {
	.contact {
		margin-top: 2rem;
	}

}

@media screen and (min-width: 768px) {
	header .content {
		height: auto;
		padding: 0 1em;
	}

	.smallscreen, .menu-toggle {
		display: none;
	}

	.widescreen {
		display: block;
	}

	.main-navigation ul, .has-children:hover .sub-menu {
		display: block;
	}

	.main-navigation ul.menu {
		margin-bottom: 6em;
	}

	.content {
		width: 720px;
		padding: 0;
	}

	section {
		padding: 4rem 0;
	}

	.primary {
		margin: 1em 1em 0 1em;
		width: 250px;
		padding: 2rem 0;
	}

	.secondary {
		width: 780px;
	}

	h1 {
		font-size: 1.8em;
	}

	.home p {
		font-size: 1em;
	}

	.content {
		display: grid;
	}
}

@media screen and (min-width: 992px) {
	.content {
		width: 960px;
	}

	.half {
		width: 50%;
		padding: 0 15px;
		margin-bottom: 15px;
	}

	.third {
		width: 33.33%;
		float: left;
		padding: 0 15px;
	}

	.quad {
		width: 25%;
		padding: 0 15px;
	}
}

@media screen and (min-width: 1200px) {
	.content {
		width: 1140px;
	}

	.content {
		max-width: 1100px;
		grid-template-columns: 282px 818px;
	}
}
