/* Shared look of the Ergo Sum website: light, square corners, one blue for actions,
   a dark navy band at the top, heavy headings and light body text. */
:root {
  --primary: #1c69d4; --primary-active: #0653b6;
  --ink: #262626; --body: #3c3c3c; --muted: #6b6b6b;
  --hairline: #e6e6e6; --hairline-strong: #cccccc;
  --canvas: #ffffff; --surface-soft: #f7f7f7;
  --dark: #1a2129; --on-dark: #ffffff; --on-dark-soft: #bbbbbb;
  --ok: #15803d; --warn: #b45309; --bad: #dc2626;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--body); font: 300 16px/1.55 var(--font); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-active); text-decoration: underline; }
h1, h2, h3 { color: var(--ink); font-weight: 700; margin: 0; }
b, strong, th, dt { font-weight: 700; }
code { font-size: 14px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--hairline); background: var(--canvas); }
.top .wrap { display: flex; align-items: center; gap: 32px; min-height: 64px; flex-wrap: wrap; }
.brand { color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: 0.3px; }
.top nav { display: flex; gap: 24px; flex-wrap: wrap; }
.top nav a { color: var(--ink); font-size: 14px; font-weight: 400; letter-spacing: 0.3px; padding: 20px 0; border-bottom: 2px solid transparent; }
.top nav a.active { border-bottom-color: var(--primary); }
.top nav a:hover { text-decoration: none; color: var(--primary); }
.testnet { margin-left: auto; color: var(--muted); font-size: 12px; letter-spacing: 0.5px; }

.hero { background: var(--dark); color: var(--on-dark); padding: 64px 0; }
.hero h1 { color: var(--on-dark); font-size: clamp(32px, 6vw, 56px); line-height: 1.08; }
.hero p { color: var(--on-dark-soft); max-width: 640px; margin: 16px 0 0; font-size: 18px; }
.hero .label { color: var(--on-dark-soft); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

main.wrap { padding-top: 48px; padding-bottom: 80px; }
section { margin-bottom: 56px; }
section > h2 { font-size: 24px; line-height: 1.25; margin-bottom: 16px; }
.label { display: block; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 14px; max-width: 760px; }

.button { display: inline-block; padding: 14px 32px; font: 700 14px/1 var(--font); letter-spacing: 0.5px;
          background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.button:hover { background: var(--primary-active); color: #fff; text-decoration: none; }
.button.ghost { background: transparent; border-color: var(--on-dark); color: var(--on-dark); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); }
.tile { padding: 24px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.tile b { display: block; color: var(--ink); font-size: 32px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: 14px; }

.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
th { color: var(--muted); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; border-bottom-color: var(--hairline-strong); }
td.num, th.num { text-align: right; }
td.wrap-text { white-space: normal; }

.pill { display: inline-block; padding: 2px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid currentColor; }
.pill.ok { color: var(--ok); } .pill.warn { color: var(--warn); } .pill.bad { color: var(--bad); } .pill.info { color: var(--muted); }

dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
dt { color: var(--muted); font-size: 14px; }
dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input, .filters select { height: 48px; padding: 0 16px; font: 300 16px var(--font); color: var(--ink);
                                  background: var(--canvas); border: 1px solid var(--hairline-strong); border-radius: 0; }
.filters input[type="search"] { flex: 1 1 240px; }
.filters input[type="number"] { width: 160px; }
.filters input:focus, .filters select:focus { outline: 2px solid var(--primary); outline-offset: -1px; }

footer { border-top: 1px solid var(--hairline); padding: 24px 0 48px; color: var(--muted); font-size: 14px; }
dd ul { margin: 0; padding-left: 20px; }
@media (max-width: 640px) {
  .top .wrap { gap: 4px 24px; padding-top: 12px; }
  .top nav a { padding: 8px 0 10px; }
  .testnet { margin-left: 0; width: 100%; padding-bottom: 8px; }
  .hero { padding: 48px 0; }
}
