/*
Theme Name: EI Foundation
Theme URI: http://wordpress.ei.columbia.edu
Author: EI Web Team
Author URI: http://wordpress.org/
Description: Base theme for EI WordPress sites. Uses selected Foundation framework grid and components.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: earth institue, foundation
Text Domain: ei-foundation
*/

body {
	font-family: 'Open Sans', Helvetica, Arial, Verdana, Sans-Serif;
}

h1, h2, h3, h4, h5, h6 {
	color:inherit;
}

.alignright {
	float:right;
	margin:4px 0 5px 25px;
}

.alignleft {
	float:left;
	margin:4px 25px 5px 0;
}

.alpha9 {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
  filter: alpha(opacity=90);
  -moz-opacity: 0.9;
  opacity: 0.9;
}

.white-text {
	color:#fff;
}

header{
	width:100%;
	padding:15px 0;
	color:#fff;
}

.site-title h2 {
	margin:0;
}

.site-title a {
	color:inherit;
}

header .ei-cu-logos{
	margin-top:5px;
}

.separator {
	margin:0 5px;
}

header .description{
	margin:11px 0 0 0;
	font-size:1.3em;
	line-height:1.1em;
}

header .widgets div:first-child{
	margin-top:9px;
}

header .widgets #searchform {
	display:none;
}

#topbar-widget .addthis_toolbox{
	position:absolute;
	bottom:15px;
	right:13px;
}

.main{
	padding-top:30px;
}

#searchsubmit {
	margin:8px 0 0 0;
	padding:4px 8px;
}

#page-title {
	margin-bottom:15px;
}

.callout{
	width: 100%;
	font-size:1.4em;
	line-height:1.5em;
}

.home #page-title {
	display:none;
}

.top-bar-section ul li:first-child{
	border-top:1px solid #666;
}

.top-bar-section ul li{
	border-bottom:1px solid #666;
}

.top-bar-section .dropdown li.title h5 a{
	font-size:0.8125rem;
	filter: alpha(opacity=70);
	opacity: 0.7;
}

/* bg hover for menu items that have link in parent */
.top-bar-section .dropdown li.parent-link a:hover{
	background-color:#272727;
}

/* lower opacity for current menu item:
.top-bar-section .current-menu-item:not(.menu-item-has-children) a, .top-bar-section li.current-menu-item > ul.dropdown > li > a.parent-link{
	filter: alpha(opacity=70);
	opacity: 0.7;
}
*/

.gradient{
	height:100%;
	width:100%;
	background: -moz-linear-gradient(top,  rgba(0,0,0,0) 45%, rgba(0,0,0,0.65) 98%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(45%,rgba(0,0,0,0)), color-stop(98%,rgba(0,0,0,0.65)));
	background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 45%,rgba(0,0,0,0.65) 98%);
	background: -o-linear-gradient(top,  rgba(0,0,0,0) 45%,rgba(0,0,0,0.65) 98%);
	background: -ms-linear-gradient(top,  rgba(0,0,0,0) 45%,rgba(0,0,0,0.65) 98%);
	background: linear-gradient(to bottom,  rgba(0,0,0,0) 45%,rgba(0,0,0,0.90) 98%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 );
}

.categories-tags{
	margin-top:17px;
}

.wp-caption, .wp-caption img{
	max-width:100%;
}

iframe{
	max-width:100%;
}

.video-container {
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 30px;
	height: 0;
	overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* sidebar */

#sidebar{
	margin:20px 0;
	padding:10px;
	background-color:#F0F0F0;
	border:1px solid #ccc;
	color:#222;
}

#sidebar h2{
	font-size:1em;
	font-weight:bold;
}

#sidebar > li{
	list-style:none;
	margin-bottom:20px;
	padding-bottom:20px;
	border-bottom:2px solid #ccc;
	overflow:auto;
}

#sidebar li:last-child{
	padding-bottom:0;
	margin-bottom:0;
	border-bottom:0;
}

#sidebar .pagenav{
	padding:10px;
	border:1px solid #ccc;
}

#sidebar .pagenav a{
	color:#fff;
}

#sidebar .pagenav a:hover{
	text-decoration:underline;
}

#sidebar .pagenav .current_page_item > a:hover{
	text-decoration:none;
}

#sidebar .widget_search .widgettitle{
	margin-bottom:4px;
}

#sidebar #searchform, #sidebar #searchform input#s{
	margin-bottom:0;
}

#sidebar #searchform .screen-reader-text{
	display:none;
}

#sidebar .pagenav .current_page_item > a {
	color:inherit;
}


#sidebar .textwidget p:first-child{
	margin-top:12px;
}

/* footer */

footer .row{
	background-color:#333;
	color:#fff;
	padding:15px 0;
}

footer a{
	color:#ccc;
}

footer .addthis_toolbox{
	float:right;
	margin:3px 0 5px 10px;
}

footer ul#menu-footer{
	margin-bottom:0;
}

footer ul#menu-footer li{
	font-size:.9em;
}

/* posts archive */

.post {
	padding-bottom:30px;
	margin-bottom:30px;
	border-bottom:3px solid #ccc;
	overflow:auto;
}

.post .title{
	margin:0;
	line-height:1.2em;
}

.post .author-time{
	margin:3px 0 20px;
}

.post .excerpt .wp-post-image{
	float:left;
	margin:5px 15px 10px 0;
}

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

/* .main div.post:last-child {
	border-bottom:0;
	margin-bottom:5px;
	padding-bottom:0;
} */

/* single post */

.single .metadata{
	margin-bottom:35px;
}

.single .author-time{
	margin-bottom:5px;
}

/* authors */

.author .author-time .author, .author .author-time .separator{
	display:none;
}


/* foundation specific */

/* resets */

button, .button{ color:#fff !important; }

button.secondary, .button.secondary { color:#333 !important; }

blockquote{
	border-left:0;
}
	
/* move topbar menu left -- kosher? */
.top-bar .toggle-topbar.menu-icon{
	padding-left:0;
	left:15px;
}
.top-bar .toggle-topbar.menu-icon a{
	padding:0 0 0 25px;
}
.top-bar .toggle-topbar.menu-icon a span:after{
	left:2px;
}

/* small only */	
@media only screen and (max-width:440px) {
	
	.wp-caption, .wp-caption img{
		width: 100% !important;
	}

}

/* medium and up */
@media only screen and (min-width: 40.063em) {
	
	header{
		padding:30px 0 15px 0;
		position:relative;
	}
	
	header .description, header .widgets{
		position:absolute;
		right:0;
		padding-right:inherit;
	}
	
	header .description{
		bottom:0;
	}
	
	header .widgets{
		bottom:27px;
	}
	
	header .widgets div{
		text-align:right;
	}
	
	header .widgets #searchform{
		display:block;
	}
	
	header .widgets #s {
		margin-bottom:0;
		padding:1px 2px;
		height:1.7em;
		width:220px;
		float:right;
	}
	
	header .widgets #searchsubmit {
		float:right;
		clear:both;
		margin:4px 0 0 0;
		padding:1px 4px;
		font-size:.8em;
	}
	
	header .widgets .searchform .screen-reader-text{
		display:none;
	}
	
	header .addthis_toolbox{
		float:right;
	}
	
	.top-bar-section > ul > li{
		border:0 !important;
	}
	
	.top-bar-section ul.dropdown li.parent-link{
		border-top:1px solid #666;
	}
	
	.main{
		padding-bottom:40px;
	}
	
	.categories, .tags{
		line-height:1.5em;
	}
	
	.callout{
		width: 40%;
		float:right;
		padding:10px;
		margin:5px 0 10px 20px;
	}
	
	#sidebar{
		padding:0;
		background-color:transparent;
		border:none;
		color:inherit;
	}
	
	footer .menu-footer-container{
		display: table;
	}
	
	footer ul#menu-footer{
		display: table-row;
		margin:0;
	}
	
	footer ul#menu-footer > li{
		display: table-cell;
		padding-right:30px;
		font-size:.95em;
		margin-bottom:0;
	}
	
}