/**
 * UP Article specific elements
 * Copyright (c) 2013 Ubiquity Press
 */

.up-oblique { 
	font-style: italic;
}

.up-italic { 
	font-style: italic;
}

.up-bold { 
	font-weight: bold;
}

sup {
	vertical-align: super;
	line-height: 0.5em;
}
 
.up-footnote-number {
	font-size: .7em;
	vertical-align: super;
	line-height: 0.5em;
}

.up-footnote-number a {
	padding: 0 .2em;
}

p.up-abstract-text { 
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Helvetica", "Arial", "Verdana", sans-serif;
	font-size: 1em;
	margin: 0em 2em .5em 2em;
	text-align: justify;
}

p.up-article-heading-level1 {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	font-weight: bold;
	font-size: 1.2em;
	margin-top: 2em;
}

p.up-article-heading-level2 {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	font-weight: bold;
	font-size: 1em;
	margin-top: 2em;
	font-style: italic;
	font-variant: normal;
}

p.up-article-text-paragraph1 {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
}

p.up-article-text-paragraph {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
}

p.up-article-title {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	font-size: 1.8em;
	font-weight: bold;
	margin-bottom: .3em;
	margin-top: 1em;
	line-height: 1.2em;
	text-align: center;
}

p.up-article-subtitle {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	font-weight: bold;
	font-size: 1.2em;
	margin-top: 2em;
	text-align: center;
}

p.up-article-type {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	font-size: 1.2em;
	font-weight: bold;
	margin-bottom: .3em;
	margin-top: 1em;
	line-height: 1.2em;
	text-align: left;
	text-transform: uppercase;
}

p.up-author-contact {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	font-size: 1.1em;
	font-style: italic;
	margin-bottom: 3em;
	text-align: center;
}

p.up-author-affiliation {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	font-size: 1.1em;
	font-style: normal;
	text-align: center;
	margin-bottom: 2em;
}

p.up-author-name {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	font-size: 1.2em;
	text-transform: none;
	margin-bottom: -.5em;
	text-align: center;
}

p.up-notes-text-level1 {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	padding-left: 1em;
	text-indent: -1em;
}

p.up-notes-text-level2 {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	padding-left: 1.5em;
	text-indent: -1.5em;
}

p.up-notes-text-level3 {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	padding-left: 2em;
	text-indent: -2em;
}

p.up-reference-line {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	margin-left: 2em;
	text-indent: -2em;
}

span.up-note-number {
	vertical-align: top;
}

p.up-quote-paragraph {
	margin: 0em 6em 0em 6em;
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
}

p.up-caption-text {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;	
	margin-left: 3.8em;
	text-indent: -3.8em;
	text-align: center;
}

p.up-article-image {
	margin-top: 30px;
	text-align: center;
}

p.up-list-letters {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	margin-left: 3em;
	list-style-type: lower-alpha;
}

table.up-article {
	background-color: #FBFBF3;
}

table.up-simple {
	background-color: #FFFFFF;
	border: 1px solid #000;
	border-collapse: collapse;
	margin-top: 2.5	em;
}

table.up-simple td {
        border: 1px solid #000;
}

table.up-table {
	background-color: #FFFFFF;
	border: 1px solid #000;
	border-collapse: collapse;
	margin-top: 2.5	em;
	margin-left:auto; 
    margin-right:auto;
}

table.up-table td {
        border: 1px solid #000;
		padding: 5px;
}

p.up-table-text-left {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	text-align: left;
}

p.up-table-text-right {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	text-align: right;
}

p.up-table-text-centre {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	text-align: center;
}

p.up-table-heading-left {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	text-align: left;
	font-weight: bold;
}

p.up-table-heading-right {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	text-align: right;
	font-weight: bold;
}

p.up-table-heading-centre {
	font-family: "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;
	text-align: center;
	font-weight: bold;
}

table.up-article-border {
	border: 1px solid #000;
	border-collapse: collapse;
	background-color: #FBFBF3;
}

.up-keep-subscript{vertical-align:sub;}
.up-keep-superscript{vertical-align:super;}


/*

 XML Article Styling

*/

#xml-article {
/*border: 1px solid red;*/
}

/* reset all child elements so no elements within the #xml-article container 
inherit from surrounding page styles */
#xml-article * {
font-family: "Lucida Grande", "Lucida Sans Unicode", "Helvetica", "Arial", "Verdana", sans-serif;
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
line-height: 1.4;
quotes: none;
border-collapse: collapse;
border-spacing: 0;
color: #333;
}

#xml-article a {
color: #4E5DB5; /* blue */
}

#xml-article a:hover {
color: #8B0000; /* red */
}

#xml-article ol, #xml-article ul {
display: block;
list-style-position: outside;
margin: 1em 0;
padding-left: 40px;
}

#xml-article ol {
list-style-type: decimal;
}

#xml-article img {
border: 1px solid black;
margin-top: 30px;
/* auto center */
display: block;
margin-left: auto; 
margin-right: auto;
}

#xml-article strong, #xml-article b {
font-weight: bold;
}

#xml-article em, #xml-article i {
font-style: italic;
}

#xml-article .monospace {
font-family: "Courier New", Courier, monospace;
}

#xml-article th {
font-weight: bold;
}

#xml-article sup {
font-size: .8em;
/* fixes line height problem */
vertical-align: top; 
line-height: 1.2em;
padding: 0 1px;
}

#xml-article sup a {
font-size: 1em;
/* fixes line height problem */
vertical-align: top; 
line-height: 0.6em;
padding: 0 2px;
}

#xml-article .xref strong {
font-weight: normal; /* correct? */
}

#xml-article .table-wrapper {
overflow-x: auto; 
width: 100%;
}

/* #front styles */

#xml-article #front p.article-type {
font-size: 1.2em;
font-weight: bold;
line-height: 1.2em;
margin-top: 1em;
margin-bottom: 0.3em;
text-transform: uppercase;
}

#xml-article #front h1 {
font-size: 1.8em;
font-weight: bold;
line-height: 1.2;
margin-top: 1em;
text-align: center;
}

#xml-article #front h2 {
font-size: 1.2em;
font-weight: bold;
margin-left: 1.5em;
line-height: 1.4;
}

#xml-article #front #contributors, 
#xml-article #front #contributor-orgs,
#xml-article #front #subfront {
max-width: 93%;
margin-left: auto;
margin-right: auto;
margin-top: .5em;
position: relative;
}

#xml-article #front #subfront h2 {
margin-left: 0;
}

#xml-article #front #contributor-orgs {
font-size: 1.2em;
}

#xml-article #front #contributors {
text-align: center;
font-size: 1.2em;
}

#xml-article #front #contributors .au-label a {
font-size: 1em;
/* fixes line height problem */
vertical-align: top; 
line-height: 0.6em;
padding: 0 2px;
}

#xml-article #front #contributors div.contrib {
display: inline-block;
text-align: left;
}

#xml-article #front #contributor-orgs ol {
padding-left: 0;
padding-left: 1.4em;
}

#xml-article #front #contributor-orgs ol li {
text-align: left;
}

#xml-article #front #contributor-orgs ol li:target {
background: #DEE3EA; /* light blue-grey */
}

#xml-article #front .abstract p {
font-size: 1em;
text-align: justify;
line-height: 1.4;
}

#xml-article #front #keywords {
padding: 0px;
margin: 1em 0;
font-size: .9em;
}

/* #middle styles */

#xml-article #middle h2 {
font-size: 1.2em;
font-weight: bold;
margin-top: 1.5em;
line-height: 1.4;
}

#xml-article #middle h3 {
font-size: 1em;
font-style: italic;
font-weight: bold;
color: #333;
}

#xml-article #middle p {
line-height: 1.4;
padding: 0.5em 0;
}

#xml-article #middle .caption {
text-align: center;
margin: 1em 0;
}

#xml-article #middle .caption .label {
font-weight: bold;
}

#xml-article #middle .caption p, #xml-article #middle .caption p * {
/*line-height: .75; */ /* causing overlaps on captions across multiple lines */
}

#xml-article #middle table tr td hr {
border: 1px solid black;
}

#xml-article #middle table {
background-color: #FFFFFF;
border-collapse: collapse;
margin-top: 2.5em;
margin-left:auto; 
margin-right:auto;
max-width: 80%;
}

#xml-article #middle table td, #xml-article #middle table th {
padding: 5px;
}

/* code blocks */
#xml-article #middle pre {
font-family: "Courier New", Courier, monospace;
}

/* math formula */
#xml-article #middle .math-tex {
font-size: 2em;
}

#xml-article #middle .formulae {
position: relative;
margin: 10px 0;
}

#xml-article #middle div.formula-label {
display: inline-block;
vertical-align: center;
width: 3%;
position: absolute;
right: 0;
text-align: right;
top: 30%;
}

#xml-article #middle .formula {
width: 97%;
}

.noborder {
border: none !important;
}

.inline {
display: inline-block !important;
}

#xml-article #middle span.formula img {
display: inline-block;
}

/* #back styles */

#xml-article #back h2 {
font-size: 1.2em;
font-weight: 700;
margin-top: 1em;
}

#xml-article #back .note p {
padding-left: 1em;
text-indent: -1em;
margin: 1em 0;
}

#xml-article #back .note:target {
background: #DEE3EA; /* light blue-grey */
}

#xml-article #back .note .fn-label {
text-indent: -1em;
font-size: 1em;
line-height: 0.5em;
vertical-align: super;
padding-right: .6em;
}

#xml-article #back ol {
list-style-type: none;
margin: 0;
padding: 0;
}

#xml-article #back ol li {
margin: 1em 0;
padding-left: 2em;
text-indent: -2em;
}

#xml-article #back ol li:target {
background: #DEE3EA; /* light blue-grey */
}