/*
Theme Name: CSCS Theme
Author: Jon Styer, Joel Christophel, Joshua Lyons
Description: A theme for the Center for Sustainable Climate Solutions
Version: 0.0.1
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

/* global box-sizing */
*,
*:after,
*:before {
  -moz-box-sizing:border-box;
  box-sizing:border-box;
  -webkit-font-smoothing:antialiased;
  font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
/* html element 62.5% font-size for REM use */
html {
  font-size:62.5%;
}
body {
  font:300 11px/1.4 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: black;
	font-size: 1.5rem;
}

body.home {
	background: white;	
}

/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
br.clear {
    display: none;
}
img {
  max-width:100%;
  vertical-align:bottom;
}
p {
	margin: 0 0 2em;
}
a {
  color:#444;
  text-decoration:none;
}
a:hover {
  color:#444;
}
a:focus {
  outline:0;
}
a:hover,
a:active {
  outline:0;
}

input[type=submit] {
	background: #1f9bde;
	color: white;
	border: none;
	border-radius: 2px;
	padding: .75em 1.5em;
	font-weight: bold;
}

input:focus {
  outline:0;
  border:1px solid #04A4CC;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.default-cursor {
	cursor: default;
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* wrapper */
.wrapper {
  max-width: 1280px;
  width: 65%;
  margin: 0 auto;
  position: relative;
}

/* header */
.header {
	border-top: 15px solid #1f9bde;
	border-bottom: 2px solid #f1f1f1;
	position: relative;
  z-index: 10;
}

header .wrapper {
	display: table;
	max-width: 1000px;
	width: 100%;
	padding: .5em 2em;
	margin: 1em auto .7em auto;
}

header .wrapper > * {
	display: table-cell;
	vertical-align: middle;
}

/* logo */
.logo {
	display: inline-block;
}
.logo-img {
	width: 308px;
}

.search-nav {
	transform: translateY(1.18em);
	float: right;
	background: none;
	width: 90%;
}

.search-nav .hamburger {
	display: none;
	float: right;
	padding: 10px;
	border: none;
	background: none;
}

.search-nav .hamburger:focus {
	outline: 0;
}

.search-nav .search {
	border-bottom: 3px solid #d1e4f7;
	width: 100%;
	padding-bottom: 10px;
}

input.search-input {
	border: 0;
	text-align: right;
	font-weight: 900;
	font-size: .8em;
	width: calc(100% - 40px);
}

button.search-submit {
	background: none;
	border: none;
	outline: 0;
}

button.search-submit:hover {
	filter: brightness(1.15);
}

button.search-submit img {
	width: 21px;
}

::-webkit-input-placeholder{
	color: #a1cbee;
}
:-moz-placeholder{
	color: #a1cbee;
}
:-ms-input-placeholder {
	color: #a1cbee;
}
::-ms-input-placeholder {
	color: #a1cbee;
}

/* nav */
.nav {
	display: inline-block;
}

.nav ul {
	padding-left: 0;
	margin: 0;
}

.nav ul li {
	display: inline-block;
	text-transform: uppercase;
  padding: 1.8em 0 2em 0;
	position: relative;
	background-color: white;
}

.nav > ul > li > a:hover {
	color: #505050;
}

.nav ul li a:hover {
	text-decoration: none;
}

.nav ul li:hover .sub-menu {
	display: block;
}

.nav ul li a {
	font-weight: 700;
	color: black;
	font-size: 1.2em;
	padding: .2em 0 .5em 0;
	text-decoration: none;
}

.nav ul .current_page_item a {
	color: #1f9bde;
}

.nav ul li + li {
	margin-left: 1em;
}

.nav .sub-menu:before {
	content: '';
	position: absolute;
	z-index: 10;
	top: -15px;
	left: 28px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 15px 15px 15px;
	border-color: transparent transparent #f1f1f1 transparent;
}

.nav .sub-menu {
	position: absolute;
	left: -13px;
	top: 82px;
	display: none;
	z-index: 10;
	border: 2px solid #f1f1f1;
	border-top: none;
	background-color: white;
}

.nav .sub-menu:hover {
	display: block;
}

.nav .sub-menu li {
	display: block;
	margin: 0;
	padding: 0;
	text-transform: none;
	width: 16em;
}

.nav .sub-menu li + li:before {
	content: "";
	display: block;
	height: 1px;
	background: #f1f1f1;
}

.nav .sub-menu li a {
	display: block;
	width: inherit;
	padding: .65em 0 .65em 1em;
	background-color: white;
}

nav .sub-menu li a:hover {
	background-color: #d1e4f7;
}

.banner {
	/*max-height: 450px;*/
	overflow: hidden;
	text-align: center;
}

.home .section.highlighted {
	color: white;
	background-color: #1f9bde;
}

.home .section {
	text-align: center;
	padding: 4em 0;
	font-size: 1.1em;
	background: white;
}

.home .section:first-of-type {
	padding-top: 2em;
}

.home .section h1 {
	text-transform: uppercase;
	margin-top: 0;
	font-weight: bold;
}

.home .section .wrapper {
	width: 90%;
	max-width: 792px;
}

.home #news .wrapper {
	width: 92%;
	max-width: 1028px;
}

.partners-logos {
	text-align: center;
}

.partners-logos a img {
	width: 170px;
	margin-top: .9em;
}

.partners-logos a + a {
	margin-left: 4em;
}

.home #what img {
	width: 85px;
}

.home .section img + img {
	margin-left: 4em;
}

#news {
	text-align: left;
	background: #edf4f7;
}

#news-feature {
	border-right: .5em solid #d1e4f7;
	padding-right: 4em;
}

#news-feature p {
	margin: 0;
}

#news-feature img {
	display: block;
	margin: 0 auto;
}

#news-feature .article-metadata {
	text-transform: uppercase;
	color: #1f9bde;
	margin: 1em 0 .7em 0;
}

#news-feature .article-metadata span {
	font-size: .8em;
}

#news-feature .article-metadata span:first-of-type:after {
	content: "•";
	padding: 0 .4em;
	font-size: 1.2em;
}

#news-feature .article-title {
	font-weight: bold;
	width: 90%;
	color: black;
}

#news-list {
	padding-left: 3.7em;
}

#news-list h2 {
	text-transform: uppercase;
	color: #1f9bde;
	font-size: .9em;
	font-weight: bold;
	margin: .5em 0 0 0;
}

#news-list ul {
	list-style: none;
	padding: 0;
	font-size: .9em;
}

#news-list ul li + li {
	border-top: 1px solid #d1e4f7;
}

#news-list ul li {
	padding: 1em 0;
}

#news-list ul li a {
	color: black;
}

/* sidebar */
.sidebar {

}

/* normal page or post */
.post-template-default main .wp-caption {
	padding: 5px 3px 0px;
	text-align: left;
}

.post-template-default main .wp-caption-text {
	padding-top: .5em;
}

.post-template-default main .post-thumbnail img {
	display: block;
	margin: 0 auto;
}

.page-template-default main {
	padding: 2em 0 3em 0;
}

.post-template-default main {
	padding-bottom: 2em;
}

.post-template-default main .wrapper,
.page-template-default main .wrapper {
	width: 90%;
	max-width: 870px;
}

.post-template-default main .wrapper {
	padding-right: 3em;
}

.post-template-default main h2,
.page-template-default main h2 {
	font-size: 1.5em;
}

.post-template-default main h1 {
  margin-bottom: .4em;
}

.post-template-default main p,
.page-template-default main p {
	margin: 0 0 1.4em;
}

.post-template-default .post-details {
	font-size: .85em;
  margin-bottom: 1.3em;
}

.comments ul {
	list-style: none;
	padding: 0;
}

.comment {
	margin-bottom: 1em;
}

.comment-body {
	display: flex;
}

.comments .avatar {
	width: 70px;
	height: 70px;
	flex-shrink: 0;
	margin-right: 23px;
	border-radius: 1000px;
}

.grav-clone {
	border-width: 2px 2px 2px !important;
}

.comment-author {
	display: inline-block;
	margin-right: 10px;
}

.comment-author cite {
	font-style: normal;
	font-weight: bold;
}

.comment-meta {
	display: inline-block;
	font-size: .85em;
	margin-bottom: 6px;
	color: #bbbbbb
}

.comment-meta a {
	color: #bbbbbb;
}

.comments .edit:before, .comments .reply:before {
	content: "•";
	padding: 0 2px;
}

.comment .children {
	border-left: 3px solid #f3f3f3;
	padding-left: 10px;
}

.comment.depth-3 .children {
	border-left: none;
	padding-left: 0;
}

.comment.depth-1 > .children {
	margin-left: 93px;
}

.comment.depth-2 .children {
	margin-left: 73px;
}

/* Max depth */
.comment.depth-3 .children {
	margin-left: 0;
}

.children .avatar {
	width: 55px;
	height: 55px;
	margin-right: 15px;
}

.comment-form-comment textarea {
	display: block;
	height: 100px;
	width: 90%;
}

.form-submit input {

}

/* search results */

.search-results main .wrapper {
	width: 60%;
}

/* footer */
.footer {
	padding: 4.5em 0 3em 0;
	color: white;
	background-color: #0056b8;
}

.footer .wrapper {
	width: 95%;
	max-width: 1108px;
}

.footer a {
	color: white;
	text-decoration: none;
}

.footer a:hover {
	filter: brightness(.9);
}

.footer .container-fluid > .row > :first-child {
	text-align: center;
}

#footer-contact {
	margin-top: 3em;
	font-size: .75em;
	text-align: left;
	min-width: 225px;
}

#footer-links {
	padding-left: 2em;
}

#footer-links, #social #subscribe {
	text-transform: uppercase;
	font-weight: bold;
	font-size: 1.2em;
}

#footer-links > * {
	margin: 1em 0 0 0;
}

#footer-links > *:first-of-type, #footer-links > *:nth-of-type(2) {
	margin: 0;
}

#footer-links a {
	margin-left: 25%;
}

#social {
	text-align: center;
}

#social a:hover {
	filter: brightness(1.1);
}

#social #subscribe {
	background: #1f9bde;
	display: inline-block;
	padding: .75em 1em;
	margin: 1.5em 0;
	text-decoration: none;
}

#social img {
	width: 40px;
}

#social #facebook {
	margin-right: 2em;
}

/*------------------------------------*\
    PAGES
\*------------------------------------*/

.subscribe label {
	width: 100px;
	text-align: right;
	margin-right: 1em;
}

.subscribe input[type="text"],
.subscribe input[type="email"] {
	padding: 5px 8px;
}

.subscribe input[type="submit"] {
	margin: 10px 0 0 120px;
}

/*------------------------------------*\
    IMAGES
\*------------------------------------*/



/*------------------------------------*\
  TYPOGRAPHY
\*------------------------------------*/

@font-face {
  font-family:'Font-Name';
  src:url('fonts/font-name.eot');
  src:url('fonts/font-name.eot?#iefix') format('embedded-opentype'),
    url('fonts/font-name.woff') format('woff'),
    url('fonts/font-name.ttf') format('truetype'),
    url('fonts/font-name.svg#font-name') format('svg');
    font-weight:normal;
    font-style:normal;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

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

}
@media only screen and (min-width:480px) {

}
@media only screen and (min-width:768px) {

}
@media only screen and (min-width:1024px) {

}
@media only screen and (min-width:1140px) {

}
@media only screen and (min-width:1280px) {

}
@media only screen and (-webkit-min-device-pixel-ratio:1.5),
     only screen and (min-resolution:144dpi) {

}

/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
  background:#04A4CC;
  color:#FFF;
  text-shadow:none;
}
::-webkit-selection {
  background:#04A4CC;
  color:#FFF;
  text-shadow:none;
}
::-moz-selection {
  background:#04A4CC;
  color:#FFF;
  text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
  margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
  display:block;
  margin:5px auto 5px auto;
}
.alignright {
  float:right;
  margin:5px 0 20px 20px;
}
.alignleft {
  float:left;
  margin:5px 20px 20px 0;
}
a img.alignright {
  float:right;
  margin:5px 0 20px 20px;
}
a img.alignnone {
  margin:5px 20px 20px 0;
}
a img.alignleft {
  float:left;
  margin:5px 20px 20px 0;
}
a img.aligncenter {
  display:block;
  margin-left:auto;
  margin-right:auto;
}
.wp-caption {
  background:#FFF;
  border:1px solid #F0F0F0;
  max-width:96%;
  padding:5px 3px 10px;
  text-align:center;
}
.wp-caption.alignnone {
  margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
  margin:5px 20px 20px 0;
}
.wp-caption.alignright {
  margin:5px 0 20px 20px;
}
.wp-caption img {
  border:0 none;
  height:auto;
  margin:0;
  max-width:98.5%;
  padding:0;
  width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
  font-size:11px;
  line-height:17px;
  margin:0;
  padding:0 4px 5px;
}
.sticky {

}
.bypostauthor {

}

@media only screen and (max-width: 1000px) {
	.search-nav .hamburger {
		display: block;
	}
	
	.hamburger-box, .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
		width: 30px;
	}
	
	.nav > ul {
		display: none;
		position: fixed;
		top: 92px;
		right: -9px;
	}
	
	.nav > ul {
		border: 2px solid #f1f1f1; 
	}

	.nav > ul > li {
    display: block;
    text-align: right;
		padding: 0;
	}
	
	.nav ul li a {
		padding: .65em .5em .65em 1em;
		display: block;
	}

	nav ul li a:hover {
		background-color: #d1e4f7;
	}
	
	.nav ul li + li {
		margin: 0;
	}

	.nav ul li + li:before, .nav .sub-menu:before {
		content: "";
		display: block;
		height: 1px;
		background: #f1f1f1;
	}
	
	.nav .sub-menu:before {
		position: static;
		width: inherit;
		border: none;
	}
	
	.nav .sub-menu {
		display: block;
		position: static;
		border: none;
	}
	
	.nav .sub-menu li a {
		padding-right: 1.75em;
		font-weight: 100;
	}
	
	#news-feature {
		padding: 0 5% 0 0;
	}
	
	#news-list {
		padding: 0 0 0 5%;
	}
	
	.post-template-default main .wrapper {
		padding-right: 0;
	}
}

@media only screen and (max-width: 900px) {
	.header .logo {
		width: 250px;
	}
	
	.search-nav {
		transform: translateY(.8em);
	}
	
	.search-nav .search {
		padding-bottom: 5px;
	}
	
	input.search-input {
		width: calc(100% - 36px);
	}
	
	button.search-submit img {
		width: 17px;
	}
	
	.nav > ul {
		top: 84px;
	}
}

@media only screen and (max-width: 767px) {
	.home .section {
		padding: 1.75em 0;
	}
	
	#news-feature {
		border: none;
    padding: 0;
    border-bottom: 3px solid #d1e4f7;
    margin-bottom: 1.5em;
    padding-bottom: 1em;
	}
	
	#news-feature h1 {
		text-align: center;
	}
	
	#news-list {
		padding-left: 20px;
	}
	
	#news-feature .article-metadata {
		margin-top: .3em;
	}
	
	.partners-logos a img {
		width: 120px;
	}
	
	.partners-logos a + a {
		margin-left: 3em;
	}
	
	.footer {
		padding: 3em 0 1em 0;
	}
	
	.footer .logo {
		width: 275px;
	}
	
	#footer-contact {
		text-align: center;
		font-size: 1em;
		margin: 2em 0;
	}
	
	#footer-links {
		width: 90%;
    margin: 0 auto;
	}
}

@media only screen and (max-width: 700px) {
	.header {
		border-top-width: 4px;
	}
	
	button.search-submit {
		padding-right: 0;
	}
	
	.post-template-default main h1 {
		font-size: 1.3em;
    font-weight: 600;
	}
}

@media only screen and (max-width: 550px) {
	.header .logo {
		width: 200px;
	}
	
	.header .wrapper {
		padding: 0 1.3em;
		margin: .4em auto .5em auto;
	}
	
	.search-nav .search {
		padding-bottom: 2px;
    border-width: 2px;
	}
	
	.nav > ul {
		top: 70px;
	}
	
	.partners-logos a img {
		width: 100px;
	}
	
	.partners-logos a + a {
    margin-left: 2em;
	}
	
	.comment.depth-1 > .children {
    margin-left: 20px;
}
	
	.comment.depth-2 > .children {
		margin-left: 15px;
	}
	
	#footer-links {
		padding: 0;
	}
}

@media only screen and (max-width: 480px) {
	.header .wrapper {
		padding: 0 .6em;
	}
	
	.header .logo {
		width: 170px;
	}
	
	.search-nav {
		transform: translateY(.2em);
	}
	
	.nav > ul {
		top: 74px;
	}
	
	button.search-submit {
		padding-left: 0;
	}
	
	button.search-submit img {
		width: 15px;
	}
	
	input.search-input {
		width: calc(100% - 23px);
		font-size: .65em;
		font-weight: 100;
	}
	
	.search-nav .hamburger {
		margin-top: 0;
		padding-bottom: 5px;
	}
	
	.partners-logos a img {
		width: 80px;
	}
	
	.partners-logos a + a {
    margin-left: .7em;
	}
	
	.home #what img {
		width: 60px;
	}
	
	.home .section img + img {
		margin-left: 2.8em;
	}
	
	#news-feature .article-metadata span:first-child {
		display: none;
	}
	
	#footer-contact {
		font-size: .8em;
	}
	
	.comments .avatar {
		width: 50px;
		height: 50px;
		margin-right: 10px;
	}
	
	.children .avatar {
    width: 38px;
    height: 38px;
    margin-right: 8px;
	}

	.footer .logo {
		width: 220px;
	}
}

@media only screen and (max-width: 400px) {
	.post-template-default main h1 {
		font-size: 1.15em;
	}
	
	.subscribe label {
		text-align: left;
	}
	
	.subscribe input[type="submit"] {
		margin: auto;
	}
	
	.comment-meta {
		font-size: .8em;
	}
	
	.comment.depth-1 > .children {
		margin-left: 2px;
		padding-left: 5px;
	}
	
	#footer-links {
		font-size: 1em;
		transform: translateX(-1em);
	}
}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
  * {
    background:transparent !important;
    color:#000 !important;
    box-shadow:none !important;
    text-shadow:none !important;
  }
  a,
  a:visited {
    text-decoration:underline;
  }
  a[href]:after {
    content:" (" attr(href) ")";
  }
  abbr[title]:after {
    content:" (" attr(title) ")";
  }
  .ir a:after,
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content:"";
  }
  pre,blockquote {
    border:1px solid #999;
    page-break-inside:avoid;
  }
  thead {
    display:table-header-group;
  }
  tr,img {
    page-break-inside:avoid;
  }
  img {
    max-width:100% !important;
  }
  @page {
    margin:0.5cm;
  }
  p,
  h2,
  h3 {
    orphans:3;
    widows:3;
  }
  h2,
  h3 {
    page-break-after:avoid;
  }
}
