:root {
  color-scheme: light;
  --docsmith-bg: #fbfbf8;
  --docsmith-surface: #ffffff;
  --docsmith-text: #222427;
  --docsmith-muted: #666f7a;
  --docsmith-line: #d9ded8;
  --docsmith-accent: #1f6f5b;
  --docsmith-accent-strong: #164d42;
  --docsmith-code-bg: #15191d;
  --docsmith-code-text: #f2f5f4;
  --docsmith-warning-bg: #fff7d8;
  --docsmith-warning-text: #5e4300;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body.docsmith {
  margin: 0;
  background: var(--docsmith-bg);
  color: var(--docsmith-text);
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 3.75rem;
}

.docsmith a {
  color: var(--docsmith-accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.docsmith a:focus-visible,
.docsmith button:focus-visible,
.docsmith input:focus-visible,
.docsmith select:focus-visible,
.docsmith [tabindex]:focus-visible {
  outline: 3px solid #d49a00;
  outline-offset: 3px;
}

.docsmith-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.docsmith-skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--docsmith-accent-strong);
  color: #ffffff;
  padding: 0.5rem 0.75rem;
}

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

.docsmith-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.docsmith-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: rgba(251, 251, 248, 0.94);
  border-bottom: 1px solid var(--docsmith-line);
  backdrop-filter: blur(10px);
}

.docsmith-brand {
  min-width: 0;
  font-weight: 700;
  color: var(--docsmith-text);
  text-decoration: none;
}

.docsmith-search-form {
  display: flex;
  gap: 0.5rem;
  min-width: min(24rem, 38vw);
}

.docsmith-search-input,
.docsmith-version-select {
  width: 100%;
  min-height: 2.35rem;
  border: 1px solid var(--docsmith-line);
  border-radius: 6px;
  background: var(--docsmith-surface);
  color: var(--docsmith-text);
  padding: 0.45rem 0.65rem;
  font: inherit;
}
.docsmith-version-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--docsmith-muted) 50%), linear-gradient(135deg, var(--docsmith-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) calc(50% - 0.12rem), calc(100% - 0.9rem) calc(50% - 0.12rem);
  background-repeat: no-repeat;
  background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
  padding-right: 2.1rem;
}
.docsmith-version-select::-ms-expand {
  display: none;
}

.docsmith-button,
.docsmith-copy,
.docsmith-menu-toggle {
  min-height: 2.35rem;
  border: 1px solid var(--docsmith-accent);
  border-radius: 6px;
  background: var(--docsmith-accent);
  color: #ffffff;
  padding: 0.45rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.docsmith-menu-toggle {
  display: none;
}

.docsmith-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr) minmax(12rem, 16rem);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  width: min(96rem, 100%);
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 4rem;
}

.docsmith-sidebar,
.docsmith-toc {
  position: sticky;
  top: 5rem;
  align-self: start;
  max-height: calc(100vh - 6rem);
  overflow: auto;
}

.docsmith-nav,
.docsmith-toc-list,
.docsmith-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docsmith-nav a,
.docsmith-toc a {
  display: block;
  padding: 0.3rem 0;
  color: var(--docsmith-muted);
  text-decoration: none;
}

.docsmith-nav [data-active="y"] {
  color: var(--docsmith-accent-strong);
  font-weight: 700;
}

.docsmith-main {
  min-width: 0;
}

.docsmith-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
  color: var(--docsmith-muted);
  font-size: 0.9rem;
}

.docsmith-article {
  max-width: 48rem;
  overflow-x: auto;
}

.docsmith-article h1 {
  margin: 0 0 1rem;
  font-size: 2.25rem;
  line-height: 1.15;
}

.docsmith-article h2,
.docsmith-article h3 {
  margin-top: 2rem;
  line-height: 1.25;
}

.docsmith-article pre {
  overflow-x: auto;
  max-width: 100%;
  padding: 1rem;
  border-radius: 8px;
  background: var(--docsmith-code-bg);
  color: var(--docsmith-code-text);
}

.docsmith-article code {
  overflow-wrap: anywhere;
}

.docsmith-article table {
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  border-spacing: 0;
}

.docsmith-article th,
.docsmith-article td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--docsmith-line);
  text-align: left !important;
  vertical-align: top;
}

.docsmith-article th {
  background: #f3f6f4;
  font-weight: 700;
}

.docsmith-article tr:nth-child(even) td {
  background: rgba(31, 111, 91, 0.035);
}

.docsmith-license-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  background: #242628;
  padding: 1rem clamp(1rem, 3vw, 2rem);
}

.docsmith-license-footer a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.docsmith-code-line {
  display: block;
  min-height: 1.4em;
  padding-inline: 0.25rem;
}

.docsmith-code-line.is-highlighted {
  margin-inline: -0.25rem;
  background: rgba(255, 255, 255, 0.12);
}

.docsmith-code-line[data-prompt]::before {
  content: attr(data-prompt) " ";
  color: #8fb8a9;
  user-select: none;
}

.docsmith-callout {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--docsmith-accent);
  border-radius: 8px;
  background: #eef7f3;
}

.docsmith-callout-title {
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.docsmith-callout-body > :first-child {
  margin-top: 0;
}

.docsmith-callout-body > :last-child {
  margin-bottom: 0;
}

.docsmith-callout-warning,
.docsmith-callout-important {
  border-left-color: #b98600;
  background: var(--docsmith-warning-bg);
}

.docsmith-callout-danger {
  border-left-color: #b42318;
  background: #fff0ed;
}

.docsmith-callout-tip {
  border-left-color: #397a28;
  background: #eff8ea;
}

.docsmith-code-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0.5rem 0 -0.5rem;
}

.docsmith-copy {
  min-height: 1.9rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.85rem;
}

.docsmith-prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--docsmith-line);
}

.docsmith-prev-next a {
  display: block;
  padding: 0.75rem;
  border: 1px solid var(--docsmith-line);
  border-radius: 8px;
  background: var(--docsmith-surface);
  text-decoration: none;
}

.docsmith-next {
  text-align: right;
}

.docsmith-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--docsmith-warning-bg);
  color: var(--docsmith-warning-text);
}

.docsmith-result {
  padding: 1rem 0;
  border-bottom: 1px solid var(--docsmith-line);
}

.docsmith-result h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.docsmith-result p {
  margin: 0.25rem 0;
  color: var(--docsmith-muted);
}

@media (max-width: 56rem) {
  .docsmith-header {
    grid-template-columns: 1fr auto;
    position: static;
  }

  .docsmith-search-form {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .docsmith-version-select {
    grid-column: 1;
  }

  .docsmith-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .docsmith-layout {
    grid-template-columns: 1fr;
  }

  .docsmith-sidebar,
  .docsmith-toc {
    position: static;
    max-height: none;
  }

  .docsmith-sidebar {
    display: none;
  }

  .docsmith-sidebar.is-open {
    display: block;
  }
}
