/* ABSENT BORN LABS — traffic globe panel.
   Palette comes from the site tokens; nothing here declares a colour that
   isn't already in style.css. Layout collapses to a single column under 720px
   with the globe on top, because the list is the part you actually read. */

.abl-globe {
  border: 1px solid rgba(233, 230, 219, .10);
  background: rgba(255, 255, 255, .012);
  padding: 18px 20px 20px;
}

.abl-globe__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(233, 230, 219, .08);
}

.abl-globe__title {
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text, #E9E6DB);
}

.abl-globe__meta {
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-2, #ABA6A8);
  opacity: .8;
  white-space: nowrap;
}

.abl-globe__body {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 26px;
  align-items: center;
}

.abl-globe__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 200px;
}

.abl-globe__stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.abl-globe__stage canvas:active { cursor: grabbing; }

/* Follows the pointer, so it must never sit under it — offset up-left and
   pointer-events:none, or the tooltip would shadow its own hit test. */
.abl-globe__tip {
  position: absolute;
  transform: translate(12px, -50%);
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
  padding: 5px 9px;
  background: rgba(12, 11, 14, .93);
  border: 1px solid rgba(233, 230, 219, .16);
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text, #E9E6DB);
}
.abl-globe__tip[hidden] { display: none; }

.abl-globe__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.abl-globe__row {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(70px, 2fr) auto;
  align-items: center;
  gap: 14px;
  padding: 5px 6px;
  outline: none;
  transition: background .16s ease;
}
.abl-globe__row:hover,
.abl-globe__row.is-hot,
.abl-globe__row:focus-visible { background: rgba(255, 255, 255, .04); }

.abl-globe__name {
  font-size: 13px;
  color: var(--text-2, #ABA6A8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .16s ease;
}
.abl-globe__row.is-hot .abl-globe__name,
.abl-globe__row.is-lead .abl-globe__name { color: var(--text, #E9E6DB); }

.abl-globe__track {
  position: relative;
  height: 3px;
  background: rgba(233, 230, 219, .10);
  overflow: hidden;
}
.abl-globe__track i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  background: var(--signal-dim, #D2372A);
  transition: background .16s ease;
}
/* --globe-accent is set per mode by globe.js, so the bars recolour with the
   markers and the panel never shows two modes' colours at once. */
.abl-globe__row.is-lead .abl-globe__track i,
.abl-globe__row.is-hot .abl-globe__track i {
  background: var(--globe-accent, var(--signal, #FF4438));
}

.abl-globe__modes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-right: auto;
  margin-left: 4px;
}
.abl-globe__mode {
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--text-2, #ABA6A8);
  border: 1px solid rgba(233, 230, 219, .14);
  padding: 4px 8px;
  transition: color .15s ease, border-color .15s ease;
}
.abl-globe__mode:hover { color: var(--text, #E9E6DB); }
.abl-globe__mode[aria-pressed="true"] {
  color: var(--globe-accent, var(--signal, #FF4438));
  border-color: var(--globe-accent, var(--signal, #FF4438));
}
.abl-globe__mode:focus-visible {
  outline: 2px solid var(--globe-accent, var(--signal, #FF4438));
  outline-offset: 2px;
}

.abl-globe__n {
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--text, #E9E6DB);
  text-align: right;
  min-width: 46px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .abl-globe__body { grid-template-columns: 1fr; gap: 18px; }
  .abl-globe__stage { max-width: 260px; margin: 0 auto; }
  .abl-globe__head { flex-direction: column; gap: 4px; }
}

/* ---- category legend (shown only when a mode breaks down by composition) ---- */
.abl-globe__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(233, 230, 219, .08);
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2, #ABA6A8);
}
.abl-globe__legend[hidden] { display: none; }
.abl-globe__key { display: inline-flex; align-items: center; gap: 7px; }
.abl-globe__key i { width: 8px; height: 8px; display: inline-block; }

/* Segments are absolutely placed, so the lead/hot accent override must not
   repaint them — an inline background wins, but be explicit about intent. */
.abl-globe__track i.seg { inset: 0 auto 0 auto; }

/* A rule wherever the data source changes in the mode bar. Edge-derived and
   browser-derived numbers measure different things and will never agree, so
   they must not read as one continuous set of options. */
.abl-globe__mode.is-newsource {
  margin-left: 12px;
  border-left-width: 2px;
  border-left-color: rgba(233, 230, 219, .3);
}
