:root {
  color-scheme: light;
  --rpc-paper: #fff;
  --rpc-surface: #f6faf7;
  --rpc-ink: #101412;
  --rpc-muted: #4f6056;
  --rpc-line: #dce7e0;
  --rpc-green: #1ab553;
  --rpc-green-deep: #0f813b;
  --rpc-green-dark: #0b6d31;
  --rpc-green-wash: #e8f8ee;
  --rpc-shadow: rgba(7, 17, 11, 0.08);
  --rpc-brand-logo-size: 1.75rem;
  --rpc-brand-text-size: 1.125rem;
  --rpc-brand-gap: 0.375rem;
  --rpc-display-font: "Funnel Sans", "Sora", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rpc-body-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rpc-mono-font: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

body {
  background: var(--rpc-paper);
  color: var(--rpc-ink);
  font-family: var(--rpc-body-font);
  line-height: 1.6;
}

.wy-body-for-nav,
.wy-nav-content-wrap,
.wy-nav-content {
  background: var(--rpc-paper);
}

.wy-nav-content {
  max-width: 74rem;
  padding: 2.4rem 3rem 4rem;
}

.wy-nav-side {
  background: var(--rpc-paper);
  border-right: 1px solid var(--rpc-line);
  box-shadow: 10px 0 32px rgba(7, 17, 11, 0.035);
}

.wy-side-scroll {
  background: var(--rpc-paper);
}

.wy-side-nav-search {
  background: var(--rpc-paper);
  border-bottom: 1px solid var(--rpc-line);
  margin-bottom: 0;
  padding: 1rem 1.1rem 1.15rem;
  position: sticky;
  top: 0;
  z-index: 3;
}

.wy-side-nav-search > a,
.wy-side-nav-search > div.version {
  color: var(--rpc-green);
}

.wy-side-nav-search > a {
  align-items: center;
  display: flex;
  font-family: var(--rpc-display-font);
  font-size: 0;
  font-weight: 700;
  gap: var(--rpc-brand-gap);
  justify-content: flex-start;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0.7rem;
  min-height: 2.75rem;
  text-align: left;
}

.wy-side-nav-search > a::before {
  display: none;
}

.wy-side-nav-search > a::after {
  color: var(--rpc-green);
  content: "qbit";
  display: inline-block;
  font-size: var(--rpc-brand-text-size);
  font-weight: 700;
  line-height: 1;
}

.wy-side-nav-search > a img.logo {
  display: block;
  flex: 0 0 auto;
  height: var(--rpc-brand-logo-size);
  margin: 0;
  width: var(--rpc-brand-logo-size);
}

.wy-side-nav-search input[type="text"] {
  background: var(--rpc-paper);
  border: 1px solid var(--rpc-line);
  border-radius: 0;
  box-shadow: none;
  color: var(--rpc-ink);
  font-family: var(--rpc-mono-font);
  font-size: 0.82rem;
  min-height: 2.35rem;
}

.wy-side-nav-search input[type="text"]:focus {
  border-color: var(--rpc-green);
  box-shadow: 0 0 0 2px rgba(26, 181, 83, 0.14);
}

.wy-menu-vertical {
  font-family: var(--rpc-mono-font);
}

.wy-menu-vertical header,
.wy-menu-vertical p.caption {
  color: var(--rpc-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wy-menu-vertical a {
  color: rgba(7, 17, 11, 0.76);
  font-size: 0.82rem;
  line-height: 1.35;
}

.wy-menu-vertical a:hover,
.wy-menu-vertical li.current > a,
.wy-menu-vertical li.on a {
  background: var(--rpc-surface);
  color: var(--rpc-ink);
}

.wy-menu-vertical li.current {
  background: var(--rpc-paper);
}

.wy-menu-vertical li.current > a {
  border-right: 3px solid var(--rpc-green);
}

.wy-nav-top {
  align-items: center;
  background: var(--rpc-paper);
  border-bottom: 1px solid var(--rpc-line);
  color: var(--rpc-green);
  gap: 0.75rem;
  min-height: 3.625rem;
  padding: 0.5rem 1rem;
}

.wy-nav-top i {
  color: var(--rpc-green);
  font-size: 1.25rem;
  line-height: 1;
  margin: 0;
}

.wy-nav-top a {
  align-items: center;
  color: var(--rpc-green);
  display: inline-flex;
  font-family: var(--rpc-display-font);
  font-size: 0;
  font-weight: 700;
  gap: var(--rpc-brand-gap);
  line-height: 1;
  min-height: 2.75rem;
}

.wy-nav-top a::before {
  background: url("qbit.svg") center / contain no-repeat;
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  height: var(--rpc-brand-logo-size);
  width: var(--rpc-brand-logo-size);
}

.wy-nav-top a::after {
  color: var(--rpc-green);
  content: "qbit";
  display: inline-block;
  font-size: var(--rpc-brand-text-size);
  font-weight: 700;
  line-height: 1;
}

.rst-content h1,
.rst-content h2,
.rst-content h3,
.rst-content h4 {
  color: var(--rpc-ink);
  font-family: var(--rpc-display-font);
  font-weight: 650;
  letter-spacing: 0;
}

.rst-content h1 {
  border-bottom: 1px solid var(--rpc-line);
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
}

.rst-content a,
.rst-content a:visited {
  color: var(--rpc-green-deep);
}

.rst-content a:hover {
  color: var(--rpc-green-dark);
}

.rst-content table.docutils {
  border: 1px solid var(--rpc-line);
}

.rst-content table.docutils thead,
.rst-content table.docutils th {
  background: var(--rpc-surface);
  color: var(--rpc-ink);
}

.rst-content code,
.rst-content tt,
.rst-content pre {
  font-family: var(--rpc-mono-font);
}

.rst-content div[class^="highlight"],
.rst-content pre.literal-block {
  border: 1px solid var(--rpc-line);
  border-radius: 0;
  box-shadow: none;
}

.rpc-filter-controls {
  background: var(--rpc-surface);
  border: 1px solid var(--rpc-line);
  border-radius: 0;
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.55rem 0.85rem;
}

.rpc-filter-controls label {
  color: var(--rpc-ink);
  cursor: pointer;
  font-family: var(--rpc-mono-font);
  font-size: 0.92rem;
  font-weight: 600;
}

.rpc-filter-controls input {
  accent-color: var(--rpc-green);
}

.rpc-method-list {
  display: grid;
  gap: 1rem;
}

.rpc-method-card {
  background: var(--rpc-paper);
  border: 1px solid var(--rpc-line);
  border-left: 0.32rem solid var(--rpc-line);
  border-radius: 0;
  box-shadow: 0 12px 30px var(--rpc-shadow);
  padding: 1rem 1.1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.rpc-method-card:hover {
  border-color: rgba(26, 181, 83, 0.34);
  box-shadow: 0 18px 38px rgba(7, 17, 11, 0.1);
  transform: translateY(-2px);
}

.rpc-method-card[data-status="new_since_v30_2"] {
  border-left-color: var(--rpc-green);
}

.rpc-method-card[data-status="surface_changed_since_v30_2"] {
  border-left-color: var(--rpc-green);
}

.rpc-method-card[data-status="semantic_changed_since_v30_2"] {
  border-left-color: var(--rpc-green);
}

.rpc-method-card.is-hidden {
  display: none;
}

.rpc-method-card h3 {
  margin-bottom: 0.2rem;
}

.rpc-method-card h3 a {
  color: var(--rpc-ink);
  text-decoration: none;
}

.rpc-method-card h3 a:hover {
  color: var(--rpc-green-deep);
}

.rpc-method-summary,
.rpc-delta-summary {
  margin: 0.35rem 0;
}

.rpc-method-meta {
  color: var(--rpc-muted);
  font-family: var(--rpc-mono-font);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rpc-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0 0;
}

.rpc-badge {
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--rpc-mono-font);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.24rem 0.58rem;
  text-transform: uppercase;
}

.rpc-badge--default {
  background: var(--rpc-surface);
  border-color: var(--rpc-line);
  color: var(--rpc-muted);
}

.rpc-badge--new {
  background: var(--rpc-green-wash);
  color: var(--rpc-green-dark);
}

.rpc-badge--surface {
  background: var(--rpc-paper);
  border-color: rgba(26, 181, 83, 0.36);
  color: var(--rpc-green-deep);
}

.rpc-badge--semantic {
  background: rgba(26, 181, 83, 0.1);
  color: var(--rpc-green-dark);
}

.rpc-badge--wallet {
  background: var(--rpc-surface);
  border-color: var(--rpc-line);
  color: var(--rpc-ink);
}

.rpc-badge--zmq {
  background: var(--rpc-surface);
  border-color: var(--rpc-line);
  color: var(--rpc-ink);
}

.rpc-badge--signer {
  background: var(--rpc-surface);
  border-color: var(--rpc-line);
  color: var(--rpc-ink);
}

@media (max-width: 900px) {
  .wy-nav-content {
    padding: 1.5rem 1rem 3rem;
  }

  .rpc-filter-controls {
    display: flex;
    width: 100%;
  }
}
