:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --surface: #fffdf8;
  --ink: #17212b;
  --muted: #64717d;
  --line: #d9d6cd;
  --blue: #2675b9;
  --blue-dark: #18598d;
  --mint: #cdeee1;
  --code: #111b25;
  --shadow: 0 18px 60px rgba(31, 45, 58, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, transparent 31px, rgba(38, 117, 185, 0.055) 32px, transparent 33px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(23, 33, 43, 0.12);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(18px);
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.docs-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-family: Georgia, serif;
  font-size: 20px;
}

.docs-topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-topbar nav a {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.docs-topbar nav a:hover,
.docs-topbar nav a:focus-visible {
  background: #e9eef1;
  color: var(--ink);
  outline: none;
}

.docs-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 820px) 220px;
  justify-content: center;
  gap: 48px;
  padding: 48px 32px 120px;
}

.docs-sidebar,
.docs-rail {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.docs-sidebar-label,
.docs-rail-card span {
  display: block;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-sidebar nav {
  display: grid;
  gap: 2px;
}

.docs-sidebar nav a {
  padding: 6px 10px;
  border-left: 2px solid transparent;
  color: #53616d;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.docs-sidebar nav a:hover,
.docs-sidebar nav a:focus-visible {
  border-left-color: var(--blue);
  color: var(--ink);
  outline: none;
}

.docs-sidebar .docs-nav-level-3 {
  padding-left: 22px;
  font-size: 11px;
}

.docs-ai-card {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid #a9d4c5;
  border-radius: 14px;
  background: var(--mint);
}

.docs-ai-card span {
  color: #377462;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-ai-card code {
  overflow: hidden;
  text-overflow: ellipsis;
}

.docs-ai-card a {
  color: #195c47;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.docs-signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #32a071;
  box-shadow: 0 0 0 5px rgba(50, 160, 113, 0.12);
}

.docs-article {
  padding: 48px 56px 72px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.docs-article h1,
.docs-article h2,
.docs-article h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.docs-article h1 {
  max-width: 680px;
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.98;
}

.docs-article h2 {
  margin: 64px 0 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 31px;
  line-height: 1.08;
}

.docs-article h3 {
  margin: 38px 0 12px;
  font-size: 22px;
}

.docs-article p,
.docs-article li {
  color: #34424e;
  font-size: 16px;
  line-height: 1.72;
}

.docs-article li + li {
  margin-top: 6px;
}

.docs-article a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.docs-article code {
  padding: 0.15em 0.38em;
  border-radius: 5px;
  background: #e8edf0;
  color: #153a56;
  font-size: 0.88em;
}

.docs-article pre {
  position: relative;
  overflow: auto;
  margin: 18px 0 24px;
  padding: 22px;
  border: 1px solid #263746;
  border-radius: 14px;
  background: var(--code);
  color: #dce8ef;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.docs-article pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  line-height: 1.65;
}

.docs-copy {
  position: sticky;
  left: 100%;
  bottom: 0;
  display: block;
  min-width: 92px;
  margin: 12px 0 -10px auto;
  padding: 7px 10px;
  border: 1px solid #4d6273;
  border-radius: 8px;
  background: #1c2a36;
  color: #dce8ef;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.docs-copy:hover,
.docs-copy:focus-visible {
  border-color: #7ba8c9;
  outline: none;
}

.docs-article blockquote {
  margin: 24px 0;
  padding: 2px 0 2px 20px;
  border-left: 4px solid var(--blue);
}

.docs-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.docs-article th,
.docs-article td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.docs-rail {
  display: grid;
  gap: 12px;
}

.docs-rail-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.72);
}

.docs-rail-card span {
  margin-bottom: 8px;
}

.docs-rail-card code {
  overflow-wrap: anywhere;
  color: #34424e;
  font-size: 11px;
}

.docs-reference-link {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.docs-reference-link:hover,
.docs-reference-link:focus-visible {
  background: #e5eaec;
  outline: none;
}

@media (max-width: 1180px) {
  .docs-layout {
    grid-template-columns: 220px minmax(0, 820px);
    gap: 32px;
  }

  .docs-rail {
    display: none;
  }
}

@media (max-width: 820px) {
  .docs-topbar {
    padding: 0 16px;
  }

  .docs-topbar nav a:not(:last-child) {
    display: none;
  }

  .docs-layout {
    display: block;
    padding: 24px 12px 80px;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 24px;
  }

  .docs-sidebar > nav {
    display: none;
  }

  .docs-ai-card {
    margin-top: 0;
  }

  .docs-main {
    min-width: 0;
  }

  .docs-article {
    padding: 32px 22px 56px;
    border-radius: 18px;
  }

  .docs-article h1 {
    font-size: 42px;
  }

  .docs-article h2 {
    margin-top: 52px;
    font-size: 28px;
  }

  .docs-article p,
  .docs-article li {
    font-size: 15px;
  }
}
