/* Styles theme.json can't express: telemetry labels, the viewfinder frame, hero video. */

.is-style-telemetry {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--amber-text);
}
.has-frame-background-color .is-style-telemetry,
.is-style-viewfinder .is-style-telemetry,
.wp-block-cover .is-style-telemetry {
	color: var(--wp--preset--color--amber);
}

.is-style-viewfinder {
	background: var(--wp--preset--color--frame);
	color: var(--wp--preset--color--frame-ink);
	border-radius: var(--wp--custom--radius--frame);
	overflow: hidden;
}

h1, h2, h3 {
	text-wrap: balance;
	font-stretch: 115%;
}
h3, h4 {
	font-stretch: 105%;
}

/* Hero: a Cover block with a looping video; the OSD row sits on top. */
.clearair-hero .clearair-osd {
	position: absolute;
	inset: 1rem 1.25rem auto;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--amber);
	pointer-events: none;
}
.clearair-hero .wp-block-cover__inner-container {
	max-width: var(--wp--style--global--wide-size);
}

/* Trust strip */
.clearair-trust {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Process steps are a real sequence, so they are numbered. */
.clearair-steps {
	counter-reset: step;
}
.clearair-steps > .wp-block-column {
	counter-increment: step;
	border-top: 2px solid currentColor;
	padding-top: var(--wp--preset--spacing--30);
}
.clearair-steps > .wp-block-column::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--amber-text);
	margin-bottom: 0.5rem;
}

/* Package cards: only the featured one gets a frame. */
.clearair-package {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--frame);
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--white);
	height: 100%;
}
.clearair-package.is-featured {
	border: 2px solid var(--wp--preset--color--ink);
}
.clearair-package ul {
	padding-left: 1.1em;
}
.clearair-package li::marker {
	color: var(--wp--preset--color--amber-text);
}

/* Sector tiles */
.clearair-sector .wp-block-cover {
	border-radius: var(--wp--custom--radius--small);
	overflow: hidden;
}

/* Header stays readable over the hero. */
.clearair-header {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .clearair-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--wp--preset--color--channel);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.clearair-hero video {
		display: none;
	}
}

.clearair-plain-list {
	list-style: none;
	padding-left: 0;
	line-height: 1.9;
}

/* Covers fall back to the frame colour until a video or image is set. */
.clearair-hero,
.clearair-sector .wp-block-cover {
	background-color: var(--wp--preset--color--frame);
}
.wp-block-cover.clearair-hero.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
}
.clearair-trust p {
	margin: 0;
}
.clearair-trust > .wp-block-group {
	row-gap: 0.4rem;
}

@media (max-width: 600px) {
	.clearair-header .wp-block-site-title {
		font-size: 0.9rem;
	}
	.clearair-header .wp-block-button__link {
		padding: 0.6em 1em;
	}
}

/* Compact sector tiles (matches staging Global Styles). */
.clearair-sector .wp-block-cover {
	min-height: 0;
	padding: 22px;
	border-top: 3px solid var(--wp--preset--color--amber);
	border-radius: 8px;
}
.clearair-sector .wp-block-cover h3 {
	font-size: var(--wp--preset--font-size--medium);
}

/* "What we film": the aerial card matches the FPV viewfinder box in height and padding. */
.wp-block-column:has(> .is-style-viewfinder) + .wp-block-column {
	display: flex;
}
.wp-block-column:has(> .is-style-viewfinder) + .wp-block-column > .clearair-package {
	flex: 1;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}
