:root {
	color-scheme: dark;
	--cs-accent-pill-bg: linear-gradient(135deg, #12a094 0%, #35d2c4 100%);
	/* Faint node mesh, shared by the home hero and the full-bleed visual bands.
	   Inline SVG keeps it resolution-independent and adds no HTTP request. */
	--cs-mesh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%238ab1ff' fill-opacity='0.14'%3E%3Ccircle cx='0' cy='0' r='1.1'/%3E%3Ccircle cx='80' cy='0' r='1.1'/%3E%3Ccircle cx='160' cy='0' r='1.1'/%3E%3Ccircle cx='0' cy='80' r='1.1'/%3E%3Ccircle cx='160' cy='80' r='1.1'/%3E%3Ccircle cx='0' cy='160' r='1.1'/%3E%3Ccircle cx='80' cy='160' r='1.1'/%3E%3Ccircle cx='160' cy='160' r='1.1'/%3E%3C/g%3E%3Ccircle cx='80' cy='80' r='2.6' fill='%2335d2c4' fill-opacity='0.22'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

body {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-variant-numeric: tabular-nums;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(1200px 600px at 90% -10%, rgba(53, 210, 196, 0.14), transparent 55%),
		radial-gradient(900px 500px at -10% 20%, rgba(138, 177, 255, 0.12), transparent 55%),
		radial-gradient(700px 500px at 50% 110%, rgba(53, 210, 196, 0.06), transparent 60%);
}

.wp-site-blocks {
	min-height: 100vh;
	position: relative;
	z-index: 1;
}

.wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: var(--wp--style--global--wide-size);
}

/* Single posts: keep the title, meta, featured image and body copy in one readable column. */
.single-post .cs-article > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)) {
	max-width: calc(880px + 4rem);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--wp--preset--spacing--60);
	padding-right: var(--wp--preset--spacing--60);
}

.single-post .cs-article .wp-block-post-content > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)) {
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
}

/* Legacy article bodies carry paste-in inline text colours (e.g. #993300) that
   read fine on the old light theme but sit near 2.6:1 on this dark base. Let the
   theme own text colour inside article copy so imported content can't fight it. */
.single-post .cs-article .wp-block-post-content [style*="color"] {
	color: inherit !important;
}

/* Featured image: a fixed 16:9 frame with cover cropping.
   The curated posts carry wildly different source sizes (150×150 up to 2225px,
   several with none at all), so without a frame a small source balloons into a
   full-height block. A single frame keeps every article opening consistent and
   lets the source resolution stop dictating the layout. */
.single-post .cs-article .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Pages with bare content blocks (Terms, Privacy) need a gutter on narrow screens. */
@media (max-width: 800px) {
	.cs-page > .wp-block-post-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)) {
		max-width: calc(100% - 4rem);
		margin-left: auto;
		margin-right: auto;
	}
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection {
	background: rgba(53, 210, 196, 0.28);
	color: var(--wp--preset--color--white);
}

/* --- Header + primary nav --- */
.cs-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(160%) blur(12px);
	background: rgba(6, 16, 29, 0.72);
	border-bottom: 1px solid rgba(31, 50, 80, 0.6);
}

.cs-site-header .wp-block-site-title a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
	letter-spacing: -0.015em;
}

.cs-site-header .wp-block-site-title a::before {
	content: "";
	display: inline-block;
	vertical-align: -3px;
	width: 10px;
	height: 10px;
	margin-right: 0.6rem;
	border-radius: 3px;
	background: var(--cs-accent-pill-bg);
	box-shadow: 0 0 0 3px rgba(53, 210, 196, 0.14);
}

.cs-primary-nav {
	gap: 1.75rem;
}

.cs-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.1rem 1.5rem;
}

.cs-nav-list li {
	margin: 0;
	padding: 0;
}

.cs-nav-list a {
	position: relative;
	color: var(--wp--preset--color--text);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	transition: color 0.2s ease;
	padding: 0.3rem 0;
}

.cs-nav-list a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	width: 0;
	border-radius: 2px;
	background: var(--wp--preset--color--brand);
	transition: width 0.25s ease;
}

.cs-nav-list a:hover,
.cs-nav-list a.is-active {
	color: var(--wp--preset--color--white);
}

.cs-nav-list a:hover::after,
.cs-nav-list a.is-active::after {
	width: 100%;
}

@media (max-width: 781px) {
	.cs-site-header {
		padding-left: 1.25rem !important;
		padding-right: 1.25rem !important;
	}
	.cs-site-header > .alignwide {
		gap: 0.65rem 1rem;
	}
	.cs-site-header .cs-site-logo,
	.cs-site-header .cs-site-logo img {
		max-width: 150px;
		height: auto;
	}
	/* Collapse the nav wrapper so the Contact button shares the logo row
	   and the links drop to a single full-width row beneath it. */
	.cs-site-header .cs-primary-nav {
		display: contents;
	}
	.cs-site-header .wp-block-buttons {
		order: 1;
	}
	.cs-site-header .wp-block-button__link {
		padding: 0.6rem 1.1rem;
		font-size: 0.85rem;
	}
	.cs-nav-list {
		order: 2;
		width: 100%;
		gap: 0.45rem 0.8rem;
	}
	.cs-nav-list a {
		font-size: 0.82rem;
	}
}

/* --- Buttons --- */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	white-space: nowrap;
	line-height: 1.1;
	transition:
		transform 0.15s ease,
		box-shadow 0.25s ease,
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
	will-change: transform;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--cs-accent-pill-bg);
	color: #04201d;
	box-shadow: 0 10px 30px -12px rgba(53, 210, 196, 0.55);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	box-shadow: 0 16px 40px -14px rgba(53, 210, 196, 0.75);
	color: #031a17;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--line);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--brand);
	background: rgba(53, 210, 196, 0.08);
}

.wp-block-button.is-style-sm .wp-block-button__link {
	padding-top: 0.65rem !important;
	padding-bottom: 0.65rem !important;
	padding-left: 1.1rem !important;
	padding-right: 1.1rem !important;
	font-size: 0.875rem !important;
}

/* --- Hero pattern --- */
.wp-block-group:has(> .alignwide > p.has-brand-color) {
	position: relative;
	overflow: hidden;
}

.wp-block-group:has(> .alignwide > p.has-brand-color)::after {
	content: "";
	position: absolute;
	inset: auto 0 -20% auto;
	height: 320px;
	width: min(900px, 80vw);
	left: 50%;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(53, 210, 196, 0.14), transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.wp-block-group:has(> .alignwide > p.has-brand-color) > * {
	position: relative;
	z-index: 1;
}

/* Home hero backdrop: a self-contained, deterministic visual with layered
   glows, a faint node mesh (inline SVG data-URI) and a vertical depth
   gradient. Built in CSS rather than a raster image: it stays crisp at any
   size, adds no external request, and the contrast behind the headline is
   fully controlled. The darkening layer is listed first so it sits above the
   glows and mesh. */
.cs-hero-visual {
	position: relative;
	isolation: isolate;
	background-color: var(--wp--preset--color--base);
	background-image:
		linear-gradient(180deg, rgba(6, 16, 29, 0) 0%, rgba(6, 16, 29, 0.55) 62%, rgba(5, 13, 24, 0.92) 100%),
		radial-gradient(760px 460px at 84% 6%, rgba(53, 210, 196, 0.2), transparent 62%),
		radial-gradient(700px 460px at 4% 82%, rgba(138, 177, 255, 0.14), transparent 62%),
		var(--cs-mesh),
		linear-gradient(180deg, #08172b 0%, #06101d 70%, #050d18 100%);
	background-repeat: no-repeat, no-repeat, no-repeat, repeat, no-repeat;
	background-size: auto, auto, auto, 160px 160px, auto;
	background-position: center, center, center, center, center;
}

/* Page (page.html) heroes are editor-built blocks stored in the DB, not the
   pattern files, so their generous spacing--90 padding can't be tightened at
   the source. Cap the first full-bleed hero group on pages to the same tighter
   vertical rhythm as the pattern heroes. */
.cs-page .wp-block-post-content > .wp-block-group.alignfull:first-child {
	padding-top: var(--wp--preset--spacing--70) !important;
	padding-bottom: var(--wp--preset--spacing--70) !important;
}

/* Reusable visual panel (About credibility strip). Same visual language as the
   hero, one step lighter, clipped to the same radius as the page's other panels. */
.cs-visual-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line-soft);
	border-radius: 28px;
	background-image:
		radial-gradient(720px 420px at 84% 0%, rgba(53, 210, 196, 0.16), transparent 62%),
		radial-gradient(640px 420px at 2% 100%, rgba(138, 177, 255, 0.12), transparent 62%),
		var(--cs-mesh);
	background-repeat: no-repeat, no-repeat, repeat;
	background-size: auto, auto, 160px 160px;
	background-position: center, center, center;
}

/* Credibility strip: value + label paired inside one paragraph so the blocks
   stay simple and are unaffected by the theme's block gap. */
.cs-cred-value {
	display: block;
	margin: 0 0 0.35rem;
	font-size: clamp(1.5rem, 2.4vw, 1.95rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--white);
}

.cs-cred-label {
	display: block;
	margin: 0;
	color: var(--wp--preset--color--text-soft);
	font-size: 0.95rem;
	line-height: 1.55;
}

p.has-brand-color.has-xs-font-size,
p.has-brand-color.has-2xs-font-size {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 0.8rem;
}

p.has-brand-color.has-xs-font-size::before,
p.has-brand-color.has-2xs-font-size::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: currentColor;
	box-shadow: 0 0 0 4px rgba(53, 210, 196, 0.15);
}

/* --- Cards (service + partner grids) --- */
.coresight-card {
	position: relative;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 24px;
	background:
		linear-gradient(180deg, rgba(53, 210, 196, 0.05), transparent 45%),
		var(--wp--preset--color--surface-soft);
	box-shadow: var(--wp--custom--shadow-card);
	transition:
		transform 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.3s ease,
		background-color 0.25s ease;
	overflow: hidden;
}

.coresight-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(53, 210, 196, 0.45), transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.coresight-card:hover {
	transform: translateY(-4px);
	border-color: rgba(53, 210, 196, 0.35);
	box-shadow: var(--wp--custom--shadow-card-hover);
}

.coresight-card:hover::before {
	opacity: 1;
}

/* Card headings. Query-loop cards render `.wp-block-post-title` while the
   hardcoded pattern cards use `h3.wp-block-heading`; both need the same
   treatment so listings look alike. */
.coresight-card h3.wp-block-heading,
.coresight-card .wp-block-post-title {
	margin-top: 0;
}

.coresight-card :is(h3.wp-block-heading, .wp-block-post-title)::before {
	content: "";
	display: block;
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: var(--wp--preset--color--brand);
	margin-bottom: 0.85rem;
}

.coresight-card p:last-child {
	margin-bottom: 0;
}

/* Card logos (partner / solution archives) */
.coresight-card .cs-card-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 180px;
        max-width: 100%;
        height: 64px;
        min-height: 64px;
        margin: 0 0 1.15rem !important;
        padding: 6px 10px;
        border: 1px solid rgba(138, 177, 255, 0.14);
        border-radius: 12px;
        background: #f8fafc;
}

.coresight-card .cs-card-logo img {
	width: auto;
	height: auto;
        max-height: 52px;
        max-width: 100%;
	object-fit: contain;
}

.coresight-card .cs-card-logo img[src*="BeyondTrust_Horiz_Rev"] {
        filter: brightness(0);
}

/* Suppress the decorative accent bar when a logo leads the card */
.coresight-card:has(.cs-card-logo) :is(h3.wp-block-heading, .wp-block-post-title)::before {
	display: none;
}

/* Card banner images (solution archive): full-bleed to the card edge.
   WP's constrained layout applies `margin-inline: auto !important` to direct
   children, so the horizontal values need !important to bleed to the edges.
   The card's own overflow:hidden clips the image to its rounded corners. */
.coresight-card .cs-card-image {
	margin: calc(var(--wp--preset--spacing--60) * -1) !important;
	margin-bottom: 1.15rem !important;
}

.coresight-card .cs-card-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Suppress the decorative accent bar when a banner leads the card */
.coresight-card:has(.cs-card-image) :is(h3.wp-block-heading, .wp-block-post-title)::before {
	display: none;
}

/* Text-only cards (Insights hub): no logo or banner leads them, so the accent
   bar stays. Clamping the excerpt to five lines stops one long post from
   stretching its entire row. */
.cs-card-text .wp-block-post-excerpt > p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	line-clamp: 5;
	overflow: hidden;
}

/* Cards inside query loops fill their grid cell so rows align cleanly */
.wp-block-post-template .coresight-card {
	height: 100%;
}

/* --- Trust signals band --- */
.has-surface-background-color:not(.coresight-card):not(.cs-visual-band) {
	border-top: 1px solid var(--wp--preset--color--line-soft);
	border-bottom: 1px solid var(--wp--preset--color--line-soft);
}

.has-surface-background-color ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.has-surface-background-color li {
	position: relative;
	padding-left: 1.75rem;
}

.has-surface-background-color li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5rem;
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 6px;
	background: rgba(53, 210, 196, 0.12);
	border: 1px solid rgba(53, 210, 196, 0.35);
	background-image:
		linear-gradient(135deg, transparent 45%, var(--wp--preset--color--brand) 45%, var(--wp--preset--color--brand) 56%, transparent 56%),
		linear-gradient(45deg, transparent 58%, var(--wp--preset--color--brand) 58%, var(--wp--preset--color--brand) 70%, transparent 70%);
	background-size: 70% 35%, 35% 50%;
	background-position: 20% 35%, 45% 45%;
	background-repeat: no-repeat;
}

/* --- Contact CTA pattern --- */
.has-surface-soft-background-color[style*="border-radius:28px"] {
	position: relative;
	border: 1px solid rgba(53, 210, 196, 0.2);
	background:
		linear-gradient(135deg, rgba(18, 160, 148, 0.14), rgba(138, 177, 255, 0.08) 55%, rgba(17, 36, 61, 1) 100%),
		var(--wp--preset--color--surface-soft);
	box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
	overflow: hidden;
}

.has-surface-soft-background-color[style*="border-radius:28px"]::before {
	content: "";
	position: absolute;
	right: -15%;
	top: -40%;
	width: 380px;
	height: 380px;
	border-radius: 999px;
	background: radial-gradient(closest-side, rgba(53, 210, 196, 0.22), transparent 70%);
	pointer-events: none;
}

.has-surface-soft-background-color[style*="border-radius:28px"] > * {
	position: relative;
	z-index: 1;
}

/* --- Footer --- */
.cs-site-footer {
	margin-top: 0;
}

.cs-site-footer .wp-block-site-title a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.cs-site-footer .wp-block-site-title a::before {
	content: "";
	display: inline-block;
	vertical-align: -3px;
	width: 10px;
	height: 10px;
	margin-right: 0.6rem;
	border-radius: 3px;
	background: var(--cs-accent-pill-bg);
}

.cs-footer-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cs-footer-list li {
	margin: 0;
	padding: 0;
}

.cs-footer-list a {
	color: var(--wp--preset--color--text-soft);
	text-decoration: none;
	transition: color 0.2s ease;
}

.cs-footer-list a:hover {
	color: var(--wp--preset--color--white);
}

/* --- Images + featured --- */
.wp-block-post-featured-image img,
.wp-block-image img,
img.aligncenter,
img.alignleft,
img.alignright {
	border-radius: 24px;
	height: auto;
	max-width: 100%;
}

.wp-block-post-excerpt__more-text a {
	font-weight: 700;
	color: var(--wp--preset--color--brand);
	text-decoration: none;
}

.wp-block-post-excerpt__more-text a:hover {
	color: var(--wp--preset--color--white);
}

/* --- Archive + query grids --- */
.wp-block-query .wp-block-post-template.is-layout-grid {
	gap: 1.5rem;
}

@media (max-width: 900px) {
	.wp-block-query .wp-block-post-template[style*="columnCount:3"],
	.wp-block-columns:has(> .wp-block-column:nth-child(3)) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.wp-block-query .wp-block-post-template[style*="columnCount:3"],
	.wp-block-columns:has(> .wp-block-column:nth-child(2)) {
		grid-template-columns: 1fr !important;
	}
}

/* --- Columns responsive gap polish --- */
.wp-block-columns {
	gap: 1.5rem;
}

@media (max-width: 781px) {
	.wp-block-columns .wp-block-column {
		margin-bottom: 0;
	}
}

/* --- Post content typography polish --- */
.wp-block-post-content > * + * {
	margin-top: 1.25rem;
}

.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
	margin-top: 2.5rem;
	margin-bottom: 0.85rem;
}

.wp-block-post-content ul,
.wp-block-post-content ol {
	padding-left: 1.4rem;
}

/* --- Inputs (generic) --- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	padding: 0.75rem 0.9rem;
	font: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
	border-color: var(--wp--preset--color--brand);
}

/* --- Utilities --- */
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Chips / post-terms rows --- */
.cs-chip-row,
.wp-block-post-terms.cs-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 0.6rem;
	padding: 0;
	list-style: none;
}

.cs-chip-row a,
.wp-block-post-terms.cs-chip-row a {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 0.25rem 0.7rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: rgba(53, 210, 196, 0.12);
	border: 1px solid rgba(53, 210, 196, 0.28);
	color: var(--wp--preset--color--brand);
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

.cs-chip-row a:hover,
.wp-block-post-terms.cs-chip-row a:hover {
	color: var(--wp--preset--color--white);
	background: rgba(53, 210, 196, 0.2);
	border-color: var(--wp--preset--color--brand);
}

.cs-chip {
	display: inline-flex;
	align-items: center;
}

/* --- Proof metrics --- */
.cs-proof-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cs-proof-value--long {
        max-width: 100%;
        font-size: clamp(1rem, 1.45vw, 1.25rem) !important;
        letter-spacing: 0 !important;
        line-height: 1.2 !important;
        overflow-wrap: anywhere;
}

/* Partner single: proof metrics live in the 34% right rail, so the 4-up grid
   collapses to a 2-up strip and the headline-sized values scale back. */
.single-partner .cs-proof-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
}

.single-partner .cs-proof-value {
	font-size: clamp(1.15rem, 2.2vw, 1.6rem) !important;
}

.single-partner .cs-proof-value--long {
	font-size: 1.05rem !important;
	line-height: 1.25 !important;
}

/* Partner single: compact logo tray in the hero right rail. A fixed panel keeps
   every vendor mark at a consistent visual weight regardless of source artwork. */
.single-partner .cs-partner-logo-tray {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 140px;
	padding: 1.5rem 1.75rem;
	margin: 0;
	background: var(--wp--preset--color--surface-elevated);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 20px;
}

.single-partner .cs-partner-logo-tray img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 88px;
	object-fit: contain;
}

/* BeyondTrust ships a reversed white-on-transparent mark; invert it for the
   surface-elevated tray. */
.single-partner .cs-partner-logo-tray img[src*="BeyondTrust_Horiz_Rev"] {
	filter: brightness(0);
}

@media (max-width: 782px) {
	.single-partner .cs-partner-hero {
		display: flex;
		flex-direction: column;
	}
	.single-partner .cs-partner-hero > .wp-block-column:last-child {
		order: -1;
		margin-bottom: 1rem;
	}
	.single-partner .cs-partner-logo-tray {
		min-height: 110px;
	}
}

/* Partner single: media band. A curated vendor video sits beside an illustrative
   security flow. Both panels share a 16:9 frame in equal-width columns, so
   the pair lines up as a single band whatever the source image ratio is. */
.cs-media-band .wp-block-columns {
	align-items: stretch;
}

.cs-media-embed {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 20px;
	background: #0b1220;
}

.cs-media-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.cs-media-visual {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 20px;
	background: var(--wp--preset--color--surface-elevated);
}

.cs-media-art {
    background: linear-gradient(135deg, #101b2a 0%, #0b1422 58%, #0c2930 100%);
}

.cs-media-art__scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    isolation: isolate;
    background-image:
        linear-gradient(rgba(191, 220, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(191, 220, 255, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
}

.cs-media-art__glow {
    position: absolute;
    top: -70%;
    right: -5%;
    width: 75%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 160, 148, 0.24), transparent 68%);
    filter: blur(8px);
}

.cs-media-art__phone {
    position: absolute;
    z-index: 1;
    top: 8%;
    left: 25%;
    display: flex;
    width: 32%;
    height: 84%;
    padding: 6px;
    flex-direction: column;
    border: 1px solid rgba(231, 242, 255, 0.32);
    border-radius: 24px;
    background: linear-gradient(145deg, #354356, #111a27 38%);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 35px rgba(53, 210, 196, 0.12);
}

.cs-media-art__speaker {
    width: 24%;
    height: 3px;
    margin: 1px auto 5px;
    border-radius: 99px;
    background: rgba(224, 235, 248, 0.34);
}

.cs-media-art__screen {
    display: flex;
    min-height: 0;
    height: 100%;
    padding: 10% 8%;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 17px;
    background:
        radial-gradient(circle at 90% 0%, rgba(53, 210, 196, 0.12), transparent 42%),
        #0b1420;
    color: #f4f8fc;
}

.cs-media-art__eyebrow {
    color: #69d9cf;
    font-size: clamp(5px, 0.85vw, 8px);
    font-weight: 700;
    letter-spacing: 0.12em;
}

.cs-media-art__identity-mark {
    display: grid;
    width: clamp(22px, 4vw, 34px);
    aspect-ratio: 1;
    margin: 7% 0 5%;
    place-items: center;
    border: 1px solid rgba(53, 210, 196, 0.38);
    border-radius: 50%;
    background: rgba(18, 160, 148, 0.16);
    color: #8ce9df;
    font-size: clamp(8px, 1.2vw, 12px);
    font-weight: 700;
}

.cs-media-art__screen strong {
    font-size: clamp(8px, 1.45vw, 14px);
    line-height: 1.25;
}

.cs-media-art__detail {
    margin-top: 4%;
    color: #9cacc0;
    font-size: clamp(6px, 0.95vw, 9px);
}

.cs-media-art__actions {
    display: grid;
    width: 100%;
    margin-top: auto;
    gap: 5px;
    grid-template-columns: 1fr 1.35fr;
    font-size: clamp(5px, 0.85vw, 8px);
    text-align: center;
}

.cs-media-art__actions span {
    overflow: hidden;
    padding: 6px 3px;
    border: 1px solid rgba(203, 219, 237, 0.16);
    border-radius: 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-media-art__actions span:last-child {
    border-color: rgba(53, 210, 196, 0.48);
    background: rgba(18, 160, 148, 0.22);
    color: #a6f4e9;
}

.cs-media-art__status {
    position: absolute;
    z-index: 2;
    top: 43%;
    left: 56%;
    display: flex;
    width: 36%;
    min-height: 58px;
    padding: 10px;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(205, 225, 243, 0.16);
    border-radius: 12px;
    background: rgba(13, 24, 37, 0.94);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.cs-media-art__check {
    display: grid;
    width: 25px;
    flex: 0 0 25px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: rgba(53, 210, 196, 0.16);
    color: #7be5d9;
    font-size: 8px;
    font-weight: 800;
}

.cs-media-art__status strong,
.cs-media-art__status small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-media-art__status strong {
    color: #edf5fc;
    font-size: clamp(7px, 1.05vw, 10px);
}

.cs-media-art__status small {
    margin-top: 3px;
    color: #9cacc0;
    font-size: clamp(6px, 0.85vw, 8px);
}

.cs-media-art__caption {
    position: absolute;
    right: 12px;
    bottom: 9px;
    color: rgba(197, 215, 232, 0.62);
    font-size: 7px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 520px) {
    .cs-media-art__phone {
        left: 8%;
        width: 38%;
        height: 84%;
        border-radius: 20px;
    }

    .cs-media-art__status {
        top: 42%;
        left: 51%;
        width: 44%;
        min-height: 50px;
        padding: 7px;
        gap: 6px;
    }

    .cs-media-art__caption {
        right: 8px;
        bottom: 6px;
        font-size: 6px;
    }
}

@media (max-width: 900px) {
	.cs-proof-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.cs-proof-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* --- 404 quick nav --- */
.cs-quick-nav {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
	.cs-quick-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.cs-quick-nav {
		grid-template-columns: 1fr;
	}
}

/* --- Search block polish (404 / header fallback) --- */
.wp-block-search {
	display: block;
}

.wp-block-search .wp-block-search__inside-wrapper {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
}

.wp-block-search__label {
	color: var(--wp--preset--color--text);
	font-weight: 600;
}

.wp-block-search__input {
	flex: 1 1 auto;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 0.9rem 1rem;
	font-size: 1rem;
}

.wp-block-search__input:focus {
	border-color: var(--wp--preset--color--brand);
	box-shadow: 0 0 0 3px rgba(53, 210, 196, 0.18);
}

.wp-block-search__button {
	border-radius: 999px;
	padding: 0.85rem 1.35rem;
	font-weight: 700;
}

/* --- Enquiry form --- */
.cs-enquiry-wrap {
	border: 1px solid rgba(53, 210, 196, 0.18);
	border-radius: 24px;
	background:
		linear-gradient(180deg, rgba(53, 210, 196, 0.06), transparent 40%),
		var(--wp--preset--color--surface);
	padding: 1.5rem 1.5rem 1.75rem;
	box-shadow: var(--wp--custom--shadow-card);
}

@media (max-width: 640px) {
	.cs-enquiry-wrap {
		padding: 1.25rem 1.15rem 1.5rem;
	}
}

.cs-enquiry-form {
	display: block;
}

.cs-form-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
	/* The shortcode prints an inline two-column grid, so this needs !important. */
	.cs-form-grid {
		grid-template-columns: 1fr !important;
	}

	/* Tighten the Contact CTA card gutters so the enquiry form is usable on phones. */
	.wp-block-post-content > .wp-block-group.alignwide:has(.cs-enquiry-wrap) {
		margin-left: var(--wp--preset--spacing--30) !important;
		margin-right: var(--wp--preset--spacing--30) !important;
		padding-left: var(--wp--preset--spacing--50) !important;
		padding-right: var(--wp--preset--spacing--50) !important;
	}
}

.cs-enquiry-form label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--wp--preset--color--text);
	margin-bottom: 0.45rem;
}

.cs-req {
	color: var(--wp--preset--color--brand);
	font-weight: 700;
}

.cs-enquiry-form input[type="text"],
.cs-enquiry-form input[type="email"],
.cs-enquiry-form input[type="tel"],
.cs-enquiry-form select,
.cs-enquiry-form textarea {
	width: 100%;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 0.85rem 0.95rem;
	font: inherit;
	font-size: 1rem;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease;
}

.cs-enquiry-form textarea {
	min-height: 120px;
	resize: vertical;
}

.cs-enquiry-form input::placeholder,
.cs-enquiry-form textarea::placeholder {
	color: rgba(142, 161, 183, 0.75);
}

.cs-enquiry-form input:focus,
.cs-enquiry-form select:focus,
.cs-enquiry-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--brand);
	box-shadow: 0 0 0 3px rgba(53, 210, 196, 0.18);
	background: var(--wp--preset--color--surface-elevated);
}

.cs-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.cs-field.cs-field-full {
	grid-column: 1 / -1;
}

.cs-field-error input,
.cs-field-error select,
.cs-field-error textarea {
	border-color: #ef6a6a !important;
	box-shadow: 0 0 0 3px rgba(239, 106, 106, 0.14) !important;
	background: rgba(239, 106, 106, 0.05) !important;
}

.cs-field-error-text {
	margin: 0;
	color: #ff8f8f;
	font-size: 0.82rem;
	font-weight: 500;
}

.cs-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
	margin-top: 1.25rem;
}

.cs-form-actions .wp-block-button__link {
	padding: 0.85rem 1.5rem;
	font-size: 0.95rem;
	cursor: pointer;
	appearance: none;
	border: 0;
}

.cs-form-actions .wp-block-button__link[disabled] {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none !important;
}

.cs-form-note {
	margin: 0;
	color: var(--wp--preset--color--text-soft);
	font-size: 0.85rem;
	line-height: 1.5;
	max-width: 36ch;
}

.cs-alert {
	border-radius: 16px;
	padding: 0.9rem 1rem;
	font-size: 0.95rem;
	line-height: 1.55;
}

.cs-alert--success {
	background: rgba(53, 210, 196, 0.12);
	color: #c9fff8;
	border: 1px solid rgba(53, 210, 196, 0.35);
}

.cs-alert--error {
	background: rgba(239, 106, 106, 0.08);
	color: #ffd2d2;
	border: 1px solid rgba(239, 106, 106, 0.3);
}

/* --- CTA grid on larger layouts --- */
@media (max-width: 900px) {
	.has-surface-soft-background-color[style*="border-radius:28px"]
		> .wp-block-group.is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}

/* --- Archive + query grid mobile --- */
@media (max-width: 1100px) {
	.wp-block-post-template.is-layout-grid[style*="columnCount:3"],
	.wp-block-post-template[style*="columnCount: 3"],
	.wp-block-query .wp-block-post-template[style*="columnCount:3"] {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	.wp-block-post-template.is-layout-grid[style*="columnCount"],
	.wp-block-post-template[style*="columnCount"],
	.wp-block-query .wp-block-post-template[style*="columnCount"] {
		grid-template-columns: 1fr !important;
		gap: 1.25rem !important;
	}
}

/* --- Contact meta list in CTA pattern --- */
ul.cs-contact-meta {
	list-style: none;
	padding: 0;
	margin: 0;
}

ul.cs-contact-meta li {
	margin: 0;
	padding: 0;
}

ul.cs-contact-meta a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
	transition: color 0.2s ease;
}

ul.cs-contact-meta a:hover {
	color: var(--wp--preset--color--brand);
}
