/*
 * The Mohur global footer shell and newsletter presentation.
 * The newsletter slot uses an Instagram CTA until a provider is connected.
 */
.the-mohur-site-footer {
	background: var(--tm-color-background);
}

.the-mohur-footer-newsletter {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(18rem, 32rem);
	align-items: center;
	gap: var(--tm-space-xl);
	padding-bottom: var(--tm-space-xl);
	border-bottom: 1px solid var(--tm-color-border);
}

.the-mohur-footer-newsletter-copy h2 {
	max-width: 18ch;
	margin: 0;
}

.the-mohur-footer-newsletter-copy p {
	max-width: 46ch;
	margin-bottom: 0;
	color: var(--tm-color-muted);
}

.the-mohur-newsletter-instagram {
	margin: 0;
	justify-self: end;
}

.the-mohur-newsletter-instagram a {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	gap: 0.45rem;
	color: var(--tm-color-primary);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}

.the-mohur-newsletter-instagram a span {
	display: inline-block;
	font-size: 1rem;
	transition: transform var(--tm-duration-standard) var(--tm-ease-out);
}

.the-mohur-newsletter-instagram a:hover span,
.the-mohur-newsletter-instagram a:focus-visible span {
	transform: translateX(3px);
}

.the-mohur-newsletter-instagram a:hover,
.the-mohur-newsletter-instagram a:focus-visible {
	color: var(--tm-color-primary-dark);
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.the-mohur-footer-grid {
	display: grid !important;
	grid-template-columns: minmax(15rem, 1.5fr) repeat(4, minmax(0, 1fr));
	gap: var(--tm-space-l);
	padding-block: var(--tm-space-xl);
}

.the-mohur-footer-brand {
	max-width: 22rem;
}

.the-mohur-footer-brand .wp-block-site-logo img {
	max-height: 3rem;
	object-fit: contain;
}

.the-mohur-footer-brand .wp-block-site-title {
	margin: 0 0 var(--tm-space-s);
}

.the-mohur-footer-brand .wp-block-site-title a {
	color: var(--tm-color-primary-dark);
	font-family: var(--tm-font-display);
	font-size: 1.9rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.the-mohur-footer-brand:has(.wp-block-site-logo img) .the-mohur-footer-title-fallback {
	display: none;
}

.the-mohur-footer-brand > p {
	margin-top: var(--tm-space-s);
	color: var(--tm-color-muted);
}

.the-mohur-footer-brand a {
	color: var(--tm-color-text);
}

.the-mohur-footer-brand a:hover {
	color: var(--tm-color-primary);
}

.the-mohur-footer-brand .wp-block-social-links {
	gap: 0.35rem;
	margin-top: var(--tm-space-m);
}

.the-mohur-footer-brand .wp-block-social-links a {
	color: var(--tm-color-text);
}

.the-mohur-footer-accordion {
	margin: 0;
}

.the-mohur-footer-accordion > summary {
	color: var(--tm-color-primary);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.the-mohur-footer-links {
	display: grid;
	gap: 0.35rem;
	margin: var(--tm-space-s) 0 0;
	padding: 0;
	list-style: none;
}

.the-mohur-footer-links a {
	color: var(--tm-color-text);
	font-size: 0.82rem;
	text-decoration: none;
}

.the-mohur-footer-links a:hover,
.the-mohur-footer-links a:focus-visible {
	color: var(--tm-color-primary);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.the-mohur-footer-legal {
	padding-top: var(--tm-space-m);
	border-top: 1px solid var(--tm-color-border);
}

.the-mohur-footer-legal p {
	margin: 0;
	color: var(--tm-color-muted);
}

.the-mohur-legal-navigation {
	min-width: 0;
}

.the-mohur-legal-navigation .wp-block-navigation__container {
	gap: var(--tm-space-m);
}

.the-mohur-legal-navigation .wp-block-navigation-item__content {
	color: var(--tm-color-muted);
	font-size: 0.65rem;
	letter-spacing: 0.05em;
}

@media (max-width: 960px) {
	.the-mohur-footer-grid {
		grid-template-columns: minmax(14rem, 1.4fr) repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.the-mohur-footer-newsletter {
		display: block !important;
		padding-bottom: var(--tm-space-l);
	}

	.the-mohur-footer-newsletter-copy {
		margin-bottom: var(--tm-space-l);
	}

	.the-mohur-newsletter-instagram {
		justify-self: start;
	}

	.the-mohur-footer-grid {
		display: grid !important;
		grid-template-columns: 1fr;
		gap: 0;
		padding-block: var(--tm-space-l);
	}

	.the-mohur-footer-brand {
		max-width: none;
		padding-bottom: var(--tm-space-l);
	}

	.the-mohur-footer-accordion {
		padding-block: var(--tm-space-s);
		border-top: 1px solid var(--tm-color-border);
	}

	.the-mohur-footer-accordion > summary {
		min-height: 2.75rem;
		padding-block: 0.7rem;
		cursor: pointer;
	}

	.the-mohur-footer-links {
		padding-bottom: var(--tm-space-s);
	}

	.the-mohur-footer-legal {
		display: block !important;
	}

	.the-mohur-legal-navigation {
		margin-top: var(--tm-space-s);
	}

	.the-mohur-legal-navigation .wp-block-navigation__container {
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 0.5rem var(--tm-space-m);
	}
}

@media (prefers-reduced-motion: reduce) {
	.the-mohur-newsletter-instagram a span {
		transition: none;
	}
}