/*
Theme Name:     Midwest Center for Investigative Reporting
Theme URI:      http://largoproject.org
Description:    A child theme for the Midwest Center for Investigative Reporting based on the Project Largo parent theme.
Author:         Adam Schweigert/INN
Author URI:     http://largoproject.org
Template:       largo
Version:        0.1.0
*/

.module.aside {
  border: 1px solid #ccc;
  padding: 0 18px;
}
.module.aside p {
  font-size: 0.815em;
}

@media (max-width: 768px) {
  .module.aside {
    width: 90%;
    padding: 0 5%;
    margin-bottom: 24px;
  }
}

/* ---- FIXING LARGO HEADER MARGIN WEIRDNESS ---- */

@media only screen and (max-width: 979px) {
	body.normal.single-post article.post > header,
	body.normal.page article.post > header,
	body.normal.single-post article.page > header,
	body.normal.page article.page > header {
		margin: 24px 6.38297872%;
	}
}

@media only screen and (max-width: 529px) {
	body.normal.single-post article.post > header,
	body.normal.page article.post > header,
	body.normal.single-post article.page > header,
	body.normal.page article.page > header {
		margin: 24px 0;
	}
}



/* ---- HOMEPAGE BUTTONS ---- */

header .widget {
	margin-bottom: 0px;
}

#site-header {
	position:relative;
}

#site-header aside {
    max-width: 320px;
    float: right;
    position: absolute;
    bottom: 0;
    right: 0;
}

.homepage-button {
	display:inline-block;
}

.homepage-button a {
	display:block;
	height: 30px;
	padding: 7px 12px;
	border: 3px solid #90b03e;
	color:#000;
	text-transform:uppercase;
	font-family:"Helvetica","Arial",sans-serif;
	font-weight:800;
	font-size:1rem;
	line-height: 2rem;
}

.donate-btn {
	font-weight:bold;
	padding:0 10px;
	background-color:#f89406;
}



/* ---- LEAKY PAYWALL ---- */

.leaky_paywall_message_wrap {
	position: relative;
	width: 100%;
	margin: -5em auto 2em;
	padding: 6em 0 0;
	background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.5) 0.5em, #fff 5.5em, #fff 100%);
}

#leaky_paywall_message {
	box-shadow: 0 0 0.5em 0.25em rgba(0,0,0,0.125);
    padding: 1.375em;
    border: .5em solid #FFFFFF;
    -webkit-border-radius: .5em;
	-moz-border-radius: .5em;
	border-radius: .5em;
	background-color: #e3e3e3;
	color: #333333;
	font-size: 1em;
    line-height: 1.625;
}

#leaky_paywall_message a {
	color: inherit;
	font-weight: 600;
}

#leaky_paywall_message a:visited,
#leaky_paywall_message a:hover,
#leaky_paywall_message a:active,
#leaky_paywall_message a:focus {
	color: inherit;
}



/* 
*** SUBSCRIPTION OPTIONS PAGE
*/

h2.subscription-options-title {
	display:none;
}

.leaky_paywall_subscription_options {
	display: block;
	border-spacing: .75em;
}

.leaky_paywall_subscription_option {
	display: block;
	width: 100%;
	padding: 0;
    border: none;
    -webkit-border-radius: .25em;
	-moz-border-radius: .25em;
	border-radius: .25em;
	background: #ffffff;
	color: #333;
	font-size: 1em;
    line-height: 1.625;
    text-align: left;
    margin-bottom:1em;
}

.leaky_paywall_subscription_option.current-level {
    border: 2px solid #007711;
    box-shadow: 0 0 20px #3e8e51;
}

.leaky_paywall_subscription_current_level {
	color: #3e8e51;
	padding: 5px;
}

.leaky_paywall_subscription_option h3 {
	margin-bottom: 5px;
}

.leaky_paywall_subscription_allowed_content {
/*	display:none;*/
	border-top: none;
	border-bottom: none;
	margin: 0;
	padding: 0;
}

.leaky_paywall_subscription_allowed_content p {
	margin: 0 0 .75em;
	line-height: 1.2;
}

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

.leaky_paywall_subscription_price p {
	margin-bottom: 0;
	line-height: 1.2;
}

.leaky_paywall_subscription_limit_details {
	display: block;
	width: 100%;
	margin-top	30px;
	color: #666;
}

.leaky-paywall-subscription-details-wrapper {
	display:none;
}












.leaky_paywall_message {
	border-radius: 4px;
	margin-bottom: 1em;
}

.leaky_paywall_message.error {
	background: #F8D7DA;
	border: 1px solid #f5c6cb;
	padding: 10px;
}

.leaky_paywall_message.error p {
	margin-bottom: 5px;
	font-size: .875em;
	color: #721c24;
}

.leaky_paywall_message.success {
	background: #D4EDDA;
	border: 1px solid #c3e6cb;;
	padding: 10px;
}

.leaky_paywall_message.success p {
	margin-bottom: 5px;
	font-size: .875em;
	color: #155724;
}

.leaky-paywall-payment-form .form-row label {
	display: block;
}

.leaky-paywall-payment-method-container {
	margin-bottom: 20px;
}

.leaky-paywall-payment-method-container img {
	margin-left: 20px;
}

.leaky-paywall-test-mode-wrapper {
	border: 1px solid red;
	padding: 10px;
	margin-bottom: 10px;
}

.leaky-paywall-test-mode-text {
	color: red;
}

#leaky-paywall-update-credit-card label {
	display: block;
}

#leaky-paywall-credit-card-form .exp-month, #leaky-paywall-update-credit-card .exp-month {
	width: 75px;
}

#leaky-paywall-credit-card-form .exp-year, #leaky-paywall-update-credit-card .exp-year {
	width: 125px;
}




/* 
*** NAG REMINDER (BOTTOM OF PAGE) 
*/

#issuem-leaky-paywall-articles-remaining-nag {
	display: block;
	width: 100%;
	height: 150px;
	bottom: 0;
	padding-left:25%;
	overflow: hidden;
	position: fixed;
	left: -1700px;
	z-index: 4815162342;
	background-color: #000000;
	border-top: solid #000 thin;
	border-right: solid #000 thin;
	border-bottom: solid #000 thin;
	font-family: sans-serif;
	line-height: 1;
	font-size: 1rem;
}

#issuem-leaky-paywall-articles-remaining-nag #issuem-leaky-paywall-articles-remaining-close {
	display: block;
	width: 100%;
	height: 18px;
	position: relative;
	float: right;
	color: #fff;
	text-align: right;
	padding-top: 5px;
	padding-right: 5px;
}

#issuem-leaky-paywall-articles-remaining-nag #issuem-leaky-paywall-articles-remaining-close {
	cursor: pointer;
}

#issuem-leaky-paywall-articles-remaining-nag #issuem-leaky-paywall-articles-remaining {
	display: inline-block;
	width: 80%;
	min-width: 225px;
	max-width: 300px;
	text-align: left;
	margin-left: 10px;
	margin-right: auto;
	clear: both;
	height: auto;
	color: #cecece;
}

#issuem-leaky-paywall-articles-remaining-nag #issuem-leaky-paywall-articles-remaining-count {
	position: relative;
	display: inline-block;
	float: left;
	color: #fff;
	font-size: 2rem;
	margin-right: 0.5rem;
}

#issuem-leaky-paywall-articles-remaining-nag #issuem-leaky-paywall-articles-remaining-text {
	width: auto;
	position: relative;
	display: inline-block;
	float: left;
	color: #fff;
	font-size: 2rem;
	padding-top: 0px;
}

#issuem-leaky-paywall-articles-remaining-nag #issuem-leaky-paywall-articles-remaining-subscribe-link {
	clear: both;
	display: block;
	width: 100%;
	height: 25px;
	bottom: 0px;
	position: relative;
	text-align: center;
	line-height: 1.6em;
	font-weight: bold;
	text-decoration: none;
}

#issuem-leaky-paywall-articles-remaining-nag #issuem-leaky-paywall-articles-remaining-subscribe-link a {
	color:white;
}

#issuem-leaky-paywall-articles-remaining-nag #issuem-leaky-paywall-articles-remaining-subscribe-link {
	color: white;
	text-decoration: none;
	display:inline-block;
	background-color:#c00;
	text-transform:uppercase;
	width: auto;
	margin:0.3em;
	padding: 2px 10px 0;
	vertical-align: top;
	height: 3.5rem;
	font-size: 2rem;
}

#issuem-leaky-paywall-articles-remaining-nag #issuem-leaky-paywall-articles-remaining-login-link {
	clear: both;
	display: block;
	width: 100%;
	height: 25px;
	bottom: 0px;
	position: relative;
	background-color: none;
	text-align: left;
	line-height: 1.6em;
	margin-left: 10px;
	margin-right: auto;
}

#issuem-leaky-paywall-articles-remaining-nag #issuem-leaky-paywall-articles-remaining-login-link a {
	color: #44ccff;
	text-decoration: none;
}

#issuem-leaky-paywall-articles-remaining-nag #issuem-leaky-paywall-articles-remaining-login-link a:hover {
	text-decoration: underline;
}




/* 
*** HARD WALL AFTER EXPIRATION 
*/

#issuem-leaky-paywall-articles-zero-remaining-nag {
	display: block;
	width: 400px;
	height: 325px;
	overflow: hidden;
	position: fixed;
	top: 50%;
	left: 50%;
	margin-top: -200px;
	margin-left: -25%;
	padding:30px;
	z-index: 4815162342;
	background-color: #fff;
	border: solid #000 thin;
	font-family: 'PT Serif',Georgia,serif;
	line-height: 1;
	font-size: 14px;
}

div#issuem-leaky-paywall-articles-remaining::before {
/*    content: url(/wp-content/uploads/2013/01/logo-Midwest-color-horizontal-4web-md-336x101.gif);*/
    display: block;
    text-align: center;
    margin: 0 auto 20px;
}

#issuem-leaky-paywall-articles-zero-remaining-nag #issuem-leaky-paywall-articles-remaining-close {
	display: block;
	width: 100%;
	height: 0px;
	position: relative;
	float: right;
	color: #262626;
	text-align: right;
	padding-top: 5px;
	padding-right: 5px;
}

#issuem-leaky-paywall-articles-zero-remaining-nag #issuem-leaky-paywall-articles-remaining {
	display: inline-block;
	width: 100%;
	min-width: inherit;
	max-width: inherit;
	text-align: left;
	margin-right: auto;
	clear: both;
	height: auto;
	color: #060606;
}

#issuem-leaky-paywall-articles-zero-remaining-nag #issuem-leaky-paywall-articles-remaining p {
	font-size: 1rem;
    line-height: 1.2rem;
    margin: 0 0 1rem;
}

#issuem-leaky-paywall-articles-zero-remaining-nag #issuem-leaky-paywall-articles-remaining-count {
	position: relative;
	display: inline-block;
	float: left;
	color: #fff;
	font-size: 2rem;
	margin-right: 0.5rem;
}

#issuem-leaky-paywall-articles-zero-remaining-nag #issuem-leaky-paywall-articles-remaining-text {
	width: auto;
	position: relative;
	display: inline-block;
	float: left;
	color: #fff;
	font-size: 2rem;
	padding-top: 0px;
}

#issuem-leaky-paywall-articles-zero-remaining-nag #issuem-leaky-paywall-articles-remaining-subscribe-link {
	clear: both;
	display: block;
	width: 100%;
	height: 25px;
	bottom: 0px;
	position: relative;
	text-align: center;
	line-height: 1.6em;
	font-weight: bold;
	text-decoration: none;
}

#issuem-leaky-paywall-articles-zero-remaining-nag #issuem-leaky-paywall-articles-remaining-subscribe-link a {
	color:white;
}

#issuem-leaky-paywall-articles-zero-remaining-nag #issuem-leaky-paywall-articles-remaining-subscribe-link {
	color: white;
	text-decoration: none;
	display:inline-block;
	background-color:#c00;
	text-transform:uppercase;
	width: auto;
	padding: 2px 10px 0;
	vertical-align: top;
	height: 1.5rem;
	font-size: 1rem;
	font-family: sans-serif;
	margin-right: auto;
	margin-bottom: 1rem;
}

#issuem-leaky-paywall-articles-zero-remaining-nag #issuem-leaky-paywall-articles-remaining-login-link {
	clear: both;
	display: block;
	width: 100%;
	height: 25px;
	bottom: 0px;
	position: relative;
	background-color: inherit;
	text-align: left;
	line-height: 1.6em;
	margin-right: auto;
}

#issuem-leaky-paywall-articles-zero-remaining-nag #issuem-leaky-paywall-articles-remaining-login-link a {
	color: #44ccff;
	text-decoration: none;
}





/*
** SUBSCRIPTION BUTTONS
*/

.leaky-paywall-payment-button {
    display: inline-block;
    margin: 5px;
}

#leaky-paywall-submit, .leaky-paywall-payment-button, .stripe-button-el {
	-webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    -ms-box-shadow: none !important;
    -o-box-shadow: none !important;
    box-shadow: none !important;
    background-image:none !important;
    border:0 !important;
    border-width:0 !important;
}

.leaky-paywall-payment-button a, .stripe-button-el span {
	min-height:inherit !important;
	padding:7px 12px !important;
	height:30px;
	line-height:30px;
	background: #32A3E4 !important;
	background-color:none !important;
	background-image:none !important;
	border:none !important;
	border-radius:4px !important;
	-webkit-box-shadow: none !important;
	-moz-box-shadow: none !important;
	-ms-box-shadow: none !important;
	-o-box-shadow: none !important;
	box-shadow: none !important;
	font-family:sans-serif !important;
	font-size:1rem !important;
	font-weight:bold !important;
	text-shadow:none !important;
	-webkit-font-smoothing: antialiased;
}


/*
** MEDIA QUERIES
*/

@media only screen and (max-width: 979px) {
	#site-header img {
		width: 50%;
	}
}

@media only screen and (max-width: 768px) {
	#issuem-leaky-paywall-articles-remaining-nag {
		padding-left:0;
		height: 200px;
	}

	#issuem-leaky-paywall-articles-remaining-nag #issuem-leaky-paywall-articles-remaining-subscribe-link {
		margin: 10px 10px;
		max-width:300px;
		display:block !important;
	}

	#issuem-leaky-paywall-articles-zero-remaining-nag {
		width: calc(100% - 22px);
	    height: 325px;
	    top: 50%;
	    left: 0;
	    margin-top: -180px;
	    margin-left: 0;
	    padding: 10px;
	}

	div#issuem-leaky-paywall-articles-remaining::before {
	    content: url(/wp-content/uploads/2013/01/logo-Midwest-color-horizontal-4web-sm.gif);
	}
}