/* Captions: hidden by default on monitor-era pages; homepage hero shows 4-min cycle */
.globe-caption {
  display: none;
}
.home-globe-hero .globe-caption,
.globe-hero.home-globe-hero .globe-caption {
  display: block !important;
  letter-spacing: 0.1em;
  color: #8a8a8a;
  text-align: right;
  max-width: 70%;
  margin: 0;
  font-size: 0.62rem;
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  z-index: 2;
}


/* 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: #8B1E1E;
  --lane-geo: #d4a05c;
  --lane-solar: #d4bc5a;
  --lane-climate: #7cb8a0;
  --lane-neo: #f0f0f0;
  --lane-conflict: #c45048;
  --lane-fracture: #c4a070;
  --lane-ai: #8ab0bc;
}

.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) {
  .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 columns */
@media (width <= 600px) {
  .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;
}


/* ===== Homepage globe hero — Phase 1 "globe owns the first viewport" ===== */
.home-globe-hero.globe-hero {
  width: 100%;
  height: clamp(520px, calc(100vh - 172px), 900px);
  min-height: 0;
  border-bottom: 1px solid #2a2a2a;
  background: #000;
  position: relative;
  margin: 0;
}
@supports (height: 1svh) {
  .home-globe-hero.globe-hero {
    height: clamp(520px, calc(100svh - 172px), 900px);
  }
}
/* pan-y: one-finger vertical swipe scrolls the page; horizontal drag + pinch go to the globe.
   (touch-action intersects up the tree, so #globe and the canvas both need it.) */
.home-globe-hero #globe,
.home-globe-hero canvas {
  touch-action: pan-y;
}
.home-globe-hero #globe {
  width: 100%;
  height: 100%;
  position: relative;
}
.home-globe-hero canvas {
  animation: globe-fade 0.9s ease-out both;
}
@keyframes globe-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mast: mark + wordmark sit over the top of the sphere */
.home-globe-hero .globe-mast {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 0 8px #000, 0 0 2px #000;
}
.home-globe-hero .globe-mast a {
  pointer-events: auto;
}
.home-globe-hero .globe-mast .home-mark {
  padding: 0;
}
.home-globe-hero .globe-mast .home-mark-svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 0.35rem;
  filter: drop-shadow(0 0 4px #000);
}

/* "This week's board →" — smooth-scrolls to the columns */
.home-globe-hero .globe-board-link {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  white-space: nowrap;
}
.home-globe-hero .globe-board-link a {
  display: inline-block;
  color: #c8c8c8;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #2a2a2a;
  padding: 0.5rem 0.9rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.home-globe-hero .globe-board-link a:hover,
.home-globe-hero .globe-board-link a:focus-visible {
  color: #fff;
  border-color: #5a5a5a;
}
.home-globe-hero .globe-board-link a:focus-visible {
  outline: 2px solid var(--warn);
  outline-offset: 2px;
}
#board {
  scroll-margin-top: 0.5rem;
}

/* Legend = lane filter (toggle buttons). Desktop: vertical rail at left, clear of the sphere. */
.home-globe-hero .globe-legend {
  position: absolute;
  top: 0.85rem;
  left: 0.9rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  letter-spacing: 0.12em;
  font-size: 0.62rem;
  font-weight: 700;
  color: #ddd;
}
.globe-legend button.blip {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 28px;
  margin: 0;
  padding: 0.3rem 0.55rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid #2a2a2a;
  border-radius: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
}
.globe-legend button.blip::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.globe-legend button.blip:hover {
  border-color: #5a5a5a;
}
.globe-legend button.blip:focus-visible {
  outline: 2px solid var(--warn);
  outline-offset: 2px;
}
.globe-legend button.blip[aria-pressed="false"] {
  color: #5a5a5a !important;
  border-style: dashed;
}
.globe-legend button.blip[aria-pressed="false"]::before {
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
}
.globe-legend .blip-n {
  color: #6a6a6a;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.globe-legend button.blip.is-empty {
  opacity: 0.55;
}

.home-globe-hero .globe-caption {
  bottom: 0.85rem;
  right: 0.9rem;
  font-variant-numeric: tabular-nums;
}

/* Tablet + mobile: legend/caption leave the canvas so nothing sits on the earth */
@media (width <= 900px) {
  .home-globe-hero.globe-hero {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .home-globe-hero #globe {
    flex: 0 0 auto;
    height: clamp(420px, 82vw, 720px);
  }
  .home-globe-hero .globe-legend {
    position: static;
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 0.75rem 0.2rem;
    max-width: none;
  }
  .home-globe-hero .globe-caption,
  .globe-hero.home-globe-hero .globe-caption {
    position: static;
    order: 3;
    max-width: none;
    text-align: center;
    padding: 0.35rem 0.75rem 0.7rem;
  }
  .home-globe-hero .globe-board-link {
    position: static;
    order: 4;
    transform: none;
    text-align: center;
    padding: 0 0.75rem 0.9rem;
  }
}
@media (width <= 600px) {
  /* beat Layout.css (width<=600) .globe-hero height !important */
  .home-globe-hero.globe-hero {
    height: auto !important;
    min-height: 0 !important;
  }
  .home-globe-hero #globe {
    height: min(108vw, 440px);
    min-height: 0;
  }
  .home-globe-hero .globe-mast {
    top: 0.5rem;
  }
  .home-globe-hero .globe-mast .home-mark-svg {
    width: 26px;
    height: 26px;
    margin-bottom: 0.25rem;
  }
  .home-globe-hero .globe-mast .home-mark-word {
    font-size: 0.66rem;
  }
  .home-globe-hero .globe-legend {
    gap: 0.3rem;
    padding: 0.55rem 0.5rem 0.1rem;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }
  .globe-legend button.blip {
    min-height: 34px;
    padding: 0.3rem 0.45rem;
    gap: 0.3rem;
  }
  .home-globe-hero .globe-board-link a {
    padding: 0.45rem 0.75rem;
  }
}
/* ===== EARTH | SUN switcher (hero Earth+Sun pass, 2026-09-29) ===== */
.home-globe-hero .globe-body-switch {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.45rem;
  padding: 0 0.15rem;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid #2a2a2a;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #6a6a6a;
}
.globe-body-switch [role="tab"] {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: #7a7a7a;
  font: inherit;
  letter-spacing: inherit;
  min-height: 28px;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  text-shadow: 0 0 6px #000;
}
.globe-body-switch [role="tab"]:hover {
  color: #c8c8c8;
}
.globe-body-switch [role="tab"][aria-selected="true"] {
  color: #f2f2f2;
  border-bottom-color: #8b1e1e;
}
.globe-body-switch [role="tab"]:focus-visible {
  outline: 2px solid var(--warn);
  outline-offset: 2px;
}
.globe-body-sep {
  color: #3a3a3a;
}
.globe-body-badge {
  margin-left: 0.35rem;
  color: var(--lane-solar);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.globe-body-badge[hidden] {
  display: none;
}
/* Crossfade overlay: a 2D freeze of the outgoing frame (no second body on the GPU) */
.globe-xfade,
.globe-hero canvas.globe-xfade {
  position: absolute;
  top: 0;
  left: 0;
  animation: none;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}
/* Sun view: Earth-only lanes dimmed so they do not read as broken; SOLAR stays live */
.globe-legend button.blip.is-offbody {
  opacity: 0.28;
  cursor: default;
}
.globe-legend .blip-n[hidden] {
  display: none;
}
.globe-sun-stale {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 2;
  pointer-events: none;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #8a8a8a;
  white-space: nowrap;
}
.globe-sun-stale[hidden] {
  display: none;
}
@media (width <= 600px) {
  .home-globe-hero .globe-body-switch {
    margin-top: 0.25rem;
    font-size: 0.6rem;
  }
  .globe-body-switch [role="tab"] {
    min-height: 34px;
    padding: 0.3rem 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-globe-hero canvas {
    animation: none;
  }
  .globe-xfade {
    transition: none !important;
  }
}

/* ===== Sun readout (Sun view only, 2026-10-08 draft): official CME / watch / flare lines.
   Instrument panel, near-monochrome; the one accent is the SOLAR lane gold on LIVE. ===== */
.home-globe-hero .sun-panel {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  z-index: 3;
  width: min(22.5rem, 32vw);
  margin: 0;
  padding: 0.55rem 0.7rem 0.5rem;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid #2a2a2a;
  color: #a8a8a8;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.home-globe-hero:not([data-globe-body="sun"]) .sun-panel {
  display: none;
}
.sun-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #2a2a2a;
  color: #f2f2f2;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.sun-panel-state {
  color: #6a6a6a;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.sun-panel-state[data-state="live"] {
  color: var(--lane-solar, #a8944a);
}
.sun-panel-state[data-state="stale"] {
  color: #b04a3a;
}
.sun-panel-rows {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.34rem 0.5rem;
  margin: 0;
}
.sun-panel-rows dt {
  margin: 0;
  color: #6a6a6a;
}
.sun-panel-rows dd {
  margin: 0;
  color: #d8d8d8;
}
.sun-panel-rows .sun-panel-main,
.sun-panel-rows .sun-panel-sub {
  display: block;
}
.sun-panel-rows .sun-panel-sub {
  color: #8a8a8a;
}
.sun-panel-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 0.6rem;
  margin: 0.45rem 0 0;
  padding-top: 0.35rem;
  border-top: 1px solid #1e1e1e;
  color: #5a5a5a;
}
.sun-panel-foot a {
  color: #c8c8c8;
  text-decoration: none;
}
.sun-panel-foot a:hover,
.sun-panel-foot a:focus-visible {
  color: #fff;
  text-decoration: underline;
}
.sun-panel-foot a:focus-visible {
  outline: 2px solid var(--warn);
  outline-offset: 2px;
}
.globe-body-cme {
  margin-left: 0.35rem;
  color: #8a8a8a;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.globe-body-cme[hidden] {
  display: none;
}
@media (width <= 900px) {
  .home-globe-hero .sun-panel {
    position: static;
    order: 1;
    width: auto;
    margin: 0.55rem 0.75rem 0;
  }
}

/* ===== Pin spec v2 labels (Signal Mark, Oct 8 2026): #F2F2F2 on rgba(5,5,5,0.82), 2px left border in the pin
   colour, 10px right of the pin with a 1px #F2F2F2 60% leader. Labels never take pointer events. ===== */
.globe-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.globe-leaders {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}
.globe-leader {
  stroke: #f2f2f2;
  stroke-opacity: 0.6;
  stroke-width: 1;
}
.globe-pin-label {
  position: absolute;
  left: 0;
  top: 0;
  padding: 2px 6px;
  border-left: 2px solid #f2f2f2;
  border-radius: 0;
  background: rgba(5, 5, 5, 0.82);
  color: #f2f2f2;
  font-family: "IBM Plex Mono", var(--ds-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
}
.globe-pin-label[hidden] {
  display: none;
}
@media (width <= 600px) {
  .globe-pin-label {
    font-size: 11px;
  }
}
/* Sun blip -> its Solar Readout line */
.sun-panel-rows dt.is-focus,
.sun-panel-rows dd.is-focus {
  background: rgba(242, 242, 242, 0.1);
}
.sun-panel-rows dt.is-focus {
  color: #f2f2f2;
  box-shadow: inset 2px 0 0 #f2f2f2;
  padding-left: 4px;
}
