:root {
  color-scheme: light;
  --bg: #faf9f4;
  --panel: #fffefa;
  --line: #d6dacf;
  --text: #242b27;
  --muted: #526058;
  --accent: #145b54;
  --nav: #18423d;
  --nav-current: #29615a;
  --rule: #326a60;
  --heading: Georgia, "Times New Roman", serif;
  --mono: Consolas, "Liberation Mono", monospace;
  --page-width: 72rem;
}

*, *::before, *::after { box-sizing: border-box }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 15px/1.55 system-ui, sans-serif }
a { color: var(--accent); text-underline-offset: .19em }
a:hover { color: #103d39 }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--rule); outline-offset: 3px }
h1, h2, h3, dl, p { margin: 0 }
h1, h2, h3 { line-height: 1.22 }
h1, h2 { font-family: var(--heading) }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700 }
h2 { font-size: 1.45rem; font-weight: 700 }
h3 { font-size: .89rem; font-weight: 680 }
p, dt, label { color: var(--muted) }

.explorer-header {
  position: relative;
  border-top: 3px solid var(--nav);
  background: var(--panel);
}
.explorer-header::before {
  position: absolute;
  inset: auto 0 0;
  height: 2.8rem;
  background: var(--nav);
  content: "";
}
.header-inner, .frame { width: min(var(--page-width), calc(100% - 3rem)); margin-inline: auto }
.header-inner {
  position: relative;
  display: grid;
  grid-template: "masthead language" 4.4rem "navigation navigation" auto / minmax(0, 1fr) auto;
  align-items: center;
}
.identity {
  grid-area: masthead;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  font: 700 1.65rem/1 var(--heading);
  text-decoration: none;
}
.identity img { display: block; border-radius: 4px }
.header-inner .language-picker { grid-area: language; justify-self: end }
.header-inner .language-picker summary:hover { background: #eef2e9 }
.header-inner nav {
  grid-area: navigation;
  display: flex;
  flex-wrap: wrap;
  min-height: 2.8rem;
  background: var(--nav);
}
.header-inner nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding-inline: 1.15rem;
  border-inline-end: 1px solid #47726a;
  border-block-end: 3px solid transparent;
  color: #f3f8f4;
  font-size: .89rem;
  text-decoration: none;
}
.header-inner nav a:first-child { border-inline-start: 1px solid #47726a }
.header-inner nav a:hover, .header-inner nav a[aria-current] { background: var(--nav-current) }
.header-inner nav a[aria-current] { border-block-end-color: #edb875 }
.header-inner nav a:focus-visible { outline-color: #ffdbc0; outline-offset: -4px }

.frame { padding-block: 1.9rem 3rem }
.frame:has(> .trends) {
  --sidebar: clamp(16rem, 28%, 20rem);
  --column-gap: 1.6rem;
  display: flow-root;
}
.title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 1.8rem;
  margin-bottom: 1.3rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.title > div:has(> .network-state) { display: none }

.search {
  --search-tab: 2.65rem;
  display: flex;
  width: var(--search-tab);
  max-width: 100%;
  height: var(--search-tab);
  margin: 1rem 0 1.2rem;
  overflow: hidden;
  overflow: clip;
  transition: width .22s ease-out;
}
.title .search { margin: 0 }
.search:is(:hover, :focus-within) { width: 100% }
.search label {
  position: relative;
  flex: 0 0 var(--search-tab);
  align-self: stretch;
  border: 1px solid #aebcaf;
  background: var(--panel);
  color: var(--accent);
  font-size: 0;
  cursor: text;
}
.search:is(:hover, :focus-within) label { background: #eff3eb }
.search label::before,
.search label::after { position: absolute; content: "" }
.search label::before { inset: .72rem auto auto .72rem; width: .8rem; height: .8rem; border: 2px solid currentColor; border-radius: 50% }
.search label::after { inset: 1.44rem auto auto 1.34rem; width: .46rem; height: 2px; background: currentColor; transform: rotate(45deg) }
.search > div { display: flex; flex: 1; min-width: 0; opacity: 0 }
.search:is(:hover, :focus-within) > div { opacity: 1 }
.search :is(input, button) { min-width: 0; padding: .5rem .65rem; border: 1px solid #aebcaf; font: inherit }
.search input { flex: 1; border-inline-start: 0; background: var(--panel); color: var(--text) }
.search input::placeholder { color: #59665e; opacity: 1 }
.search input:focus { outline-offset: -2px }
.search button { cursor: pointer; background: var(--nav); border-color: var(--nav); color: #fff; font-weight: 630 }
.search button:hover { background: var(--nav-current) }

.frame:has(> .trends) > :is(.metrics, .trends) { float: right; clear: right; width: var(--sidebar) }
.frame:has(> .trends) > :is(.section-bar, .table) { width: calc(100% - var(--sidebar) - var(--column-gap)) }
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--rule);
  background: #eff3eb;
}
.metrics > div { min-width: 0; padding: .48rem .7rem .55rem; border-bottom: 1px solid var(--line) }
.metrics > div:nth-child(even) { border-inline-start: 1px solid var(--line) }
.metrics dd { margin-top: .12rem; font: 700 1.04rem/1.3 var(--mono) }
dt { font-size: .8rem }
dd { margin: 0; overflow-wrap: anywhere }

.section-bar { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin: 0 0 .52rem }
.section-bar :is(p, a) { font-size: .81rem }
.section-bar strong { color: var(--text) }
.frame:has(> .trends) > .section-bar { padding-top: .08rem }
.trends { margin-top: 1.35rem }
.trends .section-bar { display: block; margin-bottom: .48rem }
.trends .section-bar p { margin-top: .18rem }
.charts { border-top: 2px solid var(--rule) }
.chart {
  --plot: #216f65;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .4rem .65rem;
  padding-block: .58rem .68rem;
  border-bottom: 1px solid var(--line);
}
.chart-blockInterval { --plot: #3b627e }
.chart-transactionsPerBlock { --plot: #92602d }
.chart-value { color: var(--text); font: 700 .95rem/1.26 var(--mono); text-align: end; white-space: nowrap }
.chart-value span { display: block; margin-top: .16rem; color: var(--muted); font: 400 .67rem/1.2 system-ui, sans-serif }
.chart-plot, .chart-caption, .chart-empty { grid-column: 1 / -1 }
.chart-plot { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem; align-items: stretch }
.chart-axis { display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); text-align: end; font: .67rem/1 var(--mono) }
.chart-plot svg { display: block; width: 100%; height: 4rem; overflow: hidden }
.chart-grid, .chart-line, .chart-target { fill: none }
.chart-grid { stroke: var(--line); stroke-width: 1 }
.chart-fill { fill: var(--plot); opacity: .14 }
.chart-line { stroke: var(--plot); stroke-width: 1.6; stroke-linejoin: round }
.chart-bar { fill: var(--plot); opacity: .8 }
.chart-target { stroke: var(--plot); stroke-width: 1; stroke-dasharray: 4 4 }
.chart-hit { fill: transparent }
.chart-hit:hover { fill: var(--plot); fill-opacity: .12 }
.chart-caption { display: flex; justify-content: space-between; gap: .2rem .6rem; flex-wrap: wrap; color: var(--muted); font: .69rem/1.25 var(--mono) }
.chart-reference { color: var(--plot) }
.chart-reference::before { content: ""; display: inline-block; width: .65rem; margin-inline-end: .22rem; vertical-align: .24em; border-top: 1px dashed currentColor }
.chart-empty { font-size: .8rem }

.table, .explorer-fund .table-wrap { overflow-x: auto; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--line); background: var(--panel) }
table { width: 100%; min-width: 32rem; border-collapse: collapse }
thead { background: #e8eee5 }
th, td { padding: .58rem .66rem; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap }
th { color: #35483e; font-size: .8rem; font-weight: 680 }
td { font-size: .84rem; font-variant-numeric: tabular-nums }
tbody tr:nth-child(even) { background: #f4f6ef }
tbody tr:hover { background: #edf1e7 }
tbody tr:last-child td { border-bottom: 0 }
.hash, code { font-family: var(--mono); overflow-wrap: anywhere }

.pagination { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem }
.pagination:not(:empty) { margin-top: .8rem }
.pagination a { font-size: .86rem }
.detail { margin: 1rem 0 1.4rem; border-block-start: 2px solid var(--rule); background: var(--panel) }
.detail > div { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: .2rem .65rem; padding: .55rem .7rem; border-bottom: 1px solid var(--line) }
.detail > div:nth-child(odd) { background: #f0f3eb }
.tx-list { margin-block: .6rem; padding-inline-start: 1.2rem }
.tx-list li { margin-block: .2rem; overflow-wrap: anywhere }
.frame > p { margin-block: .55rem }
.frame > p + .table { margin-top: .8rem }

.explorer-fund { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 1rem }
.explorer-fund > section[hidden] { display: none }
.explorer-fund .fund-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem 1.2rem; padding: .8rem; border-top: 2px solid var(--rule); background: #eff3eb }
.explorer-fund .fund-amount { margin: .3rem 0; color: var(--text); font-family: var(--mono); overflow-wrap: anywhere }
.explorer-fund .fund-amount strong { font-size: 1.3rem }
.explorer-fund .fund-totals > div { display: flex; justify-content: space-between; gap: .3rem .75rem; padding: .2rem 0 }
.explorer-fund .fund-totals dd { text-align: end; font-family: var(--mono) }
.explorer-fund .fund-address { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: .5rem }
.explorer-fund .fund-address h3 { margin: 0 0 .25rem }
.explorer-fund .table-wrap { margin-top: .56rem }
.explorer-fund #fund-receipts table { min-width: 0 }
.explorer-fund tbody td { white-space: normal }

@media (max-width: 50rem) {
  .header-inner, .frame { width: calc(100% - 1.75rem) }
  .frame:has(> .trends) { display: grid; grid-template-columns: minmax(0, 1fr) }
  .frame:has(> .trends) > :is(.metrics, .trends, .section-bar, .table) { float: none; width: 100%; min-width: 0 }
  .frame:has(> .trends) > .trends { order: 1; margin-top: 1.4rem }
  .frame:has(> .trends) > .section-bar { margin-top: 1.05rem }
  .header-inner nav a { padding-inline: clamp(.48rem, 2.4vw, .85rem) }
}
@media (max-width: 31rem) {
  .header-inner { grid-template-rows: 3.7rem auto }
  .frame { padding-top: 1.3rem }
  .metrics > div { padding-inline: .55rem }
  .detail > div, .explorer-fund .fund-overview { grid-template-columns: minmax(0, 1fr) }
}

@media (prefers-reduced-motion: reduce) {
  .search { transition: none }
}
