/* The white paper page (/whitepaper, built by web/whitepaper/build.mjs). The app's colours, no script. */
:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --panel: #12151c;
  --panel-2: #191d26;
  --border: #242936;
  --text: #e9ebf1;
  --muted: #8b92a4;
  --green: #22b26a;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px max(16px, calc((100% - 800px) / 2));
  background: rgb(11 13 18 / 0.92);
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.top .home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.top .pdf {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--green);
  color: #0b0d12;
  font-weight: 600;
  text-decoration: none;
}
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 16px 0 8px;
}
h2 {
  font-size: 1.45rem;
  margin: 44px 0 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
h3 {
  font-size: 1.12rem;
  margin: 28px 0 8px;
}
h2,
h3 {
  scroll-margin-top: 64px;
}
a {
  color: var(--green);
  text-underline-offset: 2px;
}
p,
li {
  overflow-wrap: anywhere;
}
ul,
ol {
  padding-left: 22px;
}
li + li {
  margin-top: 6px;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
code {
  font: 0.88em ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--panel-2);
  padding: 1px 5px;
  border-radius: 5px;
}
pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  line-height: 1.35;
}
pre code {
  background: none;
  padding: 0;
  font-size: 0.82rem;
}
.table {
  overflow-x: auto;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.45;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--panel-2);
}
tr:last-child td {
  border-bottom: 0;
}
strong {
  color: #fff;
}
figure {
  margin: 20px 0;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* The PDF (web/whitepaper/pdf.mjs prints this page): light paper, no bar. */
@media print {
  :root {
    color-scheme: light;
    --bg: #fff;
    --panel: #f4f5f8;
    --panel-2: #eceef3;
    --border: #d5d9e2;
    --text: #15171c;
    --muted: #555b69;
    --green: #127a47;
  }
  .top {
    display: none;
  }
  html,
  body {
    font-size: 10.5pt;
  }
  main {
    max-width: none;
    padding: 0;
  }
  strong {
    color: inherit;
  }
  h2 {
    break-after: avoid;
  }
  pre,
  .table,
  figure,
  li {
    break-inside: avoid;
  }
}
