/* QUANTUM21 explorer: the wallet's palette and type. Bold element: the band of newest blocks,
   gold-numbered tiles on navy lattice; a new tile slides in when a block is finalized. */
@import url(fonts.css);

:root {
  --fog: #E9EDF3; --paper: #FFFFFF; --ink: #13213C; --muted: #5A6880; --line: #D3DAE5;
  --navy: #0F2246; --gold: #CFA93A; --gold-pale: #EADBA8; --good: #1D7651; --bad: #B3261E;
  --step--1: 0.875rem; --step-0: 1rem; --step-1: 1.2rem; --step-2: 1.6rem;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--fog); color: var(--ink); font: 400 var(--step-0)/1.55 "Golos", system-ui, sans-serif; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--navy); text-underline-offset: 0.15em; }
a:hover { color: #2a4a8a; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.mono { font-variant-numeric: tabular-nums; }
.wrapall { overflow-wrap: anywhere; word-break: break-all; }
.err { color: var(--bad); }

/* header */
.top { background: var(--navy); color: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; flex-wrap: wrap; }
.mark { font: 600 1.35rem/1 "Fraunces", Georgia, serif; color: #fff; text-decoration: none; }
.mark span { color: var(--gold); }
.mark small { font: 400 var(--step--1)/1 "Golos", system-ui, sans-serif; color: rgb(234 219 168 / 0.8); margin-left: 0.4rem; }
.search { display: flex; gap: 0.5rem; flex: 1 1 22rem; max-width: 34rem; }
.search input {
  flex: 1; min-width: 0; font: inherit; padding: 0.6rem 0.8rem; border-radius: 10px;
  border: 1.5px solid rgb(255 255 255 / 0.25); background: rgb(255 255 255 / 0.08); color: #fff;
}
.search input::placeholder { color: rgb(255 255 255 / 0.6); }
.search input:focus { outline: none; border-color: var(--gold); }
.btn { font: 500 var(--step-0)/1 "Golos", system-ui, sans-serif; padding: 0.6rem 1rem; border-radius: 10px; border: 0; background: var(--gold); color: var(--navy); cursor: pointer; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }

/* the chain band */
.chainband {
  background-color: var(--navy);
  background-image: radial-gradient(circle at center, rgb(207 169 58 / 0.28) 1.1px, transparent 1.6px),
    radial-gradient(circle at center, rgb(207 169 58 / 0.28) 1.1px, transparent 1.6px);
  background-size: 22px 22px; background-position: 0 0, 11px 11px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}
.chain { list-style: none; margin: 0; padding: 1rem 0 1.25rem; display: flex; gap: 0.6rem; overflow: hidden; }
.tile {
  flex: 0 0 auto; min-width: 6.5rem; padding: 0.7rem 0.8rem; border-radius: 10px;
  background: rgb(15 34 70 / 0.92); border: 1px solid rgb(207 169 58 / 0.45);
  display: flex; flex-direction: column; gap: 0.15rem; position: relative;
}
.tile:not(:last-child)::after { /* the link to the previous block */
  content: ""; position: absolute; right: -0.65rem; top: 50%; width: 0.6rem; height: 1px; background: rgb(207 169 58 / 0.6);
}
.tile a { font: 500 1.35rem/1.1 "Fraunces", Georgia, serif; color: var(--gold-pale); text-decoration: none; font-variant-numeric: lining-nums tabular-nums; }
.tile a:hover { color: #fff; }
.tile-txs { font-size: 0.75rem; color: rgb(234 219 168 / 0.75); min-height: 1.1em; }
@media (prefers-reduced-motion: no-preference) {
  .tile.new { animation: arrive 600ms ease-out; }
  @keyframes arrive { from { transform: translateX(-1.5rem); opacity: 0; border-color: var(--gold); } to { transform: none; opacity: 1; } }
}

/* content */
main.wrap { padding-top: 1.75rem; padding-bottom: 2rem; min-height: 50vh; }
main:focus { outline: none; }
h1 { font: 600 var(--step-2)/1.2 "Golos", system-ui, sans-serif; margin: 0 0 1rem; }
h2 { font: 600 var(--step-1)/1.3 "Golos", system-ui, sans-serif; margin: 1.75rem 0 0.75rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.25rem 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 0.1rem; }
.stat-l { font-size: var(--step--1); color: var(--muted); }
.stat-v { font: 500 1.6rem/1.2 "Fraunces", Georgia, serif; font-variant-numeric: lining-nums tabular-nums; color: var(--navy); }
.stat-n { font-size: 0.8rem; color: var(--muted); }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; gap: 0; } }

table.grid { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.grid th { text-align: left; font-weight: 500; font-size: var(--step--1); color: var(--muted); padding: 0 0.5rem 0.5rem 0; border-bottom: 1px solid var(--line); }
.grid td { padding: 0.55rem 0.5rem 0.55rem 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid th.num, .grid td.num { text-align: right; }
@media (max-width: 560px) { .grid th:nth-child(4), .grid td:nth-child(4), .grid th:nth-child(5), .grid td:nth-child(5) { display: none; } }

.vals { list-style: none; padding: 0; margin: 0; }
.vals li { display: grid; grid-template-columns: 7.5rem 1fr auto 3.6rem; align-items: center; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.bar { height: 0.5rem; background: var(--line); border-radius: 999px; overflow: hidden; }
.fill { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.note { font-size: var(--step--1); color: var(--muted); }
.pager { display: flex; gap: 1.5rem; margin-top: 1rem; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0 0 1rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 0.1rem; } .kv dd { margin-bottom: 0.6rem; } }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.hist li { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; }
.in { color: var(--good); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: start; }
.arrow { font-size: 1.6rem; color: var(--gold); padding-top: 3.2rem; }
@media (max-width: 720px) { .flow { grid-template-columns: 1fr; } .arrow { padding: 0; transform: rotate(90deg); justify-self: start; } }
.coins { list-style: none; padding: 0; margin: 0; }
.coins li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.coins li .small { flex-basis: 100%; }
.addrline { background: var(--paper); border-radius: 10px; padding: 0.75rem; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; padding-bottom: 2rem; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
.foot-links { display: inline-flex; gap: 1.25rem; }
