/**
 * Federal capability page — layout, sections, cards.
 * Hero: 520px video band (hero-band.css) + entity card hangs into paper body.
 *
 * UNIQUE LAYOUT — not cluster/console. Read before editing:
 *   docs/FEDERAL_PAGE.md § Layout contract
 *   docs/HERO_LAYOUT.md §5c
 *
 * Do not: inline height:520px on hero; zero main padding in hero-band critical CSS;
 * template-part position:relative on mobile; cluster main padding rules on federal.
 */

/* ── Federal hero — 520px video band; entity card extends below in-flow ── */

/*
 * Flush under header — WP global styles inject margin-block-start: 1.5rem on
 * .wp-site-blocks > * (theme.json blockGap). Layered overrides:
 * 1. --wp--style--block-gap on body
 * 2. display:contents on header template-part (drops wrapper box)
 * 3. margin/gap zero on .wp-site-blocks children
 * 4. studio_federal_hero_flush_css() in federal-page.php (loads after global styles)
 */
body.studio-federal-page {
	--wp--style--block-gap: 0;
	/* Entity card is taller than work-console — main pull + landing (console-float) */
	--studio-federal-entity-pull: clamp(-300px, -32vh, -220px);
	--studio-federal-entity-landing: clamp(260px, 32vh, 400px);
	overflow-x: clip;
}

body.studio-federal-page .wp-site-blocks {
	display: flex;
	flex-direction: column;
	gap: 0 !important;
	row-gap: 0 !important;
}

body.studio-federal-page .wp-site-blocks > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
	margin-top: 0 !important;
}

/* Unwrap template-part — .site-header becomes direct child of .wp-site-blocks */
body.studio-federal-page .wp-site-blocks > header.wp-block-template-part {
	display: contents;
}

body.studio-federal-page .wp-site-blocks > .site-header,
body.studio-federal-page .wp-site-blocks > header.wp-block-template-part > .site-header {
	margin-block-end: 0 !important;
	padding-block-end: 0 !important;
	border-block-end: none !important;
}

body.studio-federal-page .wp-site-blocks > .site-header + .studio-hero,
body.studio-federal-page .wp-site-blocks > .studio-hero.studio-hero--video.cluster-hero--government.alignfull {
	overflow: visible !important;
	isolation: auto;
	padding-bottom: 0 !important;
	margin-block-start: 0 !important;
	position: relative;
	z-index: 2;
}

/* Desktop — fixed 520px band + entity card overflow */
@media (min-width: 981px) {
	body.studio-federal-page .wp-site-blocks > .site-header + .studio-hero,
	body.studio-federal-page .wp-site-blocks > .studio-hero.studio-hero--video.cluster-hero--government.alignfull {
		min-height: var(--studio-hero-band-height, 520px) !important;
		height: var(--studio-hero-band-height, 520px) !important;
		max-height: var(--studio-hero-band-height, 520px) !important;
	}
}

/* Backdrop template-part — cap at band (cluster-hero.css sets height:100% on parent) */
@media (min-width: 981px) {
body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government > .wp-block-template-part {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	width: 100%;
	height: var(--studio-hero-band-height, 520px) !important;
	max-height: var(--studio-hero-band-height, 520px) !important;
	pointer-events: none;
	z-index: 0;
}

body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government > .wp-block-template-part > * {
	height: 100% !important;
	max-height: var(--studio-hero-band-height, 520px) !important;
}
}

/* Video/scrim — clip to 520px band; entity card overflows hero shell below */
@media (min-width: 981px) {
body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government .cluster-hero__backdrop {
	top: 0;
	right: 0;
	left: 0;
	bottom: auto;
	height: var(--studio-hero-band-height, 520px) !important;
	max-height: var(--studio-hero-band-height, 520px) !important;
	width: 100%;
}
}

body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government .cluster-hero__content {
	position: relative;
	z-index: 2;
	min-height: 0;
	max-height: none;
	overflow: visible;
	padding-top: clamp(1rem, 2.5vh, 1.5rem) !important;
	padding-bottom: clamp(1rem, 2.5vh, 1.5rem) !important;
}

@media (min-width: 981px) {
	body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government .cluster-hero__content {
		height: 100%;
	}
}

body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government .cluster-hero__content > .wp-block-columns {
	width: 100%;
	max-width: var(--studio-wide-size, 1120px);
	min-height: 0;
	height: auto;
	max-height: none;
	align-items: flex-start;
	overflow: visible;
}

/* Left rail — top-aligned so CTAs stay in flow (not clipped at band floor) */
body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government .cluster-hero__content > .wp-block-columns > .wp-block-column:first-child {
	align-self: flex-start;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 0;
}

body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government .federal-actions {
	margin-bottom: 0;
}

/* Right rail — card hangs below the video band */
body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government .cluster-hero__content > .wp-block-columns > .wp-block-column:last-child {
	position: relative;
	z-index: 12;
	align-self: flex-start;
}

/* Solid ink card — readable on video + paper overhang (console-float convention) */
body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government .fed-info-card {
	position: relative;
	z-index: 12;
	background: var(--studio-frame-ink, #0e1a1f);
	border: 1px solid rgba(250, 249, 247, 0.14);
	box-shadow:
		0 32px 80px rgba(14, 26, 31, 0.35),
		0 8px 24px rgba(14, 26, 31, 0.22);
}

/*
 * Hero (z-index 2) stacks above main (1). cluster-hero__content is full-width and
 * extends with the hanging card — it blocks fed-section-nav hits unless disabled.
 * Left column keeps pointer-events for the PDF CTA; right rail + card are display-only.
 */
@media (min-width: 981px) {
	body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government .cluster-hero__content {
		pointer-events: none;
	}

	body.studio-federal-page
		.wp-site-blocks
		> .studio-hero.cluster-hero--government
		.cluster-hero__content
		> .wp-block-columns
		> .wp-block-column:first-child {
		pointer-events: auto;
	}

	body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government .fed-info-card,
	body.studio-federal-page
		.wp-site-blocks
		> .studio-hero.cluster-hero--government
		.cluster-hero__content
		> .wp-block-columns
		> .wp-block-column:last-child {
		pointer-events: none;
	}
}

body.studio-federal-page main.studio-federal-page {
	position: relative;
	z-index: 1;
	background: #fff;
	margin-top: 0;
	padding-top: 0;
}

/* Desktop — console-float: white main rises under card; nav clears overhang */
@media (min-width: 981px) {
	body.studio-federal-page main.studio-federal-page {
		margin-top: var(--studio-federal-entity-pull) !important;
		margin-block-start: var(--studio-federal-entity-pull) !important;
		padding-top: var(--studio-federal-entity-landing) !important;
	}

	body.studio-federal-page .fed-section-nav {
		position: relative;
		z-index: 5;
	}

	body.studio-federal-page .fed-section-nav .cluster-nav__chip {
		position: relative;
		z-index: 1;
	}
}

/* Narrow desktop — wrapped entity fields need more landing */
@media (min-width: 981px) and (max-width: 1280px) {
	body.studio-federal-page {
		--studio-federal-entity-pull: clamp(-360px, -40vh, -280px);
		--studio-federal-entity-landing: clamp(320px, 40vh, 460px);
	}
}

body.studio-federal-page .fed-section-nav {
	position: relative;
	z-index: 1;
}

/* Hero title — match cluster claim weight; multi-line claim (not 14ch hub titles) */
.studio-federal-page .cluster-hero--government .studio-hero__title {
	font-weight: 300;
	max-width: none;
}

.studio-federal-page .cluster-hero--government .studio-hero__sub {
	max-width: none;
}

/* Hero two-column layout */
.studio-federal-page .cluster-hero--government .cluster-hero__content > .wp-block-columns {
	gap: clamp(1.25rem, 3vw, 2.5rem) !important;
}

.studio-federal-page .cluster-hero--government .cluster-hero__content .wp-block-column {
	padding-left: 0 !important;
	padding-right: 0 !important;
	min-width: 0;
}

.studio-federal-page .cluster-hero--government .cluster-hero__content .fed-info-card {
	box-sizing: border-box;
	max-width: 100%;
}

.studio-federal-page .cluster-hero--government .cluster-hero__content .wp-block-html {
	display: block;
	max-width: 100%;
	min-width: 0;
}

.studio-federal-page .cluster-hero--government .federal-actions {
	max-width: 100%;
	box-sizing: border-box;
}

.studio-federal-page .cluster-hero--government .federal-actions .fed-btn {
	box-sizing: border-box;
	max-width: 100%;
}

/* Section jump nav (cluster-nav chips) */
.studio-federal-page .fed-section-nav {
	width: min(100% - 40px, 1120px);
	margin: 0 auto;
	padding: var(--wp--preset--spacing--40, 1.5rem) 0 var(--wp--preset--spacing--30, 1rem);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* Content rail */
.studio-federal-page .fed-content-rail {
	width: min(100% - 40px, 1120px);
	margin: 0 auto;
}

.studio-federal-page .fed-section {
	padding: clamp(48px, 6vw, 72px) 0;
	border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.studio-federal-page .fed-section--cream {
	margin-inline: calc(var(--wp--style--root--padding-left, 1.5rem) * -1)
		calc(var(--wp--style--root--padding-right, 1.5rem) * -1);
	max-width: none;
	width: auto;
	padding-inline: max(1.25rem, var(--wp--style--root--padding-left, 1.5rem));
	background: var(--wp--preset--color--cream, #f3efe8);
	border-top: 1px solid var(--wp--preset--color--subtle, #f0ede8);
	border-bottom: 1px solid var(--wp--preset--color--subtle, #f0ede8);
}

.studio-federal-page .fed-section--cream .fed-content-rail {
	width: min(100%, 1120px);
}

.studio-federal-page .fed-section-head {
	display: grid;
	grid-template-columns: minmax(200px, 0.4fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 48px);
	margin-bottom: 32px;
	align-items: start;
}

.studio-federal-page .fed-section-head h2 {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif, 'Fraunces', Georgia, serif);
	font-size: clamp(1.6rem, 2.8vw, 2.5rem);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--contrast, #1a1a1a);
}

.studio-federal-page .fed-section-head p {
	color: rgba(26, 26, 26, 0.52);
	margin: 0;
	font-size: 1.04rem;
	max-width: 680px;
	line-height: 1.55;
}

.studio-federal-page .fed-section-head a {
	color: var(--studio-teal, #2c5f6e);
}

/* Cards */
.studio-federal-page .fed-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.studio-federal-page .fed-card {
	background: var(--wp--preset--color--base, #faf9f7);
	border: 1px solid rgba(26, 26, 26, 0.09);
	border-radius: 6px;
	padding: 20px 22px;
	min-height: 160px;
	box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04);
}

.studio-federal-page .fed-card h3 {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	color: #1a1a1a;
	margin: 0 0 8px;
}

.studio-federal-page .fed-card p,
.studio-federal-page .fed-card li {
	color: rgba(26, 26, 26, 0.52);
	font-size: 0.94rem;
	line-height: 1.55;
}

.studio-federal-page .fed-card p {
	margin: 0;
}

.studio-federal-page .fed-card ul {
	margin: 0;
	padding-left: 18px;
}

/* Lane grid — equal columns; Lane A emphasis via fed-lane-card--primary only */
.studio-federal-page .fed-lanes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	align-items: stretch;
}

.studio-federal-page .fed-lane-card {
	position: relative;
	background: var(--wp--preset--color--base, #faf9f7);
	border: 1px solid rgba(26, 26, 26, 0.09);
	border-radius: 6px;
	padding: 24px 26px;
	min-height: 100%;
	box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04);
	display: flex;
	flex-direction: column;
	gap: 10px;
	overflow: hidden;
}

.studio-federal-page .fed-lane-card--primary {
	border-color: rgba(44, 95, 110, 0.22);
	box-shadow: 0 2px 10px rgba(44, 95, 110, 0.1);
}

.studio-federal-page .fed-lane-card--primary::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(
		90deg,
		var(--studio-teal, #2c5f6e),
		var(--studio-teal-light, #3d7a8c)
	);
}

.studio-federal-page .fed-lane-card__eyebrow {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--studio-teal, #2c5f6e);
}

.studio-federal-page .fed-lane-card h3 {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif, 'Fraunces', Georgia, serif);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
	color: #1a1a1a;
	font-style: italic;
}

.studio-federal-page .fed-lane-card__stakes {
	margin: 0;
	color: rgba(26, 26, 26, 0.62);
	font-size: 0.92rem;
	line-height: 1.5;
}

.studio-federal-page .fed-lane-card p {
	margin: 0;
	color: rgba(26, 26, 26, 0.52);
	font-size: 0.94rem;
	line-height: 1.55;
}

.studio-federal-page .fed-lane-card__note {
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid rgba(26, 26, 26, 0.08);
	font-size: 0.9rem;
}

/* Proof */
.studio-federal-page .fed-proof-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.studio-federal-page .fed-proof-card {
	background: var(--wp--preset--color--base, #faf9f7);
	border: 1px solid rgba(26, 26, 26, 0.09);
	border-radius: 6px;
	padding: 20px 22px;
	min-height: 140px;
	box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.studio-federal-page .fed-proof-card h3 {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	color: #1a1a1a;
	margin: 0;
}

.studio-federal-page .fed-proof-card h3 a {
	color: inherit;
	text-decoration: none;
}

.studio-federal-page .fed-proof-card h3 a:hover {
	color: var(--studio-teal, #2c5f6e);
}

.studio-federal-page .fed-proof-card p {
	color: rgba(26, 26, 26, 0.52);
	font-size: 0.94rem;
	line-height: 1.55;
	margin: 0;
	flex: 1;
}

.studio-federal-page .fed-proof-card__meta {
	font-size: 0.8rem;
	color: rgba(26, 26, 26, 0.42);
	letter-spacing: 0.02em;
}

.studio-federal-page .fed-proof-card__link {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--studio-teal, #2c5f6e);
	text-decoration: none;
}

.studio-federal-page .fed-proof-card__link:hover {
	text-decoration: underline;
}

.studio-federal-page .fed-proof-card--no-link h3 {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	color: #1a1a1a;
	margin: 0;
}

/* Notes & wide cards */
.studio-federal-page .fed-attribution-note {
	margin: 0 0 24px;
	padding: 16px 20px;
	background: rgba(26, 26, 26, 0.03);
	border: 1px solid rgba(26, 26, 26, 0.08);
	border-radius: 6px;
	color: rgba(26, 26, 26, 0.62);
	font-size: 0.94rem;
	line-height: 1.55;
}

.studio-federal-page .fed-clearance-note {
	margin-top: 20px;
	padding: 16px 20px;
	background: rgba(44, 95, 110, 0.06);
	border: 1px solid rgba(44, 95, 110, 0.12);
	border-radius: 6px;
	color: rgba(26, 26, 26, 0.62);
	font-size: 0.94rem;
	line-height: 1.55;
}

.studio-federal-page .fed-clearance-note strong {
	color: #1a1a1a;
	font-weight: 600;
}

.studio-federal-page .fed-wide-card {
	background: var(--wp--preset--color--base, #faf9f7);
	border: 1px solid rgba(26, 26, 26, 0.09);
	border-radius: 6px;
	padding: 28px;
}

.studio-federal-page .fed-wide-card--spaced {
	margin-bottom: 12px;
}

.studio-federal-page .fed-wide-card h3 {
	margin: 0 0 14px;
	font-size: 1.05rem;
	font-weight: 600;
	color: #1a1a1a;
}

.studio-federal-page .fed-wide-card ul {
	margin: 0;
	padding-left: 20px;
	color: rgba(26, 26, 26, 0.52);
	font-size: 0.96rem;
}

.studio-federal-page .fed-wide-card li + li {
	margin-top: 8px;
}

/* Strong-fit checklist — engagements § (two balanced columns) */
.studio-federal-page .fed-fit-panel h3 {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.45rem 0.65rem;
	margin: 0 0 18px;
	font-size: 1.05rem;
	font-weight: 600;
	color: #1a1a1a;
}

.studio-federal-page .fed-fit-panel__label {
	font-family: var(--wp--preset--font-family--sans, 'Source Sans 3', sans-serif);
	font-size: 0.72rem;
	font-weight: 600;
	font-style: normal;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--studio-teal, #2c5f6e);
}

.studio-federal-page .fed-fit-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(28px, 5vw, 56px);
}

.studio-federal-page .fed-fit-cols ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.studio-federal-page .fed-fit-cols li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 11px 0;
	border-bottom: 1px solid rgba(26, 26, 26, 0.08);
	font-size: 0.96rem;
	line-height: 1.45;
	color: rgba(26, 26, 26, 0.62);
}

.studio-federal-page .fed-fit-cols li::before {
	content: '';
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	margin-top: 0.45em;
	border-radius: 1px;
	background: var(--studio-teal, #2c5f6e);
	opacity: 0.85;
}

.studio-federal-page .fed-fit-cols ul li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.studio-federal-page .fed-fit-cols ul li:first-child {
	padding-top: 0;
}

.studio-federal-page .fed-two-col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	align-items: stretch;
}

.studio-federal-page .fed-codes {
	padding: 0 24px;
}

.studio-federal-page .fed-code-row {
	display: grid;
	grid-template-columns: minmax(80px, 0.18fr) minmax(0, 1fr);
	gap: 18px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(26, 26, 26, 0.08);
	align-items: baseline;
}

.studio-federal-page .fed-code-row:last-child {
	border-bottom: 0;
}

.studio-federal-page .fed-code-row strong {
	color: var(--studio-teal, #2c5f6e);
	font-size: 0.9rem;
	font-weight: 600;
}

.studio-federal-page .fed-code-row span {
	color: rgba(26, 26, 26, 0.52);
	font-size: 0.94rem;
}

/* CTA */
.studio-federal-page .fed-cta {
	background: var(--studio-teal, #2c5f6e);
	border-radius: 6px;
	padding: clamp(28px, 5vw, 48px);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 32px;
	align-items: center;
}

.studio-federal-page .fed-cta h2 {
	color: #faf9f7;
	font-family: var(--wp--preset--font-family--serif, 'Fraunces', Georgia, serif);
	font-size: clamp(1.6rem, 2.8vw, 2.5rem);
	line-height: 1.1;
	font-weight: 700;
	margin: 0 0 10px;
}

.studio-federal-page .fed-cta p {
	color: rgba(250, 249, 247, 0.75);
	margin: 0;
	max-width: 680px;
}

.studio-federal-page .fed-cta__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.75rem;
	min-width: min(100%, 300px);
}

/* Teaming inquiry — gate-like panel on teal CTA band */
.studio-federal-page .fed-inquiry {
	width: 100%;
	max-width: 420px;
	text-align: right;
}

.studio-federal-page .fed-inquiry__alt {
	margin: 0;
}

.studio-federal-page .fed-inquiry__toggle {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--sans, 'Source Sans 3', sans-serif);
	font-size: 0.8rem;
	color: rgba(250, 249, 247, 0.72);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.studio-federal-page .fed-inquiry__toggle:hover {
	color: #faf9f7;
}

.studio-federal-page .fed-inquiry__panel[hidden] {
	display: none;
}

.studio-federal-page .fed-inquiry__panel {
	width: 100%;
	display: grid;
	grid-template-rows: 1fr;
	opacity: 1;
	transition: grid-template-rows 0.32s ease, opacity 0.25s ease;
}

.studio-federal-page .fed-inquiry__panel[aria-hidden='true'] {
	grid-template-rows: 0fr;
	opacity: 0;
	overflow: hidden;
}

.studio-federal-page .fed-inquiry__panel > * {
	min-height: 0;
}

.studio-federal-page .fed-inquiry__panel[aria-hidden='true'] > * {
	overflow: hidden;
}

.studio-federal-page .fed-inquiry__fields {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	padding-top: 0.65rem;
}

.studio-federal-page .fed-inquiry__fields > * {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
}

.studio-federal-page .fed-inquiry__fields input[type='text'],
.studio-federal-page .fed-inquiry__fields input[type='email'] {
	background: rgba(250, 249, 247, 0.96);
	border: 1px solid rgba(250, 249, 247, 0.35);
	color: #1a1a1a;
	padding: 0.7rem 1rem;
	font-family: var(--wp--preset--font-family--sans, 'Source Sans 3', sans-serif);
	font-size: 0.875rem;
	flex: 1 1 140px;
	min-width: 0;
	max-width: 200px;
	width: 100%;
	border-radius: 4px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.studio-federal-page .fed-inquiry__fields input:focus {
	border-color: rgba(250, 249, 247, 0.9);
	box-shadow: 0 0 0 3px rgba(250, 249, 247, 0.22);
}

.studio-federal-page .fed-inquiry__fields input.fed-inquiry__input--error {
	border-color: #f5b8b8;
	box-shadow: 0 0 0 3px rgba(245, 184, 184, 0.35);
}

.studio-federal-page .fed-inquiry__submit {
	flex-shrink: 0;
	background: transparent;
	border: 1px solid rgba(250, 249, 247, 0.55);
	padding: 0.7rem 1.15rem;
	font-family: var(--wp--preset--font-family--sans, 'Source Sans 3', sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	color: #faf9f7;
	letter-spacing: 0.02em;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.studio-federal-page .fed-inquiry__submit:hover {
	background: rgba(250, 249, 247, 0.1);
	border-color: #faf9f7;
}

.studio-federal-page .fed-inquiry__submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.studio-federal-page .fed-inquiry__note {
	margin: 0;
	padding-top: 0.5rem;
	font-family: var(--wp--preset--font-family--sans, 'Source Sans 3', sans-serif);
	font-size: 0.75rem;
	color: rgba(250, 249, 247, 0.62);
	text-align: right;
}

.studio-federal-page .fed-inquiry__note--success {
	padding-top: 0.75rem;
	color: rgba(250, 249, 247, 0.88);
}

/*
 * Desktop CTA — copy + buttons on one row; inquiry strip full rail width.
 * Aside uses display:contents so actions + inquiry participate in fed-cta grid.
 */
@media (min-width: 761px) {
	.studio-federal-page .fed-cta {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		align-items: center;
		column-gap: clamp(32px, 4vw, 56px);
		row-gap: 0.85rem;
	}

	.studio-federal-page .fed-cta > div:first-child {
		grid-column: 1;
		grid-row: 1;
		align-self: center;
	}

	.studio-federal-page .fed-cta__aside {
		display: contents;
	}

	.studio-federal-page .fed-cta-actions {
		grid-column: 2;
		grid-row: 1;
		justify-content: flex-end;
		flex-wrap: nowrap;
	}

	.studio-federal-page .fed-inquiry {
		grid-column: 1 / -1;
		grid-row: 2;
		max-width: none;
		width: 100%;
		text-align: left;
	}

	.studio-federal-page .fed-inquiry__fields {
		display: grid;
		grid-template-columns:
			minmax(0, 1.05fr)
			minmax(0, 1.35fr)
			minmax(0, 1.15fr)
			minmax(10.5rem, max-content);
		align-items: stretch;
		gap: 0.65rem;
		padding-top: 0.25rem;
	}

	.studio-federal-page .fed-inquiry__fields > * {
		flex: unset;
	}

	.studio-federal-page .fed-inquiry__fields input[type='text'],
	.studio-federal-page .fed-inquiry__fields input[type='email'] {
		flex: unset;
		max-width: none;
		width: 100%;
		min-width: 0;
	}

	.studio-federal-page .fed-inquiry__submit {
		align-self: stretch;
		justify-self: end;
		width: auto;
		min-height: 44px;
		white-space: nowrap;
		padding-inline: 1.35rem;
	}

	.studio-federal-page .fed-inquiry__note {
		text-align: left;
	}
}

@media (min-width: 761px) and (max-width: 900px) {
	.studio-federal-page .fed-cta-actions {
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	/* 2×2 — name | email, org | submit (no fused row, no full-width button) */
	.studio-federal-page .fed-inquiry__fields {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.studio-federal-page .fed-inquiry__submit {
		grid-column: 2;
		justify-self: stretch;
		width: 100%;
	}
}

/* Hero entity card — ink surface on video band and white body */
.studio-federal-page .fed-info-card {
	width: 100%;
	border-radius: 6px;
	padding: 28px;
	display: block;
	box-sizing: border-box;
	background-color: var(--studio-frame-ink, #0e1a1f);
	border: 1px solid rgba(250, 249, 247, 0.14);
	box-shadow:
		0 32px 80px rgba(14, 26, 31, 0.35),
		0 8px 24px rgba(14, 26, 31, 0.22);
	color: #faf9f7;
}

.studio-federal-page .fed-info-card__title {
	margin: 0 0 18px;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #faf9f7;
	font-family: var(--wp--preset--font-family--sans, 'Source Sans 3', sans-serif);
}

.studio-federal-page .fed-entity-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0;
}

.studio-federal-page .fed-entity-list li {
	display: grid;
	gap: 2px;
	padding: 13px 0;
	border-bottom: 1px solid rgba(250, 249, 247, 0.1);
}

.studio-federal-page .fed-entity-list li:first-child {
	padding-top: 0;
}

.studio-federal-page .fed-entity-list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.studio-federal-page .fed-entity-list span {
	color: rgba(250, 249, 247, 0.45);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}

.studio-federal-page .fed-entity-list strong {
	font-size: 0.94rem;
	font-weight: 500;
	line-height: 1.35;
	color: rgba(250, 249, 247, 0.88);
	overflow-wrap: break-word;
}

.studio-federal-page .federal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.studio-federal-page .fed-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 4px;
	padding: 11px 20px;
	font-family: var(--wp--preset--font-family--sans, 'Source Sans 3', sans-serif);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	line-height: 1;
	transition:
		background 180ms ease,
		border-color 180ms ease,
		color 180ms ease;
}

.studio-federal-page .fed-btn--primary {
	color: #faf9f7;
	background: var(--studio-teal, #2c5f6e);
	border-color: var(--studio-teal, #2c5f6e);
}

.studio-federal-page .fed-btn--primary:hover {
	background: var(--studio-teal-light, #3d7a8c);
	border-color: var(--studio-teal-light, #3d7a8c);
}

.studio-federal-page .fed-btn--secondary {
	color: rgba(250, 249, 247, 0.85);
	background: rgba(250, 249, 247, 0.08);
	border-color: rgba(250, 249, 247, 0.2);
}

.studio-federal-page .fed-btn--secondary:hover {
	background: rgba(250, 249, 247, 0.14);
	border-color: rgba(250, 249, 247, 0.35);
	color: #faf9f7;
}

.studio-federal-page .fed-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 4px;
	padding: 11px 24px;
	font-family: var(--wp--preset--font-family--sans, 'Source Sans 3', sans-serif);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #faf9f7;
	color: var(--studio-teal, #2c5f6e);
	background: #faf9f7;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background 180ms ease;
}

.studio-federal-page .fed-cta-btn:hover {
	background: rgba(250, 249, 247, 0.88);
}

.studio-federal-page .fed-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	align-items: center;
}

.studio-federal-page .fed-cta-btn--ghost {
	background: transparent;
	color: #faf9f7;
	border-color: rgba(250, 249, 247, 0.55);
}

.studio-federal-page .fed-cta-btn--ghost:hover {
	background: rgba(250, 249, 247, 0.1);
	color: #faf9f7;
}

/* Tablet / mobile — stack in-flow; backdrop absolute; hero grows with entity card */
@media (max-width: 980px) {
	body.studio-federal-page .wp-site-blocks > .studio-hero.studio-hero--video.cluster-hero--government.alignfull {
		height: auto !important;
		max-height: none !important;
		min-height: min(52svh, 520px) !important;
		overflow: visible !important;
		background-color: #ffffff;
		margin-bottom: 0 !important;
	}

	/* Keep backdrop out of flow (cluster-hero default) — do not use position:relative */
	body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government > .wp-block-template-part {
		position: absolute;
		top: 0;
		right: 0;
		left: 0;
		width: 100%;
		height: min(52svh, 520px) !important;
		max-height: 520px !important;
		pointer-events: none;
		z-index: 0;
	}

	body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government .cluster-hero__backdrop {
		height: min(52svh, 520px) !important;
		max-height: 520px !important;
	}

	body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government .cluster-hero__content {
		height: auto !important;
		min-height: min(52svh, 520px);
		padding-bottom: clamp(1.25rem, 4vh, 2rem) !important;
	}

	body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government .cluster-hero__content > .wp-block-columns {
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		height: auto !important;
		min-height: 0 !important;
	}

	body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government .cluster-hero__content > .wp-block-columns > .wp-block-column:first-child {
		height: auto;
		min-height: 0;
	}

	body.studio-federal-page main.studio-federal-page {
		margin-top: 0 !important;
		margin-block-start: 0 !important;
		padding-top: 0 !important;
		position: relative;
		z-index: 0;
	}

	.studio-federal-page .cluster-hero--government .cluster-hero__content .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.studio-federal-page .cluster-hero--government .fed-info-card {
		margin-inline: 0;
		margin-top: var(--wp--preset--spacing--40, 1.5rem);
		position: relative;
		z-index: 3;
	}

	.studio-federal-page .fed-section-nav {
		padding-top: var(--wp--preset--spacing--40, 1.5rem);
		position: relative;
		z-index: 0;
	}

	.studio-federal-page .fed-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.studio-federal-page .fed-proof-grid {
		grid-template-columns: 1fr;
	}

	.studio-federal-page .fed-lanes {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	.studio-federal-page .cluster-hero--government .cluster-hero__content {
		padding-left: max(1.25rem, var(--studio-hero-pad-left, 1.5rem)) !important;
		padding-right: max(1.25rem, var(--studio-hero-pad-right, 1.5rem)) !important;
	}

	.studio-federal-page .cluster-hero--government .studio-hero__title {
		font-size: clamp(1.65rem, 6.5vw, 2.35rem) !important;
		line-height: 1.12 !important;
	}

	.studio-federal-page .cluster-hero--government .fed-info-card {
		padding: clamp(1.25rem, 4vw, 1.75rem);
	}

	.studio-federal-page .cluster-hero--government .federal-actions {
		width: 100%;
		flex-direction: column;
	}

	.studio-federal-page .cluster-hero--government .federal-actions .fed-btn {
		width: 100%;
		justify-content: center;
		white-space: normal;
		text-align: center;
		line-height: 1.35;
		height: auto;
		min-height: 44px;
		padding-top: 12px;
		padding-bottom: 12px;
	}
}

/* Short / landscape mobile — tighter band, no overlap with section nav */
@media (max-width: 932px) and (orientation: landscape),
	(max-width: 782px) and (max-height: 480px) {
	body.studio-federal-page {
		--studio-federal-entity-pull: 0px;
		--studio-federal-entity-landing: 0px;
	}

	body.studio-federal-page .wp-site-blocks > .studio-hero.cluster-hero--government .cluster-hero__content {
		padding-top: clamp(0.65rem, 2.5svh, 1.1rem) !important;
		padding-bottom: clamp(0.75rem, 2.5svh, 1.25rem) !important;
	}

	.studio-federal-page .cluster-hero--government .studio-hero__title {
		font-size: clamp(1.35rem, 4.5vw, 1.85rem) !important;
		line-height: 1.1 !important;
		margin-bottom: 0.35rem !important;
	}

	.studio-federal-page .cluster-hero--government .studio-hero__sub {
		font-size: 0.9rem !important;
		line-height: 1.4 !important;
	}

	.studio-federal-page .cluster-hero--government .fed-info-card {
		margin-top: var(--wp--preset--spacing--30, 1rem);
	}
}

@media (max-width: 760px) {
	.studio-federal-page .fed-content-rail,
	.studio-federal-page .fed-section-nav {
		width: min(100% - 2.5rem, 1120px);
		margin-inline: auto;
	}

	.studio-federal-page main.studio-federal-page,
	.studio-federal-page .fed-content-rail {
		min-width: 0;
	}

	.studio-federal-page .fed-section-head,
	.studio-federal-page .fed-two-col,
	.studio-federal-page .fed-fit-cols,
	.studio-federal-page .fed-cta {
		grid-template-columns: 1fr;
	}

	.studio-federal-page .fed-fit-cols ul:first-child li:last-child {
		border-bottom: 1px solid rgba(26, 26, 26, 0.08);
		padding-bottom: 11px;
	}

	.studio-federal-page .fed-cta-actions {
		justify-content: flex-start;
	}

	.studio-federal-page .fed-cta__aside {
		align-items: stretch;
		max-width: 100%;
	}

	.studio-federal-page .fed-inquiry {
		max-width: none;
		text-align: left;
	}

	.studio-federal-page .fed-inquiry__fields {
		justify-content: stretch;
	}

	.studio-federal-page .fed-inquiry__fields input[type='text'],
	.studio-federal-page .fed-inquiry__fields input[type='email'] {
		flex: 1 1 100%;
		max-width: none;
	}

	.studio-federal-page .fed-inquiry__submit {
		width: 100%;
	}

	.studio-federal-page .fed-inquiry__note {
		text-align: left;
	}

	.studio-federal-page .fed-grid {
		grid-template-columns: 1fr;
	}

	.studio-federal-page .fed-code-row {
		grid-template-columns: 1fr;
		gap: 3px;
	}

	.studio-federal-page .fed-codes {
		padding-inline: clamp(1rem, 4vw, 1.5rem);
	}

	.studio-federal-page .fed-wide-card,
	.studio-federal-page .fed-card,
	.studio-federal-page .fed-lane-card,
	.studio-federal-page .fed-proof-card {
		padding-inline: clamp(1rem, 4vw, 1.375rem);
	}

	.studio-federal-page .fed-cta-btn {
		white-space: normal;
		text-align: center;
		line-height: 1.35;
		height: auto;
		min-height: 44px;
		padding-block: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.studio-federal-page .fed-btn,
	.studio-federal-page .fed-cta-btn {
		transition: none;
	}
}
