:root {
  color-scheme: light;
  --background: #f5f4ef;
  --surface: #fffefa;
  --text: #181916;
  --text-muted: #62635d;
  --border: #dcdcd2;
  --accent: #755912;
  --accent-surface: #efead9;
  --code-background: #20231e;
  --code-text: #f2f0e8;
  --font-sans:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
button:focus-visible,
pre:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}
button {
  font: inherit;
}
code {
  font-family: var(--font-mono);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  transform: translateY(-150%);
  background: var(--surface);
  padding: 8px 16px;
  z-index: 10;
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.025em;
}
.brand img {
  border-radius: 8px;
}
.brand-divider {
  padding: 0 8px;
  color: #a6a69e;
  font-weight: 400;
}
.brand-section {
  font-weight: 450;
  color: var(--text-muted);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
  padding: 5px 0;
}
.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 8px;
}
main:focus {
  outline: none;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 600;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin: 0 0 16px;
}
.lede {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 600px;
  line-height: 1.7;
}
.guide {
  max-width: 870px;
  margin: 0 auto;
  padding: 48px 40px 64px;
}
.page-heading {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 32px;
}
.page-heading .lede {
  max-width: none;
}
.prose h2 {
  font-size: 1.45rem;
  margin: 44px 0 20px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose ul,
.prose ol {
  margin: 18px 0;
}
.prose li {
  margin: 10px 0;
}
.prose li::marker {
  color: var(--text-muted);
}
.prose ul,
.prose ol {
  padding-left: 24px;
}
.prose code {
  font-size: 0.83em;
  background: var(--accent-surface);
  border-radius: 3px;
  padding: 2px 4px;
  overflow-wrap: anywhere;
}
.prose pre {
  position: relative;
  overflow-x: auto;
  border-radius: 8px;
  padding: 50px 22px 22px;
  background: var(--code-background);
  color: var(--code-text);
  line-height: 1.7;
}
.prose pre code {
  background: none;
  border-radius: 0;
  padding: 0;
  font-size: 0.79rem;
  overflow-wrap: normal;
}
.copy-button {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 4px 10px;
  border: 1px solid #5e6356;
  border-radius: 4px;
  background: var(--code-background);
  color: var(--code-text);
  font-size: 0.7rem;
  cursor: pointer;
}
.copy-button:hover {
  background: #383d32;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 24px 0;
}
.prose th {
  text-align: left;
  font-weight: 600;
  background: var(--accent-surface);
}
.prose td,
.prose th {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.reference {
  max-width: 1600px;
  margin: 0 auto;
  background: var(--surface);
  min-height: 70vh;
}
/* Hide the optional UI credit; vendor copyright and license notices stay in the published assets. */
#redoc .menu-content :has(> a[href="https://redocly.com/redoc/"]) {
  display: none;
}
.reference-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  padding: 36px 40px 24px;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.reference-heading h1 {
  font-size: 2rem;
  margin: 0;
}
.reference-heading > p {
  flex-basis: 100%;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 20px 0 0;
}
.reference-heading code {
  font-size: 0.85em;
  overflow-wrap: anywhere;
}
#reference-status,
.reference-fallback {
  padding: 20px 40px;
}
.site-footer {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}
.site-footer .footer-brand {
  color: var(--text);
  font-weight: 650;
}
.site-footer nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

@media (max-width: 1000px) {
  .site-header {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .site-header {
    padding: 20px 24px;
    gap: 18px;
  }
  .site-nav {
    gap: 8px 20px;
  }
  .site-nav a {
    font-size: 0.8rem;
  }
  .guide {
    padding: 40px 24px 56px;
  }
  .prose {
    font-size: 0.95rem;
  }
  .prose td,
  .prose th {
    padding: 12px 9px;
  }
  .prose pre {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .reference-heading {
    padding: 28px 24px;
    gap: 16px;
  }
  #reference-status,
  .reference-fallback {
    padding: 16px 24px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 24px;
  }
  .site-footer nav {
    flex-basis: 100%;
    margin: 0;
  }
}
