/*
Theme Name: Earnox
Theme URI: https://earnoxsecure.com/
Author: Earnox Secure
Author URI: https://earnoxsecure.com/
Description: A lightweight custom block theme for Earnox Secure. Midnight navy surfaces lit by a single cyan instrument light, readable light panels for finance tools and long-form articles, and fully Gutenberg-editable content.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: earnox
Tags: blog, business, one-column, block-patterns, full-site-editing, accessibility-ready, custom-colors, custom-menu
*/

/* ==========================================================================
   0. Tokens
   Hue roles are fixed: cyan = anything you can act on, teal = finance,
   indigo = faint depth in background glows only (never text).
   Constraints for this file: no `inset`, `aspect-ratio`, `:is()`,
   `color-mix()`, `oklch()` or `@property`, so old Android Chrome gets the
   same design minus the enhancements wrapped in @supports.
   ========================================================================== */

:root {
	/* Surface ladder (dark to light): abyss, base, band, surface, raised, inset, overlay */
	--ex-abyss: #050913;
	--ex-band: #0A1528;
	--ex-overlay: #1C2A45;

	/* Text */
	--ex-body: #C3D0E3;      /* paragraphs on dark: 12.52:1 on base */
	--ex-subtle: #8396B5;    /* placeholders only: 5.28:1 on inset */

	/* Accent ramp */
	--ex-c200: #A5F3FC;
	--ex-c300: #67E8F9;
	--ex-c550: #12C2DE;
	--ex-c700: #0E7490;      /* links and focus on paper: 5.36:1 on white */

	/* Lines */
	--ex-hair: rgba(148, 178, 220, 0.14);
	--ex-line-strong: #33496D;
	--ex-field: #56709A;

	/* Easing */
	--ex-e-out: var(--wp--custom--easing--out, cubic-bezier(0.16, 1, 0.3, 1));
	--ex-e-ui: var(--wp--custom--easing--ui, cubic-bezier(0.22, 1, 0.36, 1));
	--ex-e-io: var(--wp--custom--easing--io, cubic-bezier(0.65, 0, 0.35, 1));
	--ex-e-in: var(--wp--custom--easing--in, cubic-bezier(0.4, 0, 1, 1));

	/* Depth */
	--ex-hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	--ex-sh-2: 0 1px 2px rgba(2, 6, 16, 0.5), 0 12px 32px -14px rgba(2, 6, 16, 0.75);
	--ex-sh-3: 0 2px 4px rgba(2, 6, 16, 0.5), 0 32px 64px -28px rgba(2, 6, 16, 0.9);
	--ex-glow: 0 24px 50px -24px rgba(34, 211, 238, 0.5);

	/* Fills and rims. Rims use the padding-box / border-box background trick,
	   which works in every Chrome version and needs no masks. */
	--ex-fill: linear-gradient(180deg, #111B2E, #0B1220);
	--ex-rim-rest: linear-gradient(180deg, rgba(148, 178, 220, 0.22), rgba(148, 178, 220, 0.07) 45%, rgba(148, 178, 220, 0.1));
	--ex-rim-soft: linear-gradient(135deg, rgba(103, 232, 249, 0.55), rgba(99, 102, 241, 0.22) 35%, rgba(36, 52, 79, 0.6) 62%, rgba(94, 234, 212, 0.35));
	--ex-rim: linear-gradient(135deg, rgba(103, 232, 249, 0.85), rgba(99, 102, 241, 0.35) 35%, rgba(36, 52, 79, 0.6) 62%, rgba(94, 234, 212, 0.6));
	--ex-head: linear-gradient(180deg, #F7FAFF 30%, #BCCBE0);
	--ex-cta: linear-gradient(180deg, #67E8F9, #22D3EE 52%, #12C2DE);
	--ex-cta-hover: linear-gradient(180deg, #99F6E4, #5EEAD4 52%, #2DD4BF);
	--ex-edge: linear-gradient(90deg, rgba(34, 211, 238, 0), rgba(34, 211, 238, 0.6) 30%, rgba(99, 102, 241, 0.4) 70%, rgba(99, 102, 241, 0));
}

/* ==========================================================================
   1. Base
   ========================================================================== */

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

/* scroll-padding-top keeps focused elements and anchor targets clear of the
   sticky header (WCAG 2.4.11); consent.js adds a bottom pad for the banner. */
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 4.5rem);
	scrollbar-color: #24344F #070C18;
}

/* Between the overlay breakpoint and ~720px the inline nav wraps to two rows
   (header about 129px). */
@media (min-width: 600px) and (max-width: 781px) {
	html {
		scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 8.5rem);
	}
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* Engines without :where() (Chrome < 88, Samsung Internet < 15, Safari < 14)
   drop WordPress's `a:where(...)` link colour and fall back to UA blue on
   navy, and lose the `:root :where(.is-layout-flex)` gap. aspect-ratio
   arrived with :where() in Chromium 88 (Safari 14.x also matches, harmlessly);
   modern browsers keep whatever Site Editor > Styles sets. */
@supports not (aspect-ratio: 1 / 1) {
	a {
		color: var(--wp--preset--color--accent);
	}
	.earnox-light a:not(.earnox-action) {
		color: #0E7490;
	}
	.wp-block-buttons.is-layout-flex {
		gap: var(--wp--preset--spacing--30);
	}
}

/* The full-bleed decorative layers are 100vw wide, which includes the
   scrollbar. `clip` trims that sliver without creating a scroll container,
   so the sticky header keeps working; browsers without `clip` ignore this
   and fall back to body's overflow-x: hidden. */
.wp-site-blocks {
	overflow-x: clip;
}

/* A fixed background wash: one cyan light (upper right), faint indigo depth
   (upper left) and a ~2.5% film-grain tile that removes 8-bit banding.
   Never add a background to html or a transform/filter to body, or this
   fixed layer stops covering the viewport. */
body::before {
	content: "";
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	/* 100vh is the large (toolbar-hidden) viewport on Android, so showing or
	   hiding the URL bar never resizes, and re-rasters, this full-screen layer. */
	height: 100vh;
	z-index: -1;
	pointer-events: none;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px 160px,
		radial-gradient(1100px 620px at 78% -8%, rgba(34, 211, 238, 0.09), rgba(34, 211, 238, 0) 62%),
		radial-gradient(900px 560px at 6% 2%, rgba(99, 102, 241, 0.07), rgba(99, 102, 241, 0) 60%),
		var(--wp--preset--color--base);
}

/* ==========================================================================
   2. Accessibility
   An outline cannot be painted over by a glow or box-shadow. Tool fields,
   tool buttons, the segmented control and consent keep their own rings.
   ========================================================================== */

:where(a,
button,
input,
select,
textarea,
summary {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

[tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

:where(.earnox-light {
	outline-color: var(--ex-c700);
}

.earnox-tool) :focus-visible {
	outline-color: var(--ex-c700);
}

/* Dark CTA panels nested inside the paper article body keep the cyan ring. */
.earnox-light .earnox-panel :focus-visible {
	outline-color: var(--wp--preset--color--accent);
}

/* Skip-link target: focus is moved programmatically; do not outline all of main. */
#earnox-main:focus {
	outline: none;
}

::selection {
	background: rgba(34, 211, 238, 0.28);
	color: #FFFFFF;
	-webkit-text-fill-color: #FFFFFF;
}

.earnox-light ::selection,
.earnox-tool ::selection {
	background: rgba(14, 116, 144, 0.18);
	color: #0B1220;
	-webkit-text-fill-color: #0B1220;
}

/* Dark blocks nested in paper keep the dark-surface selection. */
.earnox-light .earnox-panel ::selection,
.earnox-tool .earnox-formula ::selection,
.earnox-tool .earnox-scan ::selection {
	background: rgba(34, 211, 238, 0.28);
	color: #FFFFFF;
	-webkit-text-fill-color: #FFFFFF;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--wp--preset--spacing--30);
	z-index: 999;
	padding: 0.75rem 1.15rem;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-weight: 650;
	border-radius: 0 0 var(--wp--custom--radius--md) var(--wp--custom--radius--md);
	text-decoration: none;
	transition: top var(--wp--custom--transition--fast);
}

/* Self-sufficient: core's skip-link CSS is not loaded (see functions.php),
   and this outranks core's grey `.screen-reader-text:focus` box (0,2,0). */
.skip-link.screen-reader-text:focus {
	top: 0;
	left: var(--wp--preset--spacing--30);
	clip-path: none;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	padding: 0.75rem 1.15rem;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-size: 1rem;
	line-height: 1.4;
}

/* ==========================================================================
   3. Header and navigation
   Two bug fixes:
   1) The header was sticky inside a template-part wrapper exactly its own
      height, so it never stuck. The wrapper is now the sticky element.
   2) backdrop-filter on the header made it the containing block for the
      position:fixed mobile menu, trapping the open menu at header height.
      The tint lives on ::before; the blur goes on the header only at
      >= 782px, where the overlay menu (< 600px) never opens. Chrome does
      not render backdrop-filter on the z-index:-1 ::before. Never put
      transform, filter or will-change on the header or its wrapper.
   ========================================================================== */

.wp-site-blocks > .wp-block-template-part:first-child {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 90;
}

/* The wrapper's stacking context caps the open mobile overlay (z-index
   100000 inside it) at 90, below the cookie banner (9990). Lift the whole
   wrapper while the overlay is open; core and initNavFallback() both set
   html.has-modal-open. */
html.has-modal-open .wp-site-blocks > .wp-block-template-part:first-child {
	z-index: 100000;
}

/* The admin bar scrolls away below 600px; avoid a 46px gap for logged-in users. */
@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > .wp-block-template-part:first-child {
		top: 0;
	}
}

.earnox-header {
	position: relative;
	isolation: isolate;
	background: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	border-bottom: 0;
}

.earnox-header::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	pointer-events: none;
	/* Opaque without the blur: at .94, dark text on the white panels scrolling
	   underneath stayed legible through the header on phones. */
	background-color: #070C18;
	transition: background-color 320ms var(--ex-e-ui);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	@media (hover: hover) and (pointer: fine) and (min-width: 782px) {
		.earnox-header {
			-webkit-backdrop-filter: saturate(150%) blur(14px);
			backdrop-filter: saturate(150%) blur(14px);
		}
		.earnox-header::before {
			background-color: rgba(7, 12, 24, 0.88);
		}
	}
}

/* Lighter only with JS AND at scroll-top, where only the page background can
   sit behind it. With JS off it never drops below .88 (muted nav 6.58:1 even
   over white tool panels). */
.earnox-js .earnox-header:not(.is-stuck)::before {
	background-color: rgba(7, 12, 24, 0.6);
}

.earnox-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	pointer-events: none;
	background: var(--ex-edge);
	opacity: 0;
	transition: opacity 320ms var(--ex-e-ui);
}

.earnox-header.is-stuck::after {
	opacity: 1;
}

/* Single posts: the same line becomes a CSS-only reading-progress bar. */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: scroll()) {
		.earnox-reading .earnox-header::after {
			bottom: -2px;
			height: 2px;
			opacity: 1;
			background: linear-gradient(90deg, #22D3EE, #5EEAD4);
			transform-origin: 0 50%;
			animation: ex-progress linear both;
			animation-timeline: scroll(root); /* must follow the shorthand */
		}
	}
}

.earnox-brand {
	display: inline-flex;
	align-items: center;
	margin: 0;
	flex: 0 0 auto;
}

.earnox-brand a {
	display: inline-flex;
	align-items: center;
}

.earnox-brand img {
	height: 34px;
	width: auto;
	max-width: none;
	display: block;
}

/* Navigation links */
.earnox-nav .wp-block-navigation-item__content {
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 550;
	color: var(--wp--preset--color--muted);
	padding: 0.4rem 0;
	position: relative;
	transition: color var(--wp--custom--transition--fast);
}

/* Underline grows from the centre, cyan to teal. */
.earnox-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, #22D3EE, #5EEAD4);
	transform: scaleX(0);
	transform-origin: 50% 50%;
	transition: transform 260ms var(--ex-e-ui);
}

/* Core's doubled-class `color: inherit` (0,3,0) outranks the resting colour
   above; match it here so hover/current (later, same weight) still win. */
.earnox-nav .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: var(--wp--preset--color--muted);
}

.earnox-nav .wp-block-navigation-item__content:hover,
.earnox-nav .wp-block-navigation-item__content:focus,
.earnox-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
}

.earnox-nav .wp-block-navigation-item__content:hover::after,
.earnox-nav .wp-block-navigation-item__content:focus::after,
.earnox-nav .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* The mobile overlay that WordPress renders for the navigation block. */
.wp-block-navigation__responsive-container.is-menu-open {
	background:
		radial-gradient(120% 50% at 100% 0, rgba(34, 211, 238, 0.1), rgba(34, 211, 238, 0) 60%),
		linear-gradient(180deg, #1C2A45, #0B1220 55%) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.375rem;
	color: var(--wp--preset--color--contrast);
}

/* Chromium < 88 drops core's :where()-qualified column layout for the open
   overlay; modern core (0,4,0) outranks this, so nothing changes there. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	flex-direction: column;
	align-items: var(--navigation-layout-justification-setting, flex-start);
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--contrast);
}

@media (prefers-reduced-motion: no-preference) {
	/* Runs each time the overlay opens (display none to flex restarts animations). */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		animation: ex-rise-s 320ms var(--ex-e-out) backwards;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 40ms; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 80ms; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 120ms; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: 160ms; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(n+6) { animation-delay: 200ms; }
}

/* ==========================================================================
   4. Buttons
   Dark text on every CTA gradient stop: 13.48 / 10.81 / 9.12:1;
   hover stops 15.50 / 13.21 / 10.50:1.
   ========================================================================== */

.earnox-btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-decoration: none;
	line-height: 1.2;
	transition: transform var(--wp--custom--transition--fast),
	            background-color var(--wp--custom--transition--fast),
	            box-shadow var(--wp--custom--transition--fast),
	            border-color var(--wp--custom--transition--fast),
	            color var(--wp--custom--transition--fast);
}

.wp-block-button__link:active,
.earnox-btn:active {
	transform: scale(0.985);
	transition-duration: 120ms;
}

/* Button groups stored as classic HTML (no is-layout-flex, no core buttons
   CSS on the page) would otherwise stack flush, e.g. on About. */
.wp-block-buttons:not(.is-layout-flex) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

/* Primary */
.wp-block-button.is-style-earnox-primary .wp-block-button__link,
.earnox-btn--primary {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: var(--wp--preset--color--base);
	font-weight: 640;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--pill);
	padding: 0.85rem 1.6rem;
	background: var(--ex-cta);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.5),
		inset 0 -1px 0 rgba(6, 80, 100, 0.35),
		0 10px 28px -12px rgba(34, 211, 238, 0.8);
	transition: transform 240ms var(--ex-e-ui), box-shadow 240ms var(--ex-e-ui);
}

/* Hover fill: a cross-fade (gradients cannot transition), opacity only. */
.wp-block-button.is-style-earnox-primary .wp-block-button__link::before,
.earnox-btn--primary::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	border-radius: inherit;
	background: var(--ex-cta-hover);
	opacity: 0;
	transition: opacity 240ms var(--ex-e-ui);
}

/* Light sheen, parked off the left edge. */
.wp-block-button.is-style-earnox-primary .wp-block-button__link::after,
.earnox-btn--primary::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 45%;
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(105deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0));
	transform: translateX(-120%) skewX(-12deg);
}

.wp-block-button.is-style-earnox-primary .wp-block-button__link:hover,
.earnox-btn--primary:hover {
	color: var(--wp--preset--color--base);
	transform: translateY(-2px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.55),
		inset 0 -1px 0 rgba(6, 80, 100, 0.3),
		0 16px 36px -12px rgba(94, 234, 212, 0.85);
}

.wp-block-button.is-style-earnox-primary .wp-block-button__link:focus-visible,
.earnox-btn--primary:focus-visible {
	color: var(--wp--preset--color--base);
	transform: translateY(-2px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.55),
		inset 0 -1px 0 rgba(6, 80, 100, 0.3),
		0 16px 36px -12px rgba(94, 234, 212, 0.85);
}

.wp-block-button.is-style-earnox-primary .wp-block-button__link:hover::before,
.earnox-btn--primary:hover::before {
	opacity: 1;
}

.wp-block-button.is-style-earnox-primary .wp-block-button__link:focus-visible::before,
.earnox-btn--primary:focus-visible::before {
	opacity: 1;
}

.wp-block-button.is-style-earnox-primary .wp-block-button__link:active,
.earnox-btn--primary:active {
	transform: translateY(-1px) scale(0.985);
	transition-duration: 120ms;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.wp-block-button.is-style-earnox-primary .wp-block-button__link:hover::after,
	.earnox-btn--primary:hover::after {
		transform: translateX(330%) skewX(-12deg);
		transition: transform 800ms var(--ex-e-out);
	}
}

/* Hero CTA: one automatic sheen pass after the entrance settles. */
@media (prefers-reduced-motion: no-preference) {
	.wp-site-blocks .earnox-hero .is-style-earnox-primary .wp-block-button__link::after {
		animation: ex-sheen 1s var(--ex-e-out) 1.6s backwards;
	}
}

/* Ghost. Hover text: cyan on its .08 fill = 9.61:1. */
.wp-block-button.is-style-earnox-ghost .wp-block-button__link,
.earnox-btn--ghost {
	background-color: rgba(17, 27, 46, 0.45);
	background-image: none;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--ex-line-strong);
	border-radius: var(--wp--custom--radius--pill);
	padding: 0.85rem 1.6rem;
	font-weight: 600;
	box-shadow: var(--ex-hi);
	transition:
		transform 240ms var(--ex-e-ui),
		border-color 240ms var(--ex-e-ui),
		background-color 240ms var(--ex-e-ui),
		color 140ms var(--ex-e-ui);
}

.wp-block-button.is-style-earnox-ghost .wp-block-button__link:hover,
.earnox-btn--ghost:hover {
	border-color: rgba(34, 211, 238, 0.6);
	color: var(--wp--preset--color--accent);
	background-color: rgba(34, 211, 238, 0.08);
	transform: translateY(-2px);
}

.wp-block-button.is-style-earnox-ghost .wp-block-button__link:focus-visible,
.earnox-btn--ghost:focus-visible {
	border-color: rgba(34, 211, 238, 0.6);
	color: var(--wp--preset--color--accent);
	background-color: rgba(34, 211, 238, 0.08);
	transform: translateY(-2px);
}

.wp-block-button.is-style-earnox-ghost .wp-block-button__link:active,
.earnox-btn--ghost:active {
	transform: translateY(-1px) scale(0.985);
	transition-duration: 120ms;
}

/* ==========================================================================
   5. Hero
   ========================================================================== */

/* The homepage sections live inside the 1180px content column, so their
   decorative layers are positioned to span the full viewport width
   (left: 50% + width: 100vw + margin-left: -50vw) instead of being clipped
   to the column, which left hard edges on wide screens. body's
   overflow-x: hidden stops the 100vw layers causing a horizontal scrollbar. */
.earnox-hero {
	position: relative;
	isolation: isolate;
	padding-top: clamp(3.5rem, 8vw, 7rem);
	padding-bottom: clamp(3.5rem, 8vw, 7rem);
}

.earnox-hero::before,
.earnox-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	pointer-events: none;
}

/* The Lumen: one light source (upper right), indigo depth (upper left),
   teal floor. Radial gradients only, no blur filter. */
.earnox-hero::before {
	top: -20%;
	bottom: -10%;
	background:
		radial-gradient(40% 50% at 74% 32%, rgba(34, 211, 238, 0.2), rgba(34, 211, 238, 0) 70%),
		radial-gradient(34% 44% at 16% 4%, rgba(99, 102, 241, 0.14), rgba(99, 102, 241, 0) 70%),
		radial-gradient(28% 36% at 56% 82%, rgba(94, 234, 212, 0.08), rgba(94, 234, 212, 0) 70%);
}

/* Static 56px instrument grid, faded to an ellipse. */
.earnox-hero::after {
	top: 0;
	bottom: 0;
	background:
		linear-gradient(rgba(157, 176, 204, 0.06) 1px, rgba(157, 176, 204, 0) 1px) 0 0 / 56px 56px,
		linear-gradient(90deg, rgba(157, 176, 204, 0.06) 1px, rgba(157, 176, 204, 0) 1px) 0 0 / 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 25%, rgba(0, 0, 0, 0) 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 25%, rgba(0, 0, 0, 0) 75%);
}

/* Phones and tablets: a cheaper two-gradient Lumen at the top of the stacked hero. */
@media (max-width: 899px) {
	.earnox-hero::before {
		background:
			radial-gradient(60% 34% at 80% 6%, rgba(34, 211, 238, 0.18), rgba(34, 211, 238, 0) 70%),
			radial-gradient(50% 30% at 10% 0, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0) 70%);
	}
	.earnox-hero::after {
		-webkit-mask-image: radial-gradient(ellipse 90% 40% at 50% 15%, #000 20%, rgba(0, 0, 0, 0) 75%);
		mask-image: radial-gradient(ellipse 90% 40% at 50% 15%, #000 20%, rgba(0, 0, 0, 0) 75%);
	}
}

.earnox-hero__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.earnox-hero__grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	}

	/* Once a check has returned results, the checker takes the full width
	   below the hero copy, so the results dashboard has room for its two
	   columns. checker.js sets is-expanded; without :has() the dashboard
	   adapts to the narrower card instead. */
	.earnox-hero__grid:has(> #earnox-checker.is-expanded) {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Without :has(), the checker still spans both columns on its own row. */
	.earnox-hero__grid > #earnox-checker.is-expanded {
		grid-column: 1 / -1;
	}
}

.earnox-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.78rem;
	font-weight: 620;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-soft);
	padding: 0.4rem 0.85rem;
	border: 1px solid rgba(94, 234, 212, 0.28);
	border-radius: var(--wp--custom--radius--pill);
	background: rgba(94, 234, 212, 0.07);
}

.earnox-hero__title {
	margin: 1.25rem 0 0;
	font-size: var(--wp--preset--font-size--display);
	line-height: 1.06;
	letter-spacing: -0.035em;
	font-weight: 700;
	text-wrap: balance;
}

.earnox-hero__title .accent {
	color: #22D3EE; /* fallback; the gradient is applied in the @supports block below */
}

.earnox-hero__lede {
	margin-top: 1.1rem;
	max-width: var(--wp--custom--measure--prose);
	color: var(--ex-body); /* 7.41:1 even at the Lumen's worst cyan + indigo overlap */
	font-size: clamp(1.03rem, 1.6vw, 1.1875rem);
	line-height: 1.6;
}

.earnox-hero__actions {
	margin-top: 1.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.earnox-hero__note {
	margin-top: 1rem;
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
}

/* Eyebrow beacon: the dot is always rendered (no layout shift when JS runs)
   and is a brand mark, not a status claim. The ping ring runs 3 times then
   rests, and only when JS confirmed the live checker form is in the hero. */
.earnox-hero .earnox-eyebrow {
	position: relative;
}

.earnox-hero .earnox-eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ex-c300);
	box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.14), 0 0 10px rgba(103, 232, 249, 0.6);
}

.earnox-hero .earnox-eyebrow::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0.85rem;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 50%;
	border: 1px solid var(--ex-c300);
	opacity: 0;
	pointer-events: none;
}

/* Hero entrance. CSS only, so it never waits for JS. Scoped to .wp-site-blocks
   so the block editor never replays it. The h1 and lede are transform-only and
   never transparent, which keeps the LCP element painted from the first frame.
   `backwards` fill means nothing lingers once the animation has finished. */
@media (prefers-reduced-motion: no-preference) {
	.wp-site-blocks .earnox-hero::before { animation: ex-bloom 1.6s var(--ex-e-out) backwards; }
	.wp-site-blocks .earnox-hero .earnox-eyebrow { animation: ex-rise 700ms var(--ex-e-out) 40ms backwards; }
	.wp-site-blocks .earnox-hero__title { animation: ex-lift 900ms var(--ex-e-out) 80ms backwards; }
	.wp-site-blocks .earnox-hero__lede { animation: ex-lift 800ms var(--ex-e-out) 180ms backwards; }
	.wp-site-blocks .earnox-hero__actions { animation: ex-rise 800ms var(--ex-e-out) 260ms backwards; }

	html.earnox-motion:not(.earnox-lite) .earnox-hero .earnox-eyebrow.has-live::after {
		animation: ex-beacon 2.4s var(--ex-e-out) 1.4s 3 backwards;
	}

	/* Ambient drift: desktop full-effects tier only (JS opt-in). */
	html.earnox-fx .wp-site-blocks .earnox-hero::before {
		animation: ex-bloom 1.6s var(--ex-e-out) backwards, ex-drift 28s var(--ex-e-io) 1.6s infinite alternate;
	}
}

@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
	.wp-site-blocks .earnox-hero #earnox-checker { animation: ex-lift 1s var(--ex-e-out) 320ms backwards; }
}

/* The accent shimmer animates background-position, which repaints on the
   main thread every frame; phones keep the static end frame. A media query
   rather than a JS tier class, so it can never be cut off mid-run. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
	.wp-site-blocks .earnox-hero__title .accent { animation: ex-shimmer 1.6s var(--ex-e-io) 800ms backwards; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
	.wp-site-blocks .earnox-hero::before { animation-name: ex-fade; } /* opacity only on phones */
}

.earnox-hero.is-off::before {
	animation-play-state: paused;
}

/* ---------- Gradient headings (dark surfaces only; an allowlist) ----------
   `forced-colors: none` keeps this out of print and Windows High Contrast;
   browsers that do not know that feature simply keep solid #E8EFF9 headings.
   Paper (.earnox-light) headings can never match these selectors. The
   padding/margin pair stops descenders being clipped by background-clip. */
@media screen and (forced-colors: none) {
	@supports (-webkit-background-clip: text) or (background-clip: text) {
		.earnox-hero__title,
		.wp-block-post-content > .earnox-section > .wp-block-heading,
		.earnox-panel > .wp-block-heading,
		.earnox-directory__group-title,
		#earnox-main > .wp-block-post-title,
		#earnox-main > .wp-block-query-title,
		#earnox-main > .wp-block-group:not(.earnox-light) > .wp-block-post-title,
		#earnox-main > h1.wp-block-heading,
		#earnox-main > .alignwide > h1.wp-block-heading,
		#earnox-main > h2.wp-block-heading,
		#earnox-main > .wp-block-post-content > .wp-block-heading {
			background: var(--ex-head);
			-webkit-background-clip: text;
			background-clip: text;
			-webkit-text-fill-color: transparent;
			padding-bottom: 0.12em;
			margin-bottom: -0.12em;
		}

		.earnox-hero__title .accent {
			background: linear-gradient(100deg, #22D3EE, #5EEAD4 30%, #E8EFF9 50%, #5EEAD4 70%, #22D3EE) 0 0 / 250% 100%;
			-webkit-background-clip: text;
			background-clip: text;
			-webkit-text-fill-color: transparent;
		}
	}
}

/* ---------- Checker frame (#earnox-checker wraps [earnox_checker]) ----------
   A 1px gradient rim; the opaque off-white tool covers everything but the ring.
   The beam rotates a padding-bottom square with transform (no @property, no
   aspect-ratio). It sweeps once on desktop, then turns ONLY while the form
   has focus or a scan is running, and stops once results show. */
#earnox-checker {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 1px;
	border-radius: 19px;
	background: var(--ex-rim);
	box-shadow: 0 40px 90px -40px rgba(34, 211, 238, 0.45), var(--ex-sh-3);
	scroll-margin-top: 24px; /* on top of html's scroll-padding-top */
}

#earnox-checker > p { margin: 0; } /* guards a wpautop <p> wrapper */

#earnox-checker > p:empty,
#earnox-checker > br {
	display: none;
}

#earnox-checker .earnox-tool {
	margin: 0;
	background: #F3F6FA; /* the checker's soft off-white (tools.css); also cancels the tool's own gradient edge here */
	border-color: transparent;
	box-shadow: none;
}

#earnox-checker::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 50%;
	left: 50%;
	width: 200%;
	height: 0;
	padding-bottom: 200%;
	margin: -100% 0 0 -100%; /* percentages of width on both axes give a centred square */
	pointer-events: none;
	background: conic-gradient(rgba(34, 211, 238, 0) 0deg, rgba(34, 211, 238, 0) 280deg, rgba(34, 211, 238, 0.9) 325deg, #A5F3FC 345deg, rgba(34, 211, 238, 0) 360deg);
	opacity: 0;
	transition: opacity 400ms var(--ex-e-ui);
}

/* State ring (all tiers, no motion): brightens while the visitor is in the form. */
#earnox-checker::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	border-radius: inherit;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.85);
	opacity: 0;
	transition: opacity 320ms var(--ex-e-ui);
}

#earnox-checker:focus-within::after {
	opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
	html.earnox-fx #earnox-checker::before {
		animation: ex-sweep 2.2s var(--ex-e-io) 2s backwards;
	}
	html.earnox-fx #earnox-checker:focus-within::before {
		opacity: 0.85;
		animation: ex-spin 6s linear infinite;
	}
	@supports selector(:has(*)) {
		html.earnox-fx #earnox-checker:has(.earnox-scan:not([hidden]))::before {
			opacity: 1;
			animation: ex-spin 3s linear infinite;
		}
		html.earnox-fx #earnox-checker:has([data-earnox-checker-results]:not([hidden]))::before {
			opacity: 0;
			animation: none;
		}
	}
	/* Same stop for engines without :has(); checker.js toggles the class.
	   Needed because focus moves to the results title (focus-within). */
	html.earnox-fx #earnox-checker.has-results::before {
		opacity: 0;
		animation: none;
	}
}

#earnox-checker.is-off::before {
	animation-play-state: paused;
}

@media (max-width: 560px) {
	#earnox-checker { border-radius: 15px; } /* tools.css drops the tool to 14px here */
}

/* ==========================================================================
   6. Panels, cards and surfaces
   ========================================================================== */

/* Opaque fill inside a soft rim plus two static corner glows (background
   layers only). Body text 9.09:1 and muted 6.43:1 at the cyan peak. */
.earnox-panel {
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--xl);
	padding: clamp(1.25rem, 3vw, 2rem);
	background:
		radial-gradient(60% 80% at 100% 0, rgba(34, 211, 238, 0.1), rgba(34, 211, 238, 0) 70%) padding-box,
		radial-gradient(50% 70% at 0 100%, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0) 70%) padding-box,
		var(--ex-fill) padding-box,
		var(--ex-rim-soft) border-box;
	box-shadow: var(--ex-hi), var(--ex-sh-3);
}

/* Cards: no overflow:hidden so the glow can sit outside; hover animates
   transform and pseudo-element opacity only. */
.earnox-card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--lg);
	background: var(--ex-fill) padding-box, var(--ex-rim-rest) border-box;
	box-shadow: var(--ex-hi), var(--ex-sh-2);
	padding: 1.4rem;
	text-decoration: none;
	color: inherit;
	transition: transform 260ms var(--ex-e-ui);
}

/* Hover ring, cyan under-glow and accent-edge top hairline, all on one layer. */
.earnox-card::after {
	content: "";
	position: absolute;
	top: -1px;
	right: -1px;
	bottom: -1px;
	left: -1px;
	z-index: -1;
	border-radius: inherit;
	pointer-events: none;
	background: var(--wp--preset--gradient--accent-edge) 50% 0 / 100% 1px no-repeat;
	box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.42), var(--ex-glow);
	opacity: 0;
	transition: opacity 260ms var(--ex-e-ui);
}

/* Lock-on corner brackets: appear only on hover or focus and converge from 104%. */
.earnox-card::before {
	content: "";
	position: absolute;
	top: 8px;
	right: 8px;
	bottom: 8px;
	left: 8px;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(#67E8F9, #67E8F9) 0 0 / 12px 1px no-repeat,
		linear-gradient(#67E8F9, #67E8F9) 0 0 / 1px 12px no-repeat,
		linear-gradient(#67E8F9, #67E8F9) 100% 0 / 12px 1px no-repeat,
		linear-gradient(#67E8F9, #67E8F9) 100% 0 / 1px 12px no-repeat,
		linear-gradient(#67E8F9, #67E8F9) 0 100% / 12px 1px no-repeat,
		linear-gradient(#67E8F9, #67E8F9) 0 100% / 1px 12px no-repeat,
		linear-gradient(#67E8F9, #67E8F9) 100% 100% / 12px 1px no-repeat,
		linear-gradient(#67E8F9, #67E8F9) 100% 100% / 1px 12px no-repeat;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 240ms var(--ex-e-ui), transform 320ms var(--ex-e-ui);
}

.earnox-card:hover,
.earnox-card:focus-within {
	transform: translate3d(0, -4px, 0);
}

.earnox-card:hover::after,
.earnox-card:focus-within::after {
	opacity: 1;
}

.earnox-card:hover::before,
.earnox-card:focus-within::before {
	opacity: 0.8;
	transform: none;
}

.earnox-card__icon {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: var(--wp--custom--radius--md);
	background: linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(99, 102, 241, 0.1));
	border: 1px solid rgba(34, 211, 238, 0.26);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	color: var(--wp--preset--color--accent);
}

.earnox-card__title {
	font-weight: 640;
	font-size: 1.0625rem;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--contrast);
}

.earnox-card__text {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.55;
	margin: 0;
}

.earnox-card__link {
	margin-top: auto;
	padding-top: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	transition: transform 260ms var(--ex-e-ui), color 140ms var(--ex-e-ui);
}

.earnox-card:hover .earnox-card__link,
.earnox-card:focus-within .earnox-card__link {
	color: var(--wp--preset--color--accent-soft);
	transform: translateX(3px);
}

/* Stretched link keeps the whole card clickable without nesting anchors. */
.earnox-card .stretched::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

/* Cursor spotlight: desktop full-effects tier only. JS writes --mx/--my on the
   hovered card alone (rAF-throttled) and clears them on leave. */
html.earnox-fx .earnox-card {
	background:
		radial-gradient(circle 340px at var(--mx, -999px) var(--my, -999px), rgba(34, 211, 238, 0.09), rgba(34, 211, 238, 0) 60%) padding-box,
		var(--ex-fill) padding-box,
		var(--ex-rim-rest) border-box;
}

.earnox-grid {
	display: grid;
	gap: 1rem;
}

/* The blog's post-template sets its own 320px column minimum in block
   supports CSS; only plain card grids get the 220px tracks. */
.earnox-grid:not(.wp-block-post-template) {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Tools directory: the security checker as a featured block, finance tools
   as a secondary card grid below it. Edge "packets" travel along the top and
   bottom edges instead of a conic beam (wrong shape for a 4:1 box). */
.earnox-directory__featured {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: clamp(1.5rem, 4vw, 2.75rem);
	margin-bottom: clamp(2rem, 5vw, 3rem);
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--xl);
	overflow: hidden;
	background:
		radial-gradient(50% 90% at 100% 0, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0) 70%) padding-box,
		linear-gradient(155deg, rgba(34, 211, 238, 0.1), rgba(99, 102, 241, 0.06) 40%, rgba(99, 102, 241, 0) 70%) padding-box,
		linear-gradient(#0B1220, #0B1220) padding-box,
		var(--ex-rim) border-box;
	box-shadow: var(--ex-hi), var(--ex-sh-3), 0 40px 90px -50px rgba(34, 211, 238, 0.4);
}

.earnox-directory__featured::before,
.earnox-directory__featured::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 1px;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(165, 243, 252, 0), rgba(165, 243, 252, 0.95), rgba(165, 243, 252, 0)) 50% 0 / 180px 1px no-repeat;
	opacity: 0;
}

.earnox-directory__featured::before { top: 0; }
.earnox-directory__featured::after { bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
	html.earnox-fx .earnox-directory__featured::before,
	html.earnox-fx .earnox-directory__featured::after {
		opacity: 1;
		animation: ex-packet 7s var(--ex-e-io) 1s infinite backwards;
	}
	html.earnox-fx .earnox-directory__featured::after {
		animation-direction: reverse;
		animation-delay: 4.5s;
	}
	html.earnox-fx .earnox-directory__featured-mark::before,
	html.earnox-fx .earnox-directory__featured-mark::after {
		animation: ex-ping 3.2s var(--ex-e-out) 1.2s 3 backwards;
	}
	html.earnox-fx .earnox-directory__featured-mark::after {
		animation-delay: 2.8s;
	}
}

.earnox-directory__featured.is-off::before,
.earnox-directory__featured.is-off::after,
.earnox-directory__featured.is-off .earnox-directory__featured-mark::before,
.earnox-directory__featured.is-off .earnox-directory__featured-mark::after {
	animation-play-state: paused;
}

.earnox-directory__featured-body {
	position: relative;
	z-index: 1;
	max-width: 640px;
}

.earnox-directory__featured-title {
	margin: 0.75rem 0 0.6rem;
	font-size: clamp(1.4rem, 3vw, 1.85rem);
	letter-spacing: -0.02em;
}

.earnox-directory__featured-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.earnox-directory__featured-title a:hover {
	color: var(--wp--preset--color--accent);
}

.earnox-directory__featured-title a:focus-visible {
	color: var(--wp--preset--color--accent);
}

.earnox-directory__featured-text {
	margin: 0 0 1.1rem;
	color: var(--wp--preset--color--muted);
	font-size: 1rem;
	line-height: 1.6;
}

.earnox-directory__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0 0 1.4rem;
	padding: 0;
}

/* Check pills are security checks, so they use the cyan family. */
.earnox-directory__checks li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8125rem;
	font-weight: 620;
	color: var(--wp--preset--color--accent);
	background: rgba(34, 211, 238, 0.08);
	border: 1px solid rgba(34, 211, 238, 0.28);
	border-radius: var(--wp--custom--radius--pill);
	padding: 0.3rem 0.75rem;
}

.earnox-directory__checks li::before {
	content: "\2713";
	content: "\2713" / ""; /* empty alt text where supported; older engines keep the line above */
	font-size: 0.75em;
	opacity: 0.85;
}

.earnox-directory__featured-mark {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 35%, rgba(34, 211, 238, 0.18), rgba(34, 211, 238, 0.06) 70%);
	border: 1px solid rgba(34, 211, 238, 0.35);
	box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.04), 0 0 40px -6px rgba(34, 211, 238, 0.45);
	color: var(--wp--preset--color--accent);
}

.earnox-directory__featured-mark::before,
.earnox-directory__featured-mark::after {
	content: "";
	position: absolute;
	top: -1px;
	right: -1px;
	bottom: -1px;
	left: -1px;
	border-radius: 50%;
	border: 1px solid rgba(34, 211, 238, 0.45);
	opacity: 0;
	pointer-events: none;
}

.earnox-directory__featured-mark svg {
	width: 46px;
	height: 46px;
}

.earnox-directory__group-title {
	margin: 0 0 0.5rem;
	font-size: 1.375rem;
	letter-spacing: -0.015em;
}

.earnox-directory__group-text {
	margin: 0 0 1.25rem;
	color: var(--wp--preset--color--muted);
}

@media (max-width: 720px) {
	.earnox-directory__featured {
		flex-direction: column;
		align-items: flex-start;
	}

	.earnox-directory__featured-mark {
		display: none;
	}
}

.earnox-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.72rem;
	font-weight: 620;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.25rem 0.6rem;
	border-radius: var(--wp--custom--radius--pill);
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
}

.earnox-badge--security {
	color: var(--wp--preset--color--accent);
	border-color: rgba(34, 211, 238, 0.35);
	background: rgba(34, 211, 238, 0.07);
}

.earnox-badge--finance {
	color: var(--wp--preset--color--accent-soft);
	border-color: rgba(94, 234, 212, 0.35);
	background: rgba(94, 234, 212, 0.07);
}

/* Security feature grid: what the checker covers. Informational, not links,
   so there is no hover lift and no spotlight. */
.earnox-features {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	margin-top: 2rem;
}

.earnox-feature {
	position: relative;
	isolation: isolate;
	padding: 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--lg);
	background: var(--ex-fill) padding-box, var(--ex-rim-rest) border-box;
	box-shadow: var(--ex-hi), var(--ex-sh-2);
}

.earnox-feature__icon {
	position: relative;
	overflow: hidden;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	margin-bottom: 1.1rem;
	border-radius: var(--wp--custom--radius--md);
	background: linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(99, 102, 241, 0.1));
	border: 1px solid rgba(34, 211, 238, 0.26);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px -10px rgba(34, 211, 238, 0.5);
	color: var(--wp--preset--color--accent);
}

.earnox-feature__icon svg {
	width: 21px;
	height: 21px;
}

/* One teal scan line passes over the icon after the card reveals (not on lite). */
.earnox-feature__icon::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 40%;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(94, 234, 212, 0), rgba(94, 234, 212, 0.45) 60%, rgba(94, 234, 212, 0));
	opacity: 0;
	transform: translate3d(0, -110%, 0);
}

@media (prefers-reduced-motion: no-preference) {
	html.earnox-motion:not(.earnox-lite) .earnox-feature.is-in .earnox-feature__icon::after {
		animation: ex-scanline 1.1s var(--ex-e-io) calc(var(--d, 0ms) + 300ms) backwards;
	}
}

.earnox-feature__title {
	margin: 0 0 0.45rem;
	font-size: 1.0625rem;
	font-weight: 640;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--contrast);
}

.earnox-feature__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

.earnox-section__lede {
	max-width: var(--wp--custom--measure--prose);
	color: var(--ex-body);
	font-size: 1.0625rem;
}

/* Compact tool links: secondary utilities, deliberately lighter than a card. */
.earnox-toolstrip {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.earnox-toolstrip__item {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 1.15rem 0.7rem 0.8rem;
	border: 1px solid var(--ex-hair);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--ex-fill);
	box-shadow: var(--ex-hi), 0 1px 2px rgba(2, 6, 16, 0.5);
	color: var(--wp--preset--color--contrast);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition:
		transform 240ms var(--ex-e-ui),
		border-color 240ms var(--ex-e-ui),
		box-shadow 240ms var(--ex-e-ui);
}

.earnox-toolstrip__item:hover {
	color: var(--wp--preset--color--contrast);
	border-color: rgba(94, 234, 212, 0.5);
	transform: translateY(-2px);
	box-shadow: var(--ex-hi), 0 14px 30px -16px rgba(94, 234, 212, 0.45);
}

.earnox-toolstrip__item:focus-visible {
	color: var(--wp--preset--color--contrast);
	border-color: rgba(94, 234, 212, 0.5);
	transform: translateY(-2px);
	box-shadow: var(--ex-hi), 0 14px 30px -16px rgba(94, 234, 212, 0.45);
}

.earnox-toolstrip__icon {
	position: relative;
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 30%, rgba(94, 234, 212, 0.22), rgba(94, 234, 212, 0.08));
	box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.28);
	color: var(--wp--preset--color--accent-soft);
	transition: transform 240ms var(--ex-e-ui);
}

.earnox-toolstrip__icon svg {
	width: 16px;
	height: 16px;
}

.earnox-toolstrip__icon::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: 50%;
	border: 1px solid rgba(94, 234, 212, 0.6);
	opacity: 0;
	pointer-events: none;
}

.earnox-toolstrip__item:hover .earnox-toolstrip__icon {
	transform: scale(1.08);
}

.earnox-toolstrip__item:focus-visible .earnox-toolstrip__icon {
	transform: scale(1.08);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.earnox-toolstrip__item:hover .earnox-toolstrip__icon::after {
		animation: ex-ping-s 700ms var(--ex-e-out);
	}
}

@media (max-width: 600px) {
	.earnox-toolstrip__item {
		flex: 1 1 100%;
	}
}

/* ==========================================================================
   7. Light surfaces: tool panels and long-form reading
   Paper stays paper: only the edge and the shadow change.
   ========================================================================== */

.earnox-light {
	background:
		linear-gradient(#FFFFFF, #FFFFFF) padding-box,
		linear-gradient(180deg, #9BE7F5, #DCE4EF 30%) border-box;
	color: var(--wp--preset--color--ink);
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--xl);
	box-shadow: var(--wp--preset--shadow--paper); /* cyan-tinted preset from theme.json */
	padding: clamp(1.25rem, 3vw, 2.25rem);
	accent-color: var(--ex-c700);
}

/* A plain selector list, not :where(): engines without :where() would drop
   the rule and leave global-styles' near-white heading colour on white. */
.earnox-light h1,
.earnox-light h2,
.earnox-light h3,
.earnox-light h4,
.earnox-light h5,
.earnox-light h6 {
	color: var(--wp--preset--color--ink);
}

/* `:not(.earnox-tool *)` keeps paper typography out of a tool embedded in an
   article, so its red errors and muted hints keep their own colours. Where
   :where() is unsupported these drop and text inherits ink (see the
   @supports fallback near the top for links). */
.earnox-light :where(p, li):where(:not(.earnox-tool *)) {
	color: #223047;
}

.earnox-light a:where(:not(.earnox-tool *)) {
	color: #0E7490;
}

.earnox-light a:where(:not(.earnox-tool *)):hover,
.earnox-light a:where(:not(.earnox-tool *)):focus {
	color: #0B5566;
}

.earnox-light .earnox-muted {
	color: var(--wp--preset--color--ink-muted);
}

.earnox-light .wp-element-caption,
.earnox-light figcaption {
	color: var(--wp--preset--color--ink-muted); /* 5.91:1; global muted is 2.21:1 on white */
}

/* Long-form article measure */
.earnox-prose {
	max-width: var(--wp--custom--measure--prose);
}

.earnox-prose p,
.earnox-prose li {
	line-height: 1.75;
}

.earnox-prose h2:where(:not(.earnox-tool *)) {
	margin-top: 2.5rem;
}

.earnox-prose h3:where(:not(.earnox-tool *)) {
	margin-top: 1.9rem;
}

/* Code blocks in posts (classic HTML, so core's code CSS is not printed).
   The posts use them for formulas, which read better wrapped on a phone than
   scrolled; overflow-x is the backstop for a long unbreakable token. */
.earnox-prose pre {
	max-width: 100%;
	overflow-x: auto;
	white-space: pre-wrap;
	overflow-wrap: break-word;
	margin: 1.25rem 0;
	padding: 1rem 1.15rem;
	border: 1px solid #DCE4EF;
	border-radius: var(--wp--custom--radius--md);
	background: #F4F7FB;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

.earnox-prose pre code {
	font-family: inherit;
	font-size: inherit;
}

/* Tables in posts (core table CSS is not printed for classic HTML). */
.earnox-prose .wp-block-table {
	overflow-x: auto;
	margin: 1.5rem 0;
}

.earnox-prose .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}

.earnox-prose .wp-block-table th,
.earnox-prose .wp-block-table td {
	padding: 0.55rem 0.75rem;
	text-align: left;
	border-bottom: 1px solid #DCE4EF;
}

.earnox-prose .wp-block-table thead th {
	background: #F4F7FB;
	color: var(--wp--preset--color--ink);
}

/* Worked examples inside articles: a pale cyan box with a teal edge and a
   small label (label 5.0:1, body text 12:1 on the tint). */
.earnox-prose .earnox-example {
	margin: 1.5rem 0;
	padding: 1rem 1.15rem 1.05rem;
	background: #F0F9FB;
	border: 1px solid #BFE6EE;
	border-left: 3px solid var(--ex-c700);
	border-radius: var(--wp--custom--radius--md);
}

.earnox-prose .earnox-example > * {
	margin-top: 0.5rem;
	margin-bottom: 0;
}

.earnox-prose .earnox-example > :first-child {
	margin-top: 0;
}

.earnox-prose .earnox-example .earnox-example__label {
	margin-bottom: 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ex-c700);
}

.earnox-prose .earnox-example pre {
	background: #FFFFFF;
}

/* Screenshots of the site's own tools inside articles. */
.earnox-prose .earnox-shot {
	margin: 1.75rem 0;
}

.earnox-prose .earnox-shot img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #DCE4EF;
	border-radius: 12px;
	background: #0B1220;
	box-shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 18px 40px -26px rgba(14, 116, 144, 0.45);
}

.earnox-prose .earnox-shot figcaption {
	margin-top: 0.6rem;
	font-size: 0.82rem;
	line-height: 1.5;
}

/* Long reference sections folded below a tool (the checker page): each is a
   <details> whose summary holds the section's h2, so the heading outline is
   kept while the reading stays out of the way. */
.earnox-prose .earnox-section-fold {
	margin: 0;
	border-bottom: 1px solid #DCE4EF;
}

.earnox-prose :not(.earnox-section-fold) + .earnox-section-fold,
.earnox-prose .earnox-section-fold:first-child {
	border-top: 1px solid #DCE4EF;
}

.earnox-prose .earnox-section-fold + :not(.earnox-section-fold) {
	margin-top: 2.5rem;
}

.earnox-prose .earnox-section-fold > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem 0.25rem 1.05rem 0;
	list-style: none;
	cursor: pointer;
	border-radius: 6px;
}

.earnox-prose .earnox-section-fold > summary::-webkit-details-marker {
	display: none;
}

.earnox-prose .earnox-section-fold > summary::after {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	margin-right: 0.35rem;
	border-right: 2px solid var(--ex-c700);
	border-bottom: 2px solid var(--ex-c700);
	transform: translateY(-3px) rotate(45deg);
	transition: transform 220ms var(--ex-e-ui);
}

.earnox-prose .earnox-section-fold[open] > summary::after {
	transform: translateY(2px) rotate(225deg);
}

/* !important to beat WordPress's !important has-*-font-size preset class,
   which would keep these collapsed rows at x-large. */
.earnox-prose .earnox-section-fold > summary h2 {
	margin: 0;
	font-size: var(--wp--preset--font-size--large) !important;
	color: var(--wp--preset--color--ink);
}

.earnox-prose .earnox-section-fold > summary:hover h2 {
	color: var(--ex-c700);
}

.earnox-prose .earnox-section-fold__body {
	padding: 0 0 1.25rem;
}

.earnox-prose .earnox-section-fold__body > :first-child {
	margin-top: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.earnox-prose .earnox-section-fold[open] > .earnox-section-fold__body {
		animation: ex-rise-s 320ms var(--ex-e-out);
	}
}

/* Editorial accent rule above prose h2s (posts, tool explainers, legal). */
.earnox-prose > h2.wp-block-heading::before,
.earnox-prose > .wp-block-post-content > h2.wp-block-heading::before {
	content: "";
	display: block;
	width: 28px;
	height: 2px;
	margin-bottom: 0.75rem;
	border-radius: 2px;
	background: var(--ex-c700);
}

/* Bug fix: dark .earnox-panel blocks placed inside the paper article body
   inherited ink headings and #223047 paragraphs (dark text on a dark panel). */
.earnox-light .earnox-panel {
	color: var(--ex-body);
}

.earnox-light .earnox-panel h1,
.earnox-light .earnox-panel h2,
.earnox-light .earnox-panel h3,
.earnox-light .earnox-panel h4 {
	color: var(--wp--preset--color--contrast);
}

.earnox-light .earnox-panel p,
.earnox-light .earnox-panel li {
	color: var(--ex-body);
}

.earnox-light .earnox-panel a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--accent);
}

.earnox-light .earnox-panel a:not(.wp-block-button__link):hover {
	color: var(--wp--preset--color--accent-soft);
}

.earnox-light .earnox-prose > .earnox-panel > h2.wp-block-heading::before,
.earnox-prose > .earnox-panel > h2.wp-block-heading::before {
	display: none;
}

/* ---------- Callouts and disclosures ----------
   Bug fix: these were styled only in the plugin's tools.css, which loads only
   on pages that render a tool, so they showed unstyled on About, Services and
   every post. Base = dark; paper variants beat both the dark base and the
   tools.css load order. */
.earnox-callout {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	margin: 1rem 0;
	padding: 0.85rem 1rem;
	font-size: 0.9rem;
	line-height: 1.55;
	border: 1px solid var(--ex-line-strong);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface-inset);
	color: var(--ex-body);
}

.earnox-callout p { margin: 0 0 0.5rem; }

.earnox-callout > :last-child,
.earnox-callout p:last-child {
	margin-bottom: 0;
}

.earnox-callout ul { margin: 0; padding-left: 1.1rem; }
.earnox-callout__icon { flex: 0 0 auto; margin-top: 0.1rem; }

.earnox-callout--info  { background: #0C2230; border-color: rgba(34, 211, 238, 0.32); color: #BAE6FD; }
.earnox-callout--warn  { background: #221C0E; border-color: rgba(251, 191, 36, 0.35); color: #FDE68A; }
.earnox-callout--limit { background: var(--wp--preset--color--surface-inset); border-color: var(--ex-line-strong); color: var(--ex-body); }

.earnox-light .earnox-callout,
.earnox-tool .earnox-callout { background: #F4F7FB; border-color: #DCE4EF; color: #334155; }
.earnox-light .earnox-callout--info,
.earnox-tool .earnox-callout--info { background: #F0F9FF; border-color: #BAE6FD; color: #0C4A6E; }
.earnox-light .earnox-callout--warn,
.earnox-tool .earnox-callout--warn { background: #FFFBEB; border-color: #FDE68A; color: #78350F; }
.earnox-light .earnox-callout--limit,
.earnox-tool .earnox-callout--limit { background: #F4F7FB; border-color: #DCE4EF; color: #334155; }
.earnox-light .earnox-callout p,
.earnox-light .earnox-callout li { color: inherit; }

.earnox-disclosure {
	border-top: 1px solid var(--wp--preset--color--line);
	margin-top: 1rem;
	padding-top: 0.85rem;
}

.earnox-disclosure__summary {
	cursor: pointer;
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.9375rem;
	font-weight: 620;
	color: var(--wp--preset--color--accent);
}

.earnox-disclosure__summary::-webkit-details-marker { display: none; }

.earnox-disclosure__summary::before {
	content: "\25B8";
	display: inline-block;
	transition: transform 200ms var(--ex-e-ui);
}

.earnox-disclosure[open] > .earnox-disclosure__summary::before { transform: rotate(90deg); }

.earnox-disclosure__body {
	margin-top: 0.7rem;
	font-size: 0.9375rem;
	color: var(--ex-body);
}

.earnox-light .earnox-disclosure,
.earnox-tool .earnox-disclosure { border-top-color: #DCE4EF; }
.earnox-light .earnox-disclosure__summary,
.earnox-tool .earnox-disclosure__summary { color: #0B5566; }
.earnox-light .earnox-disclosure__body,
.earnox-tool .earnox-disclosure__body { color: #334155; }

@media (prefers-reduced-motion: no-preference) {
	.earnox-disclosure[open] > .earnox-disclosure__body {
		animation: ex-rise-s 320ms var(--ex-e-out);
	}
}

/* ==========================================================================
   8. Result states (used by the website checker)
   ========================================================================== */

.earnox-state {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.28rem 0.65rem;
	border-radius: var(--wp--custom--radius--pill);
	white-space: nowrap;
}

.earnox-state::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	flex: 0 0 auto;
}

.earnox-state--pass       { color: #047857; background: #D1FAE5; }
.earnox-state--attention  { color: #92400E; background: #FEF3C7; }
.earnox-state--problem    { color: #9F1239; background: #FFE4E6; }
.earnox-state--na         { color: #475569; background: #E2E8F0; }
.earnox-state--unavailable{ color: #3F3F46; background: #E4E4E7; }

/* ==========================================================================
   9. Footer
   ========================================================================== */

.earnox-footer {
	position: relative;
	isolation: isolate;
	border-top: 0;
	background: var(--ex-abyss); /* muted 9.02:1 */
}

.earnox-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	pointer-events: none;
	background: var(--ex-edge);
}

.earnox-footer::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 240px;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(50% 100% at 50% 0, rgba(34, 211, 238, 0.07), rgba(34, 211, 238, 0) 70%);
}

/* Underline grows via background-size, so it wraps across lines. */
.earnox-footer a,
.earnox-cookie-open {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	transition: color 140ms var(--ex-e-ui), background-size 240ms var(--ex-e-ui);
}

.earnox-footer a {
	font-size: 0.9rem;
}

.earnox-footer a:hover,
.earnox-cookie-open:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	background-size: 100% 1px;
}

.earnox-footer a:focus-visible,
.earnox-cookie-open:focus-visible {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	background-size: 100% 1px;
}

.earnox-footer .earnox-brand a {
	background: none;
}

.earnox-footer__legal {
	font-size: 0.82rem;
	color: var(--wp--preset--color--muted);
}

.earnox-footer h6 {
	margin: 0 0 0.85rem;
	color: var(--wp--preset--color--contrast);
	letter-spacing: 0.06em;
}

.earnox-footer h6::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 1px;
	margin-right: 0.55rem;
	vertical-align: 0.3em;
	background: var(--wp--preset--color--accent);
}

.earnox-footer ul.wp-block-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* The cookie-preferences control sits inline in a list of plain links, so it
   is reset back to look like one rather than a default <button>. */
.earnox-cookie-open {
	-webkit-appearance: none;
	appearance: none;
	background-color: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.earnox-footer .earnox-cookie-open {
	font-size: 0.9rem;
}

/* ==========================================================================
   10. Motion: reveal system and keyframes
   Hidden states exist ONLY under html.earnox-motion AND only on elements the
   script tagged itself (below the fold, not focused, not the hash target).
   Keyframes use `backwards` fill, so nothing lingers once they finish: hover
   transforms keep working and no will-change is needed.
   ========================================================================== */

.earnox-motion .earnox-rv:not(.is-in) {
	opacity: 0;
}

.earnox-motion .earnox-rv:not(.is-in):focus-within {
	opacity: 1;
}

.earnox-motion .earnox-rv.is-in {
	animation: ex-rise 700ms var(--ex-e-out) var(--d, 0ms) backwards;
}

.earnox-motion .earnox-draw:not(.is-in) {
	transform: scaleX(0);
}

.earnox-motion .earnox-draw.is-in {
	animation: ex-draw 1.1s var(--ex-e-out) var(--d, 0ms) backwards;
}

.earnox-lite .earnox-rv.is-in,
.earnox-lite .earnox-draw.is-in {
	animation-duration: 500ms;
}

@keyframes ex-fade     { from { opacity: 0; } }
@keyframes ex-bloom    { from { opacity: 0; transform: scale(0.94); } }
@keyframes ex-rise     { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
@keyframes ex-rise-s   { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
@keyframes ex-lift     { from { transform: translate3d(0, 18px, 0); } }
@keyframes ex-drift    { to { transform: translate3d(-3%, 2%, 0) scale(1.05); } }
@keyframes ex-shimmer  { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes ex-sheen    { from { transform: translateX(-120%) skewX(-12deg); } to { transform: translateX(330%) skewX(-12deg); } }
@keyframes ex-beacon   { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(2.8); } }
@keyframes ex-spin     { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ex-sweep    { 0% { opacity: 0; transform: rotate(0deg); } 15%, 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(360deg); } }
@keyframes ex-packet   { 0% { transform: translate3d(-60%, 0, 0); } 34%, 100% { transform: translate3d(60%, 0, 0); } }
@keyframes ex-ping     { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes ex-ping-s   { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes ex-scanline { 0% { opacity: 1; transform: translate3d(0, -110%, 0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, 260%, 0); } }
@keyframes ex-draw     { from { transform: scaleX(0); } }
@keyframes ex-trace    { 0% { opacity: 1; transform: translate3d(-60%, 0, 0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate3d(60%, 0, 0); } }
@keyframes ex-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ==========================================================================
   11. Utilities
   ========================================================================== */

.earnox-muted     { color: var(--wp--preset--color--muted); }
.earnox-small     { font-size: 0.875rem; }
.earnox-xsmall    { font-size: 0.8rem; }
.earnox-center    { text-align: center; }
.earnox-mono      { font-family: var(--wp--preset--font-family--mono); }
.earnox-nowrap    { white-space: nowrap; }

.earnox-section {
	padding-top: clamp(3rem, 7vw, 5.5rem);
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

/* Band sections: a soft-edged tone step plus one static top glow, drawn on a
   full-viewport-width layer (see the hero note above) so the band has no
   hard left/right edges. Targets the stable #what-we-check anchor plus an
   editor utility class. */
#what-we-check,
.earnox-section--band {
	position: relative;
	isolation: isolate;
}

#what-we-check::before,
.earnox-section--band::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(40% 420px at 50% 0, rgba(34, 211, 238, 0.08), rgba(34, 211, 238, 0) 70%),
		radial-gradient(30% 360px at 70% 40px, rgba(99, 102, 241, 0.06), rgba(99, 102, 241, 0) 70%),
		linear-gradient(180deg, rgba(10, 21, 40, 0), #0A1528 14%, #0A1528 86%, rgba(10, 21, 40, 0));
}

#what-we-check {
	scroll-margin-top: 0; /* html's scroll-padding-top clears the header */
}

/* Data-line dividers: draw out from the centre, then one bright packet traces once. */
.earnox-rule {
	position: relative;
	overflow: hidden;
	height: 1px;
	background: var(--wp--preset--gradient--accent-edge);
	border: 0;
	margin: 0;
}

/* Core's separator theme CSS pins non-wide separators to 100px (0,3,0). */
.wp-block-separator.earnox-rule:not(.is-style-wide):not(.is-style-dots) {
	width: 100%;
}

.earnox-rule::after {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 3px;
	opacity: 0;
	pointer-events: none;
	background: radial-gradient(closest-side, rgba(165, 243, 252, 0.95), rgba(34, 211, 238, 0.35) 55%, rgba(34, 211, 238, 0)) 50% 0 / 140px 3px no-repeat;
	transform: translate3d(-60%, 0, 0);
}

@media (prefers-reduced-motion: no-preference) {
	html.earnox-motion:not(.earnox-lite) .earnox-draw.is-in::after {
		animation: ex-trace 1.4s var(--ex-e-io) calc(var(--d, 0ms) + 500ms) backwards;
	}
}

/* Breadcrumbs */
.earnox-breadcrumbs {
	font-size: 0.82rem;
	color: var(--wp--preset--color--muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	padding: 0;
	margin: 0 0 1.25rem;
	list-style: none;
}

.earnox-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.earnox-breadcrumbs li + li::before {
	content: "/";
	color: var(--wp--preset--color--line);
}

/* Keep the trail on one line: the current page (repeated in the H1 right
   below) truncates instead of wrapping under a dangling separator. */
.earnox-breadcrumbs {
	flex-wrap: nowrap;
}

.earnox-breadcrumbs li {
	flex: 0 0 auto;
}

.earnox-breadcrumbs li:last-child {
	flex: 0 1 auto;
	min-width: 0;
}

.earnox-breadcrumbs li:last-child > span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Single post meta: the "Updated" date only renders when the post was
   modified; drop the separator that would otherwise trail the date. */
.earnox-reading #earnox-main .earnox-small.earnox-muted > p:last-child {
	display: none;
}

.earnox-breadcrumbs a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.earnox-breadcrumbs a:hover,
.earnox-breadcrumbs a:focus {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

/* ==========================================================================
   12. Posts, badges, pagination, search
   ========================================================================== */

.earnox-postcard {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border: 1px solid var(--ex-hair);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--ex-fill);
	box-shadow: var(--ex-hi), var(--ex-sh-2);
	transition: transform 260ms var(--ex-e-ui), border-color 260ms var(--ex-e-ui);
}

.earnox-postcard:hover,
.earnox-postcard:focus-within {
	border-color: rgba(34, 211, 238, 0.42);
	transform: translate3d(0, -3px, 0);
}

html.earnox-fx .earnox-postcard {
	background:
		radial-gradient(circle 340px at var(--mx, -999px) var(--my, -999px), rgba(34, 211, 238, 0.09), rgba(34, 211, 238, 0) 60%),
		var(--ex-fill);
}

.earnox-postcard img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.earnox-postcard .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
}

.earnox-postcard .wp-block-post-featured-image img {
	transition: transform 600ms var(--ex-e-out);
}

.earnox-postcard:hover .wp-block-post-featured-image img,
.earnox-postcard:focus-within .wp-block-post-featured-image img {
	transform: scale(1.03);
}

/* Both overflow clips hide an outside outline, and the scaled image layer
   would cover an inset one; a ring on ::after (after the img) stays on top. */
.earnox-postcard .wp-block-post-featured-image a {
	position: relative;
}

.earnox-postcard .wp-block-post-featured-image a:focus-visible::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border: 2px solid var(--wp--preset--color--accent);
	pointer-events: none;
}

.earnox-postcard .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	background-image: linear-gradient(rgba(34, 211, 238, 0.45), rgba(34, 211, 238, 0.45));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 100% 1px;
	transition: color 140ms var(--ex-e-ui);
}

.earnox-postcard .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

.earnox-postcard .wp-block-post-title a:focus-visible {
	color: var(--wp--preset--color--accent);
}

/* Single post: featured image ring. */
.earnox-reading #earnox-main > .wp-block-post-featured-image img {
	box-shadow: 0 0 0 1px var(--ex-hair), var(--ex-sh-3);
}

/* Category badges colour by category. Without :has(), badges stay neutral. */
.earnox-badge a {
	color: inherit;
	text-decoration: none;
}

@supports selector(:has(*)) {
	.earnox-badge:has(a[href*="/category/security"]) {
		color: var(--wp--preset--color--accent);
		border-color: rgba(34, 211, 238, 0.35);
		background: rgba(34, 211, 238, 0.07);
	}
	.earnox-badge:has(a[href*="/category/finance"]) {
		color: var(--wp--preset--color--accent-soft);
		border-color: rgba(94, 234, 212, 0.35);
		background: rgba(94, 234, 212, 0.07);
	}
}

/* Pagination pills (previously unstyled). 44px targets. */
.wp-block-query-pagination {
	gap: 0.5rem;
	align-items: center;
}

.wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.45rem 0.95rem;
	border: 1px solid rgba(148, 178, 220, 0.16);
	border-radius: var(--wp--custom--radius--pill);
	background-color: rgba(17, 27, 46, 0.6);
	color: var(--wp--preset--color--contrast);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 240ms var(--ex-e-ui), background-color 240ms var(--ex-e-ui), color 140ms var(--ex-e-ui);
}

.wp-block-query-pagination a.page-numbers:hover,
.wp-block-query-pagination a.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination a.wp-block-query-pagination-next:hover {
	border-color: rgba(34, 211, 238, 0.6);
	background-color: rgba(34, 211, 238, 0.08);
	color: var(--wp--preset--color--accent);
}

.wp-block-query-pagination .page-numbers.current {
	border-color: rgba(34, 211, 238, 0.45);
	background-color: rgba(34, 211, 238, 0.1);
	color: var(--wp--preset--color--accent);
}

.wp-block-query-pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
}

/* Core Search block (404 and search template; previously unstyled). */
.wp-block-search .wp-block-search__inside-wrapper {
	background: var(--wp--preset--color--surface-inset);
	border: 1px solid var(--ex-field);
	border-radius: var(--wp--custom--radius--pill);
	padding: 4px;
	transition: border-color 240ms var(--ex-e-ui);
}

.wp-block-search .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--preset--color--accent);
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.wp-block-search .wp-block-search__input {
	background: transparent;
	border: 0;
	color: var(--wp--preset--color--contrast);
	padding: 0.6rem 1rem;
	font-size: 1rem;
}

.wp-block-search .wp-block-search__input::placeholder {
	color: var(--ex-subtle);
	opacity: 1;
}

.wp-block-search .wp-block-search__input:focus-visible {
	outline: none; /* the wrapper shows the ring */
}

.wp-block-search .wp-block-search__button {
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	padding: 0.6rem 1.2rem;
	background: var(--ex-cta);
	color: var(--wp--preset--color--base);
	font-weight: 640;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   13. Inner pages and 404
   ========================================================================== */

/* Static title-band glow behind the breadcrumbs and h1 on every non-home
   template (the front-page main has no .earnox-section, so it is excluded). */
#earnox-main.earnox-section {
	position: relative;
	isolation: isolate;
}

#earnox-main.earnox-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 460px;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(45% 70% at 28% 0, rgba(34, 211, 238, 0.1), rgba(34, 211, 238, 0) 70%),
		radial-gradient(35% 60% at 82% 0, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0) 70%);
}

.earnox-eyebrow-wrap {
	margin: 0;
}

/* 404 radar: rings and sweep wedge in ONE layer; rotating it moves only the
   sweep because the rings are concentric. Desktop only; rotates only in the
   full-effects tier. */
@media (min-width: 900px) {
	.error404 #earnox-main::after {
		content: "";
		position: absolute;
		z-index: -1;
		top: 1rem;
		right: 1rem;
		right: max(1rem, calc(50% - 560px));
		width: 400px;
		height: 400px;
		border-radius: 50%;
		pointer-events: none;
		background:
			repeating-radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0) 0, rgba(34, 211, 238, 0) 55px, rgba(34, 211, 238, 0.1) 55px, rgba(34, 211, 238, 0.1) 56px),
			conic-gradient(rgba(34, 211, 238, 0) 0deg, rgba(34, 211, 238, 0) 290deg, rgba(34, 211, 238, 0.16) 350deg, rgba(34, 211, 238, 0) 360deg);
		-webkit-mask-image: radial-gradient(closest-side, #000 60%, rgba(0, 0, 0, 0));
		mask-image: radial-gradient(closest-side, #000 60%, rgba(0, 0, 0, 0));
	}
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
	html.earnox-fx .error404 #earnox-main::after {
		animation: ex-spin 8s linear infinite;
	}
}

.error404 #earnox-main.is-off::after {
	animation-play-state: paused;
}

/* ==========================================================================
   14. Touch, small-screen and low-end summary
   - Every infinite loop (drift, beam, packets, mark rings, 404 sweep) needs
     html.earnox-fx = JS + motion + fine pointer + >= 900px + not lite.
     CSS default, touch, lite, JS-off and the editor: zero loops.
   - Header blur: media query only (fine pointer, >= 782px); otherwise .94 fill.
   - Spotlight: JS writes the variables only in the fx tier.
   - Hover sheen and hero accent shimmer (background-position): (hover: hover)
     and (pointer: fine) only.
   - Under 900px: two-gradient Lumen, opacity-only bloom, no checker entrance.
   - Lite: 500ms reveals; no scan lines, rule traces or beacon pings.
   - No filter:blur animation and no will-change anywhere.
   ========================================================================== */

/* ==========================================================================
   15. Cross-document view transitions (Chrome 126+, Safari 18.2; others
   ignore). Desktop only, to spare low-memory phones the snapshot cost.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
	@view-transition {
		navigation: auto;
	}
	.earnox-header {
		view-transition-name: earnox-header;
	}
	::view-transition-old(root) {
		animation: ex-vt-out 160ms var(--ex-e-in) both;
	}
	::view-transition-new(root) {
		animation: ex-vt-in 320ms var(--ex-e-out) both;
	}
}

@keyframes ex-vt-out { to { opacity: 0; } }
@keyframes ex-vt-in  { from { opacity: 0; transform: translate3d(0, 8px, 0); } }

/* ==========================================================================
   16. Print
   ========================================================================== */

@media print {
	.earnox-header,
	.earnox-footer,
	.earnox-hero__actions,
	.wp-block-navigation {
		display: none !important;
	}

	body::before {
		display: none;
	}

	body {
		background: #fff;
		color: #000;
	}

	.earnox-rv,
	.earnox-draw {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}

	.earnox-hero::before,
	.earnox-hero::after,
	#earnox-checker::before,
	#earnox-main::before,
	#earnox-main::after,
	.earnox-footer::after {
		display: none !important;
	}
}

/* Forced colours (Windows High Contrast). Gradient text is already excluded
   through `forced-colors: none`. */
@media (forced-colors: active) {
	.earnox-card,
	.earnox-feature,
	.earnox-panel,
	.earnox-postcard,
	.earnox-light,
	.earnox-directory__featured,
	.earnox-toolstrip__item {
		border-color: CanvasText;
	}
	#earnox-checker {
		padding: 0;
	}
	#earnox-checker .earnox-tool {
		border: 1px solid CanvasText;
	}
	.earnox-card::before,
	.earnox-card::after,
	#earnox-checker::before,
	#earnox-checker::after,
	.earnox-hero::before,
	.earnox-hero::after {
		display: none;
	}
}

/* ==========================================================================
   16a. Services: compact service cards with details on demand, and the
   enquiry steps. Same rim and fill as the homepage cards.
   ========================================================================== */

.earnox-svc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin-top: var(--wp--preset--spacing--40);
}

@media (min-width: 760px) {
	.earnox-svc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.earnox-svc--wide {
		grid-column: 1 / -1;
	}
}

.earnox-svc {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-width: 0;
	padding: 1.35rem 1.4rem 1.3rem;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--lg);
	background: var(--ex-fill) padding-box, var(--ex-rim-rest) border-box;
	box-shadow: var(--ex-hi), var(--ex-sh-2);
}

.earnox-svc__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.3;
	color: var(--wp--preset--color--contrast);
}

.earnox-svc__lead {
	margin: 0;
	color: var(--ex-body);
}

.earnox-svc .earnox-callout {
	margin: 0.15rem 0 0;
}

.earnox-svc__more {
	margin-top: 0.15rem;
	padding-top: 0.7rem;
	border-top: 1px solid var(--ex-hair);
}

.earnox-svc__more > summary {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	list-style: none;
	font-size: 0.92rem;
	font-weight: 620;
	color: var(--wp--preset--color--accent);
	border-radius: 6px;
	cursor: pointer;
}

.earnox-svc__more > summary::-webkit-details-marker {
	display: none;
}

.earnox-svc__more > summary::before {
	content: "";
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 200ms var(--ex-e-ui);
}

.earnox-svc__more[open] > summary::before {
	transform: rotate(45deg);
}

.earnox-svc__more ul {
	margin: 0.75rem 0 0;
	padding-left: 1.15rem;
	color: var(--ex-body);
}

.earnox-svc__more li + li {
	margin-top: 0.4rem;
}

.earnox-svc__more p {
	margin: 0.75rem 0 0;
	color: var(--ex-body);
}

.earnox-svc__cta {
	align-self: flex-start;
	margin-top: auto;
	padding-top: 0.35rem;
	font-weight: 650;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.earnox-svc__cta:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.earnox-process {
	margin-top: var(--wp--preset--spacing--60);
}

.earnox-process__title {
	margin: 0 0 0.4rem;
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--contrast);
}

.earnox-process__lede {
	margin: 0 0 1.25rem;
	color: var(--ex-body);
}

.earnox-process__steps {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 760px) {
	.earnox-process__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1080px) {
	.earnox-process__steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.earnox-process__step {
	min-width: 0;
	padding: 1.1rem 1.15rem 1.2rem;
	border: 1px solid var(--ex-hair);
	border-radius: var(--wp--custom--radius--lg);
	background: rgba(17, 27, 46, 0.6);
}

.earnox-process__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin-bottom: 0.65rem;
	border-radius: 50%;
	font-weight: 700;
	color: var(--wp--preset--color--base);
	background: var(--ex-cta);
	box-shadow: 0 6px 16px -8px rgba(34, 211, 238, 0.8);
}

.earnox-process__step h3 {
	margin: 0 0 0.35rem;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--contrast);
}

.earnox-process__step p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--ex-body);
}

.earnox-process__cta {
	margin-top: 1.4rem;
}

/* ==========================================================================
   16b. No flex `gap` (Chrome < 84, Samsung Internet < 14, Safari < 14.1).
   `inset` shipped with flex gap in Safari 14.1 and just after it in Chrome
   (87 vs 84), so it is the feature test; Chrome 84-86 get a little extra
   space. Without this, nav links, CTA pairs and card parts touch.
   ========================================================================== */

@supports not (inset: 0) {
	@media (min-width: 600px) {
		.earnox-nav .wp-block-navigation__container > .wp-block-navigation-item + .wp-block-navigation-item { margin-left: 1.75rem; }
	}
	.earnox-hero__actions > *,
	.earnox-toolstrip > *,
	.wp-block-buttons > .wp-block-button,
	.wp-block-buttons:not(.is-layout-flex) > * { margin: 0 0.75rem 0.75rem 0; }
	.earnox-card > * + * { margin-top: 0.65rem; }
	.earnox-card > .earnox-card__link { margin-top: auto; }
	.earnox-breadcrumbs li + li { margin-left: 0.4rem; }
	.earnox-breadcrumbs li + li::before { margin-right: 0.4rem; }
	.earnox-callout__icon { margin-right: 0.7rem; }
	.earnox-svc > * + * { margin-top: 0.65rem; }
	.earnox-svc__more > summary::before { margin-right: 0.5rem; }
	@media (max-width: 600px) {
		.earnox-toolstrip > * { margin-right: 0; }
	}
}

/* ==========================================================================
   17. Reduced motion. Keep at the very END of the file.
   Delays are zeroed too, so nothing sits parked at a start state. Hover colour
   changes stay; lifts go.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		animation-delay: 0s !important;
		transition-duration: 0.001ms !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}

	.earnox-rv,
	.earnox-draw {
		opacity: 1 !important;
		transform: none !important;
	}

	.earnox-hero::before,
	#earnox-checker::before,
	.earnox-hero .earnox-eyebrow::after,
	.earnox-directory__featured::before,
	.earnox-directory__featured::after,
	.earnox-directory__featured-mark::before,
	.earnox-directory__featured-mark::after,
	.error404 #earnox-main::after,
	.earnox-rule::after,
	.earnox-feature__icon::after,
	.earnox-toolstrip__icon::after {
		animation: none !important;
	}

	.earnox-card:hover,
	.earnox-card:focus-within,
	.earnox-postcard:hover,
	.earnox-postcard:focus-within,
	.earnox-toolstrip__item:hover,
	.wp-block-button__link:hover,
	.earnox-btn:hover {
		transform: none !important;
	}

	.earnox-toolstrip__item:focus-visible,
	.wp-block-button__link:focus-visible,
	.earnox-btn:focus-visible {
		transform: none !important;
	}
}
