/* ERNIE — one stylesheet for every page. Manrope only, paper and ink, 1px lines, no shadows.
   Neon orange appears in two places: the status dot and the winning number. */

:root {
  --paper: oklch(0.985 0.004 85);
  --white: oklch(1 0 0);
  --ink: oklch(0.2 0.012 255);
  --ink-hover: oklch(0.3 0.02 255);
  --slate: oklch(0.46 0.016 255);
  --slate-soft: oklch(0.6 0.012 255);
  --line: oklch(0.905 0.006 255);
  --line-soft: oklch(0.94 0.004 255);
  --mist: oklch(0.965 0.005 245);
  --link: oklch(0.47 0.1 248);
  --ok: oklch(0.47 0.11 155);
  --neon: oklch(0.72 0.19 48);        /* the tube glow: status dot on dark */
  --neon-ink: oklch(0.57 0.18 42);    /* the winning number on paper */
  --night: oklch(0.12 0.003 150);     /* matches the black of the hero photo */
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --wrap: 72rem;
  --gutter: 1.25rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(.32, .72, 0, 1);
}
@media (min-width: 768px) { :root { --gutter: 2.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-width: 320px; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.5rem;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--ink); color: var(--white); padding: .75rem 1rem; border-radius: .5rem; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); padding: 0 var(--gutter); margin: 0 auto; }

/* ── type ── */
.h1 { font-size: 2.5rem; line-height: 2.75rem; font-weight: 500; letter-spacing: -0.03em; }
@media (min-width: 768px) { .h1 { font-size: 3.5rem; line-height: 3.75rem; } }
@media (min-width: 1280px) { .h1 { font-size: 4rem; line-height: 4.25rem; } }
.h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 500; letter-spacing: -0.02em; }
@media (min-width: 768px) { .h2 { font-size: 2.25rem; line-height: 2.75rem; } }
.h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.lede { color: var(--slate); max-width: 38rem; font-size: 1.125rem; line-height: 1.75rem; }
@media (min-width: 768px) { .lede { font-size: 1.25rem; line-height: 2rem; } }
.body { color: var(--slate); max-width: 65ch; }
.body + .body { margin-top: 1rem; }
.small { color: var(--slate); font-size: .875rem; line-height: 1.25rem; }
.label { color: var(--link); font-size: .875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: .01em; margin-bottom: .75rem; }
.body a, .small a, .faq a, .prose a, .facts dd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: text-decoration-color .2s var(--ease); }
.body a:hover, .small a:hover, .faq a:hover, .prose a:hover, .facts dd a:hover { text-decoration-color: currentColor; }
.num { font-variant-numeric: tabular-nums; }

/* ── buttons & links ── */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: 0 1.25rem; border-radius: .5rem; border: 1px solid transparent;
  font-size: 1rem; line-height: 1.5rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-hover); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--mist); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--white); border-color: var(--slate-soft); }
.btn--ghost-dark { background: transparent; color: var(--white); border-color: oklch(1 0 0 / .35); }
.btn--ghost-dark:hover { background: oklch(1 0 0 / .08); border-color: oklch(1 0 0 / .7); }
.btn--sm { min-height: 2.5rem; padding: 0 1rem; font-size: .9375rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.link { display: inline-flex; align-items: center; gap: .375rem; color: var(--link); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s var(--ease); }
.link:hover { text-decoration-color: currentColor; }
.link svg { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(2px); }
.link--back:hover svg { transform: translateX(-2px); }

/* ── header: a light island floating over the hero, sticky on scroll ── */
.hdr { position: sticky; top: 0; z-index: 40; padding-top: calc(env(safe-area-inset-top, 0px) + .5rem); padding-bottom: .5rem; margin-bottom: -4.5rem; pointer-events: none; }
.hdr .wrap { padding-left: max(.75rem, calc(var(--gutter) - .875rem)); padding-right: max(.75rem, calc(var(--gutter) - .375rem)); }
.island {
  pointer-events: auto; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 3.5rem; padding: 0 .375rem 0 .875rem; border-radius: 1rem;
  background: oklch(1 0 0 / .8); border: 1px solid oklch(0.2 0.012 255 / .08);
  -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .625rem; min-height: 2.75rem; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.brand svg, .brand img { width: 1.75rem; height: 1.75rem; flex: none; }
.nav { display: none; align-items: center; gap: .25rem; }
.nav a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .75rem; border-radius: .5rem; color: var(--slate); font-size: .9375rem; line-height: 1.5rem; font-weight: 500; transition: color .2s var(--ease), background-color .2s var(--ease); }
.nav a:hover { color: var(--ink); background: var(--mist); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a.nav__cta { margin-left: .5rem; padding: 0 1rem; border-radius: .625rem; background: var(--ink); color: var(--white); font-weight: 600; }
.nav a.nav__cta:hover { background: var(--ink-hover); color: var(--white); }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: .75rem; background: none; cursor: pointer; }
.menu-btn span { position: relative; display: block; width: 1.125rem; height: 10px; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn span::before { top: 1px; }
.menu-btn span::after { top: 7.5px; }
.menu-btn[aria-expanded="true"] span::before { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 4.25px; transform: rotate(-45deg); }
.menu { pointer-events: auto; margin-top: .5rem; padding: .5rem; border-radius: 1rem; background: var(--white); border: 1px solid var(--line); }
.menu a { display: flex; align-items: center; min-height: 3rem; padding: 0 .75rem; border-radius: .5rem; font-weight: 500; }
.menu a:hover { background: var(--mist); }
.menu a[aria-current="page"] { color: var(--link); }
.menu .btn { width: 100%; margin-top: .5rem; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn, .menu { display: none !important; }
}
/* pages without a dark hero start below the island */
.page-top { padding-top: 6.5rem; }

/* ── hero (dark, one photo bleeding right) ── */
.hero { --hero-bg: var(--night); position: relative; display: grid; grid-template-columns: 1fr; background: var(--hero-bg); color: var(--white); overflow: hidden; }
.hero__media { position: relative; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__copy { max-width: 32rem; }
.hero .h1 { color: var(--white); max-width: 13ch; }
.hero .lede { color: oklch(0.9 0.006 200); margin-top: 1.25rem; }
.hero .actions { margin-top: 2rem; }
.status { display: inline-flex; align-items: center; gap: .625rem; margin-top: 2.25rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: oklch(0.84 0.01 200); }
.status::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 99px; background: var(--neon); }
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: clamp(34rem, 100svh, 48rem); }
  .hero__content { grid-area: 1 / 1; align-self: center; width: 100%; padding: 7rem 3.5rem 5rem max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
  .hero__media { grid-area: 1 / 2; min-height: 100%; }
  /* show the whole column of five tubes below the island: scale by height, pin to the right edge */
  .hero__media img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%; }
  .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero-bg) 0%, transparent 22%); pointer-events: none; }
  .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--hero-bg), transparent 40%), linear-gradient(to bottom, var(--hero-bg) 5.5%, transparent 16%); pointer-events: none; }
}
@media (max-width: 1023px) {
  .hero { min-height: min(100svh - .5rem, 46rem); }
  .hero > * { grid-area: 1 / 1; }
  .hero__media img { object-position: 78% 18%; }
  .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--hero-bg) 10%, oklch(0.12 0.003 150 / .86) 40%, oklch(0.12 0.003 150 / 0) 70%), linear-gradient(to bottom, oklch(0.12 0.003 150 / .45), transparent 24%); pointer-events: none; }
  .hero__content { position: relative; z-index: 1; align-self: end; padding-top: 6rem; padding-bottom: 2rem; }
  .hero .lede { margin-top: .875rem; }
  .hero .actions { margin-top: 1.5rem; }
  .status { margin-top: 1.25rem; }
}
@media (max-width: 479px) {
  .hero .h1 { font-size: 2.375rem; line-height: 2.625rem; }
  .hero .lede { font-size: 1.0625rem; line-height: 1.625rem; }
  .hero .actions { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
  .hero .actions .btn { padding: 0 .625rem; font-size: .9375rem; }
}
@media (max-width: 359px) { .hero .actions { grid-template-columns: 1fr; } }

/* ── token bar ── */
.token { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 1.25rem 0; }
.token__row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; }
.token__meta { display: flex; align-items: baseline; gap: .75rem; color: var(--slate); font-size: .875rem; }
.token__name { color: var(--ink); font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.token__addr { display: flex; flex-direction: column; gap: .125rem; flex: 1 1 22rem; min-width: 0; }
.token__label { color: var(--slate); font-size: .875rem; line-height: 1.25rem; }
.token__value { color: var(--ink); font-size: .875rem; line-height: 1.25rem; }
.token .btn { min-height: 2.75rem; }

/* ── sections ── */
.section { padding: 3rem 0; }
@media (min-width: 768px) { .section { padding: 4rem 0; } }
@media (min-width: 1024px) { .section { padding: 6rem 0; } }
.section + .section { border-top: 1px solid var(--line-soft); }
.white { background: var(--white); }
.head { max-width: 42rem; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .head { margin-bottom: 2.5rem; } }
.head .h2 + p, .head .h1 + p { margin-top: 1rem; }
.split { display: grid; align-items: center; gap: 2.5rem; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split--top { align-items: start; }

/* media frame (a still, like a clip poster) */
.frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .75rem; border: 1px solid var(--line-soft); background: var(--mist); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.caption { margin-top: .75rem; }

/* key / value facts */
.facts { display: grid; border-top: 1px solid var(--line); margin-top: 1.5rem; }
.facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--slate); font-size: .875rem; line-height: 1.5rem; }
.facts dd { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.facts dd small { display: block; color: var(--slate); font-size: .875rem; line-height: 1.25rem; }
.facts code { font-size: .875rem; }
@media (max-width: 479px) { .facts > div { grid-template-columns: 1fr; gap: .125rem; } }
.win, .facts dd.win, .record dd.win, .table td.win { color: var(--neon-ink); font-weight: 700; }
.hash { font-family: var(--mono); font-size: .8125rem; line-height: 1.375rem; overflow-wrap: anywhere; word-break: break-all; }

/* three steps */
.flow { display: grid; gap: 2rem; list-style: none; }
.flow li { border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.flow li > span { display: block; margin-bottom: .5rem; color: var(--slate); font-size: .875rem; line-height: 1.25rem; }
.flow li p { margin-top: .5rem; color: var(--slate); }
@media (min-width: 900px) { .flow--3 { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.how { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .how { grid-template-columns: minmax(0, 1fr) 26rem; gap: 4rem; align-items: start; }
  .how .flow { gap: 2rem; }
}

/* schema / record card */
.record { border: 1px solid var(--line); border-radius: .75rem; background: var(--white); overflow: hidden; }
.record__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; background: var(--mist); border-bottom: 1px solid var(--line-soft); }
.record__head p { font-size: .875rem; line-height: 1.25rem; font-weight: 600; }
.record__tag { color: var(--slate); font-size: .8125rem; line-height: 1.25rem; }
.record dl { display: grid; padding: .5rem 1rem 1rem; }
.record dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.record dl > div:last-child { border-bottom: 0; }
.record dt { color: var(--slate); font-family: var(--mono); font-size: .8125rem; line-height: 1.5rem; }
.record dd { color: var(--ink); font-size: .9375rem; line-height: 1.5rem; min-width: 0; overflow-wrap: anywhere; }
.record dd code { font-size: .8125rem; }
@media (max-width: 479px) { .record dl > div { grid-template-columns: 1fr; gap: 0; } }

/* two audiences */
.audience { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .audience { grid-template-columns: 1fr 1fr; } }
.audience > div { display: flex; flex-direction: column; gap: 1rem; padding: 2rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--white); min-width: 0; }
.audience .link { margin-top: auto; padding-top: .5rem; }
.after { margin-top: 1.75rem; }
@media (max-width: 479px) { .audience > div { padding: 1.5rem; } }

/* code line */
.code { position: relative; display: flex; align-items: flex-start; gap: .75rem; padding: .875rem 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); }
.code code { flex: 1; min-width: 0; font-size: .8125rem; line-height: 1.375rem; color: var(--ink); overflow-wrap: anywhere; word-break: break-all; white-space: pre-wrap; }
.code .c { color: var(--slate); }
.copy { flex: none; display: inline-flex; align-items: center; gap: .375rem; min-height: 2rem; padding: 0 .625rem; border: 1px solid var(--line); border-radius: .375rem; background: var(--white); color: var(--ink); font-size: .8125rem; font-weight: 600; cursor: pointer; }
.copy:hover { border-color: var(--slate-soft); }
.copy svg { width: .875rem; height: .875rem; }

/* questions */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; padding: 1.25rem 0; font-size: 1.0625rem; line-height: 1.5rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--slate); font-size: 1.5rem; font-weight: 400; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { max-width: 65ch; padding: 0 0 1.5rem; color: var(--slate); }
.faq details > div p + p { margin-top: .75rem; }
.q-side .body { margin-top: 1rem; }
.q-side .actions { margin-top: 1.5rem; }

/* footer */
.foot { background: var(--white); border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.foot__grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot__note { max-width: 22rem; margin-top: .75rem; }
.foot h2 { margin-bottom: .75rem; font-size: .875rem; line-height: 1.25rem; font-weight: 600; }
.foot ul { display: grid; gap: .25rem; list-style: none; }
.foot li a { display: inline-flex; align-items: center; min-height: 2rem; color: var(--slate); font-size: .9375rem; }
.foot li a:hover { color: var(--ink); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
@media (max-width: 767px) { .foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 768px) { .foot__cols { display: contents; } }

/* ── inner pages ── */
.pagehead { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.pagehead__inner { position: relative; z-index: 1; padding-top: 7.5rem; padding-bottom: 4rem; }
.pagehead .h1 { max-width: 16ch; }
.pagehead .lede { margin-top: 1.25rem; }
.pagehead--sky { min-height: 30rem; background: oklch(0.8 0.07 240); }
.pagehead--sky .pagehead__media { position: absolute; inset: 0; }
.pagehead--sky .pagehead__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.pagehead--sky .pagehead__veil { position: absolute; inset: 0; background: linear-gradient(to right, oklch(0.975 0.01 240 / .94) 0%, oklch(0.975 0.01 240 / .78) 38%, oklch(0.975 0.01 240 / 0) 62%); }
.pagehead--sky .lede { color: oklch(0.36 0.02 250); max-width: 34rem; }
.pagehead--sky .h1 { max-width: 13ch; }
@media (max-width: 899px) {
  .pagehead--sky { min-height: 0; background: oklch(0.975 0.01 240); }
  .pagehead--sky .pagehead__media { position: relative; inset: auto; height: 19rem; }
  .pagehead--sky .pagehead__media img { object-position: 74% 50%; }
  .pagehead--sky .pagehead__veil { inset: 0 0 auto 0; height: 19rem; background: linear-gradient(to bottom, oklch(0.975 0.01 240 / 0) 60%, oklch(0.975 0.01 240) 100%); }
  .pagehead--sky .pagehead__inner { padding-top: .5rem; padding-bottom: 2.5rem; }
}
@media (max-width: 599px) { .recent th:nth-child(2), .recent td:nth-child(2) { display: none; } }
.subnav { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.subnav ul { display: flex; gap: .25rem; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 .75rem; color: var(--slate); font-size: .9375rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.anchor { scroll-margin-top: 5rem; }

.tabs { display: flex; gap: .25rem; width: max-content; max-width: 100%; padding: .25rem; border-radius: .625rem; background: var(--mist); overflow-x: auto; scrollbar-width: none; margin-bottom: 2rem; }
.tabs::-webkit-scrollbar { display: none; }
.tab { min-height: 2.5rem; padding: 0 1rem; border: 0; border-radius: .5rem; background: none; color: var(--slate); font-size: .9375rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); outline: 1px solid var(--line-soft); }
.checks { display: grid; gap: .5rem; list-style: none; margin-top: 1.25rem; }
.checks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .625rem; color: var(--ink); }
.checks li::before { content: ""; width: .875rem; height: .5rem; margin-top: .45rem; border-left: 1.5px solid var(--ok); border-bottom: 1.5px solid var(--ok); transform: rotate(-45deg); }

/* steps with numbered circles */
.steps { display: grid; gap: .75rem; list-style: none; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; counter-increment: s; min-width: 0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-top: -.125rem; border-radius: 99px; background: var(--mist); color: var(--slate); font-size: .8125rem; font-weight: 600; }
.steps li > span { min-width: 0; overflow-wrap: anywhere; }

/* catalogue table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .75rem; background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5rem; }
.table th { text-align: left; font-size: .8125rem; font-weight: 600; color: var(--slate); background: var(--mist); padding: .625rem 1rem; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.table td { padding: .625rem 1rem; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td code { font-size: .8125rem; }
.table a { color: var(--link); }
.table a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tag { display: inline-flex; align-items: center; min-height: 1.5rem; padding: 0 .5rem; border-radius: 99px; background: var(--mist); color: var(--ink); font-size: .8125rem; font-weight: 600; }

/* ── the live demo instrument ── */
.bench { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .bench { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; } }
.panel { border: 1px solid var(--line); border-radius: .75rem; background: var(--white); min-width: 0; }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line-soft); }
.panel__head .h3 { font-size: 1.0625rem; line-height: 1.5rem; }
.panel__body { padding: 1.25rem; }
@media (min-width: 768px) { .panel__body { padding: 1.5rem; } }
.pill { display: inline-flex; align-items: center; gap: .5rem; min-height: 1.75rem; padding: 0 .625rem; border-radius: 99px; border: 1px solid var(--line); color: var(--slate); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: .4375rem; height: .4375rem; border-radius: 99px; background: var(--ok); }
.pill.is-replay::before { background: var(--slate-soft); }
.clock { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; }
.clock__t { font-size: 3rem; line-height: 3.25rem; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.clock__l { color: var(--slate); font-size: .9375rem; }
.state { margin-top: .5rem; color: var(--ink); max-width: 60ch; min-height: 3rem; }
.sum { margin-top: 1.5rem; }
.sum .facts { margin-top: 0; }
.sum .facts > div { grid-template-columns: 8.5rem 1fr; }
@media (max-width: 479px) { .sum .facts > div { grid-template-columns: 1fr; } }
.bonds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; list-style: none; margin-top: 1rem; }
@media (min-width: 560px) { .bonds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .bonds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bond { display: grid; gap: .125rem; width: 100%; padding: .625rem .75rem; text-align: left; border: 1px solid var(--line); border-radius: .5rem; background: var(--white); cursor: pointer; transition: border-color .2s var(--ease); }
.bond:hover { border-color: var(--slate-soft); }
.bond__i { color: var(--slate); font-size: .75rem; line-height: 1rem; font-family: var(--mono); }
.bond__n { font-size: .9375rem; line-height: 1.375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bond__tag { min-height: 1rem; color: var(--slate); font-size: .75rem; line-height: 1rem; }
.bond.is-win { border-color: var(--neon-ink); box-shadow: inset 0 0 0 1px var(--neon-ink); }
.bond.is-win .bond__n, .bond.is-win .bond__tag { color: var(--neon-ink); }
.bond.is-mine { border-color: var(--ink); }
.bond.is-next { border-style: dashed; border-color: var(--ink); }
.side { display: grid; gap: 1.5rem; align-content: start; min-width: 0; }
.side .facts > div { grid-template-columns: 1fr; gap: .125rem; }
.pot__n { display: flex; align-items: baseline; gap: .5rem; }
.pot__n b { font-size: 2.5rem; line-height: 2.75rem; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pot__n span { color: var(--slate); font-size: 1.125rem; }
.section--tight { padding-top: 2.5rem; }
@media (min-width: 1024px) { .section--tight { padding-top: 3rem; } }
.bar { height: .375rem; margin: 1rem 0; border-radius: 99px; background: var(--mist); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.recent td:nth-child(6) { font-weight: 600; }
.recent tr.is-new td { background: var(--paper); }

/* check-this-draw box on the sample page */
.check { margin-top: 3rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--white); }
.check .actions { margin-top: 1.25rem; }
.check__out { margin-top: 1rem; }
.ok, .facts dd.ok { color: var(--ok); font-weight: 600; }
.bad, .facts dd.bad { color: oklch(0.5 0.18 27); font-weight: 600; }
.facts--keys dt { font-family: var(--mono); font-size: .8125rem; }

.mission-grid { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 960px) { .mission-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.mission-grid .h3 { margin-bottom: 1rem; }
.accs { margin-top: 3rem; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }

/* legal pages */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: .75rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--slate); }
.prose p + p { margin-top: .75rem; }
.prose ul { margin-top: .75rem; padding-left: 1.25rem; display: grid; gap: .375rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.brand img { border-radius: 50%; object-fit: cover; }

.hash{overflow-wrap:anywhere;word-break:break-word;min-width:0}.table .hash{max-width:24rem}.code pre{white-space:pre-wrap;overflow-wrap:anywhere}.prose .hash{font-size:.85rem}
