/*
 * My Adrenal Life membership visual system.
 * Matches the public myadrenallife.com brand language while keeping the
 * membership/payment markup isolated from theme templates.
 */

:root {
	--mal-ink: #17233b;
	--mal-heading: #273b61;
	--mal-muted: #56657e;
	--mal-cream: #f7f3ea;
	--mal-surface: #ffffff;
	--mal-line: #e6eaf2;
	--mal-purple: #6046a7;
	--mal-purple-dark: #4d3988;
	--mal-green: #b7c982;
	--mal-alert: #243f67;
	--mal-shadow: 0 24px 70px rgba(23, 35, 59, 0.09);
}

body.mal-membership-site {
	background: var(--mal-cream);
	color: var(--mal-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.65;
	overflow-x: hidden;
}

.mal-membership-site *,
.mal-membership-site *::before,
.mal-membership-site *::after {
	box-sizing: border-box;
}

.mal-membership-site a {
	color: var(--mal-purple);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.mal-membership-site a:hover,
.mal-membership-site a:focus-visible {
	color: var(--mal-purple-dark);
}

.mal-crisis-banner {
	align-items: center;
	background: var(--mal-alert);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	font-size: 15px;
	font-weight: 700;
	gap: 4px 6px;
	justify-content: center;
	line-height: 1.35;
	padding: 8px 16px;
	position: relative;
	text-align: center;
	z-index: 100000;
}

.mal-crisis-banner a {
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 0.12em;
	text-underline-offset: 0.18em;
}

.mal-membership-site header.elementor-location-header {
	background: var(--mal-surface);
	border-bottom: 1px solid rgba(230, 234, 242, 0.9);
	box-shadow: 0 10px 30px rgba(23, 35, 59, 0.04);
	position: relative;
	z-index: 20;
}

.mal-membership-site header.elementor-location-header .elementor-sticky--active {
	left: auto !important;
	position: relative !important;
	top: auto !important;
	width: 100% !important;
}

.mal-membership-site header.elementor-location-header .elementor-sticky__spacer {
	display: none !important;
}

.mal-membership-site header.elementor-location-header .e-con {
	background: var(--mal-surface);
	flex-wrap: wrap;
	min-height: 0;
}

.mal-membership-site header.elementor-location-header img {
	height: auto;
	max-height: 96px;
	max-width: 190px;
	object-fit: contain;
}

.mal-membership-site .elementor-nav-menu--main .elementor-nav-menu {
	flex-wrap: wrap;
	gap: 4px 8px;
}

.mal-membership-site .elementor-nav-menu--main .elementor-item {
	border-radius: 999px;
	color: var(--mal-ink) !important;
	font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	padding: 10px 12px !important;
	transition: background-color 160ms ease, color 160ms ease;
}

.mal-membership-site .elementor-nav-menu--main .elementor-item:hover,
.mal-membership-site .elementor-nav-menu--main .elementor-item:focus-visible,
.mal-membership-site .elementor-nav-menu--main .elementor-item.elementor-item-active {
	background: rgba(96, 70, 167, 0.1);
	color: var(--mal-purple-dark) !important;
}

.mal-membership-site .site-main .wp-block-buttons,
.mal-membership-site .site-main .elementor-button-wrapper {
	max-width: 100%;
}

.mal-membership-site .site-main .wp-block-button,
.mal-membership-site .site-main .elementor-widget-button {
	max-width: 100%;
	min-width: 0;
}

.mal-membership-site .site-main .wp-block-button__link,
.mal-membership-site .site-main .elementor-button,
.mal-membership-site .site-main .elementor-button-link,
.mal-membership-site .site-main a.elementor-button,
.mal-membership-site .site-main a[class*="button"],
.mal-membership-site .site-main a[class*="btn"],
.mal-membership-site .site-main a[role="button"],
.mal-membership-site .site-main button,
.mal-membership-site .site-main input[type="submit"] {
	align-items: center;
	box-sizing: border-box;
	display: inline-flex;
	height: auto;
	justify-content: center;
	line-height: 1.25;
	max-width: 100%;
	min-height: 44px;
	min-width: 0;
	overflow-wrap: anywhere;
	padding-left: clamp(16px, 4vw, 24px);
	padding-right: clamp(16px, 4vw, 24px);
	text-align: center;
	vertical-align: middle;
	white-space: normal !important;
	word-break: normal;
}

.mal-membership-site .site-main .elementor-button-content-wrapper,
.mal-membership-site .site-main .elementor-button-text,
.mal-membership-site .site-main .wp-block-button__link span {
	display: inline;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
	white-space: normal !important;
	word-break: normal;
}

@media (max-width: 700px) {
	.mal-membership-site .site-main .wp-block-buttons {
		gap: 12px;
	}

	.mal-membership-site .site-main .wp-block-button__link,
	.mal-membership-site .site-main .elementor-button,
	.mal-membership-site .site-main .elementor-button-link,
	.mal-membership-site .site-main a.elementor-button,
	.mal-membership-site .site-main a[class*="button"],
	.mal-membership-site .site-main a[class*="btn"],
	.mal-membership-site .site-main a[role="button"] {
		max-width: calc(100vw - 48px);
		width: auto !important;
	}
}

.mal-membership-site #content.site-main {
	margin-left: auto;
	margin-right: auto;
	max-width: 1160px;
	padding: clamp(36px, 6vw, 76px) 20px;
}

.mal-membership-site .site-main .page-content {
	background: var(--mal-surface);
	border: 1px solid rgba(230, 234, 242, 0.95);
	border-radius: 8px;
	box-shadow: var(--mal-shadow);
	margin: 0 auto;
	max-width: 1040px;
	padding: clamp(28px, 5vw, 58px);
}

.mal-membership-site .site-main .page-content > :first-child {
	margin-top: 0;
}

.mal-membership-site .site-main .page-content > :last-child {
	margin-bottom: 0;
}

.mal-podcast-lazy-player {
	margin: 12px 0 20px;
	max-width: 760px;
	width: 100%;
}

.mal-podcast-load-button {
	align-items: center;
	background: linear-gradient(180deg, #fff 0%, #fbfaf6 100%) !important;
	border: 1px solid rgba(96, 70, 167, 0.28) !important;
	border-radius: 8px !important;
	box-shadow: 0 12px 34px rgba(23, 35, 59, 0.08);
	color: var(--mal-heading) !important;
	cursor: pointer;
	display: grid !important;
	gap: 2px;
	justify-items: start;
	max-width: 100%;
	min-height: 58px;
	padding: 12px 16px !important;
	text-align: left !important;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
	width: 100% !important;
}

.mal-podcast-load-button:hover,
.mal-podcast-load-button:focus-visible {
	border-color: rgba(96, 70, 167, 0.58) !important;
	box-shadow: 0 16px 42px rgba(23, 35, 59, 0.11);
	color: var(--mal-purple-dark) !important;
	transform: translateY(-1px);
}

.mal-podcast-load-button:disabled {
	cursor: wait;
	opacity: 0.74;
	transform: none;
}

.mal-podcast-load-label {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
}

.mal-podcast-load-hint,
.mal-podcast-player-status {
	color: var(--mal-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.mal-podcast-player-status {
	margin-top: 8px;
	min-height: 18px;
}

.mal-podcast-player-frame {
	margin-top: 10px;
}

.mal-podcast-player-frame audio {
	display: block;
	max-width: 100%;
	width: 100%;
}

.mal-podcast-lazy-player.is-loaded .mal-podcast-load-button {
	display: none !important;
}

.mal-membership-site .site-main .page-content > h1:first-child,
.mal-membership-site .site-main .page-content > h2.wp-block-heading:first-child,
.mal-membership-site .mal-membership-account h2 {
	color: var(--mal-heading);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(34px, 4.2vw, 52px);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.12;
	margin-bottom: 18px;
}

.mal-membership-site h2,
.mal-membership-site h3,
.mal-membership-site h4 {
	color: var(--mal-heading);
	letter-spacing: 0;
}

.mal-membership-site h2 {
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.25;
}

.mal-membership-site h3 {
	font-size: clamp(21px, 2vw, 26px);
	line-height: 1.3;
}

.mal-membership-site .wp-block-paragraph,
.mal-membership-site .mal-membership-checkout,
.mal-membership-site .mal-membership-register,
.mal-membership-site .mal-membership-login,
.mal-membership-site .mal-membership-account {
	color: var(--mal-ink);
	font-size: 17px;
	line-height: 1.68;
}

.mal-membership-checkout,
.mal-membership-register,
.mal-membership-login,
.mal-membership-account {
	margin-top: 24px;
	max-width: 760px;
}

.mal-membership-checkout > p:first-child,
.mal-membership-account,
.mal-membership-login,
.mal-membership-register {
	background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
	border: 1px solid rgba(230, 234, 242, 0.95);
	border-radius: 8px;
	box-shadow: 0 16px 42px rgba(23, 35, 59, 0.07);
}

.mal-membership-checkout > p:first-child {
	align-items: center;
	color: var(--mal-heading);
	display: flex;
	flex-wrap: wrap;
	font-weight: 700;
	gap: 8px;
	justify-content: space-between;
	margin: 0 0 18px;
	padding: 16px 18px;
}

.mal-membership-checkout > p:first-child strong {
	background: rgba(183, 201, 130, 0.22);
	border: 1px solid rgba(183, 201, 130, 0.5);
	border-radius: 999px;
	color: var(--mal-heading);
	display: inline-block;
	padding: 4px 12px;
	white-space: nowrap;
}

#mal-paypal-messages {
	color: var(--mal-purple-dark);
	font-weight: 700;
	margin: 8px 0 12px;
	min-height: 1.4em;
}

#mal-paypal-buttons {
	max-width: 760px;
}

.mal-membership-register,
.mal-membership-login,
.mal-membership-account {
	padding: clamp(22px, 4vw, 34px);
}

.mal-membership-register form,
.mal-membership-login form {
	display: grid;
	gap: 16px;
	margin-top: 20px;
}

.mal-membership-register form p,
.mal-membership-login form p,
.mal-membership-account p {
	margin: 0;
}

.mal-membership-register label,
.mal-membership-login label {
	color: var(--mal-heading);
	display: block;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	margin-bottom: 6px;
}

.mal-membership-register input[type="text"],
.mal-membership-register input[type="email"],
.mal-membership-register input[type="password"],
.mal-membership-login input[type="text"],
.mal-membership-login input[type="password"] {
	background: #fff;
	border: 1px solid rgba(39, 59, 97, 0.22);
	border-radius: 8px;
	color: var(--mal-ink);
	font: inherit;
	min-height: 48px;
	padding: 10px 12px;
	width: 100%;
}

.mal-membership-register input:focus,
.mal-membership-login input:focus {
	border-color: var(--mal-purple);
	box-shadow: 0 0 0 3px rgba(96, 70, 167, 0.18);
	outline: none;
}

.mal-membership-register button,
.mal-membership-login button,
.mal-membership-account .button {
	align-items: center;
	background: var(--mal-purple);
	border: 1px solid var(--mal-purple);
	border-radius: 999px;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex;
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	font-size: 15px;
	font-weight: 800;
	justify-content: center;
	min-height: 46px;
	padding: 11px 22px;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.mal-membership-register button:hover,
.mal-membership-register button:focus-visible,
.mal-membership-login button:hover,
.mal-membership-login button:focus-visible,
.mal-membership-account .button:hover,
.mal-membership-account .button:focus-visible {
	background: var(--mal-purple-dark);
	border-color: var(--mal-purple-dark);
	transform: translateY(-1px);
}

.mal-membership-site .site-main strong {
	color: var(--mal-heading);
	font-weight: 800;
}

.mal-membership-site .elementor-nav-menu--dropdown {
	background: var(--mal-surface) !important;
	border: 1px solid var(--mal-line);
	box-shadow: 0 20px 48px rgba(23, 35, 59, 0.12);
}

.mal-page-quicknav,
.mal-resource-search {
	background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
	border: 1px solid rgba(230, 234, 242, 0.95);
	border-radius: 8px;
	box-shadow: 0 14px 36px rgba(23, 35, 59, 0.06);
	margin: 22px 0 30px;
	padding: clamp(16px, 3vw, 22px);
}

.mal-page-quicknav-title,
.mal-resource-search label,
.mal-account-eyebrow {
	color: var(--mal-muted);
	display: block;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
	line-height: 1.2;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.mal-page-quicknav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mal-page-quicknav-links a,
.mal-membership-account .button.secondary {
	background: rgba(96, 70, 167, 0.08);
	border: 1px solid rgba(96, 70, 167, 0.24);
	border-radius: 999px;
	color: var(--mal-purple-dark) !important;
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
	padding: 9px 14px;
	text-decoration: none;
}

.mal-page-quicknav-links a:hover,
.mal-page-quicknav-links a:focus-visible,
.mal-membership-account .button.secondary:hover,
.mal-membership-account .button.secondary:focus-visible {
	background: rgba(96, 70, 167, 0.14);
	border-color: rgba(96, 70, 167, 0.38);
}

.mal-learning-anchor-heading,
.mal-tool-anchor-heading,
.mal-section-anchor-heading {
	scroll-margin-top: 120px;
}

.mal-redundant-heading {
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.mal-table-scroll {
	margin: 18px 0;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.mal-table-scroll table {
	margin: 0;
	min-width: 620px;
}

.mal-resource-search {
	display: grid;
	gap: 10px;
}

.mal-resource-search input[type="search"] {
	background: #fff;
	border: 1px solid rgba(39, 59, 97, 0.22);
	border-radius: 8px;
	color: var(--mal-ink);
	font: inherit;
	min-height: 48px;
	padding: 10px 12px;
	width: 100%;
}

.mal-resource-search input[type="search"]:focus {
	border-color: var(--mal-purple);
	box-shadow: 0 0 0 3px rgba(96, 70, 167, 0.18);
	outline: none;
}

.mal-resource-search-status {
	color: var(--mal-muted);
	font-size: 14px;
	font-weight: 700;
	margin: 0;
	min-height: 1.4em;
}

.mal-resource-list {
	display: grid;
	gap: 12px;
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

.mal-resource-item {
	background: #fff;
	border: 1px solid rgba(230, 234, 242, 0.95);
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(23, 35, 59, 0.05);
	list-style: none;
	margin: 0;
	padding: 14px 16px;
}

.mal-resource-link {
	color: var(--mal-heading) !important;
	font-weight: 800;
	overflow-wrap: anywhere;
	text-decoration-thickness: 0.07em;
}

.mal-account-header {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 22px;
}

.mal-membership-site .mal-membership-account .mal-account-header h2 {
	font-size: clamp(30px, 3.4vw, 44px);
	margin: 0 0 8px;
}

.mal-account-name {
	color: var(--mal-muted);
	font-weight: 800;
}

.mal-account-status-badge {
	background: rgba(183, 201, 130, 0.22);
	border: 1px solid rgba(183, 201, 130, 0.58);
	border-radius: 999px;
	color: var(--mal-heading);
	display: inline-flex;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.2;
	padding: 9px 13px;
	white-space: nowrap;
}

.mal-membership-account.is-inactive .mal-account-status-badge {
	background: rgba(179, 45, 46, 0.08);
	border-color: rgba(179, 45, 46, 0.22);
	color: #8a1f20;
}

.mal-account-summary {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 20px;
}

.mal-account-summary > div {
	background: #fff;
	border: 1px solid rgba(230, 234, 242, 0.95);
	border-radius: 8px;
	padding: 14px;
}

.mal-account-summary span {
	color: var(--mal-muted);
	display: block;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.06em;
	line-height: 1.2;
	margin-bottom: 7px;
	text-transform: uppercase;
}

.mal-account-summary strong {
	display: block;
	font-size: 15px;
	line-height: 1.35;
}

.mal-account-note,
.mal-account-help {
	color: var(--mal-muted);
}

.mal-account-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 0;
}

.mal-account-help {
	border-top: 1px solid rgba(230, 234, 242, 0.95);
	font-size: 15px;
	margin-top: 20px !important;
	padding-top: 16px;
}

@media (max-width: 900px) {
	.mal-membership-site header.elementor-location-header img {
		max-height: 82px;
		max-width: 170px;
	}

	.mal-membership-site #content.site-main {
		padding-top: 30px;
	}
}

@media (max-width: 700px) {
	body.mal-membership-site {
		font-size: 16px;
	}

	.mal-crisis-banner {
		font-size: 14px;
		padding: 8px 12px;
	}

	.mal-membership-site .site-main .page-content {
		padding: 24px 18px;
	}

	.mal-membership-checkout,
	.mal-membership-register,
	.mal-membership-login,
	.mal-membership-account {
		max-width: none;
	}

	.mal-membership-checkout > p:first-child {
		align-items: flex-start;
		flex-direction: column;
	}

	.mal-account-header {
		flex-direction: column;
	}

	.mal-account-summary {
		grid-template-columns: 1fr;
	}

	.mal-account-actions .button,
	.mal-account-actions .button.secondary {
		width: 100%;
	}

	.mal-page-quicknav-links {
		display: grid;
		grid-template-columns: 1fr;
	}

	.mal-page-quicknav-links a {
		justify-content: center;
	}

	.mal-resource-item {
		padding: 13px 14px;
	}
}
