/* =========================================================================
   Be Mission Minded — theme overrides.
   Holds (1) styles extracted from the original templates' inline style=""
   attributes, and (2) small utility/accessibility classes the WordPress
   conversion introduces. The original design is preserved exactly.
   ========================================================================= */

/* ----- Extracted inline styles: homepage resources ---------------------- */

/* Was: style="color:#d98b08; opacity:0" — a spacer heading kept for layout. */
.border-title.bmm-invisible {
	color: #d98b08;
	opacity: 0;
}

/* Was: style="color:#d98b08" on the middle resources eyebrow. */
.border-title.border-title--gold {
	color: #d98b08;
}

/* Was: inline absolute positioning on the first "View More Books" button. */
.viewmorebtn.viewmorebtn--abs {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translate(-50%, 0);
}

/* ----- Extracted inline styles: about page ------------------------------ */

/* Was: style="color:#06264A" on the Connect eyebrow. */
.eyebrow.eyebrow--navy {
	color: #06264A;
}

/* Was: style="color:#C98A18" on the Global highlighted paragraph. */
.global .text-gold {
	color: #C98A18;
}

/* Was: style="margin-top:28px" wrapper around the trust social strip. */
.trust-social-wrap {
	margin-top: 28px;
}

/* Was: inline linear-gradient backgrounds on the three social tiles. */
.social-tile {
	background: linear-gradient(145deg, #6b5e7a, #7a8a5e);
}
.social-tile.social-tile--1 {
	background: linear-gradient(145deg, #6b5e7a, #7a8a5e);
}
.social-tile.social-tile--2 {
	background: linear-gradient(145deg, #4a5f6e, #95785e);
}
.social-tile.social-tile--3 {
	background: linear-gradient(145deg, #5e745f, #3b5164);
}

/* ----- Converted <button> → <a> parity ---------------------------------- */

/* The giving-card CTA is now an anchor; mirror the original button style. */
.giving-card .giving-card-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none;
	background: var(--navy);
	color: #fff;
	padding: 8px 20px;
	font-size: 14px;
	border-radius: 3px;
	text-decoration: none;
	cursor: pointer;
}
.giving-options .giving-card .giving-card-btn i {
	color: #fff;
}

/* The mobile menu toggle is now a <button>; strip native button chrome so
   it renders exactly like the original <div class="menuicon">. */
.menuicon {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: inherit;
	font: inherit;
	line-height: 0;
}

/* Play buttons that are now real <button> elements. */
button.play-btn {
	border: none;
	cursor: pointer;
	font: inherit;
}

/* Filter tabs are <button>s; keep them visually identical to the original. */
.tab-btn {
	font: inherit;
	cursor: pointer;
}

/* ----- Accessibility utilities ------------------------------------------ */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: #06264A;
	color: #fff;
	padding: 10px 16px;
	border-radius: 0 0 4px 0;
}
.skip-link:focus {
	left: 0;
}

/* Visible keyboard focus (was missing in the original). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid #C98A18;
	outline-offset: 2px;
}

/* ----- Newsletter form: honeypot + status message ----------------------- */

.bmm-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.bmm-form-message {
	margin: 8px 0 0;
	font-size: 13px;
	min-height: 1em;
}
.bmm-form-message.is-success {
	color: #2e7d32;
}
.bmm-form-message.is-error {
	color: #c62828;
}

/* ----- Breadcrumbs ------------------------------------------------------- */

.bmm-breadcrumbs {
	font-size: 13px;
	margin: 16px 0;
	color: #6b7280;
}
.bmm-breadcrumbs__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
}
.bmm-breadcrumbs__item + .bmm-breadcrumbs__item::before {
	content: "/";
	margin-right: 6px;
	color: #b0b6bf;
}
.bmm-breadcrumbs a {
	color: #06264A;
}
.bmm-breadcrumbs [aria-current="page"] {
	color: #6b7280;
}

/* ----- Generic content pages (page.php / single.php / search / 404) ----- */

.content-area {
	padding: 40px 0 60px;
}
.content-narrow {
	max-width: 820px;
}
.page-head {
	margin-bottom: 24px;
}
.page-content p {
	line-height: 1.7;
}
.post-item {
	padding: 20px 0;
	border-bottom: 1px solid #eee;
}
.single-thumb {
	margin: 0 0 24px;
}
.single-thumb img {
	border-radius: 8px;
}

/* =========================================================================
   Scroll-reveal animations (professional section-wise fade-up).
   Gated by html.js so no-JS users see everything. JS (main.js) adds
   .is-visible when an element scrolls into view. Reduced-motion users are
   skipped in JS and also protected here.
   ========================================================================= */
html.js .bmm-anim {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
		transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: opacity, transform;
}
html.js .bmm-anim.is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	html.js .bmm-anim {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* Active-menu highlight for the GIVE button: on the Give page the button
   turns navy (theme blue) with white text, and shows no underline — a clear
   active state that reads correctly on the button. */
#nav ul li.active a.give::after,
#nav ul li.active a.give:after {
	display: none;
}
#nav ul li.active a.give {
	background: var(--navy);
	color: #fff;
}
