/* Social links: footer row and the Telegram card on listing pages. Tokens come from global.css. */

.lm-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lm-social li {
	margin: 0;
}

/* Monochrome by default (the theme's muted text colour, so light and dark both work). */
body a.lm-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var( --lm-tap );
	height: var( --lm-tap );
	color: var( --lm-muted );
	border-radius: 10px;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

body a.lm-social-link svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Brand colour on hover / keyboard focus. X's mark is black, so it follows the text colour instead. */
body a.lm-social-link:hover,
body a.lm-social-link:focus-visible {
	color: var( --lm-brand );
	background: var( --lm-panel2 );
}

body a.lm-social-link:focus-visible {
	outline: 3px solid var( --lm-focus );
	outline-offset: 2px;
}

.lm-social-youtube {
	--lm-brand: #ff0000;
}

.lm-social-telegram {
	--lm-brand: #1a86ba; /* Telegram blue, darkened to keep 3:1 on the light hover background */
}

.lm-social-x {
	--lm-brand: var( --lm-ink );
}

.lm-social-facebook {
	--lm-brand: #0866ff;
}

.lm-social-instagram {
	--lm-brand: #ff0069;
}

/* Dark mode: brand colours that need a lighter shade to stay visible on the dark hover background. */
html.dark-theme .lm-social-telegram {
	--lm-brand: #26a5e4;
}

html.dark-theme .lm-social-facebook {
	--lm-brand: #5b9bff;
}

/* Footer: "Follow TCL" and the icons, under the link columns. */
.lm-footer-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
	padding: 0 0 20px;
}

.lm-footer-social .lm-footer-heading {
	margin: 0;
}

.lm-footer-social .lm-social {
	margin-left: -12px;
}

/* "Join our Telegram" card under the hero of a listing page. */
.lm-tg-cta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 24px;
	padding: 16px 20px;
	background: var( --lm-panel );
	border: 1px solid var( --lm-line );
	border-radius: var( --lm-radius );
}

.lm-tg-cta-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	color: #fff;
	background: #1a86ba;
	border-radius: 12px;
}

.lm-tg-cta-icon svg {
	display: block;
	width: 26px;
	height: 26px;
	fill: currentColor;
}

.lm-tg-cta-text {
	flex: 1 1 auto;
	min-width: 0;
}

.lm-tg-cta-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: var( --lm-ink );
}

.lm-tg-cta-sub {
	margin: 2px 0 0;
	font-size: 14px;
	line-height: 1.45;
	color: var( --lm-muted );
}

/* White on the site's solid button blue (>= 5:1); Telegram's own light blue is too pale for text. */
body a.lm-tg-cta-btn {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	min-height: var( --lm-tap );
	padding: 0 22px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: var( --lm-grad-btn );
	border-radius: 10px;
	text-decoration: none;
	transition: filter 0.15s ease;
}

body a.lm-tg-cta-btn:hover,
body a.lm-tg-cta-btn:focus-visible {
	color: #fff;
	filter: brightness( 1.12 );
}

@media ( max-width: 600px ) {
	.lm-tg-cta {
		flex-wrap: wrap;
		padding: 16px;
	}

	.lm-tg-cta-text {
		flex: 1 1 calc( 100% - 72px );
	}

	body a.lm-tg-cta-btn {
		width: 100%;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	body a.lm-social-link,
	body a.lm-tg-cta-btn {
		transition: none;
	}
}
