
/**
 * Table of Contents:
 *
 *  1.0 - Reset
 *  2.0 - Repeatable Patterns
 *  3.0 - Basic Structure
 *  4.0 - Header
 *    4.1 - Site Header
 *    4.2 - Navigation
 *  5.0 - Content
 *    5.1 - Entry Header
 *    5.2 - Entry Meta
 *    5.3 - Entry Content
 *    5.4 - Entry Utility
 *    5.5 - Galleries
 *    5.6 - Attachments
 *    5.7 - Post/Paging Navigation
 *    5.8 - Author Bio
 *    5.9 - Comments
 *  6.0 - Sidebar
 *    6.1 - Widgets
 *  7.0 - Footer
 *  8.0 - Media Queries
 *  9.0 - Print
 * 10.0 - Legacy compatibility styles
 * ----------------------------------------------------------------------------
 */

/**
 * 1.0 Reset
 *
 * Modified from Normalize.css to provide cross-browser consistency and a smart
 * default styling of HTML elements.
 *
 * @see http://git.io/normalize
 * ----------------------------------------------------------------------------
 */

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing:    border-box;
	box-sizing:         border-box;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
nav,
section,
summary {
	display: block;
}

audio,
canvas,
video {
	display: inline-block;
}

audio:not([controls]) {
	display: none;
	height: 0;
}

[hidden] {
	display: none;
}

html {
	font-size: 100%;
	overflow-y: scroll;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

html,
button,
input,
select,
textarea {
	font-family: Georgia, serif;
}

body {
	color: #000;
	line-height: 1.5;
	margin: 0;
}

a {
	color: #004B91;
	text-decoration: none;
}

a:visited {
	color: #743399;
}

a:focus {
	outline: thin dotted;
}

a:active,
a:hover {
	color: #FF4B33;
	outline: 0;
}

a:hover {
	text-decoration: underline;
}

/* @todo decide vertical rhythm, most twentythirteen margin have been kept, diff against legacy thematic is noted in comments */
h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-family: Arial, sans-serif;
	line-height: 1.3;
}

h1 {
	font-size: 34px;
	margin: 33px 0;
}

h2 {
	font-size: 27px;
	margin: 25px 0;
}

h3 {
	font-size: 22px;
	margin: 22px 0;
	font-style: italic;
}

h4 {
	font-size: 18px;
	margin: 25px 0;
	text-transform: uppercase;
	
}

h5 {
	font-size: 18px;
	margin: 30px 0;
}

h6 {
	font-size: 16px;
	margin: 36px 0;
}

address {
	font-style: italic;
	margin: 0 0 24px;
}

abbr[title] {
	border-bottom: 1px dotted #333;
	cursor: help;
}

b,
strong {
	font-weight: bold;
}

dfn {
	font-style: italic;
}

mark {
	background: #ff0;
	color: #000;
}

p {
	margin: 0 0 24px;
}

code,
kbd,
pre,
samp {
	font-family: monospace, serif;	/* legacy font is monaco */
	font-size: 14px;
	-webkit-hyphens: none;
	-moz-hyphens:    none;
	-ms-hyphens:     none;
	hyphens:         none;
}

pre {
	background: #f5f5f5;
	color: #666;
	font-family: monospace;
	font-size: 14px;
	margin: 20px 0;
	overflow: auto;
	padding: 20px;
	white-space: pre;
	white-space: pre-wrap;
	word-wrap: break-word;
}

blockquote,
q {
	-webkit-hyphens: none;
	-moz-hyphens:    none;
	-ms-hyphens:     none;
	hyphens:         none;
	quotes: none;
	font-size: 18px;
	font-style: italic;
	color: #666;
	/* font-weight: 300; */
	margin: 24px 40px; /* legacy was 0 3em */
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: "";
	content: none;
}

blockquote blockquote {
	margin-right: 0;
}

blockquote.left {
	float: left;
	margin-left: 0;
	margin-right: 20px;
	text-align: right;
	width: 33%;
}
blockquote.right {
	float: right;
	margin-left: 20px;
	margin-right: 0;
	text-align: left;
	width: 33%;
}

blockquote cite,
blockquote small {
	font-size: 14px;
	font-weight: normal;
	font-style: normal;
	/* text-transform: uppercase; */
}

blockquote em,
blockquote i {
	font-style: normal;
	/* font-weight: 300; */
}

blockquote strong,
blockquote b {
	font-weight: 400;
}

small {
	font-size: smaller;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	bottom: 1.5ex;
}

sub {
	top: 0.5ex;
}

dl {
	margin: 0 1.5em; /* 2013 margin-bottom 20px */
}

dt {
	font-weight: bold;
}

dd {
	margin: 0 0 20px; /* legacy margin-bottom 18px */
}

menu,
ol,
ul {
	margin: 16px 0; /* legacy margins 0 0 18px 2.5em */
	padding: 0 0 0 40px;
}

ul {
	list-style-type: disc;
}

ol {
	list-style-type: decimal;
}
ol ol {
	list-style: upper-alpha;
}
ol ol ol {
	list-style: lower-roman;
}
ol ol ol ol {
	list-style: lower-alpha;
}

nav ul,
nav ol {
	list-style: none;
	list-style-image: none;
}

li > ul,
li > ol {
	margin: 0;
}

img {
	-ms-interpolation-mode: bicubic;
	border: 0;
	vertical-align: middle;
}

svg:not(:root) {
	overflow: hidden;
}

figure {
	margin: 0;
}

form {
	margin: 0;
}

fieldset {
	/* border: 1px solid #c0c0c0; */
	margin: 0 2px;
	padding: 0.35em 0.625em 0.75em;
}

legend {
	border: 0;
	padding: 0;
	white-space: normal;
}

button,
input,
select,
textarea {
	font-size: 100%;
	margin: 0;
	max-width: 100%;
	vertical-align: baseline;
}

button,
input {
	line-height: normal;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	-webkit-appearance: button;
	cursor: pointer;
}

button[disabled],
input[disabled] {
	cursor: default;
}

input[type="checkbox"],
input[type="radio"] {
	padding: 0;
}

input[type="search"] {
	-webkit-appearance: textfield;
	padding-right: 2px; /* Don't cut off the webkit search cancel button */
	width: 270px;
}

input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

textarea {
	overflow: auto;
	vertical-align: top;
}

table {
	border: 1px solid #ccc;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 14px;
	line-height: 2; /* legacy uses 1.3 (18px of 13px)*/
	margin: 0 0 20px;
	width: 100%;
}

caption,
th,
td {
	font-weight: normal;
	text-align: left;
	padding: .7em 1.25em;
}

caption {
	font-size: 16px;
	margin: 20px 0;
}

th {
	font-weight: bold;
	text-transform: uppercase;
}

td {
	border-top: 1px solid #ccc;
}

del {
	color: #333;
}

ins {
	background: #fff9c0;
	text-decoration: none;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin: 0 0 24px; /* legacy used bottom 22px */
}


/**
 * 2.0 Repeatable Patterns
 * ----------------------------------------------------------------------------
 */

/* Clearing floats */
.clear:after,
#access:after,
.site-main:after {
	clear: both;
}

.clear:before,
.clear:after,
#access:after,
.site-main:after {
	content: "";
	display: table;
}

/* Assistive text */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
}

.screen-reader-text:focus {
	/* this has no equivalent in legacy thematic
	@todo chech styles for consistency with current design */
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	line-height: normal;
	padding: 15px 23px 14px;
	position: absolute;
	left: 5px;
	top: 5px;
	text-decoration: none;
	width: auto;
	z-index: 100000; /* Above WP toolbar */
	outline: 0;
}

/* Form fields, general styles first. */
button,
input,
textarea {
	font-family: inherit;
	padding: 5px;
}

input,
textarea {
	color: #000;
}

input:focus,
textarea:focus {

}

/* Buttons */ 
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
	display: inline-block;
	text-decoration: none;
}

button:hover,
button:focus,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus {
	outline: none;
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active {
}


/* Placeholder text color -- selectors need to be separate to work. */
::-webkit-input-placeholder {
	color: #666;
}

:-moz-placeholder {
	color: #666;
}

::-moz-placeholder {
	color: #666;
}

:-ms-input-placeholder {
	color: #666;
}

/*
 * Responsive images
 *
 * Fluid images for posts, comments, and widgets
 */
.entry-content img,
.entry-summary img,
.comment-content img,
.widget img,
.wp-caption {
	max-width: 100%;
}

/* Make sure images with WordPress-added height and width attributes are scaled correctly. */
.entry-content img,
.entry-summary img,
.comment-content img[height],
img[class*="align"],
img[class*="wp-image-"],
img[class*="attachment-"] {
	height: auto;
}

img.size-full,
img.size-large,
img.wp-post-image {
	height: auto;
	max-width: 100%;
}

/* Make sure videos and embeds fit their containers. */
embed,
iframe,
object,
video {
	max-width: 100%;
}

/* Override the Twitter embed fixed width. */
.entry-content .twitter-tweet-rendered {
	max-width: 100% !important;
}

/* Images */
.alignleft {
	float: left;
}

.alignright {
	float: right;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

img.alignleft {
	margin: 5px 20px 5px 0;
}

.wp-caption.alignleft {
	margin: 5px 10px 5px 0;
}

img.alignright {
	margin: 5px 0 5px 20px;
}

.wp-caption.alignright {
	margin: 5px 0 5px 10px;
}

img.aligncenter {
	margin: 5px auto;
}

img.alignnone {
	margin: 5px 0;
}

.wp-caption .wp-caption-text,
.entry-caption,
.gallery-caption {
	color: #666;
	font-size: 18px; /* legacy was 13px sixe, 18px line height */
	font-style: italic;
	font-weight: 300;
	/* other legacy styles:
	text-align: center;
	max-width: 96%;
	*/
}

img.wp-smiley,
.rsswidget img {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

.wp-caption.alignleft + ul,
.wp-caption.alignleft + ol  {
	list-style-position: inside;
}

/* legacy had image styles for gallery too
@todo see if gallery styles are needed */


/**
 * 3.0 Basic Structure
 * ----------------------------------------------------------------------------
 */

.site-wrapper {
	margin: 0 auto;
	width: 100%;
}

#access {
	position: relative;
	border-bottom: 1px solid #ccc;
}

.branding,
.menu,
.site-main,
#subsidiary,
#siteinfo {
	padding-left: 20px;
	padding-right: 20px;
	max-width: 1024px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 999px) {	
	
	.site-content {
		max-width: 50em;
		margin-left: auto;
		margin-right: auto;
	}

	.main-aside,
	.sub-aside {
		margin-left: auto;
		margin-right: auto;
		max-width: 57.143em;
	}
}


@media (min-width: 1000px) {
	
	.content-wrapper,
	.main-aside,
	.sub-aside {
		position: relative;
	}
	
	.content-wrapper {
	    width: 66.66667%;
	}
	
	.site-content {
		width: 91.66667%;
	}
	
	.sub-aside {
	    width: 33.33333%;
	    padding: 0 20px 0 0;
		float: left;
	}
	
	.third-sub-aside {
	    padding: 0;
		float: right;
	}
	
	#siteinfo {
		clear: both;
	}
	
	.right-sidebar .content-wrapper {
		float:left;
	}
	
	.right-sidebar .main-aside {
		width: 33.33333%;
		float: right;
	}
	
	.right-sidebar .secondary-aside {
		clear: right;
	}
	
	.left-sidebar .content-wrapper,
	.left-sidebar .site-content {
		float: right;
	}
	
	.left-sidebar .main-aside {
		float: left;
		width: 33.33333%;
		
	}
	
	.left-sidebar .secondary-aside {
		clear: left;
	}
	
	.three-columns .site-main {
		position: relative;
	}
	
	.three-columns .content-wrapper {
		width: 100%;
		float:left;
	}
	
	.three-columns .site-content {
		margin: 0 25%;
		overflow:hidden;
		width: 52%;
	}
	
	.three-columns .main-aside {
		width: 22%;
	}
	
	.three-columns .primary-aside {
	    float:left;
		margin: 0 0 0 -100%;
	}
	
	.three-columns .secondary-aside {
		float:left;
		margin: 0 0 0 -22%;
	}
	
	.full-width .content-wrapper,
	.full-width .site-content {
		width: 100%;
		margin-left: 0;
	}
	
	.full-width .site-content {
		max-width: 100%;
		margin-left: auto;
		margin-right: auto;
	}
	
	.full-width #comments {
		max-width: 40em;
	}
	
}

/**
 * 4.0 Header
 * ----------------------------------------------------------------------------
 */

/**
 * 4.1 Site Header
 * ----------------------------------------------------------------------------
 */

.site-header {

}

.branding {
	padding-top: 96px; 
	padding-bottom: 48px;
	/* legacy padding:88px 0 44px 0, if new baseline is 24 px then 4*24=96 */
}

.site-title {
    font-family: Arial,sans-serif;
    font-size: 34px;
    font-weight: bold;
    line-height: 40px;
	/* @todo check site-title still looks ok */
}

.site-title a {
	color: #000;
	text-decoration: none;
}

.site-title a:active,
.site-title a:hover {
	color: #ff4b33;
}

.tagline {
	color: #666;
	font-style: italic;
	font-size: 16px;
	margin: 6px 0;
	font-weight: normal;
	font-family: Georgia, serif;
}


/**
 * 4.2 Navigation
 * ----------------------------------------------------------------------------
 */

@media( max-width: 600px ) {
	/* Small menu */
	.menu-toggle {
		cursor: pointer;
		/* font: bold 16px/1.3 "Source Sans Pro", Helvetica, sans-serif; */
		margin: 0;
		padding: 12px 0 12px 20px;
		font-style: normal;
	}

	.menu-toggle:after {
		/* content: "\f502";
		font-size: 12px;
		padding-left: 8px;
		vertical-align: -4px; */
	}

	.toggled-on .menu-toggle:after {
		/* content: "\f500";
		vertical-align: 2px; */
	}

	.toggled-on .sf-menu,
	.toggled-on .sf-menu > ul {
		display: block;
		margin-left: 0;
		padding: 0;
		width: 100%;
	}

	.toggled-on li,
	.toggled-on .children {
		display: block;
	}

	.toggled-on .sf-menu li > ul {
		background-color: transparent;
		display: block;
		float: none;
		position: relative;
		padding-left: 0;
		left: auto;
		top: auto;
	}

	.toggled-on .sf-menu li li {
		padding-left: 1.5em;
	}

	.toggled-on .sf-menu li > ul a {
		width: auto;
	}

	.toggled-on .sf-menu a, 
	.toggled-on .sf-menu a:visited  { /* visited pseudo selector so IE6 applies text colour*/
		color:#666;
	}

	.toggled-on .sf-menu li:hover > a,
	.toggled-on .sf-menu .children a {

	}

	.toggled-on .sf-menu .current-menu-item > a,
	.toggled-on .sf-menu .current-menu-parent > a,
	.toggled-on .sf-menu .current-menu-ancestor > a,
	.toggled-on .sf-menu .current-post-ancestor > a,
	.toggled-on .sf-menu .current_page_item > a,
	.toggled-on .sf-menu .current_page_ancestor > a,
	.toggled-on .sf-menu .current_page_parent > a {
		font-style: italic;
	}
	
	.toggled-on .sf-menu .current_page_item > a,
	.toggled-on .sf-menu .current-menu-item > a {
		font-style: italic;
		color: #004B91;
	}

	.toggled-on .sf-menu li a:hover,
	.toggled-on .sf-menu ul a:hover {
		background:#fafafa;    
	}

	ul.sf-menu,
	div.sf-menu > ul {
		display: none;
	}
}

@media( min-width: 601px ) {
	
	.menu-toggle {
		display: none;
	}
	
	/*** ESSENTIAL STYLES ***/
	.sf-menu, .sf-menu * {
		margin:0;
		padding:0;
		list-style:none;
	}
	.sf-menu {
		line-height:1.0;
	}
	.sf-menu ul {
		position:absolute;
		top:-999em;
		width:10em; /* left offset of submenus need to match (see below) */
		margin-top: 3px;
	}
	.sf-menu ul li {
		width:100%;
	}
	.sf-menu li {
		float:left;
		position:relative;
		display: block;
	}
	.sf-menu a {
		display:block;
		position:relative;
	}
	.sf-menu li:hover ul,
	.sf-menu li.sfHover ul {
		left:0;
		top:2.5em; /* match top ul list item height */
		z-index:99;
	}
	ul.sf-menu li:hover li ul,
	ul.sf-menu li.sfHover li ul {
		top:-999em;
	}
	ul.sf-menu li li:hover ul,
	ul.sf-menu li li.sfHover ul {
		left:10em; /* match ul width */
		top:0;
	}
	ul.sf-menu li li:hover li ul,
	ul.sf-menu li li.sfHover li ul {
		top:-999em;
	}
	ul.sf-menu li li li:hover ul,
	ul.sf-menu li li li.sfHover ul {
		left:10em; /* match ul width */
		top:0;
	}

	/*** THEMATIC SKIN ***/
	.sf-menu {
		float:left;
		margin-left:1px;
		position: relative;
		top: 1px;
	}

	.sf-menu a {
	  	border-color:#CCCCCC;
	    border-style:solid;
	    border-width:1px;
		padding:9px 13px;
		text-decoration:none;
		margin-left:-1px;
	}
	.sf-menu .current-menu-item > a,
	.sf-menu .current-menu-parent > a,
	.sf-menu .current-menu-ancestor > a,
	.sf-menu .current-post-ancestor > a,
	.sf-menu .current_page_item > a,
	.sf-menu .current_page_ancestor > a,
	.sf-menu .current_page_parent > a {
		border-bottom-color:#fff;
		font-style: italic;
	}
	
	.sf-menu a, .sf-menu a:visited  { /* visited pseudo selector so IE6 applies text colour*/
		color:#666;
	}
	.sf-menu .current-menu-item > a,
	.sf-menu .current_page_item > a {
		color: #004B91;	
	}
	.sf-menu li {
		background:#fff;
	}
	.sf-menu li li {
		background:#fff;
	}
	.sf-menu li li li {
		background:#9AAEDB;
	}
	.sf-menu li:hover, 
	.sf-menu li.sfHover, 
	.sf-menu a:hover, 
	.sf-menu a:active {
	    background:#fafafa;
		outline: 0;
	    border-bottom-color:#ccc;
	}
	.sf-menu ul {
	    border-bottom:1px solid #ccc;
	}
	.sf-menu li:hover ul,
	.sf-menu li.sfHover ul {
		top:32px; /* overriding essential styles */
	}
	.sf-menu ul ul {
	    margin-top:0;
	}
	.sf-menu ul a {
	    background:#fafafa;
		border-bottom:none;
	}
	.sf-menu ul a:hover {
	    color: #FF4B33;
	}
}

/**
 * 5.0 Content
 * ----------------------------------------------------------------------------
 */

.site-main {
	padding-top: 72px;
}

.page-title {
    font-size: 18px;
    padding: 0 0 44px 0;
	margin: 0;
}

.attachment .page-title {
    font-style: italic;
}

.page-title a {
    color: #666;
    text-decoration: none;
}

.page-title a:active,
.page-title a:hover {
    color: #FF4B33;
}

.page-title span {
    font-style: italic;
}

.page-title .meta-nav {
    font-style: normal;
}

.archive-meta {
	font-size: 14px;
	position: relative;
	top: -44px;
}

.hentry {
    padding: 0 0 24px 0; /* legacy used bottom padding only of 22px */
}

.single .hentry {
    padding: 0;
}

.home .site-content .sticky {
    border: 1px solid #ccc;
    margin: 0 0 72px 0;
    padding: 24px 20px 0 20px;
}

/**
 * 5.1 Entry Header
 * ----------------------------------------------------------------------------
 */

.entry-title {
    font-family: Arial,sans-serif;
    font-size: 26px; /* @todo check type hierarchy */
    font-weight: bold;
    line-height: 26px;
    padding: 0 0 12px 0;
	margin: 0;
	word-wrap: break-word;
}

.entry-title a {
    color: #000;
    text-decoration: none;
}

.entry-title a:active,
.entry-title a:hover {
    color: #FF4B33;
}

/**
 * 5.2 Entry Meta
 * ----------------------------------------------------------------------------
 */

.entry-meta {
    color: #666;
    font-size: 14px;
    font-style: italic;
    /* legacy had line-height: 18px; */
}

.entry-meta .author {
}

.entry-meta .n, .entry-meta .nickname {
    font-size:11px;
    font-style:normal;
    letter-spacing:0.05em;
    text-transform:uppercase;
}

.entry-meta a {
    color: #666;
    text-decoration: none;
}

.entry-meta a:active,
.entry-meta a:hover {
    color: #FF4B33;
}

.entry-meta abbr {
    border: none;
    cursor: text;
    font-size: 12px;
    font-style: normal;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/**
 * 5.3 Entry Content
 * ----------------------------------------------------------------------------
 */

.entry-content {
	-webkit-hyphens: auto;
	-moz-hyphens:    auto;
	-ms-hyphens:     auto;
	hyphens:         auto;
	word-wrap: break-word;
    padding: 24px 0 0 0;
}

.entry-content table {
    margin-left:1px;
}

.entry-content embed {
    margin:0 0 22px 0;
}

/* Page links */
.page-link {
	clear: both;
	font-size: 16px; /* legacy had 13px font 18px line-height */
	font-weight: bold;
	line-height: 2.2;
    margin: 0 0 24px 0;
    padding: 24px 0 0 0;
	word-spacing: 0.5em;
}

.page-link a,
.page-link > span {
	border: 1px solid #ccc;
	color: #666;
	font-weight: normal;
	padding: 5px 10px;
	text-decoration: none;
}

.page-link a:active,
.page-link a:hover {
    color: #FF4B33;
}

/**
 * 5.4 Entry Utility
 * ----------------------------------------------------------------------------
 */

.entry-utility {
	clear: both;
    color: #666;
    font-size: 14px;
    line-height: 18px;
    margin:0 0 48px 0;
}
.entry-utility a {
    color: #666;
    font-style: italic;
    text-decoration: none;
}
.entry-utility a:active,
.entry-utility a:hover {
    color: #FF4B33;
}

/**
 * 5.5 Galleries
 * ----------------------------------------------------------------------------
 */

.gallery {
	display: block;
	clear: both;
	overflow: hidden;
	margin: 0 auto;
    padding:0 0 24px 0;
}

.gallery-row {
	display: block;
	clear: both;
	overflow: hidden;
	margin: 0;
}

.gallery-item {
	overflow: hidden;
	float: left;
	margin: 0;
	text-align: center;
	list-style: none;
}

.gallery-icon {
	margin: 0 5px;
}

.site-content .gallery img {
    border: 1px solid #ccc;
	margin: 0;
	padding: 6px;
}

.gallery-item img, .gallery-item img.thumbnail {
	margin: 0 auto;
}

.gallery-caption {
	padding: 6px 6px 0;
}


/**
 * 5.6 Attachments
 * ----------------------------------------------------------------------------
 */

.attachment-jpeg #container,
.attachment-png #container {
    width: 100%;
}

.attachment-jpeg .site-content,
.attachment-png .site-content {
    max-width: 100%;
}

.attachment-jpeg #comments,
.attachment-png #comments {
    max-width: 40em;
    overflow: hidden;
}

.attachment-jpeg .main-aside,
.attachment-png .main-aside {
    display: none;    
}


/**
 * 5.7 Post/Paging Navigation
 * ----------------------------------------------------------------------------
 */

.navigation {
    color: #666;
    font-size: 13px; /* @todo check type hierarchy */
    line-height: 18px;
    margin: 0px 0 24px 0;
    overflow: hidden;
}

.navigation a {
    color: #666;
    font-style: italic;
    text-decoration: none;
}

.navigation a:active,
.navigation a:hover {
    color: #FF4B33;
}

.navigation .meta-nav {
    font-style: normal;
}

.nav-previous {
	float: left;
	width: 50%;
}

.nav-next {
	float: right;
	width: 50%;
	text-align: right;
}

#nav-above,#nav-below {
	width: 100%;
}

#nav-above {
    display: none;
}

.paged #nav-above {
    display: block;
    padding: 0 0 48px 0;
}

/**
 * 5.8 Author Bio
 * ----------------------------------------------------------------------------
 */

#author-info {
    margin: 0 0 48px 0;
    overflow:hidden;
}

#author-info .avatar {
    float: left;
    margin: .3em 1em 0 0;
}


/**
 * 5.9 Comments
 * ----------------------------------------------------------------------------
 */

#comments {
	clear: both;
    padding: 24px 0 0 0;
	word-wrap: break-word;
}

#comments code {
    font-size:12px;
    line-height:18px;
}

#comments h3 {
    font-family:Arial,sans-serif;
    font-size:15px;
    font-weight:bold;
    line-height:22px;
    padding:0 0 18px 0;
}

#comments-list {
    border: 1px solid #ccc;
    border-bottom: none;
    margin: 0 0 18px;
	padding-left: 0;
}

#comments-list h3 {
	padding-bottom: 0;
}

#comments-list {
    list-style: none;
}

#comments-list ul,
#comments-list ol {
    padding-bottom: 18px;
}

#comments-list .children {
	list-style: none;
	padding-left: 0;
}

#comments-list ul ul,
#comments-list ol ol,
#comments-list ul ul ul,
#comments-list ol ol ol {
    padding-bottom:0;
}

#comments-list .comment {
    background: #fafafa;
    border-bottom: 1px solid #ccc;
    padding: 18px 1.5em 0 1.5em;
    position: relative;
}

#comments-list li.alt {
    background: #fff;
}

#comments-list li.bypostauthor {
    background: #FFFFCC;
}

#comments-list ul .comment {
    border: 1px solid #ccc;
    margin: 0 0 18px 0;
}

#comments-list li .avatar {
    position: absolute;
    top: 22px;
    left: 1.5em;
    width: 36px;
    height: 36px;
}

#comments-list .comment-author {
    font-weight:bold;
    padding:9px 0 0 46px;
}

#comments-list .comment-meta {
    color: #666;
    font-size: 11px;
    padding: 0 0 9px 46px;
}

#comments-list .comment-meta a {
    color: #666;
    font-style: italic;
    text-decoration: none;
}

#comments-list .comment-meta a:active,
#comments-list .comment-meta a:hover {
    color: #FF4B33;
}

.comment-reply-link {
    font-size: 11px;
    padding: 0 0 18px 0;
    text-align: right;
}

.comment-reply-link a {
    color: #666;
    font-style: italic;
    text-decoration: none;
}

.comment-reply-link a:active,
.comment-reply-link a:hover {
    color: #FF4B33;
}

.comment-navigation {
    font-weight: bold;
	padding: 18px 0 24px;
    margin-right: 0.5em;
}

.comment-navigation a {
    border: 1px solid #ccc;
    color: #666;
    font-weight: normal;
    padding: 0.5em 0.75em;
    text-decoration: none;
}

.comment-navigation a:active,
.comment-navigation a:hover {
    color: #FF4B33;
}

.comment-navigation a,
.comment-navigation span {
    margin-right: 0.5em;
}

#trackbacks-list .comment-content {
    position: absolute;
    left: -10000px;
}

#respond {
    background: #fff;
    margin-bottom: 24px;
    overflow: hidden;
    padding: 18px 0 0 0;
    position: relative;
}

#comments-list #respond {
    border-bottom: 1px solid #ccc;
    margin: 0 0 18px 0;
    padding: 18px 1.5em;
}

#comments-list ul #respond {
    border: 1px solid #ccc;
    margin:0;
}

#cancel-comment-reply {
    font-size: 11px;
    position: absolute;
    top: 18px;
    right: 1.5em;
}

#cancel-comment-reply a {
    color: #666;
}

#respond .required {
    color: #FF4B33;
    font-weight: bold;
}

.form-section label {
    font-size: 14px;
}

.form-section input {
    margin: 0 0 18px 0;
    width: 98%;
}

.form-section textarea {
    width:99%;
}

#form-allowed-tags p {
    color: #666;
    font-size: 12px;
    margin: 0;  
    padding: 10px 0;  
}

#form-allowed-tags span {
    font-style: italic;
}

#form-allowed-tags code {
    font-size: 12px;
    line-height: normal;
}

.form-submit {
    padding: 18px 0 0 0;
    text-align: right;
}

.subscribe-to-comments {
    color: #666;
    float: left;
    font-size: 11px;
    margin: 0;
    padding: 18px 0 0 0;
}

.solo-subscribe-to-comments {
    color: #666;
    font-size: 11px;
    padding: 18px 0 0 0;
}

.comment_license {
    color: #666;
    clear: both;
    font-size: 11px;
    margin: 0;
    padding: 18px 0 0 0;
}


/**
 * 6.0 Sidebar
 * ----------------------------------------------------------------------------
 */

/**
 * 6.1 Widgets
 * ----------------------------------------------------------------------------
 */

.aside,
.aside input {
    font-size: 14px; /* @todo check type hierarchy */
    margin-bottom: 6px;
	word-wrap: break-word;
}

.aside p,
.aside ul,
.aside ol,
.aside dd,
.aside pre {
    margin-bottom: 18px;
}

.aside pre,
.aside code {
    font-size: 12px;
    line-height: 18px;
}

.aside .current-menu-item a,
.aside .current_page_item a {
    color: #FF4B33;
}

.aside .current-menu-item .menu-item a,
.aside .current_page_item .menu-item a {
    color: #666;
}

.aside .current-menu-item .menu-item a:hover,
.aside .current-menu-item .menu-item a:active,
.aside .current_page_item .menu-item a:hover,
.aside .current_page_item .menu-item a:active {
    color: #FF4B33;
}

.aside {
    color: #666;
}

.aside a {
    color: #666;
}

.aside a:active,
.aside a:hover {
    color: #FF4B33;
}

.aside caption {
    font-size: 11px;
    font-family: Arial,sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.widgetcontainer {
    margin: 0 20px;
}

.widgetcontainer ul {
    list-style: disc;
    margin: 0 0 24px 0;
	padding: 0 20px;
}

.widgetcontainer ul ul {
	margin-left: 20px;
	margin-bottom: 0;
}

.widgettitle {
    font-size: 18px;
    font-style: italic;
	font-family: Georgia, serif;
	font-weight: normal;
    margin-bottom: 12px;
}

.widgettitle a {
    text-decoration: none;
}

.widgetcontainer:first-child .widgettitle {
	margin-top: 6px;
}

.aside ul ul li {
    padding: 1px 0;
}

.aside ul ul ul {
    margin-bottom:0;
}

.aside form,
.aside table {
    margin-bottom:24px;
}

.aside table {
    border:none;
}

.aside thead {
    border: 1px solid #ccc;
}

.aside tbody {
    border: 1px solid #ccc;
}

.aside th, .aside td {
    border-right: 1px solid #ccc;
    padding: .25em .8em;
}

.aside tfoot tr {
    border:none;
}

.aside tfoot td {
    border-color:transparent;
}

.aside #searchsubmit {
	display: none;	
}

/* Main Asides */
.main-aside ul ul {
    padding:0;
}

.primary-aside {
    border: 1px solid #ccc;
    padding: 18px 0 0 0;
    margin-bottom: 24px;
}

/* Content Asides */
.site-content .aside {
    border: 1px solid #ccc;
    margin: 0 0 24px 0;
    padding: 18px 0 0 0;
}

.site-content .aside ul {
    padding:0 20px;
}

.site-content .aside ul ul {
    padding:0;
}

/* Footer Asides */
#subsidiary {
    padding-top: 36px;    
}


/**
 * 7.0 Footer
 * ----------------------------------------------------------------------------
 */

.site-footer {
    border-top: 1px solid #ccc;
    margin-top: 22px;
}

#siteinfo {
    color: #666;
    font-size: 14px;
    line-height: 18px;
    padding-top: 24px;
	padding-bottom: 48px;
}

#siteinfo a {
    color: #666;
}

#siteinfo a:active,
#siteinfo a:hover {
    color: #FF4B33;
}

#siteinfo p {
    margin: 0;
}


/**
 * 8.0 Media Queries
 * ----------------------------------------------------------------------------
 */

/* Does the same thing as <meta name="viewport" content="width=device-width">,
 * but in the future W3C standard way. -ms- prefix is required for IE10+ to 
 * render responsive styling in Windows 8 "snapped" views; IE10+ does not honor 
 * the meta tag. See http://core.trac.wordpress.org/ticket/25888.
 */
@-ms-viewport {
	width: device-width;
}
@viewport {
	width: device-width;
}


/**
 * 9.0 Print
 * ----------------------------------------------------------------------------
 */

@media print {
	body {
		background: none !important;
		color: #000;
		font-size: 10pt;
	}
}


/**
 * 10.0 Legacy compatibility styles
 * ----------------------------------------------------------------------------
 */

.thematic-xhtml .aside > ul {
	list-style: none;
	padding-left: 0;
}

.thematic-xhtml .main-aside .widgetcontainer > ul {
	padding-left: 20px;
}
