/* WP MissionaryConnect MAPS Pro 3.2.0 display.
 * Every rule is scoped under .mcmp-wrap and doubled (.mcmp-wrap.mcmp-wrap)
 * so it outranks theme and page-builder rules such as ".entry-content img"
 * or ".elementor-shortcode a". Key properties carry !important on purpose:
 * that is what keeps a theme's red photo frames and oversized headings out. */

.mcmp-wrap.mcmp-wrap {
	--mcmp-navy: #0f1e3d;
	--mcmp-blue: #1a73e8;
	--mcmp-deep: #1557d0;
	--mcmp-ink: #1d2433;
	--mcmp-muted: #5b6577;
	--mcmp-line: #dfe5ee;
	--mcmp-soft: #f3f6fb;
	--mcmp-cols: 3;
	box-sizing: border-box;
	margin: 24px 0;
	padding: 0;
	color: var(--mcmp-ink);
	font-family: inherit;
	line-height: 1.45;
	text-align: left;
	background: transparent;
	border: 0;
}
.mcmp-wrap.mcmp-wrap *, .mcmp-wrap.mcmp-wrap *::before, .mcmp-wrap.mcmp-wrap *::after { box-sizing: border-box; }

/* Headings */
.mcmp-wrap.mcmp-wrap .mcmp-heading {
	margin: 0 0 20px !important; padding: 0 !important; border: 0 !important;
	font-size: 30px !important; line-height: 1.2 !important; color: var(--mcmp-navy) !important;
	text-transform: none !important; letter-spacing: 0 !important; font-family: inherit !important;
}
.mcmp-wrap.mcmp-wrap .mcmp-region-title {
	display: flex !important; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	margin: 36px 0 16px !important; padding: 0 0 10px !important;
	border: 0 !important; border-bottom: 3px solid var(--mcmp-blue) !important;
	font-size: 24px !important; line-height: 1.2 !important; color: var(--mcmp-navy) !important;
	text-transform: none !important; letter-spacing: 0 !important; background: none !important; font-family: inherit !important;
}
.mcmp-wrap.mcmp-wrap .mcmp-section:first-child .mcmp-region-title { margin-top: 8px !important; }
.mcmp-wrap.mcmp-wrap .mcmp-count {
	font-size: 13px !important; font-weight: 600; color: var(--mcmp-muted) !important;
	text-transform: uppercase; letter-spacing: .06em !important;
}

/* Grid */
.mcmp-wrap.mcmp-wrap .mcmp-grid {
	display: grid !important; gap: 22px; margin: 0 !important; padding: 0 !important; list-style: none;
	grid-template-columns: repeat(var(--mcmp-cols), minmax(0, 1fr));
	align-items: stretch;
}
@media (max-width: 960px) { .mcmp-wrap.mcmp-wrap .mcmp-grid { grid-template-columns: repeat(min(var(--mcmp-cols), 2), minmax(0, 1fr)); } }
@media (max-width: 600px) { .mcmp-wrap.mcmp-wrap .mcmp-grid { grid-template-columns: minmax(0, 1fr); } }

/* Card */
.mcmp-wrap.mcmp-wrap .mcmp-card {
	display: flex !important; flex-direction: column; min-width: 0; margin: 0 !important; padding: 0 !important;
	background: #fff !important; color: var(--mcmp-ink);
	border: 1px solid var(--mcmp-line) !important; border-radius: 12px !important; overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 30, 61, .06), 0 4px 14px rgba(15, 30, 61, .05) !important;
}

/* Photo: contain-fit, never cropped, never framed */
.mcmp-wrap.mcmp-wrap .mcmp-photo {
	position: relative; width: 100% !important; height: 230px !important; margin: 0 !important; padding: 0 !important;
	background: var(--mcmp-soft) !important; border: 0 !important; overflow: hidden; flex: 0 0 auto;
}
.mcmp-wrap.mcmp-wrap .mcmp-photo-btn {
	display: flex !important; align-items: center; justify-content: center;
	width: 100% !important; height: 100% !important; margin: 0 !important; padding: 10px !important;
	border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
	cursor: zoom-in; -webkit-appearance: none; appearance: none; font: inherit;
}
.mcmp-wrap.mcmp-wrap .mcmp-photo-btn:focus-visible { outline: 3px solid var(--mcmp-blue) !important; outline-offset: -3px; }
.mcmp-wrap.mcmp-wrap .mcmp-photo img {
	display: block !important; width: auto !important; height: auto !important;
	max-width: 100% !important; max-height: 100% !important; object-fit: contain !important;
	margin: 0 auto !important; padding: 0 !important;
	border: 0 !important; border-radius: 6px !important; outline: 0 !important; box-shadow: none !important; background: transparent !important;
}
.mcmp-wrap.mcmp-wrap .mcmp-avatar {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	background: linear-gradient(145deg, hsl(var(--mcmp-h, 215) 48% 34%), hsl(calc(var(--mcmp-h, 215) + 25) 52% 24%)) !important;
	color: #fff !important; font-size: 54px; font-weight: 700; letter-spacing: .04em; user-select: none;
}

/* Text */
.mcmp-wrap.mcmp-wrap .mcmp-body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 4px; padding: 16px 18px 18px !important; }
.mcmp-wrap.mcmp-wrap .mcmp-name {
	margin: 0 0 2px !important; padding: 0 !important; border: 0 !important; background: none !important;
	font-size: 19px !important; line-height: 1.25 !important; font-weight: 700 !important; color: var(--mcmp-navy) !important;
	text-transform: none !important; letter-spacing: 0 !important; font-family: inherit !important;
}
.mcmp-wrap.mcmp-wrap .mcmp-name a { color: inherit !important; text-decoration: none !important; border: 0 !important; box-shadow: none !important; }
.mcmp-wrap.mcmp-wrap .mcmp-name a:hover { color: var(--mcmp-blue) !important; text-decoration: underline !important; }
.mcmp-wrap.mcmp-wrap .mcmp-role { margin: 0 !important; font-size: 14px !important; font-weight: 700; color: var(--mcmp-deep) !important; }
.mcmp-wrap.mcmp-wrap .mcmp-org { margin: 0 !important; font-size: 14px !important; font-style: italic; color: var(--mcmp-muted) !important; }
.mcmp-wrap.mcmp-wrap .mcmp-place,
.mcmp-wrap.mcmp-wrap .mcmp-since { margin: 0 !important; font-size: 13.5px !important; color: var(--mcmp-muted) !important; }
.mcmp-wrap.mcmp-wrap .mcmp-bio { margin: 6px 0 0 !important; font-size: 14px !important; color: var(--mcmp-ink) !important; }

/* Links */
.mcmp-wrap.mcmp-wrap .mcmp-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto !important; padding-top: 12px !important; }
.mcmp-wrap.mcmp-wrap .mcmp-btn {
	display: inline-flex !important; align-items: center; min-height: 34px; margin: 0 !important; padding: 6px 13px !important;
	border: 1px solid var(--mcmp-line) !important; border-radius: 999px !important;
	background: #fff !important; color: var(--mcmp-deep) !important; box-shadow: none !important;
	font: inherit; font-size: 13px !important; font-weight: 600 !important; line-height: 1.2 !important;
	text-decoration: none !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer;
	-webkit-appearance: none; appearance: none;
}
.mcmp-wrap.mcmp-wrap .mcmp-btn:hover, .mcmp-wrap.mcmp-wrap .mcmp-btn:focus-visible { background: var(--mcmp-soft) !important; border-color: var(--mcmp-blue) !important; }
.mcmp-wrap.mcmp-wrap .mcmp-btn-primary { background: var(--mcmp-blue) !important; border-color: var(--mcmp-blue) !important; color: #fff !important; }
.mcmp-wrap.mcmp-wrap .mcmp-btn-primary:hover, .mcmp-wrap.mcmp-wrap .mcmp-btn-primary:focus-visible { background: var(--mcmp-deep) !important; border-color: var(--mcmp-deep) !important; }
.mcmp-wrap.mcmp-wrap .mcmp-btn-give { background: var(--mcmp-navy) !important; border-color: var(--mcmp-navy) !important; color: #fff !important; }
.mcmp-wrap.mcmp-wrap .mcmp-btn-give:hover, .mcmp-wrap.mcmp-wrap .mcmp-btn-give:focus-visible { background: #1d3263 !important; }
.mcmp-wrap.mcmp-wrap .mcmp-socials { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.mcmp-wrap.mcmp-wrap .mcmp-social { font-size: 13px !important; color: var(--mcmp-muted) !important; text-decoration: underline !important; border: 0 !important; }
.mcmp-wrap.mcmp-wrap .mcmp-social:hover { color: var(--mcmp-blue) !important; }

/* Prayer letters panel */
.mcmp-wrap.mcmp-wrap .mcmp-letters { margin-top: 10px; padding: 10px 12px !important; border-radius: 8px; background: var(--mcmp-soft) !important; font-size: 13px; }
.mcmp-wrap.mcmp-wrap .mcmp-letters[hidden] { display: none !important; }
.mcmp-wrap.mcmp-wrap .mcmp-letters ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.mcmp-wrap.mcmp-wrap .mcmp-letters li { margin: 0 !important; padding: 4px 0 !important; border: 0 !important; display: flex; justify-content: space-between; gap: 10px; }
.mcmp-wrap.mcmp-wrap .mcmp-letters a { color: var(--mcmp-deep) !important; text-decoration: underline !important; border: 0 !important; }
.mcmp-wrap.mcmp-wrap .mcmp-letters time { color: var(--mcmp-muted); white-space: nowrap; }

/* Pagination, empty, error */
.mcmp-wrap.mcmp-wrap .mcmp-pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; font-size: 14px; }
.mcmp-wrap.mcmp-wrap .mcmp-pagination a { color: var(--mcmp-deep) !important; font-weight: 600; text-decoration: none !important; border: 0 !important; padding: 8px 14px; border-radius: 999px; background: var(--mcmp-soft) !important; }
.mcmp-wrap.mcmp-wrap .mcmp-page-info { color: var(--mcmp-muted); }
.mcmp-empty, .mcmp-error { margin: 16px 0; color: #5b6577; }

/* API-supplied layout HTML sits in its own wrapper so it scales inside narrow columns */
.mcmp-wrap.mcmp-api-layout { max-width: 100%; overflow-x: hidden; }
