/*!
Theme Name: CFRS
Author: Marshall Polaris
Author URI: https://centerforreducingsuffering.org
Description: Theme for 2021 CFRS redesign.
Version: 1.0.0
Tested up to: 5.4
License: GNU General Public License v2 or later
Text Domain: cfrs

CFRS is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 1.6em;
	margin: 0.67em 0;
}

h2 {
	margin: 0.6em 0;
}

h3, h4, h5, h6 {
	margin: 0.5em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: "Montserrat", Roboto, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: black;
	clear: both;
}

p {
	margin: 0 0 1em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 3em 1em 3em;
}

address {
	margin: 0 0 1em;
}

pre {
	background: #f8f8f8;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin: 1.5em 0;
}

ul,
ol {
	margin: 0 0 1em;
}

li {
	margin: 0 0 0.5em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: black;
	font-weight: 500;
}

a:visited {
	color: black;
}

a:hover,
a:focus,
a:active {
	color: blue;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/* Top-level layout
--------------------------------------------- */

html, body {
	height: 100%; /* footer always at bottom of window */
	overflow-x: hidden; /* necessary for the full-width images to not trigger scrollbar */
}

.site {
    position: relative; 
    min-height: 100%; 
    padding-bottom: 140px; /* footer height */
}

.site-header {
	position: relative;
	z-index: 10;
	display: block !important; /* override WP flex default */
	background-color: white;
}

.header-container {
  	box-shadow: 0 0 3px 3px #ddd;
}

.main-content, .header-content, .footer-content, .breadcrumbs, .full-width>div {
	padding: 0 25px;
}

/* settings for pages tagged "wide" (e.g. donate page, home page) */
.site.width-wide .center-content,
.site.width-wide .full-width>*:not(.wp-block-cover__image-background) { /* hacky fix so we don't override WP styles on hero images */
	max-width: 1200px;
	margin: 0 auto;
}

/* settings for pages tagged "narrow" */
.site.width-narrow .center-content,
.site.width-narrow .full-width>*:not(.wp-block-cover__image-background) {
	max-width: 1350px;
	margin: 0 auto;
}

/* pages with no tagged width or "normal" tagged width that have a visible TOC */
.site.width-none.toc .center-content,
.site.width-normal.toc .center-content,
.site.width-none.toc .full-width>*:not(.wp-block-cover__image-background),
.site.width-normal.toc .full-width>*:not(.wp-block-cover__image-background) {
	max-width: 1350px; /* the maximum width of header, body, and footer content (pages with a TOC) */
	margin: 0 auto;
}

/* pages with no tagged width or "normal" tagged width that do not have a visible TOC */
.site.width-none.no-toc .center-content,
.site.width-normal.no-toc .center-content,
.site.width-none.no-toc .full-width>*:not(.wp-block-cover__image-background)
.site.width-normal.no-toc .full-width>*:not(.wp-block-cover__image-background) {
	max-width: 800px; /* the maximum width of header, body, and footer content (pages without a TOC) */
	margin: 0 auto;
}

/* Reduce main text width when TOC is visible */
.site.width-none.toc .widget.toc_widget + #primary,
.site.width-normal.toc .widget.toc_widget + #primary {
	max-width: 750px;
}

.site-footer {
    position: absolute; 
    left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 140px;  /* footer height */
	background-color: black;
}

/* Screen-size dependent layout
--------------------------------------------- */

#primary {
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* narrow devices or short devices; phones in landscape and portrait */
@media (max-width: 767px), (max-height: 649px) {
	.header-content {
		text-align: center;
		padding: 10px 0 5px 0;
		height: 105px;
	}
	.main-navigation {
		margin-top: 8px;
		flex: 1 1 100%;
		align-items: center;
		font-size: 0.9em;
	}
	.main-navigation>.menu {
		display: table;
		width: 100%;
	}
	.main-navigation>.menu>.menu-item {
		display: table-cell;
		padding: 0;
	}
	.main-navigation>.menu>.menu-item-has-children .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 100%;
		text-align: center;
		padding-top: 6px;
	}
	.toc_widget {
		display: block;
		margin-bottom: 2em;
	}
	.toc_widget_list a {
		color: black;
	}
	.tns-outer {
		margin: 0 0 100px 0;
	}
	.tns-controls button:first-child { /* prev */
		position: absolute;
		display: inline-block;
		width: 40px;
		height: 40px;
		left: calc(50% - 50px);
		bottom: -70px;
	}
	.tns-controls button:last-child { /* next */
		position: absolute;
		display: inline-block;
		width: 40px;
		height: 40px;
		right: calc(50% - 50px);
		bottom: -70px;
	}
	.fancy-quotes {
		margin: 0;
	}
	.fancy-quotes>p {
		padding: 0.35em 0;
	}
	#primary {
		display: block;
		margin: 0 0 2em;
	}
}

/* wide and tall devices */
@media (min-width: 768px) and (min-height: 650px) {
	body {
		scroll-behavior: smooth;
		scroll-padding-top: 135px; /* 75px header height + 60px breadcrumbs */
	}
	.site-header {
		position: sticky;
		top: 0;
	}
	.header-content {
		display: flex;
		align-items: flex-end;
		padding-bottom: 10px;
		height: 75px;
		justify-content: space-between;
		flex-wrap: none;
	}
	.main-navigation {
		flex: 0 1 auto;
		align-items: flex-end;
		font-size: 1em;
	}
	.main-navigation>.menu {
		display: flex;
		align-items: center;
	}
	.main-navigation>.menu>.menu-item {
		padding: 0 2em;
	}
	.main-navigation>.menu>.menu-item-has-children .sub-menu {
		position: absolute;
		top: 100%;
		left: 15%;
		width: 200px;
		text-align: left;
		padding-top: 30px;
	}
	.main-content {
		display: flex;
	}
	.site.toc .main-content {
		justify-content: space-between;
	}
	.toc_widget {
		position: sticky;
		top: 135px; /* 75px header height + 60px breadcrumbs */
		max-height: calc(100vh - 155px); /* top offset + 20px bottom margin */
		flex: 0 0 300px;
		margin-bottom: 2em;
		align-self: start;
		overflow-y: auto;
	}
	/* Publications page style */
	.page-id-718 .toc_widget {
		background-color: transparent;
		padding: 0;
	}

	.toc_widget_list a {
		color: #888;
	}
	.tns-outer {
		margin: 0 50px 2em 50px;
	}
	.tns-controls button:first-child { /* prev */
		position: absolute;
		display: inline-block;
		width: 40px;
		height: 40px;
		top: calc(50% - 20px);
		left: -55px;
	}
	.tns-controls button:last-child { /* next */
		position: absolute;
		display: inline-block;
		width: 40px;
		height: 40px;
		top: calc(50% - 20px);
		right: -55px;
	}
	.fancy-quotes {
		margin: 0 3em;
	}
	.fancy-quotes>p {
		padding: 0.35em 40px;
	}
	.fancy-quotes>p:before {
		display: block;
		content: "\201C";
		font-size: 7em;
		position: absolute;
		left: -50px;
		top: -70px;
	}
	.fancy-quotes>p:after {
		display: block;
		content: "\201D";
		font-size: 7em;
		position: absolute;
		right: -50px;
		bottom: -140px;
	}
	#primary {
		flex: 1 1 auto;
		margin: 0 0 2em;
	}
	.site.width-none.toc .widget.toc_widget + #primary,
	.site.width-normal.toc .widget.toc_widget + #primary {
		margin-left: auto;
		margin-right: auto;
		padding-left: 25px;
		padding-right: 25px;
	}
	/* Publications page */
	.page-id-718 .site.width-wide.toc .center-content {
		max-width: 1440px;
	}
	.page-id-718 .toc_widget {
		margin-right: 125px; /* space between floating TOC and text */
	}
}

a.ecae-link, .dark-button>a, .light-button>a, .menu-item-1001>a {
	padding: 0.6em 1.2em;
	border-width: 2px;
	border-style: solid;
	border-radius: 4px;
	text-decoration: none;
	display: inline-block;
	font-size: 14px;
}

.light-button>a {
	color: #FFF;
	background: #55C;
	border-color: #55C;
}

.light-button>a:hover {
	color: #FFF;
	background: #226;
	border-color: #226;
}

a.ecae-link, .dark-button>a, .menu-item-1001>a {
	color: #FFF;
	background: #226;
	border-color: #226;
}

a.ecae-link:hover, .dark-button>a:hover, .menu-item-1001>a:hover {
	color: #FFF;
	background: #55C;
	border-color: #55C;
}

.short-separator {
  	width: 10%;
	height: 3px;
	display: inline-block;
	margin: 0 0 0.5em 0;
}

/* Header
--------------------------------------------- */

.header-content {
	width: 100%;
	-webkit-tap-highlight-color: transparent;
}

.header-content>.site-branding .custom-logo-link {
	font-size: 0;
	display: block;
}

.breadcrumbs {
	height: 60px;
	line-height: 60px;
	text-transform: uppercase;
	overflow-y: hidden;
	overflow-x: scroll;
	text-overflow: ellipsis;
	white-space: nowrap;
	scrollbar-width: none;
}

.breadcrumbs::-webkit-scrollbar {
	display: none;
}

.breadcrumbs>span {
	margin: 0 10px;
}

.breadcrumbs>span:first-child {
	margin-left: 0;
}

.breadcrumbs a {
	text-decoration: none;
}

.breadcrumbs .current-item {
	font-weight: 700;
}

/* Navigation
--------------------------------------------- */

.main-navigation {
	text-align: center;
	text-transform: uppercase;
	font-weight: 500;
	white-space: nowrap;
}

.main-navigation li {
	margin: 0;
}

.main-navigation .menu, .main-navigation .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation>.menu>.menu-item {
    position: relative;
	border-right: 1px solid #ddd;
}

.main-navigation>.menu>.menu-item:last-child {
	border-right: none;
	padding-right: 0;
}

.main-navigation>.menu>.menu-item-has-children .sub-menu {
	display: none;
	background-color: transparent;
	z-index: 99999;
}

.main-navigation>.menu>.menu-item-has-children:hover .sub-menu {
    display: block;
}

.main-navigation>.menu>.menu-item-has-children:before {
	content: "";
    border: solid black;
	border-width: 0 1px 1px 0;
	display: inline-block;
	margin: 0 10px 2px 0;
	padding: 3px;
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	transition: transform 0.25s linear;
}

.main-navigation>.menu>.menu-item-has-children:hover:before {
  	transform: rotate(45deg);
  	-webkit-transform: rotate(45deg);
  	transition: transform 0.25s linear;
}

.main-navigation .menu-item.menu-item-1001>a {
	padding: 3px 0.75em;
}

.main-navigation .menu-item a {
	font-size: 1em;
	text-decoration-color: transparent;
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
	transition: text-decoration-color 0.3s;
}

.main-navigation .menu-item a:hover {
	text-decoration-color: #55C;
}

.main-navigation>.menu>.menu-item-has-children .sub-menu>.menu-item a {
	width: 100%;
	display: inline-block;
	background-color: #f2f2f2;
    padding: 0.2em 1.5em;
	margin-right: 0;
}

.main-navigation>.menu>.menu-item-has-children .sub-menu>.menu-item:first-child a {
	padding-top: 0.5em;
}

.main-navigation>.menu>.menu-item-has-children .sub-menu>.menu-item:last-child a {
	padding-bottom: 0.5em;
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Table of contents styles
--------------------------------------------- */

.toc_widget {
	background-color: #f8f8f8;
	padding: 10px;
}

.toc_widget ul {
	margin: 0;
	padding-left: 1.5em;
	list-style: none;
}

.toc_widget ul.toc_widget_list {
	padding: 0;
}

.toc_widget li {
	margin: 5px 0;
	line-height: 1.5em;
}

.toc_widget .widget-top,
.toc_widget .widget-top a {
	color: #888;
	text-transform: none;
}

.toc_widget a.active {
	color: black;
}

.toc_widget a:hover {
	color: blue;
}

.toc_widget .widget-title,
.toc_widget ul.toc_widget_list {
	overflow: hidden;
	overflow-wrap: break-word;
}

.toc_widget .widget-title {
	margin: 0 0 0.5em 0;
	text-transform: uppercase;
	font-size: 1em;
}

.toc_widget_list a {
	font-weight: 500;
	text-decoration: none;
	display: flex;
}

.toc_number {
	font-weight: 700;
	padding-right: 0.5em;
}

/* Footer
--------------------------------------------- */

.footer-content {
	height: 140px; /* footer height */
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #bbb;
}

.footer-content .copyright {
	font-size: 0.8em;
	color: #bbb;
}

.footer-content a.top {
	color: #bbffff;
	text-decoration: none;
	font-size: 1.5em;
}

/* Mailchimp stuff */

#mc_embed_signup {
	padding-bottom: 10px;
}

#mc_embed_signup_scroll>* {
	display: none; /* we need to hit the fake bot input with this so it doesn't break the layout */
}

#mc_embed_signup_scroll>h2 {
	display: block;
	color: white;
	font-size: 0.9em;
	font-weight: 300;
	margin: 0;
}

#mc_embed_signup_scroll>.mc-field-group {
	display: inline;
}

#mc_embed_signup_scroll>.mc-field-group>label {
	display: block;
	font-size: 0.75em;
	margin-bottom: 0.5em;
}

#mc_embed_signup_scroll>.mc-field-group>label>.asterisk {
	display: none;
}

#mc_embed_signup_scroll>.mc-field-group>input {
	font-size: 0.9em;
	height: 30px;
}

#mc_embed_signup_scroll>.optionalParent {
	display: inline-block;
}

#mc_embed_signup_scroll>.optionalParent #mc-embedded-subscribe.button {
	color: black;
	background: #bbb;
	border-color: #888;
	height: 30px;
	font-size: 0.9em;
	padding-top: 0;
	padding-bottom: 0;
}

#mc_embed_signup_scroll>.optionalParent .brandingLogo {
	display: none;
}

/* Home page styles
--------------------------------------------- */

.home .entry-title {
	display: none;
}

.full-width {
	position: relative;
	left: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	max-width: 100vw;
	right: 50%;
	width: 100vw;
}

.homepage-row.light {
	background-color: white;
}

.homepage-row.dark, .home>.site {
	background-color: #f6f6f6;
}

.homepage-row {
	text-align: center;
	padding: 1em 0;
}

.homepage-row.read-the-book .wp-block-columns {
	text-align: left;
}

.homepage-row.read-the-book h3 {
	font-size: 1.5em;
	margin-bottom: 0.25em;
}

.homepage-row.read-the-book img {
	height: 400px;
	object-fit: contain;
}

.homepage-row.read-the-book .book-author:after {
	display: block;
	margin: 1em 0 2em;
	background-color: black;
	content: "";
	height: 3px;
	width: 60px;
}


.homepage-row.research img {
	height: 200px;
	object-fit: cover;
}

.homepage-row>div>h2 {
	display: inline-block;
	text-transform: uppercase;
	padding-top: 1em;
	margin-top: 0;
	margin-bottom: 5px;
}

.homepage-row>div>h2:after, .homepage-row.research figcaption:after {
	display: block;
	margin: 0.5em auto 1em auto;
	background-color: black;
	content: "";
	height: 3px;
	width: 50%;
}

.heading-underline {
	background-color: black;
	height: 1px;
	width: 60px;
	text-align: center;
}

.box-columns .wp-block-column {
	background-color: white;
	box-shadow: 0px 5px 15px 5px rgba(0,0,0,0.1);
	margin-bottom: 2em;
}

.box-columns .wp-block-column figure {
	margin: 0;
}

.box-columns .wp-block-column figcaption {
	position: relative;
	font-size: 1.5em;
	margin: 0.5em 0.25em;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
}

.box-columns .wp-block-column p {
	margin: 1em 2em 2em 2em;
	text-align: center;
}

.fancy-quotes>p {
    position: relative;
    margin: 0 0 1.5em 0;
	font-size: 1.75em;
	text-align: center;
}

.fancy-quotes>cite {
	display: inline-block;
	text-align: center;
	font-size: 1.25em;
	margin-bottom: 1em;
}

.hero {
	min-height: 600px;
}

.hero hr {
	width: 15%;
	margin: 1.5em auto;
}

.hero-right-text {
	margin: 0 0 0 max(0px, calc(100% - 450px));
	text-align: center;
}

.hero .light-button>a {
	font-size: 1em;
	padding: 12px 16px;
	text-transform: uppercase;
	font-weight: 500;
}

.home .hero .light-button {
	margin-bottom: 2em;
}

.tns-outer {
	position: relative;
}

.tns-ovh {
    padding-bottom: 10px;
}

.tns-controls button {
	background-color: #226;
	border-radius: 50%;
    border: 0;
    margin: 0;
    padding: 0;
}

.tns-controls button:first-child:after {
	content: '';
	display: inline-block;
	margin-top: 3px;
	margin-left: 7px;
	width: 15px;
	height: 15px;
	border-top: 4px solid white;
	border-right: 4px solid white;
	-moz-transform: rotate(-135deg);
	-webkit-transform: rotate(-135deg);
	transform: rotate(-135deg);
}

.tns-controls button:last-child:after {
	content: '';
	display: inline-block;
	margin-top: 3px;
	margin-left: -5px;
	width: 15px;
	height: 15px;
	border-top: 4px solid white;
	border-right: 4px solid white;
	-moz-transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}

.posts-slider figure img {
	width: 100%;
	height: 300px;
	object-fit: cover;
}

.posts-slider .post-content {
	text-align: left;
	background-color: white;
	box-shadow: 0px 2px 10px 2px rgba(0,0,0,0.03);
}

.posts-slider figcaption {
	padding: 0 1em;
}

.posts-slider figcaption>h3 {
	margin: 0.5em 0 0.25em 0;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.posts-slider figcaption>p {
	margin: 0;
}

.posts-slider figcaption:after {
	display: block;
	margin: 0.75em 0 1em 0;
	background-color: black;
	content: "";
	height: 3px;
	width: 50px;
}

.posts-slider .post-body {
	padding: 0 1em;
}

.posts-slider .post-body p {
	min-height: 220px;
}

.homepage-row .dark-button>a {
	font-size: 1em;
	text-transform: uppercase;
	font-weight: 500;
	margin-bottom: 2em;
}

/* Contact page styles
--------------------------------------------- */

.page-id-48 .entry-title {
	display: none;
}

/* "Get involved" page styles
--------------------------------------------- */

.page-id-1024 .entry-title {
	display: none;
}

/* Team page styles
--------------------------------------------- */

.post-1289 .entry-title {
	display: none;
}

.post-1289 .wp-block-columns :first-child {
	min-width: 260px;
}

.post-1289 .wp-block-image {
	margin: 0 0 1em 0;
}

.post-1289 .wp-block-image img {
	min-height: 260px;
	width: 100%;
	border: 1px solid #aaa;
	object-fit: cover;
	object-position: 50% 0;
}

/* below for the old team page with side-by-side columns for each person */
/*.post-838 .entry-title {
	display: none;
}

.post-838 .wp-block-column {
	margin-right: 25px;
}

.post-838 .wp-block-image img {
	width: 100%;
}

.post-838 .wp-block-image>figcaption {
	font-size: 1.5em;
	line-height: 1.2em;
	margin: 0.25em 0 0 0;
	font-weight: 700;
	text-transform: uppercase;
}

.post-838 .wp-block-image>figcaption:after {
	display: block;
	margin: 0.5em 0 1em;
	background-color: black;
	content: "";
	height: 3px;
	width: 50%;
}*/

/* Publications page styles
--------------------------------------------- */

.page-id-718 .entry-title {
	display: none;
}

.page-id-718 .toc_widget .widget-title,
.page-id-718 .toc_number {
	display: none;
}

.page-id-718 .toc_widget ul ul {
	display: none;
}

.page-id-718 .toc_widget {
	text-transform: uppercase;
	flex: 0 0 260px;
}

.page-id-718 .toc_widget a {
	font-weight: 700;
}

.page-id-718 hr {
	background-color: #ccc;
	border-color: #ccc;
}

.page-id-718 .heavy-separator {
	margin: 3em 0;
	height: 3px;
}

.page-id-718 h2 {
	margin: 0 0 0.5em;
	font-size: 1.8em;
	text-transform: uppercase;
	display: inline-block;
}

.page-id-718 h2:after {
	display: block;
	background-color: black;
	content: "";
	height: 3px;
	width: 40%;
	min-width: 80px;
}

.page-id-718 h3 {
	font-size: 1.25em;
	margin-bottom: 0.1em;
}

.publications-list {
	margin-top: 1em;
	list-style: none;
	padding: 0;
}

.publications-list a {
	font-weight: 700;
}

.page-id-718 .wp-block-column.book-cover {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 599px) {
  .page-id-718 .wp-block-column.book-cover {
    margin-top: 24px;
  }
}

.page-id-718 .wp-block-column.book-cover .wp-block-image {
  margin: 0 0 -3px;
}
.page-id-718 .wp-block-columns.book-overview h3 {
  margin-top: 0;
}
.page-id-718 .wp-block-columns.book-overview .wp-block-button__link {
  margin-bottom: 0;
}


/* Donate page styles
--------------------------------------------- */

.page-id-753 .entry-title {
	display: none;
}

.page-id-753 .full-width {
	margin-bottom: 30px;
	min-height: 350px;
}

.page-id-753 p.hero-right-text {
	font-size: 2em;
	line-height: 1.4;
	font-weight: 700;
	color: black;
}

.donation-columns.wp-block-columns {
	flex-wrap: wrap-reverse;
	gap: 30px;
}

.donation-columns.wp-block-columns .wp-block-column:first-child {
	flex: 0 1 350px !important;
}

.donation-columns.wp-block-columns .wp-block-column:last-child {
	flex: 1 0 350px !important;
	margin-left: 0; /* gap covers it */
}

.donation-button {
	text-align: center;
	margin: 2em 0;
}

.donation-parameters {
	width: 100%;
	background-color: #f8f8f8;
	padding: 1em;
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
}

.donation-parameters>dt {
	min-width: 300px;
}

.donation-parameters>dd {
	font-weight: 700;
	flex: 1 1 55%;
	margin-bottom: 0.25em;
}

.donation-parameters>* {
	margin: 0;
	padding: 0;
}

/* Blog page styles
--------------------------------------------- */

.ecae h1, .ecae h2, .ecae h3,
.ecae h4, .ecae h5, .ecae h6 {
	font-size: 1em;
}

article.type-post .entry-title {
	margin-bottom: 0;
}

article.type-post .byline {
	margin-bottom: 0.25em;
}

article.type-post p {
	margin-bottom: 1em;
}

body:not(.single) article.type-post {
	border-bottom: 2px solid #ededed;
	padding: 25px 0 15px 0;
}

body:not(.single) article.type-post .entry-title {
	font-size: 1.25em;
}

body:not(.single) article.type-post:first-child {
	padding-top: 0;
}

body:not(.single) article.type-post:last-child {
	border-bottom: none;
}

.ecae-button {
	margin-top: 20px;
}

/* Misc. page styles
--------------------------------------------- */

.page-id-7 .entry-title,
.page-id-56 .entry-title,
.page-id-907 .entry-title {
	display: none;
}

/* Posts and pages
--------------------------------------------- */

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, figcaption a {
	text-decoration: none;
	font-weight: inherit;
}

.entry-header {
	margin: 0 0 1.25em;
}

.entry-title {
	margin: 0 0 0.25em;
}

.entry-meta {
	font-size: 0.75em;
}

.byline {
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.byline .date {
	font-weight: 700;
	padding-right: 0.5em;
	border-right: 1px solid black;
	margin-right: 0.5em;
}

.byline .author, .byline .author a {
	font-weight: 500;
	text-decoration: none;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 0 0 1.5em;
}

.post-navigation {
	border-top: 1px solid #ccc;
	margin: 2em 0;
	padding-top: 2em;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

.tippy-content {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}
