/* VYRE docs: the site's neon lime on black, set for reading (vyrechain.com/docs) */
:root {
  --bg: #060606;
  --panel: #0c0c0e;
  --panel-2: #0f1011;
  --line: #1d1f1b;
  --line-2: #2b2e27;
  --text: #f4f5f0;
  --soft: #d3d6cb;
  --muted: #a4a898;
  --dim: #838878;
  --lime: #cdf714;
  --lime-faint: rgba(205, 247, 20, 0.08);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --top-h: 64px;
  --gutter: 28px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
img { display: block; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: #0a0a0a; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); background: rgba(6, 6, 6, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 14px; height: 100%; padding: 0 var(--gutter); max-width: 1480px; margin: 0 auto; }
.brand img { height: 24px; width: auto; }
.brand-docs { color: var(--text); font-weight: 700; font-stretch: 112%; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; padding-left: 14px; border-left: 1px solid var(--line-2); }
.brand-docs:hover { color: var(--lime); text-decoration: none; }
.net-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; color: #eef3d6; border: 1px solid rgba(205, 247, 20, 0.45); border-radius: 999px; padding: 2px 10px; }
.net-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.top-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; }
.top-links a { color: #e6e8e0; }
.top-links a:hover { color: var(--lime); text-decoration: none; }
.side-btn { display: none; }

/* Three columns: pages, the page, its contents */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 210px; gap: 44px; max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }
.side { position: sticky; top: var(--top-h); align-self: start; max-height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 30px 0 40px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { display: block; color: var(--muted); font-size: 14.5px; padding: 6px 12px; border-left: 2px solid var(--line-2); }
.side a:hover { color: var(--text); text-decoration: none; border-left-color: var(--dim); }
.side a[aria-current="page"] { color: var(--lime); border-left-color: var(--lime); background: var(--lime-faint); font-weight: 600; }
.main { min-width: 0; padding: 34px 0 60px; }
.toc { position: sticky; top: var(--top-h); align-self: start; padding: 34px 0; font-size: 13px; }
.toc p { margin: 0 0 8px; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; color: var(--muted); padding: 4px 0; line-height: 1.4; }
.toc a:hover { color: var(--lime); text-decoration: none; }

/* The page */
.prose { max-width: 780px; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; font-weight: 900; font-stretch: 118%; text-transform: uppercase; letter-spacing: 0.005em; margin: 0 0 18px; }
.prose h2 { font-size: 23px; line-height: 1.25; font-weight: 800; font-stretch: 108%; margin: 46px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 17.5px; font-weight: 700; margin: 30px 0 8px; }
.prose h4 { font-size: 15.5px; font-weight: 700; margin: 24px 0 6px; color: var(--soft); }
.prose .anchor { float: left; margin-left: -22px; width: 22px; color: var(--dim); opacity: 0; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus { opacity: 1; text-decoration: none; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: var(--soft); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--dim); }
.prose strong { color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose blockquote { margin: 0 0 18px; padding: 12px 16px; border: 1px solid rgba(205, 247, 20, 0.35); border-left: 3px solid var(--lime); border-radius: 8px; background: var(--lime-faint); }
.prose blockquote p { margin: 0; color: var(--text); }
.prose blockquote p + p { margin-top: 8px; }
.prose :not(pre) > code { font-family: var(--mono); font-size: 0.86em; background: #121411; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; color: #e9ecd9; overflow-wrap: anywhere; }
.code-block { position: relative; margin: 0 0 18px; background: #0a0b0a; border: 1px solid var(--line-2); border-radius: 10px; }
.code-block[data-lang]::before { content: attr(data-lang); position: absolute; top: 8px; left: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.code-block pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 12.8px; line-height: 1.6; color: #dfe2d8; tab-size: 2; }
.code-block[data-lang] pre { padding-top: 30px; }
.copy { position: absolute; top: 6px; right: 6px; appearance: none; background: #121411; border: 1px solid var(--line-2); color: var(--muted); font: inherit; font-size: 12px; padding: 3px 9px; border-radius: 6px; cursor: pointer; }
.copy:hover { color: var(--lime); border-color: rgba(205, 247, 20, 0.45); }
.table-wrap { margin: 0 0 20px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; letter-spacing: 0.04em; background: var(--panel); }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

/* A button a page can hold (add the network to a wallet) */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 9px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.btn-lime { background: var(--lime); color: #0a0a0a; }
.btn-lime:hover { box-shadow: 0 8px 30px rgba(205, 247, 20, 0.35); text-decoration: none; }
.btn-line { border-color: #4a4d44; color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--lime); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 20px; }
.note { color: var(--muted); font-size: 13.5px; }

/* Previous / next, and the footer */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 780px; margin-top: 50px; }
.pager a { display: block; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font-weight: 600; }
.pager a:hover { border-color: rgba(205, 247, 20, 0.5); text-decoration: none; }
.pager a span { display: block; color: var(--dim); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.pager .next { text-align: right; }
.foot { max-width: 780px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }
.foot p { margin: 0; }

@media (max-width: 1199px) {
  .layout { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
  .toc { display: none; }
}
@media (max-width: 860px) {
  :root { --gutter: 18px; --top-h: 58px; }
  .top-links { display: none; }
  .js .side-btn { display: inline-flex; margin-left: auto; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid #4a4d44; background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { position: static; max-height: none; padding: 14px 0 0; border-bottom: 1px solid var(--line); }
  .js .side { display: none; }
  .js .side.open { display: block; position: fixed; top: var(--top-h); left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg); padding: 14px var(--gutter) 30px; overflow-y: auto; }
  .side ul { display: flex; flex-wrap: wrap; gap: 4px 6px; padding-bottom: 12px; }
  .js .side.open ul { display: block; }
  .main { padding-top: 24px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
}
@media (max-width: 480px) {
  .net-badge { display: none; }
  .prose h2 { font-size: 21px; }
  .code-block pre { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
