:root {
  color-scheme: light;
  --docs-bg: #f3f6f4;
  --docs-panel: #ffffff;
  --docs-panel-muted: #edf2ef;
  --docs-text: #202721;
  --docs-muted: #5c675f;
  --docs-border: #ccd5cf;
  --docs-primary: #0f6c67;
  --docs-primary-strong: #174f78;
  --docs-focus: #c56800;
  --docs-code-bg: #18211e;
  --docs-code-text: #eaf3ef;
  --docs-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  color: var(--docs-text);
  background: var(--docs-bg);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--docs-primary);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--docs-primary-strong);
}

a:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--docs-focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.6rem 0.75rem;
  transform: translateY(-180%);
  border-radius: 6px;
  color: #ffffff;
  background: var(--docs-primary);
}

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

.docs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--docs-border);
  background: var(--docs-panel);
}

.docs-brand {
  display: inline-block;
  margin-bottom: 0.25rem;
  color: var(--docs-text);
  font-size: 1.1rem;
  font-weight: 850;
  text-decoration: none;
}

.docs-header p {
  max-width: 58ch;
  margin: 0;
  color: var(--docs-muted);
  font-size: 0.9rem;
}

.docs-top-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 0.25rem;
}

.docs-top-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding-inline: 0.45rem;
  color: var(--docs-muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.docs-top-links a:hover,
.docs-top-links a[aria-current="page"] {
  color: var(--docs-primary);
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.3em;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 14rem) minmax(0, 1fr);
  gap: 1.5rem;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 1.5rem clamp(0.9rem, 3vw, 2.5rem) 3rem;
}

.docs-navigation {
  position: sticky;
  top: 1rem;
  align-self: start;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.docs-navigation > summary,
.docs-toc > summary {
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  color: var(--docs-text);
  font-weight: 800;
  cursor: pointer;
}

.docs-side-nav {
  display: grid;
  gap: 0.15rem;
}

.docs-side-nav a {
  display: flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.45rem 0.65rem;
  border-left: 3px solid transparent;
  color: var(--docs-muted);
  font-size: 0.86rem;
  line-height: 1.35;
  text-decoration: none;
}

.docs-side-nav a:hover {
  background: var(--docs-panel-muted);
  color: var(--docs-primary-strong);
}

.docs-side-nav a[aria-current="page"] {
  border-color: var(--docs-primary);
  background: var(--docs-panel-muted);
  color: var(--docs-text);
}

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

.docs-main--with-toc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 14rem);
  gap: 1.5rem;
  align-items: start;
}

.docs-content {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--docs-panel);
}

.docs-content > :first-child {
  margin-top: 0;
}

.docs-content h1,
.docs-content h2,
.docs-content h3,
.docs-content h4 {
  line-height: 1.25;
  scroll-margin-top: 1rem;
}

.docs-content h1 {
  margin: 0 0 1.1rem;
  font-size: 2.35rem;
}

.docs-content h2 {
  margin-top: 2.25rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--docs-border);
  font-size: 1.5rem;
}

.docs-content h3 {
  margin-top: 1.65rem;
  font-size: 1.18rem;
}

.docs-content p,
.docs-content li {
  max-width: 76ch;
}

.docs-content code {
  padding: 0.1em 0.32em;
  border-radius: 4px;
  background: var(--docs-panel-muted);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.docs-code {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem;
  border-radius: 6px;
  background: var(--docs-code-bg);
}

.docs-code code {
  padding: 0;
  color: var(--docs-code-text);
  background: transparent;
  overflow-wrap: normal;
}

.docs-table-wrap {
  max-width: 100%;
  margin: 1.25rem 0;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
}

th,
td {
  padding: 0.65rem;
  border: 1px solid var(--docs-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--docs-panel-muted);
}

.docs-toc {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding-left: 0.9rem;
  border-left: 2px solid var(--docs-border);
}

.docs-toc ol {
  margin: 0;
  padding-left: 1.1rem;
}

.docs-toc li {
  margin: 0.35rem 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.docs-toc a {
  color: var(--docs-muted);
  font-weight: 650;
  text-decoration: none;
}

.docs-toc a:hover {
  color: var(--docs-primary);
  text-decoration: underline;
}

.docs-toc .toc-level-3 {
  margin-left: 0.65rem;
}

.docs-hero {
  padding-bottom: 1.35rem;
}

.docs-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--docs-primary);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.docs-card {
  padding: 1rem;
  border: 1px solid var(--docs-border);
  border-radius: 6px;
  background: #fbfdfc;
}

.docs-card h2 {
  margin: 0 0 0.45rem;
  padding: 0;
  border: 0;
  font-size: 1.05rem;
}

.docs-card p {
  margin: 0;
  color: var(--docs-muted);
  font-size: 0.9rem;
}

.docs-extra {
  margin-top: 1.75rem;
}

@media (min-width: 1041px) {
  .docs-navigation > summary,
  .docs-toc > summary {
    display: none;
  }

  .docs-navigation > .docs-side-nav,
  .docs-toc > ol {
    display: grid;
  }
}

@media (max-width: 1040px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-navigation {
    position: static;
    max-height: none;
    overflow: visible;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    background: var(--docs-panel);
  }

  .docs-navigation[open] > summary,
  .docs-toc[open] > summary {
    border-bottom: 1px solid var(--docs-border);
  }

  .docs-side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.5rem;
  }

  .docs-main--with-toc {
    display: block;
  }

  .docs-toc {
    position: static;
    max-height: none;
    margin-bottom: 1rem;
    padding: 0;
    overflow: visible;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    background: var(--docs-panel);
  }

  .docs-toc ol {
    padding: 0.35rem 1rem 0.8rem 2rem;
  }
}

@media (max-width: 720px) {
  .docs-header {
    display: block;
    padding: 1rem;
  }

  .docs-top-links {
    justify-content: flex-start;
    margin-top: 0.6rem;
  }

  .docs-top-links a {
    min-height: 2.75rem;
  }

  .docs-layout {
    gap: 0.85rem;
    padding: 0.85rem 0.75rem 2rem;
  }

  .docs-side-nav,
  .docs-card-grid {
    grid-template-columns: 1fr;
  }

  .docs-content {
    padding: 1.15rem 0.9rem;
  }

  .docs-content h1 {
    font-size: 1.9rem;
  }

  .docs-content h2 {
    font-size: 1.35rem;
  }
}
