/* OE – Key Themes Hero Globe (v2.6.0)
 * Only the globe from the HERO of oe-key-themes-2027.html. Values, keyframes,
 * easings and breakpoints are the prototype's. Made for a navy section (light
 * text). The section, its background glow, heading, text and buttons are
 * built in the editor. Hex values are only fallbacks (all tokens exist).
 */

/* Page tokens (oe-kt-), scoped to the block */
.oe-block-key-themes-hero-globe {
	--oe-kt-on-dark: color-mix(in srgb, var(--oe-color-primary-4, #ffffff) 80%, transparent);
	--oe-kt-rule-dark: color-mix(in srgb, var(--oe-color-primary-4, #ffffff) 14%, transparent);
	--oe-kt-ease: cubic-bezier(.2, .8, .2, 1);
	/* region colours (approved guide: sky, gold, teal, green) */
	--oe-kt-global: var(--oe-color-primary, #00addc);
	--oe-kt-emea: var(--oe-color-pillar-influence, #B38D2F);
	--oe-kt-americas: var(--oe-color-teal, #30B5AE);
	--oe-kt-apac: var(--oe-color-lime-dark, #8BA612);
}

/* Globe (root = prototype .oe-kt-globe) */
/* width:100% so the block fills its column even when the column centres its
   content (flex). Otherwise the globe shrinks, as on page 165084. */
.oe-block-key-themes-hero-globe.oe-kt-globe { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--oe-spacing-base, 1rem); width: 100%; }
.oe-block-key-themes-hero-globe .oe-kt-globe-stage { position: relative; width: min(100%, var(--oe-kt-globe-max, 520px)); aspect-ratio: 1 / 1; }
.oe-block-key-themes-hero-globe .oe-kt-globe-stage::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 38% 34%, color-mix(in srgb, var(--oe-color-primary, #00addc) 34%, transparent), transparent 70%); box-shadow: 0 0 90px 10px color-mix(in srgb, var(--oe-color-primary, #00addc) 22%, transparent); pointer-events: none; }
.oe-block-key-themes-hero-globe .oe-kt-globe-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.oe-block-key-themes-hero-globe .oe-kt-globe-stage canvas.is-pointing { cursor: pointer; }
.oe-block-key-themes-hero-globe .oe-kt-globe-stage canvas.is-dragging { cursor: grabbing; }
.oe-block-key-themes-hero-globe .oe-kt-globe-label { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 2px; max-width: 220px; padding: 8px 12px; border-radius: var(--oe-border-radius-base, 8px); background: color-mix(in srgb, var(--oe-color-secondary, #003469) 82%, transparent); border-left: 3px solid var(--c, var(--oe-color-primary, #00addc)); box-shadow: 0 12px 24px -12px color-mix(in srgb, black 80%, transparent); pointer-events: none; opacity: 0; transition: opacity .35s ease; will-change: transform; line-height: 1.5; }
.oe-block-key-themes-hero-globe .oe-kt-globe-label.is-on { opacity: 1; }
/* One line per region is in the HTML; only the current one shows. */
.oe-block-key-themes-hero-globe .oe-kt-globe-say { display: none; }
.oe-block-key-themes-hero-globe .oe-kt-globe-say.is-current { display: contents; }
.oe-block-key-themes-hero-globe .oe-kt-globe-label b { font-size: var(--oe-font-size-base, 1rem); font-weight: 700; color: var(--c, var(--oe-color-primary, #00addc)); }
.oe-block-key-themes-hero-globe .oe-kt-globe-label span { font-size: var(--oe-font-size-small, .8rem); line-height: 1.35; color: var(--oe-kt-on-dark); }
/* v2.8.0 (user's request): a link under the line ("See the research"); the open label takes the
   mouse, so the link can be clicked (script.js keeps the label open while the mouse is on it) */
.oe-block-key-themes-hero-globe .oe-kt-globe-label.is-on:has(.oe-kt-globe-cta) { pointer-events: auto; }
.oe-block-key-themes-hero-globe .oe-kt-globe-cta,
.oe-block-key-themes-hero-globe .oe-kt-globe-cta:visited { align-self: flex-start; margin-top: var(--oe-spacing-xsmall, .5rem); font-size: var(--oe-font-size-small, .8rem); line-height: 1.35; color: var(--oe-color-primary-4, #ffffff); text-decoration: underline; text-underline-offset: 3px; transition: color .25s; }
.oe-block-key-themes-hero-globe .oe-kt-globe-cta:hover,
.oe-block-key-themes-hero-globe .oe-kt-globe-cta:focus { color: var(--c, var(--oe-color-primary, #00addc)); }
.oe-block-key-themes-hero-globe .oe-kt-globe-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--oe-spacing-xsmall, .5rem); }
/* Two classes + :focus so the theme's button:hover/:focus fill can't win */
.oe-block-key-themes-hero-globe .oe-kt-globe-chips button,
.oe-block-key-themes-hero-globe .oe-kt-globe-chips button:focus { display: inline-flex; align-items: center; gap: var(--oe-spacing-xsmall, .5rem); margin: 0; padding: 8px 16px; border: 1px solid var(--oe-kt-rule-dark); border-radius: var(--oe-border-radius-badge, 500px); background: color-mix(in srgb, var(--oe-color-primary-4, #ffffff) 6%, transparent); color: var(--oe-color-primary-4, #ffffff); font: inherit; font-size: var(--oe-font-size-small, .8rem); font-weight: 500; line-height: 1.5; cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .25s var(--oe-kt-ease); }
.oe-block-key-themes-hero-globe .oe-kt-globe-chips i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.oe-block-key-themes-hero-globe .oe-kt-globe-chips button:hover,
.oe-block-key-themes-hero-globe .oe-kt-globe-chips button:focus-visible { border-color: var(--c); background: var(--oe-color-primary-4, #ffffff); color: var(--oe-color-secondary, #003469); transform: translateY(-2px); }

/* Phones (prototype breakpoint) */
@media (max-width: 640px) {
	.oe-block-key-themes-hero-globe .oe-kt-globe-stage { width: min(100%, var(--oe-kt-globe-max-mobile, 360px)); }
}

/* Reduced motion (prototype: everything finishes instantly; the globe is a still frame) */
@media (prefers-reduced-motion: reduce) {
	.oe-block-key-themes-hero-globe *,
	.oe-block-key-themes-hero-globe *::before,
	.oe-block-key-themes-hero-globe *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* ==========================================================================
   White / light section (v2.2.0, "Section background: White or light").
   Not in the prototype (made for navy): dark text on the buttons, a stronger
   halo and a soft shadow under the globe. The canvas side (navy lines, glowing
   trade routes, pulsing economies) is in script.js.
   ========================================================================== */
.oe-block-key-themes-hero-globe.oe-kt-globe--light {
	--oe-kt-rule-light: color-mix(in srgb, var(--oe-color-secondary, #003469) 14%, transparent);
}
/* v2.5.0: no halo around the globe on white (user asked to remove it) */
.oe-block-key-themes-hero-globe.oe-kt-globe--light .oe-kt-globe-stage::before { content: none; }
/* soft shadow on the "ground" under the globe (globe = 80% of the stage, centred) */
.oe-block-key-themes-hero-globe.oe-kt-globe--light .oe-kt-globe-stage::after { content: ""; position: absolute; left: 24%; right: 24%; top: 92%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--oe-color-secondary, #003469) 22%, transparent), transparent); pointer-events: none; }
.oe-block-key-themes-hero-globe.oe-kt-globe--light .oe-kt-globe-label { box-shadow: 0 14px 28px -14px color-mix(in srgb, black 55%, transparent); }
.oe-block-key-themes-hero-globe.oe-kt-globe--light .oe-kt-globe-chips button,
.oe-block-key-themes-hero-globe.oe-kt-globe--light .oe-kt-globe-chips button:focus { border-color: var(--oe-kt-rule-light); background: var(--oe-color-primary-4, #ffffff); color: var(--oe-color-secondary, #003469); box-shadow: 0 6px 16px -10px color-mix(in srgb, black 35%, transparent); }
.oe-block-key-themes-hero-globe.oe-kt-globe--light .oe-kt-globe-chips button:hover,
.oe-block-key-themes-hero-globe.oe-kt-globe--light .oe-kt-globe-chips button:focus-visible { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--oe-color-primary-4, #ffffff)); color: var(--oe-color-secondary, #003469); transform: translateY(-2px); box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--c) 70%, black); }
/* v2.3.0: the globe floats gently (its glow, canvas and label move together; the
   `translate` property adds to the label's own JS-set transform) while the
   shadow under it breathes. Reduced motion: the rule at the top stops it. */
.oe-block-key-themes-hero-globe.oe-kt-globe--light .oe-kt-globe-stage::before,
.oe-block-key-themes-hero-globe.oe-kt-globe--light .oe-kt-globe-stage canvas,
.oe-block-key-themes-hero-globe.oe-kt-globe--light .oe-kt-globe-label { animation: oe-kt-globe-float 6s ease-in-out infinite; }
.oe-block-key-themes-hero-globe.oe-kt-globe--light .oe-kt-globe-stage::after { animation: oe-kt-globe-shadow 6s ease-in-out infinite; }
@keyframes oe-kt-globe-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes oe-kt-globe-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.86); opacity: .7; } }
