/* Styles shared between all science applications 
 * 
 * Matt Blissett
 */

/* First resetting some things from the main Kew stylesheet */
.scidb {
	font-size: 126.667%; /* Global CSS #container sets this to 0.75em, this puts it to 0.95em (0.95/0.75 = 1.2666) */
}

.scidb p, .scidb li {
	color: black;
}

.scidb h1, .scidb h2, .scidb h3, .scidb h4, .scidb h5, .scidb h6 {
	font-family: Georgia,"New Century Schoolbook","Nimbus Roman No9 L",serif;
	color: black;
}

.scidb h2 {
	font-size: 150%;
}

.scidb h3 {
	font-size: 130%;
	font-style: italic;
}

.scidb h4 {
	font-size: 120%;
}

.scidb h5 {
	font-size: 115%;
	font-weight: normal;
}

.scidb h6 {
	font-size: 105%;
	font-style: italic;
}
/* End */

.scidb table {
	background: transparent;
	border-collapse: collapse;
	border: none;
	margin: 0 auto;
}

.scidb table td,
.scidb table th,
.scidb .layout .data td,
.scidb .layout .data th {
	padding: 4px;
	vertical-align: middle;
	color: black;
	background: #efead3;
	border: 1px solid white;
}

.scidb table th, 
.scidb .layout .data th {
	text-align: center;
	background-color: #dad7a6;
}

@media print {
	.scidb table,
	.scidb table th,
	.scidb table td,
	.scidb .layout .data,
	.scidb .layout .data th,
	.scidb .layout .data td {
		border: 1px solid black;
	}
	#links-module {
		display: none;
	}
}

/* Rounded corners */
.scidb table tr:first-child > *:first-child {
	border-top-left-radius: 1ex;
	-moz-border-radius-topleft: 1ex;
	-webkit-border-radius-topleft: 1ex;
}

.scidb table tr:first-child > *:last-child {
	border-top-right-radius: 1ex;
	-moz-border-radius-topright: 1ex;
	-webkit-border-radius-topright: 1ex;
}

.scidb table tr:last-child > *:first-child {
	border-bottom-left-radius: 1ex;
	-moz-border-radius-bottomleft: 1ex;
	-webkit-border-radius-bottomleft: 1ex;
}

.scidb table tr:last-child > *:last-child {
	border-bottom-right-radius: 1ex;
	-moz-border-radius-bottomright: 1ex;
	-webkit-border-radius-bottomright: 1ex;
}

/* Row stripes (only for listings) */
.scidb table.listing tr:nth-child(even) td {
	background-color: #fffbe8;
}

.scidb table.listing tr:hover td {
	/* background-color: #dad7a6; */
}

/* Don't apply colours or backgrounds to tables used for layout */
.scidb table.layout,
.scidb table.layout th,
.scidb table.layout td {
	background: transparent;
	border: none;
}

.scidb :target {
	background-image: url("7dc242-ffffff.gif");
}

.scidb dt { font-weight: bold; }
.scidb dd { margin-left: 2em; }

/* For aligning options (etc) vertically next to something horizontal */
.scidb .v-options * {
	vertical-align: middle;
}
.scidb .v-options div { /* For IE6 */
	display: inline;
}
.scidb .v-options > div {
	display: inline-block;
}
.scidb .v-options > div span {
	display: block;
	margin-bottom: 0.2em;
}
.scidb .v-options > div span:last-child {
	margin-bottom: -0.2em;
}
.scidb .v-options > .bracket {
	font-size: 2.3em;
	line-height: 0.8em;
}
.scidb .v-options > .bracket::before {
	content: '\A0';
}
.scidb .v-options > .bracket ~ .bracket::before {
	content: '';
}

/* For required form data */
.scidb .required {
	font-weight: bold;
	color: red;
}

/* For error messages */
.scidb .errors {
	font-weight: bold;
	color: red;
}

/* For K bullets */
.scidb ul li.kew, .scidb ul > li.kew {
	list-style-image: url("k.png");
}


/* ************************************ *
 * ** Extras (should be in main CSS) ** *
 * ************************************ */
#links-module h3 {
	font-size: 1em;
	padding-left: 10px;
	margin-bottom: 0;
	display: block;
	background: #f8f7ee;
	line-height: 1.8em;           
}

/* ***************************************** *
 * ** Lists are messed up in the main CSS ** *
 * ***************************************** */
.scidb ol,
.scidb ul,
.scidb dl {
	margin: 0 0 0 2em;
	padding: 0;
}

.scidb dl {
	margin: 0 0 0.5em 0;
	list-style: none;
}

.scidb dl dl {
	margin: 0 0 0 9em;
}

.scidb ul li, 
.scidb ol li,
.scidb dl dt,
.scidb dl dd {
	list-style-position: outside;
	background: none;
	margin: 0;
	padding: 0;
}

.scidb ul li {
	list-style-type: disc;
	list-style-image: url(http://www.kew.org/ucm/resources/kew/images/css-images/list-item-green.gif);
}
.scidb ul > li {
	list-style-type: disc;
	list-style-image: url(http://www.kew.org/ucm/resources/kew/images/css-images/list-item-green.gif);
}

.scidb ol > li {
	list-style-type:decimal;
	list-style-image: none;
}

.scidb dl dt {
	float: left;
	font-weight: bold;
	margin-right: 1em;
	width: 8em;
}

/*
.scidb ul *,
.scidb ol * {outline: 1px solid #ddd;}
.scidb ul {outline: 1px solid #fdd}
.scidb ol {outline: 1px solid #ddf}
.scidb li {outline: 1px solid #dfd}
.scidb dl {outline: 1px solid #ffb}
.scidb dd {outline: 1px solid #bff}
.scidb dt {outline: 1px solid #fbf}
*/

