:root {
  --bg: #f4f1e9;
  --paper: #fffdf8;
  --text: #171817;
  --muted: #65665f;
  --line: #d8d4c9;
  --accent: #2552ff;
  --code: #171817;
  --radius: 14px;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
}
a {
  color: inherit;
}
a:hover {
  color: var(--accent);
}
.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: #fff;
  padding: 0.7rem;
  z-index: 9;
}
.skip:focus {
  top: 1rem;
}
.docs-header {
  position: sticky;
  top: 0;
  background: rgba(244, 241, 233, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.docs-header-inner {
  max-width: 1280px;
  margin: auto;
  min-height: 70px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.docs-brand {
  font-weight: 800;
  text-decoration: none;
}
.docs-brand span {
  color: var(--accent);
}
.docs-layout {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 6rem);
  padding: 48px 24px 96px;
}
.docs-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.docs-nav a {
  display: block;
  text-decoration: none;
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.docs-main {
  min-width: 0;
}
.docs-main h1 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 12ch;
}
.docs-main h2 {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}
.docs-main h3 {
  margin-top: 2rem;
}
.docs-main p,
.docs-main li {
  max-width: 75ch;
}
.lead {
  font-size: 1.25rem;
  color: var(--muted);
}
.note {
  border-left: 4px solid var(--accent);
  background: var(--paper);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  padding: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
code,
pre {
  font-family: var(--mono);
}
code {
  background: #ebe7dd;
  padding: 0.12em 0.35em;
  border-radius: 4px;
}
pre {
  background: var(--code);
  color: #f5f4ef;
  padding: 1.2rem;
  border-radius: var(--radius);
  overflow: auto;
  line-height: 1.55;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--paper);
}
th,
td {
  border: 1px solid var(--line);
  text-align: left;
  padding: 0.75rem;
  vertical-align: top;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  padding: 1rem 0 1rem 3rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.steps li:before {
  content: counter(step);
  position: absolute;
  left: 0;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.docs-footer {
  padding: 2rem 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
@media (max-width: 820px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-nav {
    position: static;
    max-height: none;
    columns: 2;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .docs-nav {
    columns: 1;
  }
  .docs-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }
  .docs-main h1 {
    font-size: 2.8rem;
  }
}

/* Keep dense reference tables within small screens. */
@media (max-width: 620px) {
  .docs-main {
    overflow-wrap: anywhere;
  }

  .docs-main table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}
