/*
CSS style sheet for peerages website www.peerages.uk & www.peerages.info
created by David Beamish
last update 16 February 2020
dropdown menus based on https://csswizardry.com/2011/02/creating-a-pure-css-dropdown-menu/
*/
/* RESET SECTION */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

/* html, body, div, span, applet, object, iframe,
h1, h4, h5, h6, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, 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 {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
/* article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
	padding-left:5px;
} */
/* ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
} */
/* RESET SECTION ENDS */
body,h1,h2
{
font-family: Arial, sans-serif;
margin: 0;
margin-left: 5px;
}
h2
{
font-size: 150%;
font-weight: bold;
}
/* .newtext {font-family:"Arial";color:#ffffff;background:#ff0000;font-weight:bold;white-space:pre}
td
{
padding-top:0px;
padding-bottom:0px;
padding-right:20px;
padding-left:5px;
} */
/* td:first-child {white-space:nowrap;}
a:link {color:blue;}
a:visited {color:purple;}
a:hover
{
color:blue;
background-color:yellow;
text-decoration:none;
}
a:active
{
color:red;
background-color:yellow;
text-decoration:none;
}
tr {vertical-align: top;}
 */
@media print  { .noprint  { display: none;  height: 0;} }


/* DRB specifics below */

body,h1,h2,h4
{
counter-reset: gone ;
font-family: Arial, ans-serif;
}
.numspan:before {
    counter-increment: gone;
    content: counter(gone) ".";
}

table.NumInCol2 { table-layout: fixed; width: 100%;}

.column1 {
    overflow: hidden;
    width: 8%;
}

.column2 {
    overflow: hidden;
    width: 3%;
}

.newtext {font-family:"Arial";color:#ffffff;background:#ff0000;font-weight:bold;white-space:pre}
td
{
padding-top:0px;
padding-bottom:0px;
padding-right:20px;
padding-left:5px;
}

td:first-child {white-space:nowrap;}
td.NumInCol2:first-child + td {white-space:nowrap; text-align:right; }
/*td:nth-child(2) {white-space:nowrap; text-align:right}
*/
a:link {color:blue;}
a:visited {color:purple;}
a:hover
{
color:blue;
background-color:yellow;
text-decoration:none;
}
a:active
{
color:red;
background-color:yellow;
text-decoration:none;
}
tr {vertical-align: top;}

/*------------------------------------*\
	NAV
\*------------------------------------*/
.nav{
	list-style-type:none;
	font-weight:bold;
	margin-bottom:10px;
	margin-left:0;
	padding-left:0;
	color:#ffffff;
	
	/* Clear floats */
	/* float:left; */
	/* width:100%; */
	/* Bring the nav above everything else--uncomment if needed.
	position:relative;
	z-index:5;
	*/
	
}
.nav li{
	float:left;
	margin-right:10px;
	position:relative;
	color:#ffffff;
}
.nav a{
	display:block;
	padding:5px;
	color:#ffffff;
	background:#222222;
	text-decoration:none;
}
.nav a:link {color:#ffffff;}

.nav a:hover{
	color:#ffffff;
	background:#A90017;
	text-decoration:underline;
}

/*--- DROPDOWN ---*/
.nav ul{
	background:#ffffff; /* Adding a background makes the dropdown work properly in IE7+. Make this as close to your page's background as possible (i.e. white page == white background). */
	background:rgba(255,255,255,0); /* But! Let's make the background fully transparent where we can, we don't actually want to see it if we can help it... */
	list-style-type:none;
	padding-left:0;
	margin-left:0;
	position:absolute;
	left:-9999px; /* Hide off-screen when not needed (this is more accessible than display:none;) */
}
.nav ul li{
	padding-top:1px; /* Introducing a padding between the li and the a give the illusion spaced items */
	float:none;
}
.nav ul a{
	white-space:nowrap; /* Stop text wrapping and creating multi-line dropdown items */
}
.nav li:hover ul{ /* Display the dropdown on hover */
	left:0; /* Bring back on-screen when needed */
}
.nav li:hover a{ /* These create persistent hover states, meaning the top-most link stays 'hovered' even when your cursor has moved down the list. */
	background:#A90017;
	text-decoration:underline;
}
.nav li:hover ul a{ /* The persistent hover state does however create a global style for links even before they're hovered. Here we undo these effects. */
	text-decoration:none;
}
.nav li:hover ul li a:hover{ /* Here we define the most explicit hover states--what happens when you hover each individual link. */
	background:#222222;
}