/* Jp P0: hide under-globe captions */
.globe-caption {
  display: none !important;
}


/* Jp mobile hero cleanup: no Embed, no under-globe headline list */
.embed-btn,
#embed-btn,
.globe-pin-list {
  display: none !important;
}
/* Interactive globe UI — tooltip, pin list, Wire sync (Signal Mark language) */

:root {
  --globe-void: #000000;
  --globe-land: #3a3a3a;
  --globe-grid: #5a5a5a;
  --globe-ink: #f2f2f2;
  --globe-muted: #8a8a8a;
  --warn: #c9a227;
  --lane-geo: #a87848;
  --lane-solar: #a8944a;
  --lane-climate: #5a8474;
  --lane-neo: #d8d8d8;
  --lane-conflict: #8f3e36;
  --lane-fracture: #8a7358;
  --lane-ai: #6a848c;
}

.globe-legend .geo { color: var(--lane-geo); }
.globe-legend .solar { color: var(--lane-solar); }
.globe-legend .climate { color: var(--lane-climate); }
.globe-legend .neo { color: var(--lane-neo); }
.globe-legend .conflict { color: var(--lane-conflict); }
.globe-legend .fracture { color: var(--lane-fracture); }
.globe-legend .ai { color: var(--lane-ai); }


/* Stacking: canvas under chrome; pin list handled per breakpoint */
.globe-hero {
  overflow: hidden;
  isolation: isolate;
}
.globe-hero #globe,
.globe-hero canvas {
  position: relative;
  z-index: 0;
}
.globe-legend,
.globe-caption,
.embed-btn {
  z-index: 2;
}

.globe-tooltip {
  position: fixed;
  z-index: 40;
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.55rem 0.7rem 0.55rem;
  background: #111;
  border: 1px solid #2a2a2a;
  color: #f2f2f2;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  line-height: 1.35;
  pointer-events: none;
  /* no drop-shadow candy */
  box-shadow: none;
}

.globe-tooltip[hidden] {
  display: none !important;
}

.globe-tooltip-dateline {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--globe-muted);
  font-size: 0.68rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  margin: 0 0 0.35rem;
}

.globe-tooltip-lede {
  color: var(--globe-ink);
  font-size: 0.88rem;
  margin: 0 0 0.4rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.globe-tooltip-open {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--globe-muted);
  font-size: 0.62rem;
  font-weight: 650;
  margin: 0;
}

.globe-pin-list {
  position: absolute;
  top: 2.4rem;
  right: 0.55rem;
  z-index: 5;
  width: min(15.5rem, 42vw);
  max-height: calc(100% - 3.2rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  overflow: auto;
  background: rgba(8, 8, 8, 0.82);
  border: 1px solid #2a2a2a;
  scrollbar-width: thin;
}

.globe-pin-list li {
  margin: 0;
  padding: 0;
}

.globe-pin-list button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid transparent;
  background: transparent;
  color: #e8e8e8;
  text-align: left;
  font: inherit;
  font-size: 0.72rem;
  line-height: 1.3;
  cursor: pointer;
}

.globe-pin-list button:hover,
.globe-pin-list button.is-hot {
  background: #1a1a1a;
  border-color: #3a3a3a;
  color: #fff;
}

.globe-pin-list button.is-selected,
.globe-pin-list button[aria-pressed="true"] {
  background: #1c1c1c;
  border-color: #f2f2f2;
  color: #fff;
}

.globe-pin-list button:focus-visible {
  outline: 2px solid var(--warn);
  outline-offset: 2px;
}

.globe-pin-list .pin-title {
  font-weight: 650;
}

.globe-pin-list .pin-meta {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
  font-size: 0.58rem;
  font-weight: 700;
}

.wire a.is-globe-hot,
.story a.is-globe-hot,
.lead a.is-globe-hot {
  color: #fff;
  text-decoration: underline;
  background: rgba(255, 255, 255, 0.06);
}

.wire a.is-globe-selected,
.story a.is-globe-selected,
.lead a.is-globe-selected {
  color: #fff;
  box-shadow: inset 3px 0 0 var(--warn);
  padding-left: 0.45rem;
  text-decoration: underline;
}

#globe,
.globe-hero #globe {
  position: relative;
}

@media (width <= 860px) {
  .globe-pin-list {
    width: min(13.5rem, 48vw);
    top: 2.1rem;
    max-height: calc(100% - 2.8rem);
  }
}

@media (width <= 600px) {
  /* Pin list below globe — do not cover the sphere */
  .globe-hero {
    height: auto !important;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
  }
  .globe-hero #globe {
    position: relative;
    flex: 0 0 280px;
    width: 100%;
    height: 280px;
    min-height: 280px;
    overflow: hidden;
  }
  .globe-legend {
    top: 0.55rem;
    left: 0.65rem;
    right: 0.65rem;
    max-width: calc(100% - 1.3rem);
  }
  .globe-caption {
    top: calc(280px - 1.35rem);
    bottom: auto;
    right: 0.65rem;
  }
  .embed-btn {
    top: calc(280px - 1.45rem);
    bottom: auto;
  }
  .globe-pin-list {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    z-index: 1;
    order: 20;
    width: 100%;
    max-height: none;
    margin: 0;
    padding: 0.45rem 0.55rem 0.65rem;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    background: #0a0a0a;
    font-size: 0.68rem;
  }
  
/* Stacking: canvas under chrome; pin list handled per breakpoint */
.globe-hero {
  overflow: hidden;
  isolation: isolate;
}
.globe-hero #globe,
.globe-hero canvas {
  position: relative;
  z-index: 0;
}
.globe-legend,
.globe-caption,
.embed-btn {
  z-index: 2;
}

.globe-tooltip {
    max-width: min(20rem, calc(100vw - 1.25rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .globe-tooltip,
  .globe-pin-list button,
  .wire a.is-globe-hot,
  .wire a.is-globe-selected {
    transition: none;
  }
}

/* Tighten mobile hero / columns */

@media (width <= 600px) {
  .globe-hero {
    height: min(42vh, 320px) !important;
    min-height: 240px !important;
    display: block !important; /* not flex column for docked list */
  }
  .globe-hero #globe {
    height: 100% !important;
    min-height: 240px !important;
    flex: none !important;
  }
  .globe-caption {
    top: auto !important;
    bottom: 0.45rem !important;
  }
  .wire {
    margin-top: 0.75rem !important;
    margin-bottom: 1.5rem !important;
    gap: 0.85rem !important;
  }
}





/* Homepage: muted link only — full archive lives on /wire-archive */
.wire-archive-link {
  width: min(1180px, 100%);
  margin: -1.4rem auto 2.4rem;
  padding: 0;
  text-align: center;
  font-size: 0.78rem;
}
.wire-archive-link a {
  color: #8a8a8a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
}
.wire-archive-link a:hover {
  color: #c8c8c8;
  text-decoration: underline;
}
/* /wire-archive page */
.wire-archive-page {
  width: min(44rem, 100%);
  margin: 0 auto;
  padding: 0 0 2.5rem;
}
.wire-archive-page h1 {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin: 0 0 0.45rem;
}
.wire-archive-page .lede {
  color: #8a8a8a;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
}
.wire-archive-page .wire-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
}
.wire-archive-page .archive-story {
  border-bottom: 1px solid #2a2a2a;
  margin: 0;
  padding: 0.55rem 0 0.65rem;
  font-size: 1rem;
}
.wire-archive-page .archive-story a {
  color: #e8e8e8;
  font-weight: 650;
  text-decoration: none;
}
.wire-archive-page .archive-story a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Wordmark lockup — lean-1 warn red underline only */
.wordmark-text {
  box-shadow: inset 0 -2px #8B1E1E;
  padding-bottom: 0.08rem;
}
