/* Muse AI full-page invite — shapes.gallery form + Arts & Culture lightbox */

.md-cover__card {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.md-cover__card:focus-visible {
	outline: 2px solid rgba(95, 143, 150, 0.55);
	outline-offset: 3px;
}

.md-ai-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	overflow: auto;
}

.md-ai-modal::backdrop {
	background: rgba(12, 16, 18, 0.72);
	backdrop-filter: blur(18px) saturate(1.1);
	-webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.md-ai-modal[open] {
	display: grid;
	place-items: center;
	animation: mdAiFadeIn 0.28s ease;
}

.md-ai-modal__close {
	position: fixed;
	top: max(16px, env(safe-area-inset-top));
	right: max(16px, env(safe-area-inset-right));
	z-index: 3;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #fff;
	cursor: pointer;
}

.md-ai-modal__close .md-ico,
.md-ai-modal__close iconify-icon {
	color: #fff;
}

.md-ai-modal__stage {
	position: relative;
	z-index: 1;
	width: min(100% - 32px, 440px);
	margin: 28px auto;
	padding: 20px 16px 28px;
	text-align: center;
}

.md-ai-modal__defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.md-ai-modal__blob {
	position: absolute;
	pointer-events: none;
	filter: blur(2px);
	opacity: 0.55;
}

.md-ai-modal__blob--a {
	width: 120px;
	height: 120px;
	left: -8%;
	top: 8%;
	background: rgba(201, 187, 90, 0.35);
	clip-path: path("M0.55 0 C0.78 0.02 0.95 0.18 0.98 0.4 C1.02 0.62 0.9 0.82 0.7 0.92 C0.5 1.02 0.26 0.98 0.12 0.82 C-0.02 0.66 -0.02 0.42 0.1 0.24 C0.22 0.06 0.38 -0.02 0.55 0 Z");
	clip-path: url(#md-ai-shape-clip);
	border-radius: 42% 58% 48% 52% / 42% 40% 60% 58%;
}

.md-ai-modal__blob--b {
	width: 100px;
	height: 100px;
	right: -4%;
	top: 28%;
	background: rgba(120, 176, 186, 0.4);
	border-radius: 58% 42% 55% 45% / 48% 62% 38% 52%;
}

.md-ai-modal__blob--c {
	width: 110px;
	height: 84px;
	left: 18%;
	bottom: 22%;
	background: rgba(168, 198, 204, 0.32);
	border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%;
}

.md-ai-modal__figure {
	position: relative;
	z-index: 1;
	width: min(52vw, 168px);
	aspect-ratio: 1;
	margin: 0 auto 14px;
}

.md-ai-modal__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	clip-path: url(#md-ai-shape-clip);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.md-ai-modal__frame {
	position: absolute;
	inset: -6%;
	width: 112%;
	height: 112%;
	pointer-events: none;
	opacity: 0.9;
}

.md-ai-modal__copy {
	position: relative;
	z-index: 1;
}

.md-ai-modal__kicker {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

.md-ai-modal__title {
	margin: 0 0 10px;
	font-size: clamp(1.45rem, 1.1rem + 1.6vw, 1.85rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
	color: #fff;
}

.md-ai-modal__lead {
	margin: 0 auto 12px;
	max-width: 32ch;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.82);
}

.md-ai-modal__points {
	list-style: none;
	margin: 0 auto 16px;
	padding: 0;
	max-width: 36ch;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.md-ai-modal__points li {
	position: relative;
	padding-left: 22px;
	font-size: 13px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.88);
}

.md-ai-modal__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #c9bb5a;
	box-shadow: 0 0 0 3px rgba(201, 187, 90, 0.22);
}

.md-ai-modal__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.md-ai-modal__store {
	height: 44px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 16px;
	border-radius: var(--r-btn, 12px);
	background: #fff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.md-ai-modal__store .md-ico,
.md-ai-modal__store iconify-icon {
	color: currentColor;
}

.md-ai-modal__store:hover {
	transform: translateY(-1px);
}

@keyframes mdAiFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

body.md-ai-modal-open {
	overflow: hidden;
}

@media (min-width: 720px) {
	.md-ai-modal__stage {
		width: min(100% - 48px, 520px);
		margin: 48px auto;
		padding: 36px 28px 40px;
	}

	.md-ai-modal__figure {
		width: 300px;
		margin-bottom: 22px;
	}

	.md-ai-modal__lead {
		margin-bottom: 16px;
		font-size: 15px;
		line-height: 1.5;
	}

	.md-ai-modal__points {
		margin-bottom: 22px;
		gap: 10px;
	}

	.md-ai-modal__points li {
		font-size: 13.5px;
		line-height: 1.45;
	}

	.md-ai-modal__blob--a {
		width: 180px;
		height: 180px;
	}

	.md-ai-modal__blob--b {
		width: 140px;
		height: 140px;
	}

	.md-ai-modal__blob--c {
		width: 160px;
		height: 120px;
	}
}

@media (max-height: 700px) and (max-width: 719px) {
	.md-ai-modal__figure {
		width: min(42vw, 132px);
		margin-bottom: 10px;
	}

	.md-ai-modal__points li:nth-child(n + 3) {
		display: none;
	}

	.md-ai-modal__stage {
		margin: 16px auto;
		padding: 16px 14px 22px;
	}
}
