/* Explorer detail pages — Polygonscan-like overview cards */
a.block-row {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.ex-page { max-width: 960px; margin: 0 auto; }
.ex-kicker {
  font-family: var(--mono, "Roboto Mono", ui-monospace, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 0 0 0.35rem;
}
.ex-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  word-break: break-word;
}
.ex-sub {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  opacity: 0.8;
}
.ex-card {
  border: 1px solid color-mix(in srgb, var(--line, var(--border, #2a3b52)) 80%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel, transparent) 92%, transparent);
  padding: 0.15rem 0;
  margin: 0 0 1rem;
  overflow: hidden;
}
.ex-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 11.5rem) minmax(0, 1fr);
  gap: 0.65rem 1rem;
  padding: 0.72rem 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--line, var(--border, #2a3b52)) 45%, transparent);
  align-items: start;
  font-size: 0.92rem;
}
.ex-row:first-child { border-top: 0; }
.ex-row .k {
  opacity: 0.72;
  padding-top: 0.12rem;
}
.ex-row .v {
  min-width: 0;
  word-break: break-word;
}
.ex-mono {
  font-family: var(--mono, "Roboto Mono", ui-monospace, monospace);
  font-size: 0.86rem;
}
.ex-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
.ex-badge--ok {
  color: #0a7a58;
  background: color-mix(in srgb, #0f9f74 16%, transparent);
  border-color: color-mix(in srgb, #0f9f74 35%, transparent);
}
.ex-badge--bad {
  color: #b42318;
  background: color-mix(in srgb, #d45454 14%, transparent);
  border-color: color-mix(in srgb, #d45454 35%, transparent);
}
.ex-badge--pending {
  color: #9a6700;
  background: color-mix(in srgb, #f5a524 16%, transparent);
  border-color: color-mix(in srgb, #f5a524 40%, transparent);
}
.ex-badge--tag {
  font-weight: 500;
  opacity: 0.9;
  background: color-mix(in srgb, var(--blue, #3d8bfd) 12%, transparent);
  border-color: color-mix(in srgb, var(--blue, #3d8bfd) 30%, transparent);
  color: var(--blue-dark, var(--blue, #3d8bfd));
}
html[data-theme="dark"] .ex-badge--ok { color: #6ee7b7; }
html[data-theme="dark"] .ex-badge--bad { color: #fca5a5; }
html[data-theme="dark"] .ex-badge--pending { color: #fcd34d; }

.ex-copy {
  margin-left: 0.35rem;
  font-size: 0.72rem;
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--line, var(--border, #2a3b52)) 70%, transparent);
  background: transparent;
  color: inherit;
  cursor: pointer;
  vertical-align: middle;
}
.ex-copy:hover { border-color: var(--blue, #3d8bfd); color: var(--blue, #3d8bfd); }

.ex-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}
.ex-arrow { opacity: 0.45; font-family: var(--mono, monospace); }

.ex-input {
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: var(--readonly, color-mix(in srgb, #000 4%, transparent));
  border: 1px solid color-mix(in srgb, var(--line, var(--border, #2a3b52)) 60%, transparent);
  border-radius: 10px;
  max-height: 220px;
  overflow: auto;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-all;
}
.ex-logs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.ex-logs th,
.ex-logs td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-top: 1px solid color-mix(in srgb, var(--line, var(--border, #2a3b52)) 40%, transparent);
  vertical-align: top;
}
.ex-logs th { opacity: 0.7; font-weight: 500; }
.ex-muted { opacity: 0.72; }
.ex-err {
  color: var(--bad, #d45454);
  padding: 1rem 1.1rem;
}
.ex-loading { padding: 1rem 1.1rem; opacity: 0.75; }

.ex-search {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 1.1rem;
}
.ex-search input {
  flex: 1 1 16rem;
  min-width: 0;
  font-family: var(--mono, "Roboto Mono", monospace);
}

.ex-tx-list { display: grid; gap: 0.35rem; }
.ex-tx-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem 0.75rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--line, var(--border, #2a3b52)) 55%, transparent);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}
.ex-tx-item:hover { border-color: var(--blue, #3d8bfd); }
.ex-tx-item .i { opacity: 0.55; font-family: var(--mono, monospace); font-size: 0.8rem; }
.ex-note {
  font-size: 0.88rem;
  opacity: 0.8;
  margin: 0.75rem 0 0;
}

/* Inline overview on home explorer */
.ex-home-card .ex-row { padding-left: 0; padding-right: 0; }
.lookup-out:empty { display: none; }
.lookup-out.has-ex { max-height: none; background: transparent; border: 0; padding: 0; }

@media (max-width: 640px) {
  .ex-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .ex-row .k { padding-top: 0; font-size: 0.8rem; }
}
