/* bots.roarnode.com: the same family as roarnode.com (relay/public/site/site.css), laid out for reading. */

:root {
  --bg: #070b0d;
  --panel: rgba(16, 22, 25, 0.74);
  --panel-solid: #11171a;
  --code-bg: #0b1113;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #eef5f0;
  --soft: #c3d3c9;
  --muted: #93a89c;
  --green: #5fd96a;
  --lime: #b4f06a;
  --grad: linear-gradient(110deg, #c2f36e 0%, #66db6c 45%, #2fbf74 100%);
  --radius: 16px;
  --head: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  /* code colours */
  --c-comment: #6f8579;
  --c-string: #b4f06a;
  --c-keyword: #7cc7ff;
  --c-number: #ffb86b;
  --c-func: #f2e08a;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; min-height: 100vh; font-family: var(--body); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 520px at 8% 0%, rgba(16, 122, 92, 0.32), transparent 70%),
    radial-gradient(640px 460px at 70% -10%, rgba(22, 82, 146, 0.3), transparent 70%),
    radial-gradient(760px 600px at 100% 100%, rgba(66, 134, 32, 0.2), transparent 70%),
    var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: #d6ff9a; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel-solid); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 11, 13, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 22px; height: 64px; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.brand img { display: block; }
.brand .word { height: 20px; width: auto; }
.brand .label { font: 700 13px var(--body); color: #06140b; background: var(--grad); padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em; }
.links { display: flex; gap: 4px; margin: 0 auto 0 12px; }
.links a { text-decoration: none; color: var(--soft); font-weight: 500; font-size: 15px; padding: 7px 12px; border-radius: 9px; }
.links a:hover, .links a[aria-current] { color: #fff; background: rgba(255, 255, 255, 0.06); }
.menu { display: none; background: none; border: 0; color: var(--text); padding: 6px; margin-left: -6px; border-radius: 8px; cursor: pointer; }
.menu svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; display: block; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 13px; font: 650 15.5px/1.2 var(--body);
  text-decoration: none; color: var(--text); border: 1px solid transparent; transition: transform 0.15s, background 0.15s, box-shadow 0.15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); color: var(--text); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn.primary { background: var(--grad); color: #06140b; box-shadow: 0 12px 32px -12px rgba(95, 217, 106, 0.6); }
.btn.primary:hover { color: #06140b; box-shadow: 0 16px 40px -12px rgba(95, 217, 106, 0.8); }
.btn.ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line-strong); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn.small { padding: 9px 15px; font-size: 14px; border-radius: 11px; margin-left: auto; }

/* the three columns */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr) 220px; gap: 40px; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.side { position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 64px); overflow-y: auto; padding: 28px 4px 40px 0; }
.side-group { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 22px 0 8px 12px; }
.side-group:first-child { margin-top: 0; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { display: block; text-decoration: none; color: var(--soft); font-size: 15px; padding: 7px 12px; border-radius: 9px; }
.side a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.side a[aria-current] { color: #fff; background: rgba(95, 217, 106, 0.12); box-shadow: inset 2px 0 0 var(--green); }
.toc-col { position: sticky; top: 64px; align-self: start; padding: 34px 0 40px; }
.toc p { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); }
.toc a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 4px 0; line-height: 1.4; }
.toc a:hover, .toc a.on { color: #fff; }

/* reading */
.content { min-width: 0; max-width: 820px; padding: 34px 0 60px; }
.crumb { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); font-weight: 700; }
h1 { font: 800 clamp(32px, 4vw, 44px)/1.1 var(--head); letter-spacing: -0.035em; margin: 0 0 14px; }
.lead { font-size: 18.5px; color: var(--soft); margin: 0 0 28px; max-width: 680px; }
.content h2 { position: relative; font: 700 25px/1.25 var(--head); letter-spacing: -0.02em; margin: 52px 0 14px; padding-top: 6px; }
.content h3 { font: 700 18px/1.35 var(--head); letter-spacing: -0.01em; margin: 30px 0 10px; }
.content p, .content li { color: #d6e3da; font-size: 16px; }
.content ul, .content ol { padding-left: 22px; }
.content li { margin: 6px 0; }
.content li::marker { color: var(--muted); }
.anchor { position: absolute; left: -22px; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 400; }
h2:hover .anchor { opacity: 1; }
:not(pre) > code { font-variant-ligatures: none; font-family: var(--mono); font-size: 0.88em; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: #e8f3ec; overflow-wrap: anywhere; }
kbd { font-family: var(--body); font-size: 0.86em; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-strong); border-bottom-width: 2px; padding: 1px 7px; border-radius: 6px; }
.path { font-weight: 600; color: #fff; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* code blocks */
.code { margin: 18px 0 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--code-bg); overflow: hidden; }
.code-top { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px 7px 16px; border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); font-weight: 600; background: rgba(255, 255, 255, 0.025); }
.copy { font: 600 12.5px var(--body); color: var(--soft); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 11px; cursor: pointer; }
.copy:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.copy.done { color: #06140b; background: var(--green); border-color: var(--green); }
/* No ligatures: => and === should look like what you type. */
pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 14px/1.65 var(--mono); color: #e6efe9; tab-size: 2; font-variant-ligatures: none; }
pre code { font: inherit; }
.c { color: var(--c-comment); font-style: italic; }
.s { color: var(--c-string); }
.k { color: var(--c-keyword); }
.n { color: var(--c-number); }
.f { color: var(--c-func); }
.k2 { color: #e6efe9; }

/* boxes */
.note, .tip, .warn { border: 1px solid var(--line); border-left-width: 3px; border-radius: 12px; padding: 13px 16px; margin: 20px 0; background: var(--panel); }
.note { border-left-color: #7cc7ff; }
.tip { border-left-color: var(--green); }
.warn { border-left-color: #ffb86b; }
.note > :first-child, .tip > :first-child, .warn > :first-child { margin-top: 0; }
.note > :last-child, .tip > :last-child, .warn > :last-child { margin-bottom: 0; }
.note b:first-child, .tip b:first-child, .warn b:first-child { color: #fff; }

/* tables */
.table { overflow-x: auto; margin: 18px 0 24px; border: 1px solid var(--line); border-radius: 13px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; background: rgba(255, 255, 255, 0.03); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
td.wrap code { white-space: normal; }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 46px; margin: 0 0 26px !important; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 700 14px var(--head); color: #06140b; background: var(--grad); }
.steps > li > b:first-child { display: block; color: #fff; font-size: 17px; margin-bottom: 4px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 22px 0 28px; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; text-decoration: none; color: inherit;
  transition: transform 0.15s, border-color 0.15s; }
a.card:hover { transform: translateY(-2px); border-color: rgba(95, 217, 106, 0.45); color: inherit; }
.card .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(95, 217, 106, 0.12); color: var(--lime); font-size: 20px; }
.card .ic svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font: 700 17.5px/1.3 var(--head); margin: 14px 0 6px; color: #fff; }
.card p { margin: 0; color: var(--muted) !important; font-size: 14.5px !important; }
.card .go { display: inline-block; margin-top: 12px; color: var(--lime); font-weight: 600; font-size: 14px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; color: #d5ecdc; background: rgba(95, 217, 106, 0.1); border: 1px solid rgba(95, 217, 106, 0.25);
  padding: 2px 9px; border-radius: 999px; vertical-align: 2px; margin-left: 4px; }

/* screenshots and diagrams */
figure { margin: 22px 0 28px; }
figure img, figure svg { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
figure svg { background: var(--panel-solid); }
figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }

/* the pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); }
.pager a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 13px; text-decoration: none; color: #fff; font-weight: 600; background: var(--panel); }
.pager a:hover { border-color: rgba(95, 217, 106, 0.45); color: #fff; }
.pager small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.pager .next { text-align: right; grid-column: 2; }

/* the home page */
.home .shell { grid-template-columns: minmax(0, 1fr); max-width: 1160px; }
.home .side, .home .toc-col { display: none; }
.home .content { max-width: none; padding-top: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding: 60px 0 30px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.04em; margin: 18px 0 18px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.5vw, 19px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 11px; border-radius: 999px; background: rgba(95, 217, 106, 0.1);
  border: 1px solid rgba(95, 217, 106, 0.28); color: #d3efd8; font-size: 14px; font-weight: 500; text-decoration: none; }
.pill:hover { color: #fff; background: rgba(95, 217, 106, 0.16); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(95, 217, 106, 0.18); }
.hero .code { margin: 0; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 80px -30px rgba(95, 217, 106, 0.35); }
.section { padding: 70px 0 0; }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); font-weight: 700; margin: 0 0 10px; }
.home h2 { font: 700 clamp(28px, 3.4vw, 40px)/1.1 var(--head); letter-spacing: -0.03em; margin: 0 0 12px; }
.home h2 .dim { color: var(--muted); }
.home .section > p { max-width: 640px; color: var(--soft); font-size: 17px; }
.home .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ways .card { padding: 24px; }
.ways .card ul { margin: 12px 0 0; padding-left: 18px; }
.ways .card li { color: var(--soft); font-size: 14.5px; margin: 4px 0; }
.faq details { border: 1px solid var(--line); border-radius: 13px; background: var(--panel); margin: 10px 0; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 15px 0; color: #fff; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.faq details p { color: var(--soft); }

footer { border-top: 1px solid var(--line); background: rgba(7, 11, 13, 0.6); margin-top: 40px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; max-width: 1440px; margin: 0 auto;
  padding: 28px 24px 36px; color: var(--muted); font-size: 14px; }
.home .foot-in { max-width: 1160px; }
footer .brand .word { height: 16px; }
footer .tag { margin: 6px 0 0; }
footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
footer nav a { text-decoration: none; color: var(--soft); }
footer nav a:hover { color: #fff; }

@media (max-width: 1220px) {
  .shell { grid-template-columns: 240px minmax(0, 1fr); }
  .toc-col { display: none; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .home .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .menu { display: block; }
  .doc .side { position: fixed; top: 64px; left: 0; bottom: 0; width: min(300px, 86vw); max-height: none; z-index: 15; background: var(--panel-solid);
    border-right: 1px solid var(--line); padding: 22px 14px 40px; transform: translateX(-105%); transition: transform 0.2s; }
  .doc.menu-open .side { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, 0.6); }
  .links { display: none; }
  .anchor { display: none; }
}
@media (max-width: 640px) {
  .top-in, .shell, .foot-in { padding-left: 16px; padding-right: 16px; }
  .top-in { gap: 12px; height: 58px; }
  .doc .side { top: 58px; }
  .brand .word { height: 17px; }
  .home .menu { display: none; }
  .content { padding-top: 24px; }
  .lead { font-size: 17px; }
  pre { font-size: 13px; padding: 14px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .cta { flex-direction: column; }
  .cta .btn { justify-content: center; }
  .steps > li { padding-left: 40px; }
  td code { white-space: normal; }
  th, td { padding: 9px 11px; }
  html { scroll-padding-top: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, a.card:hover { transform: none; }
  .doc .side { transition: none; }
}
