/* BumbleBeam Explorer: additions to the pool's styles.css */
.hash { font-family: var(--font-mono); word-break: break-all; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font: 12px var(--font-mono); }
.kv dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; padding-top: 2px; }
.kv dd { margin: 0; min-width: 0; word-break: break-all; color: var(--text-dim); }
tr.hit td { background: rgba(0, 246, 210, 0.1); }
.pager { display: flex; gap: 8px; }
@media (max-width: 560px) {
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}
/* the API's documents: tables, nested tables, groups of calls */
table.nested { width: auto; font-size: 11px; }
table.nested td { padding: 2px 10px 2px 0; border: 0; }
tr.grp-first > td { border-top: 1px solid var(--border); }
tr.grp-sub > td { border-top: 0; color: var(--text-dim); }
/* only the row's own cells: a nested table inside (Funds, Arguments) keeps its own layout */
tr.grp-sub > td:first-child { padding-left: 18px; }
.amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt.neg { color: var(--color-red); }
.amt.pos { color: var(--accent); }
.doc-obj .kv .kv { margin-top: 2px; }
.doc-kernel + .doc-kernel { margin-top: 14px; }
.peers { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--text-dim); }
td .kv { font-size: 11px; gap: 2px 10px; }
.nowrap { white-space: nowrap; }
table.peer-table { width: auto; min-width: min(360px, 100%); }
.copy { cursor: pointer; }
.copy:hover { color: var(--accent); }
/* names: tools row, sortable headers */
.names-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.names-q { flex: 1 1 220px; min-width: 0; height: 32px; padding: 0 10px; color: var(--text); font: 13px var(--font-mono); background: var(--field-bg); border: 1px solid var(--border); border-radius: 6px; color-scheme: dark; }
.names-q:focus { outline: none; border-color: rgba(0, 246, 210, 0.5); }
.names-pager { margin-left: auto; display: flex; align-items: center; gap: 10px; font: 11px var(--font-mono); }
.names-pager .btn:disabled { opacity: 0.35; cursor: default; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }
th.sortable[data-dir]:not([data-dir=""])::after { content: " " attr(data-dir); color: var(--accent); }
.small { font-size: 10px; }
/* names: fixed column widths sized for the longest content, so paging and filters never move them */
#names-table { table-layout: fixed; min-width: 1060px; }
#names-table col.w-h { width: 160px; }
#names-table col.w-st { width: 180px; }
#names-table col.w-pr { width: 170px; }
#names-table col.w-key { width: 160px; }
#names-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#names-table td .small { white-space: nowrap; }
/* contracts: fixed widths, everything top-aligned, a +N toggle opens a row's asset lists */
#contracts-table { table-layout: fixed; min-width: 1080px; }
#contracts-table td { vertical-align: top; }
#contracts-table col.w-cid { width: 170px; }
#contracts-table col.w-kind { width: 220px; }
#contracts-table col.w-dep { width: 120px; }
#contracts-table col.w-fund { width: 260px; }
#contracts-table col.w-more { width: 70px; }
#contracts-table td, #contracts-table .stack-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#contracts-table .stack-line + .stack-line { margin-top: 4px; }
#contracts-table tr.open td { background: rgba(255, 255, 255, 0.02); }
/* asset metadata: description cells with more / less, the asset page's about block */
table.doc td, table.nested td { vertical-align: top; }
.meta-cell .wrap, .wrap { white-space: normal; }
.meta-cell { max-width: 520px; }
.meta-long { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--text-dim); }
.meta-long .small { margin-top: 4px; }
.link-btn { margin-top: 4px; padding: 0; background: none; border: 0; color: var(--accent); font: 11px var(--font-mono); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.asset-about { display: flex; gap: 16px; align-items: flex-start; }
.asset-logo { width: 48px; height: 48px; flex: none; object-fit: contain; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.about-short { margin: 0 0 6px; font-size: 14px; color: var(--text); }
.about-long { margin: 0 0 8px; line-height: 1.6; }
.about-links { margin: 0; font: 12px var(--font-mono); }
/* assets and DEX lists: fixed widths */
/* sized for the longest name (28 characters), ticker and NTH_RATIO in the registry */
#assets-table { table-layout: fixed; min-width: 1060px; }
#assets-table col.w-id { width: 70px; } #assets-table col.w-key { width: 160px; } #assets-table col.w-tick { width: 90px; }
#assets-table col.w-sup { width: 230px; } #assets-table col.w-dec { width: 120px; } #assets-table col.w-dep { width: 130px; }
#dex-table { table-layout: fixed; min-width: 1000px; }
#dex-table col.w-vol { width: 140px; } #dex-table col.w-res { width: 220px; } #dex-table col.w-rate { width: 120px; } #dex-table col.w-lp { width: 90px; }
#assets-table td, #dex-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* nested documents scroll inside their panel instead of running past it */
.doc-obj { overflow-x: auto; }
/* blocks list: fixed widths */
#blocks-table { table-layout: fixed; min-width: 1100px; }
#blocks-table col.w-h { width: 110px; } #blocks-table col.w-t { width: 200px; } #blocks-table col.w-a { width: 90px; }
#blocks-table col.w-d { width: 90px; } #blocks-table col.w-tx { width: 60px; } #blocks-table col.w-io { width: 140px; }
#blocks-table col.w-c { width: 70px; } #blocks-table col.w-f { width: 130px; }
#blocks-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* blocks found by our pool: the row tinted as on the pool's own table, the height as a badge */
#blocks-table tr.ours td { background: rgba(0, 246, 210, 0.05); }
.ours-tag { vertical-align: middle; margin-left: 8px; }
/* filter buttons: never break a label, wrap whole buttons onto the next line instead */
.names-tools .seg { flex-wrap: wrap; }
.names-tools .seg button { white-space: nowrap; }
