/* Coaches Directory. Header, title band and footer stay global. */
.bm-coaches {
	--bmc-red: #e10707;
	--bmc-red-soft: #fff4f4;
	--bmc-ink: #1a1a1a;
	--bmc-muted: #5c636a;
	--bmc-line: #eadfe0;
	--bmc-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 10px 24px rgba(26, 26, 26, 0.06);
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 2rem;
	color: var(--bmc-ink);
	font-family: inherit;
}

.bm-coaches *,
.bm-coaches *::before,
.bm-coaches *::after {
	box-sizing: border-box;
}

.fusion-body.bm-coaches-page .post-content,
.fusion-body.bm-coaches-page .post-content p,
.fusion-body.bm-coaches-page .post-content h2,
.fusion-body.bm-coaches-page .post-content ul,
.fusion-body.bm-coaches-page .post-content li {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
}

.fusion-body.bm-coaches-page #sidebar {
	display: none !important;
}

.fusion-body.bm-coaches-page #content {
	width: 100% !important;
	margin: 0 !important;
}

.bm-coaches-intro,
.fusion-body.bm-coaches-page .post-content p.bm-coaches-intro {
	max-width: 38rem;
	margin: 0 0 0.95rem;
	color: var(--bmc-muted);
	font-size: 1.02rem;
	font-weight: 400;
	line-height: 1.55;
}

.bm-coaches-tools {
	display: flex;
	align-items: center;
	gap: 0.75rem 1.15rem;
	margin: 0 0 0.85rem;
}

.bm-coaches-search {
	position: relative;
	flex: 1 1 auto;
	max-width: 34rem;
	margin: 0;
}

.bm-coaches-search-icon {
	position: absolute;
	top: 50%;
	left: 0.85rem;
	z-index: 1;
	display: flex;
	color: var(--bmc-red);
	pointer-events: none;
	transform: translateY(-50%);
}

.bm-coaches-search-input,
.fusion-body.bm-coaches-page .post-content input.bm-coaches-search-input {
	display: block;
	width: 100%;
	height: 2.75rem;
	margin: 0;
	padding: 0 0.9rem 0 2.55rem;
	border: 1px solid #e0d4d5;
	border-radius: 999px;
	background: #fff;
	color: var(--bmc-ink);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.3;
	box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04);
}

.bm-coaches-search-input::-webkit-search-decoration,
.bm-coaches-search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.bm-coaches-search-input::placeholder {
	color: #8b9198;
	opacity: 1;
}

.bm-coaches-search-input:focus {
	outline: 2px solid var(--bmc-red);
	outline-offset: 1px;
	border-color: var(--bmc-red);
}

.bm-coaches-count,
.fusion-body.bm-coaches-page .post-content p.bm-coaches-count {
	flex: 0 0 auto;
	margin: 0;
	color: var(--bmc-muted);
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
}

.bm-coaches-count [data-n] {
	color: var(--bmc-red);
	font-size: 1.05rem;
	font-weight: 700;
}

.bm-coaches-empty,
.fusion-body.bm-coaches-page .post-content p.bm-coaches-empty {
	margin: 0 0 0.75rem;
	color: var(--bmc-muted);
	font-size: 0.95rem;
	line-height: 1.45;
}

.bm-coaches-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.85rem;
	align-items: stretch;
}

.bm-coach {
	min-width: 0;
	height: 100%;
	padding: 0.85rem 0.95rem 0.9rem;
	background: #fff;
	border: 1px solid var(--bmc-line);
	border-top: 3px solid var(--bmc-red);
	border-radius: 12px;
	box-shadow: var(--bmc-shadow);
}

.bm-coach[hidden] {
	display: none !important;
}

.bm-coach-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.bm-coach-avatar {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--bmc-red);
	color: #fff;
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1;
	box-shadow: 0 0 0 4px var(--bmc-red-soft);
}

.bm-coach-name,
.fusion-body.bm-coaches-page .post-content h2.bm-coach-name {
	min-width: 0;
	margin: 0;
	color: var(--bmc-ink) !important;
	font-size: 1.12rem !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em;
	line-height: 1.2 !important;
	text-transform: none !important;
}

.bm-coach-quals,
.fusion-body.bm-coaches-page .post-content ul.bm-coach-quals {
	margin: 0.7rem 0 0;
	padding: 0.45rem 0.6rem 0.5rem 0.55rem;
	list-style: none;
	background: var(--bmc-red-soft);
	border-radius: 8px;
}

.bm-coach-quals li,
.fusion-body.bm-coaches-page .post-content .bm-coach-quals li {
	position: relative;
	margin: 0;
	padding: 0.08rem 0 0.08rem 0.9rem;
	color: var(--bmc-ink);
	font-size: 0.92rem;
	font-weight: 650;
	line-height: 1.35;
}

.bm-coach-quals li::before {
	content: "";
	position: absolute;
	top: 0.48em;
	left: 0;
	width: 0.38rem;
	height: 0.38rem;
	border-radius: 2px;
	background: var(--bmc-red);
}

.bm-coach-quals li + li {
	margin-top: 0.12rem;
}

.bm-coach-tutor,
.fusion-body.bm-coaches-page .post-content p.bm-coach-tutor {
	display: flex;
	align-items: flex-start;
	gap: 0.35rem;
	margin: 0.5rem 0 0;
	color: var(--bmc-muted);
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.35;
}

.bm-coach-tutor svg {
	flex: 0 0 auto;
	margin-top: 0.05rem;
	color: #9aa0a6;
}

@media (hover: hover) {
	.bm-coach {
		transition: transform 0.18s ease, box-shadow 0.18s ease;
	}

	.bm-coach:hover {
		transform: translateY(-2px);
		box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 14px 28px rgba(26, 26, 26, 0.09);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bm-coach {
		transition: none;
	}

	.bm-coach:hover {
		transform: none;
	}
}

@media (max-width: 900px) {
	.bm-coaches-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.bm-coaches-tools {
		align-items: stretch;
		flex-direction: column;
		gap: 0.45rem;
	}

	.bm-coaches-search {
		max-width: none;
	}

	.bm-coaches-count,
	.fusion-body.bm-coaches-page .post-content p.bm-coaches-count {
		padding-left: 0.15rem;
	}

	.bm-coaches-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.7rem;
	}
}
