/**
 * Homepage Membership section — presentation only.
 *
 * Loaded on the front page only. Every rule is scoped to the membership
 * shortcode rendered directly inside an Elementor shortcode widget on the
 * home page, so the standalone Membership Plans page and the member
 * dashboard keep the plugin's own styling.
 *
 * The plugin's dashboard variant sets `max-width: 100%`, and the homepage
 * section is an Elementor atomic flexbox without a boxed content width, so
 * the content cap is applied here to match the other homepage sections.
 *
 * @package ExpertMatrimony
 */

body.home .elementor-shortcode > .em-mp--dashboard {
	--emt-mp-line: #eee7df;
	--emt-mp-ink: #1e293b;
	--emt-mp-body: #475569;
	--emt-mp-muted: #6b7280;
	--emt-mp-ivory: #fffaf3;
	--emt-mp-gold-line: rgba(212, 160, 23, 0.35);
	width: min(1140px, 100% - 2 * var(--emt-gutter, 32px));
	max-width: none;
	margin-inline: auto;
	padding: 0 0 clamp(1.75rem, 4vw, 2.75rem);
	color: var(--emt-mp-ink);
	font-family: var(--emt-font-ui, "Poppins", system-ui, sans-serif);
}

/* Intro */
body.home .elementor-shortcode > .em-mp--dashboard .em-mp__intro {
	max-width: 760px;
	margin: clamp(0.75rem, 2vw, 1.25rem) auto clamp(1.75rem, 3.5vw, 2.5rem);
	padding: 0;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__intro-title {
	margin: 0 0 0.6rem;
	font-family: inherit;
	font-size: clamp(1.556rem, 1.15rem + 1.5vw, 2.222rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--emt-headline-red, #ca1c1c);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__intro-sub {
	margin: 0 0 1rem;
	font-size: 0.944rem;
	line-height: 1.6;
	color: #222222;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__intro-points {
	gap: 0.5rem 1.5rem;
	font-size: 0.833rem;
	font-weight: 500;
	color: var(--emt-mp-body);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__intro-points span {
	margin-right: 0.3rem;
	color: var(--emt-success, #15803d);
	font-weight: 700;
}

/* Section headings */
body.home .elementor-shortcode > .em-mp--dashboard .em-mp__section-title {
	margin: 0 0 1.25rem;
	font-family: inherit;
	font-size: clamp(1.222rem, 1rem + 0.6vw, 1.444rem);
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	color: var(--emt-mp-ink);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__mia-info,
body.home .elementor-shortcode > .em-mp--dashboard .em-mp__why,
body.home .elementor-shortcode > .em-mp--dashboard .em-mp__choose,
body.home .elementor-shortcode > .em-mp--dashboard .em-mp__benefits {
	margin: 0 auto clamp(2.25rem, 4.5vw, 3.25rem);
}

/* MIA card */
body.home .elementor-shortcode > .em-mp--dashboard .em-mp__mia-info {
	max-width: 760px;
	padding: 1.5rem clamp(1.25rem, 3vw, 2.25rem) 1.6rem;
	border: 1px solid var(--emt-mp-gold-line);
	border-radius: 16px;
	background: var(--emt-mp-ivory);
	box-shadow: none;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__mia-info-head {
	margin-bottom: 0.6rem;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__mia-info .em-mp__section-title {
	font-size: 1.111rem;
	color: var(--emt-primary, #7a1f3d);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__mia-copy {
	margin: 0 auto 0.35rem;
	max-width: 600px;
	font-size: 0.833rem;
	line-height: 1.65;
	color: var(--emt-mp-body);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__mia-highlight {
	margin: 0.75rem 0 0;
	font-size: 0.889rem;
	font-weight: 600;
	color: var(--emt-primary, #7a1f3d);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__mia-info-actions {
	margin-top: 1.1rem;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__mia-info .em-mp__btn {
	min-height: 46px;
	font-family: inherit;
	font-size: 0.833rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

/* Why Membership */
body.home .elementor-shortcode > .em-mp--dashboard .em-mp__why-grid {
	gap: 1rem;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__why-card {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	column-gap: 0.9rem;
	align-content: start;
	padding: 1.25rem 1.35rem;
	border: 1px solid var(--emt-mp-line);
	border-radius: 14px;
	background: #ffffff;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__why-icon {
	grid-row: 1 / span 2;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	border-radius: 12px;
	background: var(--emt-primary-tint, #f8eef1);
	color: var(--emt-primary, #7a1f3d);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__why-icon svg {
	width: 20px;
	height: 20px;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__why-card strong {
	margin: 0.1rem 0 0.3rem;
	font-size: 0.889rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--emt-mp-ink);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__why-card p {
	font-size: 0.778rem;
	line-height: 1.6;
	color: var(--emt-mp-muted);
}

/* Plan cards */
body.home .elementor-shortcode > .em-mp--dashboard .em-mp__cards {
	gap: 1.25rem;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__card {
	padding: 1.6rem 1.35rem 1.4rem;
	border: 1px solid var(--emt-mp-line);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(30, 41, 59, 0.04), 0 8px 24px rgba(30, 41, 59, 0.05);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__card.is-featured {
	padding: 1.55rem 1.3rem 1.35rem;
	border: 2px solid var(--emt-gold-border, #d4a017);
	box-shadow: 0 1px 2px rgba(30, 41, 59, 0.04), 0 12px 32px rgba(212, 160, 23, 0.16);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__badge {
	margin-bottom: 1rem;
	padding: 0.3rem 0.85rem;
	font-size: 0.667rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__icon {
	width: 48px;
	height: 48px;
	margin-bottom: 0.85rem;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__icon svg {
	width: 22px;
	height: 22px;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__name {
	margin: 0 0 0.35rem;
	font-family: inherit;
	font-size: 1.111rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--emt-mp-ink);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__desc {
	min-height: 3.2em;
	margin: 0 0 1rem;
	font-size: 0.778rem;
	line-height: 1.6;
	color: var(--emt-mp-muted);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__price-block {
	justify-content: center;
	gap: 0.3rem;
	min-height: 7.5rem;
	margin-bottom: 1.1rem;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__old-price {
	font-size: 0.778rem;
	color: #9ca3af;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__price {
	font-family: inherit;
	font-size: clamp(1.778rem, 1.4rem + 0.8vw, 2.111rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__save {
	margin-top: 0.1rem;
	padding: 0.2rem 0.7rem;
	font-size: 0.722rem;
	font-weight: 600;
	color: var(--emt-success, #15803d);
	background: var(--emt-success-bg, #ecfdf3);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__note {
	margin-top: 0.1rem;
	font-size: 0.722rem;
	font-weight: 500;
	line-height: 1.45;
	color: var(--emt-mp-muted);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__features {
	margin: 0 0 1.25rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--emt-mp-line);
	font-size: 0.778rem;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__features li {
	gap: 0.55rem;
	margin: 0 0 0.55rem;
	font-size: 0.778rem;
	line-height: 1.55;
	color: var(--emt-mp-body);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__features li:last-child {
	margin-bottom: 0;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__card .em-mp__btn {
	min-height: 48px;
	font-family: inherit;
	font-size: 0.833rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

/* Comparison table */
body.home .elementor-shortcode > .em-mp--dashboard .em-mp__compare-wrap {
	margin: 0 0 clamp(2rem, 4vw, 2.75rem);
	border: 1px solid var(--emt-mp-line);
	border-radius: 16px;
	overscroll-behavior-x: contain;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__compare-table {
	table-layout: fixed;
	font-size: 0.833rem;
	line-height: 1.45;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__compare-table th,
body.home .elementor-shortcode > .em-mp--dashboard .em-mp__compare-table td {
	padding: 0.9rem 1rem;
	border-bottom: 1px solid #f1ece6;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__compare-table tbody tr:last-child th,
body.home .elementor-shortcode > .em-mp--dashboard .em-mp__compare-table tbody tr:last-child td {
	border-bottom: 0;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__compare-table thead th {
	padding-top: 1.05rem;
	padding-bottom: 1.05rem;
	border-bottom: 1px solid var(--emt-mp-line);
	background: var(--emt-mp-ivory);
	font-size: 0.833rem;
	font-weight: 600;
	color: var(--emt-mp-ink);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__compare-table thead th:first-child {
	width: 32%;
	padding-left: 1.35rem;
	text-align: left;
	font-size: 0.722rem;
	letter-spacing: 0.08em;
	color: var(--emt-mp-muted);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__compare-table tbody th {
	padding-left: 1.35rem;
	font-weight: 500;
	color: var(--emt-mp-ink);
	white-space: normal;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__compare-table .is-featured {
	background: rgba(212, 160, 23, 0.06);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__compare-table thead .is-featured {
	background: rgba(212, 160, 23, 0.14);
	color: var(--emt-primary, #7a1f3d);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__yes {
	color: var(--emt-success, #15803d);
	font-weight: 700;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__no {
	color: #b8bec8;
	font-weight: 600;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__text {
	font-weight: 500;
	color: var(--emt-mp-body);
}

/* Assurance strip */
body.home .elementor-shortcode > .em-mp--dashboard .em-mp__trust {
	margin: 0;
	border: 1px solid var(--emt-mp-line);
	border-radius: 16px;
	background: var(--emt-mp-ivory);
	box-shadow: none;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__trust-item {
	gap: 0.85rem;
	padding: 1.15rem 1.35rem;
	border-color: var(--emt-mp-line);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__trust-ico {
	width: 2.25rem;
	height: 2.25rem;
	color: var(--emt-primary, #7a1f3d);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__trust-ico svg {
	width: 24px;
	height: 24px;
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__trust-title {
	font-size: 0.833rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--emt-mp-ink);
}

body.home .elementor-shortcode > .em-mp--dashboard .em-mp__trust-sub {
	margin-top: 0.2rem;
	font-size: 0.722rem;
	line-height: 1.45;
	color: var(--emt-mp-muted);
}

@media (min-width: 1101px) {
	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__desc {
		min-height: 4.8em;
	}
}

@media (max-width: 1100px) {
	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__trust-item:nth-child(1),
	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__trust-item:nth-child(2) {
		border-bottom-color: var(--emt-mp-line);
	}
}

@media (max-width: 900px) {
	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__why-grid {
		max-width: 560px;
		margin-inline: auto;
	}
}

@media (max-width: 720px) {
	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__desc,
	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__price-block {
		min-height: 0;
	}

	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__mia-info {
		padding: 1.25rem 1.1rem 1.35rem;
	}

	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__compare-table thead th:first-child,
	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__compare-table tbody th {
		position: sticky;
		left: 0;
		z-index: 1;
		padding-left: 1rem;
		background: #ffffff;
		box-shadow: inset -1px 0 0 var(--emt-mp-line), inset 0 -1px 0 #f1ece6;
	}

	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__compare-table thead th:first-child {
		width: 9rem;
		background: var(--emt-mp-ivory);
		box-shadow: inset -1px 0 0 var(--emt-mp-line), inset 0 -1px 0 var(--emt-mp-line);
	}

	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__compare-table tbody tr:last-child th {
		box-shadow: inset -1px 0 0 var(--emt-mp-line);
	}
}

@media (max-width: 480px) {
	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__card {
		padding: 1.35rem 1.1rem 1.2rem;
	}

	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__card.is-featured {
		padding: 1.3rem 1.05rem 1.15rem;
	}

	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__price {
		font-size: 1.778rem;
	}

	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__trust-item {
		padding: 1rem 1.1rem;
	}

	body.home .elementor-shortcode > .em-mp--dashboard .em-mp__why-card {
		padding: 1.1rem 1.1rem;
	}
}
