/*------------------------------------*
   SUMMARY1
 *------------------------------------*/
 
/* 
Created: 4th March 2014
Author: The National Archives Web Team

This stylesheet contains all the base level styles for The National Archives website. 

- All styles added to this stylesheet should be for global use only. 
- ID/class names should be named independently of their content to aide better re-use
- Spaces between words should be hyphenated (no camel casing or underscores)
- Avoid specificity, construct modularly
- Use of !important should be avoided

*/
/*------------------------------------*
   CONTENTS
 *------------------------------------*/
/*
1. RESET THE BROWSER
2. SET THE GRID
3. DEFAULT HTML TAGS
4. CONTAINERS AND LAYOUT
	4.1 - Global
	4.2 - Header
	4.3 - Mega menu
	4.4 - Footer
5. CUSTOM DESIGN PATTERNS
6. MEDIA QUERIES
*/


/* --------------------------------------------- 
1. RESET THE BROWSER - Do not amend 
------------------------------------------------ */

article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
	display: block;
}
audio, canvas, video {
	display: inline-block;
}
audio:not([controls]) {
	display: none;
	height: 0;
}
[hidden] {
	display:none;
}
html {
	background: #eee;
	color: #000;
	font-family: 'OpenSans', sans-serif;

	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%
}
body {
	margin: 0;
}
a:active, a:hover {
	outline: 0;
}

abbr[title] {
	border-bottom: 1px dotted;
}
b, strong {
	font-weight: 700;
}
dfn {
	font-style: italic;
}
hr {
	-moz-box-sizing: content-box;
	box-sizing: content-box;
	height: 0
}
mark {
	background: #ff0;
	color: #000;
}
code, kbd, pre, samp {
	font-family: monospace, serif;
	line-height: 1.6;
font-size: 1.1em;
display: block;
padding:1em;
margin: 1em;
}
pre {
	white-space: pre-wrap;
}
q {
	quotes: "\201C" "\201D" "\2018" "\2019";
}
small {
	font-size: 80%;
}
sub, sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}
sup {
	top: -.5em;
}
sub {
	bottom: -.25em;
}
img {
	border: 0;
}
svg:not(:root) {
	overflow: hidden;
}
figure {
	margin: 0;
}
fieldset {
	border: 1px solid silver;
	margin: 0 2px;
	padding: .35em .625em .75em;
}
legend {
	border: 0;
	padding: 0;
}
button, input, select, textarea {
	font-family: inherit;
	font-size: 100%;
	margin: 0;
}
button, input {
	line-height: normal;
}
button, select {
	text-transform: none;
	border: 0;
}
button, html input[type=button], input[type=reset], input[type=submit] {
	-webkit-appearance: button;
	cursor: pointer;
}
button[disabled], html input[disabled] {
	cursor: default;
}
input[type=checkbox], input[type=radio] {
	box-sizing: border-box;
	padding: 0;
}
input[type=search] {
	-webkit-appearance: textfield;
	-moz-box-sizing: content-box;
	-webkit-box-sizing: content-box;
	box-sizing: content-box;
}
input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration {
	-webkit-appearance: none;
}
button::-moz-focus-inner, input::-moz-focus-inner {
	border:0;
	padding:0;
}
textarea {
	overflow: auto;
	vertical-align: top;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
	width: auto; /* added to over-ride WP plug-in table default width of 100% */
}

table td {
	font-size:.9em;
	line-height: 1.6;
}


@import url(http://fonts.googleapis.com/css?family=Open+Sans);

/* --------------------------------------------- 
2. SET THE GRID - Do not amend 
------------------------------------------------ */

.row {
	position: relative;
}
.col {
	display: block;
	float: left;
	width: 100%;
	margin-bottom: 2%;
	min-height: 100%;
}
.col:first-child,
.starts-at-half:nth-child(odd),
#index > .col:nth-child(odd) {
	margin-left: 0;
}
.clr:after, .col:after, .group:after, .row:after {
	content: "";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}





/* ---------------------------------------------   
3. DEFAULT HTML TAGS 
------------------------------------------------ */

/* Default body, type and links */
body {
	font-family: 'Open Sans', sans-serif;
	font-size: 16px;
	background: #eee;
}

a:link, a:visited, a:active {
	color: #2A5DB0;
	text-decoration: none;
}
a:focus {
	outline: 2px solid #ebab00;
}
a:hover {
	text-decoration: underline;
	cursor: pointer;
}
a[href^="mailto"] {
	word-wrap: break-word;
}


/* --------------------------------------------- 
4. CONTAINERS AND LAYOUT 
------------------------------------------------ */

/* ------------- GLOBAL ------------- */

/* Centering container */
.container {
	margin: 0 auto;
	width: 94%;
}



/* ------------- HEADER AND FOOTER ------------- */


/* Header container */
#header, #footer {
	padding: .75em 0 .75em 0;
	background-color: #222;
	color: #eee;
	font-size: .9em;
}
#header .col {
	margin-bottom: 0;
}
/* Reduce size of logo on mobile and position centrally */
.header-with-breadcrumb img {
	width: 200px;
	vertical-align: middle;	
}
.header-with-breadcrumb a {
	margin: 0 .25em;
}

/* Footer container */
#footer {
	margin-top: 1em;
	padding: 1em 0;
}

#header a, #footer a {
	color: #fce45c;
	display:inline-block;
	
}

#header a:focus, #footer a:focus {
	color:#000;
	background-color: #FCE45C;

}



/* --------------------------------------------- 
6. MEDIA QUERIES 
------------------------------------------------ */

/* ------------- Smartphone (landscape) and above ------------- */

@media only screen and (min-width: 480px) {


.header-with-breadcrumb a:focus:after {
	content: attr(title);
	position: absolute;
	bottom: 0;
	left: 0;
	font-size: 0.8em;
}


}
/* ------------- 10" tablet (portrait) and above ------------- */

@media only screen and (min-width: 768px) {

#header, #footer {
	min-height:48px;
}
.header-with-breadcrumb img {
	width: auto;
	margin-left: 0;
}


}

/* ------------- 10" tablet (landscape) and above ------------- */

/* ------------- Desktop and above ------------- */
 
 @media only screen and (min-width: 1280px) {
.container {
	width: 1240px; /* ensures the horizontal margin is retained at ALL browser window widths */
}
}
