/* Shared by the five standalone docs pages. */
:root {
  color-scheme: light;
  --canvas: #f7f6fb;
  --paper: #fff;
  --ink: #232035;
  --muted: #605d70;
  --link: #523aa8;
  --soft: #eeeafa;
  --line: #dedbe8;
  --deep-line: #c8c2da;
  --sans: "Geist", "Inter", "Segoe UI", Arial, sans-serif;
  --serif: "STIX Two Text", Georgia, "Times New Roman", serif;
  --bar: 64px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: #352570; }
:focus-visible { outline: 3px solid #745bc8; outline-offset: 4px; border-radius: .2rem; }
[hidden] { display: none !important; }
.shell { width: min(100%, 86rem); padding-inline: clamp(1.1rem, 3.7vw, 3.4rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .75rem; z-index: 10; padding: .4rem .75rem; transform: translateY(-200%); background: var(--paper); }
.skip:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 4; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { min-height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: baseline; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand b { font: 700 1.52rem/1 var(--serif); letter-spacing: -.05em; }
.brand span { padding-left: .75rem; border-left: 1px solid var(--deep-line); color: var(--muted); font: 550 .875rem/1.2 var(--sans); }
.site-home {
  text-decoration: none; font-size: .9rem; font-weight: 650; padding: .46rem .9rem;
  color: var(--link); background: #f4f1fc; border: 1px solid #ded6f1; border-radius: .65rem;
}
.site-home:hover { background: #eae3fa; }
.columns {
  display: grid; grid-template-columns: minmax(10rem,.86fr) minmax(0,3.3fr) minmax(9.5rem,.78fr);
  align-items: start; gap: clamp(1rem,2.4vw,2.2rem); padding-block: 1.9rem 4rem;
}
.sidebar,.outline {
  position: sticky; top: calc(var(--bar) + 1.35rem); max-height: calc(100vh - var(--bar) - 2rem);
  overflow-y: auto; padding: .55rem .15rem .8rem; scrollbar-width: thin;
}
.nav-label { margin: 0 0 .65rem; padding-inline: .8rem; font-size: .83rem; font-weight: 700; color: var(--ink); }
.chapters,.outline ul,.crumbs ol,.timeline,.source-notes ul { padding: 0; margin: 0; list-style: none; }
.chapters { display: grid; gap: .17rem; }
.chapters a { display: block; padding: .62rem .8rem; font-size: .92rem; line-height: 1.35; text-decoration: none; border-radius: .55rem; color: var(--muted); }
.chapters a:hover { background: #ebe9f2; color: var(--ink); }
.chapters a[aria-current="page"] { color: #49318e; background: #e9e3f7; font-weight: 650; box-shadow: inset 3px 0 #7358c0; }
.outline .nav-label { padding-inline: 0; }
.outline ul { border-left: 1px solid var(--deep-line); }
.outline a { display: block; padding: .32rem 0 .32rem .75rem; font-size: .84rem; line-height: 1.45; color: var(--muted); text-decoration: none; }
.outline a:hover,.crumbs a:hover { text-decoration: underline; color: var(--link); }
.reader { min-width: 0; }
.mobile-menu { display: none; }
article { border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); padding: clamp(1.3rem, 3.2vw, 3rem); }
.byline { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 1rem; row-gap: .3rem; }
.byline p, .crumbs { margin: 0; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35em; }
.crumbs li + li::before { content: "/"; margin-right: .35em; color: #8c869a; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs [aria-current] { color: var(--ink); }
.intro { padding-bottom: clamp(1.3rem,2.8vw,2.2rem); margin-bottom: clamp(1.6rem,2.8vw,2.2rem); border-bottom: 1px solid var(--line); }
h1 { font: 650 clamp(2.35rem,4.4vw,4rem)/1.03 var(--serif); letter-spacing: -.055em; margin: 1.35rem 0 .8rem; text-wrap: balance; }
.lede { color: #4d495f; font-size: clamp(1.02rem,1.38vw,1.18rem); line-height: 1.58; margin: 0; }
.chapter { margin: 0 0 clamp(1.8rem,3vw,2.6rem); }
.chapter h2 { scroll-margin-top: calc(var(--bar) + 1.25rem); margin: 0 0 .8rem; font: 650 clamp(1.55rem,2.25vw,2.05rem)/1.18 var(--serif); letter-spacing: -.036em; text-wrap: balance; }
.chapter h3 { font-size: 1.03rem; line-height: 1.4; margin: 1rem 0 .35rem; }
.chapter p { font-size: 1rem; line-height: 1.67; margin: 0 0 .8rem; }
.chapter p:last-child { margin-bottom: 0; }
.chapter code,.source-notes code { font-family: "IBM Plex Mono", ui-monospace, monospace; overflow-wrap: anywhere; }
.chapter code { font-size: .93em; }
.timeline { display: grid; gap: .85rem; }
.timeline li { display: grid; grid-template-columns: 6.3rem minmax(0,1fr); gap: .9rem; padding-left: .85rem; border-left: 3px solid #a99acb; }
.timeline time { padding-top: .18rem; font-size: .86rem; font-weight: 620; color: var(--link); }
.timeline h3,.topic h3 { margin: 0 0 .35rem; }
.timeline p,.topic p { font-size: .95rem; line-height: 1.55; }
.timeline p { color: var(--muted); }
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.topic { position: relative; padding: 1rem; border: 1px solid var(--line); border-radius: .65rem; }
.topic:hover,.topic:focus-within { border-color: #b9a9dc; background: #faf8ff; }
.topic h3 { font-size: 1rem; }
.topic a { text-decoration: none; }
.topic a::after { content: ""; position: absolute; inset: 0; }
.topic p { color: var(--muted); }
.table-scroll { margin: .9rem 0; overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.48; font-variant-numeric: tabular-nums; }
caption,figcaption { text-align: left; font-size: .85rem; color: var(--muted); font-weight: 650; }
caption { padding-bottom: .45rem; }
th,td { padding: .62rem .65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: #f5f3fa; border-top: 1px solid var(--line); color: #49445d; font-size: .85rem; }
tbody th { font-weight: 650; }
.definitions { margin: 0; padding: 0; }
.definitions > div { display: grid; grid-template-columns: minmax(6rem,.85fr) 3fr; gap: 1rem; padding: .68rem 0; border-bottom: 1px solid var(--line); }
.definitions dt { font-weight: 650; }
.definitions dd { margin: 0; color: var(--muted); }
.math,.compare { margin: .95rem 0; padding: 1rem 1.2rem; background: #f7f4fc; border: 1px solid #dfd6ed; border-radius: .7rem; }
.math p { margin: .4rem 0 0; font-size: clamp(1.05rem,2vw,1.34rem); font-variant-numeric: tabular-nums; }
.math strong { color: var(--link); white-space: nowrap; }
.compare figcaption { font-weight: 700; color: var(--ink); font-size: 1rem; }
.range-label { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.range-label label { font-size: .92rem; }
.range-label output { min-width: 2.5em; text-align: center; font-weight: 700; color: var(--link); border: 1px solid #d6cbed; border-radius: .4rem; background: var(--paper); }
.compare input { display: block; width: 100%; accent-color: #6249a5; margin: .55rem 0 .12rem; cursor: pointer; }
.scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .79rem; }
.balances { margin: 1rem 0 0; display: grid; gap: .75rem; }
.balances > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .25rem .5rem; }
.balances dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.balances dt,.balances dd { font-size: .92rem; }
.balances dd > span:not(.instant-bar,.vesting-bar) { font-size: .74rem; font-weight: 550; color: var(--muted); }
.track { grid-column: 1/-1; background: #e6e1ef; height: .35rem; border-radius: .3rem; overflow: hidden; }
.track > span { height: 100%; display: block; }
.instant-bar { width: 35%; background: #817691; }
.vesting-bar { width: 33.333%; background: #7053b5; }
details > summary { cursor: pointer; }
.qa { border-top: 1px solid var(--line); scroll-margin-top: calc(var(--bar) + 1rem); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary,.mobile-menu summary,.source-notes summary { list-style: none; }
.qa summary::-webkit-details-marker,.mobile-menu summary::-webkit-details-marker,.source-notes summary::-webkit-details-marker { display: none; }
.qa summary { position: relative; display: block; padding: .95rem 1.9rem .95rem 0; }
.qa summary::after,.mobile-menu summary::after { content: ""; position: absolute; width: .48rem; height: .48rem; border: solid var(--link); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.qa summary::after { right: .35rem; top: 1.3rem; }
.qa[open] summary::after,.mobile-menu[open] summary::after { transform: translateY(.18rem) rotate(225deg); }
.qa h3 { margin: 0; font-size: 1rem; font-weight: 620; line-height: 1.45; }
.qa p { color: var(--muted); }
.qa p:last-child { margin: -.1rem 0 .9rem; }
.source-notes { font-size: .87rem; color: var(--muted); }
.source-notes summary { display: inline-flex; align-items: center; gap: .6rem; font-weight: 640; }
.source-notes summary::before { content: ""; width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(-45deg); }
.source-notes[open] summary::before { transform: rotate(45deg); }
.source-notes ul { margin: .8rem 0 .1rem 1rem; }
.source-notes li + li { margin-top: .5rem; }
.source-notes cite { font-style: normal; }
.source-notes code { display: block; font-size: .78rem; color: var(--muted); }
.pager { display: flex; gap: .75rem; justify-content: space-between; margin-top: .85rem; }
.pager a { padding: .8rem 1rem; background: var(--paper); flex: 0 1 calc(50% - .375rem); border: 1px solid var(--line); border-radius: .65rem; line-height: 1.35; text-decoration: none; }
.pager a:hover { background: #faf8ff; border-color: #b9a9dc; }
.pager span { display: block; color: var(--muted); font-size: .8rem; margin-bottom: .25rem; }
.pager strong { color: var(--ink); font-size: .92rem; font-weight: 650; }
.pager .go-next { text-align: right; margin-left: auto; }
@media (max-width: 68rem) {
  .columns { max-width: 64rem; grid-template-columns: 10.5rem minmax(0,1fr); gap: 1.3rem; }
  .outline { display: none; }
}
@media (max-width: 47.99rem) {
  :root { --bar: 56px; }
  .shell { padding-inline: 1rem; }
  .columns { display: block; padding-block: .85rem 2.25rem; max-width: 44rem; }
  .sidebar { display: none; }
  .mobile-menu { display: block; margin-bottom: .7rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); }
  .mobile-menu summary { position: relative; padding: .65rem .9rem; font-size: .94rem; font-weight: 650; }
  .mobile-menu summary::after { right: 1.1rem; top: 1.02rem; }
  .mobile-menu nav { padding: 0 .35rem .4rem; }
  article { padding: 1.5rem 1.15rem; }
  .byline { row-gap: .5rem; }
  h1 { margin-top: 1.1rem; }
}
@media (max-width: 33rem) {
  .shell { padding-inline: .8rem; }
  .topics { grid-template-columns: 1fr; }
  .topic { padding: .8rem; }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; }
  .timeline time { padding: 0; }
  .definitions > div { grid-template-columns: 1fr; gap: .15rem; }
  th,td { padding: .5rem .34rem; }
  table { font-size: .84rem; }
  thead th { font-size: .8rem; }
  .byline { align-items: flex-start; flex-direction: column; }
  .math,.compare { padding: .85rem .75rem; }
}
@media (max-width: 22rem) {
  .header-row { gap: .45rem; }
  .brand { gap: .45rem; }
  .brand b { font-size: 1.34rem; }
  .brand span { padding-left: .45rem; }
  .site-home { padding-inline: .55rem; font-size: .84rem; }
}
@media print {
  :root,body { background: #fff; }
  .site-header,.sidebar,.outline,.pager,.skip,.mobile-menu { display: none; }
  .columns { display: block; padding: 0; }
  article { padding: 0; border: 0; }
  figure,tr,.topic { break-inside: avoid; }
  .chapter h2 { break-after: avoid; }
  #monthly-control { display: none; }
  #monthly-table[hidden] { display: block !important; }
}
