@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #ecece8;
  --surface: #ffffff;
  --text: #12151a;
  --muted: #5c6370;
  --muted-2: #8b919c;
  --line: #dfe3e8;
  --line-strong: #c8cdd4;
  --panel: #f6f7f8;
  --panel-strong: #eef0f2;
  --accent: #0d3b66;
  --accent-hover: #0a2d4d;
  --accent-soft: rgba(13, 59, 102, 0.08);
  --secondary: #2a3038;
  --success: #1b5e3a;
  --success-soft: #e8f2ec;
  --warn: #8a5a00;
  --error: #9b1c1c;
  --content-max: 1040px;
  --fs-body: 15px;
  --fs-h1: clamp(1.75rem, 2.5vw, 2.125rem);
  --fs-h2: clamp(1.125rem, 1.6vw, 1.35rem);
  --fs-h3: 1.0625rem;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-page: 0 1px 2px rgba(18, 21, 26, 0.04), 0 24px 48px -12px rgba(18, 21, 26, 0.08);
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body.site-nav-open {
  overflow: hidden;
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(18, 21, 26, 0.06);
  backdrop-filter: blur(10px);
}

.site-header-bar {
  width: min(var(--content-max), 92vw);
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex: 0 0 auto;
  margin-right: auto;
}

.site-brand:hover {
  color: var(--accent);
}

.site-brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(13, 59, 102, 0.15);
}

.site-brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.site-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.site-brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
}

.site-nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}

.site-nav-toggle-box span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-box span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-box span:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-box span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav-panel {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav-section {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 12px;
  margin-right: 8px;
  border-right: 1px solid var(--line);
}

.site-nav-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted-2);
  padding: 0 8px 0 4px;
  white-space: nowrap;
}

.site-nav-chains {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-meta {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--panel);
}

.site-nav a.active,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.site-nav a.site-header-cta {
  color: #f8fafc;
  background: var(--accent);
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-weight: 600;
}

.site-nav a.site-header-cta:hover {
  color: #f8fafc;
  background: var(--accent-hover);
}

.site-header-cta {
  margin-left: 8px;
  white-space: nowrap;
}

.site-header + .container {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .site-header-bar {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav-panel {
    display: none;
    flex: 1 1 100%;
    order: 3;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
  }

  .site-nav-panel.is-open {
    display: block;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px 0 4px;
  }

  .site-nav-section {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: none;
  }

  .site-nav-heading {
    padding: 0 4px;
  }

  .site-nav-chains,
  .site-nav-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav-chains li,
  .site-nav-meta li {
    width: 100%;
  }

  .site-nav a {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .site-header-cta {
    margin: 4px 0 0;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.container {
  width: min(var(--content-max), 92vw);
  margin: 32px auto 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px 32px;
  box-shadow: var(--shadow-page);
  position: relative;
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--accent) 0%, #1a5f8a 50%, var(--accent) 100%);
  opacity: 0.95;
}

@media (min-width: 1024px) {
  .container {
    min-height: calc(100vh - 112px);
    display: flex;
    flex-direction: column;
    padding: 36px 40px 40px;
  }
}

h1 {
  margin: 0 0 8px;
  font-size: var(--fs-h1);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text);
}

h2 {
  margin: 0 0 12px;
  font-size: var(--fs-h2);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

h3 {
  margin: 0 0 8px;
  font-size: var(--fs-h3);
  line-height: 1.35;
  font-weight: 600;
}

p {
  margin: 0 0 12px;
  max-width: 72ch;
}

.sub {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.02rem;
  font-weight: 400;
  max-width: 60ch;
}

.badge {
  display: inline-block;
  vertical-align: middle;
  background: var(--success-soft);
  color: var(--success);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 10px;
  border: 1px solid rgba(27, 94, 58, 0.2);
}

pre {
  background: var(--panel);
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 13px;
  overflow-x: auto;
  font-family: var(--font-mono);
  line-height: 1.5;
  color: #1a1d22;
}

code {
  white-space: pre;
  font-family: var(--font-mono);
  font-size: 0.92em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 11px 14px;
  border: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

th {
  background: var(--panel-strong);
  font-weight: 600;
  color: var(--secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
  border-bottom-color: rgba(13, 59, 102, 0.35);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chain-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chain-link {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  color: var(--secondary);
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease;
  border-bottom: none;
}

.chain-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  border-bottom: none;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--panel);
  font-size: 12px;
  color: var(--secondary);
  font-weight: 500;
}

section[aria-labelledby="links-heading"] {
  margin-top: 20px;
}

.cta {
  background: var(--accent);
  color: #f8fafc;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cta a {
  color: inherit;
  font-weight: 700;
  border-bottom: 1px solid rgba(248, 250, 252, 0.45);
}

.cta a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

@media (min-width: 1024px) {
  .cta {
    margin-top: auto;
  }
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  margin: 0;
  cursor: pointer;
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.1s ease;
}

button.btn {
  appearance: none;
  -webkit-appearance: none;
}

a.btn {
  text-decoration: none;
  border-bottom: none;
  vertical-align: middle;
  cursor: pointer;
}

a.btn:hover {
  border-bottom: none;
  text-decoration: none;
}

a.btn.secondary:hover {
  color: #f8fafc;
}

a.btn.ghost:hover {
  color: var(--accent-hover);
  border-bottom: none;
}

.btn-chevron {
  font-weight: 500;
  opacity: 0.92;
  margin-left: 1px;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--accent);
  border-color: rgba(0, 0, 0, 0.12);
}

.btn.primary:hover {
  background: var(--accent-hover);
}

.btn.secondary {
  background: var(--secondary);
  border-color: rgba(0, 0, 0, 0.12);
}

.btn.secondary:hover {
  background: #1a1f26;
}

.rpc-result {
  margin-top: 16px;
  display: none;
}

.rpc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.rpc-response {
  background: var(--panel);
  border: 1px solid var(--line);
}

.footer {
  color: var(--muted-2);
  font-size: 12px;
}

.footer a {
  color: var(--muted);
  font-weight: 500;
}

.footer a:hover {
  color: var(--accent);
}

.chain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.chain-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.chain-card:hover {
  border-color: var(--line-strong);
}

.chain-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.chain-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  max-width: none;
}

.status {
  display: inline-block;
  font-size: 10px;
  border-radius: 4px;
  padding: 3px 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f8fafc;
}

.status.live {
  background: var(--success);
}

.status.soon {
  background: #6b7280;
}

.endpoint {
  margin-top: 8px;
  background: var(--panel);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--secondary);
  font-family: var(--font-mono);
}

section[aria-labelledby="faq-heading"] {
  margin-top: 4px;
}

section[aria-labelledby="faq-heading"] details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 0 16px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}

section[aria-labelledby="faq-heading"] details:hover {
  border-color: var(--line-strong);
}

section[aria-labelledby="faq-heading"] details[open] {
  border-color: rgba(13, 59, 102, 0.25);
  background: #fbfcfd;
}

section[aria-labelledby="faq-heading"] summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 28px 14px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  position: relative;
}

section[aria-labelledby="faq-heading"] summary::-webkit-details-marker {
  display: none;
}

section[aria-labelledby="faq-heading"] summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

section[aria-labelledby="faq-heading"] details[open] summary::after {
  content: "−";
}

section[aria-labelledby="faq-heading"] details p {
  margin: 0 0 14px;
  padding-top: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 68ch;
}

@media (max-width: 700px) {
  .container {
    width: 94vw;
    margin: 16px auto 32px;
    padding: 20px 18px 24px;
    border-radius: var(--radius-md);
  }

  .chain-grid {
    grid-template-columns: 1fr;
  }

  section[aria-labelledby="faq-heading"] details {
    padding: 0 12px;
  }

  section[aria-labelledby="faq-heading"] summary {
    font-size: 13px;
    padding-right: 26px;
  }

  section[aria-labelledby="faq-heading"] details p {
    font-size: 13px;
  }
}

/* Homepage live traffic graph */
.traffic-stats {
  margin: 4px 0 8px;
}

.traffic-stats-note {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
  max-width: 65ch;
}

.traffic-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.traffic-kpi {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: linear-gradient(165deg, var(--panel) 0%, var(--surface) 100%);
}

.traffic-kpi-secondary {
  background: var(--panel);
}

.traffic-kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.traffic-kpi-value {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  line-height: 1.1;
}

.traffic-kpi-value-sm {
  font-size: 1.25rem;
  color: var(--text);
}

.traffic-kpi-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted-2);
}

.traffic-chart-panel {
  display: flex;
  gap: 10px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  padding: 12px 14px 10px;
}

.traffic-chart-y-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 2.5rem;
  padding: 12px 0 20px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
  text-align: right;
  line-height: 1;
  user-select: none;
}

.traffic-chart-main {
  flex: 1;
  min-width: 0;
}

.traffic-chart-wrap {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.traffic-chart {
  display: block;
  width: 100%;
  height: 200px;
}

.traffic-chart-axis {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 0;
  font-size: 11px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}

.traffic-stats-status {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted-2);
  min-height: 1.2em;
}

@media (max-width: 800px) {
  .traffic-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .traffic-kpis {
    grid-template-columns: 1fr;
  }
}

/* Live RPC stats */
.live-stats {
  margin: 4px 0 12px;
}

.live-stats-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  max-width: 65ch;
}

.live-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.live-stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: var(--panel);
}

.live-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.live-stat-value {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

section.chain-prose h2 {
  margin-top: 0;
}

section.chain-prose p:last-child {
  margin-bottom: 0;
}

.sample-code {
  margin: 12px 0 0;
}

.sample-code-caption {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
  max-width: 65ch;
}

.compare-mini {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 0;
  font-size: 13px;
}

.compare-mini th,
.compare-mini td {
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.compare-mini th {
  background: var(--panel-strong);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

@media (max-width: 700px) {
  .live-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage hero */
.hero {
  margin-bottom: 4px;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 8px;
}

.hero-actions label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}

.hero-chain-select {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  min-width: 160px;
}

.hero-url-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.hero-url-text {
  flex: 1 1 220px;
  margin: 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--secondary);
}

.hero-jump {
  margin: 10px 0 0;
  font-size: 14px;
}

.hero-jump a {
  font-weight: 600;
}

/* Homepage chain cards */
.home-chain-card .chain-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.home-chain-metrics [data-home-stat="lat"]::before {
  content: "Latency ";
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-chain-url {
  margin: 0 0 12px;
  padding: 8px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--secondary);
  word-break: break-all;
}

.home-chain-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn-ghost,
.btn.ghost {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover,
.btn.ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.btn-sm {
  min-height: 2.125rem;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1.2;
}

.rpc-try-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.try-chain-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.try-chain-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* Code example tabs */
.code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 12px 0 0;
  border-bottom: 1px solid var(--line);
}

.code-tab {
  border: none;
  background: transparent;
  padding: 8px 12px;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.code-tab:hover {
  color: var(--text);
}

.code-tab[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.code-tabpanel {
  margin: 0;
}

.code-tabpanel pre {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.faq-more {
  margin: 14px 0 0;
  font-size: 14px;
}

.footer-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  font-size: 13px;
}

.footer-links a {
  font-weight: 500;
  border-bottom: none;
}

.footer-links a:hover {
  text-decoration: underline;
  border-bottom: none;
}

.footer-powered {
  font-size: 12px;
  color: var(--muted-2);
}

.footer-powered a {
  font-weight: 600;
}

/* Chain page: editorial header + hero actions */
.chain-page-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.chain-page-lead {
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.55;
}

.chain-meta-line {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.chain-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.chain-section-title {
  margin-top: 0;
}

.chain-callout {
  margin: 14px 0 0;
  padding: 14px 16px 14px 14px;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border: 1px solid var(--line);
  border-left-width: 3px;
}

.chain-callout-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.chain-diagram {
  margin: 14px 0 0;
  padding: 16px 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  white-space: pre;
  overflow-x: auto;
  color: var(--secondary);
}

.chain-prose h3 {
  margin: 18px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.chain-prose h3:first-child {
  margin-top: 0;
}

.chain-prose ol,
.chain-prose ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
  color: var(--muted);
  max-width: 68ch;
}

.chain-prose li {
  margin-bottom: 6px;
}

.chain-bridge-table {
  margin-top: 12px;
}

.faq-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  max-width: 60ch;
}
