@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/docs/assets/fonts/inter-400.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/docs/assets/fonts/inter-500.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/docs/assets/fonts/inter-600.ttf") format("truetype");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/docs/assets/fonts/space-grotesk-400.ttf") format("truetype");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/docs/assets/fonts/space-grotesk-500.ttf") format("truetype");
}
/* Shared marketing palette; status meaning remains in explicit labels and prose. */
:root {
  --paper: #f6f2e9;
  --raised: #fffefa;
  --ink: #173e30;
  --secondary: #3e5548;
  --rule: #d4d9cb;
  --font-display: "Space Grotesk", "Avenir Next", system-ui, sans-serif;
  --font-sans: Inter, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  margin: 0;
  background: var(--raised);
  color: var(--ink);
  font: 1rem/1.7 var(--font-sans);
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
summary {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid #8a5d14;
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  background: white;
  padding: 0.75rem 1rem;
}
.skip-link:focus {
  top: 0.5rem;
}
.site-header {
  height: 5rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--raised);
}
.wordmark {
  font: 400 1.75rem/1 var(--font-display);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  letter-spacing: -0.06em;
}
.docs-label {
  border-left: 1px solid var(--rule);
  padding-left: 2rem;
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--secondary);
}
.open-app {
  margin-left: auto;
  text-decoration: none;
  font-size: 0.875rem;
  border: 1px solid var(--ink);
  padding: 0.5rem 1rem;
  border-radius: 7px;
  white-space: nowrap;
}
.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 800px) 208px;
  gap: 3rem;
  max-width: 1456px;
  margin: auto;
  padding: 0 2rem;
}
.sidebar,
.contents {
  position: sticky;
  top: 5rem;
  align-self: start;
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.sidebar {
  border-right: 1px solid var(--rule);
  padding-right: 1.5rem;
}
.sidebar label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.search-field {
  position: relative;
}
.search-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: white;
  padding: 0.5rem;
  font-size: 0.875rem;
}
.search-field kbd {
  display: none;
}
#search-results {
  padding: 0.5rem 0;
}
#search-results p {
  color: var(--secondary);
  font-size: 0.875rem;
}
#search-results a {
  display: block;
  padding: 0.75rem 0.5rem;
  background: white;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  font-size: 0.875rem;
}
#search-results span {
  display: block;
  color: var(--secondary);
  font-size: 0.8rem;
}
.nav-group {
  font: 500 0.75rem var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin: 2rem 0 0.5rem;
}
.sidebar nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration: none;
}
.sidebar nav a:hover {
  background: var(--paper);
}
.sidebar nav a[aria-current="page"] {
  background: #e7e5dc;
  font-weight: 600;
  box-shadow: inset 2px 0 var(--ink);
}
.sidebar-note {
  display: block;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
}
.mobile-nav {
  display: none;
}
main {
  min-width: 0;
  padding-top: 2.5rem;
}
.article-tools {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  color: var(--secondary);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}
.article-tools span {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
article {
  overflow-wrap: break-word;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2rem, 3.3vw, 3rem);
  margin: 0 0 1.5rem;
  max-width: 20ch;
}
h2 {
  font-size: 1.65rem;
  margin: 3rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
h3 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
}
p {
  margin: 0 0 1.25rem;
}
article > p:first-of-type {
  font-size: 1.15rem;
  color: var(--secondary);
}
article li {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}
article ul,
article ol {
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}
.heading-link {
  opacity: 0;
  margin-left: 0.5rem;
  font: 400 1rem var(--font-mono);
  text-decoration: none;
}
h2:hover .heading-link,
h3:hover .heading-link,
.heading-link:focus {
  opacity: 1;
}
blockquote {
  border-left: 3px solid var(--ink);
  background: var(--paper);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
blockquote p:last-child {
  margin-bottom: 0;
}
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: #ecebe5;
  padding: 0.1em 0.25em;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.code-block {
  position: relative;
  margin: 1.5rem 0;
  background: #eeede7;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
pre {
  overflow-x: auto;
  margin: 0;
  padding: 3rem 1.25rem 1.25rem;
  font: 0.875rem/1.65 var(--font-mono);
  tab-size: 2;
}
pre code {
  background: transparent;
  padding: 0;
  font: inherit;
  overflow-wrap: normal;
}
.copy-code {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  font-size: 0.75rem;
  border: 1px solid #cccac0;
  border-radius: 4px;
  background: var(--raised);
  padding: 0.25rem 0.5rem;
}
.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.6;
}
th {
  text-align: left;
  font-weight: 600;
  color: var(--secondary);
}
th,
td {
  padding: 1rem 0.75rem 1rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  min-width: 140px;
}
td:first-child {
  font-weight: 500;
}
.contents {
  font-size: 0.8rem;
  line-height: 1.5;
}
.contents .nav-group {
  margin-top: 0.5rem;
}
.contents a {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--secondary);
  text-decoration: none;
}
.contents a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.lifecycle {
  margin: 1.5rem 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem;
  background: white;
}
figcaption {
  font-weight: 600;
  font-size: 0.875rem;
}
.lifecycle pre {
  padding: 1rem 0;
}
.diagram-scroll {
  overflow-x: auto;
}
.lifecycle svg {
  min-width: 680px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}
.diagram-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--secondary);
}
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1.5rem;
}
.page-nav a {
  text-decoration: none;
  font-weight: 500;
}
.page-nav a:last-child {
  text-align: right;
}
.page-nav small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
footer {
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 3rem;
  color: var(--secondary);
  font-size: 0.8rem;
}
footer p {
  margin-bottom: 0.5rem;
}
.not-found {
  max-width: 700px;
  margin: 4rem auto;
  padding: 2rem;
}
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 224px minmax(0, 760px);
    gap: 2rem;
  }
  .contents {
    display: none;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 4rem;
    padding: 0 1rem;
    gap: 1rem;
  }
  .wordmark {
    font-size: 1.25rem;
  }
  .docs-label {
    display: none;
  }
  .open-app {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  .layout {
    display: block;
    padding: 0 1.25rem;
  }
  .sidebar {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 1.25rem 0;
  }
  .sidebar-note,
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: block;
    margin-top: 1rem;
  }
  .mobile-nav summary {
    font-size: 0.875rem;
  }
  .mobile-nav nav {
    padding: 0 1rem 1rem;
  }
  main {
    padding-top: 1.5rem;
  }
  .article-tools {
    font-size: 0.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  table {
    font-size: 0.875rem;
  }
  .page-nav {
    gap: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  .site-header,
  .sidebar,
  .contents,
  .article-tools,
  .page-nav,
  .copy-code {
    display: none;
  }
  .layout {
    display: block;
    padding: 0;
  }
  main {
    padding: 0;
  }
  body {
    background: white;
  }
  h2 {
    break-after: avoid;
  }
  pre {
    white-space: pre-wrap;
  }
}
