/*
Theme Name:   flexEngage Blocks
Theme URI:    https://www.flexengage.com
Description:  flexEngage block child theme for Ollie. NOTE: slug is flexengage-blocks, deliberately NOT 'flexengage' — the legacy Timber theme already occupies that slug and macOS filesystems are case-insensitive. Brand tokens live in theme.json — this
              stylesheet should stay close to empty. If you find yourself writing a colour
              or a spacing value here, it belongs in theme.json instead.
Author:       flexEngage
Template:     ollie
Version:      0.2.0
Requires PHP: 7.4
Text Domain:  flexengage-blocks
*/

/* Intentionally minimal. See theme.json. */

/* ---------------------------------------------------------------------------
 * Prototype (WFC-113) — the ONLY custom CSS in the mockup.
 *
 * Client logos arrive at wildly different canvas sizes with transparent
 * padding baked in, so a single width makes some marks 4px tall and others
 * 200px wide. Capping BOTH axes is the fix; the filter darkens mid-grey marks
 * without touching true-black ones. See wfc102-retheme-spike logo-strip note.
 * ------------------------------------------------------------------------ */
.fe-logo-wall img {
	/* WFC-151: every client logo is now a 330x165 canvas (WFC-86 spec, ink pre-trimmed and centred),
	   so a fixed height gives every mark the same optical weight. */
	height: 48px;
	width: auto;
	/* WFC-155: the <img> has no width/height attributes (the Image block can't save them, so they failed editor
	   validation). Every logo is a 330x165 canvas, so this reserves the width before the image loads. */
	aspect-ratio: 2 / 1;
	max-width: none;
	object-fit: contain;
	filter: grayscale(1) brightness(0.65);
}

/* ---------------------------------------------------------------------------
 * Concept B re-cut (23 Aug 2026)
 *
 * Three things core blocks do not give us. Each is here because Concept B
 * depends on it, and each is deliberately small.
 *   1. Mega menu  — Ollie gates this behind Pro. ~30 lines of CSS closes it.
 *   2. Hotspot    — the one component with no core-block equivalent. Pure CSS,
 *                   no JS, no React, no build step. In the real build this
 *                   becomes an ACF Block so the markers are editable.
 *   3. Proof chips— small flourish on the hero.
 *
 * Every one supports :focus-within as well as :hover. The live site's hotspot
 * is hover-only and display:none below medium — invisible on mobile and
 * unreachable by keyboard. Not porting that.
 * ------------------------------------------------------------------------ */

/* --- 1. Header + navigation — core Navigation block (WFC-125, 12 Oct 2026)
 *
 * The menu is a core/navigation block with its links written INTO
 * parts/header.html (no wp_navigation ref). That keeps the menu a theme file
 * that deploys with the theme, and guarantees the page-list fallback (~99
 * links) can never render. Core gives us the mobile overlay, the toggle,
 * aria-expanded and keyboard support for free; the CSS below only shapes the
 * Products submenu into a three-pillar panel and moves the mobile switch from
 * core's 600px to 1024px, where five items + CTA stop fitting on one row.
 * ------------------------------------------------------------------------ */
.fe-nav { position: relative; z-index: 50; }
.fe-nav .fe-nav-logo { flex-shrink: 0; margin: 0; }
.fe-nav .fe-nav-cta .wp-block-button__link { letter-spacing: .06em; padding: .6rem 1.1rem; white-space: nowrap; }

/* Item styling, every breakpoint */
nav.fe-menu .wp-block-navigation-item__content { color: var(--wp--preset--color--main); text-decoration: none; }
nav.fe-menu .wp-block-navigation-item__label { font-weight: 600; }
nav.fe-menu a.wp-block-navigation-item__content[href]:hover .wp-block-navigation-item__label,
nav.fe-menu a.wp-block-navigation-item__content[href]:focus-visible .wp-block-navigation-item__label { color: var(--wp--preset--color--primary); text-decoration: underline; text-underline-offset: .2em; }
nav.fe-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content { flex-direction: column; align-items: flex-start; }
nav.fe-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__description {
	display: block; font-size: .85em; line-height: 1.3; color: var(--wp--preset--color--secondary);
}
/* Pillar headings: labels, not links */
nav.fe-menu li.fe-pillar > .wp-block-navigation-item__content { cursor: default; padding-bottom: .2rem; }
nav.fe-menu li.fe-pillar > .wp-block-navigation-item__content .wp-block-navigation-item__label {
	color: var(--wp--preset--color--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8em;
}
nav.fe-menu li.fe-pillar > .wp-block-navigation__submenu-icon { display: none; }
nav.fe-menu li.is-soon .wp-block-navigation-item__content:not([href]) { cursor: default; }
nav.fe-menu li.is-soon .wp-block-navigation-item__label { color: var(--wp--preset--color--secondary); }
/* Not italic (WFC-136): an italic label here would make every page download the 19 KB italic font. The secondary colour on the label already reads as "not yet". */

/* --- Desktop: ≥1024px ---------------------------------------------------- *
 * WFC-158 (28 Oct 2026): both dropdowns are contained cards with the same chrome,
 * dropping from the header's bottom edge.
 *   - Every ancestor up to .fe-nav is static, so each card's containing block is the
 *     header: top:100% = the header's bottom edge for both cards. left:auto keeps each
 *     card at its static position, i.e. under its own label.
 *   - Hover bridge = the label's width only (was a full-width strip that covered the
 *     other menu items and held Products open).
 *   - Close delay: a card stays up ~0.2s after the pointer leaves, so cutting a corner
 *     doesn't close it. Moving onto another top-level item closes it at once.
 *   - Chrome is on a selector that beats Ollie's near-invisible submenu shadow.
 * ------------------------------------------------------------------------ */
@media (min-width: 1024px) {
	nav.fe-menu,
	nav.fe-menu .wp-block-navigation__responsive-container:not(.is-menu-open),
	nav.fe-menu .wp-block-navigation__responsive-close,
	nav.fe-menu .wp-block-navigation__responsive-dialog,
	nav.fe-menu .wp-block-navigation__responsive-container-content,
	nav.fe-menu .wp-block-navigation__container,
	nav.fe-menu .wp-block-navigation__container > li.has-child { position: static; }

	/* The card (top-level submenus only; nested pillars are reset below). Core flips width,
	   height and overflow when it hides a submenu, so those are pinned here (!important beats
	   core's 0,5,0 open/close rules) and only opacity + visibility change. */
	nav.fe-menu .wp-block-navigation__container > li.has-child > .wp-block-navigation__submenu-container {
		--fe-card-pad: var(--wp--preset--spacing--medium);
		top: 100%; left: auto !important; right: auto !important; /* core pins right:0 on right-justified menus */
		margin: 0 0 0 calc(-1 * var(--fe-card-pad)) !important; /* link text lines up with the label */
		width: var(--fe-card-w, 17rem) !important; min-width: 0 !important;
		height: auto !important; overflow: visible !important;
		padding: var(--fe-card-pad) !important;
		background: var(--wp--preset--color--base); color: var(--wp--preset--color--main);
		border: 1px solid var(--wp--preset--color--border-light) !important; /* core/Ollie reset the submenu border */
		border-top: 3px solid var(--wp--preset--color--primary) !important;
		border-radius: 0 0 8px 8px;
		box-shadow: 0 18px 40px rgba(12, 21, 17, .13);
		z-index: 1;
		/* Closing: wait 0.18s, fade 0.12s, then hide */
		transition: opacity .12s ease .18s, visibility 0s linear .3s;
	}
	/* Opening: no delay, and the open card sits above one that is still fading out */
	nav.fe-menu .wp-block-navigation__container > li.has-child:hover > .wp-block-navigation__submenu-container,
	nav.fe-menu .wp-block-navigation__container > li.has-child > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
		transition: opacity .12s ease, visibility 0s;
		z-index: 2;
	}
	/* Pointer on another top-level item: close the rest at once */
	nav.fe-menu .wp-block-navigation__container:has(> li:hover) > li.has-child:not(:hover) > .wp-block-navigation__submenu-container {
		transition: none;
	}

	/* Hover bridge: from under the label + arrow down into the card, label-width only */
	nav.fe-menu .wp-block-navigation__container > li.has-child > .wp-block-navigation-item__content { position: relative; }
	nav.fe-menu .wp-block-navigation__container > li.has-child > .wp-block-navigation-item__content::after {
		content: ""; position: absolute; top: 100%; left: -.5rem; right: -2.25rem; height: 2.25rem;
	}

	/* Open state: the label stays highlighted while its card is open (mouse or keyboard) */
	nav.fe-menu .wp-block-navigation__container > li.has-child:is(:hover, :focus-within) > .wp-block-navigation-item__content .wp-block-navigation-item__label {
		color: var(--wp--preset--color--primary);
	}

	/* Core + Ollie pad nested items for flyouts (16px 32px); a card wants tight rows. */
	nav.fe-menu .wp-block-navigation__submenu-container li.wp-block-navigation-item { padding: 0; }
	nav.fe-menu .wp-block-navigation__submenu-container li > .wp-block-navigation-item__content { padding: .3rem 0 !important; }

	/* Products: two pillar columns + footer row */
	nav.fe-menu li.fe-mega > .wp-block-navigation__submenu-container {
		--fe-card-w: 40rem;
		display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start;
		column-gap: var(--wp--preset--spacing--large); row-gap: var(--wp--preset--spacing--small);
	}
	/* Pillar columns: nested submenus always open, stacked, unstyled */
	nav.fe-menu li.fe-mega li.fe-pillar { display: flex; flex-direction: column; align-items: stretch; }
	nav.fe-menu li.fe-mega li.fe-pillar > .wp-block-navigation__submenu-container {
		position: static; left: auto; top: auto; visibility: inherit; opacity: 1; height: auto; width: auto;
		min-width: 0; overflow: visible; border: 0; box-shadow: none; padding: 0; background: transparent;
		display: flex !important; flex-direction: column;
	}
	nav.fe-menu li.fe-mega li.fe-pillar > .wp-block-navigation-item__content .wp-block-navigation-item__description { margin-bottom: .4rem; }

	/* Panel footer row */
	nav.fe-menu li.fe-panel-foot {
		border-top: 1px solid var(--wp--preset--color--border-light);
		padding-top: var(--wp--preset--spacing--small); margin-top: var(--wp--preset--spacing--x-small, .5rem);
	}
	/* WFC-141: "All products" spans the full row on its own */
	nav.fe-menu li.fe-panel-all { grid-column: 1 / -1; text-align: right; align-items: flex-end; }

	/* Resources: same card, narrow */
	nav.fe-menu li.fe-narrow > .wp-block-navigation__submenu-container {
		--fe-card-w: 17rem;
		display: flex; flex-direction: column; gap: .2rem;
	}
}

/* --- Tablet + mobile: below 1024px, use core's overlay -------------------- */
@media (min-width: 600px) and (max-width: 1023px) {
	nav.fe-menu .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	nav.fe-menu .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	nav.fe-menu .wp-block-navigation__responsive-container-close:not(.always-shown) { display: flex; }
}
@media (max-width: 1023px) {
	.fe-nav .fe-nav-end { gap: var(--wp--preset--spacing--small); }
	.fe-nav nav.fe-menu { order: 2; }               /* hamburger sits right of the CTA */
	.fe-nav .fe-nav-cta .wp-block-button__link { padding: .5rem .9rem; }
	nav.fe-menu .wp-block-navigation__responsive-container.is-menu-open {
		padding: var(--wp--preset--spacing--medium);
	}
	nav.fe-menu .is-menu-open .wp-block-navigation__container { gap: var(--wp--preset--spacing--small); }
	nav.fe-menu .is-menu-open .wp-block-navigation__container > li > .wp-block-navigation-item__content .wp-block-navigation-item__label { font-size: 1.25rem; }
	nav.fe-menu .is-menu-open .wp-block-navigation__submenu-container { padding-top: .4rem !important; gap: .5rem; }
	nav.fe-menu .is-menu-open li.fe-pillar { margin-top: .4rem; }
	/* Ollie turns every nested submenu into an accordion. Pillars are headings, not
	   menus, so keep them open: one tap on Products shows every product. */
	nav.fe-menu .is-menu-open li.fe-pillar > .wp-block-navigation__submenu-icon { display: none !important; }
	nav.fe-menu .is-menu-open li.fe-pillar > .wp-block-navigation__submenu-container { display: flex !important; flex-direction: column; }
	nav.fe-menu .is-menu-open li.fe-pillar > .wp-block-navigation-item__content .wp-block-navigation-item__description,
	nav.fe-menu .is-menu-open li.fe-panel-all { display: none; }
}
@media (max-width: 599px) {
	.fe-nav .fe-nav-logo img { width: 132px !important; }
}
/* WFC-128 (1.4.10 Reflow): at 320px logo + CTA + toggle needed 324px of a 272px row.
   Tighten padding, gap, logo and CTA so the row fits with room to spare. */
@media (max-width: 400px) {
	.fe-nav { padding-left: 16px !important; padding-right: 16px !important; }
	.fe-nav .fe-nav-row { gap: 12px; }
	.fe-nav .fe-nav-logo img { width: 112px !important; }
	.fe-nav .fe-nav-cta .wp-block-button__link { padding: .45rem .7rem; letter-spacing: .03em; }
}

/* --- 1c. Footer ----------------------------------------------------------- */
.fe-footer nav.wp-block-navigation .wp-block-navigation-item__content { color: var(--wp--preset--color--main-accent); text-decoration: none; }
.fe-footer nav.wp-block-navigation .wp-block-navigation-item__content:hover,
.fe-footer nav.wp-block-navigation .wp-block-navigation-item__content:focus-visible { color: var(--wp--preset--color--base); text-decoration: underline; }
.fe-footer .fe-footer-head { margin: 0; }

/* --- 2. Hotspot --------------------------------------------------------- */
.fe-hotspot { position: relative; display: flex; justify-content: center; }
.fe-hotspot > img { max-height: 60vh; width: auto; max-width: 100%; filter: drop-shadow(0 18px 40px rgba(12,21,17,.22)); }
.fe-hotspot .hot-dot {
	position: absolute;
	width: 30px; height: 30px;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--base);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font: 600 13px/1 system-ui, sans-serif;
	cursor: pointer;
	display: grid; place-items: center;
	box-shadow: 0 2px 10px rgba(12,21,17,.3);
	transition: transform .12s ease;
}
.fe-hotspot .hot-dot:hover,
.fe-hotspot .hot-dot:focus-visible { transform: scale(1.15); outline: 3px solid var(--wp--preset--color--main); outline-offset: 2px; } /* WFC-128: was primary-alt-accent, 1.94:1 on white */
/* Tooltip text only exists while shown: a hidden-but-rendered tooltip still widens
   the page and caused sideways scroll on tablet/mobile (found 12 Oct 2026). */
.fe-hotspot .hot-dot::after {
	content: none;
	position: absolute;
	top: 50%; left: calc(100% + 12px);
	transform: translateY(-50%);
	width: max-content; max-width: 230px;
	padding: 10px 12px;
	background: var(--wp--preset--color--main);
	color: var(--wp--preset--color--base);
	font: 400 13px/1.4 system-ui, sans-serif;
	text-align: left;
	border-radius: 6px;
	opacity: 0; visibility: hidden;
	transition: opacity .14s ease, visibility .14s;
	pointer-events: none;
	z-index: 5;
}
.fe-hotspot .hot-dot.tip-left::after { left: auto; right: calc(100% + 12px); }
.fe-hotspot .hot-dot:hover::after,
.fe-hotspot .hot-dot:focus-visible::after { content: attr(data-tip); opacity: 1; visibility: visible; }
/* Phones and small tablets: a tooltip beside the dot runs off the screen (found 19 Oct 2026, WFC-137).
   Show it instead as a bar pinned to the bottom of the screen, full width minus the page gutter.
   position:fixed only works if no ancestor has a transform, so the dot's hover/focus scale is dropped here
   (the outline still marks the active dot). */
@media (max-width: 781px) {
	.fe-hotspot .hot-dot:hover,
	.fe-hotspot .hot-dot:focus-visible { transform: none; }
	.fe-hotspot .hot-dot::after,
	.fe-hotspot .hot-dot.tip-left::after {
		position: fixed;
		top: auto; right: 16px; bottom: 16px; left: 16px;
		transform: none;
		width: auto; max-width: none;
		padding: 12px 14px;
		font-size: 15px;
		box-shadow: 0 6px 24px rgba(12,21,17,.35);
		z-index: 50;
	}
}

/* --- 3. Hero proof chips ------------------------------------------------ */
/* "Coming soon" badge (WFC-151): inline pill for a product that isn't launched yet. Inherits the label's case and tracking. */
.fe-soon { display: inline-block; margin-left: .6em; padding: .1em .65em; border: 1px solid currentColor; border-radius: 999px; vertical-align: .1em; font-size: .82em; line-height: 1.5; letter-spacing: .08em; color: var(--wp--preset--color--primary); } /* matches .fe-badge (product grid) */

/* Before -> after receipt pair (WFC-151): two phones side by side, an arrow between, labels under each. */
.fe-before-after { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--wp--preset--spacing--medium); margin: 0; }
.fe-ba__item { text-align: center; }
.fe-ba__item img { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto; }
.fe-ba__tag { display: inline-block; margin-top: .75rem; font-size: var(--wp--preset--font-size--x-small); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--wp--preset--color--secondary); }
.fe-ba__tag--after { color: var(--wp--preset--color--primary); }
.fe-ba__arrow { font-size: var(--wp--preset--font-size--x-large); line-height: 1; color: var(--wp--preset--color--primary); }
.fe-before-after figcaption { grid-column: 1 / -1; text-align: center; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--secondary); }

/* Card media (WFC-151): image (or placeholder panel) flush with the top of a bordered card.
 * Cards are constrained groups, so core forces auto side margins with !important: override with a more specific selector. */
.is-layout-constrained > .fe-card-media, .fe-card-media {
	margin: calc(var(--wp--preset--spacing--large) * -1) calc(var(--wp--preset--spacing--large) * -1) var(--wp--preset--spacing--x-small, .5rem) !important;
	max-width: none !important; width: calc(100% + 2 * var(--wp--preset--spacing--large));
	aspect-ratio: 16 / 10; overflow: hidden; border-radius: 7px 7px 0 0; background: var(--wp--preset--color--primary-accent);
}
/* Logo variant: logo centred on a white plate (stays white in dark mode, like logos in post content, d8a23ec). */
.is-layout-constrained > .fe-card-media--logo, .fe-card-media.fe-card-media--logo { display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--wp--preset--color--border-light); }
.fe-card-media--logo img { width: auto !important; height: auto !important; max-width: 52%; max-height: 42%; object-fit: contain; }
.fe-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.fe-card-media--ph { display: grid; place-items: center; }
.fe-card-media--ph .fe-icon { width: 5.5rem; height: 5.5rem; margin: 0 !important; background: none; }
.fe-card-media--ph .fe-icon::after { inset: 0; }
:has(> .fe-card-media) h3 a { text-decoration: none; }
:has(> .fe-card-media):hover .fe-card-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .fe-card-media img { transition: none; } }

/* Testimonial company logo (WFC-151): small, on a white plate so black logos survive dark mode. Quotes are role-only, so no headshots. */
.is-layout-constrained > .fe-quote-logo, .fe-quote-logo { display: inline-flex; align-items: center; align-self: flex-start; margin: 0 0 .25rem !important; max-width: none !important;
	height: 2.75rem; padding: .45rem .8rem; background: #fff; border: 1px solid var(--wp--preset--color--border-light); border-radius: 6px; }
.fe-quote-name { display: block; font-style: normal; font-weight: 700; color: var(--wp--preset--color--main); margin-bottom: .1rem; }
.fe-quote-logo img { display: block; height: 100%; width: auto; max-width: 9rem; object-fit: contain; }

/* Hero proof strip (WFC-151, 27 Oct 2026): a ruled row of three stats, number-led. */
.fe-chips { border-top: 1px solid var(--wp--preset--color--border-light); padding-top: var(--wp--preset--spacing--medium); }
.fe-chips > p { flex: 1 1 0; min-width: 8.5rem; margin: 0; line-height: 1.35; }
.fe-chips b { display: block; font-size: var(--wp--preset--font-size--x-large); font-weight: 800; line-height: 1; letter-spacing: -0.01em; color: var(--wp--preset--color--primary); margin-bottom: .35rem; }
.fe-chips__who { display: block; margin-top: .2rem; font-size: var(--wp--preset--font-size--x-small); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--secondary); }

/* --- 4. Review labels: stripped for launch 21 Oct 2026 (WFC-141). Safety net if one is pasted back in. */
.fe-src { display: none !important; }
.fe-placeholder {
	border: 1px dashed var(--wp--preset--color--border-dark); border-radius: 8px;
	background: var(--wp--preset--color--tertiary);
}
.fe-card-link a { font-weight: 600; text-decoration: none; }
.fe-card-link a:hover { text-decoration: underline; }
.fe-steps ol, ol.fe-steps { padding-left: 1.2em; }

/* --- 5. Logo wall grid + product icons (12 Oct 2026) -------------------------
 * Logo wall: a flex row wrapped the 8th logo (Michael Kors) onto a line of its own.
 * A grid with fixed column counts keeps rows full: 8 / 4 / 2.
 * Icons: SVG files used as CSS masks, so they take a theme.json colour token and
 * follow the dark style variation. Swap a file in assets/icons/ to change an icon.
 * ------------------------------------------------------------------------ */
/* Logo wall: centred, wrapping rows (WFC-151, 30 Oct 2026). 17 logos sit in 2 rows (9 + 8) at desktop width.
   A scrolling marquee was built and reviewed the same day; static rows were chosen instead. */
.fe-logo-wall .wp-block-group.alignwide {
	display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center;
	gap: var(--wp--preset--spacing--medium) var(--wp--preset--spacing--large);
}
.fe-logo-wall .wp-block-group.alignwide > figure { margin: 0 !important; }
@media (max-width: 480px) { .fe-logo-wall img { height: 40px; } }

.fe-icon {
	width: 44px; height: 44px; border-radius: 10px; margin: 0 0 .25rem !important;
	background: var(--wp--preset--color--primary-accent); position: relative;
}
.fe-icon::after {
	content: ""; position: absolute; inset: 10px; background: var(--wp--preset--color--primary);
	-webkit-mask: var(--fe-icon) center / contain no-repeat; mask: var(--fe-icon) center / contain no-repeat;
}
.fe-icon--digital-receipt { --fe-icon: url(assets/icons/digital-receipt.svg); }
.fe-icon--paper-receipt { --fe-icon: url(assets/icons/paper-receipt.svg); }
.fe-icon--order-status { --fe-icon: url(assets/icons/order-status.svg); }
.fe-icon--packing-slip { --fe-icon: url(assets/icons/packing-slip.svg); }
.fe-icon--in-store { --fe-icon: url(assets/icons/in-store.svg); }
.fe-icon--validation { --fe-icon: url(assets/icons/validation.svg); }
.fe-icon--order-tracking { --fe-icon: url(assets/icons/order-tracking.svg); }
.fe-icon--white-glove { --fe-icon: url(assets/icons/white-glove.svg); }
/* Benefit icons (15 Oct 2026), first used on /digital-receipts/ "Connect the dots". */
.fe-icon--store-traffic { --fe-icon: url(assets/icons/store-traffic.svg); }
.fe-icon--repeat-purchase { --fe-icon: url(assets/icons/repeat-purchase.svg); }
.fe-icon--loyalty { --fe-icon: url(assets/icons/loyalty.svg); }
.fe-icon--insights { --fe-icon: url(assets/icons/insights.svg); }
.fe-icon--mobile { --fe-icon: url(assets/icons/mobile.svg); }
.fe-icon--discount { --fe-icon: url(assets/icons/discount.svg); }
.fe-icon--survey { --fe-icon: url(assets/icons/survey.svg); }
.fe-icon--offers { --fe-icon: url(assets/icons/offers.svg); }
.fe-icon--bounce-back { --fe-icon: url(assets/icons/bounce-back.svg); }
.fe-icon--loyalty-signup { --fe-icon: url(assets/icons/loyalty-signup.svg); }
.fe-icon--engagement { --fe-icon: url(assets/icons/engagement.svg); }
/* WFC-115 (19 Oct 2026): Webhooks & Integrations card. */
.fe-icon--integration { --fe-icon: url(assets/icons/integration.svg); }
/* WFC-151: connection-type icons for Integrations > Ways to connect */
.fe-icon--pos { --fe-icon: url(assets/icons/pos.svg); }
.fe-icon--api { --fe-icon: url(assets/icons/api.svg); }
.fe-icon--webhook { --fe-icon: url(assets/icons/webhook.svg); }
.fe-icon--smtp { --fe-icon: url(assets/icons/smtp.svg); }
.fe-icon--print { --fe-icon: url(assets/icons/print.svg); }

/* Hidden, not deleted (WFC-151): content kept in the page for later. Unhide = remove "fe-hidden" from the block's
 * Additional CSS class(es) in the editor (Toshiba on /integration/: also set Native integrations back to 3 columns). */
.fe-hidden { display: none !important; }

/* 3 + 2 grid (WFC-151): five cards as a row of three and a centred row of two; 2 columns on tablets, 1 on phones.
 * Beats core's generated grid-template-columns (one class, so !important). */
.wp-block-group.fe-grid-3-2 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.fe-grid-3-2 > * { grid-column: span 2; }
.fe-grid-3-2 > :nth-child(4) { grid-column: 2 / span 2; }
.fe-grid-3-2 > :nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 960px) {
	.wp-block-group.fe-grid-3-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.fe-grid-3-2 > *, .fe-grid-3-2 > :nth-child(4) { grid-column: auto; }
	.fe-grid-3-2 > :nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.wp-block-group.fe-grid-3-2 { grid-template-columns: minmax(0, 1fr) !important; }
	.fe-grid-3-2 > :nth-child(5) { grid-column: auto; }
}
/* WFC-115: "Coming soon" pill on a product card with no page yet. Outline style in theme colours,
   so it works in light and dark mode without a new colour token. */
.fe-badge {
	display: inline-block; align-self: flex-start; margin: 0 !important; padding: .2em .75em;
	border: 1px solid currentColor; border-radius: 999px; color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--x-small); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.6;
}

/* --- 6. Formidable form 52 inside the theme (12 Oct 2026) --------------------
 * Formidable's own style paints the submit button Main Green (#54A140), which
 * fails WCAG AA for button text at 3.21:1 (WFC-120 C1). Use the theme's button
 * colours instead. Theme-side so it travels with the theme, no plugin setting.
 * ------------------------------------------------------------------------ */
/* WFC-172 (16 Nov 2026): Formidable's default success message is #73B765 on white (2.42:1, fails
   WCAG 1.4.3). Use theme tokens instead: primary #296B1E on base white = 6.53:1. Formidable sets
   these variables on .with_frm_style (one class), so two classes win. In dark mode
   dark_mode_css() (functions.php) overrides the background and the error banner. */
.frm_forms.with_frm_style {
	--success-text-color: var(--wp--preset--color--primary);
	--success-border-color: var(--wp--preset--color--primary);
	--success-bg-color: var(--wp--preset--color--base);
}
.with_frm_style .frm_submit button,
.with_frm_style .frm_button_submit {
	background: var(--wp--preset--color--primary) !important;
	border-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--base) !important;
}
.with_frm_style .frm_submit button:hover,
.with_frm_style .frm_button_submit:hover {
	background: var(--wp--preset--color--main) !important;
	border-color: var(--wp--preset--color--main) !important;
}

/* --- 7. Post cards in Query Loops (templates, 12 Oct 2026) ------------------ */
.fe-post-card { overflow: hidden; height: 100%; }
.fe-post-card .wp-block-post-featured-image { margin: 0; }
.fe-post-card .wp-block-post-featured-image img { object-fit: cover; }
.fe-post-card .wp-block-post-title a { color: var(--wp--preset--color--main); text-decoration: none; }
.fe-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); text-decoration: underline; }
.fe-post-card .wp-block-post-excerpt__more-text { display: none; }
/* Space between the image and the text group = the card's side padding (medium), so the
 * eyebrow sits in an even inset instead of against the image (15 Oct 2026). */
.fe-post-card > .wp-block-post-featured-image + * { margin-block-start: var(--wp--preset--spacing--medium); }

/* --- 8. Interactive receipts + comparison table (12 Oct 2026) --------------- */
.fe-hotspot--receipt { display: block; max-width: 420px; margin-inline: auto; }
.fe-hotspot--receipt > img { max-height: none; width: 100%; height: auto; border-radius: 8px; }
.fe-hotspot-list { padding-left: 1.1em; font-size: var(--wp--preset--font-size--small); }
.fe-hotspot-list li + li { margin-top: .5rem; }
.fe-compare table { font-size: var(--wp--preset--font-size--small); }
.fe-compare th, .fe-compare td { padding: .7rem .8rem; border-color: var(--wp--preset--color--border-light); vertical-align: top; }
.fe-compare thead th { background: var(--wp--preset--color--main); color: var(--wp--preset--color--base); text-align: left; }
.fe-compare thead th:nth-child(2), .fe-compare td:nth-child(2) { background: var(--wp--preset--color--primary-accent); }
.fe-compare thead th:nth-child(2) { background: var(--wp--preset--color--primary); }
.fe-tbd { color: var(--wp--preset--color--secondary); font-style: italic; }
@media (max-width: 781px) { .fe-compare { overflow-x: auto; } .fe-compare table { min-width: 680px; } }

/* Missing images (Local has no media library) show as a quiet tint, not alt text.
   Alt text stays in the markup for screen readers; on staging/prod the images exist. */
.fe-post-card .wp-block-post-featured-image img { color: transparent; background: var(--wp--preset--color--tertiary); min-height: 8rem; }
.fe-compare { margin-top: var(--wp--preset--spacing--medium); }
.fe-compare td:first-child, .fe-compare th:first-child { width: 17%; }
.fe-post-card .wp-block-post-featured-image a { display: block; text-decoration: none; }
.fe-post-card .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16 / 9; display: block; }

/* --- 9. Video placeholders (12 Oct 2026) ------------------------------------
 * A 16:9 frame that reads as "a video goes here", with its name and delivery spec.
 * Swap the whole group for a core Embed block when the video exists.
 * ------------------------------------------------------------------------ */
.fe-video-ph {
	aspect-ratio: 16 / 9; width: 100%; border-radius: 10px; padding: var(--wp--preset--spacing--medium);
	background: var(--wp--preset--color--main); color: var(--wp--preset--color--base);
	border: 1px dashed var(--wp--preset--color--primary-alt-accent);
}
.fe-video-ph p { margin: 0; color: var(--wp--preset--color--base); }
.fe-video-ph p.has-x-small-font-size { color: var(--wp--preset--color--main-accent); }
.fe-video-ph__play {
	width: 72px; height: 72px; border-radius: 50%; margin-bottom: .6rem !important;
	background: var(--wp--preset--color--primary); position: relative; flex: none;
}
.fe-video-ph__play::after {
	content: ""; position: absolute; left: 29px; top: 22px;
	border-style: solid; border-width: 14px 0 14px 22px;
	border-color: transparent transparent transparent var(--wp--preset--color--base);
}

/* --- 10. Graphic placeholders (15 Oct 2026) ----------------------------------
 * A wide 2:1 frame that reads as "artwork goes here": dot grid, image icon, name and
 * delivery spec. Same idea as the video placeholders. Swap the whole group for a core
 * Image block when the artwork exists.
 * ------------------------------------------------------------------------ */
.fe-graphic-ph {
	aspect-ratio: 2 / 1; width: 100%; border-radius: 12px; padding: var(--wp--preset--spacing--large);
	border: 2px dashed var(--wp--preset--color--border-dark);
	background-color: var(--wp--preset--color--base);
	background-image: radial-gradient(color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent) 1.5px, transparent 1.6px);
	background-size: 22px 22px; background-position: center;
}
.fe-graphic-ph p { margin: 0; }
.fe-graphic-ph p.has-x-small-font-size { color: var(--wp--preset--color--secondary); }
.fe-graphic-ph__icon {
	width: 64px; height: 64px; flex: none; margin-bottom: .4rem !important;
	background: var(--wp--preset--color--primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 781px) { .fe-graphic-ph { aspect-ratio: 4 / 3; } }
/* WFC-128 (1.4.10): at 320px the fixed-ratio frame is too short for its contents, and
   core's vertical group (flex-wrap: wrap) wrapped the captions into a SECOND COLUMN to the
   right, pushing the page to 513–548px. nowrap keeps one column; the frame grows taller. */
.fe-graphic-ph, .fe-video-ph { max-width: 100%; min-width: 0; flex-wrap: nowrap !important; }
.fe-graphic-ph p, .fe-video-ph p { overflow-wrap: anywhere; }
/* WFC-128 (1.4.10): legacy post content carries raw <table width="720"> markup (e.g.
   /third-party-subprocessors/, 744px wide at 320). Fit legacy tables to the column and let
   cells wrap. Core Table blocks are left alone; they already scroll inside their figure. */
.wp-block-post-content table:not(.wp-block-table table) { width: 100% !important; max-width: 100%; table-layout: auto; }
.wp-block-post-content table:not(.wp-block-table table) :is(td, th) { overflow-wrap: anywhere; }

/* --- 11. Long-word safety net (15 Oct 2026) ---------------------------------
 * A heading word wider than its card (e.g. "personalization" at Medium in a narrow
 * column) used to spill past the card edge. break-word only splits a word that
 * cannot fit on a line of its own, so normal wrapping is unchanged.
 * ------------------------------------------------------------------------ */
.wp-block-heading { overflow-wrap: break-word; }

/* --- WFC-128: accessibility baseline ------------------------------------
 * 2.4.7 Focus Visible: one branded ring instead of browser defaults (Safari's
 * blue ring is 1.09:1 on Dark Green). Tokens, not hex, so the dark style
 * variation flips it automatically: main ring on base surfaces, base ring on
 * main/primary surfaces.
 * 2.5.8 Target Size (WCAG 2.2): core submenu toggles render ~10px tall.
 * ------------------------------------------------------------------------ */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible {
	outline: 2px solid var(--wp--preset--color--main);
	outline-offset: 2px;
}
:is(.has-main-background-color, .has-primary-background-color, .fe-footer) :is(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
	outline-color: var(--wp--preset--color--base);
}
/* Light card nested inside a dark band (e.g. the closing-CTA form): back to the dark ring. */
:is(.has-main-background-color, .has-primary-background-color, .fe-footer) :is(.has-base-background-color, .has-tertiary-background-color) :is(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
	outline-color: var(--wp--preset--color--main);
}
/* Formidable's stylesheet sets outline:none on fields and buttons and signals focus with
   only a 1px #66AFE9 border (~2.3:1). Its selectors are 4+ classes deep, so !important. */
.with_frm_style :is(input, select, textarea, button):focus-visible {
	outline: 2px solid var(--wp--preset--color--main) !important;
	outline-offset: 2px !important;
}
/* Outline buttons (found 28 Oct 2026, WFC-153 keyboard check): Ollie draws the outline button's
   border with `outline` (2px, offset -3.5px) on a 3-class selector, which beats the ring above, so
   focus changed nothing. On focus, redraw the border as an inset shadow and use the outline as the
   ring. currentColor = the button's text colour: dark on light sections, white on dark bands. */
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
	outline-offset: 2px;
	box-shadow: inset 0 0 0 2px currentColor;
}
nav.fe-menu .wp-block-navigation__submenu-icon {
	min-width: 24px; min-height: 24px;
	display: inline-flex; align-items: center; justify-content: center;
}

/* WFC-129 (Windows High Contrast / forced-colors): filled buttons are drawn with background
   colour only (border 0), and forced-colors mode strips backgrounds, so buttons would read as
   plain text with no edge. Give every button a system-colour border in that mode only.
   Normal rendering is unchanged. */
@media (forced-colors: active) {
	.wp-element-button,
	.wp-block-button__link,
	.with_frm_style .frm_button_submit {
		border: 2px solid ButtonText !important;
	}
}

/* --- WFC-159: button hover states (28 Oct 2026) ------------------------------------------
 * theme.json hovers every button to --main, which IS the band colour inside Racing Green /
 * Dark Green bands, so the closing-CTA button vanished on hover (both modes). Ollie's outline
 * hover rule (core-button.css) is a no-op: currentColor -> currentColor.
 * Rule: on hover, a button moves to the strongest contrast colour for its surface.
 * !important: a button with colours picked in the editor (e.g. the homepage hero, hero-product-focus)
 * carries .has-*-color / .has-*-background-color classes, which core marks !important, so without
 * it the filled hero button never changed and the outline one turned main-on-main (text vanished).
 * Hover wins over any at-rest colour an editor chooses. Tokens only, so dark mode and the dark-band
 * "islands" (functions.php) follow automatically.
 * ------------------------------------------------------------------------------------------ */
.wp-block-button__link {
	transition: background-color .15s ease, color .15s ease, outline-color .15s ease;
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link { transition: none; }
}
/* Light surfaces (filled and outline): Racing Green fill, white text (white / dark in dark mode). */
.wp-block-buttons .wp-block-button .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--main) !important;
	color: var(--wp--preset--color--base) !important;
	outline-color: var(--wp--preset--color--main) !important;
}
/* Any button on a dark band: go light (white fill, dark text). */
:is(.has-main-background-color, .has-primary-background-color) .wp-block-buttons .wp-block-button .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--main) !important;
	outline-color: var(--wp--preset--color--base) !important;
}
/* Light card nested inside a dark band: back to the light-surface hover. */
:is(.has-main-background-color, .has-primary-background-color) :is(.has-base-background-color, .has-tertiary-background-color) .wp-block-buttons .wp-block-button .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--main) !important;
	color: var(--wp--preset--color--base) !important;
	outline-color: var(--wp--preset--color--main) !important;
}

/* --- WFC-131 / WFC-167: theme switch (tokens + islands are generated in functions.php) -----
 * Footer bottom row, after the legal links: System / Light / Dark as a radio group.
 * The footer is a dark "island" that keeps the LIGHT palette in both modes, so these are the
 * light tokens: secondary #707070 unselected icons (3.4-3.75:1 on the footer, both modes),
 * base #FFF selected icon, main-accent #DDE1DF selected ring (12.8:1+). border-dark outline is
 * decorative only. The selected look keys off <html data-theme>, which the boot script sets
 * before first paint (no flicker); aria-checked is kept in step by the footer script.
 * Hidden until JS has run (html.fe-js), since the buttons do nothing without it.
 * ------------------------------------------------------------------------------------------ */
.fe-logo-dark { display: none; }
.fe-footer-end {
	display: flex; flex-wrap: wrap; align-items: center;
	column-gap: var(--wp--preset--spacing--medium); row-gap: var(--wp--preset--spacing--small);
}
.fe-theme-switch {
	display: none; align-items: center; gap: 2px; padding: 3px;
	border: 1px solid var(--wp--preset--color--border-dark); border-radius: 999px;
}
html.fe-js .fe-theme-switch { display: inline-flex; }
.fe-theme-opt {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; padding: 0; margin: 0;
	background: none; border: 1px solid transparent; border-radius: 999px;
	color: var(--wp--preset--color--secondary); font: inherit; cursor: pointer;
}
.fe-theme-opt { position: relative; }
.fe-theme-opt .fe-ico { flex: none; }
/* Tooltip: the option's label, shown on hover and keyboard focus. Same text as aria-label, so
   it's aria-hidden. Inside the button, so moving the pointer onto it keeps it open (::before
   bridges the gap); Esc hides it (.fe-tips-off, footer script). WCAG 1.4.13.
   System anchors left and Dark anchors right, so neither runs off a phone screen. */
.fe-tip {
	position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
	padding: 4px 8px; border-radius: 6px; white-space: nowrap;
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--main);
	font-size: 12px; font-weight: 600; line-height: 1.3;
	opacity: 0; visibility: hidden; transition: opacity .12s ease, visibility .12s;
}
.fe-tip::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px; }
.fe-theme-opt--system .fe-tip { left: 0; transform: none; }
.fe-theme-opt--dark .fe-tip { left: auto; right: 0; transform: none; }
.fe-theme-opt:hover .fe-tip,
.fe-theme-opt:focus-visible .fe-tip { opacity: 1; visibility: visible; }
.fe-tips-off .fe-theme-opt .fe-tip { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .fe-tip { transition: none; } }
.fe-theme-opt:hover { color: var(--wp--preset--color--main-accent); }
html:not([data-theme]) .fe-theme-opt--system,
html[data-theme="light"] .fe-theme-opt--light,
html[data-theme="dark"] .fe-theme-opt--dark {
	color: var(--wp--preset--color--base);
	background: rgba(255, 255, 255, .08);
	border-color: var(--wp--preset--color--main-accent);
}

/* --- 12. New section patterns (WFC-153, 28 Oct 2026) -----------------------
 * value-grid needs nothing here (uses .fe-icon from section 5); audience-split uses
 * core styles only. Tokens only, so everything follows the dark style variation.
 * ------------------------------------------------------------------------ */
/* Journey Timeline: all steps (3-5) share one row on a 2px rule, a dot above each step.
 * Beats core's generated grid-template-columns (one class, so !important), like .fe-grid-3-2. */
.wp-block-group.fe-timeline {
	grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
	border-top: 2px solid var(--wp--preset--color--border-light);
}
.fe-timeline__step { position: relative; padding-top: var(--wp--preset--spacing--medium); }
.fe-timeline__step::before {
	content: ""; position: absolute; top: -10px; left: 0; box-sizing: border-box;
	width: 18px; height: 18px; border-radius: 50%;
	background: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 4px var(--wp--preset--color--base); /* gap between dot and rule */
}
/* Not-yet-launched step: hollow, dashed dot (pair with the .fe-soon pill in the label). */
.fe-timeline__step--soon::before { background: var(--wp--preset--color--base); border: 2px dashed var(--wp--preset--color--primary); }
.fe-timeline__product { color: var(--wp--preset--color--main); }
/* Tablets and phones: vertical timeline, rule on the left, dots beside each label. */
@media (max-width: 781px) {
	.wp-block-group.fe-timeline {
		grid-template-columns: minmax(0, 1fr) !important; grid-auto-flow: row;
		border-top: 0; border-left: 2px solid var(--wp--preset--color--border-light);
		padding-left: var(--wp--preset--spacing--medium);
	}
	.fe-timeline__step { padding-top: 0; }
	.fe-timeline__step::before { top: .2em; left: calc(-1 * var(--wp--preset--spacing--medium) - 10px); }
}

/* Hero — Message Stack: three offset sample-message cards on a main-background "island"
 * (stays dark in dark mode; the cards keep the light palette inside it, functions.php). */
.wp-block-group.fe-msg-stack { align-items: stretch !important; }
.fe-msg { box-shadow: 0 6px 18px color-mix(in srgb, var(--wp--preset--color--main) 35%, transparent); }
.fe-msg-stack > .fe-msg:nth-of-type(1) { margin-right: clamp(0px, 5vw, 3.5rem) !important; }
.fe-msg-stack > .fe-msg:nth-of-type(2) { margin-inline: clamp(0px, 2.5vw, 1.75rem) !important; }
.fe-msg-stack > .fe-msg:nth-of-type(3) { margin-left: clamp(0px, 5vw, 3.5rem) !important; }

/* Check-circle list in brand green (WFC-154, 28 Oct 2026). Ollie fills the circle with `main` (black / white);
   `primary` matches eyebrows, links and buttons: Dark Green with a white tick in light mode (6.53:1), Highlighter
   Green with a dark tick in dark mode. One extra class beats Ollie's rule whatever order the stylesheets load in. */
ul.wp-block-list.is-style-list-check-circle li::before {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

/* Style guide swatch cards (WFC-155, 13 Nov 2026): clip the colour chip to the card's rounded corners.
   Kept here, not inline: the Group block has no overflow setting, so an inline overflow:hidden made all
   28 swatches fail block validation in the editor. */
.fe-swatch { overflow: hidden; }

/* --- WFC-157 Blog card image fallback (28 Oct 2026) ----------------------------------
 * Shown when a post has no featured image (functions.php card_image_fallback).
 * Same 16:9 slot as a real image, so card rows stay even. Tokens only: in the dark
 * variation primary-accent and primary swap to the dark greens automatically.
 * ------------------------------------------------------------------------ */
.fe-post-card .fe-card-fallback {
	margin: 0; aspect-ratio: 16 / 9; display: grid; place-items: center;
	background: var(--wp--preset--color--primary-accent);
}
.fe-card-fallback__icon {
	width: 22%; max-width: 88px; aspect-ratio: 1 / 1; opacity: .7;
	background: var(--wp--preset--color--primary);
	-webkit-mask: var(--fe-icon) center / contain no-repeat; mask: var(--fe-icon) center / contain no-repeat;
}
/* Portrait featured images (tall infographics): crop from the top, not the middle. */
.fe-post-card .fe-card-img--portrait img { object-position: top center; }


/* --- WFC-160 Cookie consent banner (30 Oct 2026) ------------------------------------
 * Markup: parts/consent-banner.html. Behaviour: assets/js/consent.js. Defaults: inc/consent.php.
 * Hidden until the script adds .is-open, so it never flashes for a visitor who already chose.
 * Tokens only: base / main / border-dark swap in the dark variation automatically.
 * Reject and Accept are the same button style and size on purpose (equal prominence).
 * ------------------------------------------------------------------------ */
/* !important: core's group flex layout (body .is-layout-flex { display: flex }) outranks a single class,
   so without it the closed banner drops into the top of the page (found on staging 30 Oct). */
.fe-consent:not(.is-open) { display: none !important; }
.fe-consent.is-open {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	position: fixed; z-index: 60; /* above the header (.fe-nav 50); below core's mobile menu overlay */
	left: var(--wp--preset--spacing--small); right: var(--wp--preset--spacing--small); bottom: var(--wp--preset--spacing--small);
	max-width: var(--wp--style--global--wide-size, 1200px); margin: 0 auto !important;
	padding: var(--wp--preset--spacing--small) var(--wp--preset--spacing--medium);
	gap: var(--wp--preset--spacing--small) var(--wp--preset--spacing--medium);
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--main);
	border: 1px solid var(--wp--preset--color--border-dark); border-radius: 8px;
}
.fe-consent__body { flex: 1 1 28rem; min-width: 0; }
.fe-consent__body > * { margin: 0; }
.fe-consent__body > * + * { margin-top: .35em; }
.fe-consent__status:empty { display: none; }
.fe-consent__status { font-size: var(--wp--preset--font-size--x-small); font-weight: 600; }
.fe-consent a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.fe-consent__actions { flex: 0 0 auto; flex-wrap: nowrap; gap: var(--wp--preset--spacing--small); margin: 0; }
.fe-consent .wp-block-button__link { min-width: 7.5rem; cursor: pointer; }
/* Keep the end of the page (footer, form 52's submit button) reachable above the open banner. */
html.fe-consent-open body { padding-bottom: calc(var(--fe-consent-h, 0px) + var(--wp--preset--spacing--small)); }
html.fe-consent-open { scroll-padding-bottom: calc(var(--fe-consent-h, 0px) + var(--wp--preset--spacing--small)); }
/* Phones: full-width bar on the bottom edge; the two buttons share the row equally. */
@media (max-width: 599px) {
	.fe-consent.is-open { left: 0; right: 0; bottom: 0; border-width: 1px 0 0; border-radius: 0; padding: var(--wp--preset--spacing--small); }
	.fe-consent__actions { width: 100%; }
	.fe-consent__actions > .wp-block-button { flex: 1 1 0; }
	.fe-consent .wp-block-button__link { width: 100%; min-width: 0; }
}

/* --- 13. Marketing product page draft (WFC-140, 6 Nov 2026) ----------------
 * feature-split pattern + the .fe-ui product-shot stand-ins on /marketing-platform/.
 * Generated by scripts/_gen/build-marketing.py. Tokens only, so the dark style variation
 * follows. .fe-ui is temporary: each shot is replaced by a real screenshot before launch.
 * ------------------------------------------------------------------------ */
/* Feature Split: shot on the LEFT at desktop width, text still first in the markup (phones). */
@media (min-width: 782px) {
	.wp-block-columns.fe-split--flip > .wp-block-column:first-child { order: 2; }
}
.fe-ui-caption { margin-top: var(--wp--preset--spacing--small) !important; }

/* FAQ (core/details) */
.fe-faq { border-top: 1px solid var(--wp--preset--color--border-light); }
.fe-faq > .wp-block-details { margin: 0 !important; border-bottom: 1px solid var(--wp--preset--color--border-light); }
.fe-faq summary { position: relative; padding: var(--wp--preset--spacing--medium) 2.5rem var(--wp--preset--spacing--medium) 0; list-style: none; cursor: pointer; font-size: var(--wp--preset--font-size--medium); font-weight: 700; line-height: 1.3; }
.fe-faq summary::-webkit-details-marker { display: none; }
.fe-faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--wp--preset--color--primary); }
.fe-faq details[open] summary::after { content: "\2013"; }
.fe-faq details > p { margin: 0 0 var(--wp--preset--spacing--medium); }

/* Product-shot stand-ins */
.fe-ui { box-sizing: border-box; background: var(--wp--preset--color--base); color: var(--wp--preset--color--main); border: 1px solid var(--wp--preset--color--border-light); border-radius: 12px; box-shadow: 0 18px 44px color-mix(in srgb, var(--wp--preset--color--main) 12%, transparent); font-size: .8125rem; line-height: 1.4; overflow: hidden; }
.fe-ui *, .fe-ui *::before { box-sizing: border-box; }
.fe-ui p { margin: 0; }
.fe-ui small { color: var(--wp--preset--color--secondary); font-size: .72rem; }
.fe-ui--panel { padding: 1.4rem; display: flex; flex-direction: column; gap: .75rem; }
.fe-ui__bar { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; background: var(--wp--preset--color--tertiary); border-bottom: 1px solid var(--wp--preset--color--border-light); color: var(--wp--preset--color--secondary); }
.fe-ui__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--wp--preset--color--main-accent); }
.fe-ui__bar span { margin-left: .75rem; }
.fe-ui__app { display: flex; }
.fe-ui__nav { flex: 0 0 8.25rem; display: flex; flex-direction: column; gap: .5rem; padding: .9rem .75rem; background: var(--wp--preset--color--main); color: var(--wp--preset--color--main-accent); font-size: .72rem; }
.fe-ui__nav b { color: var(--wp--preset--color--primary-alt-accent); }
.fe-ui__nav em { margin-top: .3rem; font-style: normal; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.fe-ui__main { flex: 1 1 auto; min-width: 0; padding: 1rem; display: flex; flex-direction: column; gap: .65rem; }
.fe-ui__ai { color: var(--wp--preset--color--primary); font-weight: 700; }
.fe-ui__ai::before { content: "\2726\00a0"; }
.fe-ui__row .fe-ui__ai::before { content: none; }
.fe-ui__prompt { display: flex; align-items: center; gap: .5rem; padding: .5rem .65rem; border: 1px solid var(--wp--preset--color--primary); border-radius: 8px; background: var(--wp--preset--color--primary-accent); }
.fe-ui__prompt > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--wp--preset--color--border-dark); }
.fe-ui__prompt--big { flex-direction: column; align-items: flex-start; padding: .9rem; }
.fe-ui__prompt--big > span { white-space: normal; color: var(--wp--preset--color--main); }
.fe-ui__go, .fe-ui__btn--fill { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); border-radius: 5px; padding: .2rem .65rem; font-weight: 600; }
.fe-ui__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.fe-ui__kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fe-ui__kpis > div { display: flex; flex-direction: column; padding: .5rem; border: 1px solid var(--wp--preset--color--border-light); border-radius: 8px; }
.fe-ui__kpis b { font-size: 1.05rem; font-weight: 800; }
.fe-ui__h { font-weight: 700; }
.fe-ui__count { margin-left: .25rem; padding: 0 .5rem; border-radius: 999px; background: var(--wp--preset--color--primary-accent); color: var(--wp--preset--color--primary); }
.fe-ui__row { display: flex; align-items: center; gap: .5rem; padding: .5rem .65rem; border: 1px solid var(--wp--preset--color--border-light); border-radius: 8px; }
.fe-ui__row > span:not(.fe-ui__btn) { flex: 1; min-width: 0; }
.fe-ui__up { color: var(--wp--preset--color--primary); white-space: nowrap; }
.fe-ui__btn { display: inline-block; padding: .15rem .55rem; border: 1px solid var(--wp--preset--color--main); border-radius: 5px; white-space: nowrap; }
.fe-ui__btn--fill { border-color: var(--wp--preset--color--primary); }
.fe-ui__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.fe-ui__tag { padding: .05rem .6rem; border-radius: 999px; background: var(--wp--preset--color--primary-accent); color: var(--wp--preset--color--primary); font-weight: 600; }
.fe-ui__tag--line { background: none; border: 1px solid currentColor; }
/* Journey flow */
.fe-ui__flow { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.fe-ui__step { position: relative; width: min(100%, 17rem); display: flex; justify-content: space-between; gap: .5rem; padding: .55rem .8rem; border: 1px solid var(--wp--preset--color--border-light); border-radius: 8px; background: var(--wp--preset--color--base); }
.fe-ui__step > span { display: flex; flex-direction: column; }
.fe-ui__step > span small + b { margin-top: .1rem; }
.fe-ui__flow > .fe-ui__step:not(:first-child)::before, .fe-ui__fork::before { content: ""; position: absolute; top: calc(-1rem - 1px); left: 50%; width: 2px; height: 1rem; background: var(--wp--preset--color--main-accent); }
.fe-ui__step--wait { justify-content: center; border-style: dashed; color: var(--wp--preset--color--border-dark); }
.fe-ui__step--branch { justify-content: center; border-color: var(--wp--preset--color--main); }
.fe-ui__step--branch > span { display: block; }
.fe-ui__fork { position: relative; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.fe-ui__fork .fe-ui__step { width: 100%; }
.fe-ui__step--hi, .fe-ui__rule--hi { border: 2px solid var(--wp--preset--color--primary-alt); background: var(--wp--preset--color--primary-accent); }
.fe-ui__step--hi small, .fe-ui__rule--hi > span { color: var(--wp--preset--color--primary); font-weight: 700; }
.fe-ui__step--goal { background: var(--wp--preset--color--primary-accent); border: 2px solid var(--wp--preset--color--primary); }
.fe-ui__step--goal > b { color: var(--wp--preset--color--primary); }
/* Segment rules */
.fe-ui__rules { display: flex; flex-direction: column; gap: .5rem; }
.fe-ui__rules > em { padding-left: .25rem; font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--secondary); }
.fe-ui__rule { display: flex; flex-wrap: wrap; gap: .4rem; padding: .55rem .75rem; border: 1px solid var(--wp--preset--color--border-light); border-radius: 8px; }
.fe-ui__rule > span { color: var(--wp--preset--color--secondary); }
.fe-ui__rules .fe-ui__kpis > div { border: 0; padding: .5rem 0 0; }
.fe-ui__rules .fe-ui__kpis { border-top: 1px solid var(--wp--preset--color--border-light); margin-top: .25rem; }
/* AI card + pills */
.fe-ui__card { display: flex; flex-direction: column; gap: .6rem; padding: 1rem; border: 1px solid var(--wp--preset--color--border-light); border-radius: 10px; }
.fe-ui__card .fe-ui__kpis > div { border: 0; background: var(--wp--preset--color--tertiary); }
.fe-ui__actions { display: flex; justify-content: flex-end; gap: .5rem; }
.fe-ui__pills { display: flex; flex-wrap: wrap; gap: .35rem; }
.fe-ui__pills i { font-style: normal; padding: .1rem .6rem; border: 1px solid var(--wp--preset--color--main-accent); border-radius: 999px; }
.fe-ui__pills i.is-on { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
/* Consent stages */
.fe-ui__stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.fe-ui__stages > div { display: flex; flex-direction: column; padding: .6rem; border-radius: 8px; background: var(--wp--preset--color--tertiary); border: 1px solid var(--wp--preset--color--border-light); }
.fe-ui__stages > div.is-on { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
.fe-ui__stages > div.is-on small { color: inherit; }
.fe-ui__line { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem .75rem; border: 1px solid var(--wp--preset--color--border-light); border-radius: 8px; }
/* Dark mode: `main` flips to white, so the app sidebar would turn into a white panel with lime text (checked 6 Nov).
   Use the lifted dark tint instead. Same two selectors as the dark tokens in functions.php. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fe-ui__nav { background: var(--wp--preset--color--tertiary); color: var(--wp--preset--color--secondary); border-right: 1px solid var(--wp--preset--color--border-light); } :root:not([data-theme="light"]) .fe-ui__nav b { color: var(--wp--preset--color--primary); } }
:root[data-theme="dark"] .fe-ui__nav { background: var(--wp--preset--color--tertiary); color: var(--wp--preset--color--secondary); border-right: 1px solid var(--wp--preset--color--border-light); }
:root[data-theme="dark"] .fe-ui__nav b { color: var(--wp--preset--color--primary); }
/* Phones: drop the app sidebar, let wide grids wrap to two columns. */
@media (max-width: 600px) {
	.fe-ui__nav { display: none; }
	.fe-ui__kpis, .fe-ui__stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fe-ui__row { flex-wrap: wrap; }
}

/* ==========================================================================
   WFC-140 F16 — layout polish on the converted (ex-Elementor) pages.
   Scoped so the hand-built pattern pages are untouched (verified: 0 elements
   move on /, /products/, /digital-receipts/, /customers/, /about/,
   /integration/, /transactional-messaging/, /contact/, /blog/ at 1440 and 390).
   Browsers without :has() simply ignore rules 1b, 2 and 3.
   ========================================================================== */

/* (1) Two plain full-width sections in a row: one gap, not two.
   The converter gave every section xx-large padding top AND bottom, so two
   same-background sections stacked 88 + 32 + 88 = 208px of empty space. */
.wp-block-post-content > .alignfull:not(.has-background) + .alignfull:not(.has-background) {
	padding-top: 0 !important;
}

/* (1b) A plain section holding only a heading/intro text sits close to the
   plain section it introduces (e.g. "Our Core Values" on Careers). */
.wp-block-post-content > .alignfull:not(.has-background):not(:has(> :not(h1, h2, h3, h4, p))):has(+ .alignfull:not(.has-background)) {
	padding-bottom: var(--wp--preset--spacing--medium) !important;
}
.wp-block-post-content > .alignfull:not(.has-background):not(:has(> :not(h1, h2, h3, h4, p))) + .alignfull:not(.has-background) {
	margin-block-start: 0 !important;
}

/* (2) Intro headings/text line up with the wide grid they introduce, instead
   of starting ~260px to its right. Keeps the readable 740px line length;
   only the left edge moves. Centred headings are left alone. */
.wp-block-post-content > .alignfull:has(> .alignwide) > :is(h1, h2, h3, p):not(.has-text-align-center),
.wp-block-post-content > .alignfull:not(.has-background):not(:has(> :not(h1, h2, h3, h4, p))):has(+ .alignfull > .alignwide) > :is(h1, h2, h3, p):not(.has-text-align-center) {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
	margin-right: auto !important;
}

/* (3) Stats bands (e.g. 70% / 15% / 5% on the industry pages) stay three
   across on phones instead of stacking into a ~660px column. */
@media (max-width: 781px) {
	.alignfull .wp-block-column > .wp-block-columns:has(> .wp-block-column > p.has-xx-large-font-size) {
		flex-wrap: nowrap !important;
		gap: var(--wp--preset--spacing--small) !important;
	}
	.alignfull .wp-block-column > .wp-block-columns:has(> .wp-block-column > p.has-xx-large-font-size) > .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 1;
		min-width: 0;
	}
	.alignfull .wp-block-column > .wp-block-columns > .wp-block-column > p.has-xx-large-font-size {
		font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
		margin-block: 0;
	}
}

/* --- 14. Click-to-load embed gate (WFC-162, 17 Nov 2026) -------------------
 * inc/embed-gate.php swaps a Vimeo/YouTube/Vidyard/Loom/Wistia player for this panel until the
 * visitor clicks. Tokens only, so the dark variation follows. The panel keeps the 16:9 box, but
 * aspect-ratio lets it grow taller when the text needs room (narrow phones); core's wrapper
 * padding-box is switched off while gated.
 * ------------------------------------------------------------------------ */
.wp-block-embed.fe-embed-gated .wp-block-embed__wrapper::before { content: none; padding: 0; }
.fe-embed-gate {
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	gap: var(--wp--preset--spacing--small);
	aspect-ratio: 16 / 9;
	padding: var(--wp--preset--spacing--medium);
	background: var(--wp--preset--color--tertiary); color: var(--wp--preset--color--main);
	border: 1px solid var(--wp--preset--color--border-light); border-radius: 8px;
}
.fe-embed-gate > * { margin: 0; }
.fe-embed-gate__title { font-size: var(--wp--preset--font-size--medium); font-weight: 700; line-height: 1.3; }
.fe-embed-gate__note { font-size: var(--wp--preset--font-size--small); max-width: 46em; }
.fe-embed-gate__note a, .fe-embed-gate__out { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.fe-embed-gate__out { font-size: var(--wp--preset--font-size--small); }
.fe-embed-gate__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wp--preset--spacing--small) var(--wp--preset--spacing--medium); }
.fe-embed-gate__play { display: inline-flex; align-items: center; gap: .5em; cursor: pointer; }
.fe-embed-gate__play svg { flex: none; }
.fe-embed-gate__always, .fe-consent__embeds-off {
	background: none; border: 0; padding: .25em 0; margin: 0; color: inherit; font: inherit;
	text-decoration: underline; text-underline-offset: .2em; cursor: pointer;
}
.fe-embed-gate__always { font-size: var(--wp--preset--font-size--small); }
