*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }

/* ── header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}
.header-brand {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-nav {
  display: flex;
  gap: 1.5rem;
  flex: 1;
}
.header-nav a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.header-nav a:hover, .header-nav a.active { color: var(--text); }

/* ── main ── */
main { flex: 1; padding: 2.5rem 0 4rem; }

/* ── section label ── */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── endpoint group ── */
.endp-group { margin-bottom: 2.5rem; }

/* ── endpoint row ── */
.endp-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 4px;
  min-width: 0;
}

.endp-status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-dim);
  transition: background 0.3s;
}
.status-dot.ok    { background: var(--live); }
.status-dot.lag   { background: #f4c430; }
.status-dot.err   { background: #ff4444; }

.status-info {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 10rem;
}
.status-info.ok  { color: var(--live); }
.status-info.lag { color: #f4c430; }
.status-info.err { color: #ff4444; }

/* ── chain badge ── */
.endp-chain {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 11rem;
}
.chain-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.net-badge {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}
.net-badge.mainnet {
  background: rgba(94,230,160,0.1);
  border: 1px solid rgba(94,230,160,0.25);
  color: var(--live);
}
.net-badge.testnet {
  background: rgba(255,95,31,0.08);
  border: 1px solid rgba(255,95,31,0.2);
  color: var(--accent);
}

/* ── uri ── */
.endp-uri {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── actions ── */
.endp-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.copy-btn, .link-btn {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
}
.copy-btn:hover, .link-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.copy-btn.copied {
  color: var(--live);
  border-color: rgba(94,230,160,0.4);
}

/* ── empty note ── */
.endp-empty {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  padding: 0.5rem 0;
}

/* ── footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  flex-shrink: 0;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 1.25rem;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-muted); }

/* ── responsive ── */
@media (max-width: 700px) {
  .header-nav { display: none; }
  .status-info { display: none; }
  .endp-chain { min-width: auto; }
  .footer-links { display: none; }
}
@media (max-width: 480px) {
  .net-badge { display: none; }
}
