/**
 * fsh-partner.css - handoff dialog for the BeyondWW partner link, plus the
 * in-content CTA button. Loaded ONLY on the pages that carry a .fs-partner-cta
 * (see fsh_partner_assets() in functions.php), so it costs nothing sitewide.
 *
 * Colours come from the theme tokens. Small text on ivory uses --fs-gold-deep
 * (4.9:1) and --fs-ink-soft, never the bright golds, which fail on light bands.
 */

/* in-content CTA: the gold button sits on its own line under the callout copy */
.fs-partner-cta-wrap { margin: 1.5rem 0 0; }

/* page scroll lock while the dialog is open */
html.fs-modal-open { overflow: hidden; }

.fs-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 4vw, 40px);
}

.fs-modal__back {
	position: absolute;
	inset: 0;
	background: rgba(5, 5, 5, .72);
	backdrop-filter: blur(2px);
	animation: fs-modal-fade .18s var(--fs-ease) both;
}

.fs-modal__panel {
	position: relative;
	width: min(560px, 100%);
	max-height: calc(100vh - 2 * clamp(16px, 4vw, 40px));
	overflow-y: auto;
	background: var(--fs-ivory);
	color: var(--fs-ink);
	border-top: 3px solid var(--fs-gold);
	border-radius: 2px;
	padding: clamp(28px, 4vw, 40px);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
	animation: fs-modal-rise .22s var(--fs-ease) both;
}

.fs-modal__x {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font: 400 1.6rem/1 var(--fs-body);
	color: var(--fs-ink-soft);
	background: none;
	border: 0;
	border-radius: 2px;
	cursor: pointer;
	transition: color .2s, background .2s;
}
.fs-modal__x:hover { color: var(--fs-ink); background: rgba(13, 13, 13, .06); }

.fs-modal__eyebrow {
	margin: 0 0 .5rem;
	font: 700 .68rem/1 var(--fs-display);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--fs-gold-deep);
}

.fs-modal__title {
	margin: 0 0 .85rem;
	font: 700 clamp(1.35rem, 3vw, 1.7rem)/1.18 var(--fs-display);
	color: var(--fs-ink);
}

.fs-modal__panel p {
	margin: 0 0 1rem;
	font: 400 1rem/1.65 var(--fs-body);
	color: var(--fs-ink-soft);
}

.fs-modal__steps {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	counter-reset: fsstep;
}
.fs-modal__steps li {
	position: relative;
	counter-increment: fsstep;
	padding: .45rem 0 .45rem 2.4rem;
	font: 400 .95rem/1.5 var(--fs-body);
	color: var(--fs-ink);
}
.fs-modal__steps li::before {
	content: counter(fsstep);
	position: absolute;
	left: 0;
	top: .45rem;
	width: 1.6rem;
	height: 1.6rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font: 700 .72rem/1 var(--fs-display);
	color: var(--fs-black);
	background: var(--fs-gold);
	border-radius: 50%;
}

.fs-modal__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 1.25rem;
}
.fs-modal__btns .fs-btn { flex: 1 1 auto; }

.fs-modal__note {
	margin: 0;
	padding-top: 1rem;
	border-top: 1px solid var(--fs-line);
	font: 400 .8rem/1.5 var(--fs-body) !important;
	color: var(--fs-ink-soft);
}

@keyframes fs-modal-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes fs-modal-rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

@media (prefers-reduced-motion: reduce) {
	.fs-modal__back,
	.fs-modal__panel { animation: none; }
}

@media (max-width: 480px) {
	.fs-modal { align-items: flex-end; padding: 0; }
	.fs-modal__panel { max-height: 88vh; width: 100%; border-radius: 2px 2px 0 0; }
	.fs-modal__btns .fs-btn { flex: 1 1 100%; }
}
