:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #f8fafc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f8fafc;
}

a {
  color: #0e7490;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

a:hover {
  color: #0f172a;
}

a:focus-visible {
  outline: 3px solid rgb(20 184 166 / 35%);
  outline-offset: 3px;
}

.docs-topbar {
  border-bottom: 1px solid #e2e8f0;
  background: rgb(255 255 255 / 94%);
}

.docs-topbar-inner,
.docs-main,
.docs-footer-inner {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
}

.docs-topbar-inner {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  gap: 1.25rem;
}

.docs-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.docs-brand:hover {
  color: #0f172a;
}

.docs-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.65rem;
  background: #0f172a;
  color: #99f6e4;
  font-size: 1.05rem;
  font-weight: 900;
}

.docs-brand-label {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
}

.docs-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.docs-nav a {
  border-radius: 0.55rem;
  padding: 0.55rem 0.7rem;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.docs-nav a:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.docs-nav a[aria-current="page"] {
  background: #ccfbf1;
  color: #115e59;
}

.docs-website-link {
  flex: 0 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  padding: 0.5rem 0.75rem;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
}

.docs-website-link:hover {
  border-color: #94a3b8;
  background: #fff;
  color: #0f172a;
}

.docs-main {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 5rem;
}

.docs-hero {
  max-width: 48rem;
}

.docs-kicker {
  margin: 0 0 1rem;
  color: #0e7490;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-hero h1,
.docs-reference-intro h1 {
  max-width: 44rem;
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.docs-hero > p:not(.docs-kicker),
.docs-reference-intro > p:not(.docs-kicker) {
  max-width: 66ch;
  margin: 1.25rem 0 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.docs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 750;
}

.docs-button-primary {
  background: #0f172a;
  color: #fff;
}

.docs-button-primary:hover {
  background: #1e293b;
  color: #fff;
}

.docs-button-secondary {
  border-color: #cbd5e1;
  background: #fff;
  color: #334155;
}

.docs-button-secondary:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.docs-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.7fr);
  gap: 1rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.docs-panel {
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #fff;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.docs-panel h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.docs-panel-intro {
  margin: 0.45rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
}

.docs-link-list {
  display: grid;
  gap: 0.35rem;
  margin: 1.35rem 0 0;
}

.docs-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.65rem;
  padding: 0.75rem 0.8rem;
}

.docs-link-row:hover {
  background: #f8fafc;
}

.docs-link-row strong {
  display: block;
  color: #0f172a;
  font-size: 0.9rem;
}

.docs-link-row small {
  display: block;
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
}

.docs-link-arrow {
  flex: 0 0 auto;
  color: #0e7490;
  font-size: 1.1rem;
  font-weight: 700;
}

.docs-reference-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
}

.docs-version {
  color: #0e7490;
  font-size: 0.78rem;
  font-weight: 800;
}

.docs-code-note {
  margin-top: 1.35rem;
  border-radius: 0.65rem;
  background: #f1f5f9;
  padding: 0.85rem 1rem;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.55;
}

.docs-code-note code,
code {
  border-radius: 0.3rem;
  background: #e2e8f0;
  padding: 0.12rem 0.3rem;
  color: #0f172a;
  font: 0.88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.docs-footer {
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.docs-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem 0;
  color: #64748b;
  font-size: 0.8rem;
}

.docs-footer-inner p {
  margin: 0;
}

.docs-reference-intro {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 2.25rem 0 2rem;
}

.docs-reference-intro h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.docs-reference-intro > p:not(.docs-kicker) {
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

.docs-api-reference {
  min-height: 48rem;
}

.docs-page-main {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.75rem) 0 5rem;
}

.docs-article-layout {
  display: grid;
  grid-template-columns: minmax(10rem, 0.28fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.docs-article-nav {
  position: sticky;
  top: 1.5rem;
  border-left: 1px solid #cbd5e1;
  padding-left: 1rem;
}

.docs-article-nav p {
  margin: 0 0 0.7rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-article-nav a {
  display: block;
  padding: 0.35rem 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.docs-article-nav a:hover {
  color: #0f172a;
}

.docs-article {
  max-width: 51rem;
  min-width: 0;
}

.docs-article-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.75rem;
}

.docs-article h1 {
  max-width: 42rem;
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.15rem, 4.8vw, 3.55rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.docs-article-lede {
  max-width: 68ch;
  margin: 1rem 0 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
}

.docs-article-section {
  scroll-margin-top: 1.5rem;
  padding-top: 2.5rem;
}

.docs-article h2 {
  margin: 0 0 0.75rem;
  color: #0f172a;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.docs-article h3 {
  margin: 1.75rem 0 0.5rem;
  color: #1e293b;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.docs-article p,
.docs-article li {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
}

.docs-article p {
  margin: 0.75rem 0 0;
}

.docs-article ul,
.docs-article ol {
  margin: 0.85rem 0 0;
  padding-left: 1.3rem;
}

.docs-article li + li {
  margin-top: 0.35rem;
}

.docs-article strong {
  color: #1e293b;
}

.docs-article a:not(.docs-button) {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #99f6e4;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

.docs-callout {
  margin-top: 1.25rem;
  border: 1px solid #99f6e4;
  border-left: 3px solid #0e7490;
  border-radius: 0.7rem;
  background: #f0fdfa;
  padding: 0.9rem 1rem;
}

.docs-callout p {
  margin: 0;
  color: #134e4a;
  font-size: 0.88rem;
}

.docs-code-block {
  overflow-x: auto;
  margin: 1rem 0 0;
  border-radius: 0.7rem;
  background: #0f172a;
  padding: 1rem 1.1rem;
  color: #e2e8f0;
  font: 0.8rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}

.docs-steps {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: docs-step;
}

.docs-steps li {
  position: relative;
  min-height: 2.25rem;
  padding-left: 3rem;
}

.docs-steps li::before {
  position: absolute;
  top: 0.05rem;
  left: 0;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: #ccfbf1;
  color: #115e59;
  content: counter(docs-step);
  counter-increment: docs-step;
  font-size: 0.8rem;
  font-weight: 800;
}

.docs-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  background: #fff;
}

.docs-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  text-align: left;
}

.docs-table th,
.docs-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.8rem 0.9rem;
  vertical-align: top;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.5;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.docs-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-table code {
  white-space: nowrap;
}

.docs-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.docs-muted {
  color: #64748b !important;
  font-size: 0.82rem !important;
}

@media (max-width: 760px) {
  .docs-topbar-inner {
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0.75rem 0;
  }

  .docs-brand {
    flex: 1 0 auto;
  }

  .docs-nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .docs-nav a {
    padding-inline: 0.6rem;
  }

  .docs-website-link {
    font-size: 0.76rem;
  }

  .docs-overview {
    grid-template-columns: 1fr;
  }

  .docs-article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .docs-article-nav {
    position: static;
    border-top: 1px solid #cbd5e1;
    border-left: 0;
    padding: 1rem 0 0;
  }

  .docs-article-nav a {
    display: inline-block;
    margin-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
