/* /radar: new pools on Elysium as they open. .rd- throughout. Rows are links
   into the token page; the head row and the per-cell labels swap places on a
   phone, where each pool becomes a small card. */

.rd-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.rd-page [hidden] {
  display: none !important;
}

.rd-title {
  font-family: var(--f-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.05;
  color: var(--text);
  margin-right: 4px;
}
.rd-note {
  padding: 0;
  margin-left: auto;
  align-items: center;
  gap: 6px;
}
.rd-sweep {
  display: inline-flex;
  color: var(--accent);
  animation: rd-spin 4s linear infinite;
}
@keyframes rd-spin {
  to {
    transform: rotate(360deg);
  }
}
.rd-lede {
  max-width: 72ch;
  color: var(--ink-2);
}

.rd-stats {
  gap: 8px;
}
.rd-stat {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--raised);
  min-width: 0;
}
.rd-stat-v {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rd-k {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ----------------------------------------------------------------- rows */

.rd-feed {
  display: flex;
  flex-direction: column;
}
.rd-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(0, 1.1fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12.5px;
  text-decoration: none;
  min-width: 0;
  transition: background var(--dur) var(--ease);
}
a.rd-row:hover {
  background: var(--raised);
}
a.rd-row:focus-visible {
  outline: 1px solid var(--accent-line);
  outline-offset: -1px;
}
.rd-row--head {
  padding-top: 9px;
  padding-bottom: 9px;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.rd-new {
  animation: rd-arrive 2.4s var(--ease);
}
@keyframes rd-arrive {
  from {
    background: var(--accent-tint);
    box-shadow: inset 2px 0 0 var(--accent);
  }
  to {
    background: transparent;
    box-shadow: inset 2px 0 0 transparent;
  }
}

.rd-tok {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.rd-tok .tok-ico {
  flex: 0 0 auto;
}
.rd-tok-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rd-sym {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.rd-vs {
  display: none;
  color: var(--ink-3);
  font-weight: 400;
  font-size: 12px;
}
.rd-name {
  color: var(--ink-3);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rd-pl {
  flex: 0 0 auto;
  font-family: var(--f-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  border: 1px solid var(--accent-line);
  background: var(--accent-tint);
  border-radius: var(--r-sm);
  padding: 0 5px;
  line-height: 1.6;
}

.rd-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rd-cell .rd-k {
  display: none;
}
.rd-pair,
.rd-main {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rd-sub,
.rd-hook,
.rd-dim {
  color: var(--ink-3);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rd-v {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink);
  white-space: nowrap;
}
.rd-v--v3 {
  color: var(--royal-ink);
}
.rd-dep-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.rd-addr {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink);
}

.rd-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.rd-more .subnote {
  color: var(--ink-3);
}
.rd-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 16px;
}
.rd-launch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rd-foot {
  color: var(--ink-3);
  max-width: 96ch;
}
.rd-foot a {
  color: var(--ink-2);
}

.rd-skel {
  min-height: 52px;
}
.rd-skel span {
  height: 10px;
  border-radius: var(--r-sm);
  background: var(--raised);
}

/* The phone gets a Radar tab in the Pools segmented control (pools.js). */
a.seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
}

/* ----------------------------------------------------------------- phone */

@media (max-width: 900px) {
  .rd-row {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  }
  .rd-row--head span:nth-child(2),
  .rd-row--head span:nth-child(6),
  .rd-pair,
  .rd-dep {
    display: none;
  }
}

@media (max-width: 720px) {
  .rd-title {
    font-size: var(--fs-h2);
  }
  .rd-note {
    margin-left: 0;
  }
  .rd-row--head {
    display: none;
  }
  .rd-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 14px;
    padding: 12px 14px;
  }
  .rd-tok {
    grid-column: 1 / -1;
  }
  .rd-cell .rd-k {
    display: block;
  }
  /* Pair rides on the symbol line; venue and age, then liquidity and deployer, side by side. */
  .rd-vs {
    display: inline;
  }
  .rd-dep {
    display: flex;
  }
  .rd-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .rd-stat {
    padding: 6px 9px;
  }
  .rd-stat-v {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rd-skel {
    grid-template-columns: 1fr;
  }
}
