@charset "UTF-8";
/*
 * Athena XAI: solution pages (/solutions/ and its guides; patterns/solutions-*.php,
 * inc/solutions.php). Loaded on those pages after product-pages.css, and in the editor.
 * Colours are the theme.json presets, so both colour schemes follow. Its own motion: the
 * connectors of the conceptual illustration, and the hub hero's full-cycle illustration
 * walked once by product-sections.js; both off under prefers-reduced-motion.
 */

/* Flow-layout groups used as grids: cancel the flow margins. */
.athena-solutions-index > *,
.athena-solution-points > *,
.athena-solution-point > *,
.athena-solution-steps > *,
.athena-solution-step > *,
.athena-solution-cause > *,
.athena-solution-cause > * > *,
.athena-concept > *,
.athena-concept__flow > *,
.athena-concept__stage > *,
.athena-cycle > *,
.athena-cycle__map > *,
.athena-cycle__zone > *,
.athena-cycle__node > *,
.athena-cycle__platform > *,
.athena-cycle__kpi > * {
	margin-block: 0 !important;
}

/* ── Section copy ─────────────────────────────────────────────── */

/* The group is wide (left edge with the heading); its copy keeps a readable measure. The
   group's own max-width would lose to core's constrained-layout rule for .alignwide. */
.athena-solution-body {
	margin-top: clamp(1.25rem, 2.5vw, 2rem) !important;
}

.athena-solution-body > *,
.athena-solution-head > * {
	max-width: 48rem;
}

.athena-solution-body > * + * {
	margin-top: 1rem !important;
}

.athena-solution-body code,
.athena-solution-step code,
.athena-solution-cause code,
.athena-solution-trio code {
	padding: 0.05em 0.4em;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.9em;
	overflow-wrap: anywhere;
}

.is-surface .athena-solution-body code,
.is-surface .athena-solution-step code,
.is-surface .athena-solution-cause code {
	background: var(--wp--preset--color--base);
}

/* A query that opens the live demo: link colour on the code, underlined as a link. */
.athena-solution-body a code,
.athena-solution-step a code,
.athena-solution-cause a code {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* The live-demo label (verbatim, architecture §9): a quiet note with a "live" mark, above the
   examples it describes. The storyboard label uses the same style. */
.athena-solution-live__label {
	position: relative;
	padding: 0.75rem 1rem 0.75rem 2.25rem;
	border: 1px solid var(--athena-border-strong);
	border-radius: 12px;
	background: var(--wp--preset--color--raised);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.athena-solution-live__label::before {
	content: "";
	position: absolute;
	top: 1.2rem;
	left: 1rem;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}

.athena-solution-caption {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-style: italic;
}

/* ── Numbered lists (the hub walkthrough, the storyboard, the checklist) ── */

.athena-solution-live__steps,
.athena-solution-numbered {
	display: grid;
	gap: 1rem;
	padding: 0 !important;
	list-style: none;
	counter-reset: athena-step;
}

.athena-solution-live__steps > li,
.athena-solution-numbered > li {
	position: relative;
	padding-left: 2.75rem;
	counter-increment: athena-step;
}

.athena-solution-live__steps > li::before,
.athena-solution-numbered > li::before {
	content: counter(athena-step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 1.875rem;
	height: 1.875rem;
	border: 1.5px solid var(--wp--preset--color--accent);
	border-radius: 50%;
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 750;
	line-height: 1;
}

.athena-solution-live__steps > li {
	padding-block: 0.15rem;
}

.athena-solution-live__closing {
	padding-top: 0.5rem;
}

/* ── Hub: problem index ───────────────────────────────────────── */

/* Solution guides two to a row, product cards four to a row. With one guide (the other
   withdrawn) the guide takes the whole row, so five cards still fill the grid. */
.athena-solutions-index {
	display: grid !important;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1rem !important;
	margin-top: clamp(2rem, 4vw, 3rem) !important;
}

.athena-solutions-index__card--guide {
	grid-column: span 6;
}

.athena-solutions-index__card--guide:first-child:not(:has(+ .athena-solutions-index__card--guide)) {
	grid-column: 1 / -1;
}

.athena-solutions-index__card--product {
	grid-column: span 3;
}

/* A guide stands out by its border and size; the card stays on the raised colour, so the
   violet type label and cue keep their contrast. */
.athena-solutions-index__card--guide {
	border-color: var(--wp--preset--color--accent);
	border-width: 1.5px;
}

.athena-solutions-index__card--guide h3 {
	font-size: var(--wp--preset--font-size--x-large);
}

.athena-solutions-index__card--guide p:not(.athena-integration__type):not(.athena-integration__more) {
	max-width: 44rem;
	color: var(--wp--preset--color--contrast);
}

@media (max-width: 1100px) {
	.athena-solutions-index__card--product {
		grid-column: span 6;
	}
}

@media (max-width: 700px) {
	.athena-solutions-index {
		grid-template-columns: minmax(0, 1fr);
	}

	.athena-solutions-index > * {
		grid-column: 1 / -1 !important;
	}
}

/* ── Points: an H3 and one sentence each ───────────────────────── */

.athena-solution-points {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1rem !important;
	margin-top: clamp(2rem, 4vw, 3rem) !important;
}

.athena-solution-point {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.5rem !important;
	border-top: 2px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--raised);
	border-radius: 0 0 16px 16px;
}

.athena-solution-point h3 {
	font-size: var(--wp--preset--font-size--large);
}

.athena-solution-point p {
	color: var(--wp--preset--color--muted);
}

/* Three sentences that start in bold, side by side on wide screens. */
.athena-solution-trio {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: clamp(2rem, 4vw, 3rem) !important;
	padding: 0 !important;
	list-style: none;
}

.athena-solution-trio > li {
	padding: 1.5rem;
	border: 1px solid var(--athena-border-strong);
	border-radius: 16px;
	background: var(--wp--preset--color--raised);
	color: var(--wp--preset--color--muted);
}

.athena-solution-trio strong {
	color: var(--wp--preset--color--contrast);
}

@media (max-width: 860px) {
	.athena-solution-trio {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── Steps and causes: an H3 and its blocks, as cards ─────────── */

.athena-solution-steps {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem !important;
	margin-top: 1.5rem !important;
}

.athena-solution-step {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: clamp(1.25rem, 2.5vw, 1.75rem) !important;
	border: 1px solid var(--athena-border-strong);
	border-radius: 20px;
	background: var(--wp--preset--color--raised);
	min-width: 0;
}

.athena-solution-step h3 {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
}

.athena-solution-step p {
	color: var(--wp--preset--color--muted);
}

@media (max-width: 860px) {
	.athena-solution-steps {
		grid-template-columns: minmax(0, 1fr);
	}
}

.athena-solution-causes__list {
	display: grid !important;
	gap: 1rem !important;
	margin-top: 1.5rem !important;
}

/* What happens | how Athena handles it, side by side on wide screens. */
.athena-solution-cause {
	display: grid !important;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 0.75rem 2rem !important;
}

.athena-solution-cause__fix {
	display: grid;
	gap: 0.75rem;
}

.athena-solution-cause strong {
	color: var(--wp--preset--color--contrast);
}

@media (max-width: 860px) {
	.athena-solution-cause {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── Related row ──────────────────────────────────────────────── */

.athena-solution-related__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem !important;
	padding: 0 !important;
	list-style: none;
}

.athena-solution-related__list a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.5rem 1.1rem;
	border: 1.5px solid var(--athena-border-strong);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	font-weight: 650;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.athena-solution-related__list a::after {
	content: "\2192" / "";
	margin-left: 0.4rem;
}

.athena-solution-related__list a:hover,
.athena-solution-related__list a:focus-visible {
	border-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--accent);
}

/* A short related row needs no full section bottom. */
.athena-solution-related {
	padding-bottom: var(--wp--preset--spacing--50) !important;
}

/* ── Conceptual illustration (architecture §9, CONCEPT) ───────── */

.athena-concept {
	display: grid;
	gap: 1.25rem;
	margin-top: clamp(2rem, 4vw, 3rem) !important;
	padding: clamp(1.25rem, 3vw, 2.5rem) !important;
	border: 1px dashed var(--athena-border-strong);
	border-radius: 24px;
	background: var(--wp--preset--color--base);
}

.athena-concept__tag {
	justify-self: start;
	padding: 0.3rem 0.75rem;
	border: 1px solid var(--athena-border-strong);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.athena-concept__caption {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-style: italic;
}

/* Four stages left to right on wide screens, top to bottom on narrow ones; a connector
   (dashed line and arrowhead, CSS only) leads from each stage to the next. */
.athena-concept__flow {
	--athena-concept-gap: 3rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: var(--athena-concept-gap);
}

.athena-concept__stage {
	position: relative;
	min-width: 0;
}

.athena-concept__stage:not(.athena-concept__stage--lanes) {
	padding: 1rem 1.1rem !important;
	border: 1.5px solid var(--athena-border-strong);
	border-radius: 14px;
	background: var(--wp--preset--color--raised);
	color: var(--wp--preset--color--contrast);
	font-weight: 650;
	line-height: 1.4;
}

/* The search box: a search icon before the query. */
.athena-concept__stage--query {
	border-radius: 999px !important;
}

.athena-concept__query {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 600;
}

.athena-concept__query::before {
	content: "";
	flex: none;
	width: 1.1rem;
	height: 1.1rem;
	background: var(--wp--preset--color--muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%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='%23000' stroke-width='2.25' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.athena-concept__lanes {
	display: grid;
	gap: 0.6rem;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.athena-concept__lanes > li {
	padding: 0.7rem 0.9rem;
	border: 1.5px solid var(--wp--preset--color--accent);
	border-radius: 12px;
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}

.athena-concept__lanes strong {
	display: block;
	color: var(--wp--preset--color--contrast);
}

.athena-concept__stage--merge {
	border-color: var(--wp--preset--color--accent) !important;
}

.athena-concept__stage--rules {
	border-style: dashed !important;
}

/* Connector: a dashed line through the gap after a stage, ending in an arrowhead. */
.athena-concept__stage:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 100%;
	width: var(--athena-concept-gap);
	height: 0.75rem;
	translate: 0 -50%;
	background:
		linear-gradient(90deg, var(--wp--preset--color--accent) 50%, transparent 0) 0 50% / 0.6rem 2px repeat-x,
		linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent)) 100% 50% / 0.6rem 100% no-repeat;
	clip-path: polygon(0 40%, calc(100% - 0.6rem) 40%, calc(100% - 0.6rem) 0, 100% 50%, calc(100% - 0.6rem) 100%, calc(100% - 0.6rem) 60%, 0 60%);
	pointer-events: none;
}

@media (max-width: 960px) {
	.athena-concept__flow {
		--athena-concept-gap: 2.25rem;
		grid-template-columns: minmax(0, 1fr);
	}

	.athena-concept__stage:not(:last-child)::after {
		top: 100%;
		left: 50%;
		width: 0.75rem;
		height: var(--athena-concept-gap);
		translate: -50% 0;
		background:
			linear-gradient(var(--wp--preset--color--accent) 50%, transparent 0) 50% 0 / 2px 0.6rem repeat-y,
			linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent)) 50% 100% / 100% 0.6rem no-repeat;
		clip-path: polygon(40% 0, 60% 0, 60% calc(100% - 0.6rem), 100% calc(100% - 0.6rem), 50% 100%, 0 calc(100% - 0.6rem), 40% calc(100% - 0.6rem));
	}
}

/* The connectors' dashes flow towards the next stage. Only with no motion preference. */
@media (prefers-reduced-motion: no-preference) {
	.athena-concept__stage:not(:last-child)::after {
		animation: athena-concept-flow 1.2s linear infinite;
	}
}

@keyframes athena-concept-flow {
	to {
		background-position: 0.6rem 50%, 100% 50%;
	}
}

@media (max-width: 960px) {
	@keyframes athena-concept-flow {
		to {
			background-position: 50% 0.6rem, 50% 100%;
		}
	}
}

/* ── HUB HERO: full-cycle illustration (Solutions\cycle()) ───────
   docs/solutions-hero-illustration.md. The same language as the conceptual illustration
   (dashed frame, tag, stage boxes, dashed accent arrows), drawn as a map rather than a chain:
   Generator and Enricher above the store's catalogue, Search and Assistant below it, KPI
   measurement a band under all four, bracketed by dotted rails down both sides (data flow is
   dashed accent with arrowheads; measurement is dotted neutral, no heads). The plain state is
   the final one (no JavaScript, reduced motion); .is-live (product-sections.js, initCycle)
   only changes borders, rings and connector opacity, never size or position. */

.athena-cycle {
	--athena-cycle-gap: 2.25rem;
	--athena-cycle-col: 1rem;
	--athena-cycle-zone: 0.75rem;
	--athena-cycle-rail: 1rem;
	--athena-cycle-pair: 14px;
	--athena-cycle-measure: var(--wp--preset--color--accent);
	display: grid;
	gap: 1.25rem;
	padding: clamp(1.25rem, 3vw, 2.5rem) !important;
	border: 1px dashed var(--athena-border-strong);
	border-radius: 24px;
}

.athena-cycle__tag {
	justify-self: start;
	padding: 0.3rem 0.75rem;
	border: 1px solid var(--athena-border-strong);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.athena-cycle__provider {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 650;
	line-height: 1.4;
}

.athena-cycle__caption {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-style: italic;
}

/* Three rows: the data zone, the catalogue, the shopper zone. The inline padding is the rails'
   lane. */
.athena-cycle__map {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: var(--athena-cycle-gap);
	padding-inline: 1.75rem;
}

.athena-cycle__zone {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--athena-cycle-zone) var(--athena-cycle-col);
}

.athena-cycle__zone-label {
	position: relative;
	grid-column: 1 / -1;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 750;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-align: center;
	text-transform: uppercase;
}

/* The shopper label sits between the two arrows from the catalogue: its text keeps to the
   middle, clear of them. */
.athena-cycle__zone--shoppers > .athena-cycle__zone-label {
	padding-inline: calc(25% + 1rem);
}

.athena-cycle__node {
	position: relative;
	min-width: 0;
	padding: 1rem 1.1rem !important;
	border: 1.5px solid var(--wp--preset--color--accent);
	border-radius: 14px;
	background: var(--wp--preset--color--raised, var(--wp--preset--color--base));
}

.athena-cycle__name,
.athena-cycle__kpi-name,
.athena-cycle__platform-name {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 650;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.athena-cycle__name a,
.athena-cycle__kpi-name a {
	color: inherit;
	text-underline-offset: 0.15em;
}

.athena-cycle__name a:hover,
.athena-cycle__kpi-name a:hover {
	color: var(--wp--preset--color--accent);
}

.athena-cycle__does,
.athena-cycle__kpi-sub {
	margin-top: 0.3rem !important;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.4;
}

.athena-cycle__platform-sub {
	margin-top: 0.2rem !important;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.4;
}

.athena-cycle__platform {
	position: relative;
	padding: 0.9rem 1.1rem !important;
	border: 1.5px solid var(--wp--preset--color--accent);
	border-radius: 12px;
	background: var(--wp--preset--color--accent-soft);
	text-align: center;
}

.athena-cycle__kpi {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	align-items: baseline;
	justify-content: center;
	padding: 0.8rem 1.1rem !important;
	border: 1.5px dashed var(--wp--preset--color--accent);
	border-radius: 14px;
	text-align: center;
}

.athena-cycle__kpi-sub {
	margin-top: 0 !important;
}

/* Data flow (decorative; the screen-reader paragraph says what it shows): the conceptual
   illustration's connector, a dashed accent line ending in an arrowhead. Generator →
   catalogue; Enricher ↔ catalogue (down beside up); catalogue → Search and → Assistant
   (either side of the shopper label). */
.athena-cycle__node--generator::before,
.athena-cycle__node--enricher::before,
.athena-cycle__platform::before,
.athena-cycle__zone--shoppers > .athena-cycle__zone-label::before,
.athena-cycle__zone--shoppers > .athena-cycle__zone-label::after {
	content: "";
	position: absolute;
	width: 0.75rem;
	background:
		linear-gradient(var(--wp--preset--color--accent) 50%, transparent 0) 50% 0 / 2px 0.6rem repeat-y,
		linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent)) 50% 100% / 100% 0.6rem no-repeat;
	clip-path: polygon(40% 0, 60% 0, 60% calc(100% - 0.6rem), 100% calc(100% - 0.6rem), 50% 100%, 0 calc(100% - 0.6rem), 40% calc(100% - 0.6rem));
	pointer-events: none;
}

.athena-cycle__node--generator::before,
.athena-cycle__node--enricher::before {
	top: 100%;
	left: 50%;
	height: calc(var(--athena-cycle-gap) + 1.5px);
	transform: translateX(-50%);
}

/* Enricher: reads the catalogue (down) and returns it improved (up), side by side. */
.athena-cycle__node--enricher::before {
	left: calc(50% - var(--athena-cycle-pair));
}

.athena-cycle__platform::before {
	bottom: 100%;
	left: calc(75% + var(--athena-cycle-col) / 4 + var(--athena-cycle-pair));
	height: calc(var(--athena-cycle-gap) + 1.5px);
	transform: translateX(-50%) scaleY(-1);
}

.athena-cycle__zone--shoppers > .athena-cycle__zone-label::before,
.athena-cycle__zone--shoppers > .athena-cycle__zone-label::after {
	top: calc(-1 * var(--athena-cycle-gap) - 1.5px);
	bottom: calc(-1 * var(--athena-cycle-zone));
	left: calc((100% - var(--athena-cycle-col)) / 4);
	transform: translateX(-50%);
}

.athena-cycle__zone--shoppers > .athena-cycle__zone-label::after {
	left: calc(75% + var(--athena-cycle-col) / 4);
}

/* KPI measurement covers everything: dotted rails rise from the straight part of the band's
   top edge up both sides of the map, plus a tick from each shopper service. The rails are open
   at the top (no caps) and start level with the first services, below "Before products go
   live", so that label reads as a zone label like "When shoppers arrive", not as the bracket's
   legend. The rails start at the Generator's top edge (anchor positioning; it follows the
   label when it wraps on phones). Without anchor support they take the label's type and
   start one line box (1lh) and the zone gap down, which is the same place while the label
   keeps to one line. */
.athena-cycle__map {
	anchor-scope: --athena-cycle-start;
}

.athena-cycle__zone--data > .athena-cycle__node--generator {
	anchor-name: --athena-cycle-start;
}

.athena-cycle__map::before,
.athena-cycle__map::after,
.athena-cycle__zone--shoppers > .athena-cycle__node::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

.athena-cycle__map::before,
.athena-cycle__map::after {
	top: calc(1lh + var(--athena-cycle-zone));
	bottom: -1.25rem;
	left: var(--athena-cycle-rail);
	border-inline-start: 2px dotted var(--athena-cycle-measure);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.4;
}

@supports (top: anchor(top)) {
	.athena-cycle__map::before,
	.athena-cycle__map::after {
		top: anchor(--athena-cycle-start top, calc(1lh + var(--athena-cycle-zone)));
	}
}

.athena-cycle__map::after {
	left: auto;
	right: var(--athena-cycle-rail);
	border-inline-start: 0;
	border-inline-end: 2px dotted var(--athena-cycle-measure);
}

.athena-cycle__zone--shoppers > .athena-cycle__node::after {
	top: 100%;
	left: 50%;
	height: calc(1.25rem + 1.5px);
	border-inline-start: 2px dotted var(--athena-cycle-measure);
	transform: translateX(-1px);
}

/* Live (initCycle): what has not played yet is outlined in the neutral border and its
   connectors are faint; text is never dimmed. Current: the steps' accent ring. */
.athena-cycle.is-live :is(.athena-cycle__node, .athena-cycle__platform, .athena-cycle__kpi):not(.is-current):not(.is-done) {
	border-color: var(--athena-border-strong);
}

.athena-cycle.is-live .athena-cycle__node--generator:not(.is-current):not(.is-done)::before,
.athena-cycle.is-live .athena-cycle__node--enricher:not(.is-current):not(.is-done)::before,
.athena-cycle.is-live:has(.athena-cycle__node--enricher:not(.is-current):not(.is-done)) .athena-cycle__platform::before,
.athena-cycle.is-live:has(.athena-cycle__node--search:not(.is-current):not(.is-done)) .athena-cycle__zone--shoppers > .athena-cycle__zone-label::before,
.athena-cycle.is-live:has(.athena-cycle__node--search:not(.is-current):not(.is-done)) .athena-cycle__zone--shoppers > .athena-cycle__zone-label::after,
.athena-cycle.is-live:has(.athena-cycle__kpi:not(.is-current):not(.is-done)) .athena-cycle__map::before,
.athena-cycle.is-live:has(.athena-cycle__kpi:not(.is-current):not(.is-done)) .athena-cycle__map::after {
	opacity: 0.35;
}

@media (min-width: 560px) {
	.athena-cycle.is-live:has(.athena-cycle__kpi:not(.is-current):not(.is-done)) .athena-cycle__zone--shoppers > .athena-cycle__node::after {
		opacity: 0.35;
	}
}

.athena-cycle :is(.athena-cycle__node, .athena-cycle__platform, .athena-cycle__kpi).is-current {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 4px var(--wp--preset--color--accent-soft);
}

@media (prefers-reduced-motion: no-preference) {
	.athena-cycle :is(.athena-cycle__node, .athena-cycle__platform, .athena-cycle__kpi) {
		transition: border-color 0.4s var(--athena-ease), box-shadow 0.4s var(--athena-ease);
	}

	.athena-cycle__node::before,
	.athena-cycle__node::after,
	.athena-cycle__platform::before,
	.athena-cycle__platform::after,
	.athena-cycle__platform-sub::after,
	.athena-cycle__zone::before,
	.athena-cycle__zone::after,
	.athena-cycle__zone-label::before,
	.athena-cycle__zone-label::after,
	.athena-cycle__map::before,
	.athena-cycle__map::after {
		transition: opacity 0.4s var(--athena-ease);
	}

	/* The current beat's arrows flow while it lasts, then stop: nothing loops by the hero. */
	.athena-cycle__node--generator.is-current::before,
	.athena-cycle__node--enricher.is-current::before,
	.athena-cycle:has(.athena-cycle__node--enricher.is-current) .athena-cycle__platform::before,
	.athena-cycle:has(.athena-cycle__node--search.is-current) .athena-cycle__zone--shoppers > .athena-cycle__zone-label::before,
	.athena-cycle:has(.athena-cycle__node--search.is-current) .athena-cycle__zone--shoppers > .athena-cycle__zone-label::after,
	.athena-cycle:has(.athena-cycle__node--generator.is-current) .athena-cycle__zone--data::after {
		animation: athena-cycle-flow 0.6s linear infinite;
	}
}

@keyframes athena-cycle-flow {
	to {
		background-position: 50% 0.6rem, 50% 100%;
	}
}

/* Narrow hero column: the same map, slightly tighter. */
@media (max-width: 960px) {
	.athena-cycle__node {
		padding: 0.85rem 0.9rem !important;
	}
}

/* Phones: one column (Generator, Enricher, catalogue, Search, Assistant, KPI). The Enricher's
   pair stays in the middle; the Generator's arrow and the catalogue's arrows to Search and
   Assistant run in a lane on the end side; one KPI rail on the start side. */
@media (max-width: 559px) {
	.athena-cycle {
		--athena-cycle-lane: 1rem;
		--athena-cycle-tick: 1.35rem;
	}

	.athena-cycle__map {
		padding-inline: 1.75rem calc(2 * var(--athena-cycle-lane));
	}

	.athena-cycle__map::after {
		content: none;
	}

	.athena-cycle__zone {
		grid-template-columns: minmax(0, 1fr);
	}

	.athena-cycle__zone-label,
	.athena-cycle__zone--shoppers > .athena-cycle__zone-label {
		padding-inline: 0;
		text-align: start;
	}

	.athena-cycle__node--generator::before,
	.athena-cycle__zone--shoppers > .athena-cycle__zone-label::before,
	.athena-cycle__zone--shoppers > .athena-cycle__zone-label::after,
	.athena-cycle__zone--shoppers > .athena-cycle__node--search::after {
		content: none;
	}

	.athena-cycle__node--enricher::before {
		left: calc(50% - var(--athena-cycle-pair));
	}

	.athena-cycle__platform::before {
		left: calc(50% + var(--athena-cycle-pair));
	}

	/* Generator → catalogue: a tick out to the lane, down past the Enricher, then an arrow
	   into the catalogue's side. The line sits on the zone's grid rows, so it spans exactly
	   both services. */
	.athena-cycle__node--generator::after {
		content: "";
		position: absolute;
		top: calc(var(--athena-cycle-tick) - 1px);
		left: 100%;
		width: var(--athena-cycle-lane);
		height: 2px;
		background: linear-gradient(90deg, var(--wp--preset--color--accent) 50%, transparent 0) 0 0 / 0.6rem 2px repeat-x;
		pointer-events: none;
	}

	.athena-cycle__zone--data::after {
		content: "";
		position: absolute;
		grid-row: 2 / 4;
		grid-column: 1;
		top: var(--athena-cycle-tick);
		bottom: calc(-1 * var(--athena-cycle-gap) - var(--athena-cycle-tick) - 1px);
		left: calc(100% + var(--athena-cycle-lane) - 1px);
		width: 2px;
		background: linear-gradient(var(--wp--preset--color--accent) 50%, transparent 0) 0 0 / 2px 0.6rem repeat-y;
		pointer-events: none;
	}

	/* Catalogue → shoppers: out of the catalogue's side near its foot, then down the lane. */
	.athena-cycle__platform-sub::after {
		content: "";
		position: absolute;
		bottom: -1.5px;
		left: 100%;
		width: calc(var(--athena-cycle-lane) + 1px);
		height: 1rem;
		border-top: 2px dashed var(--wp--preset--color--accent);
		border-inline-end: 2px dashed var(--wp--preset--color--accent);
		pointer-events: none;
	}

	/* Catalogue → Search and → Assistant: down the lane from the catalogue, an arrow into
	   each. The line spans the label and Search rows, then the Assistant's own top segment. */
	.athena-cycle__zone--shoppers::before,
	.athena-cycle__zone--shoppers > .athena-cycle__node--assistant::after {
		content: "";
		position: absolute;
		left: calc(100% + var(--athena-cycle-lane) - 1px);
		width: 2px;
		height: auto;
		border: 0;
		background: linear-gradient(var(--wp--preset--color--accent) 50%, transparent 0) 0 0 / 2px 0.6rem repeat-y;
		pointer-events: none;
	}

	.athena-cycle__zone--shoppers::before {
		grid-row: 1 / 3;
		grid-column: 1;
		top: calc(-1 * var(--athena-cycle-gap) - 1.5px);
		bottom: calc(-1 * var(--athena-cycle-zone));
	}

	.athena-cycle__zone--shoppers > .athena-cycle__node--assistant::after {
		top: -1.5px;
		height: var(--athena-cycle-tick);
	}

	.athena-cycle__node--search::before,
	.athena-cycle__node--assistant::before,
	.athena-cycle__platform::after {
		content: "";
		position: absolute;
		top: calc(var(--athena-cycle-tick) - 0.375rem);
		left: 100%;
		width: var(--athena-cycle-lane);
		height: 0.75rem;
		background:
			linear-gradient(90deg, var(--wp--preset--color--accent) 50%, transparent 0) 0 50% / 0.4rem 2px repeat-x,
			linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent)) 0 0 / 0.6rem 100% no-repeat;
		clip-path: polygon(0 50%, 0.6rem 0, 0.6rem 40%, 100% 40%, 100% 60%, 0.6rem 60%, 0.6rem 100%);
		pointer-events: none;
	}

	.athena-cycle.is-live:has(.athena-cycle__node--generator:not(.is-current):not(.is-done)) .athena-cycle__zone--data::after,
	.athena-cycle.is-live .athena-cycle__node--generator:not(.is-current):not(.is-done)::after,
	.athena-cycle.is-live:has(.athena-cycle__node--generator:not(.is-current):not(.is-done)) .athena-cycle__platform::after,
	.athena-cycle.is-live:has(.athena-cycle__node--search:not(.is-current):not(.is-done)) .athena-cycle__platform-sub::after,
	.athena-cycle.is-live:has(.athena-cycle__node--search:not(.is-current):not(.is-done)) .athena-cycle__zone--shoppers::before,
	.athena-cycle.is-live .athena-cycle__node--search:not(.is-current):not(.is-done)::before,
	.athena-cycle.is-live .athena-cycle__node--assistant:not(.is-current):not(.is-done)::before,
	.athena-cycle.is-live .athena-cycle__node--assistant:not(.is-current):not(.is-done)::after {
		opacity: 0.35;
	}
}

/* ── SIM: the product-story demo in a section ─────────────────── */

.athena-solution-sim__demo {
	margin-top: clamp(1.5rem, 3vw, 2.5rem) !important;
}

/* ── Hero visual (owner, 2026-11-16) ──────────────────────────── */

/* The visual beside a solution hero's copy: a product-story demo (semantic page) or the
   trace card (hub). It is the page hero's aside, so it gets the homepage hero's float-in. */
.athena-solution-visual > * {
	margin-block: 0 !important;
}

.athena-page-hero--split:has(.athena-solution-visual) .athena-hero__grid {
	align-items: center;
}

/* Trace card: searches as a shopper types them, each with what Athena does with it. */
.athena-trace {
	display: grid !important;
	gap: 1rem !important;
	padding: 1.5rem clamp(1.25rem, 3vw, 2rem) !important;
	border: 1px solid var(--athena-border-strong);
	border-radius: 20px;
	background: var(--wp--preset--color--raised);
}

.athena-trace > *,
.athena-trace__rows > *,
.athena-trace__row > * {
	margin-block: 0 !important;
}

.athena-trace__label {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.athena-trace__rows {
	display: grid !important;
	gap: 0.875rem !important;
}

.athena-trace__row {
	display: grid !important;
	gap: 0.375rem !important;
}

/* The search box: a magnifier, then the query in the mono face. */
.athena-trace__query {
	position: relative;
	padding: 0.55rem 0.9rem 0.55rem 2.4rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}

.athena-trace__query::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0.9rem;
	width: 1rem;
	height: 1rem;
	translate: 0 -50%;
	background: var(--wp--preset--color--muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='m16 16 4.5 4.5' stroke='%23000' stroke-width='2' stroke-linecap='round'/%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'%3E%3Ccircle cx='11' cy='11' r='6.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='m16 16 4.5 4.5' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.athena-trace__query code {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 1em;
}

.athena-trace__line {
	padding-left: 0.9rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
}

.athena-trace__line strong {
	color: var(--wp--preset--color--contrast);
}

.athena-trace__closing {
	padding-top: 1rem;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 650;
}

/* The section footnote under live-demo results ("Results observed in fall 2026; …"). */
.athena-solution-live__footnote {
	margin-top: 1.25rem !important;
}

/* ── Sequence: searches that type in one after another ───────────
   The saved markup is the complete list or card; this only animates it, once, with no
   motion preference. Opacity and clip-path only, so nothing around it moves (layout boxes
   never change). The hero card plays on load, like the hero copy; a list further down the
   page plays when it scrolls into view: assets/js/product-sections.js marks it is-pending
   (only while it is still below the screen) and then is-playing. Without JavaScript the list
   is simply complete. Each item: the query types in, then the rest of it appears. */
@media (prefers-reduced-motion: no-preference) {
	.athena-sequence.is-pending > * {
		opacity: 0;
	}

	.athena-page-hero .athena-sequence > *,
	.athena-sequence.is-playing > * {
		--athena-seq: 0s;
		animation: athena-seq-in 0.35s var(--athena-ease) var(--athena-seq) both;
	}

	.athena-page-hero .athena-sequence > * {
		--athena-seq-start: 0.7s;
		--athena-seq-gap: 1.25s;
	}

	.athena-sequence.is-playing > * {
		--athena-seq-start: 0.1s;
		--athena-seq-gap: 1.6s;
	}

	.athena-sequence > :nth-child(1) {
		--athena-seq: var(--athena-seq-start);
	}

	.athena-sequence > :nth-child(2) {
		--athena-seq: calc(var(--athena-seq-start) + var(--athena-seq-gap));
	}

	.athena-sequence > :nth-child(3) {
		--athena-seq: calc(var(--athena-seq-start) + 2 * var(--athena-seq-gap));
	}

	.athena-sequence > :nth-child(4) {
		--athena-seq: calc(var(--athena-seq-start) + 3 * var(--athena-seq-gap));
	}

	.athena-sequence > :nth-child(5) {
		--athena-seq: calc(var(--athena-seq-start) + 4 * var(--athena-seq-gap));
	}

	/* The query types in (revealed left to right in steps), then its result fades in. */
	.athena-page-hero .athena-sequence > * code,
	.athena-sequence.is-playing > * code {
		animation: athena-seq-type 0.75s steps(14, end) calc(var(--athena-seq) + 0.1s) both;
	}

	/* The full stop after a query waits for the query to finish typing. */
	.athena-page-hero .athena-sequence .athena-trace__line,
	.athena-sequence.is-playing .athena-sequence__stop,
	.athena-sequence.is-playing .athena-sequence__result {
		animation: athena-seq-in 0.4s var(--athena-ease) calc(var(--athena-seq) + 0.85s) both;
	}

	/* The hero card's closing line comes last. */
	.athena-page-hero .athena-trace__closing {
		animation: athena-seq-in 0.4s var(--athena-ease) 5.6s both;
	}
}

@keyframes athena-seq-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes athena-seq-type {
	from {
		clip-path: inset(0 100% 0 0);
	}

	to {
		clip-path: inset(0 0 0 0);
	}
}
