/* QUAC explorer: builds on ../styles.css tokens */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ex-main { padding-top: 32px; padding-bottom: 72px; min-height: 70vh; }

.ex-search { display: flex; gap: 10px; margin-bottom: 32px; }
.ex-search input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px;
}
.ex-search input:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.ex-search .btn { cursor: pointer; font-family: inherit; }

.ex-h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 6px; overflow-wrap: anywhere; }
.ex-sub { color: var(--muted); margin: 0 0 28px; overflow-wrap: anywhere; }

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; }
.tile { background: var(--surface); padding: 18px 20px; min-width: 0; }
.tile .k { font-size: 13px; font-weight: 700; color: var(--muted); }
.tile .v { font-size: 22px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile .n { font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile:last-child { grid-column: 1 / -1; } }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 960px) { .panels { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
/* Panels are <section>s; undo the landing page's big section spacing. */
section.panel { padding: 0; scroll-margin-top: 0; }
.panel > h2 { max-width: none; letter-spacing: 0; line-height: 1.4; font-size: 16px; font-weight: 800; margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.panel .empty { padding: 20px; color: var(--muted); font-size: 15px; margin: 0; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.rows li:last-child { border-bottom: 0; }
.rows .main { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .meta { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .right { text-align: right; font-variant-numeric: tabular-nums; }

.mono { font-family: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace; font-size: 0.92em; }
.hash { overflow-wrap: anywhere; word-break: break-all; }

.pq { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.pq.bad { background: var(--warn-soft); color: var(--warn); }
.pill { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 6px; background: var(--chip); color: var(--muted); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.fail { background: var(--warn-soft); color: var(--warn); }

.kv { display: grid; grid-template-columns: 200px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 28px; }
.kv dt, .kv dd { margin: 0; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { overflow-wrap: anywhere; min-width: 0; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } .kv dt { border-bottom: 0; padding-bottom: 0; } }

.ex-h2 { font-size: 20px; font-weight: 800; margin: 8px 0 14px; }

.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
.msg .type { font-weight: 800; margin-bottom: 8px; }
.transfer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; }
.transfer .amt { font-weight: 800; font-size: 18px; white-space: nowrap; }
@media (max-width: 640px) { .transfer { grid-template-columns: 1fr; } }
pre.json { font-size: 13px; max-height: 360px; }

.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tablewrap table td, .tablewrap table th { white-space: nowrap; }

.notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 720px; }
.notice h2 { margin: 0 0 8px; font-size: 22px; }
.notice p { color: var(--muted); }

.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .live { animation: none; } }

.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.down { background: var(--warn-soft); color: var(--warn); }
