/*
Theme Name: Atmacish
Theme URI: http://atmac.org/
Description: ATMac variations on Twenty Fourteen theme
Author: Ricky Buchanan
Version: 1.1.0
Template: twentyfourteen
*/

/* These are my colours:
 *
 * Blue accent colour #005b9a (2014 "Accent")
 * Light grey background #f5f5f5 (2014 "Contrast")
 * Dark grey background #d5d5d5 (2014 "Background")
 *
 * Yellow background for boxed notes: #fafe69;
 * Orange background for boxed warnings/alerts: #f79913;
 * Red background for boxed errors/urgents: #bf0202;
 * Pale blue background for author comments: #f0f7fd;

 */

    
/******************************************/
/* Global Changes */
/******************************************/
/* center whole site */
.site {
	margin: 0 auto;
}

/* Fix site title to my preference */
h1.site-title {
	float: left;
	font-size: 32px;
    line-height: 48px;
	font-weight: 700;
	margin: 0;
}
h1.site-title a, h1.site-title a:visited {
    color: #005b9a;
}

.site-footer,
.site-info,
.site-info a {
	color: #000;
}

/******************************************/
/* Video/embed fluidity stuff */
/* From: http://websitesthatdontsuck.com/2011/12/fluid-width-oembed-videos-in-wordpress/ */
/******************************************/
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
    margin-bottom: 1em;
}
 
.embed-container iframe,  
.embed-container object,  
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/******************************************/
/* Front page changes */
/******************************************/

/* Fix feature grid height */
.grid .featured-content .entry-header { height: auto; min-height: 0; }

.grid .featured-content .entry-title { line-height: 1.15; }

.content-area, .content-sidebar { padding-top: 36px; }


/* Fix contrast on menu toggle for mobile mode */
.menu-toggle {
	background-color: #000;
	border-radius: 0;
	cursor: pointer;
	font-size: 0;
	height: 48px;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	top: 0;
	right: 0;
	text-align: center;
	width: 48px;
}

.menu-toggle:before {
	color: #fff;
	content: "\f419";
	display: inline;
	margin-top: 16px;
}

.menu-toggle:active,
.menu-toggle:focus,
.menu-toggle:hover {
	background-color: #41a62a;
}



/******************************************/
/* ATMac-specific elements */
/******************************************/
.photo-credit, .comment-policy {
    font-style: italic;
    font-size: 85%;
    padding-bottom: 1em;
}

.website-link {
    padding-bottom: 1em;
    
}

.disclaim {
    font-size: 85%;
}

/******************************************/
/* Take Control Boxes */
/******************************************/
.take-control-box {
    width:100%;
    background:#f5f5f5;
    padding: 12px;
    margin-bottom: 24px;
}

.take-control-cover {
    display:block;
    float:left;
    padding-right: 12px;
}
.take-control-title a {
    display:block;
    color:#767676;
    text-transform:uppercase;
    text-decoration:none;
    font-weight:bold;
}
.take-control-subtitle {
    display:block;
    font-weight:bold; 
}
.take-control-description {
}

/******************************************/
/* Attachment pages, non-image attachments */
/******************************************/
div.attachment-title { 
    text-align: center; 
    margin-left: auto;
    margin-right: auto;
}

/******************************************/
/* Widgets */
/******************************************/

/* delete top border */
.content-sidebar .widget .widget-title {
    border-top: none;
}

.primary-sidebar .widget h2.widget-title,
.content-sidebar .widget h2.widget-title {
   font-size: 20px;
}


/* Popular Posts Widget */
.widget .popular-posts ul {
    list-style: bullet;
}

/*  Lists in widgets */
.widget ul li {
    margin-bottom: 0.5em;
}


/******************************************/
/* WPTouch Pro Switch */
/******************************************/

.wptouch-desktop-switch {
    padding-top: 10px; 
    padding-bottom: 40px; 
    font-size: 110%; 
    text-align: center; 
    font-weight: bold;
}

/******************************************/
/* Boxed bits in articles */
/******************************************/

/* Notes */
.note {
	padding: 10px;
	margin: 20px;
	background-color: #ffd900;
	border-style: solid;
	border-width: thin;
}

/* Warnings/Alerts */
.warning {
	padding: 10px;
	margin: 1em;
	background-color: #f79913;
	border-style: solid;
	border-width: thin;
}

/* Errors */
.urgent {
	padding: 10px;
	margin: 1em;
	background-color: #f00;
	border-style: solid;
	border-width: thin;
	font-weight: bold;
}

/******************************************/
/* Taxonomy Landing Pages */
/* /categories, /tags, /series, etc. */
/***********nlr******************************/
dl.taxonomy-listings dt a {
	font-size: 1.65em;
	width: 100%;
	font-weight: bold; 
	color: #005B9A;
	line-height: 1em;
	margin-bottom: 0.25em;
	margin-top: 0.25em;
}

dl.taxonomy-listings dl {
    margin-left: 10%;
}

dl.taxonomy-listings dl dt a {
	font-size: 1.38em;
}

dl.taxonomy-listings dl dl dt a {
	font-size: 1.2em;
}

dl.taxonomy-listings dl dl dl dt a {
	font-size: 1.0em;
}

dl.children {
	margin-top: 20px;
}

dl.taxonomy-listings .numposts {
	font-weight: normal;
	font-size: .8em;
}


/******************************************/
/* Blockquotes */
/******************************************/

blockquote {
	padding: 0 20px;
    margin-bottom: 0;
}    

blockquote > cite {
    font-size: 85%;
    font-style: italic;
    text-indent: 4em;
}

q { font-style: italic; }

q {
  quotes: "“" "”" "‘" "’";
}
q:before {
    content: open-quote;
}
q:after {
    content: close-quote;
}

/******************************************/
/* Post Pagination */
/******************************************/

.post-pagination {
    width:100%;
    text-align:right;
}


.post-pagination .item {
    font-size: 2em;
    line-height: 2em;
    font-style: italic;
}

.post-pagination .item:hover,
.post-pagination .item:focus {
    font-size: 2em;
    line-height: 2em;
    font-style: italic;
    color: #fff;
    background: #005b9a;
}

/******************************************/
/* Sharedaddy, related posts fix title */
/******************************************/
h3.sd-title,
h3.jp-relatedposts-headline
{
    clear: both;
	color: #767676;
	display: block;
	font-size: 12px;
	font-weight: 900;
	line-height: 2;
	text-transform: uppercase;
}

/******************************************/
/* Post author comments */
/******************************************/
li.bypostauthor > .comment-body {
   background:#f0f7fd;
}

/******************************************/
/* Increase post readability */
/******************************************/

/* Make first paragraph of posts larger */
/* Because: http://socialtriggers.com/perfect-content-width/ */
.single-post .entry-content p:first-child { 
    font-style: italic;
    font-size: 1.5em; 
}
.single-post .entry-content blockquote p:first-child { 
    font-size: 1em; 
}

/* Hide byline */
.single-post .byline { display: none; }

/******************************************/
/* Hide meta on pages and single posts */
/******************************************/

.page-template .entry-meta {display:none;}
.single-post .entry-meta .cat-links {display:none;}

/******************************************/
/* From Fourteen Colours Plugin */
/******************************************/
        .site:before,
		#secondary,
		.site-header,
		.site-footer,
		.featured-content,
		.featured-content .entry-header,
		.slider-direction-nav a,
		.ie8 .featured-content,
		.ie8 .site:before {
            background-image: none !important;
			background-color: #d5d5d5;
		}

		.grid .featured-content .entry-header,
		.ie8 .grid .featured-content .entry-header {
			border-color: #d5d5d5;
		}

		.slider-control-paging a:before {
			background-color: rgba(255,255,255,.33);
		}

		.hentry .mejs-mediaelement,
		.hentry .mejs-container .mejs-controls {
			background: #f5f5f5;
		}
	
			.site-description,
			.secondary-navigation a,
			.widget,
			.widget a,
			.widget-title,
			.widget-title a,
			.widget_calendar caption,
			.site-header a,
			.featured-content a,
			.featured-content .entry-meta,
			.slider-direction-nav a:before,
			.hentry .mejs-container .mejs-controls .mejs-time span,
			.hentry .mejs-controls .mejs-button button {
				color: #2b2b2b;
			}

			@media screen and (min-width: 783px) {
				.primary-navigation ul ul a {
					color: #fff;
				}
			}

			@media screen and (min-width: 1008px) {
				.secondary-navigation ul ul a,
				.secondary-navigation li:hover > a,
				.secondary-navigation li.focus > a {
					color: #fff;
				}
			}

			.widget_calendar tbody a,
			.site-footer .widget_calendar tbody a,
			.slider-direction-nav a:hover:before {
				color: #fff;
			}

			.slider-control-paging a:before {
				background-color: rgba(0, 0, 0, .33);
			}

			.site-navigation li,
			#secondary,
			.secondary-navigation,
			.secondary-navigation li,
			.widget table,
			.widget th,
			.widget td,
			.widget_archive li,
			.widget_categories li,
			.widget_links li,
			.widget_meta li,
			.widget_nav_menu li,
			.widget_pages li,
			.widget_recent_comments li,
			.widget_recent_entries li,
			.widget_categories li ul,
			.widget_nav_menu li ul,
			.widget_pages li ul,
			.widget abbr[title] {
				border-color: rgba(0, 0, 0, .2);
			}

			.widget input,
			.widget textarea {
				background-color: rgba(0, 0, 0, .02);
				border-color: rgba(0, 0, 0, .2);
				color: #000;
			}

			.widget input:focus, .widget textarea:focus {
				border-color: rgba(0, 0, 0, 0.4);
			}

			.widget_twentyfourteen_ephemera .entry-meta a {
				color: rgba(0, 0, 0, 0.7);
			}

			.widget_twentyfourteen_ephemera > ol > li {
				border-bottom-color: rgba(0, 0, 0, 0.2);
			}

			#supplementary + .site-info {
				border-top: 1px solid rgba(0, 0, 0, 0.2);
			}

			.hentry .mejs-controls .mejs-time-rail .mejs-time-total, 
			.hentry .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total {
				background: rgba(0,0,0,.3);
			}

			.mejs-overlay .mejs-overlay-button {
				background-color: #f5f5f5;
			}

			.hentry .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
				background-color: #2b2b2b;
			}

		/* Custom accent color. */
		button,
		.button,
		.contributor-posts-link,
		input[type="button"],
		input[type="reset"],
		input[type="submit"],
		.search-toggle,
		.hentry .mejs-controls .mejs-time-rail .mejs-time-current,
		.mejs-overlay:hover .mejs-overlay-button,
		.widget button,
		.widget input[type="button"],
		.widget input[type="reset"],
		.widget input[type="submit"],
		.widget_calendar tbody a,
		.content-sidebar .widget input[type="button"],
		.content-sidebar .widget input[type="reset"],
		.content-sidebar .widget input[type="submit"],
		.slider-control-paging .slider-active:before,
		.slider-control-paging .slider-active:hover:before,
		.slider-direction-nav a:hover,
		.slider-direction-nav a:focus,
		.ie8 .primary-navigation ul ul,
		.ie8 .secondary-navigation ul ul,
		.ie8 .primary-navigation li:hover > a,
		.ie8 .primary-navigation li.focus > a,
		.ie8 .secondary-navigation li:hover > a,
		.ie8 .secondary-navigation li.focus > a {
			background-color: #005b9a;
		}

		.site-navigation a:hover,
		.site-navigation a:focus {
			color: #005b9a;
		}

		::-moz-selection {
			background: #005b9a;
		}

		::selection {
			background: #005b9a;
		}

		.paging-navigation .page-numbers.current {
			border-color: #005b9a;
		}

		@media screen and (min-width: 782px) {
			.primary-navigation li:hover > a,
			.primary-navigation li.focus > a,
			.primary-navigation ul ul {
				background-color: #005b9a;
			}
		}

		@media screen and (min-width: 1008px) {
			.secondary-navigation li:hover > a,
			.secondary-navigation li.focus > a,
			.secondary-navigation ul ul {
				background-color: #005b9a;
			}
		}
	
			.contributor-posts-link,
			button,
			.button,
			input[type="button"],
			input[type="reset"],
			input[type="submit"],
			.search-toggle:before,
			.mejs-overlay:hover .mejs-overlay-button,
			.widget button,
			.widget input[type="button"],
			.widget input[type="reset"],
			.widget input[type="submit"],
			.widget_calendar tbody a,
			.widget_calendar tbody a:hover,
			.site-footer .widget_calendar tbody a,
			.content-sidebar .widget input[type="button"],
			.content-sidebar .widget input[type="reset"],
			.content-sidebar .widget input[type="submit"],
			button:hover,
			button:focus,
			.button:hover,
			.button:focus,
			.contributor-posts-link:hover,
			.contributor-posts-link:active,
			input[type="button"]:hover,
			input[type="button"]:focus,
			input[type="reset"]:hover,
			input[type="reset"]:focus,
			input[type="submit"]:hover,
			input[type="submit"]:focus,
			.slider-direction-nav a:hover:before {
				color: #fff;
			}

			@media screen and (min-width: 782px) {
				.primary-navigation ul ul a,
				.primary-navigation li:hover > a,
				.primary-navigation li.focus > a,
				.primary-navigation ul ul {
					color: #fff;
				}
			}

			@media screen and (min-width: 1008px) {
				.secondary-navigation ul ul a,
				.secondary-navigation li:hover > a,
				.secondary-navigation li.focus > a,
				.secondary-navigation ul ul {
					color: #fff;
				}
			}
		
		/* Generated variants of custom accent color. */
		a,
		.content-sidebar .widget a {
			color: #005b9a;
		}

		.contributor-posts-link:hover,
		.button:hover,
		.button:focus,
		.slider-control-paging a:hover:before,
		.search-toggle:hover,
		.search-toggle.active,
		.search-box,
		.widget_calendar tbody a:hover,
		button:hover,
		button:focus,
		input[type="button"]:hover,
		input[type="button"]:focus,
		input[type="reset"]:hover,
		input[type="reset"]:focus,
		input[type="submit"]:hover,
		input[type="submit"]:focus,
		.widget input[type="button"]:hover,
		.widget input[type="button"]:focus,
		.widget input[type="reset"]:hover,
		.widget input[type="reset"]:focus,
		.widget input[type="submit"]:hover,
		.widget input[type="submit"]:focus,
		.content-sidebar .widget input[type="button"]:hover,
		.content-sidebar .widget input[type="button"]:focus,
		.content-sidebar .widget input[type="reset"]:hover,
		.content-sidebar .widget input[type="reset"]:focus,
		.content-sidebar .widget input[type="submit"]:hover,
		.content-sidebar .widget input[type="submit"]:focus,
		.ie8 .primary-navigation ul ul a:hover,
		.ie8 .primary-navigation ul ul li.focus > a,
		.ie8 .secondary-navigation ul ul a:hover,
		.ie8 .secondary-navigation ul ul li.focus > a {
			background-color: #1d78b7;
		}

		.featured-content a:hover,
		.featured-content .entry-title a:hover,
		.widget a:hover,
		.widget-title a:hover,
		.widget_twentyfourteen_ephemera .entry-meta a:hover,
		.hentry .mejs-controls .mejs-button button:hover,
		.site-info a:hover,
		.featured-content a:hover {
			color: #1d78b7;
		}

		a:active,
		a:hover,
		.entry-title a:hover,
		.entry-meta a:hover,
		.cat-links a:hover,
		.entry-content .edit-link a:hover,
		.post-navigation a:hover,
		.image-navigation a:hover,
		.comment-author a:hover,
		.comment-list .pingback a:hover,
		.comment-list .trackback a:hover,
		.comment-metadata a:hover,
		.comment-reply-title small a:hover,
		.content-sidebar .widget a:hover,
		.content-sidebar .widget .widget-title a:hover,
		.content-sidebar .widget_twentyfourteen_ephemera .entry-meta a:hover {
			color: #1d78b7;
		}

		.post-pagination a:hover,
		.paging-navigation a:hover {
			border-color: #1d78b7;
		}

		.entry-meta .tag-links a:hover:before {
			border-right-color: #1d78b7;
		}

		.post-pagination a:hover,
		.entry-meta .tag-links a:hover {
			background-color: #1d78b7;
		}

		@media screen and (min-width: 782px) {
			.primary-navigation ul ul a:hover,
			.primary-navigation ul ul li.focus > a {
				background-color: #1d78b7;
			}
		}

		@media screen and (min-width: 1008px) {
			.secondary-navigation ul ul a:hover,
			.secondary-navigation ul ul li.focus > a {
				background-color: #1d78b7;
			}
		}

		button:active,
		.button:active,
		.contributor-posts-link:active,
		input[type="button"]:active,
		input[type="reset"]:active,
		input[type="submit"]:active,
		.widget input[type="button"]:active,
		.widget input[type="reset"]:active,
		.widget input[type="submit"]:active,
		.content-sidebar .widget input[type="button"]:active,
		.content-sidebar .widget input[type="reset"]:active,
		.content-sidebar .widget input[type="submit"]:active {
			background-color: #318ccb;
		}

		.site-navigation .current_page_item > a,
		.site-navigation .current_page_ancestor > a,
		.site-navigation .current-menu-item > a,
		.site-navigation .current-menu-ancestor > a {
			color: #005b9a;
		}

/******************************************/
/* Social Nav Menus */
/* From http://justintadlock.com/archives/2013/08/14/social-nav-menus-part-2 */
/******************************************/
.widget #menu-social {}

	.widget #menu-social ul {
		list-style: none;
		margin:     0 0 25px;
		text-align: center;
	}

		.widget #menu-social ul li {
			display:  inline-block;
			position: relative;
            margin: none;
		}

			#menu-social li a::before {
				content:        '\f408';
				display:        inline-block;
				padding:        0 5px;
				font-family:    'Genericons';
				font-size:      2em;
				vertical-align: middle;
				-webkit-font-smoothing: antialiased;
			}

			#menu-social li a[href*="facebook.com"]::before {
				content: '\f203';
				color:   #3b5998;
			}
			#menu-social li a[href*="twitter.com"]::before {
				content: '\f202';
				color:   #33ccff;
			}
			#menu-social li a[href*="plus.google.com"]::before {
				content: '\f206';
				color: #dd4b39;
			}
			#menu-social li a[href*="pinterest.com"]::before {
				content: '\f210';
				color:   #c8232c;
			}
			#menu-social li a[href*="linkedin.com"]::before {
				content: '\f208';
				color:   #0e76a8;
			}
			#menu-social li a[href*="/feed"]::before {
				content: '\f413';
				color:   #ff6600;
			}
			#menu-social li a[href*="subscribe"]::before {
                content: '\f410';
				color:   #34ad00;
			}

input#mce-EMAIL.required.email {
    background-color: #fff;
    margin-bottom: 1em;
}

/* Email subscribe button under this */
#mc_embed_signup input[type="submit"] {
    background-color: #bf0202!important;
    font-size: 1.5em;
    float: right;
    margin-bottom: 1em;
}

/******************************************/
/* From Jetpack 'subscriptions' */
/******************************************/

#subscribe-email input {
	width: 95%;
	padding: 1px 2px;
    color: #000;
    border-color: #000;
}

.comment-subscription-form .subscribe-label {
	display: inline !important;
}

p#subscribe-submit, #mc-embedded-subscribe { height: 2em; }

/******************************************/
/* From Jetpack 'sharing' */
/******************************************/

/* Overall Sharedaddy block title */
div.sharedaddy,
#content div.sharedaddy,
#main div.sharedaddy {
	clear: both;
}

div.sharedaddy h3.sd-title, 
div.jp-relatedposts h3.jp-relatedposts-headline {
	margin: 0 0 1em 0;
	display: inline-block;
	line-height: 1.2;
	font-size: 9pt;
	font-weight: bold;
}

div.sharedaddy .sd-block,
div.jp-relatedposts {
	display: block;
	width: 100%;
	min-width: 30px;
    padding-top: 0;
	margin-bottom: 1em;
}

/* Sharing services list */
.sd-content ul {
	padding: 0 !important;
	margin: 0 0 .7em 0 !important;
	list-style: none !important;
}

.sd-content ul li {
	display: inline;
}

/* Buttons */
.sd-social-icon .sd-content ul li a.sd-button,
.sd-social-text .sd-content ul li a.sd-button,
.sd-content ul li a.sd-button,
.sd-content ul li .option a.share-ustom,	/* Ugh. */
.sd-content ul li.preview-item div.option.option-smart-off a,
.sd-content ul li.advanced a.share-more,
.sd-social-icon-text .sd-content ul li a.sd-button,
.sd-social-official .sd-content>ul>li>a.sd-button,
#sharing_email .sharing_send {		
	text-decoration: none !important;
	display: inline-block;
	margin: 0 5px 5px 0;
	font-size: 12px;
	font-family: "Open Sans", sans-serif;
	font-weight: normal;
	border-radius: 3px;
	color: #494949 !important;
	background: #f8f8f8;
	border: 1px solid #cccccc;
	box-shadow: 0 1px 0 rgba(0,0,0,.08);
	text-shadow: none;
	line-height: 23px;
	padding: 1px 8px 0px 5px;
}

.sd-social-text .sd-content ul li a.sd-button span,
.sd-content ul li a.sd-button>span,
.sd-content ul li .option a.share-ustom span,	/* Ugh. */
.sd-content ul li.preview-item div.option.option-smart-off a span,
.sd-content ul li.advanced a.share-more span,
.sd-social-icon-text .sd-content ul li a.sd-button>span,
.sd-social-official .sd-content>ul>li>a.sd-button span {		line-height: 23px;
}



/* Our gray buttons should be smaller when seen with the official ones */
.sd-social-official .sd-content>ul>li>a.sd-button,
.sd-social-official .sd-content .sharing-hidden .inner>ul>li>a.sd-button {
	line-height: 17px;
	box-shadow: none; /* No shadow on gray buttons between the official ones */
	vertical-align: top;
}

.sd-social-official .sd-content>ul>li>a.sd-button:before,
.sd-social-official .sd-content .sharing-hidden .inner>ul>li>a.sd-button:before {
	margin-bottom: -1px;
	top: 0;
}

.sd-social-icon .sd-content ul li a.sd-button:hover,
.sd-social-icon .sd-content ul li a.sd-button:active,
.sd-social-icon .sd-content ul li a.sd-button:focus,
.sd-social-text .sd-content ul li a.sd-button:hover,
.sd-social-text .sd-content ul li a.sd-button:active,
.sd-social-text .sd-content ul li a.sd-button:focus,
.sd-social-icon-text .sd-content ul li a.sd-button:hover,
.sd-social-icon-text .sd-content ul li a.sd-button:active,
.sd-social-icon-text .sd-content ul li a.sd-button:focus,
.sd-social-official .sd-content>ul>li>a.sd-button:hover,
.sd-social-official .sd-content>ul>li>a.sd-button:focus,
.sd-social-official .sd-content>ul>li>a.sd-button:active {
	color: #555;
	background: #fafafa;
	border: 1px solid #999999;
}

.sd-social-icon .sd-content ul li a.sd-button:active,
.sd-social-text .sd-content ul li a.sd-button:active,
.sd-social-icon-text .sd-content ul li a.sd-button:active,
.sd-social-official .sd-content>ul>li>a.sd-button:active {
	box-shadow: inset 0 1px 0 rgba(0,0,0,.16);
}


/* All icons */
.sd-content ul li a.sd-button:before {
	display: inline-block;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font: normal 16px/1 'Genericons';
	vertical-align: top;
	position: relative;
	top: 3px;
	text-align: center;
}

.sd-content ul li {
	margin: 0 !important;
	padding: 0;
}

/* Text + icon & Official */
.sd-social-icon-text .sd-content ul li a span,
.sd-social-official .sd-content ul li a.sd-button span,
.sd-content ul li.preview-item a.sd-button span {
	margin-left: 3px;
}
.sd-content ul li.preview-item.no-icon a.sd-button span {
	margin-left: 0;
}

/* Individual icons */
.sd-social-icon .sd-content ul li.share-print a:before,
.sd-social-text .sd-content ul li.share-print a:before,
.sd-content ul li.share-print div.option.option-smart-off a:before,
.sd-social-icon-text .sd-content li.share-print a:before,
.sd-social-official .sd-content li.share-print a:before {
	content: '\f469';
}
.sd-social-icon .sd-content ul li.share-email a:before,
.sd-social-text .sd-content ul li.share-email a:before,
.sd-content ul li.share-email div.option.option-smart-off a:before,
.sd-social-icon-text .sd-content li.share-email a:before,
.sd-social-official .sd-content li.share-email a:before {
	content: '\f410';
}
.sd-social-icon .sd-content ul li.share-linkedin a:before,
.sd-social-text .sd-content ul li.share-linkedin a:before,
.sd-content ul li.share-linkedin div.option.option-smart-off a:before,
.sd-social-icon-text .sd-content li.share-linkedin a:before {
	content: '\f207';
}
.sd-social-icon .sd-content ul li.share-twitter a:before,
.sd-social-text .sd-content ul li.share-twitter a:before,
.sd-content ul li.share-twitter div.option.option-smart-off a:before,
.sd-social-icon-text .sd-content li.share-twitter a:before {
	content: '\f202';
}
.sd-social-icon .sd-content ul li.share-reddit a:before,
.sd-social-text .sd-content ul li.share-reddit a:before,
.sd-content ul li.share-reddit div.option.option-smart-off a:before,
.sd-social-icon-text .sd-content li.share-reddit a:before {
	content: '\f222';
}
.sd-social-icon .sd-content ul li.share-tumblr a:before,
.sd-social-text .sd-content ul li.share-tumblr a:before,
.sd-content ul li.share-tumblr div.option.option-smart-off a:before,
.sd-social-icon-text .sd-content li.share-tumblr a:before {
	content: '\f214';
}
.sd-social-icon .sd-content ul li.share-stumbleupon a:before,
.sd-social-text .sd-content ul li.share-stumbleupon a:before,
.sd-content ul li.share-stumbleupon div.option.option-smart-off a:before,
.sd-social-icon-text .sd-content li.share-stumbleupon a:before {
	content: '\f223';
}
.sd-social-icon .sd-content ul li.share-pocket a:before,
.sd-social-text .sd-content ul li.share-pocket a:before,
.sd-content ul li.share-pocket div.option.option-smart-off a:before,
.sd-social-icon-text .sd-content li.share-pocket a:before {
	content: '\f224';
}
.sd-social-icon .sd-content ul li.share-pinterest a:before,
.sd-social-text .sd-content ul li.share-pinterest a:before,
.sd-content ul li.share-pinterest div.option.option-smart-off a:before,
.sd-social-icon-text .sd-content li.share-pinterest a:before {
	content: '\f209';
}
.sd-social-icon .sd-content ul li.share-google-plus-1 a:before,
.sd-social-text .sd-content ul li.share-google-plus-1 a:before,
.sd-content ul li.share-google-plus-1 div.option.option-smart-off a:before,
.sd-social-icon-text .sd-content li.share-google-plus-1 a:before {
	content: '\f218';
}
.sd-social-icon .sd-content ul li.share-facebook a:before,
.sd-social-text .sd-content ul li.share-facebook a:before,
.sd-content ul li.share-facebook div.option.option-smart-off a:before,
.sd-social-icon-text .sd-content li.share-facebook a:before {
	content: '\f204';
}
.sd-social-icon .sd-content ul li.share-press-this a:before,
.sd-social-text .sd-content ul li.share-press-this a:before,
.sd-content ul li.share-press-this div.option.option-smart-off a:before,
.sd-social-icon-text .sd-content li.share-press-this a:before,
.sd-social-official .sd-content li.share-press-this a:before {
	content: '\f205';
}
.sd-social-official .sd-content li.share-press-this a:before {
	color: #2ba1cb;
}
.sd-social-icon .sd-content ul a.share-more:before,
.sd-social-text .sd-content ul a.share-more:before,
.sd-content ul li.advanced a.share-more:before,
.sd-social-icon-text .sd-content a.share-more:before,
.sd-social-official .sd-content a.share-more:before {
	content: '\f415';
}
.sd-social-official .sd-content a.share-more:before {
	color: #2ba1cb;
}


/* Share count */
.share-count {
	background: #2ea2cc;
	color: #fff;
	-moz-border-radius: 10px;
	border-radius: 10px;
	display: inline-block;
	text-align: center;
	font-size: 10px;
	padding: 1px 3px;
	line-height: 1;
}


/* Custom icons */
body .sd-social-icon .sd-content li.share-custom>a {
	padding: 2px 3px 0 3px;
	position: relative;
	top: 4px;
}

body .sd-social-icon .sd-content li.share-custom a span,
body .sd-social-icon-text .sd-content li.share-custom a span,
body .sd-social-text .sd-content li.share-custom a span,
body .sd-social-official .sd-content li.share-custom a span,
body .sd-content ul li.share-custom a.share-icon span
{
	background-size: 16px 16px;
	background-repeat: no-repeat;
	margin-left: 0;
	padding: 0 0 0 19px; 
	display: inline-block;
	height: 16px;
	line-height: 16px;
}

body .sd-social-icon .sd-content li.share-custom a span {
	width: 0;	
}

body .sd-content li.share-custom a:hover span {
}

body .sd-social-icon .sd-content li.share-custom a span {
	padding-left: 16px !important;
}


/* Overflow Sharing dialog */
.sharing-hidden .inner {
	position: absolute;
	z-index: 2;
	border: 1px solid #ccc;
	padding: 15px;
	background: #fff;
	box-shadow: 0px 5px 20px rgba(0,0,0,.2);
	margin-top: 5px;
	max-width: 400px;
}

.sharing-hidden .inner:before, .sharing-hidden .inner:after {
	position: absolute;
	z-index: 1;
	top: -8px;
	left: 20px;
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 8px solid #ccc;
	content: "";
	display: block;
}

.sharing-hidden .inner:after {
	z-index: 2;
	top: -7px;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 8px solid #fff;
}

.sharing-hidden ul {
	margin: 0;
}

/**
 * Sharing Email Dialog
 */
#sharing_email {
	width: 342px;
	position: absolute;
	z-index: 1001;
	border: 1px solid #ccc;
	padding: 15px;
	background: #fff;
	box-shadow: 0px 5px 20px rgba(0,0,0,.2);
	text-align: left;
}

div.sharedaddy.sharedaddy-dark #sharing_email {
	border-color: #fff;
}

#sharing_email .errors {
	color: #fff;
	background-color: #771a09;
	font-size: 12px;
	padding: 5px 8px;
	line-height: 1;
	margin: 10px 0 0 0;
}

#sharing_email label {
	font-size: 12px;
	color: #333;
	font-weight: bold;
	display: block;
	padding: 0 0 4px 0;
	text-align: left;
	text-shadow: none;
}

#sharing_email form {
	margin: 0;
}

#sharing_email input[type="text"], #sharing_email input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
	border: 1px solid #ccc;
	margin-bottom: 1em;
	background: #fff;
	font-size: 12px;
	color: #333;
	max-width: none;
	padding: 1px 3px;
}

#sharing_email .sharing_cancel {
	padding: 0 0 0 1em;
	font-size: 12px;
	text-shadow: none;
}

#sharing_email .recaptcha {
	width: 312px;
	height: 123px;
	margin: 0 0 1em 0;
}


/******************************************/
/* From Jetpack 'related posts' */
/******************************************/

/**
 * Styles for Jetpack related posts
 */

/* Container */

div#jp-relatedposts {
	display: none;
	padding-top: 0;
	margin: 1em 0;
	position: relative;
}

div.jp-relatedposts:after {
	content: '';
	display: block;
	clear: both;
}

/* Headline above related posts section, labeled "Related" */

div#jp-relatedposts h3.jp-relatedposts-headline {
	margin: 0 0 1em 0;
	display: inline-block;
	float: left;
	font-size: 9pt;
	font-weight: bold;
	font-family: inherit;
    border-top: none;
}

div#jp-relatedposts h3.jp-relatedposts-headline em:before {
	content: "";
	display: block;
	width: 100%;
	min-width: 30px;
	margin-bottom: 1em;
}

div#jp-relatedposts h3.jp-relatedposts-headline em {
	font-style: normal;
	font-weight: bold;
}

/* Related posts items (wrapping items) */

div#jp-relatedposts div.jp-relatedposts-items {
	clear: left;
}

div#jp-relatedposts div.jp-relatedposts-items-visual {
	margin-right: -20px;
}

/* Related posts item */

div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post {
	float: left;
	width: 33%;
	margin: 0 0 1em; /* Needs to be same as the main outer wrapper for Related Posts */
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}

div#jp-relatedposts div.jp-relatedposts-items-visual .jp-relatedposts-post {
	padding-right: 20px;
	/*cursor: pointer;*/
	filter: alpha(opacity=80);
	-moz-opacity: .8;
	opacity: .8;
}

div#jp-relatedposts div.jp-relatedposts-items div.jp-relatedposts-post:hover .jp-relatedposts-post-title a,
div#jp-relatedposts div.jp-relatedposts-items div.jp-relatedposts-post:focus .jp-relatedposts-post-title a {
	text-decoration: underline;
}

div#jp-relatedposts div.jp-relatedposts-items div.jp-relatedposts-post:hover,
div#jp-relatedposts div.jp-relatedposts-items div.jp-relatedposts-post:focus {
	filter: alpha(opacity=100);
	-moz-opacity: 1;
	opacity: 1;
}

/* Related posts item content */

div#jp-relatedposts div.jp-relatedposts-items-visual h4.jp-relatedposts-post-title,
div#jp-relatedposts div.jp-relatedposts-items p {
	font-size: 14px;
	line-height: 20px;
	margin: 0;
}

div#jp-relatedposts div.jp-relatedposts-items p {
	margin-bottom: 0;
}

div#jp-relatedposts div.jp-relatedposts-items-visual h4.jp-relatedposts-post-title {
	text-transform: none;
	margin: 0;
	font-family: inherit;
	display: block;
	max-width: 100%;
}

div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-title a {
	font-weight: normal;
	text-decoration: none;
	filter: alpha(opacity=100);
	-moz-opacity: 1;
	opacity: 1;
}

div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-title a:hover,
div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-title a:focus {
	text-decoration: underline;
}

div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post img.jp-relatedposts-post-img,
div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post span {
	display: block;
	max-width: 90%;
	overflow: hidden;
	text-overflow: ellipsis;
}

div#jp-relatedposts div.jp-relatedposts-items-visual .jp-relatedposts-post img.jp-relatedposts-post-img,
div#jp-relatedposts div.jp-relatedposts-items-visual .jp-relatedposts-post span {
	max-width: 100%;
}

div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-context {
	opacity: .6;
}

/* Behavior when there are thumbnails in visual mode */
div#jp-relatedposts div.jp-relatedposts-items-visual div.jp-relatedposts-post-thumbs p.jp-relatedposts-post-excerpt {
	display: none;
}

/* Behavior when there are no thumbnails in visual mode */
div#jp-relatedposts div.jp-relatedposts-items-visual div.jp-relatedposts-post-nothumbs p.jp-relatedposts-post-excerpt {
	overflow: hidden;
}
div#jp-relatedposts div.jp-relatedposts-items-visual div.jp-relatedposts-post-nothumbs span {
	margin-bottom: 1em;
}

/**
 * Responsive
 */

@media only screen and (max-width: 640px) {

	div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post {
		width: 50%;
	}

	div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post:nth-child(3n) {
		clear: left;
	}

	div#jp-relatedposts div.jp-relatedposts-items-visual {
		margin-right: 20px;
	}

}

@media only screen and (max-width: 320px) {

	div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post {
		width: 100%;
		clear: both;
		margin: 0 0 1em;
	}

}


/******************************************/
/* RJ-TweetThis CSS */
/******************************************/

.rj-tweetthis {
  display: block;
  background-color: #fff;
  margin: 0;
  padding: 0;
  position: relative;
  border: 1px solid #dddddd;
  -moz-border-radius: 4px;
  border-radius: 4px;
  padding: 15px 30px;
  margin: 15px 0px;
  zoom: 1;
}
.rj-tweetthis:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
}
.rj-tweetthis:after {
  display: block;
  visibility: hidden;
  height: 0;
  clear: both;
  content: ".";
}
.rj-tweetthis a {
  text-decoration: none;
  text-transform: none;
}
.rj-tweetthis a:hover {
  text-decoration: none;
}
.rj-tweetthis .rj-tweetthis-text {
  margin: 0;
  padding: 0;
  position: relative;
  margin-bottom: 10px;
  word-wrap: break-word;
}
.rj-tweetthis .rj-tweetthis-text a {
  margin: 0;
  padding: 0;
  position: relative;
  color: #2d353f;
  font-size: 24px;
  line-height: 140%;
  text-transform: none;
  letter-spacing: 0.05em;
  font-weight: 100;
  text-decoration: none;
  text-transform: none;
}
.rj-tweetthis .rj-tweetthis-text a:hover {
  text-decoration: none;
  color: #666666;
}

.rj-tweetthis a.rj-tweetthis-button:before {
    color:   #33ccff;
    content:        '\f202';
    display:        inline-block;
    padding:        0 5px;
    font-family:    'Genericons';
    font-size:      2em;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    }

.rj-tweetthis a.rj-tweetthis-button {
  margin: 0;
  padding: 0;
  position: relative;
  display: block;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: bold;
  line-height: 100%;
  color: #999999;
  float: right;
  padding-right: 24px;
  text-decoration: none;
}
.rj-tweetthis a.rj-tweetthis-button:hover {
  text-decoration: none;
  color: #666666;
  text-transform: uppercase;
}


