/* Ledger additions: burn tracker + holder-rewards pointer (Kinetic Mono). Loaded only by /ledger, after motion.css.
   Uses the theme variables from motion.css (--line, --surface, --text, --muted, --accent-text), so it follows
   dark/light automatically. No animation. */

.lx-sec .section-head {
  margin-bottom: clamp(20px, 3vw, 32px);
}
.lx-sec .slate {
  align-items: center;
}

/* status badge: dashed like .placeholder while proposed; solid Volt edge once live */
.lx-status {
  display: inline-block;
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  padding: 3px 8px;
  border-radius: var(--radius);
  max-width: 100%;
  white-space: normal;
}
.lx-status .placeholder {
  border: 0;
  padding: 0;
  white-space: normal;
}
.lx-status.is-live {
  color: var(--text);
  border: 1px solid var(--accent-border);
}
.lx-status.is-live::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

/* stat strip: hairline grid (1px gaps over the line colour) */
.lx-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.lx-stat {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 18px 16px;
  background: var(--bg);
}
.lx-stat-lead {
  grid-column: 1 / -1;
  background: var(--surface);
}
@media (min-width: 760px) {
  .lx-stats {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  }
  .lx-stat-lead {
    grid-column: auto;
  }
  .lx-stat {
    padding: 22px 24px;
  }
}
/* speed dashes before the lead label (the mark's motif, drawn in CSS) */
.lx-stat-lead > .label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 7px;
  margin-right: 10px;
  vertical-align: 1px;
  background:
    linear-gradient(var(--accent-text), var(--accent-text)) 0 0 / 22px 1px no-repeat,
    linear-gradient(var(--accent-text), var(--accent-text)) 6px 3px / 16px 1px no-repeat,
    linear-gradient(var(--accent-text), var(--accent-text)) 12px 6px / 10px 1px no-repeat;
  opacity: 0.9;
}
.lx-num {
  font: 700 clamp(1.5rem, 4.2vw, 2.25rem) / 1.05 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  overflow-wrap: anywhere;
}
.lx-stat-lead .lx-num {
  font-size: clamp(2rem, 6.4vw, 3.25rem);
  color: var(--accent-text);
}
.lx-num.is-empty,
.lx-stat-lead .lx-num.is-empty {
  color: var(--muted);
}
.lx-sub {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.lx-wallet {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 16px 0 20px;
  font-size: 0.875rem;
  min-width: 0;
}
.lx-wallet .addr,
.lx-wallet > span:last-child {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
  min-width: 0;
}

/* tables */
.lx-table td .lx-meta {
  display: block;
  margin-top: 4px;
  font: 400 0.75rem/1.35 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: normal;
}
.lx-table td.lx-strong {
  color: var(--text);
  font-weight: 700;
}
.lx-txs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font: 400 0.8125rem/1.35 var(--font-mono);
  white-space: nowrap;
}
.lx-more summary {
  cursor: pointer;
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  list-style-position: inside;
}
.lx-more[open] summary {
  margin-bottom: 6px;
}
.lx-more summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* rules */
.lx-rules {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: 28px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.lx-rules > div {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 16px;
  background: var(--bg);
  min-width: 0;
}
.lx-rules dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: anywhere;
}
.lx-rules dd::first-letter {
  text-transform: uppercase;
}
@media (min-width: 760px) {
  .lx-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lx-rules > div {
    padding: 16px 20px;
  }
}
@media (min-width: 1100px) {
  .lx-rules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* narrow screens: each burn row becomes a labelled card, so no column hides off-screen */
@media (max-width: 639px) {
  .lx-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .lx-table,
  .lx-table tbody,
  .lx-table tr {
    display: block;
    width: 100%;
  }
  .lx-table tr + tr {
    border-top: 1px solid var(--line);
  }
  .lx-table tr {
    padding: 10px 16px 12px;
  }
  .lx-table td[data-label] {
    display: grid;
    grid-template-columns: 9.25rem minmax(0, 1fr);
    gap: 12px;
    padding: 6px 0;
    border-top: 0;
    white-space: normal;
  }
  .lx-table td[data-label]::before {
    content: attr(data-label);
    font: 500 0.6875rem/1.6 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
  }
  .lx-table td[data-label] > * {
    grid-column: 2;
  }
  .lx-table td.empty {
    display: block;
    border-top: 0;
    padding: 18px 0 14px;
  }
}

/* holder rewards: paid by the launchpad; one pointer, no numbers of ours */
.lx-rewards .section-head {
  margin-bottom: 16px;
}
