/* CoF Hero — front end + editor.
 * Classic matches the legacy ACF "Cover Video or Image" block; Refined (default) softens it. */

.wp-block-cof-hero {
	--cof-hero-blue: var(--cityBlue1, #0063a7);   /* 6.3:1 on white */
	--cof-hero-green: #4a6b00;                     /* 6.4:1 on white */
	--cof-hero-dark-blue: #003f7f;
	position: relative;
	width: 100%;
	font-family: "proxima-nova", "Proxima Nova", sans-serif;
}
.wp-block-cof-hero.has-side-padding {
	padding-left: 2rem;
	padding-right: 2rem;
	box-sizing: border-box;
}

/* Media: 16:9 stage */
.wp-block-cof-hero .cof-hero__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #1d1d1d;
}
.wp-block-cof-hero .cof-hero__video,
.wp-block-cof-hero .cof-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Under the theme's see-through header (home + "fixedTop" template, 800px and up): crop from the
 * bottom so the sky stays behind the header, and a soft white fade so its black menu links keep
 * 4.5:1+ on any frame — short windows crop the sky away, and the night video has none (WCAG 1.4.3).
 * The fade covers the header's 174px; the panel (z-index 1, later in the DOM) stays above it. */
@media (min-width: 800px) {
	:is(body.home, body.page-template-page-fixedTop) .wp-block-cof-hero .cof-hero__video,
	:is(body.home, body.page-template-page-fixedTop) .wp-block-cof-hero .cof-hero__image {
		object-position: 50% 0;
	}
	:is(body.home, body.page-template-page-fixedTop) .wp-block-cof-hero .cof-hero__stage::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1;
		height: 200px;
		background: linear-gradient(to bottom, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.8) 70%, rgba(255, 255, 255, 0) 100%);
		pointer-events: none;
	}
}
/* Night media (view.js sets html.cof-hero-night): a dark band instead of the white fade, and the
 * header's lettering + menu turn white — 15:1+ on the band. Only until the theme's white sticky bar
 * takes over (header#masthead.moved). The logo <img> is masked down to its seal (left 27%) and the
 * white "City of Fresno" lettering (logo-text-white.svg, same artwork) is drawn behind it on the link. */
@media (min-width: 800px) {
	html.cof-hero-night :is(body.home, body.page-template-page-fixedTop) .wp-block-cof-hero .cof-hero__stage::before {
		background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 70%, rgba(0, 0, 0, 0) 100%);
	}
	html.cof-hero-night :is(body.home, body.page-template-page-fixedTop) header#masthead:not(.moved) .header-inner .custom-logo-link {
		background: url(logo-text-white.svg) left center / auto 100% no-repeat;
	}
	html.cof-hero-night :is(body.home, body.page-template-page-fixedTop) header#masthead:not(.moved) .header-inner .custom-logo {
		-webkit-mask-image: linear-gradient(to right, #000 27%, transparent 27%);
		mask-image: linear-gradient(to right, #000 27%, transparent 27%);
	}
	html.cof-hero-night :is(body.home, body.page-template-page-fixedTop) header#masthead:not(.moved) .header-inner nav.site-navigation ul li a,
	html.cof-hero-night :is(body.home, body.page-template-page-fixedTop) header#masthead:not(.moved) .header-inner nav.site-navigation ul li a:is(:hover, :focus) {
		color: #fff; /* the theme's City-blue hover is only 3.4:1 on black */
	}
	html.cof-hero-night :is(body.home, body.page-template-page-fixedTop) header#masthead:not(.moved) .header-inner nav.site-navigation ul li a::after {
		background-color: #fff; /* hover / focus underline */
	}
}
@media (min-width: 800px) and (forced-colors: active) {
	:is(body.home, body.page-template-page-fixedTop) .wp-block-cof-hero .cof-hero__stage::before {
		content: none;
	}
	html.cof-hero-night :is(body.home, body.page-template-page-fixedTop) header#masthead:not(.moved) .header-inner .custom-logo-link {
		background: none;
	}
	html.cof-hero-night :is(body.home, body.page-template-page-fixedTop) header#masthead:not(.moved) .header-inner .custom-logo {
		-webkit-mask-image: none;
		mask-image: none;
	}
}

/* The poster <img> paints first; the video fades in over it once it is actually playing */
.wp-block-cof-hero .cof-hero__video {
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.6s ease;
}
.wp-block-cof-hero.is-playing .cof-hero__video {
	opacity: 1;
}
.wp-block-cof-hero .cof-hero__tabs[hidden] {
	display: none;
}

/* Shortcuts (Classic: a simple row of white links on a dark strip, below the panel) */
.wp-block-cof-hero .cof-hero__shortcuts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.6rem 1rem;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
}
.wp-block-cof-hero .cof-hero__shortcuts-label {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.wp-block-cof-hero .cof-hero__shortcuts ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wp-block-cof-hero .cof-hero__shortcuts a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.wp-block-cof-hero .cof-hero__shortcuts a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* Pause / Play (WCAG 2.2.2) — 44px, white on dark with a white ring so it shows on any frame */
.wp-block-cof-hero .cof-hero__pause {
	position: absolute;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	cursor: pointer;
}
.wp-block-cof-hero .cof-hero__pause[hidden] {
	display: none;
}
.wp-block-cof-hero .cof-hero__pause:hover {
	background: rgba(0, 0, 0, 0.75);
}
.wp-block-cof-hero .cof-hero__pause:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--cof-hero-blue);
}
.wp-block-cof-hero .cof-hero__pause-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
/* Pause icon (two bars) → Play icon (triangle) */
.wp-block-cof-hero .cof-hero__pause-icon {
	width: 12px;
	height: 14px;
	border-left: 4px solid currentColor;
	border-right: 4px solid currentColor;
	box-sizing: border-box;
}
.wp-block-cof-hero .cof-hero__pause.is-paused .cof-hero__pause-icon {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent currentColor;
	margin-left: 3px;
}

/* Scroll arrow (desktop only, like the legacy block) */
.wp-block-cof-hero .cof-hero__scroll {
	display: none;
}
@media (min-width: 800px) {
	.wp-block-cof-hero .cof-hero__scroll {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		left: 50%;
		bottom: 1.25rem;
		z-index: 2;
		width: 64px;
		height: 48px;
		margin-left: -32px;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
		transition: transform 0.25s ease;
	}
	.wp-block-cof-hero .cof-hero__scroll svg {
		width: 50px;
		height: 50px;
		fill: rgba(255, 255, 255, 0.85);
		filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
		transition: fill 0.25s ease;
	}
	.wp-block-cof-hero .cof-hero__scroll:hover svg {
		fill: var(--cityGreen1, #687c3c);
	}
	.wp-block-cof-hero .cof-hero__scroll:hover {
		transform: translateY(3px);
	}
	.wp-block-cof-hero .cof-hero__scroll:focus-visible {
		outline: 3px solid #fff;
		outline-offset: 2px;
		box-shadow: 0 0 0 6px var(--cof-hero-blue);
		border-radius: 8px;
	}
}

/* Panel: centered over the media on desktop, below it on phones */
.wp-block-cof-hero .cof-hero__panel {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.wp-block-cof-hero .cof-hero__panel-inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	pointer-events: auto;
}

/* Guided Search */
.wp-block-cof-hero .cof-guide {
	display: flex;
	padding: 1rem 0.5rem;
	background: #fff;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}
.wp-block-cof-hero .cof-guide__field,
.wp-block-cof-hero .cof-guide__go {
	flex: 1 1 33%;
	padding: 0 7px;
	min-width: 0;
}
/* Like the legacy block on desktop: fixed 225px dropdowns and a result button sized to its text
   (a native <select> would otherwise size itself to its longest option). */
@media (min-width: 800px) {
	.wp-block-cof-hero .cof-guide__field,
	.wp-block-cof-hero .cof-guide__go {
		flex: 0 0 auto;
	}
	.wp-block-cof-hero .cof-guide__field .cof-guide__select {
		width: 225px;
	}
	/* Steady panel width whatever the button says ("Apply Now", "View", …): 174px = the legacy column */
	.wp-block-cof-hero .cof-guide__go {
		box-sizing: border-box;
		min-width: 174px;
	}
	.wp-block-cof-hero .cof-guide__go .cof-guide__btn {
		width: 100%;
	}
	/* The Guided Search row sets the panel width; the portal bar adds nothing to it and stretches to match */
	.wp-block-cof-hero .cof-guide + .cof-hero__tp,
	.wp-block-cof-hero noscript + .cof-hero__tp,
	.wp-block-cof-hero .cof-guide ~ .cof-hero__shortcuts {
		width: 0;
		min-width: 100%;
		box-sizing: border-box;
	}
}
.wp-block-cof-hero .cof-guide__field label {
	display: flex;
	justify-content: center;
	padding: 0 0 0.5rem;
	margin: 0;
	color: var(--cof-hero-blue);
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.wp-block-cof-hero .cof-guide__field.is-step2 label {
	color: var(--cof-hero-green);
}
.wp-block-cof-hero .cof-guide__select {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	width: 100%;
	min-width: 225px;
	min-height: 55px;
	margin: 0;
	padding: 0 3rem 0 18px;
	border: 3px solid #ccc;
	border-radius: 0;
	/* Same chevron as the legacy nice-select: a 15px square, 3px #ccc border, rotated 45° */
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 16'%3E%3Cpath d='M2.5 2.5l10.5 10.5 10.5-10.5' fill='none' stroke='%23ccc' stroke-width='3.2'/%3E%3C/svg%3E") no-repeat right 16px center / 22px 14px;
	color: #404040;
	font-family: inherit;
	font-size: 1.1rem;
	font-weight: 700;
	cursor: pointer;
}
.wp-block-cof-hero .cof-guide__select:hover {
	border-color: #999;
}
.wp-block-cof-hero .cof-guide__select:focus-visible {
	outline: 3px solid var(--cof-hero-blue);
	outline-offset: 2px;
	border-color: var(--cof-hero-blue);
}
.wp-block-cof-hero .cof-guide__go {
	display: flex;
	align-items: flex-end;
}
.wp-block-cof-hero .cof-guide__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: auto;
	white-space: nowrap;
	min-height: 52px;
	padding: 0.75rem 1.5rem;
	background-color: var(--cof-hero-blue);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 2px;
	line-height: 1.5;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.25s ease-in-out;
}
.wp-block-cof-hero .cof-guide__btn:hover,
.wp-block-cof-hero .cof-guide__btn:focus-visible {
	background-color: #000;
	color: #fff;
	text-decoration: none;
}
.wp-block-cof-hero .cof-guide__btn:focus-visible {
	outline: 3px solid var(--cof-hero-blue);
	outline-offset: 3px;
}
.wp-block-cof-hero .cof-guide__fallback {
	background: #fff;
	padding: 1rem 1.5rem;
	max-height: 60vh;
	overflow: auto;
}

/* Transparency Portal */
.wp-block-cof-hero .cof-hero__tp {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem 1rem;
	background-color: var(--cof-hero-blue);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}
.wp-block-cof-hero .cof-hero__tp-label {
	flex-shrink: 0;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	white-space: nowrap;
}
.wp-block-cof-hero .cof-hero__tp-form {
	display: flex;
	flex: 1;
	min-width: 0;
	margin: 0;
}
.wp-block-cof-hero .cof-hero__tp-input {
	flex: 1 1 0;
	width: 0;
	min-width: 0;
	height: 38px;
	margin: 0;
	padding: 0 0.75rem;
	border: 0;
	border-radius: 0;
	color: #333;
	font-family: inherit;
	font-size: 0.9rem;
}
.wp-block-cof-hero .cof-hero__tp-input::placeholder {
	color: #6b6b6b; /* 5.3:1 — the legacy #999 was 2.8:1 */
}
.wp-block-cof-hero .cof-hero__tp-input:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}
.wp-block-cof-hero .cof-hero__tp-submit {
	height: 38px;
	min-width: 44px;
	padding: 0 1rem;
	border: 0;
	background-color: var(--cof-hero-dark-blue);
	color: #fff;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 1px;
	cursor: pointer;
	transition: background-color 0.25s ease-in-out;
}
.wp-block-cof-hero .cof-hero__tp-submit:hover,
.wp-block-cof-hero .cof-hero__tp-submit:focus-visible {
	background-color: #000;
}
.wp-block-cof-hero .cof-hero__tp-submit:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* Phones: panel flows below the media */
@media (max-width: 799px) {
	.wp-block-cof-hero .cof-hero__panel {
		position: relative;
		inset: auto;
		display: block;
		pointer-events: auto;
	}
	.wp-block-cof-hero .cof-hero__panel-inner {
		width: 100%;
	}
	.wp-block-cof-hero .cof-guide {
		flex-direction: column;
		gap: 1.5rem;
		padding: 2rem 1rem;
		box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	}
	.wp-block-cof-hero .cof-guide__field label {
		font-size: 1.5rem;
	}
	.wp-block-cof-hero .cof-guide__select {
		min-width: 0;
	}
	.wp-block-cof-hero .cof-guide__btn {
		width: 100%;
	}
	.wp-block-cof-hero .cof-hero__tp {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
		margin-bottom: 1.5rem;
		padding-bottom: 1rem;
	}
	.wp-block-cof-hero .cof-hero__tp-label {
		text-align: center;
	}
	.wp-block-cof-hero .cof-hero__pause {
		right: 0.75rem;
		bottom: 0.75rem;
	}
}

/* -----------------------------------------------------------------------------------------------
 * Refined: the improved hero.
 * Desktop: shorter hero (content peeks below), one frosted card with tabs, sentence-style row
 *          ("I want to [Apply ▾] [Business License ▾] [Apply Now]") and popular-task shortcuts.
 * Phones:  taller photo with the card overlapping it, compact labels, dropdowns side by side.
 * Text contrast: #1d1d1d / #33414f on white or near-white (11:1+); blue #0063a7 on white 6.3:1.
 * --------------------------------------------------------------------------------------------- */
.wp-block-cof-hero.is-style-refined {
	--cof-hero-line: #cfd6dd;
	--cof-hero-ink: #1d1d1d;
	--cof-hero-soft: #33414f;
}
.wp-block-cof-hero.is-style-refined .cof-hero__panel-inner {
	gap: 0.9rem;
	padding: 1.1rem 1.4rem 1.3rem;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.93);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 22px 48px rgba(0, 0, 0, 0.32);
}

/* Tabs */
.wp-block-cof-hero.is-style-refined .cof-hero__tabs {
	display: inline-flex;
	align-self: flex-start;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: #eef2f6;
}
.wp-block-cof-hero.is-style-refined .cof-hero__tab {
	min-height: 36px;
	padding: 0.4rem 1rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--cof-hero-soft);
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
}
.wp-block-cof-hero.is-style-refined .cof-hero__tab[aria-selected="true"] {
	background: #fff;
	color: var(--cof-hero-blue);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.wp-block-cof-hero.is-style-refined .cof-hero__tab:focus-visible {
	outline: 3px solid var(--cof-hero-blue);
	outline-offset: 2px;
}
.wp-block-cof-hero.is-style-refined [role="tabpanel"][hidden] {
	display: none !important;
}
/* While the portal tab is open, the (hidden) Guided Search row still sets the card width so the card
   doesn't jump in size. visibility:hidden keeps it out of the tab order and the accessibility tree. */
@media (min-width: 800px) {
	.wp-block-cof-hero.is-style-refined .cof-guide[role="tabpanel"][hidden] {
		display: flex !important;
		visibility: hidden;
		height: 0;
		overflow: hidden;
		margin-bottom: -0.9rem;
	}
}

/* Guided Search sits inside the card */
.wp-block-cof-hero.is-style-refined .cof-guide {
	align-items: center;
	gap: 0.75rem;
	padding: 0;
	background: none;
	box-shadow: none;
}
.wp-block-cof-hero.is-style-refined .cof-guide__field,
.wp-block-cof-hero.is-style-refined .cof-guide__go {
	padding: 0;
}
.wp-block-cof-hero.is-style-refined .cof-guide__field.is-step1 {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
/* "I want to" reads as the start of the sentence */
.wp-block-cof-hero.is-style-refined .cof-guide__field.is-step1 label {
	padding: 0;
	color: var(--cof-hero-ink);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
}
/* The second dropdown keeps its label for screen readers ("Apply..."); visually the sentence carries it */
.wp-block-cof-hero.is-style-refined .cof-guide__field.is-step2 label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	padding: 0;
}
.wp-block-cof-hero.is-style-refined .cof-guide__select {
	min-height: 52px;
	border: 2px solid var(--cof-hero-line);
	border-radius: 12px;
	background-color: #fff;
	color: var(--cof-hero-ink);
	font-size: 1.05rem;
}
.wp-block-cof-hero.is-style-refined .cof-guide__select:hover {
	border-color: #9aa6b2;
}
.wp-block-cof-hero.is-style-refined .cof-guide__go {
	min-width: 0;
}
.wp-block-cof-hero.is-style-refined .cof-guide__btn {
	min-height: 52px;
	padding: 0.75rem 1.6rem;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: none;
	box-shadow: 0 6px 16px rgba(0, 99, 167, 0.35);
}
.wp-block-cof-hero.is-style-refined .cof-guide__btn:hover,
.wp-block-cof-hero.is-style-refined .cof-guide__btn:focus-visible {
	background-color: #004b80;
}

/* Transparency Portal as a tab panel: one search row */
.wp-block-cof-hero.is-style-refined .cof-hero__tp {
	padding: 0;
	background: none;
	box-shadow: none;
}
.wp-block-cof-hero.is-style-refined.has-tabs .cof-hero__tp-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
}
.wp-block-cof-hero.is-style-refined:not(.has-tabs) .cof-hero__tp-label {
	color: var(--cof-hero-blue);
}
.wp-block-cof-hero.is-style-refined .cof-hero__tp-input {
	height: 52px;
	padding: 0 1.1rem;
	border: 2px solid var(--cof-hero-line);
	border-right: 0;
	border-radius: 999px 0 0 999px;
	font-size: 1rem;
}
.wp-block-cof-hero.is-style-refined .cof-hero__tp-input:focus-visible {
	outline: 3px solid var(--cof-hero-blue);
	outline-offset: 2px;
}
.wp-block-cof-hero.is-style-refined .cof-hero__tp-submit {
	height: 52px;
	padding: 0 1.4rem;
	border-radius: 0 999px 999px 0;
	background-color: var(--cof-hero-blue);
	font-size: 0.95rem;
}
.wp-block-cof-hero.is-style-refined .cof-hero__tp-submit:focus-visible {
	outline: 3px solid var(--cof-hero-blue);
	outline-offset: 2px;
}

/* Popular-task shortcuts inside the card */
.wp-block-cof-hero.is-style-refined .cof-hero__shortcuts {
	gap: 0.5rem 0.75rem;
	padding: 0.85rem 0 0;
	border-top: 1px solid #e3e8ed;
	background: none;
	color: var(--cof-hero-soft);
}
.wp-block-cof-hero.is-style-refined .cof-hero__shortcuts-label {
	color: var(--cof-hero-soft);
	font-size: 0.72rem;
}
.wp-block-cof-hero.is-style-refined .cof-hero__shortcuts ul {
	gap: 0.5rem;
}
.wp-block-cof-hero.is-style-refined .cof-hero__shortcuts a {
	min-height: 32px;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	background: #f1f4f7;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
	color: var(--cof-hero-ink);
	font-size: 0.875rem;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.wp-block-cof-hero.is-style-refined .cof-hero__shortcuts a:hover {
	background: var(--cof-hero-blue);
	color: #fff;
}
.wp-block-cof-hero.is-style-refined .cof-hero__shortcuts a:focus-visible {
	outline: 3px solid var(--cof-hero-blue);
	outline-offset: 2px;
}

/* Desktop: hero capped so the next section peeks into view */
@media (min-width: 800px) {
	.wp-block-cof-hero.is-style-refined .cof-hero__stage {
		aspect-ratio: auto;
		height: min(56.25vw, 78vh);
		min-height: 480px;
	}
}

/* Phones: taller photo, card overlapping it, compact two-column form */
@media (max-width: 799px) {
	.wp-block-cof-hero.is-style-refined .cof-hero__stage {
		aspect-ratio: auto;
		height: 46vh;
		min-height: 240px;
		max-height: 420px;
	}
	.wp-block-cof-hero.is-style-refined .cof-hero__panel {
		z-index: 4;
		margin-top: -72px;
		padding: 0 16px 1.5rem;
	}
	.wp-block-cof-hero.is-style-refined .cof-hero__panel-inner {
		width: auto;
		padding: 1rem;
		border-radius: 18px;
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	}
	.wp-block-cof-hero.is-style-refined .cof-hero__tabs {
		display: flex;
		align-self: stretch;
	}
	.wp-block-cof-hero.is-style-refined .cof-hero__tab {
		flex: 1;
		padding: 0.4rem 0.5rem;
	}
	.wp-block-cof-hero.is-style-refined .cof-guide {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem;
		padding: 0;
		box-shadow: none;
	}
	.wp-block-cof-hero.is-style-refined .cof-guide__field,
	.wp-block-cof-hero.is-style-refined .cof-guide__field.is-step1 {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.35rem;
		min-width: 0;
	}
	.wp-block-cof-hero.is-style-refined .cof-guide__field label,
	.wp-block-cof-hero.is-style-refined .cof-guide__field.is-step1 label,
	.wp-block-cof-hero.is-style-refined .cof-guide__field.is-step2 label {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
		clip-path: none;
		justify-content: flex-start;
		padding: 0;
		font-size: 0.75rem;
		font-weight: 800;
		letter-spacing: 1.5px;
		text-transform: uppercase;
		white-space: nowrap;
	}
	.wp-block-cof-hero.is-style-refined .cof-guide__field.is-step1 label {
		color: var(--cof-hero-blue);
	}
	.wp-block-cof-hero.is-style-refined .cof-guide__select {
		min-height: 48px;
		padding-left: 12px;
		padding-right: 2.25rem;
		background-position: right 12px center;
		font-size: 1rem;
	}
	.wp-block-cof-hero.is-style-refined .cof-guide__go {
		grid-column: 1 / -1;
	}
	.wp-block-cof-hero.is-style-refined .cof-guide__btn {
		width: 100%;
		min-height: 48px;
	}
	.wp-block-cof-hero.is-style-refined .cof-hero__tp {
		flex-direction: row;
		align-items: stretch;
		margin: 0;
		padding: 0;
	}
	.wp-block-cof-hero.is-style-refined .cof-hero__tp-input,
	.wp-block-cof-hero.is-style-refined .cof-hero__tp-submit {
		height: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-cof-hero .cof-hero__video,
	.wp-block-cof-hero.is-style-refined .cof-hero__shortcuts a,
	.wp-block-cof-hero .cof-hero__scroll,
	.wp-block-cof-hero .cof-hero__scroll svg,
	.wp-block-cof-hero .cof-guide__btn,
	.wp-block-cof-hero .cof-hero__tp-submit {
		transition: none;
	}
	.wp-block-cof-hero .cof-hero__scroll:hover {
		transform: none;
	}
}

@media (forced-colors: active) {
	.wp-block-cof-hero .cof-guide,
	.wp-block-cof-hero .cof-hero__tp {
		border: 1px solid CanvasText;
	}
	.wp-block-cof-hero .cof-guide__select {
		background-image: none;
	}
	.wp-block-cof-hero .cof-hero__pause-icon {
		border-color: ButtonText;
	}
}
