/**
 * Geteilte Beratungs-Hero-Shell: eingebettet auf der Startseite, als Dialog
 * auf Unterseiten. Copy und Daniel-Foto bleiben getrennte, ruhig verbundene
 * Zonen; Zwischen-Viewports bekommen eine eigene, unverkrampfte Komposition.
 */

.fyh-bwd {
	--fyh-bwd-copy-radius: clamp( 1.75rem, 3vw, 2.25rem );

	color: var(--wp--preset--color--ink);
}

.fyh-bwd__anchor {
	display: block;
	width: 0;
	height: 0;
	scroll-margin-top: 5rem;
}

dialog.fyh-bwd {
	width: min( 94vw, 1040px );
	height: min( 90dvh, 43rem );
	max-height: none;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: var(--wp--custom--radius--lg, 28px);
	background: var(--wp--preset--color--surface);
	box-shadow: 0 40px 120px -40px color-mix( in srgb, var(--wp--preset--color--ink) 55%, transparent );
}

dialog.fyh-bwd[open] {
	display: flex;
}

dialog.fyh-bwd::backdrop {
	background: color-mix( in srgb, var(--wp--preset--color--ink) 58%, transparent );
	-webkit-backdrop-filter: blur( 6px );
	backdrop-filter: blur( 6px );
}

.fyh-bwd__shell {
	display: grid;
	grid-template-columns: minmax( 20rem, .9fr ) minmax( 0, 1.1fr );
	width: 100%;
	min-height: 0;
	flex: 1;
}

.fyh-bwd__intro {
	display: flex;
	position: relative;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	background: var(--wp--custom--ui--card, var(--wp--preset--color--base));
	color: var(--wp--custom--ui--card-foreground, var(--wp--preset--color--ink));
}

.fyh-bwd__introcopy {
	position: relative;
	z-index: 2;
	padding: clamp( 1.6rem, 3vw, 2.35rem );
	border-bottom-right-radius: var(--fyh-bwd-copy-radius);
	background: var(--wp--custom--ui--accent, var(--wp--preset--color--surface));
	box-shadow: 0 24px 48px -40px color-mix( in srgb, var(--wp--preset--color--ink) 38%, transparent );
}

.fyh-bwd__kicker {
	margin: 0;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.fyh-bwd__eyebrow {
	--sgui-rubric-margin: 0;
}

.fyh-bwd__heading {
	max-width: 15ch;
	margin: .9rem 0 0;
	text-wrap: balance;
	color: var(--wp--custom--ui--foreground, var(--wp--preset--color--ink));
	font-size: clamp( 1.85rem, 3vw, 2.45rem );
	font-weight: 600;
	letter-spacing: -.035em;
	line-height: 1.06;
}

.fyh-bwd__text {
	max-width: 33ch;
	margin: 1rem 0 0;
	color: var(--wp--custom--ui--muted-foreground, var(--wp--preset--color--muted));
	font-size: .92rem;
	line-height: 1.58;
}

.fyh-bwd__trust {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: .55rem 1rem;
	margin: 1.15rem 0 0;
	padding: 0;
	list-style: none;
}

.fyh-bwd__trust li {
	position: relative;
	padding-left: 1.35rem;
	color: var(--wp--custom--ui--muted-foreground, var(--wp--preset--color--muted));
	font-size: .8rem;
	line-height: 1.4;
}

.fyh-bwd__trust li::before {
	position: absolute;
	top: .45em;
	left: .15rem;
	width: 5px;
	height: 5px;
	border-radius: var(--wp--custom--radius--pill, 9999px);
	background: var(--wp--custom--ui--primary, var(--wp--preset--color--brand));
	content: '';
}

.fyh-bwd__portraitvisual {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	min-height: clamp( 17rem, 25vw, 20rem );
	margin-top: calc( -1 * var(--fyh-bwd-copy-radius) );
	isolation: isolate;
	background: var(--fyh-bwd-img) center 38% / cover no-repeat var(--wp--custom--ui--foreground, var(--wp--preset--color--ink));
}

.fyh-bwd__portraitvisual::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(
			180deg,
			color-mix( in srgb, var(--wp--preset--color--ink) 72%, transparent ) 0%,
			color-mix( in srgb, var(--wp--preset--color--ink) 40%, transparent ) 8%,
			color-mix( in srgb, var(--wp--preset--color--ink) 12%, transparent ) 17%,
			transparent 30%
		),
		linear-gradient( 180deg, transparent 48%, rgba( 18, 27, 40, .82 ) 100% );
	content: '';
}

.fyh-bwd__portraitvisual--city::before {
	background:
		linear-gradient( 180deg, rgba( 20, 20, 20, .18 ) 0%, transparent 38% ),
		linear-gradient( 180deg, transparent 42%, rgba( 20, 20, 20, .8 ) 100% );
}

.fyh-bwd__portraitfoot {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	padding: 1.35rem clamp( 1.4rem, 3vw, 2.35rem );
}

.fyh-bwd__person {
	display: flex;
	position: relative;
	flex-direction: column;
	gap: .1rem;
	margin: 0;
	filter: var(--wp--custom--glow--soft);
}

.fyh-bwd__person strong {
	color: var(--wp--preset--color--on-dark, #fff);
	font-size: .9rem;
}

.fyh-bwd__person span {
	color: var(--wp--preset--color--on-dark-soft);
	font-size: .75rem;
}

.fyh-bwd__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem;
	position: relative;
	margin-top: .8rem;
	padding-top: 0;
}

.fyh-bwd__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	gap: .55rem;
	padding: .62rem .9rem;
	border-radius: var(--wp--custom--button--radius, 8px);
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, background .18s ease;
}

.fyh-bwd__action svg {
	width: 18px;
	height: 18px;
}

.fyh-bwd__action:hover {
	transform: translateY( -1px );
}

.fyh-bwd__action:focus-visible,
.fyh-bwd__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.fyh-bwd__action--light {
	border: 1px solid var(--wp--custom--ui--primary, var(--wp--preset--color--brand));
	background: var(--wp--custom--ui--primary, var(--wp--preset--color--brand));
	color: var(--wp--custom--ui--primary-foreground, var(--wp--preset--color--on-dark));
}

.fyh-bwd__action--ghost {
	border: 1px solid color-mix( in srgb, var(--wp--preset--color--base) 35%, transparent );
	background: color-mix( in srgb, var(--wp--preset--color--base) 8%, transparent );
	color: var(--wp--preset--color--on-dark);
}

.fyh-bwd__action--ghost:hover {
	background: color-mix( in srgb, var(--wp--preset--color--base) 16%, transparent );
}

.fyh-bwd__main {
	display: flex;
	min-width: 0;
	min-height: 0;
	flex-direction: column;
	overflow: auto;
	scrollbar-gutter: stable;
	background: var(--wp--preset--color--base);
}

.fyh-bwd__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.35rem 1.6rem 0;
}

.fyh-bwd__kicker {
	color: var(--wp--preset--color--muted);
}

.fyh-bwd__title {
	margin: .25rem 0 0;
	text-wrap: balance;
	color: var(--wp--preset--color--ink);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -.01em;
}

.fyh-bwd__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	padding: 0;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius--pill, 9999px);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition: background .18s ease;
}

.fyh-bwd__close:hover {
	background: var(--wp--preset--color--hairline);
}

.fyh-bwd__close svg {
	width: 16px;
	height: 16px;
}

.fyh-bwd__modes {
	position: relative;
	display: inline-flex;
	align-self: flex-start;
	gap: .25rem;
	margin: 1rem 1.6rem 0;
	padding: .25rem;
	border: 0;
	border-radius: calc( var(--wp--custom--button--radius, 8px) + 2px );
	background: var(--wp--preset--color--surface);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--hairline);
}

/* Gleitender Indikator: JS misst den aktiven Tab (--fyh-tab-x/-w) und setzt
   has-indicator — ohne JS bleibt der is-active-Pill-Fallback unten stehen. */
.fyh-bwd__modes::before {
	content: "";
	position: absolute;
	top: .25rem;
	bottom: .25rem;
	left: 0;
	width: var(--fyh-tab-w, 0px);
	border-radius: var(--wp--custom--button--radius, 8px);
	background: var(--wp--preset--color--base);
	box-shadow: 0 1px 2px rgba( 15, 42, 67, .12 ), inset 0 0 0 1px color-mix( in srgb, var(--wp--preset--color--ink) 8%, transparent );
	opacity: 0;
	transform: translateX( var(--fyh-tab-x, 0px) );
	transition: transform .38s cubic-bezier( .3, 1.25, .4, 1 ), width .38s cubic-bezier( .3, 1.25, .4, 1 );
	pointer-events: none;
}

.fyh-bwd__modes.has-indicator::before {
	opacity: 1;
}

.fyh-bwd__modes button {
	position: relative;
	z-index: 1;
	min-height: 40px;
	padding: .55rem .8rem;
	border: 0;
	border-radius: var(--wp--custom--button--radius, 8px);
	background: transparent;
	color: var(--wp--preset--color--muted);
	font: inherit;
	font-size: .85rem;
	font-weight: 600;
	cursor: pointer;
	transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

@media (hover: hover) {
	.fyh-bwd__modes button:not(.is-active):hover {
		color: var(--wp--preset--color--ink);
		background: color-mix( in srgb, var(--wp--preset--color--ink) 5%, transparent );
	}
}

.fyh-bwd__modes button.is-active {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	box-shadow: 0 1px 2px rgba( 15, 42, 67, .12 ), inset 0 0 0 1px color-mix( in srgb, var(--wp--preset--color--ink) 8%, transparent );
}

.fyh-bwd__modes.has-indicator button.is-active {
	background: transparent;
	box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
	.fyh-bwd__modes::before {
		transition: none;
	}
}

.fyh-bwd__modes button:focus-visible {
	outline: 2px solid var(--wp--custom--ui--primary, var(--wp--preset--color--brand));
	outline-offset: 2px;
}

.fyh-bwd__mode[hidden] {
	display: none;
}

.fyh-bwd__mode:not([hidden]) {
	display: flex;
	min-height: 0;
	flex: 1 1 auto;
}

@media ( max-width: 520px ) {
	.fyh-bwd__modes {
		display: grid;
		width: calc( 100% - 2rem );
		grid-template-columns: 1fr 1fr;
		margin-inline: 1rem;
	}
}

/* Opening focus rests on the dialog itself (no ring, no scroll), not on a side button. */
.sgui-native-dialog:focus { outline: none; }

/* Dialog intro surface per brand (custom.dialog.intro*): the engine keeps the quiet accent
   card with ink copy; a brand may set its own dark panel with light copy. */
.fyh-bwd--dialog {
	--fyh-bwd-intro-surface: var(--wp--custom--dialog--intro-surface, var(--wp--custom--ui--accent, var(--wp--preset--color--surface)));
	--fyh-bwd-intro-foreground: var(--wp--custom--dialog--intro-foreground, var(--wp--preset--color--ink));
	--fyh-bwd-intro-muted: var(--wp--custom--dialog--intro-muted, var(--wp--preset--color--muted));
}

/* Side by side the intro is one panel: copy at the top, then Daniel's framed photo and his
   name with the actions – no second card, no cut corner, nothing over the portrait. */
@media ( min-width: 761px ) {
	.fyh-bwd--dialog .fyh-bwd__intro { background: var(--fyh-bwd-intro-surface); color: var(--fyh-bwd-intro-foreground); }
	.fyh-bwd--dialog .fyh-bwd__introcopy { border-radius: 0; background: transparent; box-shadow: none; }
	/* Daniel in a framed photo: no mask, no scrim; name and actions follow below it. */
	.fyh-bwd--dialog .fyh-bwd__portraitvisual {
		min-height: 11rem;
		margin: 0 clamp( 1.6rem, 3vw, 2.35rem );
		border-radius: var(--wp--custom--radius--md, 16px);
		overflow: hidden;
		background-position: center 18%;
	}
	.fyh-bwd--dialog .fyh-bwd__portraitvisual::before { content: none; }
	.fyh-bwd--dialog .fyh-bwd__portraitfoot { position: static; padding: 1.1rem clamp( 1.6rem, 3vw, 2.35rem ) 1.5rem; }
	/* The intro and the tabs already say it: the form column keeps only its close button,
	   pinned top right; the tabs keep clear of it. */
	.fyh-bwd--dialog .fyh-bwd__main { position: relative; }
	.fyh-bwd--dialog .fyh-bwd__head { position: absolute; top: 1rem; right: 1rem; z-index: 3; padding: 0; }
	.fyh-bwd--dialog .fyh-bwd__head > div { display: none; }
	.fyh-bwd--dialog [data-sgui-mode-tabs] { margin-top: 1.5rem; margin-right: 4rem; }
}

/* Stacked dialog: the same intro surface as a head, no cut corner. */
@media ( max-width: 760px ) {
	.fyh-bwd--dialog .fyh-bwd__intro,
	.fyh-bwd--dialog .fyh-bwd__introcopy { border-radius: 0; background: var(--fyh-bwd-intro-surface); box-shadow: none; }
}

/* Intro copy reads the brand roles; the rubric takes the intro's muted tone. */
.fyh-bwd--dialog .fyh-bwd__eyebrow { --sgui-rubric-color: var(--fyh-bwd-intro-muted); }
.fyh-bwd--dialog .fyh-bwd__heading { color: var(--fyh-bwd-intro-foreground); font-weight: 600; }
.fyh-bwd--dialog .fyh-bwd__text { color: var(--fyh-bwd-intro-muted); }

/* Der Wizard in der Dialog-Schale: randlos, Shell traegt die Karte. */
.fyh-bwd .fyh-wiz {
	display: flex;
	width: 100%;
	max-width: none;
	min-height: 0;
	flex: 1 1 auto;
	flex-direction: column;
	margin: 0;
	padding: clamp( 1.15rem, 2.2vw, 1.6rem );
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.fyh-bwd .fyh-wiz__stage {
	min-height: 13rem;
	flex: 1 1 auto;
}

.fyh-bwd .fyh-wiz__nav {
	margin-top: auto;
}

/* Die primäre Vor-/Zurück-Navigation bleibt bei langen Wizard-Schritten im
   sichtbaren Dialogbereich, statt unterhalb des Scrollports zu verschwinden. */
.fyh-bwd--dialog .fyh-wiz__nav {
	position: sticky;
	bottom: 0;
	z-index: 2;
	padding-bottom: 1rem;
	background: var(--wp--preset--color--base);
}

/* Rueckruf-Block im Dialog: dieselbe Form-/Submit-Seam, nur ohne seine
   seitenbreite Sektion und das zweite Bildpanel. */
.fyh-bwd .fyh-callback {
	display: flex;
	width: 100%;
	min-height: 0;
	flex: 1 1 auto;
	padding: 0;
	background: transparent;
}

.fyh-bwd .fyh-callback__grid {
	display: block;
	width: 100%;
}

.fyh-bwd .fyh-callback__panel,
.fyh-bwd .fyh-callback__cardhead {
	display: none;
}

.fyh-bwd .fyh-callback__card {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	padding: 1.25rem 1.4rem 1.4rem;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.fyh-bwd .fyh-callback__fields {
	margin-top: 1rem;
}

/* Zwischenstufe: Die rechte Formularspalte darf nicht auf 380–460px
   zusammengedrückt werden. Der persönliche Einstieg bildet eine kompakte,
   horizontale Kopfzeile; der Wizard nutzt darunter die volle Kartenbreite. */
@media ( max-width: 760px ) {
	.fyh-bwd {
		--fyh-bwd-copy-radius: clamp( 2.5rem, 12vw, 3.25rem );
	}

	dialog.fyh-bwd {
		width: min( 94vw, 620px );
		overflow: auto;
		overscroll-behavior: contain;
	}

	/* Mobil scrollt der Dialog als Ganzes: als Flex-Zeile wuerde die Shell
	   auf die Dialoghoehe gestreckt und Intro/Wizard teilten sich eine
	   zu kleine Hoehe (Titel rutscht nach oben, Wizard ueberlappt). */
	dialog.fyh-bwd[open] {
		display: block;
	}

	.fyh-bwd__shell {
		position: relative;
		grid-template-columns: minmax( 0, 1fr );
		min-height: 100%;
	}

	.fyh-bwd__close {
		position: absolute;
		top: .75rem;
		right: .75rem;
		z-index: 3;
	}

	.fyh-bwd__intro {
		padding: 0;
		border-top-right-radius: clamp( 2rem, 9vw, 2.5rem );
		border-bottom-right-radius: clamp( 1.5rem, 7vw, 2rem );
	}

	.fyh-bwd__introcopy {
		padding: clamp( 1.35rem, 6vw, 2rem );
		border-top-right-radius: clamp( 2rem, 9vw, 2.5rem );
		border-bottom-right-radius: var(--fyh-bwd-copy-radius);
	}

	.fyh-bwd__heading {
		max-width: 17ch;
		font-size: clamp( 1.75rem, 8vw, 2.25rem );
	}

	/* Im Dialog rundet die Dialogkante oben rechts selbst; ein eigener,
	   groesserer Radius liesse die Surface-Farbe als Sichel durchscheinen.
	   Rechts bleibt Platz fuer den Schliessen-Button. */
	.fyh-bwd--dialog .fyh-bwd__intro,
	.fyh-bwd--dialog .fyh-bwd__introcopy {
		border-top-right-radius: 0;
	}

	.fyh-bwd--dialog .fyh-bwd__introcopy {
		padding-right: 4.25rem;
	}

	.fyh-bwd--dialog .fyh-bwd__heading {
		margin-right: -2.5rem;
	}

	.fyh-bwd__trust {
		grid-template-columns: 1fr;
	}

	.fyh-bwd__portraitvisual {
		min-height: clamp( 15rem, 62vw, 19rem );
		margin-top: calc( -1 * var(--fyh-bwd-copy-radius) );
		background-position: center 38%;
	}

	.fyh-bwd__portraitfoot {
		padding: 1.2rem clamp( 1.35rem, 6vw, 2rem );
	}

	.fyh-bwd--dialog .fyh-bwd__main {
		overflow: visible;
	}

	/* Im mobilen Dialog bekommt das Formular die verfügbare Fläche. Die
	   Grid-Zeilen wachsen mit dem Inhalt, damit Felder und Navigation nicht
	   ineinander geschoben werden. */
	.fyh-bwd--dialog .fyh-bwd__shell {
		grid-template-rows: max-content max-content;
		align-content: start;
	}

	.fyh-bwd--dialog .fyh-bwd__introcopy {
		padding: 1.25rem 3.5rem 1.1rem 1.25rem;
		border-radius: 0;
		box-shadow: none;
	}

	.fyh-bwd--dialog .fyh-bwd__heading {
		font-size: 1.5rem;
	}

	.fyh-bwd--dialog .fyh-bwd__eyebrow {
		--sgui-rubric-size: .6875rem;
	}

	.fyh-bwd--dialog .fyh-bwd__text,
	.fyh-bwd--dialog .fyh-bwd__portraitvisual,
	.fyh-bwd--dialog .fyh-bwd__portraitfoot,
	.fyh-bwd--dialog .fyh-bwd__head > div {
		display: none;
	}

	.fyh-bwd--dialog .fyh-bwd__head {
		padding: 0;
	}

	.fyh-bwd--dialog .fyh-wiz__stage {
		flex: 0 0 auto;
	}
}

/* Auf niedrigen Desktop-Viewports bleibt die Trust-Copy erhalten; die Shell
	 scrollt bei Bedarf, statt conversion-relevante Signale auszublenden. */
@media ( min-width: 761px ) and ( max-height: 720px ) {
	.fyh-bwd__introcopy {
		padding-top: 1.25rem;
	}

	.fyh-bwd__text {
		margin-top: .7rem;
	}

	.fyh-bwd__portraitvisual {
		min-height: 14rem;
	}
}

@media ( max-width: 420px ) {
	.fyh-bwd__action {
		flex: 1 1 auto;
	}
}

/* Embedded (homepage) follows the hero design line: the city photo fills the section
   behind one flat ink layer, the copy reads white, the wizard sits on a flat white card.
   No radii stack, no gradients, no shadows. The dialog keeps its own shell above. */
.fyh-bwd.fyh-bwd--embedded {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp( 4.5rem, 8vw, 7rem );
	/* Full-bleed band: its corners follow the brand's edge radius (lg by default). */
	border-radius: var(--wp--custom--radius--edge, var(--wp--custom--radius--lg, 28px));
	background: var(--wp--preset--color--ink-deep);
	color: var(--wp--preset--color--on-dark);
}

.fyh-bwd.fyh-bwd--embedded {
	padding-inline: 0;
}

@media (max-width: 640px) {
	.fyh-bwd.fyh-bwd--embedded {
		border-radius: var(--wp--custom--radius--edge, var(--wp--custom--radius--md, 16px));
	}
}

/* The photo anchors to the full-bleed section, never to the shell: no ink seams. */
.fyh-bwd--embedded .fyh-bwd__shell {
	position: static;
	box-sizing: border-box;
	/* Copy 5/12, wizard 7/12: one group, the card takes the weight, no empty moat. */
	grid-template-columns: minmax( 0, 5fr ) minmax( 0, 7fr );
	gap: clamp( 2rem, 4vw, 4rem );
	align-items: center;
	align-items: stretch;
	width: 100%;
	max-width: var(--wp--custom--layout--shell-max, 1512px);
	margin-inline: auto;
	padding-inline: var(--wp--custom--layout--edge, clamp( 1.5rem, 5vw, 6rem ));
}

.fyh-bwd--embedded .fyh-bwd__intro {
	justify-content: center;
	position: static;
	overflow: visible;
	background: none;
	color: inherit;
}

.fyh-bwd--embedded .fyh-bwd__introcopy {
	padding: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.fyh-bwd--embedded .fyh-bwd__eyebrow {
	--sgui-rubric-color: var(--wp--preset--color--on-dark-soft);
}

.fyh-bwd--embedded .fyh-bwd__heading {
	max-width: 14ch;
	margin-top: 1rem;
	color: var(--wp--preset--color--on-dark);
	font-size: clamp( 2.25rem, 4vw, 3.5rem );
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -.04em;
}

.fyh-bwd--embedded .fyh-bwd__portraitvisual {
	position: absolute;
	inset: 0;
	z-index: -1;
	min-height: 0;
	margin: 0;
	background-position: 30% 60%;
}

.fyh-bwd--embedded .fyh-bwd__portraitvisual::before {
	background: var(--wp--custom--ui--scrim-copy, var(--wp--custom--ui--scrim));
}

/* Stacked, the copy spans the full width above the form: darken from the top. */
@media ( max-width: 900px ) {
	.fyh-bwd--embedded .fyh-bwd__portraitvisual::before {
		background: var(--wp--custom--ui--scrim-copy-stack, var(--wp--custom--ui--scrim));
	}
}

.fyh-bwd--embedded .fyh-bwd__portraitfoot {
	position: static;
	margin-top: clamp( 1.25rem, 2.5vw, 1.75rem );
	padding: 0;
}

.fyh-bwd--embedded .fyh-bwd__person {
	filter: none;
}

/* Lead line and advisor: one quiet sentence, then the advisor as the person. */
.fyh-bwd--embedded .fyh-bwd__lead {
	max-width: 30rem;
	margin: 0;
	color: var(--wp--preset--color--on-dark-soft);
	font-size: 1.125rem;
	line-height: 1.6;
}

.fyh-bwd--embedded .fyh-bwd__advisor {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid color-mix( in srgb, var(--wp--preset--color--base) 22%, transparent );
}

.fyh-bwd--embedded .fyh-bwd__avatar {
	flex: 0 0 auto;
	width: 4.5rem;
	height: 4.5rem;
	border: 2px solid color-mix( in srgb, var(--wp--preset--color--base) 20%, transparent );
	border-radius: 50%;
	object-fit: cover;
	object-position: center 22%;
}

.fyh-bwd--embedded .fyh-bwd__advisor .fyh-bwd__person {
	display: grid;
	gap: .15rem;
	margin: 0;
}

.fyh-bwd--embedded .fyh-bwd__advisor .fyh-bwd__person strong {
	color: var(--wp--preset--color--on-dark);
	font-size: 1.0625rem;
	font-weight: 600;
}

.fyh-bwd--embedded .fyh-bwd__advisor .fyh-bwd__person span {
	color: var(--wp--preset--color--on-dark-soft);
	font-size: .875rem;
}

/* Hero description role: one quiet lead line, then the muted sentence. */
.fyh-bwd--embedded .fyh-bwd__person {
	max-width: 27rem;
}

.fyh-bwd--embedded .fyh-bwd__person strong,
.fyh-bwd--embedded .fyh-bwd__person span {
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.6;
}

.fyh-bwd--embedded .fyh-bwd__actions {
	gap: .75rem;
	margin-top: 2rem;
}

/* Hero action size (shadcn lg): 48px, medium weight. */
.fyh-bwd--embedded .fyh-bwd__action {
	min-height: 3rem;
	padding: .75rem 1.25rem;
	font-size: .875rem;
	font-weight: 500;
}

/* Without the card head the tabs open the card, aligned with the wizard padding. */
.fyh-bwd--embedded .fyh-bwd__modes {
	margin: clamp( 1.15rem, 2.2vw, 1.6rem ) clamp( 1.15rem, 2.2vw, 1.6rem ) 0;
}

.fyh-bwd--embedded .fyh-bwd__action:hover {
	transform: none;
}

/* Second action = the hero's outline on photo: no fill, half-white hairline. */
.fyh-bwd--embedded .fyh-bwd__action--ghost {
	border-color: color-mix( in srgb, var(--wp--preset--color--base) 50%, transparent );
	background: transparent;
}

.fyh-bwd--embedded .fyh-bwd__action--ghost:hover {
	background: color-mix( in srgb, var(--wp--preset--color--base) 10%, transparent );
}

/* The card is as tall as its taller mode (shared grid cell below); no fixed height,
   so no empty band between tabs and wizard. */
.fyh-bwd--embedded .fyh-bwd__main {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--md, 16px);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
}

.fyh-bwd--embedded .fyh-wiz__stage {
	flex: 0 0 auto;
	min-height: 0;
	justify-content: flex-start;
	padding-top: 1.5rem;
}

/* Both modes share one grid cell: the card is always as tall as the taller mode,
   so switching online / callback never moves the page or re-crops the photo. */
.fyh-bwd--embedded .fyh-bwd__main {
	display: grid;
	/* Optional card head, tabs, then the shared mode cell; an absent head collapses. */
	grid-template-rows: auto auto minmax( 0, 1fr );
}

.fyh-bwd--embedded .fyh-bwd__main > .fyh-bwd__mode {
	grid-row: 3;
	grid-column: 1;
}

/* Wins over the shared `.sgui-shadcn [hidden]` reset; visibility keeps the
   inactive mode out of focus order and the accessibility tree. */
.fyh-bwd--embedded .fyh-bwd__main > .fyh-bwd__mode[hidden] {
	display: flex !important;
	visibility: hidden;
}

/* The callback mode matches the online wizard's height, so neither mode carries an
   empty band: time slots become one-line chips shaped like the wizard options. */
.fyh-bwd--embedded .fyh-callback__slot {
	flex-direction: row;
	justify-content: center;
	gap: .5rem;
	min-height: 3.25rem;
	padding: .5rem;
	border-radius: var(--wp--custom--button--radius, 8px);
}

.fyh-bwd--embedded .fyh-callback__slot svg {
	width: 1.125rem;
	height: 1.125rem;
}

@media ( max-width: 640px ) {
	/* Short name fields pair up; phone and e-mail keep the full width. */
	.fyh-bwd--embedded .fyh-callback__slots,
	.fyh-bwd--embedded .fyh-callback__slots + .fyh-callback__fields {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

/* Keep the embedded mode panel inside the fixed card. */
.fyh-bwd--embedded .fyh-bwd__mode:not([hidden]) {
	min-height: 0;
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
}

@media ( max-width: 900px ) {
	.fyh-bwd--embedded .fyh-bwd__shell {
		grid-template-columns: minmax( 0, 1fr );
	}

	.fyh-bwd--embedded .fyh-bwd__main {
		height: auto;
	}
}
