html { background: #0c0e11; }

.documentation {
  min-height: 100%;
  margin: 0;
  display: block;
  padding: 0;
  background: #0c0e11;
  color: #d8dade;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  text-align: left;
}

.documentation *,
.documentation *::before,
.documentation *::after {
  box-sizing: border-box;
}

.documentation .glamping-page {
  display: block;
  width: min(100%, 76rem);
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.docs-header {
  position: sticky;
  z-index: 10;
  top: 0;
  margin: 0 -2rem;
  width: calc(100% + 4rem);
  padding: 0 2rem;
  border-bottom: 1px solid #242830;
  background: rgb(12 14 17 / 92%);
  backdrop-filter: blur(12px);
}

.docs-index-content {
  width: min(100%, 49rem);
  margin: 0 auto;
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.docs-index-content h1 {
  margin: 0;
  color: #f4f5f7;
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  font-weight: 650;
  letter-spacing: -0.055em;
}

.docs-projects {
  margin-top: 2.5rem;
}

.docs-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid #272c34;
  border-radius: 0.5rem;
  background: #111419;
}

.docs-project-copy h2,
.docs-project-copy p {
  margin: 0;
}

.docs-project-copy h2 {
  color: #f0f1f3;
  font-size: 1.15rem;
  font-weight: 650;
}

.docs-project-copy p {
  margin-top: 0.2rem;
  color: #8f959f;
  font-size: 0.88rem;
}

.docs-project-link {
  flex: none;
  color: #b9cce8;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.docs-project-link::after {
  margin-left: 0.4rem;
  content: "→";
}

.docs-project-link:hover {
  color: #ffffff;
}

.docs-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
}

.docs-brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.docs-title {
  color: #f3f4f6;
  font-weight: 650;
}

.docs-site {
  color: #aeb3bc;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.docs-site:hover {
  color: #ffffff;
}

.docs-site + .docs-title::before {
  margin-right: 0.75rem;
  color: #454b54;
  content: "/";
}

.docs-title {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.docs-label {
  color: #777d87;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.docs-repository {
  color: #aeb3bc;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.docs-repository:hover {
  color: #ffffff;
}

.docs-tabs {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.docs-tabs::-webkit-scrollbar {
  display: none;
}

.docs-tab {
  flex: none;
  padding: 0.7rem 0 0.8rem;
  border-bottom: 2px solid transparent;
  color: #8f959f;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.docs-tab:first-child {
  border-bottom-color: #79aef7;
  color: #e8eaed;
}

.documentation:has(#low-level-api:target) .docs-tab:first-child,
.documentation:has(#high-level-api:target) .docs-tab:first-child,
.documentation:has(#images-video-and-audio:target) .docs-tab:first-child {
  border-bottom-color: transparent;
  color: #8f959f;
}

.documentation:has(#low-level-api:target) .docs-tab[href="#low-level-api"],
.documentation:has(#high-level-api:target) .docs-tab[href="#high-level-api"],
.documentation:has(#images-video-and-audio:target) .docs-tab[href="#images-video-and-audio"] {
  border-bottom-color: #79aef7;
  color: #e8eaed;
}

.docs-tab:hover {
  color: #f4f5f7;
}

.docs-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, 49rem);
  justify-content: center;
  gap: clamp(3rem, 7vw, 6rem);
  padding-top: clamp(2rem, 4vw, 3rem);
}

.docs-sidebar {
  position: sticky;
  top: 8.5rem;
  display: flex;
  flex-direction: column;
  align-self: start;
  align-items: stretch;
  gap: 0.15rem;
  max-height: calc(100vh - 10rem);
  overflow-y: auto;
  scrollbar-color: #3a4049 transparent;
  scrollbar-width: thin;
}

.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: #3a4049;
}

.docs-sidebar-label {
  margin-bottom: 0.65rem;
  color: #e2e4e8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-sidebar-link {
  padding: 0.35rem 0;
  color: #8f959f;
  font-size: 0.84rem;
  line-height: 1.4;
  text-decoration: none;
}

.docs-sidebar-link:hover {
  color: #e7e9ec;
}

.docs-sidebar-subsection {
  display: block;
  padding-left: 0.8rem;
  color: #858b95;
  font-size: 0.78rem;
  line-height: 1.4;
  text-decoration: none;
}

.docs-sidebar-subsection + .docs-sidebar-subsection {
  margin-top: 0.4rem;
}

.docs-sidebar-subsection:hover {
  color: #e7e9ec;
}

.docs-sidebar-group {
  margin: 0;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
}

.docs-sidebar-group summary {
  color: #8f959f;
  font-size: 0.84rem;
  line-height: 1.4;
}

.docs-sidebar-group summary:hover,
.docs-sidebar-group[open] summary {
  color: #e7e9ec;
}

.docs-sidebar-group[open] > :not(summary) {
  margin-top: 0.5rem;
}

.docs-content {
  min-width: 0;
  user-select: text;
  -webkit-user-select: text;
}

.docs-content > * + * {
  margin-top: 1.25rem;
}

.docs-content h1,
.docs-content h2,
.docs-content h3 {
  color: #f4f5f7;
  line-height: 1.22;
  scroll-margin-top: 8.5rem;
}

.docs-content h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  font-weight: 650;
  letter-spacing: -0.055em;
}

.docs-content h2 {
  margin-top: 4.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #242830;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 620;
  letter-spacing: -0.035em;
}

.docs-content h3 {
  margin-top: 3rem;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.docs-content p,
.docs-content li {
  color: #b9bdc5;
}

.docs-content strong {
  color: #e7e9ec;
}

.docs-content a {
  color: #9dc4ff;
  text-decoration-color: #49698f;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.docs-content a:hover {
  color: #c6dcff;
  text-decoration-color: currentColor;
}

.docs-content ul,
.docs-content ol {
  padding-left: 1.4rem;
}

.docs-content li + li {
  margin-top: 0.45rem;
}

.docs-content :not(pre) > code {
  padding: 0.16em 0.38em;
  border: 1px solid #2a3039;
  border-radius: 0.3rem;
  background: #151920;
  color: #e5e7eb;
  font-size: 0.88em;
}

.docs-content pre {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 1.5rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid #262b33;
  border-radius: 0.5rem;
  background: #080a0c;
  color: #d9dee7;
  font-size: 0.88rem;
  line-height: 1.65;
  tab-size: 2;
}

.docs-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.highlight .c, .highlight .c1, .highlight .cm {
  color: #737b87;
  font-style: italic;
}

.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .cp {
  color: #c9a6ff;
}

.highlight .s, .highlight .s1, .highlight .s2, .highlight .si {
  color: #9acb8c;
}

.highlight .m, .highlight .mi, .highlight .mf, .highlight .ss {
  color: #e6b673;
}

.highlight .nc, .highlight .no, .highlight .nb, .highlight .nv {
  color: #88b7f5;
}

.highlight .nf {
  color: #78c6cf;
}

.docs-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin-block: 1.5rem;
  border: 1px solid #272c34;
  border-radius: 0.5rem;
  width: 100%;
  border-collapse: collapse;
  background: #111419;
}

.docs-content th,
.docs-content td {
  padding: 0.8rem 1rem;
  text-align: left;
}

.docs-content th {
  color: #e8eaed;
  font-size: 0.85rem;
  font-weight: 650;
}

.docs-content tr + tr,
.docs-content tbody {
  border-top: 1px solid #272c34;
}

.docs-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border: 1px solid #272c34;
  border-radius: 0.5rem;
  background: #111419;
}

.docs-corner {
  position: fixed;
  z-index: 5;
  bottom: 0;
  left: 0;
  display: block;
  width: 5.5rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  line-height: 0;
  filter: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.docs-corner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  user-select: none;
}

.docs-corner .docs-corner-mobile {
  display: none;
}

.docs-corner:hover {
  background: transparent;
  filter: none;
}

.docs-corner:active {
  transform: scale(0.96);
  transform-origin: bottom left;
}

.docs-corner:focus-visible {
  outline: 2px solid #79aef7;
  outline-offset: 2px;
}

.docs-content blockquote {
  margin-inline: 0;
  padding: 0.75rem 1.25rem;
  border-left: 2px solid #51647c;
  color: #9fa5ae;
}

.docs-content hr {
  margin-block: 3rem;
  border: 0;
  border-top: 1px solid #242830;
}

@media (max-width: 880px) {
  .docs-layout {
    display: block;
    width: min(100%, 49rem);
    margin-inline: auto;
  }

  .docs-sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  .documentation .glamping-page {
    padding-inline: 1.25rem;
  }

  .docs-header {
    margin-inline: -1.25rem;
    width: calc(100% + 2.5rem);
    padding-inline: 1.25rem;
  }

  .docs-label {
    display: none;
  }

  .docs-header-row {
    min-height: 3.5rem;
  }

  .docs-content h1 {
    font-size: clamp(2.5rem, 14vw, 3.5rem);
  }

  .docs-tabs {
    gap: 1.2rem;
  }

  .docs-layout {
    padding-top: 2.5rem;
  }

  .docs-content pre {
    margin-inline: -0.5rem;
    padding: 1rem;
    font-size: 0.8rem;
  }

  .docs-project {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .docs-corner {
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    left: auto;
    width: 4.25rem;
  }

  .docs-corner .docs-corner-desktop {
    display: none;
  }

  .docs-corner .docs-corner-mobile {
    display: block;
  }

  .docs-corner-spinning .docs-corner-mobile {
    animation: docs-corner-spin 0.7s ease-in-out;
  }
}

@keyframes docs-corner-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-header {
    backdrop-filter: none;
  }

  .docs-corner-spinning .docs-corner-mobile {
    animation: none;
  }
}
