/* Zecnero explorer.
 *
 * The design bundle's artboards were fixed-width: 1440 px pages with 80 px gutters and every
 * value written as an inline style. The tokens below are those values, unchanged. What is new is
 * that they are declared once and stepped down at four widths — 1440, 1024, 768 and 390 — so the
 * page reads on a phone. An inline style cannot be overridden by a media query, which is why the
 * layout moved into this file.
 */

:root {
  --accent: #f26822;
  --accent-hover: #ff8a4c;
  --ink: #1a1a1a;
  --bg: #1f1f1f;
  --bg-sunken: #181818;
  --bg-raised: #262626;
  --bg-input: #111111;
  --bg-footer: #141414;
  --bg-button: #3a3a3a;
  --bg-button-off: #2a2a2a;
  --line: #333333;
  --line-strong: #3a3a3a;
  --line-chip: #5a5a5a;
  --line-tag: #4d4d4d;
  --text: #f2f2f2;
  --text-bright: #ffffff;
  --text-strong: #d9d9d9;
  --text-dim: #a6a6a6;
  --text-dimmer: #8c8c8c;
  --text-hidden: #6a6a6a;
  --display: "Chakra Petch", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --gutter: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input::placeholder {
  color: var(--text-dimmer);
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* The page shell. The artboard was 1440 wide; here that is a maximum, not a width. */
.page {
  width: 100%;
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.gut {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header */
.site-head {
  min-height: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-coin {
  width: 40px;
  height: 40px;
  display: block;
}

.brand-word {
  height: 22px;
  width: 145px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--text-strong);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
  padding: 10px 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  background: var(--accent);
  color: var(--ink);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.cta:hover {
  color: var(--ink);
}

/* Hero, with the seam drawn across its right edge. */
.hero {
  position: relative;
  flex-shrink: 0;
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.seam {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 280px;
  pointer-events: none;
}

.hero > *:not(.seam) {
  position: relative;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

h1.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.05;
  color: var(--text-bright);
}

h1.title .accent {
  color: var(--accent);
}

h1.title.big {
  font-size: 64px;
}

.tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-strong);
  border: 1px solid var(--line-tag);
  padding: 5px 10px;
  text-transform: uppercase;
}

.tag.filled {
  font-size: 13px;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--ink);
  border: none;
  padding: 6px 12px;
}

/* Search */
.search {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1000px;
}

.search input {
  flex-grow: 1;
  min-width: 0;
  height: 64px;
  padding: 0 24px;
  background: var(--bg-input);
  border: 1px solid var(--line-tag);
  border-right: none;
  color: var(--text-bright);
  font-family: var(--mono);
  font-size: 16px;
  outline-offset: -2px;
}

.search button {
  flex-shrink: 0;
  height: 64px;
  padding: 0 36px;
  background: var(--accent);
  color: var(--ink);
  border: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.search-error {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
}

/* Stat tiles */
.stats {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.stat:first-child {
  padding-left: var(--gutter);
}

.stat:last-child {
  padding-right: var(--gutter);
  border-right: none;
}

.stat-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 38px;
  color: var(--text-bright);
  overflow-wrap: anywhere;
}

.stat-value.accent {
  color: var(--accent);
}

.stat-unit {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.stat-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dimmer);
  overflow-wrap: anywhere;
}

abbr.help {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  margin-left: 4px;
  border: 1px solid var(--line-chip);
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  cursor: help;
}

.addr {
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* API documentation */
.doc h2 {
  margin-top: 48px;
}

.doc p,
.doc li {
  color: var(--text-strong);
  line-height: 1.6;
}

.doc code,
.doc pre {
  font-family: var(--mono);
  font-size: 14px;
}

.doc pre {
  background: var(--bg-input);
  border: 1px solid var(--line);
  padding: 16px;
  overflow-x: auto;
  color: var(--text);
}

/* Body */
.body {
  flex-grow: 1;
  padding-top: 80px;
  padding-bottom: 96px;
}

.body.detail {
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

h2.section {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  color: var(--text-bright);
}

.more {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.note {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* Tables. Each is a grid whose columns are declared once, on the table. */
.table {
  border: 1px solid var(--line-strong);
}

.table-head,
.row {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 12px;
  align-items: center;
}

.table-head {
  padding: 14px 20px;
  background: var(--bg-raised);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.row {
  min-height: 56px;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-strong);
}

a.row:hover {
  background: var(--bg-raised);
  color: var(--text-strong);
}

.row .height {
  color: var(--accent);
}

.row .dim {
  color: var(--text-dim);
}

.row .bright,
.table-head .num,
.row .num {
  text-align: right;
}

.row .bright {
  color: var(--text-bright);
}

.cell {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cols-blocks {
  --cols: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 0.5fr) minmax(0, 1.4fr);
}

.cols-txs {
  --cols: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.cols-blocktxs {
  --cols: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.cols-io {
  --cols: minmax(0, 2fr) minmax(0, 1fr);
}

/* Chips. Filled orange means shielded; outlined means everything else. */
.chip {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--ink);
}

.chip.open {
  padding: 3px 9px;
  background: none;
  border: 1px solid var(--line-chip);
  color: var(--text-strong);
}

/* Key/value facts grid */
.facts {
  border: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.fact:nth-child(2n),
.fact:last-child {
  border-right: none;
}

.fact.wide {
  grid-column: span 2;
}

.fact-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.fact-value {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--text-bright);
  overflow-wrap: anywhere;
}

.fact-value.accent {
  color: var(--accent);
}

/* Breadcrumb and the previous/next pair */
.crumbs {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.step a,
.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 22px;
  background: var(--bg-button);
  color: var(--text-bright);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.step span {
  background: var(--bg-button-off);
  color: var(--text-dimmer);
}

.txid {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

/* Transaction tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.tile-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.tile-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  color: var(--text-bright);
  overflow-wrap: anywhere;
}

/* The shielded flow: from, the pool arrow, to */
.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.flow-side {
  flex: 1;
  min-width: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.flow-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  color: var(--text-hidden);
}

.flow-note {
  font-size: 14px;
  color: var(--text-dim);
}

.flow-arrow {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--ink);
  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
}

.flow-arrow .pool {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.flow-arrow .count {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}

/* Key/value list */
.kv {
  border: 1px solid var(--line-strong);
}

.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.kv-row:last-child {
  border-bottom: none;
}

.kv-row .k {
  color: var(--text-strong);
}

.kv-row .v {
  font-family: var(--mono);
  color: var(--text-bright);
  text-align: right;
  overflow-wrap: anywhere;
}

.kv-row .v.hidden-value {
  color: var(--text-hidden);
}

.kv-row .v.accent {
  color: var(--accent);
}

/* Footer */
.site-foot {
  min-height: 120px;
  flex-shrink: 0;
  padding-top: 24px;
  padding-bottom: 24px;
  background: var(--bg-footer);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-foot .disclaimer {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-dim);
}

.site-foot img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.foot-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 15px;
}

.foot-nav a {
  color: var(--text-strong);
}

/* 1024: the gutter halves, the stat row splits in two, the tiles go to two across. */
@media (max-width: 1100px) {
  :root {
    --gutter: 40px;
  }

  h1.title {
    font-size: 44px;
  }

  h1.title.big {
    font-size: 48px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(2n) {
    border-right: none;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(2n + 1) {
    padding-left: var(--gutter);
  }

  .stat:nth-child(2n) {
    padding-right: var(--gutter);
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .body {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .body.detail {
    gap: 48px;
  }
}

/* 768: one column throughout, and the shielded flow stacks. */
@media (max-width: 860px) {
  :root {
    --gutter: 24px;
  }

  .site-nav {
    gap: 24px;
    font-size: 14px;
    width: 100%;
  }

  h1.title,
  h1.title.big {
    font-size: 36px;
  }

  .two-up {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact {
    border-right: none;
  }

  .fact.wide {
    grid-column: span 1;
  }

  .stat-value {
    font-size: 30px;
  }

  .flow {
    flex-direction: column;
  }

  .flow-arrow {
    width: 100%;
    padding: 18px 0;
    flex-direction: row;
    gap: 16px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
  }

  .cols-blocks {
    --cols: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.5fr) minmax(0, 1.2fr);
  }
}

/* 390: the gutter is 16 px, the tables drop their least useful column, the search stacks. */
@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }

  .site-head {
    min-height: 0;
  }

  .site-nav {
    gap: 16px;
    font-size: 13px;
  }

  h1.title,
  h1.title.big {
    font-size: 30px;
  }

  .search {
    flex-direction: column;
  }

  .search input {
    border-right: 1px solid var(--line-tag);
    height: 56px;
    font-size: 15px;
  }

  .search button {
    height: 56px;
    clip-path: none;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat {
    padding: 20px var(--gutter);
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .stat-value {
    font-size: 26px;
  }

  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .table-head,
  .row {
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
    font-size: 13px;
  }

  .table-head {
    font-size: 11px;
  }

  .drop-narrow {
    display: none;
  }

  .cols-blocks {
    --cols: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.5fr);
  }

  .cols-blocktxs {
    --cols: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .fact {
    padding: 18px var(--gutter);
  }

  .flow-side,
  .tile {
    padding: 20px;
  }

  .kv-row {
    flex-direction: column;
    gap: 6px;
  }

  .kv-row .v {
    text-align: left;
  }

  h2.section {
    font-size: 24px;
  }

  .site-foot {
    justify-content: flex-start;
  }
}
