html {
	background: #1e1e1e;
}
body {
	background: transparent url("//macromates.com/images/site/bg_body") repeat-y 50% 0px;
/* font: 0.72em/170% "Lucida Grande", Verdana, Helvetica, sans-serif;*/
	font: 12px "Lucida Grande", Verdana, Helvetica, sans-serif;
	margin: 0;
	padding: 0;
}
a[href] {
	color: #525151;
}

#wrapper { /* IE workaround */
	margin: 0 auto;
	padding: 0;
	width: 750px;
}
html>body #wrapper {
	margin: 0 auto;
	padding: 0;
	width: auto;
	max-width: 750px;
}

#header {
	position: relative;
	background: #4B055A url("//macromates.com/images/site/bg_header") no-repeat 0px 0px;
	border-bottom: 1px solid #861b90;
	height: 113px;
}
#header h1 {
	position: absolute;
	left: 60px;
	top: 40px;
	width: 335px;
	height: 50px;
	cursor: pointer;
	text-indent: -9999px;
	overflow: hidden;
}

#navbar {
	background: #232323 url("//macromates.com/images/site/bg_navigation") repeat-x 0px 0px;
	border-top: 5px solid #6D0E79;
	border-bottom: 1px solid #171717;
	margin: 0;
	padding: 0.5em 0;
	width: 100%;
}
#navbar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
#navbar li {
	display: inline;
	margin: 0;
	padding: 0 0 0 25px;
	text-shadow: 0px 2px 4px #000;
}
#navbar li a {
	color: #5b5b5b;
	text-decoration: none;
}

#intro		#navi_intro			a,
#blog			#navi_blog			a,
#toc			#navi_manual		a,
#chapter		#navi_manual		a,
#wiki			#navi_wiki			a,
#support		#navi_support		a,
#navbar li a:hover {
	color: #fff;
}

#page_body {
	margin: 0;
	padding: 0;
	position: relative;
	overflow: hidden;
}

#content { /* IE workaround */
	margin: 0;
	padding: 25px;
	width: 430px;
	height: 584px; /* (64+2*20+2)*6 - 2 - 2*25 */
	background: #fff;
}
html>body #content {
	margin: 0;
	padding: 25px;
	width: auto;
	height: auto;
	max-width: 430px;
	min-height: 584px; /* (64+2*20+2)*6 - 2 - 2*25 */
	background: #fff;
}
#content :first-child {
	margin-top: 0px;
}
#content :first-child + h1 {
	margin-top: 0px;
}

#sidebar {
	margin: 0;
	padding: 0;
	top: 0px;
	left: 480px;
	width: 270px;
	background-color: #e8eaea;
	position: absolute;
}
#sidebar .item {
	color: #5b5b5b;
	border-bottom: 2px solid #fff;
	padding: 20px;
	min-height: 64px;
}
#sidebar .item * {
	margin: 0px;
}
#sidebar .item h4 {
	margin-bottom: 1em;
	font-size: 120%;
}
#sidebar .item p {
	font-size: 90%;
}
#sidebar .item a {
	text-decoration: none;
}		  
#sidebar .item a:hover {
	text-decoration: underline;
}

#sidebar .item #download,
#sidebar .item #purchase,
#sidebar .item #manual,
#sidebar .item #screencasts,
#sidebar .item #ratings,
#sidebar .item #book,
#sidebar .item #rss_feed {
	display: block;
	overflow: hidden;
	width: 64px;
	height: 64px;
	float: left;
	margin: 0 10px 0 0;
	padding: 0;
	text-indent: -9999px;
}

#sidebar .item #download		{ background-image: url("//macromates.com/images/site/download"); }
#sidebar .item #purchase		{ background-image: url("//macromates.com/images/site/purchase"); }
#sidebar .item #manual			{ background-image: url("//macromates.com/images/site/pdf"); }
#sidebar .item #screencasts	{ background-image: url("//macromates.com/images/site/quicktime"); }
#sidebar .item #book				{ background-image: url("//macromates.com/images/site/book"); }
#sidebar .item #ratings			{ background-image: url("//macromates.com/images/site/ratings"); }
#sidebar .item #rss_feed		{ background-image: url("//macromates.com/images/site/rss"); }

#footer {
	position: relative;
	margin: 0;
	padding: 0.75em 25px 0.75em 25px;
	min-height: 1em;
	clear: both;
	color: #b5b5b5;
	background: #2E2E2E;
}
#footer * {
	margin: 0;
	padding: 0;
}
#footer a {
	color: #b5b5b5;
	text-decoration: none;
}
#footer a:hover {
	color: #2E2E2E;
	background: #b5b5b5;
	text-decoration: none;
}
#footer .left {
	float: left;
}
#footer .right {
	float: right;
}

/* ========== */
/* = Teaser = */
/* ========== */

#teaser #content:first-child {
	margin-top: -25px;
}

#teaser #content { /* IE workaround */
	width: 700px;
}
html>body#teaser #content {
	width: auto;
	max-width: 700px;
}
#teaser #sidebar {
	display: none;
}

#teaser_bar {
	background: #2E2E2E url("//macromates.com/images/site/bg_teaser.gif") no-repeat 100% 0px;
	color: #b5b5b5;
	margin: -25px -25px 25px -25px;
	padding: 10px 0 0 0;
/*	float: left;*/
/*	width: 100%;*/
/*	overflow: hidden;*/
}
#teaser_bar .teaseritem {
	float: left;
	width: 29%;
	padding: 40px 0px 20px 25px;
	text-shadow: 2px 2px 2px #000;
/*	background-color: #DDD;*/
}
#teaser_bar h2 {
	color: #6b6b6b;
	font-size: 280%;
	font-weight: normal;
	margin: 20px 0 -5px 25px;
	text-shadow: 2px 2px 2px #000;
}
#teaser_bar h3 {
	color: #fff;
	font-size: 140%;
	font-weight: normal;
}
#teaser_bar .teaseritem a {
	color: #b5b5b5;
	text-decoration: none;
}
#teaser_bar .teaseritem a:hover {
	color: #ffffff;
	text-decoration: none;
}

/* ======================== */
/* = Page Specific Styles = */
/* ======================== */

#intro #content > p:first-child {
	font-weight: bold;
	color: #7b7b7b;
}

#intro #content img#project_window {
  float: right;
  margin-left: 10px;
}
#intro #content img#theme_editor {
  float: left;
  margin-right: 10px;
}

#intro #content ul a {
	text-decoration: none;
}
#intro #content ul a:hover {
	text-decoration: underline;
}

.infobox {
	background-color: #f0f0f0;
	border: 1px solid #cccbba;
	border-radius: 10px;
	padding: 10px;
	margin-bottom: 1em;
}

.infobox p:last-child {
	margin-bottom: 0;
}

.caution {
	margin: 25px;
	border: 1px solid #cccbba;
	padding: 10px;
	background: #f0f0f0 url("//macromates.com/images/site/caution") no-repeat 21px center;
}
.caution ul {
	margin: 0;
	padding: 0 0 0 64px;
	list-style-type: none;
	font-size: 85%;
}
.caution li {
	margin: 0;
}
.caution li + li {
	margin-top: 1em;
}
.caution li p {
	margin: 0;
}

.textbox {
	padding: 1em 40px;
}

.table-bordered {
	border-collapse: collapse;
	border-top: 1px solid #919699;
	border-left: 1px solid #919699;
}
.table-bordered tr {
	padding: 0;
	margin: 0;
}
.table-bordered th, .table-bordered td {
	margin: 0;
	border-bottom: 1px solid #919699;
	border-right: 1px solid #919699;
}
.table-bordered th {
	padding: 4px 8px;
	background: #E2E2E2;
	font-weight: bold;
	text-align: left;
}
.table-bordered td {
	padding: 8px;
	vertical-align: top;
}
.table-bordered p {
	margin: 0;
}
.table-bordered p + p {
	margin-top: 1em;
}

/* ==================================== */
/* = Blog styles: Articles + Comments = */
/* ==================================== */

#blog .storytitle {
	margin: 0 0 0.5em 0;
}
#blog .storytitle a {
	color: #000;
	padding-bottom: 2px;
}
#blog .storytitle a, .feedback a {
	text-decoration: none;
}
#blog .storytitle a:hover {
/*	color: #999887;*/
	padding-bottom: 0px;
	border-bottom: 2px solid #000;
}

#blog .storydate {
	margin: 0;
	font-size: 80%;
	color: #999887;
}

#blog .storycontent {
	margin: 0 0 1em 0;
}
#blog .storycontent pre {
	background-color: #E2E2E2;
	border: 1px solid #919699;
	padding: 10px 20px 10px 20px;
	overflow: auto;
}
#blog .storycontent blockquote {
	margin: 1em 25px;
	padding: 0 8px;
	border-left: 4px solid #E6E5DD;
}

#blog .storycontent .read_more a {
	text-decoration: none;
}
#blog .storycontent .read_more a:hover {
	text-decoration: underline;
}

#blog .feedback {
	margin: 1em 0 0 0;
	padding-bottom: 2em;
	text-align: right;
	color: #cccbba;
	border-top: 1px dotted #cccbba;
	font-size: 80%;
}
#blog .feedback a {
	color: #cccbba;
}
#blog .feedback a:hover {
	text-decoration: underline;
}

#blog .comments {
	background-color: #f5f5f5;
	border: 1px dotted #cccbba;
	padding: 10px;
	margin: 20px 0 0 0;
}
#blog .comments > h2 {
	margin: 25px 0 10px 0;
	border-bottom: 1px dotted #cccbba;
}
#blog .comments > h2:first-child {
	margin-top: 0px;
}

#blog .comment_author, #blog .comments #commentlist {
	color: #999887;
}
#blog .comment_author a {
	color: #999887;
}
#blog .comments #commentlist {
	list-style: none;
	margin: 0;
	padding: 0;
}
#blog .comments #commentlist > li {
	padding: 0 0 10px 0;
}
#blog .comments #commentlist p {
	margin: 0;
}
#blog .comments #commentlist .comment_text p + p,
#blog .comments #commentlist .comment_text ol + p,
#blog .comments #commentlist .comment_text ul + p,
#blog .comments #commentlist .comment_text li {
	margin-top: 1em;
}
#blog .comments .comment_text {
	color: #000000;
	padding: 10px;
}

#blog #commentform {
	margin: 0;
}
#blog #commentform textarea {
	margin: 0;
	width: 100%;
}
#blog #commentform input {
	margin: 0;
}
#blog #commentform > p {
	margin: 0 0 10px 0;
}
#blog #commentform .last_paragraph {
	text-align: right;
	margin: 0;
}

#blog abbr[title] {
	cursor: help;
}

/* ============================= */
/* = Enumerate Manual Sections = */
/* ============================= */

#chapter #content {
	counter-reset: section var(--chapter-index);
}

#chapter #content h1 { counter-reset: subsection; }
#chapter #content h2 { counter-reset: subsubsection; }
#chapter #content h3 { counter-reset: subsubsubsection; }

#chapter #content h1:before {
	counter-increment: section;
	content: counter(section) " ";
}

#chapter #content h2:before {
	counter-increment: subsection;
	content: counter(section) "." counter(subsection) " ";
}

#chapter #content h3:before {
	counter-increment: subsubsection;
	content: counter(section) "." counter(subsection) "." counter(subsubsection) " ";
}

#chapter #content h4:before {
	counter-increment: subsubsubsection;
	content: counter(section) "." counter(subsection) "." counter(subsubsection) "." counter(subsubsubsection) " ";
}

/* ===================== */
/* = Table of Contents = */
/* ===================== */

#toc #content .toc-list {
	list-style-type: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

#toc #content .toc-h1 { font-weight: bold;   }
#toc #content .toc-h2 { font-weight: normal; }

#toc #content .toc-list a {
	color: #000;
	text-decoration: none;
}
#toc #content .toc-list a:hover {
	color: #FFF;
	background-color: #000;
}

#toc #content ol.toc-h1 { counter-reset: section;          }
#toc #content ol.toc-h2 { counter-reset: subsection;       }
#toc #content ol.toc-h3 { counter-reset: subsubsection;    }
#toc #content ol.toc-h4 { counter-reset: subsubsubsection; }

#toc #content li.toc-h1 { counter-increment: section;          }
#toc #content li.toc-h2 { counter-increment: subsection;       }
#toc #content li.toc-h3 { counter-increment: subsubsection;    }
#toc #content li.toc-h4 { counter-increment: subsubsubsection; }

#toc #content li.toc-h1:before { content: counter(section); }
#toc #content li.toc-h2:before { content: counter(section) "." counter(subsection); }
#toc #content li.toc-h3:before { content: counter(section) "." counter(subsection) "." counter(subsubsection); }
#toc #content li.toc-h4:before { content: counter(section) "." counter(subsection) "." counter(subsubsection) "." counter(subsubsubsection); }

#toc #content li.toc-h1:before { display: inline-block; margin-left: -60px; width: 60px; padding-right: 1ch; box-sizing: border-box; text-align: right; }
#toc #content li.toc-h2:before { display: inline-block; margin-left: -60px; width: 60px; }
#toc #content li.toc-h3:before { display: inline-block; margin-left: -60px; width: 60px; }
#toc #content li.toc-h4:before { display: inline-block; margin-left: -60px; width: 60px; }

#toc #content .toc-list.toc-h1 { padding-left: 60px; font-size: 21px; }
#toc #content .toc-list.toc-h2 { padding-left: 60px; font-size: 15px; }
#toc #content .toc-list.toc-h3 { padding-left: 60px; font-size: 12px; }
#toc #content .toc-list.toc-h4 { padding-left: 60px; font-size: 12px; }

#toc #content .toc-list > li, #toc #content .toc-list > li + li {
	margin-top: 4px;
}

#toc #content .toc-list.toc-h1 > li + li {
	margin-top: 1em;
}

/* ============================ */
/* = End of Table of Contents = */
/* ============================ */

#chapter #content { /* IE workaround */
	width: 700px;
}
html>body#chapter #content {
	width: auto;
	max-width: 700px;
}

#chapter pre {
	background-color: #f0f0f0;
	border: 1px solid #cccbba;
	padding: 10px 10px 10px 20px;
}

/* ========================== */
/* = Styling of user quotes = */
/* ========================== */

#quotes blockquote {
   font-style: italic;
   margin: 20px 20px 0 20px;
}
#quotes blockquote p {
   margin: 0 0 0 0;
}
#quotes .attribution:before {
   content: "— ";
}
#quotes .attribution {
   color: gray;
   margin: 0.5em 0 0 40px;
   font-size: 90%;
}

/* ========================= */
/* = Should be in wiki.css = */
/* ========================= */

#wiki .page_group {
	margin: 0;
	font-size: 80%;
	color: #999887;
}
#wiki .page_group a {
	color: #999887;
	text-decoration: none;
}
#wiki .page_group a:hover {
	text-decoration: underline;
}

#wiki .page_title {
	margin: 0 0 1em 0;
}
#wiki .page_title a {
	color: #000;
	text-decoration: none;
}
#wiki .page_title a:hover {
	text-decoration: underline;
}

#wiki #sidebar ul {
	margin-bottom: 0.5em;
}

#wiki pre > code {
   white-space: pre;
}
#wiki pre {
   background-color: #E2E2E2;
   border: 1px solid #919699;
   padding: 10px 10px 10px 20px;
}
#wiki #wikitext ul, #wiki #wikitext ol, #wiki #wikitext pre, #wiki #wikitext dl, #wiki #wikitext p { /* fix what PmWiki breaks */
   margin-bottom: 10px;
}
#wiki .page_group p {
   margin-bottom: 0px;
}
