/* ---- What InFlux wrote on its own transactions -------------------------------------- */

#memos .stats {
  margin-bottom: 8px;
}
#memos .fig,
#memos .mm-notes,
#memos .mm-read {
  margin-top: clamp(24px, 3vw, 36px);
}

/* bars by category: each row is a button that lists that category's memos */
.mm-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.mm-bar {
  --c: var(--cream);
  display: grid;
  width: 100%;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr) minmax(110px, 150px);
  gap: 4px 18px;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--radius-panel);
  border: 1px solid transparent;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 280ms ease;
}
.mm-bar:hover,
.mm-bar:focus-visible {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-1);
  box-shadow: 0 0 40px -24px var(--c);
}
.mm-bar[aria-pressed="true"] {
  background: rgba(255, 230, 168, 0.05);
  border-color: var(--line-cream-2);
}
.mm-name {
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}
.mm-track {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.mm-track i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--c);
  box-shadow: 0 0 14px -2px var(--c);
  transform-origin: left center;
}
.mm-num {
  display: grid;
  text-align: right;
}
.mm-num b {
  font: 600 15px var(--font-sans);
  color: var(--text);
}
.mm-num small {
  font-size: 12.5px;
  color: var(--text-4);
}

/* callouts */
.mm-txs {
  display: inline;
  font-size: 13px;
  color: var(--text-4);
}
.mm-txs .addr {
  display: inline;
}
.mm-txs .addr-link {
  white-space: nowrap;
}

/* the list */
.mm-controls .seg {
  flex: 0 0 auto;
}
.mm-controls .dir-sel {
  flex: 0 1 260px;
}
.mm-controls .dir-search {
  flex: 1 1 280px;
  max-width: 420px;
}
.mm-scroll {
  max-height: min(78vh, 760px);
}
.mm-table th,
.mm-table td {
  padding-inline: 10px;
}
.mm-table td:nth-child(3) {
  min-width: 230px;
}
.mm-table td:nth-child(4) {
  min-width: 140px;
}
.mm-table td:nth-child(5) {
  min-width: 300px;
}
.mm-table td:nth-child(6) {
  white-space: nowrap;
}
.mm-date {
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
}
.mm-text {
  color: var(--text);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.mm-flow {
  display: grid;
  gap: 6px;
}
.mm-leg {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.mm-arrow {
  font-style: normal;
  color: var(--text-4);
}
.mm-who {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.mm-who small {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-4);
}
.mm-read-body {
  display: grid;
  gap: 10px;
  padding: 4px 18px 16px;
}

@media (max-width: 760px) {
  .mm-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 12px;
  }
  .mm-name {
    grid-column: 1;
  }
  .mm-num {
    grid-column: 2;
    grid-row: 1;
  }
  .mm-track {
    grid-column: 1 / -1;
  }
  .mm-controls .seg,
  .mm-controls .dir-sel,
  .mm-controls .dir-search {
    flex: 1 1 100%;
    max-width: none;
  }
  .mm-read-body {
    padding-inline: 12px;
  }
}
