/* Minimalist explorer styling.

   Goals: readable, dense, no JS framework, no animations. Logos Bedrock
   has a stone/grey aesthetic; we lean into that with a near-black on
   warm-grey palette. Monospace for hashes everywhere because nothing
   looks worse than a hash in a proportional font.
*/

:root {
  --bg: #f7f6f1;
  --bg-card: #ffffff;
  --fg: #1a1a1a;
  --fg-muted: #595955;
  --fg-soft: #8b8a85;
  --accent: #6d5a3f;       /* warm brown for links / pills */
  --accent-bg: #efe8d8;
  --border: #d8d4c8;
  --pos: #2e7a3b;
  --warn: #b46a1a;
  --err: #a83232;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.5 system-ui, -apple-system, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
a:hover { color: var(--fg); }

header.site {
  background: var(--fg);
  color: var(--bg);
  padding: 12px 24px;
  border-bottom: 1px solid #000;
}
header.site .row {
  display: flex; align-items: center; gap: 24px; max-width: 1200px; margin: 0 auto;
}
header.site .brand {
  font-weight: 700; letter-spacing: 0.02em;
}
header.site a, header.site a:hover { color: var(--bg); border-bottom: none; }
header.site form {
  margin-left: auto; flex: 1; max-width: 520px;
}
header.site input[type=search] {
  width: 100%;
  padding: 7px 11px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--mono);
}

main { max-width: 1200px; margin: 24px auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: 24px; }
h2 { font-size: 18px; margin-top: 28px; }
h3 { font-size: 14px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.muted { color: var(--fg-muted); }
.soft { color: var(--fg-soft); }
.mono, code, .hash { font-family: var(--mono); }
.hash {
  font-size: 12.5px;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.hash-short { font-family: var(--mono); }

.grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 6px 18px;
  margin: 0;
}
.grid dt { color: var(--fg-muted); }
.grid dd { margin: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table th, table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}
table th {
  background: var(--accent-bg);
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}
table tbody tr:hover { background: rgba(0,0,0,0.02); }

.pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--accent-bg);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pill-pending  { background: #f2efe2; color: #6d5a3f; }
.pill-confirmed { background: #dde9d6; color: #2e6a36; }
.pill-finalized { background: #d6dde9; color: #2c4f87; }
.pill-orphaned { background: #f1d8d4; color: #963329; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.stat .label {
  font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.stat .value {
  font-family: var(--mono); font-size: 18px; margin-top: 4px;
}

.pagination { display: flex; gap: 12px; margin-top: 16px; }
.pagination a, .pagination span {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

footer.site {
  margin: 48px auto 24px;
  text-align: center;
  font-size: 12px;
  color: var(--fg-soft);
}

.alert {
  padding: 10px 14px;
  background: #fff3d6;
  border: 1px solid #e6c97b;
  color: #7a5212;
  border-radius: 4px;
  margin-bottom: 18px;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--fg-soft);
  font-style: italic;
}

/* Breadcrumbs — single-line, low-contrast nav above page heading. */
nav.breadcrumbs {
  font-size: 12px;
  color: var(--fg-soft);
  margin: 4px 0 12px;
}
nav.breadcrumbs a {
  color: var(--fg-soft);
  border-bottom: none;
}
nav.breadcrumbs a:hover { color: var(--fg); }

/* Copy-on-click affordance: any [data-copy] gets a subtle cue. */
[data-copy] {
  position: relative;
  cursor: pointer;
}
[data-copy]:hover {
  background: rgba(109, 90, 63, 0.06);
}
.copy-flash {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--pos);
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease;
}
.copy-flash-out { opacity: 0; }
