/*
 Theme Name:   Nonprofit AF Theme 1.0
 Theme URI:    
 Description:  2025 Version of Nonprofit AF Theme
 Author:       Stacy Nguyen Creative (CW)
 Author URI:   https://stacynguyen.com/
 Template:     genesis
 Version:      1.0.0
 Text Domain:  genesischild
*/


/*
Table of Contents
01 Imported Fonts
02 Global
03 Header & Navigation::
	-- Nav Toggle
	-- Mobile Menu
04 Body Sections::
	-- Custom Pages
	-- Posts (.single)
	-- Archives, Error 404, & Blogs (/?s)
	-- Search & Forms
	-- Extra Widget Area
05 Footer
06 Dark Mode
07 Responsive Styles
*/


/* 01 Imported Fonts ////////////// */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700&display=swap');

/* 02 Global ////////////// */
* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

html {
	border: 0;
	margin: 0;
	padding: 0;
	line-height: 1.6;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--g-color-body);
	color: var(--g-color-text);
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	font-weight: 300;
	font-size: var(--base-font-size);

	/* --base-font-size: clamp(.9rem, 1rem, 1.4rem); */
	--base-font-size: clamp(.9rem, 1.063rem, 1.4rem);

	/* 	
	--wrap-width: 1080px;
	--wrap-width: 1170px;
	--wrap-width: 1120px;
	--topnav-height: 50px;
	--nav-height: 175px;
	--footer-widgets: 300px;
	--footer-height: 50px; 
	*/
	/* 
	--wrap-width: 67.5rem;
	--wrap-width: 73.125rem; */
	--wrap-width: 70rem;
	--topnav-height: 3.125rem;
	--nav-height: 10.938rem;
	--footer-widgets: 18.75rem;
	--footer-height: 3.125rem;


	--g-color-body: #fff;
	--g-color-text: #222;
	--g-color-link: #777;
	--g-color-red: #ce405a;

}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
	margin-top: 0;
}

h1,
.h1 {
	font-size: calc(var(--base-font-size) + 1.2rem);
	line-height: 1.3;
}

h2,
.h2 {
	font-size: calc(var(--base-font-size) + 0.8rem);
	line-height: 1.4;
}


p,
.p {
	font-size: var(--base-font-size);
	margin: 0 0 1.5em;
}

a,
.a {
	text-decoration: underline;
	color: var(--g-color-link);
}

a:hover,
.a:hover {
	color: var(--g-color-red);
	text-decoration: underline;
}

strong {
	font-weight: 700;
}

ul li,
ol li,
.wp-block-list li {
	margin-bottom: 1.6rem;
}

.wp-block-button a {
	color: var(--g-color-body);
	background-color: var(--g-color-link);
	transition: 0.2s;
}

.wp-block-button.red a {
	background-color: var(--g-color-red);
}

.wp-block-button a:hover {
	background-color: var(--g-color-text);
	text-decoration: none;
}


button,
button[type="submit"],
input[type="button"],
input[type="submit"] {
	cursor: pointer;
	font-size: 16px;
	padding: 15px 23px 15px 23px;
	margin-top: 10px;
	border-radius: 2px;
	border-width: 0;
	font-family: inherit;
}

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

.site-container div.site-inner,
.site-container div.footer-widgets,
.site-container footer.site-footer {
	position: relative;
}

.site-container {
	margin: 0 auto;
	margin-top: 40px;
	padding: 0 40px;
	display: grid;
	width: 100%;
	max-width: var(--wrap-width);
}

.site-inner .content-sidebar-wrap {
	min-height: calc(100vh - calc(var(--nav-height) + var(--footer-widgets) + var(--footer-height)));
	display: grid;
	grid-template-columns: 690px 250px;
	grid-template-columns: 43.125rem 15.625rem;
	justify-content: space-between;
	padding-top: 2em !important;
}

/*
.wrap,
.site-inner .content-sidebar-wrap,
header.topnav div.widget-wrap>div,
footer.site-footer {
	margin: 0 auto !important;
	padding: 0 45px;
	display: grid;
	width: 100%;
	max-width: var(--wrap-width);
}
*/
.section {
	position: relative;
	scroll-margin: 0;
	padding: 0;
}


/* 03 Header & Navs ////////////// */
body.admin-bar header.topnav {
	top: 32px;
	/* WP Admin bar is 32px*/
}

@media all and (max-width:782px) {
	body.admin-bar header.topnav {
		top: 46px;
		/* WP Admin bar is 46px on mobile*/
	}
}

div.widget-area.header-widget-area,
div.widget-area.header-widget-area .widget-wrap {
	display: grid;
	align-self: stretch;
	align-content: stretch;
	align-items: center;
}

header.topnav {
	width: 100%;
	height: var(--topnav-height);
	max-height: var(--topnav-height);
	background-color: var(--g-color-body);
	position: sticky;
	z-index: 1001;
}

header.topnav ul.menu {
	align-self: stretch;
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	align-content: stretch;
	min-height: 3.125rem;
	list-style-type: none;
	text-decoration: none;
	border-bottom: 1px solid #ededed;
	border-top: 1px solid #ededed;
	margin: 0;
	padding: 0;
}

header.topnav ul.menu li {
	height: 100%;
	display: grid;
	align-content: center;
	margin-bottom: 0;
}

header.topnav ul.menu li a {
	padding: 0 .8rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	text-decoration: none;
}

header.topnav ul.menu li a:hover {
	color: var(--g-color-text);
}

header.topnav li.menu-item-has-children a {
	display: flex;
	align-items: center;
}

header.topnav li.menu-item-has-children i.drop-menu {
	font-size: .6rem;
	padding: 0 6px;
	display: grid;
	align-content: center;
	opacity: 0.5;
	position: relative;
	top: 1px;
}

i.mobile-toggle {
	display: none;
}

header.topnav li.menu-item-has-children ul.sub-menu {
	display: block;
	list-style: none;
	padding: 0;
	margin: 0;
	position: absolute;
	top: 100%;
	background-color: var(--g-color-body);
	margin-left: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease-out;
	transition: all 0.2s cubic-bezier(.43, .195, .02, 1);
	transform: scaleY(0);
	transform-origin: top center;
	overflow: hidden;
	z-index: 1002;
}

header.topnav ul.menu li.menu-item-has-children:hover ul.sub-menu {
	transform: scaleY(1);
}

header.topnav li.menu-item-has-children ul.sub-menu li a {
	width: 200px;
	padding: 10px 16px;
	text-transform: none;
}

header.site-header {
	width: 100%;
	height: auto;
	max-height: var(--nav-height);
	position: relative;
	top: 0;
	left: 0;
	display: grid;
	text-align: center;
	background-color: transparent;
	transition: background 0.2s cubic-bezier(.43, .195, .02, 1);
	z-index: 1000;
}

.title-area {
	display: none;
}

header.site-header {
	margin-bottom: 2em;
	position: relative;
	display: grid;
}

header.site-header a img {
	display: block;
	width: 100%;
	border-radius: 4px;
}

.homelink1 {
	display: block;
}

.homelink2 {
	display: none;
}

/* Nav Toggle */
aside.nav-toggle {
	display: none;
	height: var(--nav-height);
	height: 36px;
	position: absolute;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1003;
}

aside.nav-toggle.responsive {
	position: fixed;
}

body.admin-bar aside.nav-toggle {
	top: 32px;
	/* WP Admin bar is 32px*/
}

@media all and (max-width:782px) {
	body.admin-bar aside.nav-toggle {
		top: 46px;
		/* WP Admin bar is 46px on mobile*/
	}
}

aside.nav-toggle * {
	position: relative;
	align-self: stretch;
	display: grid;
}

#toggle {
	display: grid;
	grid-template-columns: auto auto;
	position: relative;
	left: 20px;
	align-content: center;
	transition: transform 0.2s;
	background-color: var(--g-color-link);
	background-color: #ccc;
	border-radius: 0 0 4px 4px;
	width: 100px;
	padding: 10px 12px;
	column-gap: 10px;
}

#toggle span {
	align-self: center;
	display: grid;
	padding-right: 0px;
	color: var(--g-color-text);
	transition: transform 0.4s cubic-bezier(.43, .195, .07, 1);
	transform-origin: center center;
	font-size: 1rem;
	text-align: right;
}

#toggle span::before {
	content: 'Menu';
}

#toggle.responsive span::before {
	content: 'Close';
}

#toggle a {
	align-self: center;
	justify-content: center;
	display: grid;
	height: 100%;
	padding: 0;
}

#toggleIcon {
	display: grid;
	width: 22px;
	height: 24px;
	padding: 0;
	align-content: space-evenly;
}

#toggleIcon .bar {
	margin: 1px 0;
	width: 100%;
	height: 2px;
	background: var(--g-color-text);
	border-radius: 1.5px;
	transition: margin 0.2s, transform 0.2s, -webkit-transform 0.2s;
	-webkit-transition: margin 0.2s, -webkit-transform 0.2s;
	-o-transition: margin 0.2s, transform 0.2s;
	transform-origin: center;
}

#toggle:not(.responsive):hover .bar {
	margin: 3.5px 0;
}

#toggle.responsive .bar:first-child {
	-webkit-transform: translateY(7px) rotate(45deg);
	-ms-transform: translateY(7px) rotate(45deg);
	transform: translateY(7px) rotate(45deg);
}

#toggle.responsive .bar:nth-child(2) {
	opacity: 0;
}

#toggle.responsive .bar:last-child {
	-webkit-transform: translateY(-7px) rotate(-45deg);
	-ms-transform: translateY(-7px) rotate(-45deg);
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
aside.mobile-menu {
	display: grid;
	margin: 0;
	padding: 60px 20px;
	grid-template-rows: auto;
	grid-row-gap: 25px;
	align-content: start;
	width: 100vw;
	min-height: 100vh;
	height: auto;
	position: fixed;
	top: -100vh;
	right: 0;
	left: 0;
	bottom: unset;
	transition: top 0.5s cubic-bezier(.43, .195, .02, 1);
	background-color: var(--g-color-body);
	overflow-y: scroll;
	overflow-x: hidden;
	z-index: 1002;
}

aside.mobile-menu.responsive {
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	box-shadow: none;
}

body.admin-bar aside.mobile-menu.responsive {
	top: 32px;
}

@media all and (max-width:782px) {
	body.admin-bar aside.mobile-menu.responsive {
		top: 46px;
	}
}

aside.mobile-menu ul {
	list-style-type: none;
	display: grid;
	align-content: space-between;
	height: 100%;
	padding: 0;
	row-gap: 0;
}

aside.mobile-menu ul li {
	border: solid #eee;
	border-width: 1px 0 0 0;
	box-sizing: border-box;
	display: grid;
	align-content: stretch;
	margin-bottom: 0;
}

aside.mobile-menu ul li:nth-last-child(1) {
	border-width: 1px 0 1px 0;
}

aside.mobile-menu ul li a {
	display: flex;
	width: 100%;
	font-size: 1rem;
	text-decoration: none;
	padding: 8px 0;
	align-self: center;
	transition: 0.4s;
	color: var(--g-color-link);
}

aside.mobile-menu ul li a:hover {
	text-decoration: none;
	color: var(--g-color-text);
}

aside.mobile-menu ul li.menu-item-has-children {
	display: grid;
	justify-content: space-between;
}

aside.mobile-menu ul li.menu-item-has-children>a {
	flex-basis: 90%;
	grid-column: 1/2;
	display: inline-flex;
}

aside.mobile-menu ul li.menu-item-has-children i.drop-menu {
	display: none;
}

aside.mobile-menu ul li.menu-item-has-children i {
	flex-basis: 10%;
	grid-column: 2/3;
	grid-row: 1/2;
	height: 100%;
	width: 100%;
	min-width: 100px;
	display: grid;
	align-items: center;
	justify-content: end;
	color: var(--g-color-link);
	transition: transform 0.4s;
}

aside.mobile-menu ul li.menu-item-has-children i::before {
	transform: rotate(-90deg);
	transform-origin: center;
	font-size: 20px;
}

aside.mobile-menu ul li.menu-item-has-children i.m-toggled::before {
	transform: rotate(0);
}

aside.mobile-menu ul.sub-menu {
	display: none;
	flex-basis: 100%;
	grid-column: 1/3;
	margin: 0;
	height: auto;
	transition: max-height 0.7s cubic-bezier(.43, .195, .02, 1);
	overflow: hidden;
}

aside.mobile-menu ul li.menu-item-has-children i.m-toggled ul.sub-menu {
	display: block;
}

aside.mobile-menu ul.sub-menu li {
	padding: 0 20px;
}

aside.mobile-menu ul li:nth-last-child(1) {
	border-width: 1px 0 0 0;
}

/* 04 Body Sections ////////////// */
article.post {

	width: 100%;
	max-width: var(--wrap-width);
}

aside.sidebar-primary section {
	margin-bottom: 1.428571429rem;
}

aside.sidebar-primary p {
	color: #767676;
}

.asideP-follow p {
	font-size: 1rem;
}

.noptin-email-optin-widget form {
	display: grid;
}

aside.archive-sidebar {
	display: none;
	grid-template-columns: 1fr 1fr;
	max-width: 800px;
}

.asideP-Tuesdays p {
	color: #767676;
	text-transform: uppercase;
}

.wp-block-image .alignleft {
	float: left;
	margin: .5em 2em .5em 0;
}

figcaption {
	display: block;
	font-size: 0.75em;
	text-align: center;
	color: #767676;
	margin-bottom: 1em;
	margin-top: .5em;
	caption-side: bottom;
	display: table-caption;
	width: auto;
}

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

ul.random-post-list li {
	line-height: 1.4;
	margin-bottom: .8ch;
	padding: 4px 0;
}

/* Posts (.single) */
body.single figure.featured-image img,
.entry-image-link img {
	height: 100%;
	width: auto;
}

.entry-header .entry-title {
	margin-top: 0;
	font-size: 22pt;
	font-size: 2.071428571rem;
	font-size: calc(var(--base-font-size) + 0.975rem);
	font-weight: bold;
	margin-bottom: 12px;
	line-height: 1.3;
}

.entry-header .entry-title a {
	color: #777;
	text-decoration: none;
}

.entry-header .entry-title a:hover {
	color: var(--g-color-text);
}

.entry-meta {
	color: #747474;
	font-size: 0.8rem;
}

.entry-meta a {
	text-decoration: underline;
}

.entry-meta a:hover {
	color: var(--g-color-text);
}

.entry-footer {
	margin-top: 3em;
}

.entry-footer .entry-meta span,
.entry-footer .entry-meta a.post-edit-link {
	display: block;
	margin-top: 0.5em;
}

.entry-content {
	margin-top: 2em;
	font-size: 1.0625em;
	font-size: calc(var(--base-font-size) + 0.062rem);
}

a.more-link {
	text-decoration: none;
}

a.more-link:hover {
	color: var(--g-color-text);
}

.comment-respond,
.entry-comments {
	margin-top: 60px !important;
}

.comment-form-comment {
	display: grid;
}

ol.comment-list {
	padding-left: 2ch;
}

.prev-next-post-links,
.related-posts,
.comment-respond,
.entry-comments {
	width: 100%;
	max-width: var(--wrap-width);
	margin: 60px 0;
}

.prev-next-post-links {
	display: flex;
	justify-content: space-between;
	border: solid #ccc;
	border-width: 1px 0 1px 0;
	padding: 20px 0;
}

.single-post-nav {
	width: clamp(150px, 40%, 400px);
}

.single-post-nav a {
	text-decoration: none;
}

.single-post-nav h4 {
	display: block;
	text-transform: uppercase;
	margin-bottom: 8px;
	font-size: 0.7em;
	font-weight: 300;
	letter-spacing: 1px;
	color: #767676;
}

.single-post-nav a p {
	margin-bottom: 0;
}

.single-post-nav a:hover p {
	color: #ce405a;
}

.next-post-link {
	justify-self: end;
	text-align: right;
}

/* Archives, Error 404, & Blogs (/?s) */
body.blog article,
body.archive article,
body.search article {
	border-top: 1px solid #eee;
	padding-top: 3em;
	padding-bottom: 3em;
}

h1.archive-title {
	text-transform: uppercase;
	font-size: 26px;
}

body.blog article:first-child,
body.archive article:first-child,
body.search article:first-child {
	border-top: none;
	padding-top: 0;
}

body.archive article .entry-content .wrap,
body.search article .entry-content .wrap {
	padding: 0;
}

body.archive article a.ReadMore,
body.search article a.ReadMore {
	display: none;
}

/*
body.archive article .entry-content,
body.search article .entry-content {
	height: 60px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.archive article .entry-content *,
body.search article .entry-content * {
	width: 100%;
}

body.archive article .entry-content img,
body.search article .entry-content img {
	display: none;
}
*/
body.error404 aside.sidebar-primary {
	display: none;
}

body.error404 .site-inner .content-sidebar-wrap {
	grid-template-columns: 1fr;
}

body.error404 form.search-form input {
	max-width: 300px;
}

body.error404 form.search-form button {
	position: relative;
	top: 0;
	right: 4px;
}

body.error404 aside.archive-sidebar {
	display: grid;
}

aside.archive-sidebar .widget-title {
	font-size: 1em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #333;
	padding: 0;
	margin-bottom: 1.5em;
}

aside.archive-sidebar ul {
	list-style-type: none;
	padding: 0;
}

aside.archive-sidebar ul li {
	margin-bottom: 0.8ch;
	color: #767676;
}

aside.archive-sidebar ul a {
	color: #555;
	text-decoration: underline;
}

aside.archive-sidebar ul a:hover {
	color: #ce405a;
}

.widget_archive p {
	color: #767676;
}

.tagcloud {
	display: inline-block;
}

.tagcloud a {
	font-size: 0.8rem !important;
	background-color: rgba(0, 0, 0, 0.05);
	line-height: 1;
	display: inline-block;
	margin: 0 3px 6px 0;
	padding: 6px 12px;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.07);
	color: #666;
}

.tagcloud a:hover {
	color: #fff;
	background-color: #ce405a;
	text-decoration: none;
}

.archive-pagination ul,
.pagination ul {
	display: flex;
	column-gap: 10px;
	list-style-type: none;
	padding: 0;
}

.archive-pagination ul li a,
.pagination ul li a {
	padding: 4px 12px;
	border: 2px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
}

.archive-pagination ul li.active a,
.pagination ul li.active a,
.archive-pagination ul li a:hover,
.pagination ul li a:hover {
	color: var(--g-color-body);
	background-color: var(--g-color-text);
}

/* Search & Forms */
input[type="search"]::-webkit-search-decoration {
	display: none;
}

form {
	display: flex;
	column-gap: 0;
	position: relative;
}

form input {
	width: 100%;
	max-width: 100%;
	height: 100%;
	height: 43.5px;
	position: relative;
	background-color: var(--g-color-body);
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 1rem !important;
	color: var(--g-color-text);
}

form input::placeholder,
form input::-ms-input-placeholder {
	opacity: .6;
}

form button,
form button[type="submit"],
form input[type="submit"] {
	color: var(--g-color-text);
	background-color: #ccc;
	padding: 0;
	font-size: 0.9rem;
	font-weight: 500;
	text-align: center;
	display: grid;
	align-content: center;
	border: none;
	margin: 0;
	min-height: 43.5px;
	transition: 0.2s;
}

form.search-form button[type="submit"] {
	color: var(--g-color-body);
	width: 45px;
	height: 100%;
	position: absolute;
	top: 0;
	right: 0;
	border-radius: 0 4px 4px 0;
	display: grid;
	justify-content: center;
}

form button:hover,
form button[type="submit"]:hover,
form input[type="submit"]:hover {
	color: var(--g-color-body);
	background-color: var(--g-color-text);
	cursor: pointer;
	transform: scale(.97);
}

select {
	border: 1px solid #ccc;
	border-radius: 3px;
	font-family: inherit;
	font-size: 1em;
	padding: 6px;
	padding: 0.428571429rem;
}

form.es_subscription_form button,
form.es_subscription_form button[type="submit"],
form.es_subscription_form input,
form.es_subscription_form input[type="submit"] {
	min-height: 52px;
}

.es-form-field-container {
	width: 100%;
}


/* 05 Footer ////////////// */
footer.site-footer {
	padding-top: 4em;
	padding-bottom: 4em;
	border-top: 1px solid #eee;
	background-color: #fff;
	margin-top: 2em !important;
	font-size: 0.8em;
	color: #767676;
	text-align: left;
	letter-spacing: 1px;
}

footer.site-footer p {
	font-size: calc(var(--base-font-size) - 0.2rem);
}

/* 06 Responsive Styles ///////////*/
@media screen and (max-width: 61.938rem
	/* 991px */
) {

	.site-inner .content-sidebar-wrap {
		grid-template-columns: 1fr;
	}

	main.content {
		padding-bottom: 3em;
		margin-bottom: 2em;
	}

	footer.site-footer {
		text-align: center;
	}
}

@media screen and (max-width: 58.125rem
	/* 930px */
) {
	header.topnav {
		display: none;
	}

	header.site-header {
		height: auto;
		margin-top: 20px;
	}

	.homelink1 {
		display: none;
	}

	.homelink2 {
		display: block;
	}

	aside.nav-toggle {
		display: grid;
	}

	#toggle {
		left: 40px;
	}
}

@media screen and (max-width: 47.938rem
	/* 767px */
) {
	.site-container {
		padding: 0 20px;
		max-width: 100%;
	}

	#toggle {
		left: 20px;
	}
}