/* Kept after the buy page itself was retired: the coin page and the mint page both draw their
   supply bar with .rb-bar and .rb-pct from here. Deleting the sheet would take the bars with it. */
/* The buy page. Quiet by default: the numbers that decide the trade are the only loud thing. */
.rb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rb-row { display: flex; align-items: center; justify-content: space-between; gap: 16px;
          background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.rb-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rb-id b { font-size: 15px; }
.rb-id span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rb-ask { text-align: right; font-variant-numeric: tabular-nums; }
.rb-ask b { display: block; font: 700 15px/1.2 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rb-ask span { font-size: 12px; color: var(--muted); }
.rb-buy { margin-top: 22px; background: var(--card); border: 1px solid var(--line);
          border-radius: 14px; padding: 18px 20px; }
.rb-buy label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
                color: var(--muted); margin-bottom: 6px; }
.rb-buy input { width: 100%; font-size: 20px; font-variant-numeric: tabular-nums; }
.rb-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 4px; }
.rb-terms dt { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.rb-terms dd { margin: 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.rb-note { min-height: 18px; font-size: 13px; color: var(--muted); margin: 8px 0 14px; }
.rb-note.bad { color: var(--danger, #ff6b6b); }
.rb-actions { display: flex; gap: 10px; }
.rb-how { margin-top: 28px; color: var(--muted); font-size: 14px; }
.rb-how h2 { color: var(--txt); }
@media (max-width: 560px) {
  .rb-terms { grid-template-columns: 1fr; }
  .rb-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rb-ask { text-align: left; }
}

/* How far along a mint is. Measured against what CAN be minted, never against the whole supply. */
.rb-bar { height: 4px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 6px 0 3px; max-width: 240px; }
.rb-bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.rb-pct { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rb-mintwrap { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.rb-count { width: 58px; text-align: center; font-variant-numeric: tabular-nums; padding: 7px 6px; }
.rb-name { color: var(--txt); text-decoration: none; font-weight: 700; border-bottom: 1px solid transparent; }
.rb-name:hover { color: var(--accent); border-bottom-color: var(--accent); }


/* --- the mint control ---------------------------------------------------------------------------
   The count and the button lost every border, background and colour when this page stopped loading
   style.css, and rendered as a raw browser input beside an unstyled button. Both are defined here
   now, on the system's tokens, so they cannot lose them again to a stylesheet that is not loaded.
   ------------------------------------------------------------------------------------------------ */

.rm-act { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* One segmented control, not three loose things. The count is a number of transactions: small,
   bounded, and adjusted far more often than typed. */
.rm-step {
  display: flex; align-items: stretch;
  border: 1px solid var(--line2); border-radius: var(--r-pill);
  background: var(--bg); overflow: hidden;
}
.rm-stepbtn {
  width: 32px; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font: 500 15px/1 var(--sans);
  transition: color .12s ease, background .12s ease;
}
.rm-stepbtn:hover:not(:disabled) { color: var(--txt); background: var(--card); }
.rm-stepbtn:disabled { opacity: .3; cursor: not-allowed; }
.rm-stepbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rm-count {
  width: 42px; padding: 8px 0; text-align: center;
  border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  background: transparent; color: var(--txt);
  font: 700 14px/1 var(--mono); font-variant-numeric: tabular-nums;
}
.rm-count:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* The cost rides on the button, because it is the number that decides the press. It used to be a
   tooltip, which on a touch screen is no number at all. */
.rm-mint { padding: 9px 16px; gap: 9px; }
.rm-cost {
  font: 700 11px/1 var(--mono); font-style: normal; letter-spacing: -.01em;
  padding-left: 9px; border-left: 1px solid rgba(6, 18, 27, .25); opacity: .78;
}

@media (max-width: 760px) {
  .rm-act { width: 100%; justify-content: space-between; }
  .rm-mint { flex: 1; }
}
