/* Block explorer (/explorer/). On top of tokens.css, chrome.css and site.css. No green, no blue:
   state is shown by words and shape; the one accent is orange (never as text). */
.ex { --ex-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ---------- The band: network, stats strip, search ---------- */
.ex-band { background: var(--card); border-bottom: 1px solid var(--line); padding: 16px 0 18px; }
.ex-band-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 12px; }
.ex-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; color: var(--ink); text-decoration: none; }
.ex-brand:hover { text-decoration: underline; }
.ex-netline { margin: 0; font-size: .875rem; color: var(--dim); }
.ex-netline b { color: var(--warn); font-weight: 700; }

.ex-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
@media (min-width: 760px) { .ex-strip { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr; } }
.ex-cell { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 0; }
.ex-cell-k { display: block; color: var(--dim); font-size: .8125rem; line-height: 1.4; }
.ex-cell-v { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.ex-cell-v a { color: var(--ink); }
.ex-cell-height { grid-column: 1 / -1; border-left: 4px solid var(--orange); }
@media (min-width: 760px) { .ex-cell-height { grid-column: auto; } }
.ex-cell-height .ex-cell-v { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem); letter-spacing: -.02em; line-height: 1.15; }
.ex-cell-net { font-size: 1rem; }

.ex-search-label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.ex-search-row { display: flex; gap: 8px; }
.ex-search input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--dim); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; box-sizing: border-box; }
.ex-search input::placeholder { color: var(--dim); opacity: 1; }
.ex-search input:focus-visible { outline: 3px solid var(--site-focus); outline-offset: 2px; border-color: var(--ink); }
.ex-search .site-btn { min-height: 48px; cursor: pointer; flex: none; }
.ex-search-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; }
.ex-search-foot .ex-help { margin: 0; }
.ex-help { color: var(--dim); font-size: .875rem; margin: 8px 0 0; max-width: 46em; }

/* ---------- Page body ---------- */
.ex-main { padding-top: 22px; padding-bottom: 8px; }
.ex-title { font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); margin: 0 0 4px; overflow-wrap: anywhere; }
.ex-titlebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ex-status { min-height: 1.5em; margin: 4px 0 0; color: var(--dim); font-size: .9375rem; }
.ex-status:empty { min-height: 0; margin: 0; }

.ex-sec { padding: 14px 0 6px; }
.ex-sec h2 { font-size: 1.125rem; margin-bottom: 10px; }
.ex-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.ex-sec-head h2 { margin: 0; }
.site-btn:disabled { opacity: .65; cursor: progress; }
.ex-small-btn { min-height: 36px; padding: 6px 14px; font-size: .9375rem; cursor: pointer; }

/* Home: two columns on wide screens */
.ex-cols { display: grid; gap: 16px; padding-top: 10px; }
@media (min-width: 900px) { .ex-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; } }
.ex-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 10px; min-width: 0; }
.ex-card h2 { font-size: 1.125rem; margin: 0; }
.ex-card-note { color: var(--dim); font-size: .8125rem; margin: 2px 0 8px; }

.ex-feed { list-style: none; margin: 0; padding: 0; }
.ex-feed > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.ex-feed > li:first-child { border-top: 0; }
.ex-feed-icon { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: .75rem; color: var(--dim); }
.ex-feed-icon.is-tx { border-radius: 50%; }
.ex-feed-icon.is-user { border-color: var(--orange); color: var(--ink); }
.ex-feed-main { min-width: 0; display: grid; gap: 1px; }
.ex-feed-main a { font-weight: 600; }
.ex-feed-sub { color: var(--dim); font-size: .875rem; overflow-wrap: anywhere; }
.ex-feed-side { text-align: right; color: var(--dim); font-size: .875rem; white-space: nowrap; }
.ex-feed-side b { display: block; color: var(--ink); font-weight: 600; }
.ex-empty { color: var(--dim); font-size: .9375rem; padding: 10px 0; }
.ex-more { margin: 8px 0 4px; font-size: .9375rem; }

/* Key/value grid for detail pages */
.ex-grid { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
.ex-grid > div { display: grid; gap: 2px 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.ex-grid > div:first-child { border-top: 0; }
@media (min-width: 640px) { .ex-grid > div { grid-template-columns: 13em minmax(0, 1fr); } }
.ex-grid dt { color: var(--dim); font-size: .9375rem; }
.ex-grid dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.ex-hash, .ex-mono { font-family: var(--ex-mono); font-size: .875em; overflow-wrap: anywhere; word-break: break-all; }
code.ex-hash { background: none; border: 0; padding: 0; }
.ex-copy { display: inline-flex; align-items: center; min-height: 26px; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; vertical-align: middle; }
.ex-copy:hover { border-color: var(--ink); }
.ex-copy:focus-visible { outline: 3px solid var(--site-focus); outline-offset: 2px; }

.ex-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: .9375rem; line-height: 1.5; vertical-align: middle; }
.ex-chip:hover { border-color: var(--ink); }
.ex-chip b { font-weight: 600; }
.ex-chip .ex-mono { color: var(--dim); text-decoration: underline; text-decoration-color: var(--orange-text); text-underline-offset: 2px; }
.ex-chiprow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 100%; }
.ex-tag { display: inline-block; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--dim); font-size: .8125rem; font-weight: 600; line-height: 1.6; }
.ex-tag.is-private { border-color: var(--ink); color: var(--ink); }
.ex-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.ex-pager { display: inline-flex; gap: 6px; }
.ex-pager a, .ex-pager span { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border: 1.5px solid var(--ink); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.ex-pager a:hover { background: var(--card); }
.ex-pager span { border-color: var(--line); color: var(--dim); }
.ex-details summary { cursor: pointer; }
.ex-details code { display: block; margin-top: 6px; max-height: 12em; overflow-y: auto; }

.ex-alert { background: var(--warn-bg); border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; max-width: 46rem; }
.ex-alert p { margin: 0 0 .6em; }
.ex-alert p:last-child { margin-bottom: 0; }
.ex-alert .site-btn { margin-top: 6px; cursor: pointer; }
.ex-privacy { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 12px; max-width: 52rem; }

/* Tables (block's transactions, accounts touched, program states) */
.ex-table { width: 100%; border-collapse: collapse; font-size: .9375rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ex-table th, .ex-table td { padding: 9px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.ex-table thead th { border-top: 0; color: var(--dim); font-size: .8125rem; font-weight: 600; }
@media (max-width: 599px) {
  .ex-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ex-table, .ex-table tbody, .ex-table tr, .ex-table th, .ex-table td { display: block; width: auto; }
  .ex-table tr { border-top: 1px solid var(--line); padding: 8px 12px; }
  .ex-table tbody tr:first-child { border-top: 0; }
  .ex-table th, .ex-table td { border: 0; padding: 2px 0; }
  .ex-table [data-k]::before { content: attr(data-k) ": "; color: var(--dim); font-weight: 500; }
}

/* What this network runs: its own section at the bottom of the home page */
.ex-runs { margin: 26px 0 30px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ex-runs h2 { font-size: 1.125rem; margin-bottom: 6px; }
.ex-runs[hidden] { display: none; }
.ex-checked { color: var(--dim); font-size: .875rem; }
.ex-kv { max-width: 62rem; }
@media (min-width: 560px) { .ex-kv { grid-template-columns: 12em minmax(0, 1fr); } }
.ex-kv dd { font-weight: 500; overflow-wrap: anywhere; }

/* Faucet form and the AI-agent prompt, in the top band. */
.ex-toplinks { margin: 0; font-size: .875rem; }
.ex-tools { display: grid; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ex-faucet input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--dim); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; box-sizing: border-box; }
.ex-faucet input::placeholder { color: var(--dim); opacity: 1; }
.ex-faucet input:focus-visible { outline: 3px solid var(--site-focus); outline-offset: 2px; border-color: var(--ink); }
.ex-faucet .site-btn { min-height: 48px; cursor: pointer; flex: none; }
.ex-faucet .site-btn:disabled { opacity: .6; cursor: progress; }
.ex-faucet-out { margin: 6px 0 0; font-size: .9375rem; min-height: 1.4em; overflow-wrap: anywhere; }
.ex-faucet-out.ex-faucet-bad { color: var(--warn); font-weight: 600; }
.ex-agents summary { cursor: pointer; font-weight: 600; font-size: .9375rem; }
.ex-agents-text { margin: 8px 0 0; padding: 12px 14px; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: .8125rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) { .ex-faucet .ex-search-row { flex-direction: column; } }
.ex-agents .ex-faucet { margin-top: 10px; }
.ex-tools { gap: 8px; }
