/*
Theme Name: Enghouse Interactive 2026
Theme URI: https://www.enghouseinteractive.com
Description: Divi 5 child theme for the Enghouse Interactive 2026 rebrand. Holds the design-system tokens as CSS custom properties plus preset-scoped hover and transition CSS, so both survive Divi updates. Layout and styling live in Divi 5 native blocks and global module presets, not here.
Author: Enghouse Interactive
Author URI: https://www.enghouseinteractive.com
Template: Divi
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ehi-2026
*/

/* -------------------------------------------------------------------------
   Design tokens - Enghouse Interactive 2026 Rebrand
   Source of truth: the active Novamira design (slug
   enghouse-interactive-2026-rebrand), derived from the published variables in
   Figma file 98jTOasO8Ni9wrq0EseiyB.

   These exist so preset-scoped CSS can reference a token instead of repeating
   a hex. Divi 5 preset fields still hold literal values; when a token changes,
   update BOTH the Divi preset and the value here.
   ------------------------------------------------------------------------- */

:root {
	/* Brand + surfaces */
	--ehi-brand-primary: #003594;
	--ehi-brand-primary-hover: #002a76; /* primary blue darkened ~8%, hover/pressed only */
	--ehi-brand-primary-light: #71b2c9;
	--ehi-brand-primary-soft: #dae1ef;
	--ehi-on-primary: #ffffff;
	--ehi-surface-canvas: #ffffff;
	--ehi-surface-soft: #f8faf9;
	--ehi-surface-inverse: #003594;
	--ehi-surface-inverse-deep: #2b2a2c;

	/* Ink */
	--ehi-text-primary: #414042;
	--ehi-text-strong: #2b2a2c;
	--ehi-text-mid: #6b6a6c;
	--ehi-text-mute: #747375;
	--ehi-text-mute-soft: #b4b3b5;
	--ehi-text-inverse: #ffffff;
	--ehi-text-link: #003594;

	/* Borders */
	--ehi-border-hairline: #dcdbdd;

	/* 2026 categorical accents - one meaning each, never decoration */
	--ehi-accent-blue: #0bacf4;      /* Financial services */
	--ehi-accent-blue-soft: #eaf8fe; /* informational badge ground */
	--ehi-accent-orange: #ef6d2b;    /* Technology */
	--ehi-accent-violet: #8c5ca4;    /* Healthcare */
	--ehi-accent-green: #0dc935;     /* Public sector */
	--ehi-accent-fuchsia: #ff5273;   /* Media */

	/* Type */
	--ehi-font-ui: "Poppins", sans-serif;
	--ehi-font-mono: "Roboto Mono", monospace;
	--ehi-size-display-xl: 56px;
	--ehi-size-display-lg: 44.8px;
	--ehi-size-display-md: 32px;
	--ehi-size-display-sm: 24px;
	--ehi-size-display-xs: 20px;
	--ehi-size-body-md: 16px;
	--ehi-size-body-sm: 14px;
	--ehi-size-eyebrow: 15px;
	--ehi-size-eyebrow-sm: 12px;
	--ehi-size-caption: 12.8px;
	--ehi-leading-display: 1.04;
	--ehi-leading-display-tight: 1.3;
	--ehi-leading-body: 1.6;
	--ehi-tracking-body: -0.16px;
	--ehi-tracking-eyebrow: 1.5px;
	--ehi-tracking-eyebrow-sm: 0.6px;

	/* Space */
	--ehi-space-xs: 8px;
	--ehi-space-sm: 12px;
	--ehi-space-md: 16px;
	--ehi-grid-gap: 24px;
	--ehi-gutter: 32px;
	--ehi-space-lg: 48px;
	--ehi-space-xl: 64px;
	--ehi-section-md: 88px;

	/* Shape */
	--ehi-radius-sm: 4px;
	--ehi-radius-md: 8px;
	--ehi-radius-card: 8px;

	/* Motion - the design's motion dial is 0.25, so short and quiet */
	--ehi-ease: cubic-bezier(0.2, 0, 0.2, 1);
	--ehi-duration: 180ms;
	--ehi-lift: -2px;
}

/* -------------------------------------------------------------------------
   SECTION 2 - Preset-scoped motion and hover CSS

   This lives in style.css rather than its own file on purpose. WP Engine
   blocks writing *.php anywhere on this install, so this child theme has no
   functions.php and therefore cannot enqueue a second stylesheet. Divi's
   et_divi_enqueue_stylesheet() auto-enqueues this file (handle
   divi-style-child) whenever a child theme is active and has not enqueued its
   own - see Divi/functions.php ~line 522. One file is the only reliable path.

   RULES (from the active design and the divi-5-presets skill):
   - Every selector below is scoped to a Divi 5 global preset class. Nothing
     here may select a bare Divi module class, because that would style every
     instance site-wide and take the restyle decision away from the preset.
   - Only transform, opacity, color, border-color, background-color and
     box-shadow are animated. Never width, height, top or left.
   - Duration is var(--ehi-duration) (180ms). The motion dial is 0.25: hover
     feedback only. No entrance animation, no parallax, no loops.
   - Anything Divi 5 exposes as a module property (hover colours, transition
     duration, transform) belongs in the PRESET, not here. This section is only
     for what the builder cannot express.
   ------------------------------------------------------------------------- */

/* Reduced motion, declared before any rule below can apply. */
@media (prefers-reduced-motion: reduce) {
	[class*="ehi-preset-"],
	[class*="ehi-preset-"]:hover {
		transition: none !important;
		transform: none !important;
	}
}

/* Live preset rules are appended here as each section's Divi 5 preset is
   created and its generated class name is known. Guessing a Divi preset
   selector produces dead CSS - always read the class back from Divi. */

/* --- Footer link styling: REMOVED, now native ----------------------------
   The footer link lists used to be raw <a> markup styled from here via
   .ehi-footer-link. That violated the divi-build-page rule against styling
   with custom CSS. Both are now handled by the "Text / Footer Link List"
   global preset using native attrs:
     content.decoration.bodyFont.link.font  (colour, no underline, hover)
     content.decoration.bodyFont.body.font  (family, size, line-height)
   Do not reintroduce link CSS here - edit the preset instead.
   ---------------------------------------------------------------------- */

/* Keep a visible focus ring for keyboard users. Divi does not expose
   :focus-visible as a module attr, so this is a legitimate escape hatch
   rather than attr-covered styling. */
.et-l--footer a:focus-visible,
.et-l--header a:focus-visible {
	outline: 2px solid var(--ehi-brand-primary);
	outline-offset: 2px;
	border-radius: var(--ehi-radius-sm);
}

/* --- Suppress Divi's default button hover padding shift ------------------
   Divi ships .et_pb_button:hover{padding-right:1em;padding-left:1em} to make
   room for its arrow icon. The icon is disabled on these buttons
   (button.decoration.button.icon.enable = off), so the padding change is a
   pure layout shift - and animating padding is banned by the active design's
   motion rules. Colour and border-color transitions stay in the module
   preset, where they belong.
   ---------------------------------------------------------------------- */

/* Header button excluded: it uses the "Button / Primary SM" preset (8px 16px),
   whose padding lives in Design > Spacing, so Divi no longer adds its 1em hover
   shift there and 20px here would widen it on hover. */
body #page-container .et-l--footer .et_pb_button:hover {
	padding-right: 20px !important;
	padding-left: 20px !important;
}

/* --- Header chrome ------------------------------------------------------ */

.et-l--header .et_pb_menu__logo img {
	height: auto;
	max-height: 44px;
	width: auto;
}

.et-l--header .et_pb_menu .et-menu > li > a {
	transition: color var(--ehi-duration) var(--ehi-ease);
}

/* --- Loop card thumbnail ratio ------------------------------------------
   Divi 5's image module exposes no object-fit or aspect-ratio attribute, so a
   3-up loop of posts with mixed source ratios gives ragged card tops. Scoped
   to a single explicit class set on the module (CSS Class field), not to an
   order-based .et_pb_image_N selector.
   ---------------------------------------------------------------------- */

.ehi-card-thumb,
.ehi-card-thumb .et_pb_image_wrap {
	display: block;
	width: 100%;
}

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

/* =======================================================================
   2026 EXPRESSIVE FOUNDATIONS
   -----------------------------------------------------------------------
   Added 2026-08-05 for the Figma "Sections/Hero/Immersive Band" direction.

   These five recipes are the ONE sanctioned exception to the project rule
   "never style with custom CSS" (per-site skill 12.2). Each is something
   Divi 5 exposes no attribute for -- background-clip:text, backdrop-filter,
   ::before/::after wash layers, and @keyframes -- and the design system
   itself specifies the class names as the implementation contract
   (Figma "01 Foundations" > Accent spectrum / Gradient headline / Glass
   surface / Photographic bands / Motion, each with a "Code -- ." line).

   Everything else stays in module attrs and presets. Do not extend this
   block with ordinary styling.
   ==================================================================== */

:root {
	/* Inverse ink and lines, for washed photographic bands and dark bands */
	--ei-text-inverse-soft: rgba(255, 255, 255, 0.8);
	--ei-text-inverse-mute: rgba(255, 255, 255, 0.72);
	--ei-hairline-inverse: rgba(255, 255, 255, 0.2);
	--ei-border-glass: rgba(255, 255, 255, 0.34);

	/* Glass tints */
	--ei-glass-tint: rgba(0, 53, 148, 0.34);
	--ei-glass-light: rgba(255, 255, 255, 0.16);

	/* New 2026 accents */
	--ei-accent-yellow: #dde20a;
	--ei-accent-pink: #f77cf7;

	/* Immersive band geometry */
	--ei-hero-immersive-min-h: 620px;
	--ei-figure-h: 560px;

	/* Motion -- one easing curve for entrances, one for state */
	--ei-dur-rise: 800ms;
	--ei-travel-rise: 18px;
	--ei-stagger-step: 100ms;
	--ei-dur-underline: 900ms;
	--ei-dur-pulse: 2600ms;
	--ei-dur-float: 7000ms;
	--ei-ease-entrance: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ei-ease-state: ease;
}

/* --- 1. Accent spectrum ------------------------------------------------
   3px seven-stop hairline. Exactly one per page, on the top edge of a dark
   or photographic hero, or the bottom edge of a light one. Decorative.
   -------------------------------------------------------------------- */

.ei26-spectrum {
	background-image: linear-gradient(
		90deg,
		#003594 0%,
		#0bacf4 18%,
		#0dc935 36%,
		var(--ei-accent-yellow) 52%,
		#ef6d2b 68%,
		#ff5273 84%,
		#8c5ca4 100%
	);
	height: 3px;
	pointer-events: none;
	position: absolute;
	left: 0;
	right: 0;
	z-index: 3;
}

.ei26-spectrum--top { top: 0; }
.ei26-spectrum--bottom { bottom: 0; }

/* --- 2. Gradient headline ---------------------------------------------
   Exactly one word in an H1. The parent keeps a solid colour so the word
   stays legible if background-clip:text is unsupported.
   -------------------------------------------------------------------- */

.ei26-h1__accent {
	background-image: linear-gradient(
		96deg,
		#0bacf4 0%,
		var(--ei-accent-yellow) 55%,
		var(--ei-accent-pink) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
	.ei26-h1__accent {
		color: var(--ei-accent-yellow);
		-webkit-text-fill-color: var(--ei-accent-yellow);
	}
}

/* --- 3. Glass surface --------------------------------------------------
   The only surface allowed to sit on top of an image. The 1px border is
   required -- without it the panel dissolves on light passages.
   -------------------------------------------------------------------- */

.ei26-panel__card,
.ei26-stage__chip {
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	background-color: var(--ei-glass-tint);
	border: 1px solid var(--ei-border-glass);
	border-radius: var(--ehi-radius-sm, 4px);
}

.ei26-panel__card--light,
.ei26-stage__chip--light {
	background-color: var(--ei-glass-light);
}

/* --- 4. Photographic bands --------------------------------------------
   Recipe A (immersive): image, then a 102deg brand wash that must reach at
   least 0.72 alpha behind the copy column, plus a soft accent-blue radial.
   Recipe B (editorial): image masked to a vertical fade.
   -------------------------------------------------------------------- */

.ei26-hero--immersive {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	isolation: isolate;
	min-height: var(--ei-hero-immersive-min-h);
	overflow: hidden;
	position: relative;
}

.ei26-hero--immersive::before,
.ei26-hero--immersive::after {
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.ei26-hero--immersive::before {
	background-image: linear-gradient(
		102deg,
		rgba(0, 53, 148, 0.94) 0%,
		rgba(0, 53, 148, 0.72) 34%,
		rgba(0, 53, 148, 0.1) 62%,
		rgba(140, 92, 164, 0.05) 84%
	);
	z-index: 1;
}

.ei26-hero--immersive::after {
	background-image: radial-gradient(
		42% 52% at 76% 46%,
		rgba(11, 172, 244, 0.34) 0%,
		rgba(11, 172, 244, 0) 100%
	);
	z-index: 1;
}

.ei26-hero--immersive > * {
	position: relative;
	z-index: 2;
}

.ei26-hero--editorial::before {
	content: "";
	inset: 0 0 auto 0;
	height: 62%;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.11) 55%, rgba(0, 0, 0, 0) 100%);
	-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.11) 55%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
	position: absolute;
}

/* --- 5. Motion ---------------------------------------------------------
   Four patterns, one easing curve. Nothing else moves.
   -------------------------------------------------------------------- */

@keyframes ei26-rise {
	from { opacity: 0; transform: translateY(var(--ei-travel-rise)); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes ei26-underline {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

@keyframes ei26-pulse {
	0%   { box-shadow: 0 0 0 0 currentColor; }
	70%  { box-shadow: 0 0 0 10px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes ei26-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-9px); }
}

.ei26-rise {
	animation: ei26-rise var(--ei-dur-rise) var(--ei-ease-entrance) both;
}

.ei26-rise--1 { animation-delay: calc(var(--ei-stagger-step) * 1); }
.ei26-rise--2 { animation-delay: calc(var(--ei-stagger-step) * 2); }
.ei26-rise--3 { animation-delay: calc(var(--ei-stagger-step) * 3); }
.ei26-rise--4 { animation-delay: calc(var(--ei-stagger-step) * 4); }
.ei26-rise--5 { animation-delay: calc(var(--ei-stagger-step) * 5); }

/* The four H2 beats. Each underline sweeps from the left. */
.ei26-beat {
	display: inline-block;
	padding-bottom: 6px;
	position: relative;
}

.ei26-beat::after {
	animation: ei26-underline var(--ei-dur-underline) var(--ei-ease-entrance) both;
	background-color: currentColor;
	border-radius: 2px;
	bottom: 0;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	right: 0;
	transform-origin: left center;
}

.ei26-beat--1::after { animation-delay: 150ms; color: #0bacf4; }
.ei26-beat--2::after { animation-delay: 350ms; color: #0dc935; }
.ei26-beat--3::after { animation-delay: 550ms; color: #ef6d2b; }
.ei26-beat--4::after { animation-delay: 750ms; color: #ff5273; }

/* Eyebrow status dot. Yellow on dark, green on light. */
.ei26-dot {
	animation: ei26-pulse var(--ei-dur-pulse) var(--ei-ease-state) infinite;
	border-radius: 50%;
	color: var(--ei-accent-yellow);
	background-color: var(--ei-accent-yellow);
	display: inline-block;
	height: 8px;
	width: 8px;
}

.ei26-dot--light {
	color: #0dc935;
	background-color: #0dc935;
}

/* Eyebrow row: centre the dot on the text and space it from the label.
   inline-flex (not flex) so the row still follows the module's text-align. */
.et_pb_text_inner p:has(> .ei26-dot) {
	align-items: center;
	display: inline-flex;
}

.et_pb_text_inner p > .ei26-dot {
	flex: none;
	margin-right: 8px;
}

/* Glass cards and capability chips only. Offset so they never move together. */
.ei26-float { animation: ei26-float var(--ei-dur-float) var(--ei-ease-state) infinite; }
.ei26-float--2 { animation-delay: 1.4s; }
.ei26-float--3 { animation-delay: 2.8s; }

@media (prefers-reduced-motion: reduce) {
	.ei26-rise,
	.ei26-beat::after,
	.ei26-dot,
	.ei26-float {
		animation: none !important;
	}

	.ei26-rise { opacity: 1; transform: none; }
	.ei26-beat::after { transform: scaleX(1); }
}

/* --- Immersive band layout --------------------------------------------
   Divi handles the grid; these are the pieces it has no attribute for.
   -------------------------------------------------------------------- */

.ei26-hero__figure img {
	display: block;
	filter: drop-shadow(-18px 22px 54px rgba(0, 20, 60, 0.45));
	height: auto;
	margin-left: auto;
	max-height: var(--ei-figure-h);
	width: auto;
}

.ei26-proof__item {
	border-left: 2px solid var(--ei-hairline-inverse);
	padding-left: 20px;
}

@media (max-width: 991px) {
	:root { --ei-figure-h: 400px; }
	.ei26-hero__figure img { margin-right: auto; }
}

@media (max-width: 767px) {
	:root { --ei-figure-h: 320px; }
}

/* --- Immersive band compound pieces ------------------------------------ */

.ei26-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ei26-stage__chip {
	align-items: center;
	color: var(--ei-text-inverse-soft);
	display: inline-flex;
	font-size: 12.8px;
	font-weight: 500;
	gap: 7px;
	letter-spacing: 0.4px;
	line-height: 1.2;
	padding: 6px 13px;
	text-transform: uppercase;
}

.ei26-stage__chip i {
	border-radius: 50%;
	display: block;
	flex: 0 0 auto;
	height: 6px;
	width: 6px;
}

.ei26-proof {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 32px;
}

.ei26-proof__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ei26-proof__item strong {
	color: #fff;
	font-size: clamp(1.5rem, 1.35rem + 0.5vw, 2rem);
	font-weight: 500;
	line-height: 1.3;
}

.ei26-proof__item span {
	color: var(--ei-text-inverse-mute);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6;
}

.ei26-baseline {
	border-top: 1px solid var(--ei-hairline-inverse);
	display: flex;
	flex-wrap: wrap;
	gap: 24px 40px;
	justify-content: space-between;
	padding-top: 22px;
}

.ei26-hero--immersive h1,
.ei26-hero--immersive h2 { margin: 0; padding: 0; }

/* The spectrum bar must beat the generic stacking-context rule above. */
.ei26-hero--immersive > .ei26-spectrum {
	position: absolute;
	z-index: 3;
}

/* 2026 spec: focus is a 3px accent-blue ring at 3px offset (ei26 focus ring). */
.ei26-hero--immersive a:focus-visible,
.et_pb_section a.et_pb_button:focus-visible {
	outline: 3px solid #0bacf4;
	outline-offset: 3px;
}

/* Divi reserves hover padding for its button arrow; the On Dark preset shows
   the arrow permanently, so suppress the shift here too (see skill 10.5). */
body #page-container .preset--module--divi-button--c31404c3-13b5-4ee5-b2cc-56fa4e419eac:hover {
	padding-right: 48px !important;
	padding-left: 28px !important;
}

body #page-container .preset--module--divi-button--84efc8a9-36a2-4288-806b-988eb56a8093:hover {
	padding-right: 28px !important;
	padding-left: 28px !important;
}

/* Figma keeps the baseline strip 980px wide inside the 1280 container, so the
   proof numbers stay inside the part of the brand wash that is still >=0.72
   alpha. Full width would push them onto the pale right-hand side. */
.ei26-baseline__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 40px;
	justify-content: space-between;
	max-width: 980px;
	width: 100%;
}

/* Deployment-pill dot colours are fixed per model (blue / violet / orange) and
   identify the model, per Pills/Deployment Pill. Class-based, not inline hex. */
.ei26-chip__dot--cloud { background-color: #0bacf4; }
.ei26-chip__dot--onprem { background-color: #8c5ca4; }
.ei26-chip__dot--hybrid { background-color: #ef6d2b; }

/* --- Demo CTA modal ----------------------------------------------------
   Native <dialog>: showModal() supplies the focus trap, Esc-to-close and
   background inerting, so none of that is hand-rolled. Only the scroll lock
   and the scrim need CSS.
   -------------------------------------------------------------------- */

.ei26-modal {
	background: #fff;
	border: 0;
	border-radius: var(--ehi-radius-md, 8px);
	color: #414042;
	max-width: min(560px, calc(100vw - 2rem));
	padding: 0;
	width: 100%;
}

.ei26-modal::backdrop {
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	background: rgba(0, 20, 60, 0.62);
}

html:has(.ei26-modal[open]) { overflow: hidden; }

.ei26-modal__head {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 24px 24px 0;
}

.ei26-modal__title {
	color: #2b2a2c;
	font: 500 clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem)/1.3 Poppins, Helvetica, Arial, sans-serif;
	margin: 0;
}

.ei26-modal__close {
	background: none;
	border: 0;
	border-radius: var(--ehi-radius-sm, 4px);
	color: #6b6a6c;
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
	min-height: 44px;
	min-width: 44px;
}

.ei26-modal__close:hover { color: #003594; }
.ei26-modal__close:focus-visible { outline: 3px solid #0bacf4; outline-offset: 3px; }

.ei26-modal__body { padding: 8px 24px 24px; }
.ei26-modal__status { color: #6b6a6c; font-size: 14px; margin: 0; }
.ei26-modal__body .mktoForm { width: 100% !important; }


/* =======================================================================
   TWO-TONE ICON COLOURING VIA CUSTOM PROPERTIES
   -----------------------------------------------------------------------
   Carries the 2025 pattern (.ei-2025-icon-* in theme enghouse,
   css/vc-support.css) forward onto the 2026 accents.

   The SVG file declares its own classes:
     .cls-1 { fill: var(--color-primary); }
     .cls-2 { fill: var(--color-secondary); }
   Custom properties inherit, so ANY ancestor carrying one of the classes
   below colours the icon. One accent-neutral SVG per glyph then serves
   every accent - no more one-file-per-colour.

   REQUIREMENT: the SVG must be INLINE in the DOM. An <img src="*.svg">
   cannot see these properties. SVG Support in Advanced Mode swaps
   img.style-svg for inline markup on load, which is how they get there.
   ==================================================================== */

/* Mapped onto the accent classes the cards already carry, so a card needs
   no extra class - only style-svg on the icon itself. */
.ehi-accent-brand   { --color-primary: #003594; --color-secondary: rgba(0, 53, 148, 0.5); }
.ehi-accent-blue    { --color-primary: #0bacf4; --color-secondary: rgba(11, 172, 244, 0.5); }
.ehi-accent-green   { --color-primary: #0f932c; --color-secondary: rgba(15, 147, 44, 0.5); }
.ehi-accent-orange  { --color-primary: #ef6d2b; --color-secondary: rgba(239, 109, 43, 0.5); }
.ehi-accent-fuchsia { --color-primary: #ff5273; --color-secondary: rgba(255, 82, 115, 0.5); }
.ehi-accent-violet  { --color-primary: #8c5ca4; --color-secondary: rgba(140, 92, 164, 0.5); }

/* Standalone equivalents, for icons outside an accent-bearing card. */
.ei26-icon                { --color-primary: #003594; --color-secondary: rgba(0, 53, 148, 0.5); }
.ei26-icon--brand         { --color-primary: #003594; --color-secondary: rgba(0, 53, 148, 0.5); }
.ei26-icon--blue          { --color-primary: #0bacf4; --color-secondary: rgba(11, 172, 244, 0.5); }
.ei26-icon--green         { --color-primary: #0f932c; --color-secondary: rgba(15, 147, 44, 0.5); }
.ei26-icon--orange        { --color-primary: #ef6d2b; --color-secondary: rgba(239, 109, 43, 0.5); }
.ei26-icon--fuchsia       { --color-primary: #ff5273; --color-secondary: rgba(255, 82, 115, 0.5); }
.ei26-icon--violet        { --color-primary: #8c5ca4; --color-secondary: rgba(140, 92, 164, 0.5); }

/* On an inverse ground: solid white with a translucent white second tone. */
.ei26-icon--inverse       { --color-primary: #ffffff; --color-secondary: rgba(255, 255, 255, 0.5); }

/* Two genuinely different hues, matching the 2025 .ei-2025-icon-duotone. */
.ei26-icon--duotone       { --color-primary: #003594; --color-secondary: #71b2c9; }

/* Follow whatever accent the surrounding Feature Card is set to. The 50%
   second tone needs color-mix; without it both tones fall back to solid. */
.ei26-icon--card { --color-primary: var(--ehi-card-accent-line, #003594); --color-secondary: var(--ehi-card-accent-line, #003594); }
@supports (color: color-mix(in srgb, red 50%, transparent)) {
	.ei26-icon--card { --color-secondary: color-mix(in srgb, var(--ehi-card-accent-line, #003594) 50%, transparent); }
}

/* Pre-swap: the plugin replaces img.style-svg on load. Reserve the box so
   the swap does not shift layout, and avoid a flash of the raw file. */
img.style-svg { display: block; }

/* SVG Support swaps the <img> for inline <svg>, which inherits the img's
   constrained width but keeps the FILE's own height attribute - so the glyph
   stretches and the accent chip goes non-square (64x72 instead of 64x64).
   Let height follow the viewBox. .replaced-svg is added by the plugin, so this
   only ever touches an icon that was actually swapped. */
svg.replaced-svg { display: block; height: auto; }


/* ehi-global-font-fallback -------------------------------------------------------
   Divi emits its global font variables with no generic fallback:
       :root{ --et_global_body_font: 'Poppins'; }
   and nearly every module resolves font-family through them. If the Poppins
   webfont fails to load - a CDN blip, an optimisation plugin stripping the
   link, a blocked third party - the whole site drops to the browser default,
   which is a serif. Declaring the fallback here keeps that failure mode at
   "slightly off" rather than "looks broken".

   The doubled root selector below is deliberate. Divi prints its own :root
   block inline near the end of <body>, i.e. after this stylesheet, so an
   equal-specificity rule here would lose on source order. Specificity (0,2,0)
   wins regardless of document position.
   ------------------------------------------------------------------------ */
:root:root {
  --et_global_heading_font: "Poppins", sans-serif;
  --et_global_body_font: "Poppins", sans-serif;
}


/* ehi-self-hosted-poppins ----------------------------------------------------------
   Poppins served from this theme instead of fonts.googleapis.com, so no
   visitor request ever reaches Google. Autoptimize is set to Remove Google
   Fonts, which strips Divi's enqueued link; these faces replace it.

   Only 300 / 500 / 700 are here because those are the only weights the
   generated Divi CSS and the D5 presets reference (checked, not assumed).
   Italic faces are included because Divi core carries
   cite,em,i{font-style:italic} and the content actually uses it: 47 of 190
   posts contain <em> (130 instances, 15 of them inside <strong>, which Divi
   renders at 700). Without a real italic the browser shears the upright,
   which reads badly in a geometric sans. These cost nothing on pages with no
   <em> - a face is only downloaded when text needs it.

   Two files per weight, split on unicode-range exactly as Google splits them,
   so a page with no accented characters never downloads latin-ext.
   Files: wp-content/themes/ehi-2026/fonts/ (~40 KB total, woff2 only -
   universally supported since 2016).
   --------------------------------------------------------------------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/poppins-300-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/poppins-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


@font-face {
  font-family: "Poppins";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/poppins-300italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/poppins-300italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-700italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-700italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ehi-sup-sub-fix ------------------------------------------------------------
   Divi's reset breaks superscripts. It puts sup/sub in the font-size:100%
   reset list and then raises sup with bottom:.8em:

       sub,sup{height:0;line-height:1;position:relative;vertical-align:baseline}
       sup{bottom:.8em}

   So a footnote marker renders at the FULL body size and is lifted 12.8px
   inside a 25.6px line box - it ends up halfway into the line above and
   collides with the descenders there. Browsers normally apply
   font-size:smaller to sup; Divi overrides that and never restores it.

   Fixed globally rather than in the Post Content preset. The defect is in
   Divi's reset, so it applies to every module - a <sup> in a Text module, a
   CTA or a heading is just as broken. Today all 42 instances happen to sit in
   blog post content, but they include registered-trademark marks (Net
   Promoter(R), NPS(R)), which is exactly the kind of thing that turns up in
   marketing copy as the remaining WPBakery pages are migrated.

   Prefixed with body to score (0,0,2) against Divi's (0,0,1), so it wins on
   specificity rather than relying on stylesheet order - Autoptimize
   aggregates and can reorder.
   ---------------------------------------------------------------------- */
body sub,
body sup {
  font-size: 0.72em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
body sup {
  top: -0.45em;
  bottom: auto;
}
body sub {
  bottom: -0.2em;
  top: auto;
}

/* =======================================================================
   FAQ ACCORDION SEQUENCE TOKEN
   -----------------------------------------------------------------------
   Added 2026-10-01 for the Figma "Sections/Accordion-FAQs" component.

   The FAQ accordion cycles color/sequence/01-05 across its rows. Four of
   those five are aliases of tokens already declared above:

     sequence/01 -> --ehi-brand-primary   #003594
     sequence/02 -> --ehi-accent-blue     #0bacf4
     sequence/03 -> (its own value)       #0f932c   <- declared here
     sequence/04 -> --ehi-accent-orange   #ef6d2b
     sequence/05 -> --ehi-accent-fuchsia  #ff5273

   sequence/03 is NOT --ehi-accent-green (#0dc935). In Figma it is the one
   member of the sequence that is not an alias: the Light mode holds a
   darkened green because #0dc935 on #f8faf9 is about 1.9:1 and fails AA for
   the question text it tints. Do not "tidy" this into --ehi-accent-green.

   The cycle itself is declared on the "Accordion / FAQ" Divi preset, not
   here, so the mapping travels with the preset.
   ==================================================================== */

:root {
	--ehi-accent-green-aa: #0f932c;
}

/* ==========================================================================
   One Click Accessibility (pojo) toolbar: anchor bottom-left, not top-left.
   The plugin only offers "Offset from Top" (Customizer), so top is reset here;
   !important beats the inline top offset the plugin prints when one is set.
   ========================================================================== */
#pojo-a11y-toolbar {
	top: auto !important;
	bottom: 20px;
}
#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle {
	top: auto;
	bottom: 0;
}
@media (max-width: 767px) {
	#pojo-a11y-toolbar {
		bottom: calc(10px + env(safe-area-inset-bottom));
	}
}

/* EHI-RESOURCE-TEMPLATE-START */
/* Resource detail templates (Document + Recording).
   Structural rules carry the .et-l--body prefix on purpose: Divi emits per-module rules such
   as .et_pb_section_2_tb_body AFTER this sheet, so a two-class selector ties and loses on
   order. Three classes beats Divi one regardless of order.
   Section padding is NOT set here: the default section preset emits at #et-boc specificity,
   which no child-theme selector can beat. It lives in the block spacing attrs instead. */

.et-l--body .et_pb_section.ehi-res-crumbs > .et_pb_row,
.et-l--body .et_pb_section.ehi-res-detail > .et_pb_row,
.et-l--body .et_pb_section.ehi-res-body > .et_pb_row { padding-left: var(--ehi-gutter); padding-right: var(--ehi-gutter); }

/* Kicker - margin sits on the paragraph so an empty field collapses to nothing. */
.et-l--body .et_pb_module.ehi-res-kicker p { color: var(--ehi-brand-primary); font-family: var(--ehi-font-ui); font-size: var(--ehi-size-eyebrow-sm); font-weight: 600; letter-spacing: var(--ehi-tracking-eyebrow); text-transform: uppercase; margin: 0 0 var(--ehi-space-sm); }
.et-l--body .et_pb_module.ehi-res-kicker p:empty { display: none; }
.et-l--body .et_pb_module.ehi-res-title h1 { color: var(--ehi-text-strong); font-size: var(--ehi-size-display-lg); line-height: var(--ehi-leading-display-tight); letter-spacing: -0.5px; margin: 0 0 var(--ehi-space-md); }
.et-l--body .et_pb_module.ehi-res-lede p { color: var(--ehi-text-mid); font-size: var(--ehi-size-display-xs); line-height: var(--ehi-leading-body); margin: 0; }
.et-l--body .et_pb_module.ehi-res-lede p:empty { display: none; }

/* Media + takeaways. .et_flex_group forces column on a divi/group, so row is set explicitly. */
.et-l--body .et_pb_group.ehi-res-assetrow { display: flex; flex-direction: row; align-items: flex-start; gap: var(--ehi-gutter); border-top: 1px solid var(--ehi-border-hairline); margin-top: var(--ehi-space-lg); padding-top: var(--ehi-space-lg); }
.et-l--body .et_pb_module.ehi-res-cover { flex: 0 0 400px; max-width: 400px; }
/* The gated column is only ~15/24 wide, so a 400px cover would crush the takeaways. */
.et-l--body .ehi-res-detail--gated .et_pb_module.ehi-res-cover { flex: 0 0 260px; max-width: 260px; }
/* No forced aspect-ratio: the Figma 3:4 is the artwork spec for new covers, not something CSS
   should enforce by cropping. Many featured images here are landscape. */
.ehi-res-cover__img { display: block; width: 100%; height: auto; background: var(--ehi-surface-soft); border: 1px solid var(--ehi-border-hairline); border-radius: var(--ehi-radius-sm); }
.et-l--body .et_pb_module.ehi-res-still, .et-l--body .et_pb_module.ehi-res-player, .et-l--body .et_pb_module.ehi-res-takeaways { flex: 1 1 auto; min-width: 0; }
.ehi-res-still__box { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ehi-surface-inverse-deep); border-radius: var(--ehi-radius-md); }
.ehi-res-still__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Responsive video. Lost twice to unversioned style.css overwrites - keep inside these markers. */
.ehi-video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ehi-surface-inverse-deep); border-radius: var(--ehi-radius-md); }
.ehi-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@supports not (aspect-ratio: 16 / 9) { .ehi-video-embed { height: 0; padding-top: 56.25%; } }

/* Takeaways - check marks are CSS, so the field stays a plain editable list. */
.et-l--body .et_pb_module.ehi-res-takeaways ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--ehi-space-sm); }
.et-l--body .et_pb_module.ehi-res-takeaways li { position: relative; padding-left: 28px; color: var(--ehi-text-primary); line-height: var(--ehi-leading-body); }
.et-l--body .et_pb_module.ehi-res-takeaways li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 13px; height: 7px; border-left: 2px solid var(--ehi-brand-primary); border-bottom: 2px solid var(--ehi-brand-primary); transform: rotate(-45deg); }
.et-l--body .et_pb_module.ehi-res-insidehead h2 { color: var(--ehi-text-strong); font-size: var(--ehi-size-display-xs); margin: 0 0 var(--ehi-space-xs); }

/* Gated form card */
.et-l--body .et_pb_group.ehi-res-formcard { background: var(--ehi-surface-canvas); border: 1px solid var(--ehi-border-hairline); border-top: 3px solid var(--ehi-accent-blue); border-radius: var(--ehi-radius-card); padding: var(--ehi-gutter); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.et-l--body .et_pb_module.ehi-res-formheading h2 { color: var(--ehi-text-strong); font-size: var(--ehi-size-display-sm); margin: 0; }
.et-l--body .et_pb_module.ehi-res-reassure p { color: var(--ehi-text-mid); font-size: var(--ehi-size-body-sm); margin: 0; }
.et-l--body .et_pb_module.ehi-res-reassure p:empty { display: none; }
.et-l--body .et_pb_module.ehi-res-fineprint p { color: var(--ehi-text-mute); font-size: var(--ehi-size-caption); line-height: 1.5; margin: 0; }
.ehi-res-gate .ehi-mkto-title:empty { display: none; }

/* Metadata row - an empty field hides its own separator rather than leaving a stray dot. */
.ehi-res-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--ehi-space-xs); color: var(--ehi-text-mute); font-size: var(--ehi-size-body-sm); }
.ehi-res-meta__i:empty { display: none; }
.ehi-res-meta__i:not(:empty) ~ .ehi-res-meta__i:not(:empty)::before { content: "\00b7"; margin-right: var(--ehi-space-xs); color: var(--ehi-text-mute-soft); }

.et-l--body .et_pb_group.ehi-res-footrow { display: flex; flex-direction: row; align-items: flex-end; gap: var(--ehi-grid-gap); border-top: 1px solid var(--ehi-border-hairline); margin-top: var(--ehi-space-lg); padding-top: var(--ehi-space-md); }
/* CTA sits under the takeaways, left-aligned, and never stretches to the column width. */
.et-l--body .et_pb_group.ehi-res-inside { align-items: flex-start; }
.et-l--body .et_pb_module.ehi-res-cta { align-self: flex-start; margin: var(--ehi-space-xs) 0 0; }
.et-l--body .et_pb_group.ehi-res-metawrap { flex: 1 1 auto; min-width: 0; }

@media (max-width: 980px) {
  .et-l--body .et_pb_group.ehi-res-assetrow { flex-direction: column; }
  .et-l--body .et_pb_module.ehi-res-cover { flex-basis: auto; max-width: 100%; }
  .et-l--body .et_pb_group.ehi-res-footrow { flex-direction: column; align-items: flex-start; }
  .et-l--body .et_pb_module.ehi-res-title h1 { font-size: var(--ehi-size-display-md); }
}
/* EHI-RESOURCE-TEMPLATE-END */

/* EHI-SECURITY-TABLE-MOBILE (2026-11-23): two-column topic tables (.ehi-security-table) stack on phones. The topic (row th) sits full width above its answer; the column header row is kept for screen readers only. Specificity beats the per-module css.freeForm table rules. */
@media (max-width: 767px) {
  .et_pb_text .et_pb_text_inner table.ehi-security-table,
  .et_pb_text .et_pb_text_inner table.ehi-security-table tbody,
  .et_pb_text .et_pb_text_inner table.ehi-security-table tr { display: block !important; width: 100% !important; }
  .et_pb_text .et_pb_text_inner table.ehi-security-table thead { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
  .et_pb_text .et_pb_text_inner table.ehi-security-table th,
  .et_pb_text .et_pb_text_inner table.ehi-security-table td { display: block !important; width: 100% !important; box-sizing: border-box; border: 0 !important; }
  .et_pb_text .et_pb_text_inner table.ehi-security-table tbody th { padding: 16px 16px 4px !important; }
  .et_pb_text .et_pb_text_inner table.ehi-security-table tbody td { padding: 0 16px 16px !important; }
  .et_pb_text .et_pb_text_inner table.ehi-security-table tbody tr + tr { border-top: 1px solid #eee; }
}
/* EHI-SECURITY-TABLE-MOBILE-END */
