.explorer-page {
  padding-top: 28px;
}

.explorer-hero {
  padding: 76px 0 54px;
  border-bottom: 1px solid var(--line);
}

.explorer-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 75%, transparent);
}

.explorer-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(230px, 0.55fr);
  gap: 54px;
  align-items: end;
}

.explorer-hero h1 {
  max-width: 980px;
  margin: 18px 0 24px;
  font-size: clamp(54px, 8.2vw, 104px);
}

.explorer-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.price-lockup {
  padding: 0 0 10px 28px;
  border-left: 1px solid var(--line);
}

.price-lockup span,
.price-lockup strong,
.price-lockup small {
  display: block;
}

.price-lockup span {
  color: var(--muted);
  font:
    800 10px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: 0.12em;
}

.price-lockup strong {
  margin: 10px 0 8px;
  color: var(--text);
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.055em;
}

.price-lockup small {
  color: var(--muted);
  font-size: 11px;
}

.address-search {
  max-width: 810px;
  margin-top: 44px;
}

.address-search label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.address-search > div {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--line);
}

.address-search input,
.address-search button {
  min-height: 54px;
  border: 0;
  background: transparent;
}

.address-search input {
  min-width: 0;
  padding: 0 14px 0 0;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  outline: none;
}

.address-search button {
  padding: 0 4px 0 22px;
  color: var(--accent);
  font-weight: 850;
  cursor: pointer;
}

#addressSearchError {
  min-height: 18px;
  margin: 8px 0 0;
  color: #bd744b;
  font-size: 11px;
}

.market-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.market-metrics article {
  min-width: 0;
  padding: 24px 20px;
}

.market-metrics article:nth-child(4n + 1) {
  padding-left: 0;
}

.market-metrics article + article {
  border-left: 1px solid var(--line);
}

.market-metrics article:nth-child(4n + 1) {
  border-left: 0;
}

.market-metrics article:nth-child(n + 5) {
  border-top: 1px solid var(--line);
}

.market-metrics span,
.market-metrics strong {
  display: block;
}

.market-metrics strong.positive {
  color: var(--accent);
}

.market-metrics strong.negative {
  color: #d47c65;
}

.market-metrics span,
.cobra-metric-grid span {
  color: var(--muted);
  font:
    800 9px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: 0.1em;
}

.market-metrics strong {
  margin-top: 9px;
  color: var(--accent2);
  font-size: clamp(18px, 2.2vw, 27px);
  letter-spacing: -0.035em;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 54px 0;
}

.chart-panel {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.chart-heading span {
  color: var(--muted);
  font:
    800 9px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: 0.12em;
}

.chart-heading h2 {
  margin: 7px 0 0;
  font-size: 21px;
}

.chart-heading > strong {
  color: var(--accent);
  font-size: 14px;
  white-space: nowrap;
}

.chart-frame {
  min-height: 235px;
}

.chart-frame svg {
  display: block;
  width: 100%;
  height: 235px;
  overflow: visible;
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.chart-area {
  fill: color-mix(in srgb, var(--accent) 12%, transparent);
}

.chart-baseline {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-hit {
  fill: transparent;
  pointer-events: all;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}

.chart-loading {
  display: grid;
  min-height: 235px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.network-streams,
.cobra-metrics,
.ecosystem-links {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.stream-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.stream-heading p {
  max-width: 420px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stream-panel {
  min-width: 0;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.stream-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
}

.stream-panel-head h3 {
  margin: 0;
  font-size: 17px;
}

.stream-panel-head span {
  color: var(--accent);
  font:
    800 9px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: 0.1em;
}

.stream-list .chart-loading {
  min-height: 260px;
}

.stream-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.stream-row:last-child {
  border-bottom: 0;
}

.stream-row strong,
.stream-row small,
.stream-row > span {
  display: block;
}

.stream-row strong {
  overflow: hidden;
  font:
    750 12px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-row small,
.stream-row > span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.stream-row small {
  margin-top: 5px;
}

.stream-row > span {
  text-align: right;
}

.section-heading h2 {
  margin: 10px 0 30px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.cobra-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cobra-metric-grid article {
  min-width: 0;
  padding: 24px;
}

.cobra-metric-grid article:first-child {
  padding-left: 0;
}

.cobra-metric-grid article + article {
  border-left: 1px solid var(--line);
}

.cobra-metric-grid strong {
  display: block;
  margin-top: 9px;
  color: var(--text);
  font-size: 30px;
  letter-spacing: -0.045em;
}

.local-addresses {
  margin-top: 34px;
}

.local-addresses-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.local-addresses-head h3 {
  margin: 0;
  font-size: 17px;
}

.local-addresses-head a,
.data-credit a {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.address-list {
  border-top: 1px solid var(--line);
}

.address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.address-row strong,
.address-row small {
  display: block;
}

.address-row strong {
  overflow: hidden;
  font:
    700 12px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.address-row a {
  align-self: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.address-empty {
  padding: 32px 0;
  color: var(--muted);
  font-size: 13px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.ecosystem-grid a {
  display: flex;
  min-height: 190px;
  min-width: 0;
  flex-direction: column;
  padding: 23px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.ecosystem-grid a:first-child {
  padding-left: 0;
}

.ecosystem-grid a + a {
  border-left: 1px solid var(--line);
}

.ecosystem-grid span {
  color: var(--accent);
  font:
    800 10px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}

.ecosystem-grid strong {
  margin-top: 24px;
  font-size: 22px;
}

.ecosystem-grid small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.data-credit {
  margin: -34px 0 72px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 980px) {
  .market-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-metrics article,
  .market-metrics article:nth-child(4n + 1) {
    padding-left: 20px;
  }

  .market-metrics article:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }

  .market-metrics article:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .cobra-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cobra-metric-grid article:nth-child(4) {
    border-left: 0;
  }

  .cobra-metric-grid article:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

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

  .ecosystem-grid a:nth-child(3) {
    border-left: 0;
  }

  .ecosystem-grid a:nth-child(3),
  .ecosystem-grid a:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .explorer-page {
    padding-top: 0;
  }

  .explorer-hero {
    padding: 58px 0 42px;
  }

  .explorer-hero-grid,
  .chart-grid,
  .stream-grid {
    grid-template-columns: 1fr;
  }

  .stream-heading {
    display: block;
  }

  .stream-heading p {
    margin: -18px 0 28px;
    text-align: left;
  }

  .price-lockup {
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .address-search > div {
    grid-template-columns: 1fr;
  }

  .address-search button {
    padding: 0;
    text-align: left;
  }

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

  .market-metrics article,
  .market-metrics article:first-child {
    padding: 20px 14px;
  }

  .market-metrics article:nth-child(odd) {
    border-left: 0;
  }

  .market-metrics article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .chart-panel {
    padding: 22px 18px;
  }

  .cobra-metric-grid,
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .cobra-metric-grid article,
  .cobra-metric-grid article:first-child,
  .ecosystem-grid a,
  .ecosystem-grid a:first-child {
    padding: 20px 0;
    border-top: 0;
    border-left: 0;
  }

  .cobra-metric-grid article + article,
  .ecosystem-grid a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .ecosystem-grid a {
    min-height: 142px;
  }

  .address-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
}
