/*
Theme Name: su3a
This theme is based on a combination of the BlankSlate theme and the MyKnowledgebase theme.
It does not allow for posts or comments or searching.
su3a is distributed under the terms of the GNU GPL
*/

html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,b,strong,i,em,abbr,
acronym,address,big,cite,code,del,dfn,img,ins,kbd,q,s,samp,small,strike,strong,
sub,sup,tt,var,u,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,
tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,
header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,
video{font-size:100%;font:inherit;padding:0;border:0;margin:0;vertical-align:baseline}
body{line-height:1}
ol,ul{list-style:none}
b,strong{font-weight:bold}
i,em{font-style:italic}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:'';content:none;}
table{border-collapse:collapse;border-spacing:0;}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block;}
.clear{clear:both;}
.sticky{}.bypostauthor{}.wp-caption{}.wp-caption-text{}.gallery-caption{}.alignright{}.alignleft{}.aligncenter{}.screen-reader-text{clip:rect(0.07em, 0.07em, 0.07em, 0.07em);position:absolute !important;}
/* HEADER*/
#header {width:100%; clear:both; float:left; padding:1.25em 0; margin:1em;}
/*Declare colour variables*/
:root {
--mainblue: #092f87;
--mainyellow: #fec524;
/*--lightblue: #395fb7;*/
}

/* HEADER LOGO */
.logo {width:15%; float:left; margin-right:1.5em;}
.logo h1 {margin:0;}
.logo h1 a:hover {text-decoration:none; color:#333;}
.logo h2 {margin:0; font-style:italic; font-size:1.20em;}


/* HEADER MENU */
.nav-head {width:70%; float:right; margin:0 0 0; text-align:center;}
.nav-head {background-color: var(--mainblue); font-size: 1.0em;}
.nav-head ul {padding:1.25em; margin:0; z-index:999; list-style:none;}
.nav-head ul li {display:inline-block; position:relative; padding:0; margin:0 0 0 1.2em;}
.nav-head ul li a {font-size:1.25em; color:var(--mainyellow);}
.nav-head ul li a {text-decoration:none; padding:0 0 0.25em; display:inline-block;}
.nav-head ul li a:hover {text-decoration:underline;}
.nav-head .current-menu-item > a, .nav-head .current-menu-parent > a {text-decoration:underline;}


/* HEADER SUBMENU */
.nav-head ul ul {display:none; position:absolute; top:100%;}
.nav-head ul ul ul {display:none; position:absolute; top:30%; left:100%;}
.nav-head ul ul a {width:12em; padding:0.25em 0.7em; background:rgba(00,83,155,0.8); color:var(--mainyellow); text-align:left;}
.nav-head ul li:hover > ul {display:block;}
.nav-head ul li ul li {margin:0;}

/*HEADER MOBILE MENU */
.mobile-nav-container {display:none;}
.mobile-nav-toggle {display:none;}
.mobile-nav {display:none;}


/* BODY AND CONTAINER */
body {background:#fff; color:#333; font-family:'Open Sans', sans-serif; font-size:0.9em; line-height:1.5em; text-align:left; word-wrap:break-word;
}
#container {max-width:125em; position:relative; margin:0 auto 0; padding:0 1.25em;}
#container:after {content:''; display:block; height:0; clear:both;}

/* MAIN CONTENT AREA */
#content {width:75%; float:left; padding:0.7em;}
#content-full {width:95%; float:left; padding:0.7em;margin:0em 1.25em;}

/* SIDEBAR AND WIDGETS */
#sidebar {width:20%; float:right; }
.widget {color: var(--mainblue);}
.widgettitle {margin:0 0 0.7em; font-size:1.20em; font-weight: bold; color: var(--mainblue);}

/* MOBILE */

@media screen and (max-width:45em) {
	/* BODY AND CONTAINER */
	body {font-size:0.9em; line-height:1.5em;}
	body.custom-background {background-image:none !important;}
	#container {width:98%; padding:0.7em 1% 0;}

	/* MAIN CONTENT AREA */
	#content, #content-full {width:100%; clear:both; float:left; padding:0 0 1.25em;}

	/* HEADER FIRST */
	#header-first {padding:0;}

	/* HEADER FIRST LOGO */
	.logo {width:100%; clear:both; padding:0.7em 0 1.25em; text-align:center;}
	.logo h1 {font-size:2.25em;}
	.logo h2 {font-size:1.45em;}

	/* HEADER FIRST MENU */
	.nav-head {display:none;}

	/* HEADER FIRST MOBILE MENU */
	.mobile-nav-container {clear:both; display:block;}
	.mobile-nav-toggle {clear:both; display:block; margin:0 0 1.25em; padding:0.7em 2%; background:var(--mainblue); color:var(--mainyellow); cursor:pointer;}
	.mobile-nav-toggle:hover {color:#eee;}
	.mobile-nav {clear:both; padding:0.7em 1.25em 0.7em 0; margin:0 0.25em 1.25em; background:var(--mainyellow); border:0.125em solid #eee;}
	.mobile-nav .subnav-toggle {float:right; display:block; margin:-3em 0 0; padding:0.125em 1em;}
	.mobile-nav ul {list-style:none;}
	.mobile-nav ul li a {display:block; margin:0 0 0.7em 0; padding:0 0 0.75em; border-bottom:0.125em dotted #eee; text-decoration:none;}
	.mobile-nav ul li a:hover {color:#333;}



	/* HEADINGS */
	.post-title, .page-title, .post-title-single {font-size:1.80em;}
	.widgettitle, .searchbar-title, .comments-title, .comment-reply-title, .no-comments {font-size:1.45em;}

	/* IMAGES */
	.wp-post-image, .single-image {width:50%; float:left; margin:0.3em 0.5em 0.3em 0;}

	/* SIDEBAR AND WIDGETS */
	#sidebar {width:100%; clear:both; float:left; padding:0;}
	.widgettitle {padding:0.25em 3%; background:#08a0ff; color:#fff;}

	/* FOOTER */
	#footer {width:94%; padding:0.7em 3%;}
}
/* end of mobile settings*/

/* HEADINGS */
h1 {clear:both; margin:0 0 0.7em; font-size:2.25em; font-weight: bold;line-height:1.25em; color: var(--mainblue);}
h2 {clear:both; margin:0 0 0.7em; font-size:1.80em; font-weight: bold;line-height:1.25em; color: var(--mainblue);}
h3 {clear:both; margin:0 0 0.7em; font-size:1.45em; font-weight: bold;line-height:1.5em; color: var(--mainblue);}
h4 {clear:both; margin:0 0 0.7em; font-size:1.20em; font-weight: bold;line-height:1.5em; color: var(--mainblue);}
h5 {clear:both; margin:0 0 0.7em; font-size:1em; line-height:1.5em;}
h6 {clear:both; margin:0 0 0.7em; font-size:0.80em; line-height:2em;}

/*The next are for keyboard only users and screen readers - not fully implemented yet*/

.skip-link
{
    position: absolute;
    top: 0;
    z-index: 9999;
    right: 100%;
    padding: 5px;
    padding: 0.5rem;
    font-size: 20px;
    font-size: 2rem;
    color: #000;
    background: #FFF;
}

.admin-bar .skip-link
{
    top: 32px;
}

.skip-link:focus
{
    right: auto;
}
/* end of keyboard only helpers*/

.site-content {
	/*padding: 2.5em 0 0;*/
}

/* standard link settings*/
.link_underlined {
	font-family: 'Open Sans', sans-serif;
	text-decoration: underline;
	border-bottom-width: 0.07em;
	border-bottom-style: solid;
}

a{
	font-family: 'Open Sans', sans-serif;
	color: var(--mainblue);
	}


/*list settings*/
ul {list-style:none;}
ol {list-style:decimal; margin:0 0 0.7em; color: var(--mainblue);}
li {margin:0 0 0 1.25em; color: var(--mainblue);}
li > ul, li > ol {margin:0;}
dl {margin:0 0 1.25em;}
dt {font-weight:bold;}
dd {margin:0 0 0 1.25em;}



/*Are the following used? First should be kept but second is not needed, given the above.*/
.ulist {list-style:disc; margin:0 1.25em 1.25em;}
.olist {list-style:decimal; margin:0 1.25em 0.7em;}

/*The following are old su3a styles - may not be used.*/
blockquote, q {
	quotes:none;
}

blockquote:before, blockquote:after, q:before, q:after {
	content:'';
	content:none;
}



/* below is css added by crj*/
/*Media changes styles are kept together - except for the old styles which are at the end. I hope these can be removed in due course.*/

/* style for tabs when wanted*/
#Tabs 
.tabs{
	display:block;
	clear:both !important;
}
.tabs ul 
{
display:block;
margin:0;
padding:0;
list-style-type:none;
overflow:hidden;
}

ul.tabs li {
display:inline-block;
margin:0;
padding:0;
clear:none;
float:left;
}

ul.tabs li a {
display:block;
margin-left:6px;
padding:4px;
background:var(--mainblue);
border-bottom:5px solid #F0F0F0;
-moz-border-radius-topleft:4px;
border-top-left-radius:4px;
-moz-border-radius-topright:4px;
border-top-right-radius:4px;
/* end of rounded borders
*/
color:var(--mainyellow);
text-decoration:none;
font-weight:bold;
}

ul.tabs li a:hover {
text-decoration:underline; /* a very simple effect when hovering the mouse on tab*/
}

ul.tabs li a[aria-current="page"] {
      text-decoration: underline;
}

button[class="tab"] {
display:block;
margin-left:6px;
padding:4px;
background:var(--mainblue);
border-color:var(--mainblue);
border-bottom:5px solid #F0F0F0;
-moz-border-radius-topleft:4px;
border-top-left-radius:4px;
-moz-border-radius-topright:4px;
border-top-right-radius:4px;
/* end of rounded borders
*/
color:var(--mainyellow);
text-decoration:none;
font-weight:bold;
}

button[class="tab"] :hover {
text-decoration:underline; /* a very simple effect when hovering the mouse on tab*/
}
@media (max-width:45em){
 ul.tabs li{
		width:95%;
	}	
}

/*Image styles*/
.gallery img {border-radius: 10%; height: auto; /* Make sure images are scaled correctly. */
	max-width: 100%; /* Adhere to container width. */}
.gallery dl, .gallery dt, .gallery dd {margin:0; padding:0.05em;border-radius:10%;}
.gallery-caption {max-width:100%; text-align:center; font-style:italic;}

/* This gives all images rounded corners*/
img{
    border-radius: 10%;
    height: auto; /* Make sure images are scaled correctly. */
	max-width: 100%; /* Adhere to container width. */
    -moz-border-radius: 10%;
    -webkit-border-radius: 10%;
    -o-border-radius: 10%;
}

/* for when we don't want rounded corners*/
.square-image {
  border-radius: 0%;
    -moz-border-radius: 0%;
    -webkit-border-radius: 0%;
    -o-border-radius: 0%;
}
/*useful styles*/
.highlight{
	background-color: yellow;
	width: 100%;
}
/* default is usually too small*/
.textinput{
	width:100%;
	min-width:18em;
	background-color:rgba(00,83,155,0.1);
}
/*for inputs that are not text*/
.paleblue 
{
background:rgba(00,83,155,0.1);
}
/*for archived groups*/
.arc
{
	background-color: LightGrey;
}

/*Various containers*/
.box {
	border: thin solid #003;
} 
.bluebox{
	border-radius: 10%;
	padding:0.7em;
	background-color:var(--mainblue);
	color: var(--mainyellow);
}


/*style for Groups by letter page*/
.letters{
	display: grid;
  grid-template-columns: repeat(13, 5%);
  grid-row-gap: 10px;
  grid-column-gap: 10px;
  width: 100%;
  align-items: center;
	justify-content: center;
}
/*grid styles*/
.grid3 {
  display: grid;
  grid-template-columns: 25% 30% 45%;
  grid-row-gap: 10px;
  grid-column-gap: 10px;
  justify-content: center;
}
.grid2 {
  display: grid;
  grid-template-columns: 45% 45%;
  grid-row-gap: 10px;
  grid-column-gap: 10px;
  justify-content: center;
}
@media (max-width:45em){
.grid3{
grid-template-columns:100%;
}
.grid2{
grid-template-columns:100%;
}
}
.myselect{
	padding:.5em;
	color: var(--mainblue);
	list-style:none;
	overflow:auto;
	border-style: ridge ridge ridge ridge;
	border-width: medium;
	border-color: yellow;
}
div {
	color: var(--mainblue);
	padding:0.2em;
	margin-right:0.5em;
	margin-left:0.5em;
}
table {
	color: var(--mainblue);
    width: 95% !important;
    border-collapse: collapse;
    table-layout: auto;
   }


/*shades alternate rows*/
 .stripe tr:nth-of-type(odd) { 
  background: rgba(00,83,155,0.1); 
}

.noborder{
	border:none;
}

.noborder tr{
	border:none;
}

td {
    border: 0.1em solid var(--mainblue);
    padding: 0.25em;
}


th {
    border: 0.1em solid var(--mainblue);
    padding: 0.25em;
    background-color: var(--mainblue);
    color: var(--mainyellow);
    font-size: 1.25em;
}
@media (max-width:45em){
	.mobiletab table{
		min-width:18em;
		display:block;
		}
	.mobiletab tr{
		display:block;
		min-width:18em;
	}
	.mobiletab td{
		display:block;
		min-width:18em;
	}
	.mobiletab th{
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

}

.myform{
	width:100%;
	text-align:center;
}


.listbox{
	margin-right:0.7em;
	margin-left:0.7em;
	color: var(--mainblue);
	list-style:none;
	overflow:auto;
	width:auto;
	height:auto;
	max-height:40em;
	border-style: ridge ridge ridge ridge;
	border-width: medium;
	border-color: var(--mainyellow);
}

/*The following make a listbox behave more like a select box - select not used because apple mobile devices hide all but the first
item- not good for our users.*/
.listbox a:hover{cursor:pointer; background-color:var(--mainyellow);}
.listbox a:focus{cursor:pointer; background-color:var(--mainyellow);}
.listbox a:active{background-color:var(--mainyellow);}
.listbox a.current{background-color:var(--mainyellow); visibility:visible;}

/* may not be needed*/
.formbox{
	margin-left:2em;
	color:var(--mainblue);;
	list-style:none;
	overflow:auto;
	/*width:65%;*/
}
/* may not be used*/
.wide{
	margin: auto;
	font-size:1.20em; font-weight: bold;
    width: 50%;
    background:linear-gradient(to top, rgba(254,197,36,0.3), rgba(254,197,36,1));
}
/* standard button styles*/

input[type="submit"], input[type="reset"], input[type="button"], button {cursor:pointer; border:0.2em; border-style: outset; border-color:var(--mainyellow); border-radius:0.5em; padding:0.35em 0.7em; background:var(--mainyellow); color:var(--mainblue); 	font-size:1em; font-weight: bold;}



/*button styles and containers*/
/*This class should make the element look like a button.*/
.butn{border-style:outset;
	border-width:0.25em;
	border-radius:0.75em;
	display: -webkit-box;
	display: -webkit-flex;
	display: -moz-box;
	display: -ms-flexbox;
	display : flex;
	flex-wrap:wrap;
	-webkit-flex-align: center;
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;
   justify-content: center;
   text-align:center;
	text-decoration:none;
	font-size:1em; 
	font-weight: bold;
	line-height: 1;
	cursor:pointer;
}
.butn:disabled{
	background:grey;
}


/*For bigger screens this displays buttons horizontally
and centred.*/
@media (min-width:45em){
	.butgp{
	display: -webkit-box;
	display: -webkit-flex;
	display: -moz-box;
	display: -moz-flex;
	display: -ms-flexbox;
	display: flex;
	flex-wrap: wrap;
	max-width:95%;
	align-items: center;
	justify-content: center;
}
/* ide contents that are for use on a mobile*/
.mobile{
	display:none;
}
.fixed{
	width:95%;
	margin:5px;
	min-height:5em;
	font-size:1em;
	line-height:1;
}

.big{
	width:20%;
	margin:10px;
	min-height: 6.25em;
	font-size:1.2em;
	line-height:1.2;
}
/* This allows buttons to be created as a list, shown horizontaly on bigger screens and as a list on smaller screens.*/
.butgp ul{
    padding:0;
	margin:0;
	list-style:none;
	-ms-box-orient:horizontal;
	display: -webkit-box;
	display: -webkit-flex;
	display: -moz-box;
	display: -moz-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-flow:wrap row;
	flex-flow:wrap row;
	align-items: center;
	justify-content: center;
}

.butgp ul li{
	float:left;
	width:12%;
	min-width:auto;
	margin:5px;
}
}
/*This code replaces above for mobile screens, buttons are shown as a list of links.*/

@media (max-width:45em){
	
	/* used for toggle button*/
	.toggle {clear:both; display:block; margin:0 0 1.25em; padding:0.7em 2%; background:var(--mainblue); color:var(--mainyellow); cursor:pointer;}
	
.butgp ul{
  display: none;
  background-color: var(--mainyellow);
}

.butgp li .butn{
	display:inline-block;
	border-style:none;
	border-width:0;
	border-radius:0;
	text-align:left;
	width:100%;
	display:block; margin:0 0 0.7em 0; padding:0 0 0.75em; border-bottom:0.125em dotted #eee; text-decoration:none;
	font-weight:normal;
}

.butgp li .blue{
	background-color: var(--mainblue);
	color: var(--mainyellow);
}
.butgp li .yellow{
	background-color: var(--mainyellow);
	color: var(--mainblue);
}
.butgp li .blue:hover{
	background:linear-gradient(to top, var(--mainyellow), var(--mainyellow));
}

.butgp li .yellow:hover{
	background:linear-gradient(to top, var(--mainyellow), var(--mainyellow));
}
	.big{
	width:100%;
	margin:10px;
	min-height: 5em;
	font-size:1em;
	line-height:1;
}
}




/* button colours*/
.blue{background-color:var(--mainblue);
	color: var(--mainyellow);
	border-color:var(--mainblue);
}

.blue:hover{background: linear-gradient(to top, rgba(9,47,135,0.3), rgba(9,47,135,1));}

.yellow{background-color: var(--mainyellow);
	color: var(--mainblue);
	border-color:var(--mainyellow);
}
.yellow:hover{background: linear-gradient(to top, rgba(254,197,36,0.3), rgba(254,197,36,1)); }

/*style for buttons in a sidebar*/
.sbar{
	width: 80%;
	height: 5em;
	font-size:1em; font-weight: bold;
	background-color: var(--mainyellow);
	color: var(--mainblue);
}
/*style for buttons in a table*/
.tb{
	width:90%;
	font-size:1.2em; font-weight: bold;
	background-color:var(--mainblue);
	color: var(--mainyellow);
	border-color:var(--mainblue);	
}

/*end of new button styles*/
/* The Modal (background) */
.modal {
   display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 80%; 
  height: 50%;
  overflow: auto; /* Enable scroll if needed */
  background-color:#90EE90; /* Fallback color */
  border: 2px solid #000000;
/*background-color: rgba(0,0,0,0.4);*/ /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
     position: relative;
  background-color: yellow;
  margin: auto;
  padding: 0;
 border: 2px solid #000000;
  width: 80%;
  /*box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);*/
}

/* The Close Button */
.close {
    /* Position it in the top right corner outside of the modal */
    position: absolute;
    right: 25px;
    top: 0;
    color: #000;
    font-size: 20px;
    font-weight: bold;
}

/* Close button on hover */
.close:hover,
.close:focus {
    color: red;
    cursor: pointer;
}

