/* @override http://localhost:5000/style/screen.css */

/* @group Basics */

body {
	background: #fff url(/images/weave.png) repeat-x left top;
	font-family: "Lucida Grande", Lucidagrande, "Lucida Sans", Lucidasans, "Lucida Sans Unicode", Lucidasansunicode, Lucida, "Bitstream Vera Sans", Helvetica, sans-serif;
	margin: 0;
	padding: 1em 0 0 0;
}

body img {
	float: none;
	margin: 0;
	padding: 0;
	vertical-align: middle;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Hoefler Text", Hoeflertext, Georgia, "Lucida Bright", Lucidabright, "Bitstream Vera Serif", serif;
}

a {
	color: #b00;
}

a:link {
	color: #b22;
}

a:visited {
	color: #c22;
}

a:hover {
	background-color: #F5E4DC;
}

p + p {
	/* override blueprint */
	text-indent: 0;
	margin-top: 0;
}

/* @end */

#logged-in-status {
	text-align: right;
	text-shadow: #fff 0 0 2px;
	height: 2em;
}

/* @group Heading */

#heading {
	font-weight: bold;
}

#heading h1 {
	margin: 0.1em 0 0 0;
	line-height: 1.3em;
	text-shadow: #eccccc 1px 2px 1px;
}

#heading h1 a:link,
#heading h1 a:visited {
	text-decoration: none;
}

#heading h1 a:hover {
	background: transparent;
}

#heading h1 sup {
	color: #888;
	font-size: 0.4em;
	margin-left: 0.5em;
	text-shadow: none;
}

/* @end */

#main {
	margin-top: 1em;
}

#footer {
	border-top: 1px dotted #aaa;
	background: #f0f0f0;
	margin: 5em 0 0 0;
	padding: 0.6em 0;
	color: #666;
}

#footer p {
	font-size: 0.9em;
	margin: 0.1em 0 0.1em 0.6em;
	padding: 0;
	text-indent: 0;
}

/* @group Navigation */

#navigation ul {
	list-style: none;
	font-size: 1.3em;
	margin: 0.4em 0 0 0;
}

#navigation li {
	float: right;
	display: block;
}

#navigation li a, #navigation li a:link, #navigation li a:visited {
	font-weight: normal;
	padding: 0.4em;
	margin: 0 0 0 0.6em;
}

body.home-view #nav-home a,
body.factlet-view #nav-factlet a,
body.thread-view #nav-thread a,
body.account-view #nav-account a {
	font-weight: bold;
	color: #333;
}

/* @end */

/* @group Asides */

#asides ul {
	list-style: none;
	border: 1px solid #dedede;
	border-top: 1px solid #eee;
	border-left: 1px solid #eee;	
	-moz-border-radius: 0.5em;
	-webkit-border-radius: 0.5em;
	background: #f0f0f0;
	background-image: url(/images/button-shadow.png);
	margin: 1em 0 0 0;
	padding: 0.2em 0;
	width: 99%;
}

#asides ul li a {
	display: block;
	text-decoration: none;
	padding: 0.25em 0.7em;
	text-shadow: #fff 1px 1px 2px;

}

#asides ul li a:hover {
	font-weight: bold;
	background: transparent;
}

#asides ul li a img {
	margin: 0 0.3em 0 0 !important;
	padding: 0;
	border: none;
	width: 16px;
	height: 16px;
}

/* @end */

/* @group Controls */

.controls a {
	display: none;
	height: 16px;
	width: 16px;
	margin: 0 0 0 0.3em;
	letter-spacing: -1000em;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: left top;
}

.controls .remove { background-image: url(/images/icons/factlet_remove.png); }
.controls .delete { background-image: url(/images/icons/cross.png); }
.controls .view { background-image: url(/images/icons/page_white_width.png); }
.controls .edit { background-image: url(/images/icons/pencil.png); }
.controls .add { background-image: url(/images/icons/add.png); }
.controls .move { 
	background-image: url(/images/icons/move.png);
	cursor: move;
}

.controlremove .controls .remove,
.controldelete .controls .delete,
.controlview .controls .view,
.controledit .controls .edit,
.controladd .controls .add,
.controlmove .controls .move {
	display: block;
}

.controlsonhover .controls { display: none; }
.controlsonhover :hover > .controls { display: block; }
.controlall .controls a { display: block; }

/* @end */

/* @group Factlet */

.factlet {
	padding: 1em;
	background-color: #f8f4e1;
	border-bottom: 1px solid #ffd0ab;
	border-right: 1px solid #ffd0ab;
	-moz-border-radius: 0.4em;
	-webkit-border-radius: 0.4em;

}

.factlet .title {
	font-size: 2em;
}

.factlet .title a {
	background: transparent;	
	text-decoration: inherit;
	color: #444;
}

.factlet img {
	float: right;
	width: 250px;
	margin-left: 1em;
}

.factlet .controls a {
	float: right;
}

.factlet .location .lon:before {
	content: "Lon: ";
}
.factlet .location .lat:before {
	content: "Lat: ";
}

.factlet-summary .title {
	font-size: 1.3em;
}

.factlet-list .factlet-summary {
	cursor: pointer;
}

.factlet-list .controls {
	position: relative;
	top: 0.9em;
	margin-right: 0.4em;
}

.factlet-list .active .title a {
	font-weight: bold;
	background: transparent url(/images/icons/arrow_right.png) no-repeat -4px -1px;
	padding-left: 1em;
}

	/* @group Thread background */
	
	.factlet-list .factlet-summary {
		border: none;
		-webkit-border-radius: 0;
		-moz-border-radius: 0;
		padding: 0;
		margin: 0;
		background: #f8f4e1 url(/images/threadbg.png) no-repeat center -8px;
	}
	.factlet-list .factlet-summary .title {
		padding: 0.8em 0.3em 0.3em 0.6em;
		margin: 0;
		background: transparent url(/images/threadbgtop.png) no-repeat center bottom;
	}
	
	/* :first-of-type and :last-of-type (what we really want here) are hardly 
	   supported at all yet, so we shan't use them. We'll fix it up with JS 
	   instead. */
	
	.factlet-list .factlet-summary:first-child,
	.factlet-list .thread-top {
		background-image: none;
	}
	.factlet-list .factlet-summary:first-child .title,
	.factlet-list .thread-top .title {
		padding-top: 0.6em;
	}
	.factlet-list .factlet-summary:first-child .controls,
	.factlet-list .thread-top .controls {
		top: 0.6em;
	}
	.factlet-list .factlet-summary:last-child,
	.factlet-list .thread-bottom {
		border-bottom: 1px solid #ffd0ab;
	}
	.factlet-list .factlet-summary:last-child .title,
	.factlet-list .thread-bottom .title {
		background-image: none;
	}
		
	.factlet-list .sortable {
		background-image: none;
		margin: 3px auto;
		border-bottom: 1px solid #ffd0ab;
	}
	
	.factlet-list .sortable-clone {
		position: absolute;
		background: white;
		border: 2px dashed #aaa;
		opacity: 0.4;
	}
	
	.factlet-list .sortable .title,
	.factlet-list .sortable-clone .title {
		background-image: none;
	}
	
	/* @end */

#factlet-search-results .factlet {
	margin: 0 0.5em 0.5em 0;
	float: left;
	position: relative; /* needed by IE */
	white-space: nowrap;
}

#factlet-search-results .factlet .title {
	margin: 0 25px 0 0;
}

/* @end */

/* @group Chrono */

div.timeline {
	height: 20em;
	margin-bottom: 1em;
}

div.timeline .timeline-simile {
	height: 100%;
	overflow-x: hidden;
	overflow-y: scroll;
}

/* zoom controls */
div.timeline .timeline-controls a {
	-moz-border-radius: 0.2em;
	-webkit-border-radius: 0.2em;
	width: 100%;
	padding: 0;
	height: 3.1em;
	font-size: 3em;
	line-height: 3;
	text-align: center;
	cursor: pointer;
	text-shadow: #aaa 1px 1px 2px;
}

div.timeline .timeline-controls a.zoom-in {
	margin-bottom: 0.4em;
}

/* @end */

/* @group Geochrono */

.map {
	height: 25em;
}

.geochrono.timeline {
	margin-top: 1em;
}

/* @end */

/* @group Edit */

.edit-pane > div > h3 {
	display: none;
}

.edit-pane > div {
	display: none;
}

.edit-pane > div.active {
	display: block;
}

.edit-pane input#preview {
	/* not currently supported */
	display: none;
}

/* @end */

.pagination {
	width: 99%;
	list-style: none;
	border-left: 1px solid #dedede;
	margin-left: 0.2em;
}

.pagination li {
	/* needed for IE ... nnnnnggg */
	display: inline;
}

.pagination a {
	border-right: solid 1px #dedede;
	float: left;
	display: inline;
	padding: 0.2em 0.5em;
	text-decoration: none;
}

.pagination .disabled a {
	color: #aaa;
	background: transparent;
	cursor: default;
}
.pagination .active a {
	color: #000;
	background: transparent;
	font-weight: bold;
	cursor: default;
}

/* AJAX waiting spinner */
.gspinner {
	opacity: 0;
	visibility: hidden;
	position: fixed;
	top: 0.5em;
	right: 0.5em;
	width: 36px;
	height: 36px;
	background: transparent url(/images/spinner.gif) top left no-repeat;
}

.spinner {
	z-index: 9999;
	text-align: center;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 1.5em; 
	position: absolute;
}

.spinner span {
	padding-left: 20px;
	background: transparent url(/images/spinner-overlay.gif) left center no-repeat;
}

/* Modal box */
.modal {
	z-index: 500;
	border: 8px solid rgba(0, 0, 0, 0.4);
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	background: transparent;
	width: 50%;
	left: 25%;
	height: auto;
	position: absolute;
}

.modal-content {
	height: 100%;
	background: white;
}

.modal-content h3 {
	margin: 0;
	padding: 0 0.5em;
	background: #B14D4D;
	border-top: 1px solid #c07070;
	border-bottom: 1px solid #8d3d3d;
	color: white;
	font: bold 1.1em/1.8em "Lucida Grande", Lucidagrande, "Lucida Sans", Lucidasans, "Lucida Sans Unicode", Lucidasansunicode, Lucida, "Bitstream Vera Sans", Helvetica, sans-serif;
}

.factlet-location-editor .map {
	position: relative;
}

.factlet-location-editor .buttons {
	position: absolute;
	z-index: 9999;
	right: 0em;
	top: 0.7em;
}

table.diff {
  width: auto;
}

table.diff td {
  vertical-align: top;
  padding-left: 8px;
  margin: 0;
}

table.diff td pre {
  padding: 0;
  margin: 0;
}
