:root {
  color-scheme: light;
  --navy-950: #020814;
  --navy-900: #07162f;
  --navy-800: #0c2348;
  --blue-600: #2469ad;
  --blue-400: #65a9eb;
  --blue-300: #8fc5ff;
  --ice-100: #eaf5ff;
  --ice-50: #f6fbff;
  --paper: #fff;
  --ink: #0b1830;
  --muted: #5d6c80;
  --line: rgba(7, 22, 47, .15);
  --code: #061225;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.62 "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}
button,
input { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 200;
  left: 1rem;
  top: -5rem;
  padding: .75rem 1rem;
  color: #fff;
  background: var(--navy-900);
  border: 1px solid var(--blue-300);
}
.skip-link:focus { top: 1rem; }

.docs-header {
  position: sticky;
  z-index: 60;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 70px;
  padding: 0 max(1.5rem, calc((100vw - var(--max)) / 2));
  color: #eff7ff;
  background: rgba(3, 11, 26, .96);
  border-bottom: 1px solid rgba(181, 218, 250, .18);
  backdrop-filter: blur(18px);
}
.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.docs-brand small {
  padding-left: .65rem;
  color: rgba(214, 233, 250, .48);
  border-left: 1px solid rgba(214, 233, 250, .24);
  font-size: .64rem;
}
.brand-glyph {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--blue-300);
  border: 1px solid rgba(186, 221, 255, .58);
  border-radius: 50%;
  letter-spacing: -.08em;
}
.docs-tabs { display: flex; align-items: center; gap: 1.8rem; }
.docs-tabs a {
  position: relative;
  padding: 1.55rem 0 1.35rem;
  color: rgba(226, 239, 252, .66);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.docs-tabs a:hover,
.docs-tabs a:focus-visible,
.docs-tabs a.is-active { color: #fff; }
.docs-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--blue-300);
  box-shadow: 0 0 16px rgba(143, 197, 255, .85);
}
.docs-lumos {
  justify-self: end;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(225, 242, 255, .7);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(225, 245, 255, .95), 0 0 34px rgba(112, 190, 255, .8);
}
.docs-lumos::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 5px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px #fff;
}

.docs-hero {
  position: relative;
  overflow: hidden;
  color: #f2f8ff;
  background:
    radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1.5px) 14px 9px / 103px 91px,
    radial-gradient(circle at 78% 20%, rgba(82, 158, 231, .28), transparent 28%),
    linear-gradient(145deg, #0a2349, #06142d 50%, #020815);
}
.docs-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -14rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(157, 205, 249, .16);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(72, 147, 219, .14);
}
.docs-hero-inner {
  position: relative;
  z-index: 1;
  display: block;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  width: min(calc(100% - 4rem), var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 3.2rem;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue-300);
  font: 700 .7rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}
.docs-hero h1 {
  max-width: 760px;
  margin: 0;
  font: 400 clamp(3rem, 6vw, 6.2rem)/.95 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
}
.hero-lead {
  max-width: 710px;
  margin: 1.5rem 0 0;
  color: rgba(224, 237, 250, .68);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
}
.docs-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  width: min(100%, var(--max));
  margin: 0 auto;
}
.docs-sidebar {
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 70px);
  padding: 2rem 2rem 2.5rem;
  overflow: auto;
  background: var(--ice-50);
  border-right: 1px solid var(--line);
}
.docs-search { display: grid; gap: .55rem; }
.docs-search span {
  color: #4f6883;
  font: 700 .67rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.docs-search input {
  width: 100%;
  min-height: 44px;
  padding: .7rem .8rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(7, 22, 47, .18);
  border-radius: 0;
  outline: none;
}
.docs-search input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(61, 131, 214, .12); }
.search-result { min-height: 1.1rem; margin: .55rem 0 1rem; color: var(--muted); font-size: .78rem; }
.article-nav { display: grid; }
.article-nav a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: .65rem;
  padding: .82rem 0;
  color: #52667d;
  border-top: 1px solid rgba(7, 22, 47, .1);
  text-decoration: none;
  font-size: .88rem;
  line-height: 1.35;
}
.article-nav a:last-child { border-bottom: 1px solid rgba(7, 22, 47, .1); }
.article-nav a span:first-child {
  color: #7f94aa;
  font: 700 .63rem/1.8 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.article-nav a:hover,
.article-nav a:focus-visible,
.article-nav a.is-active { color: var(--blue-600); }
.article-nav a.is-active { font-weight: 700; }
.docs-content {
  min-width: 0;
  min-height: 70vh;
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 7vw, 7rem) 7rem;
  outline: none;
}
.docs-content > section { max-width: 940px; }
.loading-state { color: var(--muted); }
.article-head { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.doc-kicker {
  margin: 0 0 .8rem;
  color: var(--blue-600);
  font: 700 .69rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.article-head h1 {
  margin: 0;
  font: 400 clamp(2.5rem, 5vw, 5rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}
.article-summary { max-width: 760px; margin: 1.25rem 0 0; color: var(--muted); font-size: 1.1rem; }

.doc-block { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.doc-block h2 {
  margin: 0 0 1rem;
  font: 400 clamp(1.8rem, 3vw, 2.7rem)/1.12 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}
.block-text { max-width: 800px; color: #394b61; }
.block-text p { margin: .75rem 0; }
.doc-steps {
  display: grid;
  gap: .85rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.doc-steps li {
  position: relative;
  min-height: 44px;
  padding: .75rem 1rem .75rem 3.6rem;
  background: var(--ice-50);
  border-left: 1px solid rgba(40, 105, 170, .28);
  counter-increment: steps;
}
.doc-steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: .9rem;
  color: var(--blue-600);
  font: 700 .67rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.doc-figure { margin: 2rem 0 0; }
.doc-image-button {
  display: block;
  width: 100%;
  padding: 0;
  background: var(--navy-950);
  border: 1px solid rgba(7, 22, 47, .2);
  cursor: zoom-in;
}
.doc-image-button img { display: block; width: 100%; height: auto; }
.doc-figure > img { display: block; width: 100%; height: auto; border: 1px solid rgba(7, 22, 47, .2); }
.doc-figure figcaption { margin-top: .75rem; color: var(--muted); font-size: .82rem; }
.article-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.article-pager a {
  display: grid;
  gap: .2rem;
  min-height: 82px;
  padding: 1rem;
  color: var(--ink);
  background: var(--ice-50);
  border: 1px solid var(--line);
  text-decoration: none;
}
.article-pager a:last-child { text-align: right; }
.article-pager small { color: var(--blue-600); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.article-pager a:hover,
.article-pager a:focus-visible { border-color: var(--blue-400); }

.docs-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem max(2rem, calc((100vw - var(--max)) / 2));
  color: rgba(219, 235, 250, .55);
  background: var(--navy-950);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.docs-footer a { text-decoration: none; }
.docs-footer a:hover,
.docs-footer a:focus-visible { color: #fff; }

.image-dialog {
  width: min(94vw, 1400px);
  max-height: 92vh;
  padding: 0;
  background: #020712;
  border: 1px solid rgba(157, 205, 249, .32);
  box-shadow: 0 30px 110px rgba(0, 0, 0, .7);
}
.image-dialog::backdrop { background: rgba(0, 4, 12, .88); backdrop-filter: blur(5px); }
.image-dialog form { position: relative; margin: 0; padding: 2.5rem 1rem 1rem; }
.image-dialog img { display: block; max-height: 78vh; margin: 0 auto; }
.image-dialog p { margin: .75rem 0 0; color: rgba(226, 240, 252, .72); text-align: center; }
.image-close {
  position: absolute;
  top: .45rem;
  right: .55rem;
  width: 36px;
  height: 36px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(217, 237, 255, .32);
  cursor: pointer;
  font-size: 1.35rem;
}

@media (max-width: 980px) {
  .docs-header { grid-template-columns: 1fr auto; padding: 0 1rem; }
  .docs-lumos { display: none; }
  .docs-hero-inner { width: calc(100% - 2rem); }
  .docs-layout { grid-template-columns: 270px minmax(0, 1fr); }
  .docs-sidebar { padding-inline: 1.25rem; }
  .docs-content { padding-inline: 2.5rem; }
}

@media (max-width: 760px) {
  .docs-header {
    position: relative;
    grid-template-columns: 1fr;
    gap: .2rem;
    padding: .75rem 1rem 0;
  }
  .docs-brand { margin-bottom: .35rem; }
  .docs-tabs {
    width: 100%;
    gap: 1.2rem;
    overflow-x: auto;
  }
  .docs-tabs a { flex: 0 0 auto; padding: .8rem 0 1rem; font-size: .68rem; }
  .docs-hero-inner { padding: 3.5rem 0 2.4rem; }
  .docs-hero h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .docs-layout { display: block; }
  .docs-sidebar {
    position: static;
    max-height: none;
    padding: 1.25rem 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .article-nav { grid-template-columns: repeat(15, minmax(220px, 72vw)); overflow-x: auto; }
  .article-nav a { padding: .8rem .6rem .8rem 0; border-bottom: 1px solid rgba(7, 22, 47, .1); }
  .docs-content { padding: 3.5rem 1rem 5rem; }
  .article-head h1 { font-size: clamp(2.35rem, 11vw, 3.5rem); }
  .article-pager { grid-template-columns: 1fr; }
  .article-pager a:last-child { text-align: left; }
  .docs-footer { flex-direction: column; padding-inline: 1rem; }
}

@media (max-width: 420px) {
  .docs-brand small { display: none; }
  .article-nav { grid-template-columns: repeat(15, minmax(190px, 82vw)); }
  .doc-steps li { padding-left: 3.2rem; }
}

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