:root {
  color-scheme: light;
  --ink: #181411;
  --paper: #fbfaf7;
  --line: #d8d0c8;
  --red: #cc2f1f;
  --code: #f2eee8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 Verdana, Arial, sans-serif;
}

header, main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 20px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; }
nav { display: flex; gap: 14px; flex-wrap: wrap; }
a { color: var(--red); text-underline-offset: 2px; }

.hero { padding: 58px 0 42px; }
.hero-grid { display: grid; grid-template-columns: minmax(270px, 390px) minmax(0, 1fr); gap: 34px; align-items: start; }
.hero-copy { padding-top: 18px; }
.hero-example { min-width: 0; }
.sample-label { margin: 0 0 6px; font-family: Consolas, "Courier New", monospace; font-size: 13px; color: #645b53; }
.example-picker { margin-bottom: 8px; }
.example-picker label { display: block; margin-bottom: 4px; font-weight: 700; }
.example-picker select { width: 100%; max-width: 360px; }
.eyebrow { margin: 0 0 14px; font-family: Consolas, monospace; }
h1 { margin: 0; font-size: 58px; line-height: 1; letter-spacing: 0; }
.lede { max-width: 690px; margin: 18px 0 16px; font-size: 19px; }

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.tags li {
  border: 1px solid var(--line);
  background: #fff;
  padding: 2px 7px;
  font: 13px/1.4 Consolas, "Courier New", monospace;
}
pre {
  max-width: 690px;
  margin: 0 0 24px;
  padding: 16px 18px;
  max-height: 249px;
  overflow: auto;
  background: var(--code);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
}

code { font: 14px/1.55 Consolas, "Courier New", monospace; }
.hero-code { max-width: none; max-height: 560px; overflow: auto; margin-bottom: 0; }
.hero-code code { font-size: 12px; line-height: 1.26; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 0; }
.button {
  display: inline-block;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.button.primary { background: var(--red); color: #fff; }
.button.secondary { background: #fff; color: var(--ink); }
.button.primary:hover { background: #a8271a; }
.button.secondary:hover { background: var(--code); }

@media (max-width: 760px) {
  .hero-grid { display: block; }
  .hero-example { margin-top: 28px; }
}

@media (max-width: 560px) {
  header { align-items: flex-start; flex-direction: column; }
  .hero { padding-top: 46px; }
  h1 { font-size: 42px; }
}
.page { padding: 46px 0 56px; }
h2 { margin: 30px 0 10px; font-size: 22px; }
.downloads { width: 100%; max-width: 760px; border-collapse: collapse; margin: 8px 0 24px; }
.downloads th, .downloads td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.downloads th { background: var(--code); font-weight: 700; }
.plain-list { margin-top: 8px; padding-left: 22px; }
.compact { max-width: 520px; }

.search label { font-weight: 700; }
.search p { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
input, button, select { font: inherit; padding: 5px 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
input[type="search"] { min-width: 260px; width: 44%; }
button, select { cursor: pointer; }
.note, .muted { color: #645b53; }
.mono { font-family: Consolas, "Courier New", monospace; }
.detail { max-width: 690px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 20px; }
.registry-table td, .registry-table th { font-size: 14px; }
.stats { max-width: 690px; }
.stats th { width: 28%; }
.stats td { font-family: Consolas, "Courier New", monospace; }
.docs-page { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: start; }
.docs-nav { border-right: 1px solid var(--line); padding-right: 18px; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav li { margin: 0 0 12px; }
.docs-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }
.path { color: #645b53; font: 12px/1.35 Consolas, "Courier New", monospace; }
.docs-content { max-width: 690px; }
.docs-content h1 { font-size: 44px; margin-bottom: 18px; }
.docs-content h3, .docs-content h4 { margin-top: 24px; }
.docs-content p, .docs-content li { max-width: 680px; }
@media (max-width: 720px) {
  .docs-page { display: block; }
  .docs-nav { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; margin-bottom: 24px; }
}
.tok-kw { color: #9b2418; font-weight: 700; }
.tok-fx { color: #8a3b00; font-weight: 700; }
.tok-ty { color: #5a356a; }
.tok-str { color: #226229; }
.tok-num { color: #245a8d; }
.tok-cm { color: #77706a; font-style: italic; }
.tok-op { color: #9b2418; }

html.docs-shell-root {
  scrollbar-color: #66708b transparent;
  scrollbar-width: thin;
}

html.docs-shell-root::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html.docs-shell-root::-webkit-scrollbar-track {
  background: transparent;
}

html.docs-shell-root::-webkit-scrollbar-thumb {
  background: #66708b;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

html.docs-shell-root::-webkit-scrollbar-thumb:hover {
  background: #8790aa;
  background-clip: content-box;
}

html.docs-shell-root::-webkit-scrollbar-corner {
  background: transparent;
}

body.docs-shell {
  --docs-bg: #11151f;
  --docs-panel: #202638;
  --docs-panel-strong: #2a3146;
  --docs-ink: #e8ecf8;
  --docs-muted: #aab1c7;
  --docs-line: #3a435d;
  --docs-code: #1a2030;
  background: var(--docs-bg);
  color: var(--docs-ink);
  scrollbar-color: #66708b transparent;
  scrollbar-width: thin;
}

.docs-shell * {
  scrollbar-color: #66708b transparent;
  scrollbar-width: thin;
}

.docs-shell::-webkit-scrollbar,
.docs-shell *::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.docs-shell::-webkit-scrollbar-track,
.docs-shell *::-webkit-scrollbar-track {
  background: transparent;
}

.docs-shell::-webkit-scrollbar-thumb,
.docs-shell *::-webkit-scrollbar-thumb {
  background: #66708b;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

.docs-shell::-webkit-scrollbar-thumb:hover,
.docs-shell *::-webkit-scrollbar-thumb:hover {
  background: #8790aa;
  background-clip: content-box;
}

.docs-shell::-webkit-scrollbar-corner,
.docs-shell *::-webkit-scrollbar-corner {
  background: transparent;
}

.docs-shell header,
.docs-shell main {
  max-width: none;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 58px;
  padding: 10px 20px;
  background: #151a27;
  border-bottom: 1px solid var(--docs-line);
}

.docs-topbar .brand {
  color: var(--docs-ink);
}

.docs-topbar nav {
  align-items: center;
}

.docs-topbar nav a {
  color: var(--docs-ink);
  text-decoration: none;
}

.docs-topbar nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.docs-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--docs-muted);
  font-size: 13px;
}

.docs-search input {
  width: 180px;
  min-width: 0;
  padding: 5px 8px;
  background: var(--docs-code);
  border-color: var(--docs-line);
  color: var(--docs-ink);
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(230px, 285px) minmax(0, 860px);
  gap: 0;
  min-height: calc(100vh - 58px);
  padding: 0;
}

.docs-sidebar {
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow: auto;
  padding: 22px 20px 40px;
  background: var(--docs-panel);
  border-right: 1px solid var(--docs-line);
}

.docs-sidebar-title {
  margin: 0 0 16px;
  color: #ffffff;
  font-weight: 700;
}

.docs-sidebar-title a {
  color: #ffffff;
  text-decoration: none;
}

.docs-sidebar-title a[aria-current="page"] {
  color: var(--red);
}

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

.docs-tree,
.docs-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-tree ul {
  margin: 5px 0 8px 15px;
  padding-left: 10px;
  border-left: 2px solid #566282;
}

.docs-tree li {
  margin: 3px 0;
}

.docs-tree a {
  display: inline-block;
  max-width: 100%;
  color: var(--docs-ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}

.docs-tree a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.docs-tree a[aria-current="page"] {
  color: var(--red);
  font-weight: 700;
}

.docs-article {
  width: 100%;
  max-width: 820px;
  padding: 54px 48px 80px;
}

.docs-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--docs-muted);
  font-size: 13px;
}

.docs-breadcrumbs a {
  color: var(--docs-muted);
  text-decoration: none;
}

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

.docs-article h1 {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.15;
}

.docs-article h2 {
  margin: 42px 0 12px;
  color: #f2f5ff;
  font-size: 24px;
}

.docs-article h3 {
  margin: 30px 0 10px;
  color: #f2f5ff;
  font-size: 20px;
}

.docs-article h4 {
  margin: 24px 0 8px;
  color: #f2f5ff;
  font-size: 17px;
}

.docs-article p,
.docs-article li {
  color: var(--docs-ink);
}

.docs-article a {
  color: #ff7468;
}

.docs-article code {
  color: #ffffff;
  background: var(--docs-code);
  border: 1px solid var(--docs-line);
  padding: 1px 4px;
}

.docs-article pre {
  max-width: none;
  max-height: none;
  margin: 18px 0 24px;
  background: var(--docs-code);
  border-color: var(--docs-line);
  border-left-color: var(--red);
}

.docs-article pre code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.docs-article .docs-note {
  padding: 14px 16px;
  background: var(--docs-panel);
  border: 1px solid var(--docs-line);
}

.docs-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 54px;
  padding-top: 20px;
  border-top: 1px solid var(--docs-line);
}

.docs-pager a {
  min-height: 52px;
  padding: 10px 12px;
  background: var(--docs-panel);
  border: 1px solid var(--docs-line);
  color: var(--docs-ink);
  text-decoration: none;
}

.docs-pager a:hover {
  border-color: var(--red);
}

.docs-pager-next {
  text-align: right;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 34px;
}

.docs-card {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.docs-card h2 {
  margin-top: 0;
}

.docs-card p {
  min-height: 48px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.quick-links a {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 880px) {
  .docs-layout {
    display: block;
  }

  .docs-sidebar {
    position: static;
    height: auto;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--docs-line);
  }

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

  .docs-sidebar-mobile {
    display: block;
    padding: 12px 18px;
  }

  .docs-sidebar-mobile summary {
    cursor: pointer;
    color: #ffffff;
    font-weight: 700;
  }

  .docs-sidebar-mobile .docs-tree {
    margin-top: 14px;
  }

  .docs-article {
    max-width: none;
    padding: 34px 20px 64px;
  }

  .docs-topbar {
    position: static;
  }
}

@media (max-width: 700px) {
  .docs-card-grid {
    grid-template-columns: 1fr;
  }

  .docs-search {
    width: 100%;
  }

  .docs-search input {
    flex: 1;
  }
}
