/* /globe: a full-screen globe, a slim bar on top and the layer chips at the foot. Dark only, like the rest of the site. */
:root { color-scheme: dark; --ink: #f2f2f3; --muted: #9b9ba3; --glass: #0c0d12cc; --line: #ffffff1f; }
html, body { height: 100%; margin: 0; }
body.globe-page { overflow: hidden; background: radial-gradient(circle at 50% 48%, #0d1a33 0, #05070d 45%, #000 80%); color: var(--ink); font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.globe { position: fixed; inset: 0; }
.globe .maplibregl-canvas { outline: none; }

.globe-bar { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px; background: linear-gradient(#000c, #0000); pointer-events: none; }
.globe-bar > * { pointer-events: auto; }
.globe-brand img { display: block; height: 28px; width: auto; }
.globe-title { margin: 0 auto 0 12px; font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.globe-about { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.globe-live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid #4fd18b55; border-radius: 99px; background: var(--glass);
  color: #4fd18b; font-size: 12px; font-weight: 700; letter-spacing: .06em; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.globe-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: globe-pulse 1.6s ease-in-out infinite; }
@keyframes globe-pulse { 50% { opacity: .3; } }

.globe-chips { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 8px;
  max-width: calc(100% - 32px); overflow-x: auto; scrollbar-width: none; padding: 6px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.globe-chips:empty { display: none; }
.globe-chips button { display: inline-flex; flex: none; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border: 0; border-radius: 99px;
  background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.globe-chips button[aria-pressed="true"] { background: color-mix(in srgb, var(--dot) 18%, transparent); color: var(--ink); }
.globe-chips button:focus-visible { outline: 2px solid var(--dot); outline-offset: 1px; }
.globe-chips i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 8px var(--dot); }
.globe-chips button[aria-pressed="false"] i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dot); }
.globe-chips b { color: var(--dot); font-variant-numeric: tabular-nums; }

.globe-notice { position: fixed; top: 64px; left: 16px; right: 16px; max-width: 420px; margin: 0 auto; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--glass); color: var(--ink); text-align: center; }
.globe-notice a { color: #ff8a1f; }

/* Popups: dark glass, the layer as a coloured tag. */
.globe .maplibregl-popup-content { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #111318f2; color: var(--ink); box-shadow: 0 12px 32px #0009; }
.globe .maplibregl-popup-tip { border-top-color: #111318f2; border-bottom-color: #111318f2; }
.globe .maplibregl-popup-close-button { color: var(--muted); font-size: 18px; padding: 2px 8px; }
.globe-pop { display: grid; gap: 5px; padding-right: 10px; }
.globe-pop-tag { color: var(--dot); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.globe-pop strong { font-size: 14px; line-height: 1.35; }
.globe-pop small { color: var(--muted); font-size: 12px; }
.globe-pop a { color: var(--ink); font-size: 13px; font-weight: 600; }

/* Zoom buttons and attribution in the same dark glass, clear of the chips. */
.globe .maplibregl-ctrl-bottom-right { bottom: 72px; }
.globe .maplibregl-ctrl-group { background: var(--glass); border: 1px solid var(--line); }
.globe .maplibregl-ctrl-group button + button { border-top-color: var(--line); }
.globe .maplibregl-ctrl-icon { filter: invert(1); }
.globe .maplibregl-ctrl-attrib { background: #0008; color: var(--muted); }
.globe .maplibregl-ctrl-attrib a { color: var(--muted); }

@media (max-width: 600px) {
  .globe-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .globe-chips { left: 16px; right: 16px; transform: none; max-width: none; justify-content: flex-start; }
  .globe-chips button { padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) { .globe-live i { animation: none; } .globe-chips button { transition: none; } }
