/* Moodfex Birth Chart Calculator — matches the mfx-* design language. */
.mfx-bc {
	--bc-bg: #ffffff;
	--bc-soft: #edf2e9;
	--bc-text: #20241f;
	--bc-muted: #687066;
	--bc-green: #52644d;
	--bc-green-dark: #34412f;
	--bc-gold: #aa8f58;
	--bc-line: #e1e6dd;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	color: var(--bc-text);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	line-height: 1.6;
}

.mfx-bc *,
.mfx-bc *::before,
.mfx-bc *::after {
	box-sizing: border-box;
}

/* The HTML [hidden] attribute must win over the widget's display rules. */
.mfx-bc [hidden] {
	display: none !important;
}

.mfx-bc__card {
	background: var(--bc-bg);
	border: 1px solid var(--bc-line);
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 12px 32px rgba(40, 50, 38, 0.06);
}

.mfx-bc__title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	line-height: 1.2;
	margin: 0 0 8px;
}

.mfx-bc__lead {
	margin: 0 0 22px;
	color: var(--bc-muted);
	font-size: 1.02rem;
}

.mfx-bc__field {
	margin-bottom: 16px;
	min-width: 0;
}

.mfx-bc__row {
	display: flex;
	gap: 14px;
}

.mfx-bc__row .mfx-bc__field {
	flex: 1 1 0;
}

.mfx-bc__label {
	display: block;
	font-weight: 700;
	font-size: 0.92rem;
	margin-bottom: 8px;
}

.mfx-bc__opt {
	font-weight: 400;
	color: var(--bc-muted);
}

.mfx-bc__input {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	padding: 13px 15px;
	font-size: 16px;
	font-family: inherit;
	text-align: left;
	color: var(--bc-text);
	background: #fbfcfa;
	border: 1px solid #cad5c5;
	border-radius: 12px;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mfx-bc__input:focus {
	outline: none;
	border-color: var(--bc-green);
	box-shadow: 0 0 0 3px rgba(82, 100, 77, 0.18);
}

.mfx-bc__input:disabled {
	opacity: 0.5;
	background: #f0f0ec;
}

.mfx-bc__input::-webkit-date-and-time-value {
	text-align: left;
	margin: 0;
}

.mfx-bc__check {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 10px;
	font-size: 0.92rem;
	color: var(--bc-muted);
	cursor: pointer;
	min-height: 44px;
}

.mfx-bc__check input {
	width: 20px;
	height: 20px;
	accent-color: var(--bc-green);
}

.mfx-bc__error {
	margin: 4px 0 0;
	min-height: 1.2em;
	color: #a8452f;
	font-size: 0.9rem;
	font-weight: 600;
}

.mfx-bc__error:empty {
	min-height: 0;
	margin: 0;
}

.mfx-bc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 18px 0 14px;
}

.mfx-bc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 13px 22px;
	font-size: 0.98rem;
	font-family: inherit;
	font-weight: 800;
	border-radius: 999px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mfx-bc__btn:focus-visible {
	outline: 3px solid rgba(82, 100, 77, 0.45);
	outline-offset: 2px;
}

.mfx-bc__btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.mfx-bc__btn--primary {
	background: var(--bc-green-dark);
	color: #ffffff;
}

.mfx-bc__btn--primary:hover {
	background: #2a3527;
}

.mfx-bc__btn--ghost {
	background: #ffffff;
	color: var(--bc-green-dark);
	border-color: #cad5c5;
}

.mfx-bc__btn--ghost:hover {
	background: var(--bc-soft);
}

.mfx-bc__privacy {
	margin: 0;
	font-size: 0.84rem;
	color: var(--bc-muted);
}

/* ---- Result ---- */
.mfx-bc__result {
	margin-top: 24px;
	text-align: center;
}

.mfx-bc-reading {
	margin: 0 auto 30px;
	max-width: 760px;
	text-align: left;
	color: var(--bc-text);
}

.mfx-bc-reading__eyebrow {
	margin: 0 0 7px;
	color: var(--bc-gold);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.mfx-bc-reading > h3 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.65rem, 4vw, 2.3rem);
	font-weight: 500;
	line-height: 1.15;
}

.mfx-bc-reading__intro {
	margin: 14px 0 12px;
	color: #3f473e;
	font-size: 1rem;
	line-height: 1.75;
}

.mfx-bc-reading__mode {
	margin: 0;
	padding: 12px 14px;
	border-left: 3px solid var(--bc-gold);
	background: #f7f5ef;
	color: var(--bc-muted);
	font-size: 0.88rem;
	line-height: 1.55;
}

.mfx-bc-reading__section {
	margin-top: 30px;
}

.mfx-bc-reading__section > h4 {
	margin: 0 0 8px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.25rem, 3vw, 1.55rem);
	font-weight: 500;
	line-height: 1.25;
}

.mfx-bc-reading__lead {
	margin: 0 0 14px;
	color: var(--bc-muted);
	font-size: 0.94rem;
	line-height: 1.7;
}

.mfx-bc-reading__item {
	margin-top: 10px;
	overflow: hidden;
	border: 1px solid var(--bc-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 5px 16px rgba(40, 50, 38, 0.035);
}

.mfx-bc-reading__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: 13px 42px 13px 16px;
	position: relative;
	cursor: pointer;
	list-style: none;
}

.mfx-bc-reading__item summary::-webkit-details-marker { display: none; }

.mfx-bc-reading__item summary::after {
	content: "+";
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--bc-green);
	font-size: 1.25rem;
	font-weight: 400;
}

.mfx-bc-reading__item[open] summary::after { content: "−"; }
.mfx-bc-reading__item[open] summary { background: var(--bc-soft); }

.mfx-bc-reading__item-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.05rem;
	font-weight: 600;
}

.mfx-bc-reading__meta {
	flex: 0 0 auto;
	color: var(--bc-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.mfx-bc-reading__item-body {
	padding: 5px 18px 18px;
	color: #40483f;
	font-size: 0.95rem;
	line-height: 1.75;
}

.mfx-bc-reading__item-body p { margin: 13px 0 0; }

.mfx-bc-reading__closing {
	margin: 30px 0 0;
	padding: 20px;
	border-radius: 14px;
	background: var(--bc-green-dark);
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.02rem;
	line-height: 1.7;
}

/* "Your Five Essentials" — always-expanded highlight reading, shown first. */
.mfx-bc-top5 {
	margin: 0 auto 34px;
	max-width: 760px;
	text-align: left;
}

.mfx-bc-top5__eyebrow {
	margin: 0 0 7px;
	color: var(--bc-gold);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.mfx-bc-top5 > h3 {
	margin: 0 0 20px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.65rem, 4vw, 2.3rem);
	font-weight: 500;
	line-height: 1.15;
}

.mfx-bc-top5__item {
	position: relative;
	margin-top: 16px;
	padding: 24px 24px 22px;
	border: 1px solid var(--bc-line);
	border-radius: 16px;
	background: linear-gradient(180deg, #fff 0%, #fbfaf6 100%);
	box-shadow: 0 10px 28px rgba(40, 50, 38, 0.06);
}

.mfx-bc-top5__item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 24px;
	right: 24px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: linear-gradient(90deg, transparent, var(--bc-gold), transparent);
}

.mfx-bc-top5__item > h4 {
	margin: 0 0 10px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.22rem;
	font-weight: 600;
	color: var(--bc-green-dark);
}

.mfx-bc-top5__item p {
	margin: 0;
	color: #40483f;
	font-size: 0.98rem;
	line-height: 1.8;
}

.mfx-bc-top5__item p + p {
	margin-top: 13px;
}

.mfx-bc-top5__hook {
	margin: 20px 0 0;
	padding: 20px 22px;
	border-radius: 14px;
	background: var(--bc-green-dark);
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-size: 1.04rem;
	line-height: 1.7;
}

.mfx-bc__share-hint {
	flex-basis: 100%;
	margin: 0 0 4px;
	color: var(--bc-muted);
	font-size: 0.92rem;
	line-height: 1.6;
}

.mfx-bc__timenote {
	margin: 0 auto 16px;
	max-width: 460px;
	padding: 10px 14px;
	font-size: 0.88rem;
	color: var(--bc-green-dark);
	background: var(--bc-soft);
	border-radius: 12px;
}

.mfx-bc__preview {
	width: 100%;
	max-width: 340px;
	margin: 0 auto;
}

.mfx-bc__preview-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 9 / 16;
	border: 1px solid var(--bc-line);
	border-radius: 18px;
	background: var(--bc-soft);
	color: var(--bc-muted);
	font-size: 0.92rem;
}

.mfx-bc__card-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
	border: 1px solid var(--bc-line);
	box-shadow: 0 14px 36px rgba(40, 50, 38, 0.12);
}

.mfx-bc__share {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 18px;
}

.mfx-bc__share .mfx-bc__btn {
	min-width: 180px;
}

.mfx-bc__share-status {
	flex-basis: 100%;
	margin: 4px 0 0;
	min-height: 1.1em;
	font-size: 0.88rem;
	color: var(--bc-muted);
}

.mfx-bc__share-status:empty {
	min-height: 0;
}

.mfx-bc-reading__takeaways {
	margin: 12px 0 0;
	padding-left: 1.25rem;
	display: grid;
	gap: 8px;
	color: var(--bc-text);
}

.mfx-bc-reading__takeaways li::marker {
	color: var(--bc-accent);
}

/* ---- Embedded into the page's calculator box ---- */
.mfx-calculator.mfx-calc-hydrated {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	display: block;
	place-items: initial;
	text-align: left;
}

.mfx-bc--embedded {
	max-width: none;
}

.mfx-bc--embedded .mfx-bc__card {
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
}

.mfx-bc--embedded .mfx-bc__title {
	display: none;
}

/* ---- Fix the page's calculator grid overflow on tablet/mobile ---- */
@media ( max-width: 800px ) {
	.mfx-grid {
		grid-template-columns: 1fr !important;
	}
	.mfx-grid > .mfx-box {
		min-width: 0 !important;
		max-width: 100% !important;
		width: auto !important;
	}
}

@media ( max-width: 600px ) {
	.mfx-bc__card {
		padding: 20px;
	}
	.mfx-bc--embedded .mfx-bc__card {
		padding: 0;
	}
	.mfx-bc__row {
		flex-direction: column;
		gap: 0;
	}
	.mfx-bc__btn {
		width: 100%;
	}
	.mfx-bc-reading__item summary {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
	}
	.mfx-bc-reading__meta { white-space: normal; }
	.mfx-bc-reading__item-body { padding-inline: 15px; }
}

@media ( prefers-reduced-motion: reduce ) {
	.mfx-bc *,
	.mfx-bc *::before,
	.mfx-bc *::after {
		transition: none !important;
	}
}
