/* OE – GSMO Animation: Wave (v1.0.1)
 * Prototype rules (.journey, .jbase, .jline, .jstop, .jdot, .jlabels,
 * .basecap and the column's .rv fade), scoped under .oe-gw. The coloured
 * labels use the prototype's own .pill / .pill.k style; the line and intro
 * above them follow the sector-page pictures (no HTML for those).
 */
.oe-gw {
	--oe-gw-ease: cubic-bezier(.22, 1, .36, 1);
	--oe-gw-ink: var(--oe-color-secondary, #003469);
	--oe-gw-sub: var(--oe-color-cool-grey, #455055);
	--oe-gw-track: var(--oe-color-secondary-muted, #E8ECF4);
	width: 100%;
}
.oe-gw :is(p, h3, h4, ul, li) { margin: 0; padding: 0; }

/* Fade up when scrolled into view (prototype: the column's .rv, delay .1s),
   hidden from first paint as in the prototype. Safety net: if script.js
   never starts (.is-js), it shows (line drawn) after 2s anyway. */
.oe-gw.oe-gw--draw { opacity: 0; transform: translateY(24px); transition: opacity .45s var(--oe-gw-ease), transform .45s var(--oe-gw-ease); transition-delay: .1s; }
.oe-gw.oe-gw--draw.in { opacity: 1; transform: none; }
.oe-gw.oe-gw--draw:not(.is-js) { animation: oe-gw-failsafe 0s 2s forwards; }
.oe-gw.oe-gw--draw:not(.is-js) .oe-gw-line { animation: oe-gw-failsafe-line 0s 2s forwards; }
@keyframes oe-gw-failsafe { to { opacity: 1; transform: none; } }
@keyframes oe-gw-failsafe-line { to { stroke-dashoffset: 0; } }

.oe-gw .oe-gw-journey svg { width: 100%; height: auto; display: block; overflow: visible; }
.oe-gw .oe-gw-base { fill: none; stroke: var(--oe-gw-track); stroke-width: 6; stroke-linecap: round; }
.oe-gw .oe-gw-line { fill: none; stroke: var(--oe-gw-line, #00addc); stroke-width: 6; stroke-linecap: round; }
.oe-gw.oe-gw--draw .oe-gw-line { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2.2s ease-in-out; }
.oe-gw.oe-gw--draw.in .oe-gw-line { stroke-dashoffset: 0; }
.oe-gw .oe-gw-stop circle { fill: #fff; stroke: var(--oe-gw-line, #00addc); stroke-width: 4; }
.oe-gw .oe-gw-stop text { font-family: Poppins, sans-serif; font-weight: 500; font-size: 15px; fill: var(--oe-gw-ink); text-anchor: middle; }
.oe-gw .oe-gw-dot { fill: var(--oe-gw-dot, #003469); stroke: #fff; stroke-width: 3; }
.oe-gw .oe-gw-labels { display: grid; grid-template-columns: repeat(var(--oe-gw-n, 3), 1fr); gap: 12px; margin-top: 4px; text-align: center; }
.oe-gw .oe-gw-labels .oe-gw-title { display: block; font-family: inherit; font-weight: 500; color: var(--oe-gw-ink); font-size: 1rem; line-height: 1.3; letter-spacing: normal; text-transform: none; }
.oe-gw .oe-gw-labels span { display: block; font-size: .85rem; color: var(--oe-gw-sub); line-height: 1.4; margin-top: 2px; }
.oe-gw .oe-gw-note { font-size: .85rem; font-weight: 500; color: var(--oe-gw-ink); margin-top: 10px; text-align: center; }

/* Coloured labels (prototype .pills / .pill / .pill.k) */
.oe-gw .oe-gw-tags { margin-top: 24px; text-align: center; }
.oe-gw .oe-gw-tags--line { border-top: 1px solid var(--oe-gw-track); padding-top: 24px; }
.oe-gw .oe-gw-tags-intro { color: var(--oe-gw-sub); margin-bottom: 14px; }
.oe-gw .oe-gw-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; }
.oe-gw .oe-gw-pill { padding: 4px 12px; border-radius: 4px; font-size: .875rem; font-weight: 500; background: var(--oe-color-primary-5, #E8F3FA); color: var(--oe-gw-ink); }
.oe-gw .oe-gw-pill--k::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; background: var(--k); }

.oe-gw .oe-gw-empty { padding: 16px; border: 1px dashed currentColor; }

@media (prefers-reduced-motion: reduce) {
	.oe-gw.oe-gw--draw { opacity: 1; transform: none; transition: none; }
	.oe-gw.oe-gw--draw .oe-gw-line { stroke-dashoffset: 0; transition: none; }
	.oe-gw .oe-gw-dot { display: none; }
}
