/* Local Links directory — scoped. Header, title band, footer stay unchanged. */
.bm-links {
	--bmc-red: #e10707;
	--bmc-ink: #1a1a1a;
	--bmc-muted: #5c636a;
	--bmc-line: #e7e9ec;
	--bmc-line-hover: #e0c8c8;
	box-sizing: border-box;
	max-width: 1020px;
	margin: 0 0 2.4rem;
	color: var(--bmc-ink);
	font-family: inherit;
}

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

.fusion-body.bm-links-page .post-content,
.fusion-body.bm-links-page .post-content p {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.bm-links-intro,
.fusion-body.bm-links-page .post-content p.bm-links-intro {
	max-width: none;
	margin: 0 0 1.25rem;
	color: #1a1a1a;
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.7;
}

.bm-links-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.1rem;
	align-items: stretch;
	justify-content: start;
}

.bm-links-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
	padding: 1.15rem 1.1rem 1.05rem;
	background: #fff;
	border: 1px solid var(--bmc-line);
	border-radius: 12px;
	box-shadow: none;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.bm-links-card:hover,
.bm-links-card:focus {
	border-color: var(--bmc-line-hover);
	color: inherit;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(17, 17, 17, 0.06);
}

.bm-links-card:focus-visible {
	outline: 2px solid var(--bmc-red);
	outline-offset: 3px;
}

.bm-links-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 96px;
	margin: 0 0 0.85rem;
	padding: 0.2rem 0.35rem;
}

.bm-links-logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 88px;
	object-fit: contain;
	object-position: center;
}

.bm-links-card--sportmalta .bm-links-logo img {
	max-height: 52px;
}

.bm-links-card--moc .bm-links-logo img {
	max-height: 78px;
}

.bm-links-card--bwf .bm-links-logo img {
	max-height: 72px;
}

.bm-links-card--be .bm-links-logo img {
	max-height: 88px;
}

.bm-links-card--comeba .bm-links-logo img {
	max-height: 82px;
}

.bm-links-name {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.55rem;
	margin-top: auto;
	padding-top: 0.15rem;
}

.bm-links-name-text {
	min-width: 0;
	color: var(--bmc-ink);
	font-size: 1.125rem;
	font-weight: 650;
	letter-spacing: -0.015em;
	line-height: 1.3;
}

.bm-links-ext {
	flex: 0 0 auto;
	margin-top: 0.1rem;
	color: #9aa1a8;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1;
	transition: color 0.18s ease, transform 0.18s ease;
}

.bm-links-card:hover .bm-links-ext,
.bm-links-card:focus .bm-links-ext {
	color: var(--bmc-red);
	transform: translate(1px, -1px);
}

@media (prefers-reduced-motion: reduce) {
	.bm-links-card,
	.bm-links-ext {
		transition: none;
	}

	.bm-links-card:hover,
	.bm-links-card:focus {
		transform: none;
	}

	.bm-links-card:hover .bm-links-ext,
	.bm-links-card:focus .bm-links-ext {
		transform: none;
	}
}

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

@media (max-width: 480px) {
	.bm-links-grid {
		grid-template-columns: 1fr;
	}
}
