/* Solana hub — instrument-directory skins on terminal-core.css
   primitives (2026-07-21 redesign: index rows, not marketing cards).
   Scope: everything under .terminal-page so nothing leaks into shared
   modules mounted on other pages. */

/* ── strip header ─────────────────────────────────────────────── */
.terminal-page .hub-strip {
  padding-top: 48px;
  padding-bottom: 8px;
}
.terminal-page .hub-strip-title {
  font-family: var(--font-terminal);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.terminal-page .hub-strip-desc {
  font-family: var(--font-terminal);
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
}

/* ── token index ──────────────────────────────────────────────── */
.terminal-page .tk-index {
  padding-top: 28px;
}
.terminal-page .tk-index-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.terminal-page .tk-meta {
  font-family: var(--font-terminal);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin: 0;
}
.terminal-page .tk-glyph { color: var(--positive); }
.terminal-page .tk-glyph--off { color: var(--text-dim); }

.terminal-page .tk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}
.terminal-page .tk-row {
  position: relative;
  display: grid;
  grid-template-columns: 110px 150px 1fr 110px 100px 140px 120px;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-terminal);
  transition: background-color 0.15s ease;
}
.terminal-page .tk-row:last-child { border-bottom: none; }
.terminal-page .tk-row:hover { background: var(--bg-hover); }
.terminal-page .tk-row:hover .tk-arrow { transform: translateX(3px); }

.terminal-page .tk-ticker {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.terminal-page .tk-role {
  color: var(--text-secondary);
  font-size: 0.78rem;
}
.terminal-page .tk-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.terminal-page .tk-chip {
  border: 1px solid var(--border-bright);
  color: var(--accent-gold);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  text-transform: uppercase;
}
.terminal-page .tk-chip--off {
  border-color: var(--border);
  color: var(--text-dim);
}
.terminal-page .tk-num {
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  font-weight: 600;
}
.terminal-page .tk-num-label {
  color: var(--text-dim);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.terminal-page .tk-mint code {
  color: var(--text-dim);
  font-size: 0.72rem;
  background: none;
}
.terminal-page .tk-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.terminal-page .tk-analysis {
  position: relative;
  z-index: 2;
  color: var(--text-secondary);
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.terminal-page .tk-analysis:hover { color: var(--accent-gold); }
.terminal-page .tk-row-link {
  color: var(--accent-gold);
  font-size: 1rem;
  text-decoration: none;
}
/* Stretched link: the arrow anchor covers the whole row, so any click
   opens the dashboard; the analysis link floats above via z-index. */
.terminal-page .tk-row-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.terminal-page .tk-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.terminal-page .tk-soon {
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── launchpad lane ───────────────────────────────────────────── */
.terminal-page .lp-lane { padding-top: 32px; }
.terminal-page .lp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}
.terminal-page .lp-row { border-bottom: 1px solid var(--border); }
.terminal-page .lp-row:last-child { border-bottom: none; }
.terminal-page .lp-row-link {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-family: var(--font-terminal);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.terminal-page .lp-row-link:hover { background: var(--bg-hover); }
.terminal-page .lp-row-link:hover .tk-arrow { transform: translateX(3px); }
.terminal-page .lp-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.88rem;
}
.terminal-page .lp-cap {
  color: var(--text-dim);
  font-size: 0.75rem;
}
.terminal-page .lp-row-link .tk-arrow { color: var(--accent-gold); }

/* ── responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .terminal-page .tk-row {
    grid-template-columns: 1fr 1fr auto;
    grid-template-areas:
      "ticker role actions"
      "chips chips chips"
      "num1 num2 mint";
    row-gap: 10px;
  }
  .terminal-page .tk-ticker { grid-area: ticker; }
  .terminal-page .tk-role { grid-area: role; }
  .terminal-page .tk-actions { grid-area: actions; }
  .terminal-page .tk-chips { grid-area: chips; }
  /* Cell order in the row: ticker(1) role(2) chips(3) num(4) num(5)
     mint(6) actions(7) — all spans, so nth-child, not nth-of-type. */
  .terminal-page .tk-row > :nth-child(4) { grid-area: num1; }
  .terminal-page .tk-row > :nth-child(5) { grid-area: num2; }
  .terminal-page .tk-mint { grid-area: mint; text-align: right; }
  .terminal-page .lp-row-link { grid-template-columns: 1fr auto; }
  .terminal-page .lp-cap { grid-column: 1 / -1; }
}
