/* =====================================================================
   GlobeSignals — styles (rendered inside the component's Shadow DOM)
   Desktop stage = Figma section width 1440 x map height 433; mobile stage = 390 x 372.
   Fonts: no external fonts. --gs-serif comes from the prop (site variable) or inherits the page font.
   ===================================================================== */
.gs {
  --gs-maxw: 1280px;     /* container max width (prop) */
  --gs-margin: 16px;     /* side margin (prop) */
  --gs-dot: #c9c6be;     /* map dash color (prop) */
  --gs-line: var(--_default---primary--teal-300, #009d95);
  --gs-halok: 1;         /* extra halo scale in the mobile layout */
  position: relative;
  width: 100%;
  container-type: inline-size;
  font-family: inherit;
  line-height: normal;
  box-sizing: border-box;
}
.gs *, .gs *::before, .gs *::after { box-sizing: border-box; }
.gs p { margin: 0; }

/* Height reserved in pure CSS (server-side, no layout jump) — same formula the engine uses:
   desktop scale = min(maxw, 100cqw - 2*margin) / 1280, stage 1440 x 433; mobile scale = 100cqw / 390, stage 390 x 372.
   Nothing is clipped: the teal line rises above the map into the cards area, the page clips at the viewport. */
.gs-frame { position: relative; width: 100%; overflow: visible;
  height: calc(min(var(--gs-maxw), 100cqw - 2 * var(--gs-margin)) * 433 / 1280); }
.gs.gs-free .gs-frame { height: calc(100cqw * 433 / 1440); }
@container (max-width: 767px) {
  .gs-frame, .gs.gs-free .gs-frame { height: calc(100cqw * 372 / 390); }
}

/* Server-rendered signals/line stay hidden until the engine has set the animation's initial state.
   Safety net: if the script never runs, everything appears after 6 s. */
.gs-pending .sig, .gs-pending .gs-line { visibility: hidden; animation: gs-reveal 0s 6s forwards; }
@keyframes gs-reveal { to { visibility: visible; } }

.gs-stage { position: relative; width: 1440px; height: 433px; transform-origin: 0 0; overflow: visible; perspective: 1600px; }
.gs-stage.m { width: 390px; height: 372px; }
.gs-view { position: absolute; left: 0; top: 0; width: 1091px; height: 433px; transform-origin: 0 0; }
/* the "globe" layer drifts/tilts as a whole: map + signals + line stay glued together */
.gs-globe { position: absolute; left: 0; top: 0; width: 1091px; height: 433px; transform-origin: 50% 65%; will-change: transform; transform-style: preserve-3d; }
.gs-map { position: absolute; left: 13.5px; top: 44px; width: 1061px; height: 360px; display: block; overflow: visible; fill: var(--gs-dot); }
/* during the idle rotation the dashes are redrawn on this canvas (same box as the SVG) */
.gs-canvas { position: absolute; left: 13.5px; top: 44px; width: 1061px; height: 360px; display: block; pointer-events: none; }

/* decorative teal line — placed by the engine so its end lands on the anchor signal */
.gs-line { position: absolute; width: 680px; height: 1055px; overflow: visible; pointer-events: none; }
.gs-line path { fill: none; stroke: var(--gs-line); stroke-width: 2; stroke-linecap: round; }

/* ---------------- signals ----------------
   .sig sits at the halo center (Image-frame px). Per-slot vars: --c halo/leader/chip color, --a dot/text color,
   --bg chip background color (defaults to --c), --halo outer radius, --dot dot radius, --gap chip bottom → center. */
.sig { position: absolute; width: 0; height: 0; }
.sig-halo { position: absolute; left: calc(-1 * var(--halo)); top: calc(-1 * var(--halo)); width: calc(2 * var(--halo)); height: calc(2 * var(--halo));
  border-radius: 50%; background: color-mix(in srgb, var(--c) 24%, transparent); scale: var(--gs-halok); }
.sig-ripple { position: absolute; left: calc(-1 * var(--halo)); top: calc(-1 * var(--halo)); width: calc(2 * var(--halo)); height: calc(2 * var(--halo));
  border-radius: 50%; border: 2px solid var(--a); opacity: 0; pointer-events: none; }
.sig-dot { position: absolute; left: calc(-1 * var(--dot)); top: calc(-1 * var(--dot)); width: calc(2 * var(--dot)); height: calc(2 * var(--dot));
  border-radius: 50%; background: var(--a); scale: var(--gs-halok); }
.sig-leader { position: absolute; left: -1px; top: calc(-1 * var(--gap)); height: var(--gap); width: 0;
  border-left: 2px dashed color-mix(in srgb, var(--c) 50%, transparent); transform-origin: 50% 100%; }
.sig-chip { position: absolute; left: 0; bottom: var(--gap); transform: translateX(-50%); white-space: nowrap;
  padding: 8px; border-radius: 5px; background: color-mix(in srgb, var(--bg, var(--c)) 24%, transparent);
  color: var(--a); font-family: var(--gs-serif, var(--_typography---font--secondary-font, inherit));
  font-size: 12px; line-height: 1; letter-spacing: -0.24px; text-box: trim-both cap alphabetic; }
.sig.no-chip .sig-leader, .sig.no-chip .sig-chip { display: none; }

