/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/*
 * Self-hosted fallback for the Adobe Fonts kit (Eurostile / Eurostile Extended).
 * Used only when use.typekit.net is blocked (antivirus, privacy filters, offline):
 * the Bricks typography stacks read "eurostile, eurostile-local, …" and
 * "eurostile-extended, eurostile-extended-local, …".
 */
@font-face {
	font-family: "eurostile-local";
	src: url("assets/fonts/eurostile-local.woff2") format("woff2"),
	     url("assets/fonts/eurostile-local.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "eurostile-extended-local";
	src: url("assets/fonts/eurostile-extended-local.woff2") format("woff2"),
	     url("assets/fonts/eurostile-extended-local.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/*
 * Back-to-top button (markup from functions.php, behaviour in bss.js).
 * Hidden until the visitor has scrolled down; then fixed bottom right.
 */
.bss-to-top {
	position: fixed;
	right: clamp(16px, 2.5vw, 40px);
	bottom: clamp(16px, 2.5vw, 40px);
	z-index: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--bss-control-h, 44px);
	height: var(--bss-control-h, 44px);
	background: var(--bss-slate-800, #2C3A44);
	color: var(--bss-white, #fff);
	border: 1px solid var(--bss-line-control, rgba(184,175,166,0.4));
	border-radius: var(--bss-radius, 2px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s, border-color .2s ease, background-color .2s ease;
}
.bss-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.bss-to-top:hover {
	background: var(--bss-slate, #475C6B);
	border-color: var(--bss-taupe, #B8AFA6);
}
.bss-to-top:focus-visible {
	outline: 2px solid var(--bss-taupe, #B8AFA6);
	outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
	.bss-to-top { transition: none; transform: none; }
}

/*
 * Mobile menu (≤767px, Bricks tablet_portrait): Contact moves
 * out of the header row into the open menu, which also gets the logo at the top.
 * The .bss-mnav items only exist inside the open menu.
 */
.brxe-nav-nested:not(.brx-open) .menu-item:has(> .bss-mnav) { display: none; }
@media (max-width: 767px) {
	#brx-header #brxe-fu3ihm { display: none !important; }
	#brx-header #brxe-srkuqa { justify-content: flex-end; }
}
.brxe-nav-nested.brx-open .menu-item:has(> .bss-mnav-logo) {
	position: absolute;
	top: 0;
	left: var(--bss-gutter);
	height: 84px;
	display: flex;
	align-items: center;
}
.brxe-nav-nested.brx-open .menu-item:has(> .brx-toggle-div) {
	position: absolute;
	top: 0;
	right: var(--bss-gutter);
	height: 84px;
	display: flex;
	align-items: center;
}
.brxe-nav-nested.brx-open .bss-mnav-logo,
.brxe-nav-nested.brx-open .bss-mnav-logo img { width: 108px !important; height: auto !important; }
.brxe-nav-nested.brx-open .bss-mnav-actions {
	flex-direction: row;
	align-items: center;
	gap: 12px;
	margin-top: var(--bss-space-5, 32px);
	padding-top: var(--bss-space-5, 32px);
	border-top: 1px solid var(--bss-line);
	width: 100%;
}
.brxe-nav-nested.brx-open .menu-item:has(> .bss-mnav-actions) { width: 100%; }
.brxe-nav-nested.brx-open .bss-mnav-actions a.brxe-button { width: auto; }
/* Open mobile menu: bigger links than the desktop header row (10px there) */
.brxe-nav-nested.brx-open .bss-nav-link { font-size: 14px; padding-top: 14px; padding-bottom: 14px; }

/*
 * CTA skyline: network/skyline silhouette as a background behind the CTA band's text.
 * Add class bss-section--skyline to the section (the band colour comes from bss-section--band).
 * Lives here (unlayered) so it stacks with the Bricks class background colour.
 */
.bss-section--skyline {
	/* footer-siloette (2026-11-17), made transparent so the band colour shows through */
	background-image: url("/wp-content/uploads/2026/11/bss-cta-silhouette.png");
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 100% auto;
}
/* Phones: at full width the artwork would be a thin strip; show the centre twice as big */
@media (max-width: 767px) {
	.bss-section--skyline { background-size: 220% auto; }
}

/* Phones: logo, menu and Contact fit in one header row */
@media (max-width: 478px) {
	#brx-header .brxe-container { column-gap: 12px !important; }
	#brx-header .brxe-container > * { margin-left: 0 !important; margin-right: 0 !important; }
	#brx-header .brxe-container > .brxe-image,
	#brx-header .brxe-container > .brxe-image img { width: 108px !important; height: auto; }
	#brx-header .bss-btn--sm { padding-left: 14px !important; padding-right: 14px !important; }
}

/*
 * Phones: a single long word in a big heading (job titles, "IMPLEMENTATION") must
 * never push the page sideways. Only breaks a word that cannot fit on a line by itself.
 */
@media (max-width: 478px) {
	h1, h2, h3, .bss-page-title, .bss-payoff { overflow-wrap: anywhere; }
}

/* Very small phones (320px, e.g. iPhone SE 1st gen): tighten the header row further */
@media (max-width: 359px) {
	#brx-header .brxe-container { column-gap: 8px !important; }
	#brx-header .brxe-container > .brxe-image,
	#brx-header .brxe-container > .brxe-image img { width: 92px !important; }
	#brx-header .bss-btn--sm { padding-left: 10px !important; padding-right: 10px !important; }
}

/*
 * Phones: the hero photos have tracking labels drawn into them ("Tracked 1082 m",
 * "UAS-01 · ISR quad"). The narrow phone crop put them behind the heading, so shift
 * the crop to a part of the photo without labels.
 */
@media (max-width: 478px) {
	body.home #top > .brxe-image { object-position: 28% 40% !important; } /* Home: dome hero (element id changes on rebuild) */
	body.page-id-100 #top { background-position: 25% 50% !important; } /* Capabilities hero */
}

/*
 * Page title (H1): 60px space above it on a 1440px screen, scaled with the screen
 * width so it keeps the same proportion on every device (60 / 1440 = 4.1667vw).
 */
#brx-content h1 { margin-top: min(4.1667vw, 60px); }

/*
 * Sticky header offset. The Bricks header (sticky, slides up after 60px) is
 * position: fixed, so it would cover the top of every page. Push the content down
 * by the header's height; bss.js keeps --bss-header-h equal to the real height.
 */
:root { --bss-header-h: 85px; }
@media (max-width: 767px) { :root { --bss-header-h: 68px; } }
body:has(#brx-header.brx-sticky) #brx-content { padding-top: var(--bss-header-h); }

/*
 * Complianz cookie banner in BSS colours. Complianz sets its --cmplz_* variables on
 * :root; these override them with bss-* variables. Fonts and button style follow .bss-btn.
 */
html:root {
	--cmplz_banner_background_color: var(--bss-raised) !important;
	--cmplz_banner_border_color: var(--bss-line-strong) !important;
	--cmplz_banner_border_width: 1px !important;
	--cmplz_banner_border_radius: var(--bss-radius) !important;
	--cmplz_text_color: var(--bss-silver) !important;
	--cmplz_hyperlink_color: var(--bss-taupe) !important;
	--cmplz_button_border_radius: var(--bss-radius) !important;
	--cmplz_button_accept_background_color: var(--bss-taupe) !important;
	--cmplz_button_accept_border_color: var(--bss-taupe) !important;
	--cmplz_button_accept_text_color: var(--bss-graphite) !important;
	--cmplz_button_deny_background_color: transparent !important;
	--cmplz_button_deny_border_color: var(--bss-slate-400) !important;
	--cmplz_button_deny_text_color: var(--bss-white) !important;
	--cmplz_button_settings_background_color: transparent !important;
	--cmplz_button_settings_border_color: var(--bss-slate-400) !important;
	--cmplz_button_settings_text_color: var(--bss-white) !important;
	--cmplz_category_header_always_active_color: var(--bss-taupe) !important;
	--cmplz_slider_active_color: var(--bss-taupe) !important;
	--cmplz_slider_inactive_color: var(--bss-slate-400) !important;
	--cmplz_slider_bullet_color: var(--bss-graphite) !important;
}
.cmplz-cookiebanner,
#cmplz-manage-consent .cmplz-manage-consent {
	font-family: eurostile, eurostile-local, Arial, sans-serif;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35) !important;
}
.cmplz-cookiebanner .cmplz-title,
.cmplz-cookiebanner .cmplz-category-title,
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn,
#cmplz-manage-consent .cmplz-manage-consent {
	font-family: eurostile-extended, eurostile-extended-local, Arial, sans-serif !important;
	text-transform: uppercase;
	letter-spacing: var(--bss-track-label, 0.14em);
	font-weight: 400 !important;
}
.cmplz-cookiebanner .cmplz-title { color: var(--bss-white) !important; }
.cmplz-cookiebanner .cmplz-category { background-color: var(--bss-graphite) !important; border-radius: var(--bss-radius) !important; }
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
	font-size: var(--bss-fs-label, 12px) !important;
	transition: background-color .2s, color .2s, border-color .2s;
}
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn:hover {
	background-color: var(--bss-white) !important;
	border-color: var(--bss-white) !important;
	color: var(--bss-graphite) !important;
}
.cmplz-cookiebanner .cmplz-btn:focus-visible,
.cmplz-cookiebanner a:focus-visible,
.cmplz-cookiebanner .cmplz-close:focus-visible {
	outline: 2px solid var(--bss-taupe) !important;
	outline-offset: 2px;
}
.cmplz-cookiebanner .cmplz-close { color: var(--bss-slate-100) !important; }
.cmplz-cookiebanner .cmplz-links .cmplz-link:hover { color: var(--bss-white) !important; }


/*
 * No sideways page scroll. ScrollTrigger pins (position: fixed with a pixel width)
 * and decorative elements can stick out a pixel or two past the viewport; clip
 * (not hidden) keeps sticky/fixed positioning working.
 */
html { overflow-x: clip; }

/*
 * Home: transparent header over the hero (user request 2026-11-10). The hero runs
 * under the fixed header (its own top padding clears the menu); js/animations.js adds
 * body.bss-past-hero once the hero (incl. the pinned video stretch) has scrolled
 * away, which brings the normal solid header back.
 */
body.home:has(#brx-header.brx-sticky) #brx-content { padding-top: 0; }
#brx-header > .brxe-section { transition: background-color .35s ease, border-color .35s ease, background-image .35s ease; }
body.home:not(.bss-past-hero) #brx-header > .brxe-section {
	background-color: transparent !important;
	background-image: linear-gradient(to bottom, color-mix(in srgb, var(--bss-graphite) 45%, transparent), transparent) !important;
	background-origin: border-box;
	border-bottom-color: transparent !important;
}
/* Home: keep the menu on screen over the hero (no slide-up hide until past the hero). */
body.home:not(.bss-past-hero) #brx-header.slide-up {
	transform: none;
	overflow: visible;
}
/* Home hero: white menu links over the video (user 2026-11-10). */
body.home:not(.bss-past-hero) #brx-header .bss-nav-link { color: var(--bss-white); }

/*
 * Light interlacing on photos: add class bss-interlace to the photo's wrapper
 * (e.g. a bss-frame). Thin horizontal scanlines over the image, under the frame corners.
 * Challenge photos (bss-oc__media) already use ::before for their fade, so the
 * lines are added as an extra layer there.
 */
.bss-interlace::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--bss-graphite) 18%, transparent) 0 1px, transparent 1px 3px);
}
.bss-interlace.bss-oc__media::before {
	background:
		repeating-linear-gradient(180deg, color-mix(in srgb, var(--bss-graphite) 18%, transparent) 0 1px, transparent 1px 3px),
		linear-gradient(to bottom, rgba(18,22,25,0) 40%, rgba(18,22,25,.9));
}

/* ==========================================================================
 * Tablet + mobile optimisation (2026-11-11). Selectors start with `body` so they
 * outrank the Bricks class CSS, which is printed after this file.
 * ========================================================================== */

/* Header: the menu button takes over below 1150px (nav-nested custom breakpoint),
 * because the 7 links + Contact no longer fit on one line. Button sits on the right,
 * next to Contact, with a 44px tap target. */
@media (max-width: 1150px) {
	#brx-header .brxe-nav-nested { justify-content: flex-end; }
}
/* Just above that point the 8 links (Training added 2026-11-17) need slightly
 * tighter spacing to stay on one row. */
@media (min-width: 1151px) and (max-width: 1260px) {
	#brx-header #brxe-ykndbz { column-gap: 10px; }
	#brx-header #brxe-ykndbz .bss-nav-link { font-size: 10px; letter-spacing: 0.06em; }
}
/* Nav links are 11.5px regular since 2026-11-18 (user: bigger, then a tiny bit smaller); one step
 * smaller between 1261 and 1439px so the 8 links stay on one row. */
@media (min-width: 1261px) and (max-width: 1439px) {
	#brx-header #brxe-ykndbz { column-gap: 16px; }
	#brx-header #brxe-ykndbz .bss-nav-link { font-size: 10.5px; letter-spacing: 0.08em; }
}
/* Tablet (menu button showing, Contact visible): Contact first, menu button far
 * right (user 2026-11-18). */
@media (min-width: 768px) and (max-width: 1150px) {
	#brx-header #brxe-fu3ihm { order: 2; margin-left: auto; }
	#brx-header #brxe-srkuqa { order: 3; flex-grow: 0; }
	/* open menu fills the tablet screen: 14px links looked tiny there (go-live check 2026-11-18) */
	#brx-header .brxe-nav-nested.brx-open .bss-nav-link { font-size: 18px; }
}
/* Careers hero buttons on tablets: Safari renders Eurostile wider, so "Send an open
 * application" wrapped inside its half-width button. Buttons now size to their text
 * and drop to their own row when both don't fit (go-live check 2026-11-18). */
@media (min-width: 768px) and (max-width: 991px) {
	body #brxe-xa5bjb { flex-wrap: wrap; }
	body #brxe-xa5bjb > .bss-btn { flex: 1 1 auto; white-space: nowrap; }
}
/* (no display here: Bricks shows/hides the toggle per breakpoint) */
#brx-header .brxe-toggle {
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
}
/* Hamburger (2026-11-12, user): square bars, right-aligned, stepping shorter
 * top → bottom (100% / 85% / 60%). .brxa-inner = middle bar, ::before = top,
 * ::after = bottom (positioned inside the middle bar, so right:0 aligns them). */
#brx-header .brxe-toggle .brxa-inner,
#brx-header .brxe-toggle .brxa-inner::before,
#brx-header .brxe-toggle .brxa-inner::after {
	border-radius: 0 !important;
	left: auto !important;
	right: 0 !important;
}
#brx-header .brxe-toggle .brxa-inner { width: 34px !important; }
#brx-header .brxe-toggle .brxa-inner::before { width: 40px !important; }
#brx-header .brxe-toggle .brxa-inner::after { width: 24px !important; }
/* Close button in the open menu: same square 4px bars as an X (icon font hidden) */
#brx-header .brxe-toggle.brx-toggle-div { position: relative; }
#brx-header .brxe-toggle.brx-toggle-div > i { visibility: hidden; }
#brx-header .brxe-toggle.brx-toggle-div::before,
#brx-header .brxe-toggle.brx-toggle-div::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 32px;
	height: 4px;
	background: currentColor;
	border-radius: 0;
}
#brx-header .brxe-toggle.brx-toggle-div::before { transform: translate(-50%, -50%) rotate(45deg); }
#brx-header .brxe-toggle.brx-toggle-div::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Menu button motion (2026-11-12, user: "more natural"):
 * hamburger: on hover / tap the shorter bars slide out to full width, staggered;
 * close X: bars draw in one after the other when the menu opens, quarter turn on hover. */
@media (prefers-reduced-motion: no-preference) {
	#brx-header .brxe-toggle .brxa-inner,
	#brx-header .brxe-toggle .brxa-inner::before,
	#brx-header .brxe-toggle .brxa-inner::after {
		transition: width .35s cubic-bezier(.22, .61, .36, 1) !important;
	}
	#brx-header .brxe-toggle .brxa-inner { transition-delay: .05s !important; }
	#brx-header .brxe-toggle .brxa-inner::after { transition-delay: .1s !important; }
	#brx-header .brxe-toggle:hover .brxa-inner,
	#brx-header .brxe-toggle:hover .brxa-inner::after,
	#brx-header .brxe-toggle:focus-visible .brxa-inner,
	#brx-header .brxe-toggle:focus-visible .brxa-inner::after,
	#brx-header .brxe-toggle:active .brxa-inner,
	#brx-header .brxe-toggle:active .brxa-inner::after { width: 40px !important; }

	#brx-header .brxe-nav-nested.brx-open .brxe-toggle.brx-toggle-div::before {
		animation: bss-x-draw-a .4s cubic-bezier(.22, .61, .36, 1) .1s both;
	}
	#brx-header .brxe-nav-nested.brx-open .brxe-toggle.brx-toggle-div::after {
		animation: bss-x-draw-b .4s cubic-bezier(.22, .61, .36, 1) .22s both;
	}
	#brx-header .brxe-toggle.brx-toggle-div { transition: transform .35s cubic-bezier(.22, .61, .36, 1); }
	#brx-header .brxe-toggle.brx-toggle-div:hover,
	#brx-header .brxe-toggle.brx-toggle-div:focus-visible,
	#brx-header .brxe-toggle.brx-toggle-div:active { transform: rotate(90deg); }
}
/* Mobile menu panel slides in from the right (2026-11-12, user). Bricks only toggles
 * opacity/visibility (in its CSS layer, so these unlayered rules win). Background is set
 * on the closed state too, otherwise the panel turns white while sliding out. */
@media (max-width: 1150px) {
	#brx-header .brxe-nav-nested .brx-nav-nested-items { background-color: var(--bss-slate-800); }
}
@media (max-width: 1150px) and (prefers-reduced-motion: no-preference) {
	#brx-header .brxe-nav-nested .brx-nav-nested-items {
		opacity: 1;
		transform: translateX(100%);
		transition: transform .45s cubic-bezier(.65, 0, .35, 1), visibility 0s linear .45s;
	}
	#brx-header .brxe-nav-nested.brx-open .brx-nav-nested-items {
		transform: translateX(0);
		transition: transform .5s cubic-bezier(.22, .61, .36, 1), visibility 0s;
	}
	/* Closing: Bricks adds .brx-closing and hides the list with a layered !important
	 * (can't be overridden), so a stand-in panel (::before on the nav, behind the list)
	 * follows the menu in and slides back out to the right on close. */
	#brx-header .brxe-nav-nested::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 1000;
		background-color: var(--bss-slate-800);
		transform: translateX(100%);
		visibility: hidden;
		pointer-events: none;
		transition: transform .45s cubic-bezier(.65, 0, .35, 1), visibility 0s linear .45s;
	}
	#brx-header .brxe-nav-nested.brx-open::before {
		transform: translateX(0);
		visibility: visible;
		transition: transform .5s cubic-bezier(.22, .61, .36, 1), visibility 0s;
	}
	#brx-header .brxe-nav-nested.brx-open.brx-closing::before {
		transform: translateX(100%);
		transition: transform .45s cubic-bezier(.65, 0, .35, 1), visibility 0s linear .45s;
	}
	#brx-header .brxe-nav-nested.brx-closing .brx-nav-nested-items > * { animation: none; }
	/* links follow a moment later, slightly staggered */
	#brx-header .brxe-nav-nested.brx-open .brx-nav-nested-items > * {
		animation: bss-menu-item-in .45s cubic-bezier(.22, .61, .36, 1) both;
	}
	#brx-header .brxe-nav-nested.brx-open .brx-nav-nested-items > :nth-child(2) { animation-delay: .12s; }
	#brx-header .brxe-nav-nested.brx-open .brx-nav-nested-items > :nth-child(3) { animation-delay: .16s; }
	#brx-header .brxe-nav-nested.brx-open .brx-nav-nested-items > :nth-child(4) { animation-delay: .2s; }
	#brx-header .brxe-nav-nested.brx-open .brx-nav-nested-items > :nth-child(5) { animation-delay: .24s; }
	#brx-header .brxe-nav-nested.brx-open .brx-nav-nested-items > :nth-child(6) { animation-delay: .28s; }
	#brx-header .brxe-nav-nested.brx-open .brx-nav-nested-items > :nth-child(7) { animation-delay: .32s; }
	#brx-header .brxe-nav-nested.brx-open .brx-nav-nested-items > :nth-child(8) { animation-delay: .36s; }
	#brx-header .brxe-nav-nested.brx-open .brx-nav-nested-items > :nth-child(n+9) { animation-delay: .4s; }
}
@keyframes bss-menu-item-in {
	from { opacity: 0; transform: translateX(24px); }
	to   { opacity: 1; transform: none; }
}
@keyframes bss-x-draw-a {
	from { transform: translate(-50%, -50%) rotate(45deg) scaleX(0); }
	to   { transform: translate(-50%, -50%) rotate(45deg) scaleX(1); }
}
@keyframes bss-x-draw-b {
	from { transform: translate(-50%, -50%) rotate(-45deg) scaleX(0); }
	to   { transform: translate(-50%, -50%) rotate(-45deg) scaleX(1); }
}
/* Open mobile menu: stacked list, also between 992 and 1150px */
#brx-header .brxe-nav-nested.brx-open .brx-nav-nested-items {
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	row-gap: var(--bss-space-2);
	padding: 96px var(--bss-gutter) 48px;
}
#brx-header .brxe-nav-nested.brx-open .brx-nav-nested-items > * { min-height: 44px; display: inline-flex; align-items: center; }

/* Tablets: a button pair shares the row in equal widths (max 640px) */
@media (min-width: 479px) and (max-width: 991px) {
	#brx-content .brxe-block:has(> .bss-btn + .bss-btn) { width: 100%; max-width: 640px; flex-wrap: nowrap; }
	#brx-content .brxe-block:has(> .bss-btn + .bss-btn) > .bss-btn { flex: 1 1 0; justify-content: center; text-align: center; }
}
/* Phones: buttons in page content are full width, so stacked pairs line up */
@media (max-width: 478px) {
	#brx-content .brxe-block:has(> .bss-btn),
	#brx-content .brxe-div:has(> .bss-btn) { width: 100%; }
	#brx-content .bss-btn { width: 100%; justify-content: center; }
}

/* Hero jump links (chips): one swipeable row on phones + tablets instead of a tall stack */
@media (max-width: 991px) {
	body .bss-jump-nav.brxe-block {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		margin-right: calc(-1 * var(--bss-gutter));
		padding-right: var(--bss-gutter);
		width: calc(100% + var(--bss-gutter));
	}
	body .bss-jump-nav.brxe-block::-webkit-scrollbar { display: none; }
	body .bss-jump-nav.brxe-block > * { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
}

/* Solutions: when photo and text stack, the photo always comes first;
 * on phones the photo is landscape instead of a tall 420px crop */
@media (max-width: 1100px) {
	body .bss-split > .bss-solution__media { order: -1; }
}
@media (max-width: 991px) {
	body .bss-solution__media.brxe-block { min-height: 0; aspect-ratio: 4 / 3; flex-basis: auto; width: 100%; }
}

/* Operational challenges, phone + tablet (click mode): the 7 challenges become a
 * swipeable tab row above the card instead of a long list to scroll past */
@media (max-width: 1100px) {
	body .bss-oc__list.brxe-block {
		flex: 1 1 100%;
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		scroll-snap-type: x proximity;
		border-top: 0;
		border-bottom: 1px solid var(--bss-slate-800);
		gap: var(--bss-space-1);
	}
	body .bss-oc__list.brxe-block::-webkit-scrollbar { display: none; }
	body .bss-oc__item.brxe-button {
		flex: 0 0 auto;
		width: auto;
		min-height: 48px;
		white-space: nowrap;
		border-bottom: 0;
		padding: 0 var(--bss-space-4);
		scroll-snap-align: start;
	}
	body .bss-oc__item.brxe-button > i, .bss-oc__item.brxe-button > svg { display: none; }
	body .bss-oc.brxe-block { row-gap: var(--bss-space-6); }
}

/*
 * Plain WordPress pages (no Bricks layout, e.g. the privacy statement):
 * readable column with the site gutters, BSS heading sizes and spacing.
 */
body #brx-content.wordpress {
	width: 100%;
	max-width: calc(820px + 2 * var(--bss-gutter));
	margin: 0 auto;
	padding: clamp(48px, 7vw, 112px) var(--bss-gutter) var(--bss-section-y);
	color: var(--bss-silver);
	font-size: var(--bss-fs-body);
	line-height: 1.7;
}
body:has(#brx-header.brx-sticky) #brx-content.wordpress {
	padding-top: calc(var(--bss-header-h, 85px) + clamp(48px, 7vw, 112px));
}
body #brx-content.wordpress > h1 {
	font-size: var(--bss-fs-h2);
	line-height: 1.05;
	color: var(--bss-white);
	margin: 0 0 var(--bss-space-4);
}
#brx-content.wordpress h2 {
	font-size: clamp(18px, 1.6vw, 22px);
	line-height: 1.2;
	color: var(--bss-white);
	margin: var(--bss-space-14) 0 var(--bss-space-4);
	padding-top: var(--bss-space-6);
	border-top: 1px solid var(--bss-line);
}
#brx-content.wordpress p { margin: 0 0 var(--bss-space-5); }
#brx-content.wordpress p:first-of-type em { color: var(--bss-grey-light); font-style: normal; font-size: var(--bss-fs-small); }
#brx-content.wordpress a { color: var(--bss-taupe); text-decoration: underline; text-underline-offset: 3px; }
#brx-content.wordpress a:hover { color: var(--bss-white); }
#brx-content.wordpress strong { color: var(--bss-white); font-weight: 500; }

/* About > Validation & testing: text sits in the left half next to the diagram, so one text column */
#brxe-bwltnk { column-count: 1; }

/*
 * About > Our mission / Our vision band: faint BSS logo icon (assets/img/logo/bss-icon.svg) bottom right.
 */
#mission {
	background-image: url("assets/img/bss-mission-mark.svg");
	background-repeat: no-repeat;
	background-position: right var(--bss-gutter, 40px) bottom 0;
	background-size: min(52vw, 860px) auto;
}

/* Home Solutions cards: arrow (replaced the 01–07 numbers, 2026-11-12) nudges right on hover/focus */
.bss-card .bss-card__arrow { transition: transform .25s ease, color .25s ease; }
.bss-card:hover .bss-card__arrow, .bss-card:focus-visible .bss-card__arrow { transform: translateX(6px); }
.bss-card:not(.bss-card--all):hover .bss-card__arrow { color: var(--bss-white); }
@media (prefers-reduced-motion: reduce) { .bss-card .bss-card__arrow { transition: none; } }

/* Contact office cards: "Headquarters" / "DronePort Campus" tags link to the Google Maps route (2026-11-12) */
a.bss-office__tag { display: inline-block; align-self: flex-start; color: var(--bss-taupe); text-decoration: none; text-underline-offset: 3px; transition: color .2s; }
a.bss-office__tag:hover, a.bss-office__tag:focus-visible { color: var(--bss-white); text-decoration: underline; }

/* Footer: office tag line + address link to the Google Maps route (2026-11-12) */
a.bss-footer-map { width: fit-content; color: var(--bss-grey-light); text-decoration: none; text-underline-offset: 3px; transition: color .2s; }
a.bss-footer-map .bss-footer-text { color: inherit; transition: color .2s; }
a.bss-footer-map:hover, a.bss-footer-map:focus-visible { color: var(--bss-white); }
a.bss-footer-map:hover .bss-footer-text, a.bss-footer-map.bss-footer-text:hover { text-decoration: underline; }

/* Capabilities domain cards: filled shapes in the line drawings (e.g. UGV wheels) match the card background */
.bss-dom .uxv-cover { fill: var(--bss-graphite); }


/* Capabilities TSEW list (bss-fw): START/LOOP labels removed 2026-11-12; keep diamond + name on one row, long names wrap beside the diamond */
body .bss-fw__item.brxe-block { flex-wrap: nowrap; }
body .bss-fw__name { min-width: 0; }
@media (max-width: 478px) {
	body .bss-fw.brxe-block { padding: 24px 20px; }
	body .bss-fw::before { left: 31px; top: 44px; bottom: 44px; }
	body .bss-fw__item.brxe-block { column-gap: 16px; }
	body .bss-fw__name { font-size: 14px; }
}

/* TSEW > Mission first (2026-11-12): make the step list read as a control + framed output panel */
body .bss-flow .bss-flow__item.brxe-block { padding: 18px 22px; column-gap: 20px; align-items: center; border-top: 1px solid var(--bss-slate-800); box-shadow: none; }
body .bss-flow > li:last-child .bss-flow__item.brxe-block { border-bottom: 1px solid var(--bss-slate-800); }
body .bss-flow .bss-flow__item:hover { padding-left: 22px; background: var(--bss-slate-800); }
body .bss-flow .bss-flow__item.bss-flow__item--active { padding-left: 22px; background: var(--bss-slate); box-shadow: inset 3px 0 0 var(--bss-taupe); }
body .bss-flow .bss-flow__item { transition: background-color .2s; }
body .bss-flow .bss-flow__item::after { content: ""; flex: none; margin-left: auto; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); color: var(--bss-slate-300); opacity: .45; transition: opacity .2s, transform .2s; }
body .bss-flow .bss-flow__item:hover::after, body .bss-flow .bss-flow__item--active::after { opacity: 1; color: var(--bss-white); transform: translateX(3px) rotate(45deg); }
body .bss-flow .bss-flow__label.brxe-text-basic { color: var(--bss-slate-100); }
body .bss-flow .bss-flow__item--active .bss-flow__label.brxe-text-basic, body .bss-flow .bss-flow__item:hover .bss-flow__label.brxe-text-basic { color: var(--bss-white); }
body .bss-flow .bss-flow__item--active .bss-flow__num.brxe-text-basic { color: var(--bss-taupe); }
.bss-flow-panel.brxe-block { position: relative; padding: clamp(28px, 4vw, 56px); background: var(--bss-graphite); border: 1px solid var(--bss-slate); border-radius: var(--bss-radius); row-gap: 24px; }
.bss-flow-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--bss-taupe),var(--bss-taupe)) left 10px top 10px / 14px 1.5px no-repeat,linear-gradient(var(--bss-taupe),var(--bss-taupe)) left 10px top 10px / 1.5px 14px no-repeat,linear-gradient(var(--bss-taupe),var(--bss-taupe)) right 10px top 10px / 14px 1.5px no-repeat,linear-gradient(var(--bss-taupe),var(--bss-taupe)) right 10px top 10px / 1.5px 14px no-repeat,linear-gradient(var(--bss-taupe),var(--bss-taupe)) left 10px bottom 10px / 14px 1.5px no-repeat,linear-gradient(var(--bss-taupe),var(--bss-taupe)) left 10px bottom 10px / 1.5px 14px no-repeat,linear-gradient(var(--bss-taupe),var(--bss-taupe)) right 10px bottom 10px / 14px 1.5px no-repeat,linear-gradient(var(--bss-taupe),var(--bss-taupe)) right 10px bottom 10px / 1.5px 14px no-repeat; }
.bss-flow-panel__head { margin: 0; font-family: "eurostile-extended", eurostile-extended-local, Arial, sans-serif; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--bss-slate-300); }
.bss-flow-panel__num { color: var(--bss-taupe); }
.bss-flow-panel .bss-quote { margin: 0; }
@media (prefers-reduced-motion: reduce) { body .bss-flow .bss-flow__item, body .bss-flow .bss-flow__item::after { transition: none; } }

/* TSEW > Mission first as accordion when stacked (bss.js adds .is-accordion and moves the panel under the open step) */
body .bss-flow.is-accordion .bss-flow-panel.brxe-block { flex: none !important; width: 100%; min-height: 0; justify-content: flex-start !important; margin: 0; padding: 22px 22px 26px; border-width: 0 0 0 1px; border-color: var(--bss-slate); border-radius: 0; box-shadow: inset 3px 0 0 var(--bss-taupe); animation: bss-flow-open .3s ease; }
.bss-flow.is-accordion .bss-flow-panel::after, .bss-flow.is-accordion .bss-flow-panel__head { display: none; }
.bss-flow.is-accordion .bss-flow-panel .bss-quote { padding-left: 0; border-left: 0; font-size: 18px; line-height: 1.5; }
.bss-flow.is-accordion .bss-flow-panel.is-collapsed { display: none; }
.bss-flow.is-accordion .bss-flow__item--active[aria-expanded="true"]::after { transform: rotate(135deg); }
.bss-flow.is-accordion .bss-flow__item--active[aria-expanded="false"]::after { transform: rotate(45deg); }
@keyframes bss-flow-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bss-flow.is-accordion .bss-flow-panel { animation: none; } }

/* TSEW architecture accordion (bss-layer): chevron on each title so it reads as clickable (2026-11-12) */
body .bss-layer__title.brxe-block { width: 100%; }
.bss-layer__title::after { content: ""; flex: none; align-self: center; margin-left: auto; margin-right: 6px; width: 9px; height: 9px; border-right: 1.5px solid var(--bss-slate-300); border-bottom: 1.5px solid var(--bss-slate-300); transform: translateY(-3px) rotate(45deg); transition: transform .25s, border-color .2s; }
.bss-layer__title:hover::after, .brx-open > .bss-layer__title::after, .brx-open .bss-layer__title::after { border-color: var(--bss-taupe); }
.brx-open > .bss-layer__title::after, .brx-open .bss-layer__title::after { transform: translateY(2px) rotate(-135deg); }
.bss-layer__title:hover .bss-layer__name { color: var(--bss-white); }
.bss-layer__title:focus-visible { outline: 2px solid var(--bss-taupe); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .bss-layer__title::after { transition: none; } }

/* TSEW inline tabs (Radio / Satellite / Fibre / Laser / 5G): hint label + stronger hover so they read as clickable (2026-11-12).
   The label is a pseudo-element: an extra element in .tab-menu would become a Bricks tab title. */
[data-bss-tabs-inline] .tab-menu::before { content: "Switch network"; flex: 0 0 100%; order: -1; margin-bottom: 4px; font-family: "eurostile-extended", eurostile-extended-local, Arial, sans-serif; font-size: var(--bss-fs-label); letter-spacing: var(--bss-track-wide); text-transform: uppercase; line-height: 1.3; color: var(--bss-white); }
[data-bss-tabs-inline] .bss-tab:not(.brx-open):hover { background: var(--bss-slate); border-color: var(--bss-taupe); }
/* Mission first panel: faint 30px grid (same as the About diagrams, bss-dg) */
.bss-flow-panel.brxe-block { background-image: linear-gradient(rgba(220,227,232,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(220,227,232,.06) 1px, transparent 1px); background-size: 30px 30px; background-position: -1px -1px; }
/* "Click a step" hint: no icon, white, like "Switch network" */
body .bss-flow-hint.bss-eyebrow.brxe-text-basic { color: var(--bss-white); }
.bss-flow-hint.bss-eyebrow::before { display: none; }
/* TSEW layer accordion: numbers removed 2026-11-12, so the description lines up with the title */
body .bss-layer__desc.brxe-text-basic { padding-left: 0; }
/* Mission first panel lighter (user 2026-11-12): slate-800 instead of graphite, grid a touch stronger */
.bss-flow-panel.brxe-block { background-color: var(--bss-slate-800); background-image: linear-gradient(rgba(220,227,232,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(220,227,232,.07) 1px, transparent 1px); }

/* Capabilities TSEW list (bss-fw): divider rows instead of diamonds + dashed line (user 2026-11-12) */
.bss-fw::before, .bss-fw__item::before { display: none !important; }
body .bss-fw .bss-fw__item.brxe-block { padding-top: 16px; padding-bottom: 16px; border-top: 1px solid var(--bss-slate-800); }
body .bss-fw .bss-fw__item.brxe-block:last-child { border-bottom: 1px solid var(--bss-slate-800); }

/* Careers "How we work" / "Who we look for" (2026-11-12): section label is the H2 and looks like one; the big heading under it is H3 size */
body .bss-label-h2.bss-eyebrow.brxe-text-basic { display: block; font-size: var(--bss-fs-h2); line-height: 1.15; letter-spacing: 0.02em; color: var(--bss-white); margin-bottom: 16px; }
.bss-label-h2.bss-eyebrow::before { display: none; }
body .bss-sub-h3.bss-h2-lg.brxe-heading { font-size: var(--bss-fs-h3); line-height: 1.15; color: var(--bss-silver); }

/* Integrations map (2026-11-12, user): the changing area hint sits inside the map,
 * centred just below the "Mission thread" hub, bold on a dark backing so it reads
 * over the connection lines. (Map + hint are hidden below 760px; the list shows instead.) */
/* Wrapper #bss-imap-nav = [prev arrow] [hint] [next arrow] (arrows added 2026-11-12) */
.bss-imap #bss-imap-nav {
	position: absolute;
	left: 50%;
	top: 64%;
	z-index: 2;
	flex-direction: row;
	align-items: center;
	column-gap: 10px;
	width: max-content;
	max-width: min(46%, 520px);
	transform: translateX(-50%);
}
.bss-imap #bss-imap-hint {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 8px 14px;
	background: color-mix(in srgb, var(--bss-graphite) 88%, transparent);
	border-top: 1px solid var(--bss-taupe);
	pointer-events: none;
}
.bss-imap #bss-imap-nav .bss-oc__step { flex: none; background: var(--bss-graphite); border: 1px solid var(--bss-slate-400) !important; }
.bss-imap #bss-imap-nav .bss-oc__step:hover { background: var(--bss-slate); border-color: var(--bss-slate) !important; }
@media (max-width: 1100px) {
	.bss-imap #bss-imap-nav { top: 63%; max-width: 44%; column-gap: 6px; }
	.bss-imap #bss-imap-hint { font-size: 13px !important; padding: 6px 12px; }
	.bss-imap #bss-imap-nav .bss-oc__step { width: 36px; height: 36px; }
}
/* Small tablets: too little room inside the map, so the stepper sits just below it */
@media (max-width: 960px) {
	body .bss-imap.brxe-block { margin-bottom: 96px; }
	.bss-imap #bss-imap-nav { top: calc(100% + 20px); max-width: min(100%, 560px); }
}

/* Photo HUD labels on phones (2026-11-17): longer labels such as
   "Electronic Warfare Support (EW)" stay clear of the frame's corner brackets. */
@media (max-width: 767px) {
	body .bss-hud.bss-hud {
		letter-spacing: 0.1em;
		max-width: calc(100% - 64px);
		line-height: 1.5;
	}
}

/* Home Webshop: customer portal note under the "Visit the webshop" button (user 2026-11-17) */
.bss-portal-note {
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--bss-line);
	max-width: 520px;
	font-size: var(--bss-fs-small);
	line-height: 1.6;
	color: var(--bss-grey-light);
}
.bss-portal-note p { margin: 0; }
.bss-portal-note strong { color: var(--bss-white); font-weight: 600; }
.bss-portal-note a { color: var(--bss-taupe); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.bss-portal-note a:hover,
.bss-portal-note a:focus-visible { color: var(--bss-white); }
