/*
 Theme Name:   SPLF Twenty Sixteen
 Theme URI:    http://foundation.spl.org/
 Description:  SPL Foundation Theme, based on twentysixteen
 Author:       Daniel Stockman
 Template:     twentysixteen
 Version:      1.1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  twentysixteen-splf
 GNU Terry Prachett
*/

/* Docblock section numbers correspond to the parent theme stylesheet */

/**
 * 3.0 - Typography
 */

body {
	font-family: Verdana, Geneva, Sans-Serif;
	font-size: 14px;
	line-height: 1.42857143;
	color: #333333;
	background: #fff;
}

a {
	color: #708fcc;
	text-decoration: none;
}
a:hover,
a:focus {
	color: #3f65b1;
	text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-transform: uppercase;
	color: #708fcc;
}

/**
 * 11.2 - Posts and pages
 */

.entry-title,
.entry-title a {
	color: #708fcc;
}

.board {
	padding-left: 10px;
}

/* If it's the home page, hide the entry title, so that Home doesn't show. */
.home .entry-title {
	display: none;
}

/* Styling to make the Friends of the Library page look better.
 This page is essentially separate from the main site, just hosted here. */
.friends {
	margin: 5%;
	word-wrap: normal;
}

/**
 * 11.1 - Header
**/

.site-header {
	padding-top: 0;
	padding-bottom: 0;
}

.site-branding {
	/* allow space for menu-toggle */
	max-width: 75%;
}

.spl-full-header-logo {
	max-width: 100%;
}

.site-title,
.site-description {
	/* replaced by svg logo */
	display: none;
}

.menu-toggle {
	background-color: #708fcc;
	color: #fff;
	margin-top: 2.75em;
}

.menu-toggle.toggled-on,
.menu-toggle.toggled-on:hover,
.menu-toggle.toggled-on:focus {
	background-color: #5070b2;
	color: #fff;
}

.menu-toggle:hover, .menu-toggle:focus {
	border-color: #708fcc;
	color: #5070b2;
}

.dropdown-toggle {
	color: #fff;
}

/**
 * 6.2 - Menus
 */

.site-header-menu {
	margin-top: 0;
}

/* make nav menus match color scheme */
.main-navigation {
	background-color: #708fcc;
}

.main-navigation a {
	color: #fff;
	padding-left: 1em;
}

.main-navigation .current-menu-item {
	background-color: #5070b2;
}

/* current item bgcolor should bleed across entire row */
.main-navigation .sub-menu.toggled-on {
	margin-left: 0;
}
.sub-menu.toggled-on > .menu-item {
	padding-left: 0.875em;
}

.main-navigation a:hover,
.main-navigation a:focus {
	color: #fff;
}

/* downward arrow in menus should not be underlined */
.menu-item-has-children a:after {
	text-decoration: none;
}

/* default pagination is black, make it match colors */
.pagination {
	border-top-color: #5070b2;
}

.pagination:before {
	background-color: #708fcc;
}

.pagination:after {
	background-color: #708fcc;
}

.pagination .prev,
.pagination .next {
	background-color: #708fcc;
}

.pagination .prev:hover,
.pagination .prev:focus,
.pagination .next:hover,
.pagination .next:focus {
	background-color: #5070b2;
	color: #fff;
	text-decoration: none;
}

.post-navigation {
	border-top: 4px solid #708fcc;
	border-bottom: 4px solid #708fcc;
}
.post-navigation div + div {
	border-top: 4px solid #708fcc;
}

.post-navigation a {
	color: #708fcc;
}

/**
 * 11.6 - Footer
 */

.site-footer {
	padding-bottom: 0;
}

.site-footer .main-navigation,
.site-footer .splf-footer-widgets {
	background-color: #708fcc;
}

.site-info {
	background-color: #5070b2;
	color: #aaa;
	font-size: 10px; /* browser fallback */
	font-size: 0.625rem; /* 10/16 */
	text-align: center;
	margin: 0 -10%;
	padding: 0.75em 0;
}

.site-info p {
	margin: 0.5em 0;
}

.site-info a {
	color: #aaa;
}

.site-info a:hover,
.site-info a:focus {
	color: #fff;
	box-shadow: none;
}

.no-sidebar .splf-footer-widgets,
.splf-footer-widgets {
	color: #fff;
	margin: 0 -10%;
	padding: 0 10%;
}

.splf-footer-widgets .widget-area {
	margin-bottom: 1.5em;
}

.splf-footer-widgets .splf-footer-address {
	margin: 2.3475em 0;
}

.splf-footer-widgets .widget {
	/* border is necessary to prevent margin collapse */
	border-top: 1px solid transparent;
	padding-top: 0;
}

.splf-footer-widgets .widget .menu {
	border-bottom: 1px solid #d1d1d1;
	margin: 0;
}

.splf-footer-widgets .widget-title {
	color: #3f588c;
	margin: 0.84375em 0 0.84375em 1em;
}

.splf-footer-widgets .menu-item {
	border-top: 1px solid #d1d1d1;
	list-style: none;
}

.splf-footer-widgets .splf-footer-address a,
.splf-footer-widgets .menu-item a {
	color: #fff;
}

.splf-footer-widgets .menu-item a {
	display: block;
	line-height: 1.3125;
	outline-offset: -1px;
	padding: 0.84375em 0 0.84375em 1em;
}

.splf-footer-address-content {
	font-style: normal;
	line-height: 2em;
	padding-left: 1em;
}

.splf-address-title {
	font-weight: bold;
	text-transform: uppercase;
	white-space: nowrap;
}

/**
 * 10.0 - Widgets
 */

.widget {
	border-top: 0;
	padding-top: 1em;
}

.widget-title {
	color: #58595a;
	border-radius: 3px;
}
.widget-area-top {
	margin-bottom: 1.75em;
}
/**
 * "Donate Now" Button
 */

.donate-button {
	font-size: 1.8em;
	font-weight: bold;
	line-height: 1.4em;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
	display: block;
	width: 100%;
	padding: 0.5em;
	background: #708fcc;
	border-radius: 20px;
}
.donate-button small {
	font-size: 0.5em;
	font-weight: normal;
	font-style: italic;
	line-height: 1em;
	display: block;
}
.donate-button:hover {
	color: #fff;
	text-decoration: none;
	background: #5070b2;
}
.charity-nav img {
	width: 100%;
	height: auto;
}

/**
 * 14.0 - Media Queries
**/

/**
 * 14.1 - >= 710px
**/
@media screen and (min-width: 44.375em) {
	body:not(.custom-background-image):before,
	body:not(.custom-background-image):after {
		display: none;
	}

	.site {
		margin: 0;
	}

	.site-branding {
		/* allow less space for menu-toggle */
		max-width: 85%;
	}

	.custom-logo-link {
		/* avoid rendering jitter */
		min-height: 114px;
	}

	.site-header-menu {
		margin-top: 0;
	}

	.site-main > article {
		margin-bottom: 3.5em;
	}

	.entry-content {
		margin-right: 8%;
	}

	.sidebar {
		padding-right: 7.6923%;
	}

	.board {
		padding-left: 50px;
	}
}

/**
 *  14.2
 * Donate button appears before the content on mobile screens and is hidden otherwise
**/
/* Minimum width of 768pixels. */
@media screen and (min-width: 768px) {
	.widget-area-top {
		display: none;
	}
}

/**
 * 14.3 - >= 910px
**/
@media screen and (min-width: 56.875em) {
	.site-header {
		padding-top: 0;
		padding-bottom: 0;
	}

	.site-branding {
		max-width: none;
	}

	.spl-full-header-logo {
		max-width: 700px;
	}

	.site-branding,
	.site-header-menu {
		/* maintains full-width menu bar */
		-webkit-flex: 0 1 100%;
		-ms-flex: 0 1 100%;
		flex: 0 1 100%;
	}

	.no-sidebar .site-title,
	.no-sidebar .site-description,
	.no-sidebar .menu-main-menu-container,
	.no-sidebar .splf-footer-widgets {
		padding: 0 15%;
	}

	.main-navigation .primary-menu {
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
		justify-content: flex-start;
	}

	.main-navigation {
		/* zap negative margins */
		margin: 0;
	}

	.main-navigation li:hover > a,
	.main-navigation li.focus > a {
		color: #fff;
		background-color: #5070b2;
	}

	.main-navigation .primary-menu > li {
		float: none;
		border-left: 2px solid #5070b2;
		border-right: 0;
	}
	.main-navigation .primary-menu > li:last-child {
		border-right: 2px solid #5070b2;
	}

	.main-navigation ul ul {
		/* nudge dropdown to match right border */
		margin-right: -2px;
	}

	.main-navigation .menu-item-has-children > a:after {
		/* make sure teh arrow points at the triangle */
		right: 0.525em;
	}

	.main-navigation .sub-menu.toggled-on {
		margin-left: 0.875em;
	}
	.sub-menu.toggled-on > .menu-item {
		padding-left: 0;
	}

	.main-navigation ul ul li {
		background-color: #708fcc;
	}

	.sidebar {
		padding-right: 0;
	}

	.entry-content {
		margin-right: inherit;
	}

	.board {
		display: -ms-flex;
		display: -webkit-flex;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		padding-left: 0;
	}

	.board-officers {
		width: 100%;
		float: left;
	}

	.board-directors {
		width: 100%;
		float: left;
	}

	.board-directors-content {
		-webkit-column-count: 2; /* Chrome, Safari, Opera */
		-moz-column-count: 2; /* Firefox */
		column-count: 2;
		-webkit-column-gap: 10px; /* Chrome, Safari, Opera */
		-moz-column-gap: 10px; /* Firefox */
		column-gap: 20px;
		padding-bottom: 20px;
	}

	.board-ex-officio {
		margin-right: 5px;
	}

	.board-emeritus {
		margin: 0 5px;
	}

	.staff {
		margin-left: 5px;
	}

	/* footer modifications */
	/* https://css-tricks.com/full-width-containers-limited-width-parents/ */
	/*.full-width-site-footer {
		width: 100vw;
		position: relative;
		left: 50%;
		right: 50%;
		margin-left: -50vw;
		margin-right: -50vw;
	}
	.site-footer {
		max-width: 1300px;
	}*/

	.no-sidebar .splf-footer-widgets,
	.splf-footer-widgets {
		margin: 0;
		width: 100%;
	}

	.site-info {
		margin: 0;
		width: 100%;
	}

	.splf-footer-widgets .widget {
		padding-top: 1.4em;
	}

	.splf-footer-widgets .widget-title {
		margin: 0 0 0.25em;
	}

	.splf-footer-widgets .widget .menu,
	.splf-footer-widgets .menu-item {
		border: none;
	}

	.splf-footer-widgets .menu-item a {
		padding: 0.15em 0;
	}

	.splf-footer-widgets .widget-area,
	.splf-footer-widgets .splf-footer-address {
		margin-bottom: 1.25em;
	}

	.splf-footer-widgets .widget-area:nth-child(1):nth-last-child(3),
	.splf-footer-widgets .widget-area:nth-child(2):nth-last-child(2),
	.splf-footer-widgets .widget-area:nth-child(3):nth-last-child(1) {
		float: left;
		width: 27.5%;
	}

	.splf-footer-widgets .widget .menu {
		padding-right: 2em;
	}

	#splf-footer-widgets .splf-footer-address {
		float: right;
		margin-top: 0;
		margin-right: 0;
		width: 44%;
	}

	.splf-footer-address-content {
		text-align: right;
		line-height: inherit;
		padding-left: 0;
	}
}

/**
 * 14.4 - >= 985px
**/
@media screen and (min-width: 61.5625em) {
	.site-header {
		padding-top: 0;
		padding-bottom: 0;
	}

	body.no-sidebar:not(.search-results) article:not(.type-page) .entry-footer,
	body.no-sidebar:not(.search-results) article:not(.type-page) .entry-content,
	body:not(.search-results) article:not(.type-page) .entry-footer,
	body:not(.search-results) article:not(.type-page) .entry-content {
		float: none;
		width: auto;
	}

	body.no-sidebar:not(.search-results) article:not(.type-page) .entry-footer,
	body.no-sidebar:not(.search-results) article:not(.type-page) .entry-content {
		margin: 0 15%;
	}

	.board-directors-content {
		-webkit-column-count: 3; /* Chrome, Safari, Opera */
		-moz-column-count: 3; /* Firefox */
		column-count: 3;
		-webkit-column-gap: 70px; /* Chrome, Safari, Opera */
		-moz-column-gap: 70px; /* Firefox */
		column-gap: 70px;
		padding-bottom: 20px;
	}
}
