/* Flowdrive infrastructure globe, ported from
   flowdrive/src/lib/components/blocks/homepage/infrastructure/infrastructure-globe.svelte
   flowdrive/src/lib/components/blocks/interactive/region-earth/ (light theme, earthOnly) */

:root {
	/* src/app.css */
	--background: oklch(0.9856 0.0017 67.8);
	--primary: oklch(0.6662 0.2052 40.17);
	--border: oklch(0.9438 0.0046 78.3);

	/* The tile is 16:10; the frame keeps the same margin on every side. */
	--inset: max(10px, 7vmin);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
	overflow: hidden;
}

body {
	background: oklch(0.215 0.006 107);
}

.stage {
	position: relative;
	height: 100%;
}

/* The section the globe sits in on the homepage: paper, hairline border, clipped. */
.panel {
	position: absolute;
	inset: var(--inset);
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--background);
}

.region-earth {
	position: absolute;
	inset: 0;
	/* The site sets touch-none. The orbit is horizontal only, so vertical
	   swipes are left to the page the tile sits in. */
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.region-earth:focus {
	outline: none;
}

.region-earth:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: -2px;
}

.region-earth canvas {
	display: block;
	width: 100%;
	height: 100%;
}
