/*
 Theme Name:   Mighty Earth Child
 Template:     mie
 Description:  Child theme for customizations without modifying the parent theme
 Version:      1.1.2
*/

/* Hero H1 - font size and capitalization */
.hero .hero-header h1 {
   /* text-transform: none !important;*/
    font-size: 90px !important;
}
@media (min-width: 921px) {
    .hero .hero-header h1 {
        font-size: 120px !important;
    }
}
@media (max-width: 920px) {
    .hero .hero-header h1 {
        font-size: 60px !important;
    }
}

/* Article pages: keep H1 in normal case instead of uppercase, since article
   titles tend to be long and read poorly in all caps. */
body.single-article .hero .hero-header h1 {
    text-transform: none !important;
    font-size: 90px !important;
}


/* Split-CTA H1 (Protecting Nature, Decarbonizing Industry, Transforming Agriculture) */
.split-cta .content h1 {
    /*  text-transform: none !important; */
    font-size: 90px !important;
}
@media (max-width: 920px) {
    .split-cta .content h1 {
        font-size: 60px !important;
    }
}

/* Remove uppercase in CTA long text (homepage)*/
.cta .content h3 {
    text-transform: none !important;
}
/* Remove uppercase transform from quote headings inside blockquotes (e.g. About page testimonial) */
.wysiwyg blockquote h4 {
    text-transform: none !important;
}

/* Green background for the Embed section (donation form) */
.component.embed {
    background-color: #0c8248;
    padding-top: 100px;
}

/* Featured image in the contact sidebar (Person only) */
.contact-container .contact-featured-image {
    width: 100%;
    max-width: 200px;
    border-radius: 4px;
    margin-bottom: 16px;
}



/* Styles for 'sort by' in search results */
/* Layout: "Results" on the left, sort dropdown on the right.
   Scoped to the search results page on purpose: the archive templates use the
   same .filter .container markup with a 12-column grid, and forcing flex there
   breaks their layout. */
body.search .filter .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.filter .col-span-6.sort-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
/* Match the dropdown's typography to the "Results" heading next to it */
.sort-options select {
    font-family: "PP Fraktion Mono", sans-serif !important;
    font-size: 18px !important;
    color: #333333 !important;
    text-transform: uppercase !important;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0px 4px 0px 0px;
}

/* Remove top margin between hero and content sections on Person profile pages only.
   The .component class normally adds spacing (80px desktop / 20px mobile), but on
   these pages the hero already has enough padding, making it look too spaced out. */
body.single-person .contact-side-content.component,
body.single-person .component.wysiwyg {
    margin-top: 0 !important;
}

/* ---------------------------------------------------------------------------
   Archive filter bar
   Keyword search + primary category buttons + a shared secondary row.
   Rendered by template-parts/partials/filters.php, above the result count and
   the active-filter chips. Uses the theme tokens: Poppins / PP Fraktion Mono,
   --color-midnight, --color-primary-green, --color-light-gray.
   !important is used where the parent stylesheet would otherwise win, since it
   is printed after this file.
   --------------------------------------------------------------------------- */

.filter-bar {
	padding: 40px 0 0;
}

/* --- Keyword search --- */
.filter-bar-form {
	display: flex;
	justify-content: center;
	margin-bottom: 32px;
}
.filter-search {
	position: relative;
	width: 100%;
	max-width: 620px;
}
.filter-search input[type="text"] {
	width: 100%;
	height: 64px;
	padding: 0 64px 0 24px;
	border: 1px solid transparent;
	background-color: var(--color-light-gray, #ebefe9);
	font-family: Poppins, sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 140%;
	color: var(--color-midnight, #1a1b1a);
	transition: border-color .3s cubic-bezier(.4, 0, .2, 1);
}
.filter-search input[type="text"]::placeholder {
	color: #6b6b6b;
	font-family: Poppins, sans-serif;
	font-weight: 500;
}
.filter-search input[type="text"]:focus {
	outline: none;
	border-color: var(--color-midnight, #1a1b1a);
}
.filter-search-submit {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--color-midnight, #1a1b1a);
	cursor: pointer;
	transition: color .3s cubic-bezier(.4, 0, .2, 1);
}
.filter-search-submit:hover {
	color: var(--color-primary-green, #0c8248);
}

/* --- Primary categories --- */
.filter-categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
}
.filter-cat-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 16px 24px;
	border: none;
	background: transparent;
	font-family: "PP Fraktion Mono", Poppins, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 100%;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--color-midnight, #1a1b1a);
	cursor: pointer;
	transition: background-color .3s cubic-bezier(.4, 0, .2, 1), color .3s cubic-bezier(.4, 0, .2, 1);
}
.filter-cat-toggle:hover {
	color: var(--color-primary-green, #0c8248);
	text-decoration: none;
}
.filter-cat-toggle .icon {
	display: flex;
	align-items: center;
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
/* Expanded parent */
.filter-cat-toggle.open {
	background-color: var(--color-midnight, #1a1b1a);
	color: #fff;
}
.filter-cat-toggle.open .icon {
	transform: rotate(180deg);
}
/* Currently filtering — declared after .open so it wins when both apply */
.filter-cat-toggle.active {
	background-color: var(--color-primary-green, #0c8248);
	color: #fff;
}
.filter-cat-toggle.open:hover,
.filter-cat-toggle.active:hover {
	color: #fff;
}

/* --- Secondary row: full-bleed light band under the categories --- */
.filter-children-row {
	width: 100%;
	background-color: var(--color-light-gray, #ebefe9);
}
.filter-children-row:empty {
	display: none;
}
.filter-children-group {
	display: none;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 32px;
	padding: 20px 0;
}
.filter-children-group.is-visible {
	display: flex;
}
.filter-children-group a {
	font-family: "PP Fraktion Mono", Poppins, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 100%;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	text-decoration: none;
	color: #4a4a4a;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	transition: color .3s cubic-bezier(.4, 0, .2, 1), border-color .3s cubic-bezier(.4, 0, .2, 1);
}
.filter-children-group a:hover {
	color: var(--color-midnight, #1a1b1a);
	text-decoration: none;
}
.filter-children-group a.active {
	color: var(--color-midnight, #1a1b1a);
	border-bottom-color: var(--color-primary-green, #0c8248);
}

/* --- Mobile --- */
@media (max-width: 920px) {
	.filter-bar {
		padding-top: 24px;
	}
	.filter-bar-form {
		margin-bottom: 20px;
	}
	.filter-search input[type="text"] {
		height: 56px;
		padding: 0 56px 0 16px;
		font-size: 16px;
	}
	.filter-search-submit {
		width: 56px;
		height: 56px;
	}
	.filter-cat-toggle {
		padding: 12px 16px;
		font-size: 13px;
		letter-spacing: 1px;
	}
	.filter-children-group {
		gap: 8px 20px;
		padding: 16px 0;
	}
}

/* Add new CSS updates*/

/* ---------------------------------------------------------------------------
   Footer
   These rules used to live inside footer.php as two <style> blocks and one
   inline style attribute. Moved here on 2026-09-18, values unchanged.
   --------------------------------------------------------------------------- */

/* Newsletter form column takes the right half of the grid on desktop.
   !important is needed: the div still carries Tailwind's .col-span-12, and the
   parent stylesheet is printed after this one. */
@media (min-width: 920px) {
	.footer-form-col {
		grid-column: 7 / span 6 !important;
	}
}

/* Social icons aligned to the left.
   Overrides the parent's "footer .top .footer-right-content .icons-container
   { justify-content: flex-end }". This used to be an inline style attribute,
   which won on its own; as a rule it needs !important. */
.footer-right-content .icons-container {
	display: flex;
	justify-content: flex-start !important;
	text-align: left;
}
.footer-right-content .icons-container ul {
	justify-content: flex-start !important;
	text-align: left !important;
	margin-left: 0 !important;
	padding-left: 0 !important;
}
