:root {
  --ink: #121510;
  --muted: #62695f;
  --paper: #f4f3ed;
  --panel: #fbfaf5;
  --line: #d3d4ca;
  --dark: #11140f;
  --dark-line: #343930;
  --dark-copy: #bdc5b8;
  --accent: #b8ed72;
  --shell: min(1080px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  font-size: 0.9em;
}

pre {
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--panel);
  color: #20251e;
  font-size: 0.84rem;
  line-height: 1.65;
  padding: 20px;
}

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

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 7vw, 5rem);
  font-weight: 650;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 4.6vw, 3.25rem);
  font-weight: 630;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 630;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #456f23;
  outline-offset: 4px;
}

.security :focus-visible {
  outline-color: var(--accent);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner,
.footer-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 24px;
  height: 24px;
  flex: none;
}

nav {
  display: flex;
  gap: 24px;
}

nav a,
footer a,
.text-link,
.source-links a {
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
footer a:hover,
.text-link:hover,
.source-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  padding: 58px 0 0;
}

.hero h1 {
  font-size: clamp(3.3rem, 6vw, 4.7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
  align-items: start;
  gap: 48px;
  padding-bottom: 58px;
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow,
.code-label {
  color: #596253;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 18px;
}

.lede {
  max-width: 690px;
  margin-bottom: 30px;
  color: #4f574c;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.release-note {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.hero-example {
  min-width: 0;
}

.hero-example .interface-label {
  margin-bottom: 12px;
  color: #456f23;
}

.workflow-example {
  padding: 18px 20px 20px;
  border: 1px solid var(--dark-line);
  border-top: 2px solid var(--accent);
  border-radius: 4px;
  background: var(--dark);
  color: #e6ebe2;
}

.workflow-example + .workflow-example {
  margin-top: 12px;
}

.interface-label {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.example-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--dark-line);
}

.example-title,
.example-context {
  margin: 0;
}

.example-title {
  color: #f3f5f0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.example-title code {
  font-size: inherit;
}

.example-context {
  color: #9aa495;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.workflow-example pre {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e6ebe2;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.hero-example > .text-link {
  margin-top: 12px;
  color: var(--ink);
}

.terminal-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.sdk-section {
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.sdk-strip {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 64px;
}

.sdk-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 4vw, 2.8rem);
}

.sdk-copy > p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sdk-copy .text-link {
  margin-top: 18px;
}

.sdk-example {
  min-width: 0;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--panel);
}

.sdk-example .code-label {
  margin-bottom: 10px;
}

.sdk-example pre {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.section {
  padding: 62px 0;
  border-top: 1px solid var(--line);
}

.compact-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 44px;
  margin-bottom: 30px;
}

.compact-heading h2,
.compact-heading p {
  margin-bottom: 0;
}

.compact-heading p {
  color: var(--muted);
  font-size: 1rem;
}

.platforms {
  background: var(--panel);
}

.platform-table {
  overflow-x: auto;
  border-top: 2px solid var(--ink);
}

.platform-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.platform-table th,
.platform-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  vertical-align: top;
}

.platform-table thead th {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.platform-table tbody th {
  width: 25%;
  font-weight: 680;
}

.platform-table tbody th a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.platform-table td {
  color: var(--muted);
}

.platform-table code {
  font-size: 0.78rem;
}

.platform-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 14px;
}

.platform-notes p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.text-link {
  display: inline-block;
}

.security {
  border-color: var(--dark-line);
  background: var(--dark);
  color: #f3f5f0;
}

.security-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 64px;
}

.security-heading {
  position: sticky;
  top: 32px;
}

.security-heading h2 {
  margin-bottom: 24px;
}

.security-heading .text-link {
  color: #f3f5f0;
}

.guarantees {
  margin: 0;
  border-top: 1px solid var(--dark-line);
}

.guarantees div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--dark-line);
}

.guarantees dt {
  color: var(--accent);
  font-weight: 700;
}

.guarantees dd {
  margin: 0;
  color: var(--dark-copy);
  font-size: 0.86rem;
}

.source {
  padding: 62px 0;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.source-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  align-items: start;
  gap: 64px;
}

.source h2 {
  margin-bottom: 16px;
}

.source-grid > div:first-child > p {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--muted);
}

.source-grid > div:first-child .text-link {
  margin-top: 20px;
}

.source-note {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.source-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.source-links a {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  gap: 5px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.source-links strong {
  font-size: 0.86rem;
}

.source-links span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 450;
  line-height: 1.45;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-inner {
  min-height: 72px;
}

/* Build-time syntax highlighting. The site ships no executable JavaScript. */
.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cs,
pre .c,
pre .c1,
pre .cm,
pre .cs {
  color: #646c60;
  font-style: italic;
}

.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt,
pre .k,
pre .kc,
pre .kd,
pre .kn,
pre .kp,
pre .kr,
pre .kt {
  color: #755097;
  font-weight: 650;
}

.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sr,
.highlight .ss,
.highlight .sx,
pre .s,
pre .s1,
pre .s2,
pre .sb,
pre .sc,
pre .sd,
pre .se,
pre .sh,
pre .si,
pre .sr,
pre .ss,
pre .sx {
  color: #9a492c;
}

.highlight .na,
.highlight .nc,
.highlight .nf,
.highlight .nt,
pre .na,
pre .nc,
pre .nf,
pre .nt {
  color: #33745b;
  font-weight: 650;
}

.highlight .bp,
.highlight .nb,
.highlight .nv,
.highlight .vc,
.highlight .vg,
.highlight .vi,
pre .bp,
pre .nb,
pre .nv,
pre .vc,
pre .vg,
pre .vi {
  color: #3e6492;
}

.highlight .il,
.highlight .m,
.highlight .mb,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo,
pre .il,
pre .m,
pre .mb,
pre .mf,
pre .mh,
pre .mi,
pre .mo {
  color: #8a611f;
}

.highlight .err,
pre .err {
  color: #a33b32;
}

/* Primary CLI samples: restrained dark syntax palette with AA contrast. */
.workflow-example pre .k {
  color: #d1b4eb;
}

.workflow-example pre .nt {
  color: #9fd8bc;
}

.workflow-example pre .nb,
.workflow-example pre .nv {
  color: var(--accent);
}

/* Generated documentation. */
.docs-main {
  padding: 60px 0 96px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 64px;
}

.docs-sidebar {
  position: sticky;
  top: 28px;
  max-height: calc(100vh - 56px);
  min-width: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.docs-menu-title {
  display: none;
}

.docs-sidebar nav {
  display: block;
}

.docs-nav-section {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.docs-nav-section:last-child {
  border-bottom: 1px solid var(--line);
}

.docs-nav-section p,
.on-this-page p {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.docs-nav-section a,
.on-this-page a {
  display: block;
  padding: 3px 0;
  color: #555d52;
  font-size: 0.78rem;
  font-weight: 540;
  line-height: 1.45;
  text-decoration: none;
}

.docs-nav-section a:hover,
.on-this-page a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-nav-section a[aria-current] {
  color: var(--ink);
  font-weight: 720;
}

.on-this-page {
  display: block;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.on-this-page a {
  padding-block: 4px;
}

.doc {
  min-width: 0;
  max-width: 720px;
}

.doc-header {
  margin-bottom: 38px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.doc-header h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(2.7rem, 6vw, 4.4rem);
}

.doc-provenance {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.doc-provenance p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.doc-provenance a {
  text-underline-offset: 3px;
}

.docs-mobile-menu {
  display: none;
}

.doc-content {
  color: #363c34;
}

.doc-content h2,
.doc-content h3,
.doc-content h4 {
  scroll-margin-top: 28px;
  color: var(--ink);
}

.doc-content h2 {
  margin: 56px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.doc-content h3 {
  margin: 34px 0 14px;
  font-size: 1.55rem;
}

.doc-content h4 {
  margin: 32px 0 12px;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.doc-content p,
.doc-content li {
  font-size: 0.98rem;
}

.doc-content p,
.doc-content ul,
.doc-content ol,
.doc-content blockquote,
.doc-content pre,
.doc-content table,
.doc-content .highlighter-rouge {
  margin-top: 0;
  margin-bottom: 24px;
}

.doc-content ul,
.doc-content ol {
  padding-left: 24px;
}

.doc-content li + li {
  margin-top: 7px;
}

.doc-content a {
  color: #335f2a;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.doc-content code:not(pre code) {
  padding: 2px 5px;
  border: 1px solid var(--line);
  background: #ecece5;
  overflow-wrap: anywhere;
}

.doc-content pre {
  max-width: 100%;
  padding: 20px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.doc-content .highlighter-rouge pre {
  margin-bottom: 0;
}

.doc-content blockquote {
  padding: 4px 0 4px 22px;
  border-left: 3px solid #7ea84f;
  color: var(--muted);
}

.doc-content blockquote > :last-child {
  margin-bottom: 0;
}

.doc-content hr {
  height: 1px;
  margin: 52px 0;
  border: 0;
  background: var(--line);
}

.doc-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  text-align: left;
}

.doc-content th,
.doc-content td {
  min-width: 130px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: #41483f;
  font-size: 0.78rem;
  vertical-align: top;
}

.doc-content th {
  color: var(--ink);
  font-weight: 720;
}

.doc-content img {
  max-width: 100%;
  height: auto;
}

.doc-index {
  max-width: 920px;
}

.doc-index-lede {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.doc-starts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
  border-left: 1px solid var(--line);
}

.doc-starts a {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.doc-starts a:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-starts strong {
  font-size: 0.92rem;
}

.doc-starts span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.doc-index-group {
  margin-top: 52px;
}

.doc-index-group h2 {
  margin-bottom: 18px;
  font-size: 1.8rem;
}

.doc-index-group ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.doc-index-group li {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 5px 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.doc-index-group li > a {
  font-size: 0.92rem;
  font-weight: 720;
  text-decoration: none;
}

.doc-index-group li > a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-index-group li p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.doc-index-provenance {
  margin: 52px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 20px;
}

.not-found-inner {
  width: min(660px, 100%);
  border-top: 3px solid var(--ink);
  padding-top: 28px;
}

.not-found-inner .brand {
  display: inline-flex;
  margin-bottom: 72px;
}

.not-found h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 10vw, 5.5rem);
}

.not-found p {
  max-width: 560px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 28px, 640px);
  }

  .site-header nav a:not(:nth-last-child(-n + 2)) {
    display: none;
  }

  .site-header .home-nav a:first-child {
    display: inline;
  }

  .docs-main {
    padding: 44px 0 72px;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .docs-sidebar {
    display: none;
  }

  .doc-header {
    margin-bottom: 20px;
  }

  .doc-header h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .docs-mobile-menu {
    display: block;
    margin-bottom: 36px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .docs-mobile-menu summary {
    padding: 12px 0;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 680;
  }

  .docs-mobile-menu-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 4px 0 18px;
  }

  .docs-mobile-menu nav {
    display: block;
  }

  .docs-mobile-menu .docs-nav-section {
    padding: 10px 0;
  }

  .docs-mobile-toc {
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }

  .docs-mobile-toc p {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 760;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .docs-mobile-toc a {
    display: block;
    padding: 3px 0;
    color: #555d52;
    font-size: 0.78rem;
    line-height: 1.45;
    text-decoration: none;
  }

  .doc-index-group li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .doc-starts {
    grid-template-columns: 1fr;
  }

  .doc-starts a {
    min-height: 0;
  }

  .doc-index-group li > a {
    grid-row: auto;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-grid,
  .sdk-strip,
  .compact-heading,
  .security-layout,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 42px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .section {
    padding: 52px 0;
  }

  .sdk-section {
    padding: 44px 0;
  }

  .sdk-strip {
    align-items: start;
    gap: 30px;
  }

  .compact-heading {
    gap: 12px;
  }

  .platform-notes {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .platform-table {
    overflow: visible;
  }

  .platform-table table {
    min-width: 0;
  }

  .platform-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .platform-table tbody,
  .platform-table tr,
  .platform-table th,
  .platform-table td {
    display: block;
  }

  .platform-table tbody tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .platform-table tbody th,
  .platform-table tbody td {
    width: auto;
    padding: 0;
    border: 0;
  }

  .platform-table tbody th {
    margin-bottom: 8px;
  }

  .platform-table tbody td {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding-top: 4px;
  }

  .platform-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .security-layout,
  .source-grid {
    gap: 36px;
  }

  .security-heading {
    position: static;
  }

  .guarantees div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .source {
    padding: 52px 0;
  }

  .source-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
}

@media (max-width: 440px) {
  pre {
    padding: 16px;
    font-size: 0.84rem;
  }

  .workflow-example,
  .sdk-example {
    padding: 16px;
  }

  .workflow-example pre {
    font-size: 0.82rem;
  }

  .docs-mobile-menu-inner {
    grid-template-columns: 1fr;
  }

  .source-links {
    grid-template-columns: 1fr;
  }
}
