/*
Theme Name: Extension County Office
Description: A WSU Spine child theme for WSU Extension County office sites.
Version: 0.0.1
Author: CAHNRS Communications, Phil Cable
Author URI: http://cahnrs.wsu.edu/communications/
Template: spine
*/

/* CAHNRS header overrides */
/*.extension-signature .cahnrs-header-group {
	border-top-color: #981e32;
}*/
.home .main-header {
	height: 142px;
}
.home .main-header:before,
.home .main-header:after {
	content: '';
	display: block;
	height: 100%;
	position: absolute;
	top: 0;
	width: 9999rem;
}
.home .main-header:before {
	left: -9999rem;
	margin-left: -198px;
}
.home .main-header:after {
	right: -9999rem;
}
.home #extension-heading {
	border-right: none;
}

/* Temporary until next CAHNRS Spine Tooling release */
.page.has-featured-image .main-header {
	z-index: auto;
}
.page.has-featured-image .main-header:before {
	z-index: 1;
}
/* End temporary until next CAHNRS Spine Tooling release */

.home .main-header,
.home .main-header:before,
.home .main-header:after,
/* get rid of :not() */
body:not(.home) .cahnrs-header-group,
body:not(.home) .cahnrs-header-group:before,
body:not(.home) .cahnrs-header-group:after,
.quicklinks dl {
	background: #532400;
	background: #5e6a71;
	background: #464e54;
	background: #2a3033;
}
.home .quicklinks {
	padding-top: 0;
}
.main-header sub {
	font-size: 50px;
}
.main-header sub span,
.main-header sub span:after {
	height: 50px;
}
.builder-layout > .article-header {
	padding: 3rem 2rem 0;
}
article > .article-header {
	padding-top: 1rem;
}
/* Site Actions */
.actions-footer,
.logged-in.customizer-preview .actions-footer {
	position: absolute;
	text-align: right;
	top: 53px;
	width: inherit;
}
.logged-in .actions-footer {
	top: 85px;
}
.page.has-featured-image .actions-footer,
.page.has-featured-image.logged-in.customizer-preview .actions-footer {
	top: 500px;
}
.page.has-featured-image.logged-in .actions-footer {
	top: 532px;
}
.home .actions-footer,
.home.logged-in.customizer-preview .actions-footer {
	height: 127px;
	right: 0;
	top: 10px;
	width: auto;
	z-index: 1;
}
.home.logged-in .actions-footer {
	top: 42px;
}
.actions-footer ul {
	padding: 0;
}
.actions-footer li {
	text-align: center;
	padding: 0;
}
.actions-footer a {
	background: #981e32;
	box-sizing: border-box;
	color: #fff;
	display: block;
	padding: 0.5rem 1rem;
	-webkit-transition: background .2s linear, color .2s linear;
	transition: background .2s linear, color .2s linear;
}
.actions-footer a:hover {
	background: #c60c30;
}
/* Contact form */
.county-contact-form {
	margin: 0;
	padding: 0 0 1rem 0;
}
.county-contact-form h2 {
	padding-top: 0;
}
.county-contact-form p {
	padding-bottom: 0.5rem;
}
.county-contact-form .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
}
.county-contact-form .error {
	color: #981e32;
	font-style: italic;
}
.county-contact-form .basic-field,
.county-contact-form.error .basic-field {
	background: #fff;
	border-radius: 1px;
	border: 1px solid #5e6a71;
	box-sizing: border-box;
	color: #8d959a;
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
	font-size: 1.1em;
	height: 2rem;
	line-height: 20px;
	margin: 0;
	padding: 0.5rem;
	width: 100%;
	-webkit-appearance: textfield;
}
.county-contact-form.error .basic-field:invalid {
	border: 1px solid #981e32;
}
.county-contact-form .basic-field:focus {
	color: #981e32;
}
.county-contact-form .basic-field::-webkit-input-placeholder {
	color: #8d959a;
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
	font-size: 14px;
	font-style: italic;
}
.county-contact-form .basic-field:-moz-placeholder {
	color: #8d959a;
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
	font-size: 14px;
	font-style: italic;
	opacity: 1;
}
.county-contact-form .basic-field::-moz-placeholder {
	color: #8d959a;
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
	font-size: 14px;
	font-style: italic;
	opacity: 1;
}
.county-contact-form .basic-field:-ms-input-placeholder {  
	color: #8d959a;
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
	font-size: 14px;
	font-style: italic;
}
.county-contact-form label[for="contact-message"] {
	color: #8d959a;
	font-size: 14px;
	font-style: italic;
	font-weight: normal;
	padding-left: 0.5rem;
}
.county-contact-form textarea {
	background: #fff;
	border-radius: 1px;
	border: 1px solid #5e6a71;
	color: #8d959a;
}
.county-contact-form input[type=submit] {
	border-radius: 1px;
	background: #981e32;
	border: 0;
	color: #fff;
	font-size: 0.9rem;
	font-weight: bold;
	padding: 0.75em 1.5em;
	width: 100%;
}
.county-contact-form input[type=submit]:hover {
	background: #c60c30;
}
.county-contact-form input[type=submit]:active,
.county-contact-form input[type=submit]:focus {
	background: #5e6a71;
}

/* Contact info - likely just temporary */
.county-contact {
	padding-bottom: 1rem;
}
.county-contact:after {
	content: '';
	clear: both;
	display: table;
}
.contact-information {
	box-sizing: border-box;
	float: left;
	width: 50%;
}
.contact-information .name,
.contact-information .information {
	padding-bottom: 0.5em;
}
.contact-map {
	float: right;
	margin-bottom: 1rem;
	padding-bottom: 50%;
	padding-bottom: calc(50% - 1rem);
	position: relative;
	width: 50%;
	width: calc(50% - 1rem);
}

/* Search form stuff */
.county-mobile-search-form {
	display: none;
}
input[type="search"]::-webkit-search-decoration {
	display: none;
}
.cahnrs-search-field {
	text-indent: 1rem;
}

/* Program icon */
.extension-program-icon {
	float: right;
}

/* Default gallery */
.gallery {
	margin: auto;
	padding: 1rem 0 2rem;
}
.gallery:before,
.gallery:after {
	content: '';
	display: table;
}
.gallery:after {
	clear: both;
}
.gallery-columns-1 .gallery-item {
	width: 100%;
}
.gallery-columns-2 .gallery-item {
	width: 50%;
}
.gallery-columns-3 .gallery-item {
	width: 33%;
}
.gallery-columns-4 .gallery-item {
	width: 25%;
}
.gallery-columns-5 .gallery-item {
	width: 20%;
}
.gallery-columns-6 .gallery-item {
	width: 16.66%;
}
.gallery-columns-7 .gallery-item {
	width: 14.28%;
}
.gallery-columns-8 .gallery-item {
	width: 12.5%;
}
.gallery-columns-9 .gallery-item {
	width: 11.11%;
}
.gallery .gallery-item {
	box-sizing: border-box;
	margin: 0;
	padding: 7px;
}
.gallery img {
	border: none;
}

/* Image captions */
figcaption {
	color: #8d959a;
	font-size: 0.9em;
	line-height: 1.5em;
	text-align: center;
}

.search .cahnrs-search {
	margin-top: 2rem;
}

/* Misc */
.article-header:after {
	clear: both;
	content: '';
	display: table;
}
.county-responsive-media {
	height: 0;
	margin-bottom: 2rem;
	padding-bottom: 56.25%;
	position: relative;
}
article footer {
	clear: both;
}
.tribe-events-list-widget {
	padding-bottom: 1rem;
}
.tribe-events-list-widget ol {
	list-style: none;
	padding: 0 0 1em 0;
}
.tribe-events-list-widget li h4 {
	font-size: 1.12em;
}
.tribe-events-event-url {
	word-break: break-word;
	word-wrap: break-word;
}
.tribe-events-adv-list-widget .list-date {
	display: none;
}
.tribe-events-adv-list-widget .list-info .tribe-events-title {
	font-size: 1.12em;
}
.tribe-events-adv-list-widget .tribe-events-widget-link {
	padding-top: 1em;
}
.builder-layout .tribe-events-back,
.builder-layout .tribe-events-single-event-title,
.builder-layout .tribe-events-schedule,
.builder-layout .tribe-events-cal-links,
.builder-layout .tribe-events-related-events-title,
.builder-layout .post .tribe-events-single ul.tribe-related-events,
.builder-layout .tribe-events-single ul.tribe-related-events {
	padding-left: 2rem;
}
.builder-layout .tribe-events-single ul.tribe-related-events {
	padding-right: 2rem;
}
.single-tribe_events .builder-layout .tribe-events-event-meta,
.builder-layout #tribe-events-footer {
	margin-left: 2rem;
	margin-right: 2rem;
}
figure {
	max-width: 100%;
}
@media screen and (max-width:989px) {
	.home .main-header:before {
		margin-left: 0
	}
}
@media screen and (max-width:768px) {
	.single-tribe_events .builder-layout .tribe-events-schedule {
		margin-left: 2rem;
		margin-right: 2rem;
	}
}
@media only screen and (max-width:693px) {
	.main-header sub {
		font-size: 7.5vw
	}
	#binder {
		padding-bottom: 3rem;
	}
	.county-mobile-search-form {
		display: block;
		padding: 2rem 2rem 0 2rem;
	}
	.county-desktop-search-form {
		display: none;
	}
	.gallery-columns-1 .gallery-item,
	.gallery-columns-2 .gallery-item,
	.gallery-columns-3 .gallery-item,
	.gallery-columns-4 .gallery-item,
	.gallery-columns-5 .gallery-item,
	.gallery-columns-6 .gallery-item,
	.gallery-columns-7 .gallery-item,
	.gallery-columns-8 .gallery-item,
	.gallery-columns-9 .gallery-item {
		width: 50%;
	}
	.gallery-item:nth-child(2n+3) {
		clear: both;
	}
}
/* More Site Actions stuff */
@media screen and (max-height:999px) {
	.page.has-featured-image .actions-footer,
	.page.has-featured-image.logged-in.customizer-preview .actions-footer {
		top: 350px;
	}
	.page.has-featured-image.logged-in .actions-footer {
		top: 382px;
	}
}
@media screen and (min-width:792px) {
	.home .actions-footer nav,
	.home .actions-footer ul {
		height: inherit;
	}
	.home .actions-footer li {
		box-sizing: border-box;
		height: 33.33%;
		padding: 5px 0;
		text-align: left;
	}
	.home .actions-footer a {
		height: 100%;
		line-height: 32px;
		padding: 0 1rem;
		/* The above is a bit magic-numbery, but not sure about support for the following */
		/*-webkit-align-items: center;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;*/
	}
	.actions-footer .secondary {
		padding: 0.3rem 2rem 0.3rem 0;
	}
	.actions-footer .secondary li {
		display: inline-block;
	}
	.actions-footer .secondary li:nth-of-type(2) {
		border-left: 1px solid #464e54;
		border-right: 1px solid #464e54;
		margin: 0 1rem;
		padding: 0 1rem;
	}
	.actions-footer .secondary a {
		background: none;
		border: none;
		color: #464e54;
		padding: 0.2rem 0;
	}
	.actions-footer .secondary a:hover {
		color: #c60c30;
	}
}
@media only screen and (max-width:693px) {
	.actions-footer a {
		font-size: 0.9em;
	}
}
@media screen and (max-width:990px) {
	.actions-footer,
	.logged-in .actions-footer,
	.logged-in.customizer-preview .actions-footer {
		top: 102px;
	}
	.page.has-featured-image .actions-footer,
	.page.has-featured-image.logged-in .actions-footer,
	.page.has-featured-image.logged-in.customizer-preview .actions-footer {
		top: 550px;
	}
	.home .actions-footer,
	.home.logged-in .actions-footer,
	.home.logged-in.customizer-preview .actions-footer {
		top: 60px;
	}
	@media screen and (max-height:999px) {
		.page.has-featured-image .actions-footer,
		.page.has-featured-image.logged-in .actions-footer,
		.page.has-featured-image.logged-in.customizer-preview .actions-footer {
			top: 400px;
		}
	}
}
@media screen and (max-width:791px) {
	.actions-footer,
	.logged-in .actions-footer,
	.logged-in.customizer-preview .actions-footer,
	.page.has-featured-image .actions-footer,
	.page.has-featured-image.logged-in .actions-footer,
	.page.has-featured-image.logged-in.customizer-preview .actions-footer,
	.home .actions-footer,
	.home.logged-in .actions-footer,
	.home.logged-in.customizer-preview .actions-footer {
		bottom: 0;
		height: auto;
		position: fixed;
		right: auto;
		top: auto;
		width: 100%;
	}
	.logged-in .actions-footer,
	.page.has-featured-image.logged-in .actions-footer,
	.home.logged-in .actions-footer {
		bottom: 32px;
	}
	.actions-footer li,
	.home .actions-footer li {
		box-sizing: border-box;
		float: left;
		height: auto;
		text-align: center;
		width: 33.33%;
	}
	.actions-footer li:nth-of-type(2) {
		padding: 0 1px;
	}
}
@media screen and (max-width:782px) {
	.logged-in .actions-footer,
	.page.has-featured-image.logged-in .actions-footer,
	.home.logged-in .actions-footer {
		bottom: 46px;
	}
}