@font-face {
  font-family: "Geist";
  src: url("../assets/Geist-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/InstrumentSerif-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #0b0d10;
  --slate: #161a1f;
  --rule: #2a3038;
  --dim: #7a8590;
  --paper: #e6e8ea;
  --amber: #f2b544;
  --orange: #f5813f;
  --pink: #f0426e;
  --header-height: 4.75rem;
  --sidebar-width: 17rem;
  --article-width: 48rem;
  color-scheme: dark;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--paper);
  background: var(--ink);
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 2rem);
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 13, 16, 0.93) 0%, rgba(11, 13, 16, 0.88) 47%, rgba(11, 13, 16, 0.64) 100%),
    linear-gradient(180deg, rgba(11, 13, 16, 0.12), var(--ink) 96%);
  content: "";
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  color: var(--ink);
  background: var(--amber);
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.7rem;
  left: 50%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--amber);
  border-radius: 0.45rem;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.78rem;
  transform: translate(-50%, -180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  outline: none;
  transform: translate(-50%, 0);
}

[tabindex="-1"]:focus {
  outline: none;
}

.docs-backdrop,
.docs-backdrop-color {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.docs-backdrop::before,
.docs-backdrop-color::before {
  position: absolute;
  inset: -3%;
  background-position: 62% 48%;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  transform-origin: 72% 44%;
  animation: docs-liquid-flow 24s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  backface-visibility: hidden;
  will-change: transform;
}

.docs-backdrop::before {
  background-image: url("../assets/liquid-background-graphite-motion-5k.png");
}

.docs-backdrop-color {
  z-index: 0;
  opacity: 0.58;
  -webkit-mask-image: radial-gradient(ellipse 45% 62% at 94% 17%, #000 0%, rgba(0, 0, 0, 0.92) 28%, rgba(0, 0, 0, 0.3) 68%, transparent 100%);
  mask-image: radial-gradient(ellipse 45% 62% at 94% 17%, #000 0%, rgba(0, 0, 0, 0.92) 28%, rgba(0, 0, 0, 0.3) 68%, transparent 100%);
}

.docs-backdrop-color::before {
  background-image: url("../assets/liquid-background-motion-5k.png");
}

@keyframes docs-liquid-flow {
  0%,
  100% {
    transform: translate3d(-0.35%, -0.2%, 0) scale3d(1.008, 1.016, 1);
  }
  50% {
    transform: translate3d(0.35%, 0.2%, 0) scale3d(1.016, 1.008, 1);
  }
}

.reading-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--orange), var(--pink));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.docs-header {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(18rem, 30rem) 1fr auto;
  gap: 1.25rem;
  align-items: center;
  height: var(--header-height);
  padding: 0 2rem;
  border-bottom: 1px solid rgba(230, 232, 234, 0.13);
  background: rgba(11, 13, 16, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  backdrop-filter: blur(22px) saturate(1.08);
}

.header-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  color: var(--paper);
}

.docs-brand img {
  display: block;
  width: 2.25rem;
  height: auto;
  flex: 0 0 auto;
}

.docs-brand span {
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 520;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-brand strong {
  color: var(--dim);
  font-weight: 450;
}

.icon-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  place-items: center;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease;
}

.icon-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: rgba(242, 181, 68, 0.5);
  color: var(--amber);
  background: rgba(230, 232, 234, 0.045);
  outline: none;
}

.nav-toggle {
  display: none;
  margin-right: 0.5rem;
}

.nav-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.social-link {
  grid-column: 4;
}

.docs-search {
  position: relative;
  grid-column: 2;
  display: flex;
  align-items: center;
  width: 100%;
  height: 2.8rem;
  border: 1px solid rgba(230, 232, 234, 0.14);
  border-radius: 0.7rem;
  background: rgba(22, 26, 31, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 220ms ease, background-color 220ms ease;
}

.docs-search:focus-within {
  border-color: rgba(242, 181, 68, 0.56);
  background: rgba(22, 26, 31, 0.72);
}

.search-icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.95rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--dim);
  stroke-linecap: round;
  stroke-width: 1.7;
}

.docs-search input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 0.75rem;
  border: 0;
  outline: none;
  color: var(--paper);
  background: transparent;
  font-size: 0.92rem;
}

.docs-search input::placeholder {
  color: var(--dim);
  opacity: 0.82;
}

.docs-search > kbd {
  display: inline-flex;
  gap: 0.22rem;
  align-items: center;
  height: 1.75rem;
  margin-right: 0.45rem;
  padding: 0 0.5rem;
  border: 1px solid rgba(230, 232, 234, 0.12);
  border-radius: 0.4rem;
  color: var(--dim);
  background: rgba(11, 13, 16, 0.42);
  font-family: inherit;
  font-size: 0.72rem;
}

.search-popover {
  position: absolute;
  z-index: 120;
  top: calc(100% + 0.65rem);
  right: -1.5rem;
  left: -1.5rem;
  overflow: hidden;
  border: 1px solid rgba(230, 232, 234, 0.16);
  border-radius: 0.9rem;
  background: rgba(15, 18, 22, 0.94);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
  backdrop-filter: blur(24px) saturate(1.12);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-popover[hidden] {
  display: none;
}

.search-status {
  padding: 0.9rem 1rem 0.55rem;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.search-popover ol {
  max-height: min(24rem, 56vh);
  margin: 0;
  padding: 0.35rem;
  overflow-y: auto;
  list-style: none;
}

.search-popover li + li {
  margin-top: 0.15rem;
}

.search-result {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.72rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  color: var(--paper);
}

.search-result:hover,
.search-result.is-selected {
  border-color: rgba(230, 232, 234, 0.11);
  background: rgba(230, 232, 234, 0.055);
}

.result-index {
  color: var(--amber);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.result-copy {
  min-width: 0;
}

.result-copy strong,
.result-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-copy strong {
  font-size: 0.86rem;
  font-weight: 540;
}

.result-copy small {
  margin-top: 0.2rem;
  color: var(--dim);
  font-size: 0.72rem;
}

.result-arrow {
  color: var(--dim);
  font-size: 0.85rem;
}

.search-empty {
  padding: 2.4rem 1rem;
  color: var(--dim);
  font-size: 0.84rem;
  text-align: center;
}

.search-hint {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid rgba(230, 232, 234, 0.1);
  color: var(--dim);
  font-size: 0.66rem;
}

.search-hint span {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
}

.search-hint kbd {
  min-width: 1.35rem;
  padding: 0.12rem 0.28rem;
  border: 1px solid rgba(230, 232, 234, 0.14);
  border-radius: 0.25rem;
  color: var(--paper);
  background: rgba(230, 232, 234, 0.04);
  font-family: inherit;
  text-align: center;
}

.docs-sidebar {
  position: fixed;
  z-index: 60;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 2.25rem 1.5rem 1.5rem 2rem;
  overflow-y: auto;
  border-right: 1px solid rgba(230, 232, 234, 0.12);
  background: rgba(11, 13, 16, 0.38);
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

.docs-sidebar nav {
  flex: 1;
}

.nav-group {
  padding: 0 0 1.5rem;
}

.nav-group + .nav-group {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(230, 232, 234, 0.1);
}

.nav-group p,
.page-toc > p {
  margin: 0 0 0.7rem;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0.115em;
  text-transform: uppercase;
}

.nav-group a {
  position: relative;
  display: block;
  margin: 0.12rem 0;
  padding: 0.53rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  color: #a6afb7;
  font-size: 0.82rem;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.nav-group a:hover {
  color: var(--paper);
}

.nav-group a.is-active {
  border-color: rgba(230, 232, 234, 0.12);
  color: var(--paper);
  background: rgba(230, 232, 234, 0.035);
}

.nav-group a.is-active::before {
  position: absolute;
  top: 0.45rem;
  bottom: 0.45rem;
  left: -0.76rem;
  width: 2px;
  border-radius: 2px;
  background: var(--amber);
  content: "";
}

.nav-group a.nav-child {
  padding-top: 0.38rem;
  padding-bottom: 0.38rem;
  padding-left: 1.35rem;
  color: var(--dim);
  font-size: 0.75rem;
}

.nav-group a.nav-child::after {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.42;
  transform: translateY(-50%);
}

.nav-group a.nav-child.is-active {
  color: var(--paper);
}

.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(230, 232, 234, 0.1);
  color: var(--dim);
  font-size: 0.68rem;
}

.sidebar-footer a:hover {
  color: var(--paper);
}

.nav-scrim {
  display: none;
}

.docs-main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: calc(var(--header-height) + 3.35rem) clamp(14rem, 17vw, 19rem) 9rem clamp(3rem, 6vw, 7rem);
}

.docs-article {
  width: min(100%, var(--article-width));
}

.doc-section,
.subsection {
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.doc-section {
  position: relative;
  padding: 0 0 7rem;
}

.doc-section + .doc-section {
  padding-top: 6rem;
  border-top: 1px solid rgba(230, 232, 234, 0.11);
}

.breadcrumb {
  margin-bottom: 1.3rem;
  color: var(--dim);
  font-size: 0.71rem;
  font-weight: 570;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumb span {
  margin: 0 0.55rem;
  color: rgba(230, 232, 234, 0.25);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 42rem;
  margin-bottom: 2.7rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(4.7rem, 7.4vw, 7rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 40rem;
  margin-bottom: 1rem;
  color: var(--paper);
  font-size: clamp(1.3rem, 2vw, 1.72rem);
  font-weight: 490;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.version-line {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 2.7rem;
  color: var(--dim);
  font-size: 0.72rem;
}

.version-line span {
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 50%;
  background: var(--amber);
}

.docs-article p,
.docs-article li {
  color: #abb2b9;
  font-size: 1rem;
  line-height: 1.78;
}

.docs-article p {
  margin-bottom: 1.25rem;
}

.docs-article strong {
  color: var(--paper);
  font-weight: 570;
}

.section-number {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.16em;
}

.section-number::after {
  width: 2.4rem;
  height: 1px;
  background: rgba(242, 181, 68, 0.42);
  content: "";
}

h2 {
  margin-bottom: 1.8rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4.45rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h2 a,
h3 a {
  transition: color 180ms ease;
}

h2 a:hover,
h3 a:hover {
  color: #fff;
}

h3 {
  margin-bottom: 0.8rem;
  color: var(--paper);
  font-size: 1.13rem;
  font-weight: 560;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

h3 a > span {
  display: inline-block;
  min-width: 2.3rem;
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  transform: translateY(-0.12em);
}

.section-lead {
  color: var(--paper) !important;
  font-size: 1.25rem !important;
  line-height: 1.55 !important;
  letter-spacing: -0.02em;
}

.statement-card {
  position: relative;
  display: flex;
  min-height: 7.5rem;
  align-items: center;
  margin: 2.8rem 0;
  padding: 1.9rem 2.25rem;
  overflow: hidden;
  border: 1px solid rgba(230, 232, 234, 0.28);
  border-radius: 0.85rem;
  background: rgba(11, 13, 16, 0.34);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.statement-card::after {
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  width: 17rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 181, 68, 0.12), transparent 66%);
  content: "";
}

.statement-card > span {
  position: relative;
  z-index: 2;
  color: var(--paper);
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  font-weight: 460;
  letter-spacing: -0.04em;
}

.statement-card svg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 9rem;
  height: auto;
  fill: none;
  stroke: rgba(230, 232, 234, 0.48);
  stroke-width: 0.8;
}

.note-card,
.legal-card {
  margin: 2rem 0;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(230, 232, 234, 0.12);
  border-left-color: var(--amber);
  border-radius: 0.65rem;
  background: rgba(22, 26, 31, 0.43);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.note-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note-card p,
.legal-card p:last-child {
  margin-bottom: 0;
}

.amber-note {
  background: linear-gradient(100deg, rgba(242, 181, 68, 0.075), rgba(22, 26, 31, 0.42));
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.principle-card {
  min-height: 100%;
  padding: 1.5rem;
  border: 1px solid rgba(230, 232, 234, 0.12);
  border-radius: 0.75rem;
  background: rgba(22, 26, 31, 0.34);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.principle-card > span,
.layer-index {
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.principle-card h3 {
  margin-top: 2.8rem;
}

.principle-card p {
  margin-bottom: 0;
  font-size: 0.89rem;
  line-height: 1.68;
}

.layer-list {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(230, 232, 234, 0.12);
}

.layer-list .subsection {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(230, 232, 234, 0.12);
}

.subsection.compact {
  margin-top: 2.4rem;
  padding-top: 2.3rem;
  border-top: 1px solid rgba(230, 232, 234, 0.11);
}

.subsection.compact + .subsection.compact {
  margin-top: 0;
}

.permission-flow {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr 2rem 1fr;
  gap: 0.4rem;
  align-items: center;
  margin-top: 2.6rem;
  padding: 1.15rem;
  border: 1px solid rgba(230, 232, 234, 0.12);
  border-radius: 0.8rem;
  background: rgba(22, 26, 31, 0.36);
}

.permission-flow div {
  min-height: 8.2rem;
  padding: 1rem;
  border: 1px solid rgba(230, 232, 234, 0.08);
  border-radius: 0.55rem;
  background: rgba(11, 13, 16, 0.36);
}

.permission-flow div > span,
.permission-flow small,
.permission-flow strong {
  display: block;
}

.permission-flow div > span {
  margin-bottom: 1.7rem;
  color: var(--amber);
  font-size: 0.65rem;
  font-weight: 650;
}

.permission-flow strong {
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 560;
}

.permission-flow small {
  color: var(--dim);
  font-size: 0.67rem;
  line-height: 1.45;
}

.permission-flow i {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--rule), rgba(242, 181, 68, 0.6), var(--rule));
}

.numbered-list,
.verification-list,
.roadmap-list {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.numbered-list li,
.verification-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(230, 232, 234, 0.1);
}

.numbered-list li:first-child,
.verification-list li:first-child {
  border-top: 1px solid rgba(230, 232, 234, 0.1);
}

.numbered-list li > span,
.verification-list li > span {
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.table-wrap {
  width: 100%;
  margin: 1.8rem 0 1rem;
  overflow-x: auto;
  border: 1px solid rgba(230, 232, 234, 0.13);
  border-radius: 0.7rem;
  background: rgba(11, 13, 16, 0.38);
  scrollbar-width: thin;
}

table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.55;
}

th,
td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(230, 232, 234, 0.1);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--dim);
  background: rgba(22, 26, 31, 0.62);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

td {
  color: #abb2b9;
}

td:first-child {
  color: var(--paper);
  font-weight: 570;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: rgba(230, 232, 234, 0.025);
}

.fine-print {
  color: var(--dim) !important;
  font-size: 0.78rem !important;
}

.subsection ol:not(.numbered-list) {
  margin: 1.2rem 0 1.5rem;
  padding-left: 1.4rem;
}

.subsection ol:not(.numbered-list) li {
  padding-left: 0.4rem;
}

.subsection ol:not(.numbered-list) li + li {
  margin-top: 0.55rem;
}

.subsection ol:not(.numbered-list) li::marker {
  color: var(--amber);
  font-size: 0.8rem;
}

.roadmap-list {
  position: relative;
}

.roadmap-list::before {
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  left: 4.95rem;
  width: 1px;
  background: linear-gradient(var(--amber), var(--orange), var(--pink));
  content: "";
  opacity: 0.48;
}

.roadmap-list li {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 2rem;
  min-height: 7.5rem;
  padding: 0.9rem 0;
}

.roadmap-list li::before {
  position: absolute;
  top: 1.28rem;
  left: 4.72rem;
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid var(--amber);
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.roadmap-list li > span {
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roadmap-list li > div {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(230, 232, 234, 0.1);
}

.roadmap-list p {
  margin: 0.35rem 0 0;
  font-size: 0.91rem;
}

.faq-list {
  margin-top: 2.4rem;
  border-top: 1px solid rgba(230, 232, 234, 0.13);
}

.faq-list details {
  border-bottom: 1px solid rgba(230, 232, 234, 0.13);
}

.faq-list summary {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 0;
  color: var(--paper);
  font-size: 0.98rem;
  font-weight: 520;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.faq-list summary span::before,
.faq-list summary span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 1px;
  background: var(--amber);
  content: "";
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-list summary span::before {
  transform: translate(-50%, -50%);
}

.faq-list summary span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-list details[open] summary span::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-list details > div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-list details[open] > div {
  grid-template-rows: 1fr;
}

.faq-list details > div > p {
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.faq-list details[open] > div > p {
  padding-bottom: 1.45rem;
}

.legal-card {
  padding: 1.8rem;
  border-left-color: var(--pink);
  background: linear-gradient(115deg, rgba(240, 66, 110, 0.035), rgba(22, 26, 31, 0.48));
}

.legal-card p {
  font-size: 0.89rem;
  line-height: 1.7;
}

.inline-link {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: rgba(242, 181, 68, 0.4);
  text-underline-offset: 0.22em;
}

.inline-link:hover {
  color: var(--paper);
}

.next-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  align-items: center;
  margin-top: 3rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(230, 232, 234, 0.13);
  border-radius: 0.7rem;
  background: rgba(22, 26, 31, 0.34);
  transition: border-color 220ms ease, background-color 220ms ease;
}

.next-link:hover {
  border-color: rgba(242, 181, 68, 0.45);
  background: rgba(22, 26, 31, 0.56);
}

.next-link span {
  color: var(--dim);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.next-link strong {
  grid-row: 2;
  font-size: 0.95rem;
}

.next-link svg {
  grid-row: 1 / 3;
  grid-column: 2;
  width: 1.2rem;
  fill: none;
  stroke: var(--amber);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.page-toc {
  position: fixed;
  z-index: 20;
  top: calc(var(--header-height) + 3.4rem);
  right: clamp(2rem, 3.4vw, 4.5rem);
  width: 10.5rem;
  max-height: calc(100vh - var(--header-height) - 6rem);
  padding-left: 1.5rem;
  overflow-y: auto;
  border-left: 1px solid rgba(230, 232, 234, 0.12);
  scrollbar-width: none;
}

.page-toc::-webkit-scrollbar {
  display: none;
}

.page-toc nav {
  display: grid;
  gap: 0.17rem;
}

.page-toc a {
  position: relative;
  padding: 0.42rem 0;
  color: var(--dim);
  font-size: 0.73rem;
  line-height: 1.25;
  transition: color 180ms ease;
}

.page-toc a:hover,
.page-toc a.is-active {
  color: var(--paper);
}

.page-toc a.is-active::before {
  position: absolute;
  top: 0.38rem;
  bottom: 0.38rem;
  left: -1.55rem;
  width: 2px;
  border-radius: 2px;
  background: var(--amber);
  content: "";
}

.js .flow-reveal {
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.js .flow-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Neutral liquid-glass material system. The reading canvas stays untreated. */
.docs-header {
  border-bottom-color: rgba(230, 232, 234, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.008) 42%, transparent 78%),
    rgba(11, 13, 16, 0.56);
  -webkit-backdrop-filter: blur(24px) saturate(0.82);
  backdrop-filter: blur(24px) saturate(0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.docs-sidebar {
  border-right-color: rgba(230, 232, 234, 0.14);
  background:
    radial-gradient(ellipse 15rem 10rem at 8% 0%, rgba(255, 255, 255, 0.045), transparent 72%),
    rgba(11, 13, 16, 0.34);
  -webkit-backdrop-filter: blur(20px) saturate(0.78);
  backdrop-filter: blur(20px) saturate(0.78);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.025),
    inset 1px 0 0 rgba(255, 255, 255, 0.035);
}

.icon-button {
  border-color: rgba(230, 232, 234, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 44%),
    rgba(22, 26, 31, 0.28);
  -webkit-backdrop-filter: blur(14px) saturate(0.78);
  backdrop-filter: blur(14px) saturate(0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.38);
}

.docs-search,
.statement-card,
.note-card,
.legal-card,
.principle-card,
.permission-flow,
.table-wrap,
.faq-list,
.next-link,
.page-toc {
  border-color: rgba(230, 232, 234, 0.17);
  background-color: rgba(16, 19, 23, 0.4);
  background-image:
    linear-gradient(142deg, rgba(255, 255, 255, 0.062) 0%, rgba(255, 255, 255, 0.012) 31%, transparent 54%),
    linear-gradient(318deg, rgba(255, 255, 255, 0.025), transparent 38%);
  -webkit-backdrop-filter: blur(18px) saturate(0.8);
  backdrop-filter: blur(18px) saturate(0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 1px 0 0 rgba(255, 255, 255, 0.045),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42),
    inset -1px 0 0 rgba(0, 0, 0, 0.2);
}

.docs-search {
  background-color: rgba(22, 26, 31, 0.32);
}

.docs-search:focus-within {
  border-color: rgba(242, 181, 68, 0.56);
  background-color: rgba(22, 26, 31, 0.54);
}

.search-popover {
  border-color: rgba(230, 232, 234, 0.19);
  background:
    radial-gradient(ellipse 13rem 7rem at 10% -4%, rgba(255, 255, 255, 0.09), transparent 70%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 42%),
    rgba(12, 15, 18, 0.82);
  -webkit-backdrop-filter: blur(28px) saturate(0.82);
  backdrop-filter: blur(28px) saturate(0.82);
  box-shadow:
    0 22px 62px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 1px 0 0 rgba(255, 255, 255, 0.045),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.nav-group a.is-active,
.search-result:hover,
.search-result.is-selected {
  border-color: rgba(230, 232, 234, 0.13);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), transparent 48%),
    rgba(230, 232, 234, 0.024);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.statement-card {
  background-color: rgba(10, 12, 15, 0.38);
}

.statement-card::after {
  z-index: 0;
  opacity: 0.72;
}

.note-card,
.legal-card {
  border-left-color: var(--amber);
}

.legal-card {
  border-left-color: var(--pink);
}

.permission-flow div {
  border-color: rgba(230, 232, 234, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.038), transparent 44%),
    rgba(11, 13, 16, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.table-wrap {
  background-color: rgba(11, 13, 16, 0.34);
}

th {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(22, 26, 31, 0.5);
}

.faq-list {
  overflow: hidden;
  padding: 0 1rem;
  border: 1px solid rgba(230, 232, 234, 0.17);
  border-radius: 0.78rem;
}

.faq-list details:last-child {
  border-bottom: 0;
}

.next-link:hover {
  border-color: rgba(242, 181, 68, 0.45);
  background-color: rgba(22, 26, 31, 0.52);
}

.page-toc {
  width: 12rem;
  padding: 1rem 1rem 0.95rem 1.15rem;
  overflow: hidden auto;
  border: 1px solid rgba(230, 232, 234, 0.15);
  border-radius: 0.75rem;
  background-color: rgba(11, 13, 16, 0.34);
}

.page-toc a.is-active::before {
  left: -0.72rem;
}

.liquid-surface {
  --glass-x: 18%;
  --glass-y: 8%;
  position: relative;
  isolation: isolate;
}

.liquid-surface::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 6.5rem 4.2rem at var(--glass-x) var(--glass-y),
    rgba(255, 255, 255, 0.125),
    rgba(255, 255, 255, 0.034) 38%,
    transparent 73%
  );
  content: "";
  opacity: 0.42;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.liquid-surface:hover::before,
.liquid-surface:focus-within::before {
  opacity: 0.86;
}

@media (max-width: 1260px) {
  .docs-main {
    padding-right: 5rem;
  }

  .page-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 4.25rem;
  }

  .docs-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .header-left {
    min-width: max-content;
  }

  .nav-toggle {
    display: grid;
  }

  .docs-brand img {
    width: 1.9rem;
  }

  .docs-brand span {
    display: none;
  }

  .docs-search {
    grid-column: 2;
  }

  .social-link {
    grid-column: 3;
  }

  .docs-sidebar {
    z-index: 75;
    width: min(19rem, 84vw);
    padding-left: 1.5rem;
    background:
      radial-gradient(ellipse 15rem 10rem at 8% 0%, rgba(255, 255, 255, 0.055), transparent 72%),
      rgba(11, 13, 16, 0.82);
    -webkit-backdrop-filter: blur(28px) saturate(0.76);
    backdrop-filter: blur(28px) saturate(0.76);
    transform: translateX(-102%);
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .docs-sidebar {
    transform: translateX(0);
  }

  .nav-scrim {
    position: fixed;
    z-index: 70;
    inset: var(--header-height) 0 0;
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
  }

  body.nav-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .docs-main {
    margin-left: 0;
    padding: calc(var(--header-height) + 3rem) clamp(1.25rem, 6vw, 4rem) 7rem;
  }

  .docs-article {
    width: min(100%, 44rem);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .docs-header {
    gap: 0.35rem;
    padding: 0 0.65rem;
  }

  .docs-search > kbd {
    display: none;
  }

  .docs-search input {
    padding-right: 0.5rem;
    font-size: 0.82rem;
  }

  .search-popover {
    position: fixed;
    top: calc(var(--header-height) + 0.4rem);
    right: 0.65rem;
    left: 0.65rem;
  }

  .search-hint {
    display: none;
  }

  .icon-button {
    width: 2.35rem;
    height: 2.35rem;
  }

  .docs-main {
    padding-right: 1.2rem;
    padding-left: 1.2rem;
  }

  .doc-section {
    padding-bottom: 5.2rem;
  }

  .doc-section + .doc-section {
    padding-top: 4.5rem;
  }

  h1 {
    margin-bottom: 2rem;
    font-size: clamp(4rem, 22vw, 5.6rem);
  }

  h2 {
    font-size: clamp(2.65rem, 14vw, 3.7rem);
  }

  .docs-article p,
  .docs-article li {
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .hero-lead {
    font-size: 1.18rem !important;
  }

  .statement-card {
    min-height: 8.2rem;
    padding: 1.5rem;
  }

  .statement-card > span {
    max-width: 14rem;
    font-size: 1.65rem;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .permission-flow {
    grid-template-columns: 1fr;
  }

  .permission-flow i {
    width: 1px;
    height: 1.4rem;
    margin-left: 1.4rem;
    background: linear-gradient(var(--rule), var(--amber), var(--rule));
  }

  .layer-list .subsection {
    grid-template-columns: 2.4rem 1fr;
    gap: 0.5rem;
  }

  .numbered-list li,
  .verification-list li {
    grid-template-columns: 2.25rem 1fr;
    gap: 0.4rem;
  }

  .roadmap-list::before {
    left: 0.22rem;
  }

  .roadmap-list li {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-left: 1.5rem;
  }

  .roadmap-list li::before {
    top: 1.25rem;
    left: 0;
  }

  .faq-list summary {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .flow-reveal {
    opacity: 1;
    transform: none;
  }

  .liquid-surface::before {
    opacity: 0.38;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .docs-header,
  .docs-sidebar,
  .search-popover,
  .docs-search,
  .statement-card,
  .note-card,
  .legal-card,
  .principle-card,
  .permission-flow,
  .table-wrap,
  .faq-list,
  .next-link,
  .page-toc {
    background: var(--slate);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .liquid-surface::before {
    display: none;
  }
}
