/* ============================================================
   Alpha Finance v2: exchange flows (/bitcoin-exchange-flows/, /ethereum-exchange-flows/)
   Loaded after sentiment.css. The asset rail in the hero, the two charts,
   the exchange picker and the balance board live here.
   ============================================================ */

/* a capture is good data with a date on it: lit, but without the live glow */
.feed.is-captured .dot { background: var(--lime); }

/* the asset rail sits under the hero grid, full width */
.snthero-grid .assetrail { grid-column: 1 / -1; margin-top: 18px; }

/* the reading: one sentence under the hero */
.exf-read { padding: 14px 18px 15px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }

/* charts */
.sntpanel-body.is-chart.exf-bal { height: 360px; }
.sntpanel-body.is-chart.exf-flow { height: 300px; }
.sntpanel-foot .key .k-bal { background: var(--lime); }
.sntpanel-foot .key .k-px { background: var(--text); }
.sntpanel-foot .key .k-in { background: var(--pos); }
.sntpanel-foot .key .k-out { background: var(--neg); }

/* the exchange picker beside the window buttons */
.pick select {
  padding: 5px 26px 5px 9px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--text);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0h8L4 5z' fill='%236b727c'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.pick select:focus { outline: none; border-color: var(--line-2); }

/* the board: a round exchange mark beside each name, initials when there is no file */

/* the board */
.snttable th[data-k] { cursor: pointer; user-select: none; }
.snttable th[data-k]:hover { color: var(--text); }
.snttable th[data-k].on { color: var(--lime); }
.snttable th[data-k].on::after { content: " \25BE"; }
.snttable th[data-k].on.asc::after { content: " \25B4"; }
.snttable td.rk { color: var(--faint); font-family: var(--mono); font-size: 10.5px; }
.snttable td small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 9.5px; color: var(--faint); }
.snttable td.up small { color: color-mix(in srgb, var(--pos-text) 70%, var(--faint)); }
.snttable td.down small { color: color-mix(in srgb, var(--neg-text) 70%, var(--faint)); }
.snttable td { height: 46px; }

.tip .up { color: var(--pos-text); }
.tip .down { color: var(--neg-text); }

@media (max-width: 760px) {
  .sntpanel-body.is-chart.exf-bal { height: 260px; }
  .sntpanel-body.is-chart.exf-flow { height: 220px; }
}
