*
{
	padding: 0;
	margin: 0;
	border: 0;
	box-sizing: border-box;
}
/* HTML5 tags - for fallback on browsers that don't deal with them yet */
header, section, footer, main,
aside, nav, article, figure 
{
  display: block;
}

body
{
	background:	#F5F4EF;	/* page background */
	color: #000305;
	font-size: 16px; /* Base font size: 14px */
 /*   font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; */
	font-family: "Open Sans",Arial,sans-serif;
    line-height: 1.429;
	margin: 0 auto;
    padding: 0;
    text-align: left;
}

footer
{
	background: #F5F4EF;
	font-size: 0.75em;
	padding: 0.5em 0.1em .5em 0.1em;
	margin: 0 auto;
	margin-top: 1.2em;
	text-align: center;
	border-top: solid #F7781E 1px;	/* mangOH orange */
}

/* footer links */
footer a:link, footer a:visited
{
	color: #F7781E;	/* mangOH orange */
	font-weight: 600;
	text-decoration: none;
}
footer a:hover, footer a:active 
{
	color: #87B527;	/* mangOH Green */
	font-weight: 600;
	text-decoration: none;
}


/* Headings */
h1 {font-size: 1.714em} 	/* 24px */
h2 {font-size: 1.571em} 	/* 22px */
h3 {font-size: 1.429em} 	/* 20px */
h4 {font-size: 1.286em} 	/* 18px */
h5 {font-size: 1.143em}  /* 16px */
h6 {font-size: 1em} 		/* 14px */
 
h1, h2, h3, h4, h5, h6 
{
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: .8em;
}


/* Paragraph layout */
p { margin-top: 0.55em; margin-bottom: 0.55em; }
* p:last-child { margin-bottom: 0; padding-bottom: 0;}

footer > p { margin-top: 0em; margin-bottom: 0em; }

code, kbd, pre, samp
{
  font-family: monospace,monospace;
  font-size: 1em;
}

pre
{
  margin-top: 0px;
  margin-bottom: 0px;
  font-family: Consolas,"Liberation Mono",Menlo,Courier,monospace;
  font-style: normal;
  font-weight: normal;
  font-size: 1.2em;
  line-height: normal;
  font-size-adjust: none;
  font-stretch: normal;
  white-space: pre-wrap;
}

table, th, td
{
	border: 1px solid black;;
}
th, td
{
	padding: 0.25em;
}

.callout-title
{
	text-transform: uppercase;
	font-weight: bold;
}

/* pandoc class .footnotes */
.footnotes hr
{
	width: 80%;
	height: 1px;
	background: #87B527;	/* mangOH Green */
	margin: 1em auto;
}

/* This is used to 'end' a tip/note/warning (h6) section */
.endofcallout h1
{
	display: none;
}

/* Flexbox page layout */

/**
 * Modified Flexbox 'three column layout + header & footer' layout from: https://philipwalton.github.io/solved-by-flexbox/demos/holy-grail/
 *
 * L1. Avoid the IE 10-11 `min-height` bug.
 * L2. Set `flex-shrink` to `0` to prevent some browsers from
 *    letting these items shrink to smaller than their content's default
 *    minimum size. See http://bit.ly/1Mn35US for details.
 * L3. Use `%` instead of `vh` since `vh` is buggy in older mobile Safari.
 */

.page
{
	display: flex;
	flex-direction: column;
	height: 100%; /* L1, L3 */
	height: 100vh;
	padding: 0.2em;
}

.page-header, .page-footer 
{
  flex: none; /* L2 */
}

.page-header
{
}

.page-header img
{
	display: block;
	margin: 0 auto;
}

.page-header-nav-menu
{
	width: 100%;
	background: #F7781E;	/* mangOH orange */
	display: block;
}
/* flexbox nav menu */

.page-header-nav-menu ul
{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	padding: 0;
}

.page-header-nav-menu ul li
{
	display: flex;
	flex: 0 1 auto;
	display: block;
	text-align: center;
	text-decoration: none;
}

.page-header-nav-menu ul li a
{
	display: block;
	text-decoration: none;
	padding: .2em 1em;
	font-size: 1.2em;
	font-weight: 600;
}

.page-header-nav-menu ul li a:link, .page-header-nav-menu ul li a:visited
{
	color: white;
	font-weight: 600;
	padding: .2em 1em;
	text-decoration: none;
}
.page-header-nav-menu ul li a:hover, .page-header-nav-menu ul li a:active 
{
	background-color: #87B527;	/* mangOH Green */
	color: #fff;
	text-decoration: none;
	text-shadow: 1px 1px 1px #333; 
}
/* end flexbox nav menu */

.page-content, .page-content-body 
{
	display: flex;
	flex-direction: column;
}

.page-content 
{
  	flex: 1 0 auto; /* 2 */
	padding: 0.5em 0;
}

.page-content-body 
{
  	flex: 1;
}

.page-content-nav
{
	flex: 0 0 12em;
	border-radius: 5px;
	border: 1px solid #F7781E;	/* mangOH orange */
	margin-bottom: 0.5em;
	padding: 0.5em;
}

/* configure nav menu as flexbox layout */
.page-content-nav h1
{
	color:  #87B527;	/* mangOH Green */
	font-size: 1.1em;
	font-weight: bold;
	display: block;
	text-align: center;
	padding-top: 0.5em;
}

.page-content-nav ul
{
	display: flex;
	flex-direction: column;
	padding: 0 0 0 .5em;
	margin: 0;
}

.page-content-nav ul li
{
	display: flex;
	flex: 0 1 auto;
	display: block;
	text-align: left;
	text-decoration: none;
	/* these commands provide indent for wrapped lines */
	list-style-type: disc;
	list-style-position: inside;
	text-indent: -0.5em;
	padding-left: 0.5em;
}

.page-content-nav ul li a
{
	display: block;
	text-decoration: none;
/*	padding: 0.2em .5em; */
}

.page-content-nav ul li a:link, .page-content-nav ul li a:visited
{
	color:  #87B527;	/* mangOH Green */
	padding: 0.2em 0.9em;
	text-decoration: none;
}

.page-content-nav ul li a:hover, .page-content-nav ul li a:active
{
	background-color: #F7781E;	/* mangOH orange */
	color: white;
	text-decoration: none;
}

/* style the 'more' link in the page-navigation menu */
.page-content-nav p > a.more
{
	text-decoration: none;
	font-size: 0.8em;
	padding: 0 1em 1em 2em;
	display: block;
	text-align: right;
}

/* end flexbox page-nav layout */

/* style body text lists */
.page-content-body ul, .page-content-body ol
{
	margin-left: 2.2em;
}

.page-content-body ul
{
	list-style: disc outside none;
}

/* stule a description list (markdown : ) */
.page-content-body dl
{
	margin-top: 0.5em;
  display: block;
}

.page-content-body dt
{
	margin-bottom: 0;
	padding-bottom: 0;
}

.page-content-body dd
{
	padding-left: 2em;
}


.page-content-body h1
{
	color: #87B527;	/* mangOH Green */
	margin: 1.05em 0 0 0;
	padding: 0;
	font-size: 2.4em;
	font-weight: 700;
}

/* no margin for first header in page 
 * Only selecting the H1 element of the first section with class .level1
 */
.page-content-body .level1:first-of-type h1
{
	margin-top: 0;
}

.page-content-body h2
{
	color: #87B527;	/* mangOH Green */
	margin: 0.75em 0 0 0;
	padding: 0;
	font-weight: 700;
}

.page-content-body h3
{
	color: #87B527;	/* mangOH Green */
	margin: 0.75em 0 0 0;
	padding: 0;
	font-weight: 700;
}

.page-content-body pre
{
  padding: 1em;
  overflow-x: auto;
  overflow-y: auto;
  font-size: 80%;
  line-height: 1.25;
  background-color: rgba(147, 128, 108, 0.1);	/* background colour for <pre><code> highlighting */
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}

.page-content-body-title
{
	font-size: 3em;
	font-weight: 800;
	color: #87B527;	/* mangOH Green */
	padding: 0;
}
.page-content-body-date
{
	font-size: 0.85em;
	color: grey;
}
.page-content-body-hr
{
	border: 0;
	height: 0; 
	border-top: 1px solid rgba(0, 0, 0, 0.1); 
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	text-align:left;
	margin-left:0;
	width: 80%;
}

/* Various markups */

/* note, tip, warning boxes */

.page-content-body .tip, .page-content-body .note, .page-content-body .warning
{
	margin: 1em 0;
	padding: 1em;
	font-size: 100%;
	border-radius: 3px;
	font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.page-content-body .tip h6, .page-content-body .note h6, .page-content-body .warning h6
{
	display: inline;
	font-weight: bolder;
	text-transform: uppercase;
}

/* force the first paragraph element to follow on the same line as the 'H6' element - other paragraphs will be as per normal */
.page-content-body .tip  p:first-of-type, .page-content-body .note  p:first-of-type, .page-content-body .warning  p:first-of-type
{
	display: inline;
}


/* this is a 'tip' box - attached to a section with the class 'tip' */
.page-content-body .tip
{
	background-color: rgba( 60, 179,113, 0.1 ); /* #3CB371  mediumseagreen; */
	border: 1px solid darkgreen;
	color: green;
}

/* this is a 'note' box - attached to a section with the class 'note' */
.page-content-body .note
{
	background-color: rgba( 65,105,225, 0.1 ); /* #4169E1  royalblue */
	border: 1px solid blue;
	color: blue;
}

/* this is a 'warning' box - attached to a section with the class 'warning' */
.page-content-body .warning
{
	background-color: rgba( 220,20,60, 0.1); /* #DC143C crimson; */
	border: 1px solid red;
	color: red;
}

/* special class to hide content from display (required when breaking out of 'boxes') */
.hide
{
	display: none;
}

/* these are for formatting the list of pages displayed in the index pages */
.pagelist
{
	display: flex;
	flex-flow: column;
}

/* a H1 element is used to mark the start of the section - do not show the content */
.pagelist > h1
{
	display: none;
}

/* a section holds all the information about a page - title/abstract/more-link */
.pagelist > section
{
	flex: 0 0 auto;
	background-color: #EBE8E2; /*rgba(147, 128, 108, 0.1); */
	border-radius: 3px;
	margin-top: 1em;
	padding: .8em;
	width: 100%;
}

.pagelist > section > h2
{
  font-size: 1.1em;
	font-weight: bold;
	padding: 0;
	margin: 0 0 0.5em 0;
}

.pagelist > section > p
{
	display: inline;
	padding: 0;
	margin:0;
	font-size: 0.8em;
}


/* The media overrides **HAVE** to be at the bottom of the CSS file (so they can override!) */
@media ( min-width: 768px ) 
{
	.page
	{
		width: 768px;
		margin: 0 auto;
		padding: 0;
	}
	.page-content
	{
		flex-direction: row;
	}
	.page-content-body
	{
		flex: 1;
		order: -1;
		margin: 0;
		padding-right: 0.5em;
	}
	.page-content-nav
	{
		flex: 0 0 12em;
		font-size: 0.8em;
		margin: 0;
		border: 0;
	}
	
	.page-content-nav section
	{
		border: 1px solid #F7781E;	/* mangOH orange */
		border-radius: 5px;
	}
	.page-content-nav h1
	{
		font-size: 1.2em;	
	}
	
	.pagelist
	{
		flex-flow: row wrap;
		justify-content: space-around;
	}
	
	.pagelist > section
	{
		flex: 0 0 auto;
	}
}

@media ( min-width: 980px ) 
{
	.page
	{
		width: 979px;
		margin: 0 auto;
		padding: 0;
	}
	.page-content
	{
		flex-direction: row;
	}
	.page-content-body
	{
		flex: 1;
		order: -1;
		margin: 0;
		padding-right: 0.5em;
	}
	.page-content-nav
	{
		flex: 0 0 14em;
		font-size: 0.9em;
		border: 0;
		margin:0;
	}
	
	.page-content-nav section
	{
		border: 1px solid #F7781E;	/* mangOH orange */
		border-radius: 5px;
	}

	.page-content-nav h1
	{
		font-size: 1.5em;	
	}
	
	.pagelist > section
	{
		width: 48%;
	}
}
