/*
Theme Name:     The Establishment 2018
Description:    Storefront Child Theme
Author:         DevCollaborative
Author URI:     http: //www.devcollaborative.com
Template:      	storefront 
Version:        1.1
*/


/* =Theme customization starts here. Any CSS code entered here will overwrite the parent's CSS.
-------------------------------------------------------------- */

@import url("https://use.typekit.net/wce6vob.css");

html {
	font-size: 16px;
}

/* Fonts */ 
.site-footer, .entry-meta, .posted-on {
	font-family: "tablet-gothic-semi-condensed", sans-serif;
	font-weight: 400;
	text-transform: uppercase;
}
body {
	  font-family: "abril-text", serif;
	  font-weight: 400;
}

h1, h2 {
	font-family: "clavo",serif;
	font-weight: 500;
}

.site-branding {
	float: none;
	margin-bottom: 2em;
}

/*Header */

#top-banner > * {
	display: inline;
}

#top-banner {
	position: relative;
	margin: 1em 0;
	padding: 0.5em 10%;
	text-align: center;
}
#top-banner h2,
#top-banner p {
	margin: 0;
	padding: 0;
	display: inline;
}

#top-banner h2 {
	font-size: 1.5em;
	margin-right: 0.25em;
}

#top-banner a {
	text-decoration: underline;
	background-color: inherit;
	transition: background-color 200ms ease;
}
#top-banner a:hover, #top-banner a:focus {
	background-color: #fff;
}


#top-banner:before,
#top-banner:after {
	content: " ";
	display: block;
    position: absolute;
	width: 100%;
    height: 50%;
    background-color: #7ff7b8;
    z-index: -1;
}

#top-banner:before {
    left: -1.5em;
    top: 0;
}
#top-banner:after {
    right: -1.5em;
    bottom: 0;
}


/*Half color underlay style */
/*@todo add modernizr fallbacks */
.entry-title > a, 
.halfbackground, 
.bctt-ctt-text,
#menu-main-navigation li > a {
	background-image: -o-linear-gradient(bottom, rgba(127,247,184,0.8) 45%, #fff 45%);
	background-image: -moz-linear-gradient(bottom, rgba(127,247,184,0.8) 45%, #fff 45%);
	background-image: -webkit-linear-gradient(bottom, rgba(127,247,184,0.8) 45%, #fff 45%);
	background-image: -ms-linear-gradient(bottom, rgba(127,247,184,0.8) 45%, #fff 45%);
	background-image: linear-gradient(bottom, rgba(127,247,184,0.8) 45%, #fff 45%);
}

.main-navigation .menu-item a {
	background-color: inherit;
	font-weight: 700;
	color: #000 !important;
	transition: background-color ease 200ms;
}



/* HOVER STATES */
.main-navigation .menu-item a:hover,
.main-navigation .menu-item a:focus {
	background-image: none !important;
}

.main-navigation .menu-item a:hover,
.main-navigation .menu-item a:focus,
.members-nav a:hover,
.members-nav a:focus,
.entry-meta a:hover,
.entry-meta a:focus {
	background-color: #7ff7b8;
	background-color: rgba(127,247,184,0.8);
}

/*Main Navigation */
button.menu-toggle {
	float: none;
}
.site-header ul.menu li.current-menu-item > a {
	border-bottom: 2px solid #000;
}

.primary-navigation,
.members-nav {
	font-family: "tablet-gothic-semi-condensed", sans-serif;
	font-weight: 600;
	text-transform: uppercase;	
}

.main-navigation ul.menu > li > a {
	padding: 0;
}

.main-navigation .menu li {
	margin: 1em;
}

.main-navigation ul li a:hover,
.main-navigation ul li a:focus {
	color: #333333;
}

/*About / Pitch */
.main-navigation #menu-item-384 a,
.main-navigation #menu-item-429 a,
.main-navigation #menu-item-914 a {
	background-image: none;
}

/*Society/Politics - Teal */
.category-society-politics .entry-title > a,
.category-society-politics .halfbackground, 
.main-navigation #menu-item-397 a {
	background-image: -o-linear-gradient(bottom, #66cccc 45%, #fff 45%);
	background-image: -moz-linear-gradient(bottom, #66cccc 45%, #fff 45%);
	background-image: -webkit-linear-gradient(bottom, #66cccc 45%, #fff 45%);
	background-image: -ms-linear-gradient(bottom, #66cccc 45%, #fff 45%);
	background-image: linear-gradient(bottom, #66cccc 45%, #fff 45%);
}

/*.main-navigation #menu-item-397 a:hover,
.main-navigation #menu-item-397 a:focus {
	background-color: #66cccc;
}*/

/*Brain/body - Blue */
.category-brain-body .entry-title > a,
.category-brain-body  .halfbackground, 
.main-navigation #menu-item-398 a {
	background-image: -o-linear-gradient(bottom, #68c0fc 45%, #fff 45%);
	background-image: -moz-linear-gradient(bottom, #68c0fc 45%, #fff 45%);
	background-image: -webkit-linear-gradient(bottom, #68c0fc 45%, #fff 45%);
	background-image: -ms-linear-gradient(bottom, #68c0fc 45%, #fff 45%);
	background-image: linear-gradient(bottom, #68c0fc 45%, #fff 45%);
}
/*.main-navigation #menu-item-398 a:hover,
.main-navigation #menu-item-398 a:focus {
	background-color: #68c0fc;
}*/


/*Lust/Liaisons - Coral */	
.category-lust-liaisons .entry-title > a,
.category-lust-liaisons  .halfbackground, 
.main-navigation #menu-item-401 a {
	background-image: -o-linear-gradient(bottom, #ff6666 45%, #fff 45%);
	background-image: -moz-linear-gradient(bottom, #ff6666 45%, #fff 45%);
	background-image: -webkit-linear-gradient(bottom, #ff6666 45%, #fff 45%);
	background-image: -ms-linear-gradient(bottom, #ff6666 45%, #fff 45%);
	background-image: linear-gradient(bottom, #ff6666 45%, #fff 45%);
}

/*.main-navigation #menu-item-401 a:hover,
.main-navigation #menu-item-401 a:focus {
	background-color: #ff6666;
}*/

/*Wit/Whimsy - Yellow*/
.category-wit-whimsy .entry-title > a,
.category-wit-whimsy  .halfbackground, 
.main-navigation #menu-item-385 a {
	background-image: -o-linear-gradient(bottom, #ffcc33 45%, #fff 45%);
	background-image: -moz-linear-gradient(bottom, #ffcc33 45%, #fff 45%);
	background-image: -webkit-linear-gradient(bottom, #ffcc33 45%, #fff 45%);
	background-image: -ms-linear-gradient(bottom, #ffcc33 45%, #fff 45%);
	background-image: linear-gradient(bottom, #ffcc33 45%, #fff 45%);
}

/*.main-navigation #menu-item-385 a:hover,
.main-navigation #menu-item-385 a:focus {
	background-color: #ffcc33;
}*/

/*Arts/Creators - Purple */
.category-arts-creators .entry-title > a,
.category-arts-creators  .halfbackground, 
.main-navigation #menu-item-402 a {
	background-image: -o-linear-gradient(bottom, #9d6dfc 45%, #fff 45%);
	background-image: -moz-linear-gradient(bottom, #9d6dfc 45%, #fff 45%);
	background-image: -webkit-linear-gradient(bottom, #9d6dfc 45%, #fff 45%);
	background-image: -ms-linear-gradient(bottom, #9d6dfc 45%, #fff 45%);
	background-image: linear-gradient(bottom, #9d6dfc 45%, #fff 45%);
}

/*.main-navigation #menu-item-402 a:hover,
.main-navigation #menu-item-402 a:focus {
	background-color: #9d6dfc;
}
*/
/*Audio/Visual - Orange */	
.category-audio-visual .entry-title > a,
.category-audio-visual  .halfbackground, 
.main-navigation #menu-item-403 a {
	background-image: -o-linear-gradient(bottom, #ff9966 45%, #fff 45%);
	background-image: -moz-linear-gradient(bottom, #ff9966 45%, #fff 45%);
	background-image: -webkit-linear-gradient(bottom, #ff9966 45%, #fff 45%);
	background-image: -ms-linear-gradient(bottom, #ff9966 45%, #fff 45%);
	background-image: linear-gradient(bottom, #ff9966 45%, #fff 45%);	
}

/*.main-navigation #menu-item-403 a:hover,
.main-navigation #menu-item-403 a:focus {
	background-color: #ff9966;
}
*/
.site-header {
	border-bottom: none;
}


#menu-social-links {
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
}

.menu-social-links-container a {
	color: rgba(0,0,0,0) !important;
    display: inline-block;
    width: 28px;
    height: 27px;
    overflow: hidden;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 100%;
    margin: 0 0.5em;
    transition: background-color 200ms ease;
    padding: 0.1em;
}


/*.menu-social-links-container a:hover,
.menu-social-links-container a:focus {
	background-color: #7ff7b8;
	background-color: rgba(127,247,184,0.8);
}*/
/*@todo add no-svg pngs */
#menu-item-28 a {
	background-image: url('images/twitter.svg');
}

#menu-item-29 a {
	background-image: url('images/facebook.svg');
}

#menu-item-30 a {
	background-image: url('images/instagram.svg');
}

.no-svg #menu-social-links a {
	color: #000 !important;
	width: inherit !important;
	height: inherit !important;
	background: none !important;
}



/*BUTTON LINKS*/

a.button-link {
	display: inline-block;
	line-height: 1;
	font-weight: 600;
	padding: 0.65em 1.25em;
	border: 1px #050505 solid;
	border: 1px  rgba(0,0,0,0.8) solid;
	border-radius: 4px;
	color: inherit;
	background-color: inherit;
	transition: all 200ms ease;
}

/*MEMBERSHIP LINKS - header and footer  */

/*“Sign up for our newsletter” would be linked to the registration plan and would be suppressed when the Pico user state is registered or paying.

"Become a member” would be linked to the payment plan and would be suppressed when the Pico user state is paying.
*/

/*JS delivery delay means we want to hide members link by default, display block 
with appropriate data attributes*/

.join-link, .signup-link {
	display: block;
	margin-bottom: 1em;
}

.members-nav {
	margin: 1em 0;
	display: flex;
	flex-direction: column;
}

.members-link, 
.join-link[data-pico-status='paying'],
.signup-link[data-pico-status='paying'],
.signup-link[data-pico-status='registered'] {
	display: none;
}
.join-link[data-pico-status='paying'] + .members-link {
	display: block;
}

/*.members-nav a {
	margin-left: 1em;
}

.members-nav a:first-child {
	margin-left: 0;
}

.join-link[data-pico-status='registered'] + .members-link:before {
	content: "|";
	display: inline-block;
	position: relative;
	padding-right: 1em;
	top: -2px;
    background-color: #fff !important;
    padding-bottom: 2px;
}

.signup-link:after {
	content: "|";
	display: inline-block;
	position: relative;
	padding-left: 1em;
	top: -2px;
    background-color: transparent;
    padding-bottom: 2px;
}*/

.site-footer #membership-footer a.signup-link:hover:after {
	background-color: transparent !important;
}


#membership-header .signup-link:after {
    background-color: #fff !important;
}




 /*CONTENT*/ 
#main {
	font-size: 21px;
	font-size: 1.3125rem;
}

blockquote {
	border-left: 3px solid #7ff7b8;
}


/*CONTENT LINK STYLING */

.entry-content a,
.error-404 .page-content a,
.footer a {
	text-decoration: underline;
	background-color: #fff;
	background-color: transparent;
	transition: 200ms ease background-color;
}

.footer a {
	text-decoration: none;
	background-color: transparent;
	transition: 200ms ease all;
}

.entry-content a:hover,
.entry-content a:focus,
.entry-content a:active,
.posted-on a:hover, 
.posted-on a:focus,
.error-404 .page-content a:hover,
.error-404 .page-content a:focus  {
	text-decoration: underline !important;
	background-color: #7ff7b8;
	background-color: rgba(127,247,184,0.8);	
}

.site-footer a:focus,
.site-footer a:hover,
.site-footer a:active  {
	background-color: #7ff7b8;
	background-color: rgba(127,247,184,0.8);
	color: #000;	
}
.vcard.author .avatar {
	border-radius: 100%;
}


.hentry .entry-header, 
.hentry.type-page .entry-header {
	border-bottom: 2px solid #000000;
	border-bottom: 2px solid rgba(0,0,0,0.8);
	position: relative;
}

.hentry.type-page .entry-header {
	margin-bottom: 2em;
}

.posted-on {
	display: inline-block;
	margin-bottom: 1em;
}

/* Scott Birdsey, 1/2019: CSS to restore meta content layout for storefront 4.2.2 switch */
@media (min-width: 768px) {
	.hentry.type-post .entry-meta {
	    width: 17.6470588235%;
	    float: left;
	    margin-right: 5.8823529412%;
	    font-size: .875em;
	}
}

@media (min-width: 768px) {
	.hentry.type-post .entry-content {
	    width: 76.4705882353%;
	    float: right;
	    margin-right: 0;
	}
}

@media (min-width: 768px) {
	.hentry.type-post::after, .hentry.type-post::before {
	    content: '';
	    display: table;
	}
}

@media (min-width: 768px) {
	.hentry.type-post::after {
	    clear: both;
	}
}

.vcard.author .avatar {
    width: 64px;
    margin-bottom: 1em;
}

.cat-links, .comments-link, .tags-links, .vcard.author, .cat-links:last-child, .tags-links:last-child {
    display: block;
    margin-bottom: 1.618em;
}

.clear::after, .comment-content::after, .entry-content::after, .site-content::after, .site-footer::after, .site-header::after {
    clear: both;
}

.clear::after, .clear::before, .comment-content::after, .comment-content::before, .entry-content::after, .entry-content::before, .site-content::after, .site-content::before, .site-footer::after, .site-footer::before, .site-header::after, .site-header::before {
    content: '';
    display: table;
}

/*Triangle border decoration */
.hentry .entry-header:after {
	top: 100%;
    left: 10%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(0, 0, 0, 0);
    border-top-color: #000;
    border-top-color: rgba(0,0,0,0.8);
    border-width: 15px;
    margin-left: -15px;
}


/* CLICK TO TWEET */
.bctt-click-to-tweet, .bctt-click-to-tweet a {
	border: none;
	font-family: "clavo", serif !important; 
	margin-left: 0px;
	padding-left: 0px;
}

.bctt-ctt-text, .bctt-ctt-text a {	
	font-size: 2.25rem;
}

.bctt-ctt-text a:hover, 
.bctt-ctt-text a:focus, 
.bctt-ctt-text a:active {
	color: #000 !important;
	background: none !important;
	text-decoration: none !important;
}


/* Visual hide but present for screen readers */
.bctt-ctt-btn,
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px; 
    overflow: hidden;
    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
    clip: rect(1px, 1px, 1px, 1px);
}

/*@todo add no-svg png fallback */
.bctt-ctt-text a:after {
	content: " ";
    display: inline-block;
    position: relative;
    right: -4px;
    width: 28px;
    height: 27px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 100%;
	background-image: url('images/twitter.svg');
	transition: 200ms ease all;	
}

.bctt-ctt-text a:hover:after, 
.bctt-ctt-text a:focus:after, 
.bctt-ctt-text a:active:after {
	right: -16px;	
}

.caption, figcaption {
	margin-top: -1em;
    margin-bottom: 1em;
    font-size: 1rem;
    font-style: italic;
}
.callout {
	font-size: 21px;
	font-size: 1.3125rem;
	font-style: italic;
/*	font-weight: 700;*/
	margin: 2em 0;
	padding: 0 2em;
	line-height: 1.5;
}
.callout:before, .callout:after {
	content: " ";
	display: block;
	width: 80px;
	width: 5rem;
	height: 3px;
	background-color: #7ff7b8;
	margin: 0 auto;
}
.callout:before {
	margin-bottom: 2em;
}

.callout:after {
	margin-top: 2em;
}

/*SIGNATURE BLOCK - Bottom of Every post - see functions.php */

.article-signature img {
	display: inline-block;
}

.article-signature {
	text-align: center;
}

.article-signature .est-divider {
	width: 100%;
	margin-bottom: 32px;
	margin-bottom: 2rem;
}

.est-signature-standout {
	font-weight: 700;
	font-size: 22px;
	font-size: 1.375rem;
}

.article-signature > div {
	margin-bottom: 32px;
	margin-bottom: 2rem;
}

/*404 SEARCH FORM */
input[type=search] {
	padding: 0.5em;
	border: 1px solid #000;
	border: 1px solid rgba(0,0,0,0.8);
	transition: 200ms all ease;
	background-color: #efefef;
}
input[type=search]:focus {
	background-color: #fff;
}

input[type=submit] {
	padding: 0.5em 1em;
	background-color: #7ff7b8;
	background-color: rgba(127,247,184,0.8);
	transition: 200ms all ease;
	color: #000;
}
input[type=submit]:hover,
input[type=submit]:focus,
input[type=submit]:active {
	background-color: #43454b;
	background-color: rgba(0,0,0,0.8);
	color: #fff;
}
/* Footer */ 
.site-footer {
	background-color: #43454b;
	background-color: rgba(0,0,0,0.8);
	padding: 2em 0 1em 0;
}

#membership-footer {
	margin-bottom: 0;
}

/*SMALL SCREEN ONLY FIXES */
@media screen and (max-width: 767px) {
	.site-header {
		margin-bottom: 0 !important;
	}
	#main {
		font-size: 18px;
		font-size: 1.125rem;
	}
	.alpha, h1 {
		font-size: 36px;
		font-size: 2.25rem;
	}
	#top-banner {
		text-align: left;
		padding: 20px 40px 20px 50px;
	}
}
/*Featured Post */
/* TABLETISH WIDTH */
@media screen and (min-width: 768px) {
	#menu-main-navigation {
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		padding-left: 1em;
	}
	
	.site-branding {
		float: left;
		margin-bottom: 0;
/*		margin-left: -1em !important;*/
	}
	#membership-header {
		float: right;
    	margin: 0 0 1em 0;
	}
	.secondary-navigation {
		clear: both;
	}
	.est-signature-standout {
		font-size: 24px;
		font-size: 1.5rem;
	}

}


/* DESKTOP WIDTH */
@media screen and (min-width: 1300px) {
/*	WIDER SITE  */
/*	.col-full {
		max-width: ;
	}*/
	.home .hentry:first-child {
		margin-right: -10%;
		margin-left: -10%;
	}
	#menu-main-navigation {
		display: flex;
		justify-content: flex-end;
		flex-wrap: nowrap;
	}
	#menu-item-429,
	#menu-item-914 {
		margin-right: auto !important;
	}
	.join-link, .signup-link {
		margin-bottom: 0;
	}
	.members-nav {
		margin: 0;
		flex-direction: row;
	}	
	.members-nav a {
		margin-left: 1em;
	}

	.members-nav a:first-child {
		margin-left: 0;
	}
	.join-link[data-pico-status='paying'] + .members-link {
		display: inline-block;
	}
	.join-link[data-pico-status='registered'] + .members-link:before {
		content: "|";
		display: inline-block;
		position: relative;
		padding-right: 1em;
		top: 0;
	    background-color: #fff !important;
	    padding-bottom: 2px;
	}

	.signup-link:after {
		content: "|";
		display: inline-block;
		position: relative;
		padding-left: 1em;
		top: 0;
	    background-color: transparent;
	    padding-bottom: 2px;
	}
	.site-footer-links-wrapper {
		display: flex;
	}
	.site-footer-links:before {
		content: "|";
		display: inline-block;
		position: relative;
		padding-right: 1em;
		margin-left: 1em;
		top: 0;
	    padding-bottom: 2px;
	}
	@supports (display: grid) {
		.home .hentry:first-child .wp-post-image {
		    margin-top: -134px;
		    z-index: -1;
		    width: 100%;
		}
		.home .hentry:first-child,
		.home .hentry:first-child .entry-content {
			display: grid;
			grid-gap: 10px;
		}

		.home .hentry:first-child {
			 grid-template-columns: [col] 1fr [col] 3fr;
			 grid-template-rows: [row] auto [row] auto [row] auto;
			 margin-bottom: 2em;
		}

		.home .hentry:first-child .entry-header, 
		.home .hentry:first-child .entry-meta,
		.home .hentry:first-child .entry-content {
			float: none;
			width: inherit;
		}
		.home .hentry:first-child .entry-header:after {
			display: none;
		}
		.home .hentry:first-child .entry-header {
	/*		outline: 1px dotted red;*/
			grid-column: col / span 2;
			grid-row: row 1;	
			border-bottom: 0;	
		}
		.home .hentry:first-child .entry-content {
	/*		outline: 1px dotted blue;*/
			grid-column: col / span 2;
			grid-row: row 2;
			margin-bottom: 1em;
		}
		.home .hentry:first-child .entry-content p:last-child {
			margin-bottom: 0;
		}
		.home .hentry:first-child .entry-meta > *,
		.home .hentry:first-child .vcard.author > *,
		.home .hentry:first-child .cat-links .label {
			display: inline-block;
			margin: 0 1em 0 0;
			padding: 0;
		}
		.cat-links a {
			margin-left: 0.25em;
		}
		.cat-links a:first-of-type,
		.tags-links a:first-of-type {
			margin-left: 0;
		}
		.home .hentry:first-child .entry-meta .label {
			margin-right: 0.25em;
		}
		.home .hentry:first-child .entry-meta .label:after {
			content: ": ";
		}
		.home .hentry:first-child .entry-meta {
	/*		outline: 1px dotted green;*/
			grid-column: col / span 2;
			grid-row: row 3;
			display: flex;
			align-items: center;
			width: 100%;
		}
		.home .hentry:first-child .vcard.author {
			display: flex;
			align-items: center;
			margin-right: 0;
		}
		.home .hentry:first-child .cat-links,
		.home .hentry:first-child .tags-links {
			display: flex;
			align-items: center;
			flex-wrap: wrap;
		}
		.home .hentry:first-child .vcard.author:after,
		.home .hentry:first-child .cat-links:after {
			content: " ";
			width: 2px;
			height: 1em;
			display: inline-block;
			background-color: #43454b;
		    position: relative;
    		left: -0.5em;
		}
		.home .hentry:first-child .cat-links:after {
			left: 0.5em;
		}
	}

}


/* MAX WIDE DESKTOP */
@media screen and (min-width: 1500px) {
/*	Extra wide SITE  */
	.col-full {
		max-width: 70em;
	}
}