/* The Earth globe: the /explore/ hero and the /today/ mini globe (tools/globe). Loaded on /explore/ and /today/ only.
   The poster paints first and holds the box; the canvas and the link layer sit over it, so nothing shifts when the globe
   arrives. Tokens come from gi.css (look-a). */
/* Phones: the hero is as tall as its content (about one screen), so the region maps peek in below; from 64rem it fills the
   viewport with the globe as large as the height allows. */
.gx-hero { grid-template-rows: minmax(0, 1fr) auto; align-content: start; min-height: 0; background: var(--night); }
.gx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1px 1px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 78% 14%, #fffc, transparent),
    radial-gradient(1px 1px at 58% 82%, #fffa, transparent), radial-gradient(1px 1px at 33% 68%, #fff9, transparent),
    radial-gradient(1px 1px at 91% 61%, #fffb, transparent), radial-gradient(1px 1px at 46% 9%, #fff8, transparent);
  background-size: 320px 320px; }
.gx-in { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-items: center; align-content: center; gap: var(--s4) var(--s6); padding-top: var(--s5); }
.gx-copy { justify-self: stretch; max-width: 34rem; }
.gx-copy .crumbs { padding-top: 0; border-top-color: var(--ember); }
.gx-copy .crumbs a { color: var(--sand); }
.gx-copy .crumbs [aria-current] { color: var(--paper); }
.gx-copy .crumbs li + li::before { color: var(--sand); }
.gx-copy h1 { margin-top: var(--s3); }
.gx-hero .gig--hero { width: min(100%, 40rem); }
.gx-hero .tv-hero-foot { padding-top: var(--s3); }
.gx-hint { color: var(--sand); }
.gig-credit { margin: 0; font-family: var(--sans); font-size: .875rem; color: var(--sand); }
@media (min-width: 64rem) {
  .gx-hero { align-content: stretch; min-height: 100svh; }
  .gx-in { grid-template-columns: minmax(16rem, 24rem) minmax(0, 1fr); padding-top: var(--s4); }
  .gx-hero .gig--hero { width: min(100%, calc(100svh - var(--gh-h) - 7rem), 60rem); min-width: 28rem; }
}

/* The eight region maps (maps.mjs regionMap, written out as image tiles by tools/travel/explore.mjs), each linking to its hub. */
.gx-maps { padding-top: var(--s7); }
.gx-map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: var(--s5) var(--s4); margin-top: var(--s5); }
.gx-map a { display: flex; flex-direction: column; min-height: var(--tap); color: var(--ink); text-decoration: none; }
.gx-map-pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-top: 3px solid var(--accent); border-radius: 0 0 var(--r-photo, 6px) var(--r-photo, 6px); background: #dfe8e9; }
.gx-map-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gx-map-name { margin-top: var(--s2); font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.375rem; line-height: 1.15; }
.gx-map a:hover .gx-map-name, .gx-map a:focus-visible .gx-map-name { text-decoration: underline; text-underline-offset: .18em; }
.gx-map a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.gx-map-meta { margin-top: .15rem; font-size: .875rem; color: var(--ink-soft); }
.gx-maps .gi-map-credit { margin-top: var(--s5); }

/* The box paints the same gradient as the opaque poster (tools/globe/poster.mjs --bg #14262c --glow #1d3c48), so the poster
   fading out into the canvas leaves no edge. */
.gig { position: relative; aspect-ratio: 1 / 1; contain: layout; background: radial-gradient(circle at 50% 50%, #1d3c48 0%, #14262c 70%); }
.gig-poster, .gig-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.gig-poster { object-fit: contain; transition: opacity .6s ease; }
.gig-canvas { opacity: 0; transition: opacity .6s ease; cursor: grab; }
.gig-canvas:active { cursor: grabbing; }
.gig.gig-ready .gig-poster { opacity: 0; }
.gig.gig-ready .gig-canvas { opacity: 1; }
.gig-layer { position: absolute; inset: 0; pointer-events: none; }
.gig-pin { position: absolute; left: 0; top: 0; display: flex; align-items: center; min-height: 2rem; padding: .4rem .7rem; pointer-events: auto;
  border: 1px solid rgb(255 255 255 / .3); border-radius: 999px; background: rgb(10 24 30 / .72); color: #fff; font-family: var(--sans);
  font-size: .75rem; font-weight: 600; letter-spacing: .05em; line-height: 1; text-decoration: none; text-transform: uppercase; white-space: nowrap;
  transition: opacity .25s ease, background-color .15s ease; will-change: transform; -webkit-user-select: none; user-select: none; }
.gig-pin:hover, .gig-pin:focus-visible { background: var(--paper); color: var(--ink); }
.gig-pin:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.gig-featured { border-color: var(--ember); background: var(--ember); color: #1a0d00; }
@media (max-width: 40rem) { .gig-pin { min-height: 1.75rem; padding: .3rem .5rem; font-size: .6875rem; letter-spacing: .03em; } }

/* /today/: a small globe centred on the day's place, beside the page title. */
.gig-today-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.gig-mini-wrap { flex: 0 0 auto; width: clamp(7.5rem, 30vw, 12rem); margin: 0; text-align: center; }
.gig--mini { overflow: hidden; border-radius: 50%; }
.gig--mini .gig-pin { min-height: 1.5rem; padding: .25rem .45rem; font-size: .625rem; letter-spacing: .03em; }
.gig-mini-wrap .gig-credit { margin-top: var(--s2); font-size: .75rem; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) { .gig-poster, .gig-canvas, .gig-pin { transition: none; } }
@media print { .gig-canvas, .gig-layer { display: none; } .gig.gig-ready .gig-poster { opacity: 1; } }
