/* -----------------------
shared
------------------------*/
body
{
	margin: 0;
	padding: 0;
	color: #000;
	background-color: #fff;
	font: 1rem/1 "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif; /* line ht was 1.2*/
}

h1,h2,h3,h4,h5,h6
{
	margin: 0 0 .5em;
	font-weight: 500;
	line-height: 1.2;
}

h1 { font-size: 2.25rem; } /* 40px was 2.25em 36px */
h2 { font-size: 1.75rem; } /* was 1.75em 28px */
h3 { font-size: 1.375rem; } /* was 1.375em 22px */
h4 { font-size: 1.125rem; } /* was 1.125em 18px */
h5 { font-size: 1rem; } /* was 1em 16px */
h6 { font-size: .875em; } /* was .875em 14px */

p
{
	margin: 0 0 1rem; /* margin was 1.5*/
	line-height: 1.5; /* line ht was 1.5*/
}

blockquote
{
	padding: 1em 2em;
	margin: 0 0 2em;
	border-left: 5px solid #eee;
}

hr
{
	height: 0;
	margin-top: 1em;
	margin-bottom: 2em;
	border: 0;
	border-top: 1px solid #ddd;
}

table
{
	background-color: transparent;
	border-spacing: 0;
	border-collapse: collapse;
	border-top: 1px solid #ddd;
	
}
.tableheader
{
	background-color: royalblue;
	color: white;
	font-weight: bold;
	border-spacing: 0;
	border-collapse: collapse;
	border-top: 1px solid #ddd;
}

.clearfix:after
{
	content: '';
	display: table;
	clear: both;
}
th, td
{
	padding: .5em 1em;
	vertical-align: top;
	text-align: right;
	border-bottom: 1px solid #ddd;
}

 a:link { color: black;
	text-decoration: none; 
}
a:visited { color: black; }
a:focus { color: black; /* #0000cc;  dark blue */ }
a:hover { color: black; } 
a:active { color: black; } 

A.class1 {color:red;}
A.class1:link  {text-decoration: none; color: red;}
A.class1:visited {text-decoration: none; color: red;}
A.class1:hover {text-decoration: underline; color: red;}
A.class1:active {text-decoration: none; color: red;}


A.class2 {color:blue;}
A.class2:link {text-decoration: none; color: blue;}
A.class2:visited {text-decoration: none; color: blue;}
A.class2:hover {text-decoration: underline; color: blue;}
A.class2:active {text-decoration: none; color: blue;}

/*<a href="http://www.google.com" class="class1">Google</a>
<a href="http://w.com" class="class2">w</a>

*/



/* -----------------------
Layout 
------------------------*/

/* -----------------------
index specific 
------------------------*/
.indexcolumns li {
    /*font-size: 16px;reset font size*/
	 
	margin-right: 2%;
	margin-bottom: 1%; 
	padding-top: 5px;
    display: inline-block;
	vertical-align: top;
    width: 31.0%;
    box-shadow: 0 0 5px #ddd;
    box-sizing: border-box;
    text-align: center;
}

ul.indexcolumns li img {
	max-width: 100%;
	height: auto;
	margin: 0 0 10px;
}
.catInfo {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: #666666;
	line-height:normal;
	font-weight: normal;
}

/* -----------------------
aside div always at bottom -- one column
------------------------*/
.unwrapcontainer {
    max-width: 80em; /* 1280 px */
	margin: auto;
}
.unwrapcontent
{
	overflow: hidden;
	/*padding: 1em; 1em 0em 1em trbl */
	
	background-color: #fff;
}
.threecol {
    margin: auto;
	
}

/* -----------------------
aside div and shared
------------------------*/
.container
{
	max-width: 70em; /* 1120 px */
	margin: 0 auto;
	
}

.header
{
	color: #fff;
	background: #fff;
	padding: .5em 1em; /*tb rl */
}

.header-heading { margin: 0; 
	color: #0000cc; /* dark blue */
	background: #fff;	
}

.nav-bar
{
	background: #fff;
	padding: 0;

}

.content
{
	overflow: hidden;
	padding: 1em; /*1em 0em 1em trbl */
	background-color: #fff;
}

.main, .aside
{
	margin-bottom: 1em;
	
}

.indexmain
/* replaces main for index page - only single column */
{
	width: 100%;
	margin-bottom: 1em;
}

.footer
{
	color: #000;
	background: #fff;
	padding: 0em 1em 0em 1em; /* trbl */
	margin: 0 auto; /*centers footer */
}

.linkgrey a {
	/* footer links */
	color: #A5A5A5;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	text-decoration: none;
}
.linkblack a {
	/* dark text links without adornment*/
	color: #000;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	text-decoration: none;
}
.linkblue a {
	/* dark text links without adornment*/
	color: blue;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	text-decoration: none;
}
.input[type="text"] {
    font-size:.875rem;
}
.searchfield
{
	text-align: right;
   /*float: right; padding-left: 2.5rem; */
}

.ppTxt {
	/*pages in search i.e. [1] 2 3 4  > Last >> of 80 pages */
	display: flex;
    /* optional. flex-wrap: wrap; only if you want the items to wrap */
    justify-content: center; /* for horizontal alignment */
    /* align-items: center; for vertical alignment */
    font: 1rem;
	text-decoration: none;
	color:#8b9dc3;
	
} 
}

/* -----------------------
nav
------------------------*/
	
	#nav
		{
			max-width: 100rem; /* 1280 was width: 60em; 1000 */
			font-family: 'Open Sans', sans-serif;
			font-weight: 400;
			/* position: absolute;
			top: 25%;
			left: 50%; /* ? */
			 /* margin-left: -30em;  margin-left: -30em; 30 480 */
			}

			#nav > a
			{
				display: none;
				
			}

			#nav li
			{
				position: relative;
				
			}
				#nav li a
				{
					color: #000000; /*menu text Dark gray #808080; */
					text-decoration: none;
					display: block;
				}
				#nav li a:hover
				{
					text-decoration: none;
					color: #0000cc; /* dark blue active dropdown choice   */
					/*background-color: #f0f8ff !important; alice blue hover dropdown choice; fff*/
				}
				#nav li a:active
				{
					text-decoration: none;
					color: #00008b; /* dark blue; */
					background-color: #f0f8ff !important; /*alice blue clicked dropdown choice; fff*/
				}

			#nav span:after
			{
				width: 0;
				height: 0;
				border: 0.313em solid transparent; /* 5 */
				border-bottom: none;
				border-top-color: royalblue; /* dropdown arrow colour */
				content: '';
				vertical-align: middle;
				display: inline-block;
				position: relative;
				right: -0.313em; /* 5 */
			}

			/* first level */

			#nav > ul
			{
				height: 3.75rem; /* was 2rem 3.75em 60 */
				background-color: #fff; /*e15a1f;*/
				margin-left: 0em;
				
			}
				#nav > ul > li
				{
					width: 15%; /* proportional width of menu items (6 = 16.6, 7 = 14.2) */
					height: 100%;
					float: left;
					list-style-type: none; /* along with margins removes bullets */
					margin: 0; /* */
				
					padding: 0;
				}
					#nav > ul > li > a
					{
						height: 100%;
						font-size: 1rem; /*1.5rem 24 */
						line-height: 1; /* 60 (24) */
						text-align: left;
					}
						#nav > ul > li:not( :last-child ) > a
						{
							/* border-right: 1px solid #cc470d; vertical line between nav btns*/
						}
						#nav > ul > li:hover > a,
						#nav > ul:not( :hover ) > li.active > a
						{
							background-color: #fff; /* #cc470d; */
						}


				/* second level */

				#nav li ul
				{
					background-color: #f9f9f9;  /* bg colour for dropdown very light grey ) */
					display: none;
					position: absolute;
					top: 100%;
					list-style-type: none; /* along with margins removes bullets */
					margin: 0;
					padding: 0;
					box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    				z-index: 100;
					width: 300px
					/*line-height:.5%; */
				}
					#nav li:hover ul
					{
						display: block;
						left: 0;
						right: 0;
					}
						#nav li:not( :first-child ):hover ul
						{
							left: -1px;
						}
						#nav li ul a
						{
							font-size: 1rem; /* was 1.25rem 20 */
							border-top: 1px solid #F0F8FF; /* #e15a1f; * horizontal lines between dropdowns */
							padding: 0.75em; /* 15 (20) */
						}
							#nav li ul li a:hover,
							#nav li ul:not( :hover ) li.active a
							{
								
								color: #0000cc; /* dark blue menu text active dropdown choice; */ /* replaced background-color: #f0f8ff alice blue active dropdown choice; */
							}
		
/* -----------------------

------------------------*/

.img-responsive { width: 100%;
max-width: 820px; /* max for header pic */
height: auto; 
}
.medimg-responsive { width: 100%;
max-width: 440px; /* max for header pic */
height: auto; 
}
.headerimg-responsive { width: 100%;
max-width: 738px; /* max for header pic */
height: auto; 
}
.btn
{
	color: #fff !important;
	background-color: royalblue;
	border-color: #222;
	display: inline-block;
	padding: .5em 1em;
	margin-bottom: 0;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: .2em;
	text-decoration: none;
}

.btn:hover
{
	color: #fff !important;
	background-color: royalblue;
}

.btn:focus
{
	color: #fff !important;
	background-color: DarkBlue;
}

.btn:active
{
	color: #fff !important;
	background-color: blue;
}

.table
{
	width: 100%;
	max-width: 100%;
	margin-bottom: 20px;
}

.list-unstyled
{
	padding-left: 0;
	list-style: none;
	font-size: 1rem; /* was .875rem; */
	font-family: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
}

.list-inline
{
	padding-left: 0;
	margin-left: -5px;
	list-style: none;
}

.list-inline > li
{
	display: inline-block;
	padding-right: 5px;
	padding-left: 5px;
}
/* -----------------------
Grids 
------------------------*/
ul.grid-nav {
	list-style: none;
	font-size: .85rem;
	font-weight: 200;
	text-align: center;
}
ul.grid-nav li {
	display: inline-block;
}
ul.grid-nav li a {
	display: inline-block;
	background: #999;
	color: #fff;
	padding: 1em 2em; /* tb rl was 1em 2em;*/ 
	text-decoration: none;
	border-radius: 4px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	z-index: 100;
	
}
ul.grid-nav li a:hover {
	background: #7b0;
}
ul.grid-nav li a.active {
	background: #333;
}
.grid-container {
	display: none;
}
/* ----- Image grids ----- */

/* category page boxes differ in height */
ul.rigcat {
	list-style: none;
	font-size: 0px;
	margin-left: -2.5%; /* should match li left margin was -2.5%*/
}
ul.rigcat li {
	display: inline-block;
	padding: .5em;
	margin: 0 2.5% 2.5% 0; /* trbl was 0 2.5% 2.5% 0  */ 
	background: #fff;
	border: 1px solid #ddd;
	font-size: 1rem;
	vertical-align: top;
	box-shadow: 0 0 5px #ddd;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	min-height: 17rem; /* fudge to keep box heights equal */
	max-width: 12.5rem;

}

/* search page */
ul.rig {
	list-style: none;
	font-size: 0px;
	margin-left: -2.5%; /* should match li left margin was -2.5%*/
}

ul.rig li {
	display: inline-block;
	padding: .5em;
	margin: 0 2.5% 2.5% 0; /* trbl was 0 2.5% 2.5% 0  */ 
	background: #fff;
	border: 1px solid #ddd;
	font-size: 1rem;
	vertical-align: top;
	box-shadow: 0 0 5px #ddd;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	min-height: 24rem; /* fudge to keep box heights equal */

}

ul.rig li img {
	max-width: 100%;
	height: auto;
	margin: 0 0 10px;
}
ul.rig li h3 {
	margin: 0 0 5px;
}
ul.rig li p {
	font-size: .9em;
	line-height: 1.5em;
	color: #999;
}
/* class for 2 columns */
ul.rig.columns-2 li {
	width: 47.5%; /* this value + 2.5 should = 50% */
}
/* class for 3 columns */
ul.rig.columns-3 li {
	width: 30.83%; /* this value + 2.5 should = 33% */
}
/* class for 4 columns */
ul.rig.columns-4 li {
	width: 22.5%; /* this value + 2.5 should = 25% */
}

/* -----------------------
responsive
------------------------*/

@media (min-width: 70em) /*1120 */
{
	.header { padding: 0.5em 3em; } 
	.nav-bar { padding: 1em 0em; } /* tb rl was 1em 3em;*/ 
	.content { padding: 0em 1em 0em 0em; /* trbl was 2em 3em;*/ }
	.container {
		width: auto;
		padding: 0; /* tb rl was 0 .5em;*/ 
		}
		.nav li
	{
		display: inline;
		margin: 0 1em 0 0;
		/* right: 20% */
	}
	
	
	
	#nav
	{
		max-width: 80rem; /* ;* 1280 was width: 60em; 1000 */
		position: static;
		width: auto;
		top: auto;
		left: 0px;
		margin: 0 auto; /*centers menu */

				
			}
	.nav a
	{
		display: inline;
		padding: 0;
		border-bottom: 0;
		/* margin-left: 10%; */
	}
	#nav > ul
			{
				height: 2rem; /* was 3.75em 60 */
				background-color: #fff; /*e15a1f;*/
				 /*margin-left: 20%; xxx horiz pos menubar */
				margin-left: 10%;
			}
			#nav > ul > li
				{
					width: 10%; /* proportional width of menu items (6 = 16.6) */
					height: 100%;
					float: left;
					list-style-type: none; /* along with margins removes bullets */
					margin: 0; /* */
					padding: 0;
					z-index: 100;
					
				}
	.main
	{
		float: left;
		width: 60%; /* was width: 65%; */
		margin-right: 5%;
		margin-bottom: 1em;
		
	}

	.aside
	{
		float: left;
		width: 35%; /* was width: 30%; */
		margin-bottom: 1em;
	}

	.footer { padding: 2em 3em; 
		margin: 0 auto; /*centers footer */
	}
	
	
}
@media (max-width: 70em) /*960 */
{
	
		#nav > ul{
				height: 2rem; /* was 3.75em 60 */
				 /*background-color: #fff;e15a1f;*/
				margin-left: 10%; /* horiz re-pos menubar now right column goes under*/
				
			}
			#nav > ul > li
				{
					width: 10%; /* proportional width of menu items (6 = 16.6) */
					height: 100%;
					float: left;
					list-style-type: none; /* along with margins removes bullets */
					margin: 0; /* */
				
					padding: 0;
				}
}
				
@media only screen and ( max-width: 60em ) /* 800 was 40 640 */
		/* menu is  full width block for mobile */
		/* down to two pic columns */
		{
			html
			{
				font-size: 100%; /* was 75% 12 */
			}
			
			.main
				{
					float: left;
					width: 100%; /* wide width: 60%; ordered list (*aside) now goes to bottom*/
					margin-right: 5%;
					margin-bottom: 1em;
				}
			.indexcontainer {
				margin: 1em auto 0 auto; /* lower slideshow below menu dropdown */
				}
				
				
			ul.rig {
				margin-left: 0;
			}
			ul.rig li {
				width: 40% !important; /* double column over-ride all li styles */
				/* margin: 0 0 20px; */
				display: inline-block;
				padding: 10px;
				margin: 0 0 2.5% 2.5%;
				background: #fff;
				border: 1px solid #ddd;
				font-size: 16px;
				font-size: 1rem;
				vertical-align: top;
				box-shadow: 0 0 5px #ddd;
				box-sizing: border-box;
				-moz-box-sizing: border-box;
				-webkit-box-sizing: border-box;
				
			}
			ul.indexcolumns li {
				width: 45% !important; /* double column over-ride all li styles */
				/* margin: 0 0 20px; */
				display: inline-block;
				padding: 10px;
				margin: 0 0 2.5% 2.5%;
				background: #fff;
				border: 1px solid #ddd;
				font-size: 16px;
				font-size: 1rem;
				vertical-align: top;
				box-shadow: 0 0 5px #ddd;
				box-sizing: border-box;
				-moz-box-sizing: border-box;
				-webkit-box-sizing: border-box;
			}

			
				#nav > a /* css mobile nav icon */
				{
					width: 3.125em; /* 50 */
					height: 3.125rem; /* was 3.125em 50 */
					/*padding-bottom: 1em; space below icon but no effect on dropdown */
					text-align: left;
					text-indent: -9999px;
					background-color: royalblue; /* #C5DFFA; mobile nav icon was alice blue f0f8ff; */
					position: relative;
				}
					#nav > a:before,
					#nav > a:after
					{
						position: absolute;
						border: 2px solid #fff;
						top: 35%;
						left: 25%;
						right: 25%;
						content: '';
					}
					#nav > a:after
					{
						top: 60%;
					}

				#nav:not( :target ) > a:first-of-type,
				#nav:target > a:last-of-type
				{
					display: block;
					
				}


			/* first level */
				
			#nav > ul
			{
				height: auto;
				display: none;
				position: absolute;
				left: 0;
				right: 0;
				margin-left: 0;
				/*background-color: #f9f9f9;   bg colour for top level mobile stacked menu background very light grey  */
				
			}
				#nav:target > ul
				{
					display: block; 
					z-index: 100;
					
				}
				#nav > ul > li
				{
					width: 100%;
					float: none;
					
				}
				
				#nav > ul > li > a
				{
					height: auto;
					line-height: 2; /* top level mobile stacked menu */
					text-align: left;
					padding: 0 0.833em; /* 20 (24)  */
				}
					#nav > ul > li:not( :last-child ) > a
					{
						border-right: none;
						border-bottom: 1px solid #F0F8FF; /*  */
					}


				/* second level */

				#nav li ul
				{
					position: static;
					padding: 1.25em; /* 20 */
					padding-top: 0;
				}
			
		}


@media only screen and ( max-width: 30em ) /* 480 */
{
    #nav
    {
        position: relative;
    }
        #nav > a
        {
        }
        #nav:not( :target ) > a:first-of-type,
        #nav:target > a:last-of-type
        {
            display: block;
        }
 
    /* first level */
 
    #nav > ul
    {
        height: auto;
        display: none;
        position: absolute;
        left: 0;
        right: 0;
    }
        #nav:target > ul
        {
            display: block;
			z-index: 100;
        }
        #nav > ul > li
        {
            width: 100%;
            float: none;
        }
 
    /* second level */
 
    #nav li ul
    {
        position: static;
		
	
    }
	ul.grid-nav li {
		display: block;
		margin: 0 0 5px;
	}
	ul.grid-nav li a {
		display: block;
	}
	ul.rig {
		margin-left: 0;
	}
	ul.rig li {
		width: 100% !important; /* single column over-ride all li styles */
		margin: 0 0 20px;  /* t rl b */
	}
	ul.rigcat li {
		width: 100% !important; /* single column over-ride all li styles */
		max-width: 400px;
		margin: 0 0 20px;  /* t rl b */
	}
	ul.indexcolumns li {
		width: 100% !important; /* single column over-ride all li styles */
		margin: 0 1rem 1rem 0;  /* trbl */
	}
}

.redtext {
	color: #F00;
	font-size: 2.25rem;
}
.linkblue {
	color: #00F;
}
