:root {
  color-scheme: light;
  scrollbar-gutter: stable;
  --page: #fbfcfd;
  --surface: #ffffff;
  --surface-subtle: #f4f6f8;
  --surface-hover: #eef2f4;
  --surface-pressed: #e4e9ed;
  --text: #252930;
  --text-strong: #11141a;
  --muted: #596170;
  --faint: #7d8794;
  --border: #dce1e7;
  --border-strong: #c7ced7;
  --brand: #239dad;
  --brand-strong: #126671;
  --brand-deep: #0e4f59;
  --brand-soft: #e5f4f4;
  --link: #0969da;
  --visited: #6f42c1;
  --focus: #1787e0;
  --focus-ring: rgb(23 135 224 / 0.24);
  --code-bg: #f5f7fa;
  --code-ink: #262c36;
  --success: #147d70;
  --danger: #b4233b;
  --shadow-popover: 0 14px 34px rgb(30 39 50 / 0.14), 0 3px 8px rgb(30 39 50 / 0.08);
  --shadow-drawer: 0 24px 64px rgb(24 31 39 / 0.22), 0 4px 14px rgb(24 31 39 / 0.12);
  --sans: "HK Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --header-height: 56px;
}

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

html {
  min-height: 100%;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-optical-sizing: auto;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #cbeaec;
  color: var(--text-strong);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.19em;
}

a:visited {
  color: var(--visited);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:where(a, button, input):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
  transform: translateY(calc(-100% - 18px));
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus {
  color: var(--text-strong);
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  border-bottom: 1px solid rgb(220 225 231 / 0.9);
  background: rgb(251 252 253 / 0.92);
  backdrop-filter: saturate(150%) blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1324px);
  height: 100%;
  margin-inline: auto;
  padding: 0 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  gap: 8px;
  color: var(--text-strong);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.brand:visited {
  color: var(--text-strong);
}

.brand__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand__version,
.sidebar-version,
.pill,
.section-count {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--surface-subtle);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  padding: 3px 6px;
  white-space: nowrap;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 11px;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    transform 140ms var(--ease-out);
}

.sidebar-close img,
.copy-button img {
  display: block;
}

.doc-nav-scrim {
  display: none;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(196px, 216px) minmax(0, 780px) minmax(152px, 168px);
  justify-content: center;
  gap: 44px;
  width: 100%;
  padding: 38px clamp(28px, 4vw, 56px) 72px;
}

.docs-sidebar {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 24px);
  min-width: 0;
  max-height: calc(100vh - var(--header-height) - 48px);
  overflow: hidden auto;
  padding: 2px 8px 28px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.sidebar-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-identity {
  min-width: 0;
}

.sidebar-package {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text-strong);
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.sidebar-package:visited {
  color: var(--text-strong);
}

.sidebar-version {
  margin-top: 6px;
}

.sidebar-close {
  display: none;
}

.sidebar-category {
  margin: 22px 8px 8px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

.sidebar-category--symbols {
  margin-top: 26px;
}

.doc-search {
  position: relative;
  margin-top: 18px;
}

.doc-search__field {
  position: relative;
}

.doc-search__icon {
  position: absolute;
  top: 50%;
  left: 10px;
  z-index: 1;
  opacity: 0.88;
  pointer-events: none;
  transform: translateY(-50%);
}

.doc-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.45;
  outline: none;
  padding: 8px 10px 8px 34px;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

.doc-search input::placeholder {
  color: var(--faint);
  opacity: 1;
}

.doc-search input:focus {
  border-color: var(--focus);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.doc-search input:focus-visible {
  outline: none;
}

.doc-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 55;
  display: grid;
  width: min(380px, calc(100vw - 40px));
  max-height: min(520px, 70vh);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-popover);
  padding: 6px;
  transform-origin: top left;
}

.doc-search-results[hidden] {
  display: none;
}

.doc-search-results__summary {
  color: var(--faint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  padding: 6px 8px 5px;
  text-transform: uppercase;
}

.doc-search-result {
  display: grid;
  gap: 3px;
  border-radius: 6px;
  color: var(--text);
  padding: 9px 10px;
  text-decoration: none;
}

.doc-search-result:visited {
  color: var(--text);
}

.doc-search-result[aria-selected="true"] {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.doc-search-result__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.doc-search-result__title {
  min-width: 0;
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-search-result__kind {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.doc-search-result__text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.doc-search-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 12px;
}

.module-list,
.symbol-nav {
  display: grid;
  gap: 3px;
}

.module-link,
.symbol-nav a {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  border-radius: 6px;
  color: var(--text);
  padding: 6px 25px 6px 8px;
  text-decoration: none;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

.module-link:visited,
.symbol-nav a:visited {
  color: var(--text);
}

.module-link.is-current,
.symbol-nav a.is-current {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.module-link.is-current::after,
.symbol-nav a.is-current::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-strong);
  transform: translateY(-50%);
}

.module-link__name {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.module-link__meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.module-link__badge {
  color: var(--brand-strong);
  font-weight: 750;
}

.symbol-nav a {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 7px;
  padding-right: 20px;
  font-family: var(--mono);
  font-size: 12px;
}

.symbol-nav .pill {
  font-size: 9px;
  padding: 2px 4px;
}

.docs-main,
.page-content {
  min-width: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  overflow-x: auto;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  scrollbar-width: none;
  white-space: nowrap;
}

.breadcrumbs::-webkit-scrollbar {
  display: none;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs__root {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-strong);
  font-weight: 750;
  line-height: 1;
  padding: 6px 9px;
}

.breadcrumbs__sep {
  color: var(--border-strong);
  user-select: none;
}

.page-title {
  margin-bottom: 42px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 36px;
}

.package-hero {
  padding-bottom: 38px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--text-strong);
  letter-spacing: 0;
  text-wrap: pretty;
}

h1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 40px;
  font-weight: 760;
  line-height: 1.1;
}

h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 730;
  line-height: 1.25;
}

h3 {
  margin: 34px 0 12px;
  font-size: 18px;
  font-weight: 720;
  line-height: 1.35;
}

h4 {
  margin: 28px 0 10px;
  font-size: 16px;
  font-weight: 720;
}

.section-count {
  min-width: 25px;
  justify-content: center;
  background: var(--surface-subtle);
  color: var(--faint);
  font-size: 11px;
}

.lead {
  max-width: 66ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 24px;
}

li + li {
  margin-top: 4px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.nav-button,
.button-link,
.pagination__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-strong);
  font-weight: 720;
  line-height: 1.2;
  padding: 9px 14px;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease,
    color 120ms ease,
    transform 140ms var(--ease-out);
}

.nav-button:visited,
.button-link:visited,
.pagination__button:visited {
  color: var(--text-strong);
}

.nav-button--primary {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: #fff;
  box-shadow: 0 1px 2px rgb(13 79 89 / 0.18);
}

.nav-button--primary:visited {
  color: #fff;
}

.facts .source-link {
  justify-content: flex-start;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--link);
  padding: 0;
  text-align: start;
  box-shadow: none;
}

.docs-section {
  margin-top: 52px;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.docs-section:first-of-type {
  margin-top: 0;
}

.facts,
.source-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--border);
  padding: 0;
}

.fact,
.source-meta div {
  min-width: 0;
  background: var(--page);
  padding: 15px 16px;
}

.fact dt,
.source-meta dt {
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

.fact dd,
.source-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text-strong);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.45;
}

.fact dd a,
.source-meta dd a {
  font-family: var(--sans);
}

.module-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.module-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 14px 15px;
  text-decoration: none;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease,
    color 120ms ease;
}

.module-card:visited {
  color: var(--text);
}

.module-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text-strong);
  font-family: var(--mono);
}

.module-card span {
  color: var(--muted);
  font-size: 12px;
}

.module-card__arrow {
  color: var(--faint);
  font-family: var(--sans);
  font-size: 16px !important;
  transition:
    color 120ms ease,
    transform 160ms var(--ease-out);
}

.code-block {
  position: relative;
  min-width: 0;
}

.code-definition,
.signature {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.62;
  margin: 0;
  padding: 17px 92px 17px 17px;
  scrollbar-color: var(--border-strong) transparent;
  white-space: pre;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 67px;
  min-height: 31px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  padding: 7px 9px;
  box-shadow: 0 1px 2px rgb(25 32 41 / 0.06);
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    transform 140ms var(--ease-out);
}

.copy-button__icon {
  flex: 0 0 auto;
  transition: opacity 120ms ease;
}

.copy-button__icon--check {
  display: none !important;
}

.copy-button[data-state="copied"] {
  border-color: #9fcfc7;
  background: #eef9f6;
  color: var(--success);
}

.copy-button[data-state="copied"] .copy-button__icon--copy {
  display: none;
}

.copy-button[data-state="copied"] .copy-button__icon--check {
  display: block !important;
}

.copy-button[data-state="error"] {
  border-color: #e9b8c1;
  background: #fff3f5;
  color: var(--danger);
}

.copy-button[data-instant] .copy-button__icon {
  transition-duration: 0ms;
}

code {
  border-radius: 4px;
  background: var(--surface-subtle);
  color: var(--code-ink);
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 2px 4px;
}

pre {
  max-width: 100%;
  overflow: auto;
}

pre code,
.code-definition code,
.signature code {
  display: block;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.pill {
  vertical-align: baseline;
}

h1 > .pill {
  transform: translateY(-3px);
  font-size: 13px;
  padding: 5px 8px;
}

.pill--function {
  border-color: #c7ddf0;
  background: #eaf4fc;
  color: #255f90;
}

.pill--constant {
  border-color: #efd8b2;
  background: #fff4e1;
  color: #84540f;
}

.pill--re-export {
  border-color: #dcd0f4;
  background: #f2edfc;
  color: #6840a1;
}

.pill--module,
.pill--version {
  border-color: var(--border);
  background: var(--surface-subtle);
  color: var(--muted);
}

.symbol-table {
  display: grid;
  border-top: 1px solid var(--border-strong);
}

.symbol-row {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(132px, 1.15fr) minmax(90px, 0.8fr) minmax(0, 2fr);
  gap: 16px;
  align-items: baseline;
  min-width: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 13px 30px 13px 4px;
  text-decoration: none;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

.symbol-row::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 8px;
  color: var(--faint);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 120ms ease;
}

.symbol-row:not(:has(.symbol-module)) {
  grid-template-columns: 78px minmax(132px, 1.15fr) minmax(0, 2fr);
}

.symbol-row:visited {
  color: var(--text);
}

.symbol-name,
.symbol-module {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 13px;
}

.symbol-name {
  color: var(--text-strong);
  font-weight: 700;
}

.symbol-module,
.symbol-summary {
  color: var(--muted);
}

.symbol-summary {
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
}

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--muted);
  margin: 0;
  padding: 15px 16px;
}

.docs-header .code-block {
  margin-top: 24px;
}

.docs-header .code-definition {
  max-height: min(440px, calc(100vh - 280px));
}

.prose-code-block {
  margin: 22px 0;
}

.prose-code-block .code-definition {
  max-height: none;
}

.source-section {
  margin-top: 54px;
}

.prose {
  min-width: 0;
  color: #303641;
}

.prose > * {
  min-width: 0;
}

.prose p,
.prose li {
  max-width: 72ch;
}

.prose h3 {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.prose blockquote {
  margin: 22px 0;
  border-left: 3px solid var(--brand);
  color: var(--muted);
  padding: 4px 0 4px 18px;
}

.prose blockquote > :last-child {
  margin-bottom: 0;
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 14px;
}

.docs-article dl {
  display: grid;
  grid-template-columns: minmax(128px, 180px) minmax(0, 1fr);
  margin: 20px 0 30px;
  border-top: 1px solid var(--border-strong);
}

.docs-article dt,
.docs-article dd {
  min-width: 0;
  margin: 0;
  border-bottom: 1px solid var(--border);
  padding: 13px 12px;
}

.docs-article dt {
  color: var(--text-strong);
  font-weight: 700;
}

.docs-article dd {
  color: var(--muted);
  line-height: 1.55;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--text-strong);
  font-weight: 750;
}

.docs-article > p:last-child:has(> em > code),
.docs-article > p:last-child:has(> a[href*="/blob/"]) {
  display: none;
}

.anchor {
  display: block;
  height: 0;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.prose p:has(> .anchor:only-child) {
  margin: 0;
}

#page-overview {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 28px);
  max-height: calc(100vh - var(--header-height) - 56px);
  overflow: hidden auto;
  margin-top: 56px;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  padding-left: 16px;
}

#page-overview strong {
  display: block;
  margin-bottom: 10px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

#page-overview ul {
  display: grid;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#page-overview li {
  margin: 0;
}

#page-overview a {
  display: block;
  border-radius: 4px;
  color: var(--muted);
  line-height: 1.35;
  padding: 5px 7px;
  text-decoration: none;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

#page-overview a[aria-current="location"] {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.pagination__button:last-child {
  justify-self: end;
}

.pagination__button:first-child {
  justify-self: start;
}

.pagination__button.is-disabled {
  border-color: var(--border);
  background: transparent;
  color: var(--faint);
  opacity: 0.62;
}

.pagination__status {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.page-shell {
  width: min(100%, 840px);
  margin-inline: auto;
  padding: 48px 32px 72px;
}

.page-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
}

.toc {
  margin-bottom: 30px;
  border-left: 2px solid var(--border-strong);
  color: var(--muted);
  padding-left: 18px;
}

.toc ol {
  margin-bottom: 0;
}

.page-list {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-list__link {
  display: grid;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 14px 15px;
  text-decoration: none;
  transition:
    background-color 120ms ease,
    border-color 120ms ease;
}

.page-list__link:visited {
  color: var(--text);
}

.page-list__title {
  color: var(--text-strong);
  font-weight: 750;
}

.page-list__desc {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, 1324px);
  margin-inline: auto;
  padding: 24px 36px;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

.site-footer__package {
  color: var(--text);
  font-family: var(--mono);
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  padding: 0;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--brand-deep);
  }

  .brand:hover {
    color: var(--brand-deep);
  }

  .mobile-nav-toggle:hover {
    border-color: var(--border);
    background: var(--surface-subtle);
    color: var(--text-strong);
  }

  .doc-search input:hover:not(:focus) {
    border-color: #adb7c3;
  }

  .doc-search-result:hover {
    background: var(--surface-hover);
    color: var(--text-strong);
  }

  .module-link:hover,
  .symbol-nav a:hover {
    background: var(--surface-hover);
    color: var(--brand-deep);
  }

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

  .breadcrumbs__root:hover {
    background: var(--surface-hover);
    text-decoration: none !important;
  }

  .nav-button:hover,
  .button-link:hover,
  .pagination__button:hover:not(.is-disabled) {
    border-color: #aeb8c3;
    background: var(--surface-hover);
    color: var(--text-strong);
    box-shadow: 0 2px 5px rgb(25 32 41 / 0.07);
  }

  .nav-button--primary:hover {
    border-color: var(--brand-deep);
    background: var(--brand-deep);
    color: #fff;
  }

  .facts .source-link:hover {
    border: 0;
    background: transparent;
    color: var(--brand-deep);
    box-shadow: none;
    text-decoration: underline;
  }

  .module-card:hover {
    border-color: #a9bec2;
    background: #f6fbfb;
    color: var(--text);
    box-shadow: 0 2px 7px rgb(21 71 78 / 0.07);
  }

  .module-card:hover .module-card__arrow {
    color: var(--brand-strong);
    transform: translateX(2px);
  }

  .copy-button:hover {
    border-color: #adb7c3;
    background: var(--surface-hover);
    color: var(--text-strong);
  }

  .symbol-row:hover {
    background: var(--surface-subtle);
    color: var(--text);
  }

  .symbol-row:hover::after {
    opacity: 1;
  }

  #page-overview a:hover {
    background: var(--surface-hover);
    color: var(--brand-deep);
  }

  .page-list__link:hover {
    border-color: #aeb8c3;
    background: var(--surface-subtle);
  }
}

.nav-button:active:not(:focus-visible),
.button-link:active:not(:focus-visible),
.mobile-nav-toggle:active:not(:focus-visible),
.copy-button:active:not(:focus-visible),
.pagination__button:active:not(:focus-visible) {
  transform: scale(0.97);
}

@media (max-width: 1180px) {
  .main-grid {
    grid-template-columns: minmax(196px, 216px) minmax(0, 780px);
    gap: 40px;
  }

  #page-overview {
    display: none;
  }

  .symbol-row {
    grid-template-columns: 78px minmax(132px, 1fr) minmax(0, 1.7fr);
  }

  .symbol-module {
    display: none;
  }

  .module-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .site-header__inner {
    padding-inline: 22px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .main-grid {
    display: block;
    width: min(100%, 828px);
    margin-inline: auto;
    padding: 30px 24px 64px;
  }

  .docs-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    width: min(320px, calc(100vw - 40px));
    max-height: 100vh;
    overflow: hidden auto;
    border-right: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-drawer);
    opacity: 0;
    padding: 20px 18px 36px;
    pointer-events: none;
    transform: translateX(-102%);
    visibility: hidden;
  }

  @supports (max-height: 100dvh) {
    .docs-sidebar {
      max-height: 100dvh;
    }
  }

  body[data-nav-open] {
    overflow: hidden;
  }

  body[data-nav-open] .docs-sidebar {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
  }

  .doc-nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    background: rgb(17 20 26 / 0.38);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  body[data-nav-open] .doc-nav-scrim {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  body[data-nav-animate] .docs-sidebar {
    transition:
      transform 220ms var(--ease-drawer),
      opacity 160ms var(--ease-out),
      visibility 0s linear 220ms;
  }

  body[data-nav-animate][data-nav-open] .docs-sidebar {
    transition:
      transform 220ms var(--ease-drawer),
      opacity 160ms var(--ease-out),
      visibility 0s linear 0s;
  }

  body[data-nav-animate] .doc-nav-scrim {
    transition:
      opacity 180ms var(--ease-out),
      visibility 0s linear 180ms;
  }

  body[data-nav-animate][data-nav-open] .doc-nav-scrim {
    transition:
      opacity 180ms var(--ease-out),
      visibility 0s linear 0s;
  }

  .sidebar-heading {
    position: sticky;
    top: -20px;
    z-index: 2;
    align-items: center;
    margin: -20px -4px 0;
    border-bottom: 1px solid var(--border);
    background: rgb(255 255 255 / 0.96);
    padding: 18px 4px 16px;
    backdrop-filter: blur(10px);
  }

  .sidebar-package {
    font-size: 18px;
  }

  .sidebar-version {
    margin: 0 0 0 6px;
    vertical-align: 2px;
  }

  .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    cursor: pointer;
    padding: 0;
    transition:
      background-color 120ms ease,
      border-color 120ms ease,
      transform 140ms var(--ease-out);
  }

  .sidebar-close:active:not(:focus-visible) {
    transform: scale(0.96);
  }

  .doc-search {
    margin-top: 20px;
  }

  .doc-search-results {
    position: static;
    width: 100%;
    max-height: 46vh;
    margin-top: 8px;
    box-shadow: 0 5px 16px rgb(30 39 50 / 0.1);
  }

  .sidebar-category {
    margin-top: 24px;
  }

  .page-title {
    margin-bottom: 38px;
  }

  .site-footer__inner {
    padding-inline: 24px;
  }
}

@media (max-width: 640px) {
  .facts,
  .source-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .symbol-row,
  .symbol-row:not(:has(.symbol-module)) {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px 12px;
    padding: 14px 28px 14px 2px;
  }

  .symbol-module {
    display: none;
  }

  .symbol-summary {
    grid-column: 1 / -1;
    padding-left: 0;
  }

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

  .docs-article dt {
    border-bottom: 0;
    padding-bottom: 3px;
  }

  .docs-article dd {
    padding-top: 3px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .site-header__inner {
    gap: 10px;
    padding-inline: 16px;
  }

  .brand__version {
    display: none;
  }

  .mobile-nav-toggle {
    padding: 8px 10px;
  }

  .main-grid {
    padding: 26px 18px 56px;
  }

  .breadcrumbs {
    margin-bottom: 24px;
  }

  .page-title,
  .package-hero {
    margin-bottom: 34px;
    padding-bottom: 30px;
  }

  h1 {
    gap: 9px;
    font-size: 32px;
    line-height: 1.12;
  }

  h1 > .pill {
    transform: translateY(-2px);
    font-size: 12px;
  }

  h2 {
    font-size: 20px;
  }

  .lead {
    font-size: 16px;
  }

  .page-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-actions .nav-button:only-child {
    grid-column: 1 / -1;
  }

  .docs-section {
    margin-top: 44px;
  }

  .fact,
  .source-meta div {
    padding: 13px 12px;
  }

  .module-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .module-card > span:not(.module-card__arrow) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .module-card__arrow {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .code-definition,
  .signature {
    font-size: 13px;
    padding: 15px 88px 15px 14px;
  }

  .copy-button {
    top: 9px;
    right: 9px;
  }

  .pagination {
    grid-template-columns: 1fr 1fr;
  }

  .pagination__status {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }

  .pagination__button {
    grid-row: 2;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 22px 18px;
  }
}

@media (max-width: 360px) {
  .site-header__inner,
  .main-grid,
  .page-shell,
  .site-footer__inner {
    padding-inline: 12px;
  }

  .page-actions {
    grid-template-columns: 1fr;
  }

  .facts,
  .source-meta {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link,
  .mobile-nav-toggle,
  .sidebar-close,
  .nav-button,
  .button-link,
  .pagination__button,
  .copy-button,
  .module-card__arrow,
  .docs-sidebar,
  .doc-nav-scrim {
    transition-duration: 0ms;
  }
}
