
body {
	background: #fff;
	margin: 32px;
	font-size: 12px;
}

select, input, textarea {
	font-size: 11px;
	margin: 0;
	color: #000;
}

a {
	text-decoration: none;
}

a:focus {
	outline: none
}

form {
	margin: 0;
}

img {
	border: 0;
}

div {
	line-height: 19px;
}

p {
	margin: 0 0 19px 0;
}

ol {
	padding: 0;
	margin: 0 0 19px 0;
}

/* Fonts */

h1, h2 {
	font-size: 12px;
	margin: 0 0 9px 0;
	clear: both;
}

body, select, input, textarea {
	font-family: "Lucida Grande", Geneva, Verdana, Arial, sans-serif;
}

tt, pre {
	font-family: Menlo, Consolas, "Vera Mono", monospace;
	font-size: 11px;
}

/* Lists */

ul.list {
	padding: 0;
	list-style: none;
	margin: 0 0 19px 0;
}

ul.list li {
	background: url(assets/bullet.gif) no-repeat 0 8px;
	padding: 0 0 0 12px;
	margin: 0;
}

/* Tables */

table {
	border-spacing: 0;
	margin: 0;
	border: 0;
}

td {
	padding: 0;
	vertical-align: top;
}

/* Checkboxes */

label {
	display: block;
	float: left;
	white-space: nowrap;
}

input[type=checkbox] {
	vertical-align: middle;
}

label span {
	padding-left: 4px;
	vertical-align: middle;
}

/* Column Layout */

.left {
	width: 100px;
	clear: left;
	float: left;
}

.center {
	width: 540px;
	margin-left: 24px;
	float: left;
}

.right {
	width: 240px;
	margin-left: 24px;
	float: left;
}

/* Colours and Links */

.left, .left a {
	color: #009dec;
	border-bottom-color: #009dec;
}

.left a:hover {
	background: #e3f4fc;
}

.center, .center a {
	color: #333;
	border-bottom-color: #000;
}

.center a:hover {
	background: #e5e5e5;
}

.right, .right a, .error {
	color: #e4141b;
	border-bottom-color: #e4141b;
}

.right a:hover ,
.right .active {
    background: #fce6e6;
}

/* Row Layout */

#page {
	width: 960px;
}

#header {
	float: left;
	height: 20px;
}

#title {
	padding-top: 40px;
	float: left;
}

#title > div {
	height: 42px;
	border-bottom: 1px solid;
}

/* Content Styles */

#main {
	padding-top: 17px;
	float: left;
}

#main .center a,
 #main .right a {
	border-bottom: 1px solid;
}

/* Fix IE8 issue with empty named anchors having a huteight of 15px instead of 0 */
#main a.anchor {
	display: block;
	height: 0;
	padding: 0;
	border: 0;
}

.title #version {
	position: relative;
	left: 4px;
	vertical-align: top;
}

.content-end {
	height: 34px;
}

.search {
	float: right;
}

.search-field {
	width: 180px;
}

/* Helpers */

.clear {
	clear: both;
}

.float-left {
	float: left;
}

.float-right {
	float: right;
}

.hidden {
	display: none;
}

.popup-body {
	margin: 0px;
	/* Remove scrollbars on chrome */
	overflow: hidden;
}

.small-inline {
	font-size: 10px;
}

.small {
	font-size: 10px;
	line-height: 15px;
}

.caption {
	clear: left;
	font-size: 10px;
	padding-top: 5px;
}

.author {
	clear: left;
	max-height: 19px;
	overflow: hidden;
}

.line {
	height: 10px;
	background: url(assets/dotted.gif) repeat bottom;
	margin-bottom: 19px;
}

.license {
	position: relative;
	width: 100%;
	height: 300px;
	display: block;
	margin-bottom: 4px;
	border: 1px solid #999;
	padding: 4px;
}

.quote {
	margin-left: 16px;
	padding: 4px;
	background: #fff;
}

.quote-title {
	padding: 0 0 4px 4px;
	margin-left: 16px;
	background: #fff;
}

.donation {
	padding-bottom: 19px;
}

/* Text Content */

.text em {
	font-style: normal;
	padding: 0 1px 0 3px;
	background: #ebebeb;
}

.text .note {
	padding: 8px;
	margin: 0 40px 19px 10px;
	background: #f4f4f4;
	clear: both;
}

.text .note .resource {
	margin: 0;
}

.text p, .text ul, .text .resource-block p {
	margin-right: 30px;
	clear: both;
}

.block .text .resource-block {
	/* Compensate -10px for ligher scripts, -1px for dotted line */
	margin-right: 11px;
}

.text ol {
	/* Compensate -10px for ligher scripts */
	margin: 0 10px 19px 0;
	clear: both;
}

.text .column {
	width: 50%;
	float: left;
}

/* Blocks */

.block-interact {
	margin-bottom: 16px;
	border: 1px solid #999;
	border-left: 0;
	border-right: 0;
	background-image: url(assets/pattern.gif);
}

.block-padded {
	padding: 10px;
	vertical-align: top;
}

.block-white {
	border: 1px solid #999;
	background: #fff;
	margin-top: 0;
	margin-bottom: 16px;
}

.block-gray {
	border: 1px solid #999;
	border-left-width: 0;
	border-right-width: 0;
	background: #f4f4f4;
	margin-bottom: 16px;
	padding-left: 1px;
	padding-right: 1px;
}

.block .header {
	padding: 10px;
}

.block .title {
	float: left;
}

.block .content {
	clear: left;
	border-top: 1px dashed #999;
	padding: 10px;
	overflow: auto;
	max-height: 2000px;
}

.block .text {
	/* Compensate <p> margin and resource (right) */
	margin: 0 -10px 0 0;
}

.block .text .line,
.block .text .paperscript,
.block .text .CodeMirror {
	clear: left;
	/* Compensate line margin for -10px above */
	margin-right: 10px;
	margin-bottom: 19px;
}

.block .text-end {
	/* In case the text does not end with a 19px margin objet, this will
	compensate the -19px */
	margin: -19px 0 19px 0;
	/* Clear in case there are resources */
	clear: left;
}

.block-white .content,
.block-none .content {
	overflow: inherit;
	max-height: none;
}

.block .post-count {
	font-size: 10px;
	border-top: 1px dashed #999;
	background-image: url(assets/pattern.gif);
	padding: 3px 10px 4px 10px;
}

.block .post-count a {
	padding-bottom: 0;
}

.block .resources {
	border-top: 1px dashed #999;
	padding: 10px 10px 0 10px;
}

.block .header,
.block .content,
.block .post-count,
.block .resources {
	width: 518px;
}

.block-none .content,
.block-none .header {
	padding: 0;
	border-top: none;
	width: 540px;
}

.block-none .text {
	margin-bottom: 0px;
}

.block-none .text .column {
	/* (540 - 10px distnace) / 2 = 265 */
	width: 265px;
	margin-right: 10px;
}

.block .end {
	height: 240px;
}

.block-edit {
	padding: 10px;
	display: none;
}

.block-gray a:hover,
.blocks-row-gray a:hover,
.block-interact a:hover,
.block .post-count a:hover,
.note a:hover {
	background: #fff;
}

/* Pagination */

.pagination {
	font-size: 10px;
	line-height: 14px;
	margin-top: -6px;
	padding: 0 10px 10px 10px;
}

.pagination-clear {
	clear: both;
	display: block;
}

* html .pagination-clear { /* PC IE fix, jumping :hover... */
	display: inline;
}

.pagination a {
	padding-bottom: 0;
}

/* Blocks Lists */

.blocks {
	width: 540px;
	border: 1px solid #999;
	empty-cells: show;
}

.blocks-row-white td,
.blocks-row-gray td {
	padding: 8px 10px 10px 10px;
	vertical-align: top;
}

td.blocks-seperator-white,
td.blocks-seperator-gray {
	border-top: 1px dashed #999;
}

.blocks-row-white td,
.blocks-seperator-white {
	background: #fff;
}

.blocks-row-gray td,
.blocks-seperator-gray {
	background: #f4f4f4;
}

.blocks-end {
	height: 16px;
}

.no-border {
	margin-top: -6px;
	border: 0;
}

.no-border .blocks-row-white td,
.no-border .blocks-row-gray td {
	padding: 8px 0 10px 0;
}

/* Edit Fields */

.edit-login td {
	padding: 0 6px 3px 0;
}

.edit-elements {
	float: right;
	text-align: right;
}

.block-none .edit-elements {
	position: relative;
	top: -15px;
}

.edit-editor {
	border: 1px solid #999;
	width: 538px; /* remove 1px border */
}

/* Edit Forms */

#main #edit td,
#main #edit input,
#main #edit select,
#main #edit textarea,
#main #edit a.edit-button,
#main #edit .tab-pane .edit-title {
	font-size: 12px;
}

#main #edit td,
#main #edit .tab-pane .edit-title {
	font-size: 12px;
	line-height: 19px;
}

#main #edit .tab-pane .edit-content {
	margin: 6px 10px 6px 10px; /* 10px - 4px (.edit-label & .edit-item) = 6px */
}

#main #edit .edit-label,
#main #edit .edit-item {
	padding-top: 4px;
}

#main #edit .edit-help div {
	padding: 5px;
}

#main #edit .edit-help div,
#main #edit .edit-help td {
	font-size: 11px;
	line-height: 16px;
	white-space: normal;
}

#main #edit .edit-list-separator {
	height: 4px;
}

#main #edit .edit-list-header {
	/* Undo the 4px separator */
	margin-bottom: -4px;
}

#main #edit .edit-list-entry .edit-list-buttons {
	margin: 4px 0 -20px 0;
}

#main .edit-buttons-left .edit-button {
	margin-right: 4px;
}

#main .edit-buttons-right .edit-button,
.edit-button {
	margin-left: 4px;
}

/* Icons */

.icon {
	display: inline;
	float: left;
	text-align: center;
	padding: 0 10px 10px 0;
	font-size: 10px;
	line-height: 15px;
}

.icon .icon-label {
	display: inline;
	padding: 0 0 1px 4px;
}

.icon .icon-image {
	display: inline;
}

.icon .icon-image img {
	vertical-align: middle;
}

/* Setting the img wrapping div back to block applies text-align: center  from .icon to the image */
.icon-centered .icon-image {
	display: block;
}

.icon-centered .icon-label {
	padding-left: 0;
}

.icon-small {
	float: none;
	font-size: 12px;
	line-height: 19px;
	padding: 0;
}

#main .icon-small a {
	border: 0;
	padding-bottom: 0;
}

.block .text .icon {
	float: none;
	white-space: nowrap;
}

#main .icon-small a {
	padding: 0 2px 2px 0;
}

/* Attachments */

.resource {
	float: left;
	margin-right: 20px;
}

.media {
	margin-right: -20px;
}

.text .resource {
	/* To space horizontaly and work against bottom <p> margin compensation */
	margin: 0 10px 19px 0;
}

.resource .caption {
	text-align: center;
}

/* Resource Blocks (Image / Text Columns) */

.resource-block {
	display: table;
	*display: block; /* <= ie7 */
	margin-bottom: 19px;
}

.resource-block + .resource-block {
	border-top: 1px dotted #000;
	padding-top: 19px;
}

.resource-text,
.text .resource-block .resource {
	float: none;
	display: table-cell;
	vertical-align: middle;
	margin: 0;
	/* <= ie7 */
	*float: left;
	*display: block;
	*width: 50%;
}

.resource-text {
	vertical-align: top;
}

.resource-text p {
	margin-right: 0;
}

.text .resource-block .resource img {
	margin-right: 20px;
}

.text .resource-text .note {
	margin: 0 10px 0 0;
}

.text .resource-text .CodeMirror {
	/* Having height at 100% in resource-blocks breaks table layout */
	height: auto;
	margin-bottom: 19px;
}

/* Listed resources within a post block */

.block .resources .resource {
	margin-bottom: 10px;
}

.media .resource {
	margin-bottom: 19px;
}

#main .resource a, #main .resource a:hover {
	padding-bottom: 0;
	border-bottom: 0;
	background: none;
}

.gallery {
	margin-right: -24px;
}

.gallery-entry {
	float: left;
	width: 258px;
	margin: 0 24px 24px 0;
}

.script-gallery .gallery-entry {
	width: 164px;
}

.gallery-end {
	clear: left;
	height: 6px;
}

.downloads {
	margin-bottom: 19px;
}

/* Right Column */

.side-list {
	font-size: 10px;
	margin-bottom: 19px;
}

.side-list .title {
	max-height: 17px;
	overflow: hidden;
}

.side-list div {
	line-height: 17px;
}

.side-list .date {
	margin-top: -17px;
	text-align: right;
}

.side-list .date span {
	padding-left: 4px;
	/* cover flashing */
	background: white;
	border-bottom: 1px solid white;
}

.side-title {
	border-bottom: 1px solid;
	padding-bottom: 10px;
	margin-bottom: 15px;
}

.side-subtitle {
	padding-bottom: 10px;
}

/* Documentation */

li.expandable-list ul {
	display: none;
}

li.expandable-list.expanded ul {
	display: block;
}

li.expandable-list a.arrow {
	width: 8px;
	height: 8px;
	display: inline-block;
	background: url(assets/arrow-close.gif) no-repeat;
	border-bottom: 0;
	padding-right: 4px;
}

li.expandable-list.expanded a.arrow {
	background: url(assets/arrow-open.gif) no-repeat;
}

/* Tutorials */

.tutorial-overview {
	margin: 10px 25px 10px 0;
}

ul.tutorial-index {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

ul.tutorial-index ul {
	padding-left: 12px;
}

#main ul.tutorial-index {
	margin-bottom: 29px;
}

#main .right ul.tutorial-index a {
	padding-bottom: 0;
	border-bottom: 0;
}

/* Reference */

#main .reference-packages a {
	padding-bottom: 0;
	border-bottom: 0;
}

/* Border-bottom color for headers and ruler */
#main .reference-packages * {
	border-color: #e4141b;
}

.reference ol {
	list-style: none;
}

.member-title {
	width: 450px;
}

/* RSS */

.rss {
	font-size: 10px;
	float: right;
	padding-top: 10px;
}

.rss a {
	border: 1px solid;
	border-color: #fce6e6 #e4141b #e4141b #fce6e6;
	text-align: center;
	background: #fff;
	padding: 0 2px 0 2px;
	text-decoration: none;
	color: #e4141b;
}

.rss a:hover {
	background: #fce6e6;
}
