/* Public documentation — editorial, compact, and deliberately low-noise. */
:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f5f3ee;
  --ink: #121417;
  --ink-soft: #454b55;
  --ink-muted: #68707c;
  --blue: #2a6df4;
  --blue-dark: #194cae;
  --blue-wash: #edf3ff;
  --rule: #e3e1dc;
  --rule-strong: #cfcbc3;
  --warning: #8b5a19;
  --warning-wash: #fff6e8;
  --success: #1b6b4a;
  --success-wash: #eaf7f1;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --header-height: 64px;
  --sidebar-width: 276px;
  --toc-width: 220px;
  --article-width: 760px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--blue);
}

button,
input {
  font: inherit;
}

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:active,
.header-action:active,
.search-result:active {
  transform: scale(0.98);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: #cddcff;
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.docs-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 520px) minmax(220px, 1fr);
  align-items: center;
  height: var(--header-height);
  padding: 0 24px;
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 250, 247, 0.96);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.docs-header__start,
.docs-header__links,
.docs-brand,
.search-trigger,
.icon-button,
.source-actions,
.source-actions button,
.article-meta,
.feedback-buttons,
.search-head,
.search-foot {
  display: flex;
  align-items: center;
}

.docs-header__start {
  min-width: 0;
}

.docs-brand {
  min-width: 0;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.018em;
  text-decoration: none;
}

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

.docs-brand img {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.docs-brand__suffix {
  padding-left: 10px;
  border-left: 1px solid var(--rule-strong);
  color: var(--ink-muted);
  font-weight: 600;
}

.docs-header__links {
  justify-content: flex-end;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

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

.docs-header__links a:hover {
  color: var(--ink);
}

.header-action {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff !important;
  transition: transform 120ms var(--ease-out), opacity 120ms ease;
}

.header-action:hover {
  opacity: 0.9;
}

.search-trigger {
  justify-self: stretch;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(18, 20, 23, 0.03), inset 0 0 0 3px var(--paper);
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.search-trigger:hover {
  border-color: #aaa59c;
  color: var(--ink-soft);
}

.search-trigger svg,
.search-head svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.search-trigger span {
  flex: 1;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 1px 6px;
  border: 1px solid var(--rule-strong);
  border-bottom-color: #b8b2a8;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--ink-muted);
  font: 500 11px/1 var(--mono);
  box-shadow: 0 1px 0 #d7d2c8;
}

.menu-button {
  display: none !important;
}

.icon-button {
  flex: 0 0 44px;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.docs-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, var(--article-width)) var(--toc-width);
  justify-content: center;
  min-height: calc(100dvh - var(--header-height));
}

.docs-sidebar {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  padding: 28px 24px 24px 20px;
  border-right: 1px solid var(--rule);
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}

.sidebar-release {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 22px;
  color: var(--ink-muted);
  font: 500 11px/1.4 var(--mono);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-wash);
}

.side-section {
  margin: 0 0 13px;
}

.side-section summary {
  min-height: 32px;
  padding: 6px 8px;
  list-style: none;
  color: var(--ink);
  cursor: pointer;
  font: 700 12px/1.5 var(--sans);
  letter-spacing: 0.015em;
}

.side-section summary::-webkit-details-marker {
  display: none;
}

.side-section summary::after {
  content: "+";
  float: right;
  color: var(--ink-muted);
  font: 400 15px/1.2 var(--mono);
}

.side-section[open] summary::after {
  content: "−";
}

.side-section ul {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.side-section li {
  margin: 1px 0;
}

.side-section a {
  display: block;
  min-height: 34px;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.side-section a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.side-section a[aria-current="page"] {
  border-left-color: var(--blue);
  background: var(--blue-wash);
  color: var(--blue-dark);
  font-weight: 650;
}

.sidebar-footer {
  display: flex;
  gap: 16px;
  margin: 28px 8px 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.sidebar-footer a {
  color: var(--ink-muted);
  font-size: 12px;
  text-decoration: none;
}

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

.docs-main {
  min-width: 0;
  padding: 48px clamp(36px, 4.4vw, 70px) 120px;
}

.breadcrumbs {
  margin: 0 auto 26px;
  max-width: 68ch;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-muted);
  font: 500 11px/1.5 var(--mono);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 7px;
  color: var(--rule-strong);
}

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

.breadcrumbs a:hover {
  color: var(--blue-dark);
}

.doc-article {
  margin: 0 auto;
  max-width: 68ch;
}

.article-header {
  margin-bottom: 42px;
}

.article-meta {
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 18px;
  color: var(--ink-muted);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.01em;
}

.article-meta > span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 2px;
  margin-left: 12px;
  border-radius: 50%;
  background: var(--rule-strong);
  vertical-align: 3px;
}

.article-meta .status {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.article-meta .status--beta {
  background: var(--warning-wash);
  color: var(--warning);
}

.article-header h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 780;
  letter-spacing: -0.048em;
  line-height: 1.02;
  text-wrap: balance;
}

.article-lede {
  max-width: 54ch;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.doc-article--home .article-header {
  position: relative;
  margin: 12px 0 50px;
  padding: 16px 0 42px;
  border-bottom: 1px solid var(--rule);
}

.doc-article--home .article-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -22px;
  width: 3px;
  height: 54px;
  background: var(--blue);
}

.doc-content {
  color: var(--ink-soft);
}

.doc-content > :first-child {
  margin-top: 0;
}

.doc-content p,
.doc-content li {
  text-wrap: pretty;
}

.doc-content p {
  margin: 0 0 1.15em;
}

.doc-content h2,
.doc-content h3,
.docs-directory h2 {
  color: var(--ink);
  font-weight: 730;
  letter-spacing: -0.032em;
  line-height: 1.18;
  text-wrap: balance;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.doc-content h2 {
  margin: 54px 0 18px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 27px;
}

.doc-content h3 {
  margin: 32px 0 12px;
  font-size: 19px;
}

.doc-content h2 + h3 {
  margin-top: 22px;
}

.doc-content strong {
  color: var(--ink);
  font-weight: 700;
}

.doc-content ul,
.doc-content ol {
  margin: 0 0 24px;
  padding-left: 25px;
}

.doc-content li {
  margin: 8px 0;
  padding-left: 4px;
}

.doc-content li::marker {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.82em;
}

.doc-content code {
  padding: 0.14em 0.38em;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--surface-soft);
  color: #252a32;
  font: 500 0.84em/1.4 var(--mono);
  overflow-wrap: anywhere;
}

.doc-content pre {
  margin: 24px 0;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid #2a303a;
  border-radius: 8px;
  background: #171a20;
  color: #eef1f6;
  font: 13px/1.65 var(--mono);
}

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

.doc-content blockquote {
  margin: 26px 0;
  padding: 16px 18px 16px 20px;
  border: 0;
  border-left: 3px solid var(--blue);
  background: var(--blue-wash);
  color: #263b66;
}

.doc-content blockquote p:last-child {
  margin-bottom: 0;
}

.doc-content blockquote strong:first-child {
  display: inline-block;
  margin-right: 4px;
  color: var(--blue-dark);
  font: 700 11px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 30px 0;
  border: 7px solid #1c2027;
  border-radius: 14px;
  outline: 1px solid #050607;
  box-shadow: 0 24px 54px -32px rgba(18, 20, 23, 0.55);
}

.doc-content table {
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
  font-size: 14px;
}

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

.doc-content th {
  color: var(--ink);
  font: 700 11px/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-content hr {
  margin: 46px 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.docs-directory {
  margin-top: 68px;
  border-top: 1px solid var(--ink);
}

.directory-heading {
  padding: 34px 0 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.directory-heading h2 {
  margin: 0;
  font-size: 30px;
}

.directory-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  padding: 26px 0 28px;
  border-top: 1px solid var(--rule);
}

.directory-summary h2 {
  margin: 0 0 7px;
  font-size: 19px;
}

.directory-summary h2 a {
  color: var(--ink);
  text-decoration: none;
}

.directory-summary h2 a:hover {
  color: var(--blue-dark);
}

.directory-summary p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.55;
}

.directory-row ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.directory-row li {
  min-width: 0;
}

.directory-row li a {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}

.directory-row li a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.directory-more {
  display: block;
  margin-top: 8px;
  color: var(--ink-muted);
  font: 500 10px/1.4 var(--mono);
}

.source-actions {
  gap: 18px;
  margin-top: 58px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}

.source-actions button {
  gap: 7px;
  min-height: 36px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.source-actions button:hover,
.source-actions a:hover {
  color: var(--blue-dark);
}

.source-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.source-actions a {
  color: var(--ink-muted);
  text-decoration: none;
}

.page-feedback {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin: 34px 0 0;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 4px var(--paper);
}

.page-feedback h2 {
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: -0.012em;
}

.page-feedback p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.feedback-buttons {
  gap: 8px;
}

.feedback-buttons button {
  min-width: 54px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 7px;
  background: var(--paper);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: transform 120ms var(--ease-out), opacity 120ms ease;
}

.feedback-buttons button:hover {
  opacity: 0.75;
}

.feedback-buttons button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-wash);
  color: var(--blue-dark);
}

.feedback-status {
  grid-column: 1 / -1;
}

.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 52px;
}

.page-nav__link {
  min-width: 0;
  padding: 18px 0;
  border-top: 1px solid var(--rule-strong);
  color: var(--ink);
  text-decoration: none;
}

.page-nav__link:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.page-nav__link span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-muted);
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-nav__link strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

.page-nav__link--next {
  text-align: right;
}

.article-reviewed {
  margin: 28px 0 0;
  color: var(--ink-muted);
  font: 500 10px/1.5 var(--mono);
}

.page-toc {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  padding: 48px 22px 28px;
}

.page-toc > p {
  margin: 0 0 13px;
  color: var(--ink);
  font: 700 11px/1.4 var(--mono);
  letter-spacing: 0.035em;
}

.page-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-toc li {
  margin: 2px 0;
}

.toc-link {
  display: block;
  padding: 5px 0 5px 10px;
  border-left: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.45;
  text-decoration: none;
}

.toc-link--nested {
  padding-left: 20px;
}

.toc-link:hover,
.toc-link.is-active {
  border-left-color: var(--blue);
  color: var(--blue-dark);
}

.toc-empty {
  color: var(--ink-muted) !important;
  font-weight: 400 !important;
}

.toc-top {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 10px;
  text-decoration: none;
}

.search-dialog {
  width: min(680px, calc(100vw - 32px));
  max-width: none;
  margin: min(13vh, 112px) auto auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
}

.search-dialog::backdrop {
  background: rgba(18, 20, 23, 0.48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.search-panel {
  overflow: hidden;
  border: 1px solid #beb9b0;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 30px 80px -24px rgba(18, 20, 23, 0.55), inset 0 0 0 4px var(--paper);
}

.search-head {
  gap: 10px;
  margin: 4px 4px 0;
  padding: 12px 14px 6px;
  color: var(--ink-muted);
}

.search-head label {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
}

.search-head button {
  min-width: 38px;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--ink-muted);
  cursor: pointer;
  font: 500 10px/1 var(--mono);
}

#docs-search-input {
  width: calc(100% - 32px);
  margin: 0 16px 14px;
  padding: 5px 0 13px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  outline: 0;
}

#docs-search-input::placeholder {
  color: #a09b92;
}

.search-results {
  max-height: min(58vh, 500px);
  min-height: 128px;
  overflow-y: auto;
  padding: 4px 8px 10px;
}

.search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  min-height: 68px;
  padding: 11px 12px;
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
}

.search-result:hover,
.search-result.is-active {
  background: var(--blue-wash);
  color: var(--ink);
}

.search-result strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.search-result p {
  grid-column: 1;
  margin: 0;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result span {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--ink-muted);
  font: 500 10px/1.4 var(--mono);
}

.search-empty {
  padding: 24px 18px;
  color: var(--ink-muted);
  font-size: 13px;
}

.search-empty strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
}

.search-foot {
  justify-content: flex-end;
  gap: 16px;
  min-height: 40px;
  padding: 7px 14px;
  border-top: 1px solid var(--rule);
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-size: 10px;
}

.search-foot span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-foot kbd {
  min-width: 18px;
  min-height: 18px;
  padding: 0 4px;
  font-size: 9px;
}

.sidebar-scrim {
  display: none;
}

@media (max-width: 1220px) {
  .docs-header {
    grid-template-columns: minmax(210px, 1fr) minmax(280px, 470px) minmax(180px, 1fr);
  }

  .docs-shell {
    grid-template-columns: var(--sidebar-width) minmax(0, var(--article-width));
  }

  .page-toc {
    display: none;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 60px;
  }

  .docs-header {
    grid-template-columns: auto minmax(220px, 1fr);
    gap: 14px;
    padding: 0 16px 0 8px;
  }

  .menu-button {
    display: flex !important;
    margin-right: 2px;
  }

  .docs-header__links {
    display: none;
  }

  .docs-brand__suffix {
    display: none;
  }

  .search-trigger {
    justify-self: end;
    max-width: 440px;
  }

  .docs-shell {
    display: block;
  }

  .docs-sidebar {
    position: fixed;
    z-index: 90;
    top: 0;
    left: 0;
    width: min(330px, calc(100vw - 42px));
    height: 100dvh;
    padding: 12px 18px 26px;
    border-right: 1px solid var(--rule-strong);
    background: var(--paper);
    box-shadow: 20px 0 60px -34px rgba(18, 20, 23, 0.65);
    transform: translateX(-104%);
    transition: transform 220ms var(--ease-out);
  }

  body.menu-open .docs-sidebar {
    transform: translateX(0);
  }

  .sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--rule);
    font-size: 14px;
    font-weight: 750;
  }

  .sidebar-mobile-head .icon-button {
    display: flex;
    font-size: 24px;
    font-weight: 300;
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: block;
    background: rgba(18, 20, 23, 0.42);
    opacity: 0;
    transition: opacity 160ms ease;
  }

  body.menu-open .sidebar-scrim {
    opacity: 1;
  }

  .docs-main {
    padding: 44px clamp(24px, 7vw, 72px) 100px;
  }
}

@media (max-width: 640px) {
  .docs-header {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    padding-right: 10px;
  }

  .docs-brand {
    gap: 7px;
  }

  .docs-brand img {
    width: 26px;
    height: 26px;
  }

  .docs-brand > span:first-of-type {
    display: none;
  }

  .docs-brand__suffix {
    display: inline;
    padding-left: 0;
    border-left: 0;
    color: var(--ink);
    font-weight: 750;
  }

  .search-trigger {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }

  .docs-main {
    padding: 32px 20px 84px;
  }

  .breadcrumbs {
    margin-bottom: 20px;
    overflow: hidden;
  }

  .breadcrumbs ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .article-header {
    margin-bottom: 34px;
  }

  .article-header h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .article-lede {
    font-size: 17px;
  }

  .doc-article--home .article-header::before {
    left: -10px;
  }

  .doc-content h2 {
    margin-top: 44px;
    font-size: 24px;
  }

  .doc-content table {
    table-layout: fixed;
    font-size: 13px;
    white-space: normal;
  }

  .doc-content th,
  .doc-content td {
    padding: 10px 6px;
    overflow-wrap: anywhere;
  }

  .directory-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .directory-row ul {
    grid-template-columns: 1fr;
  }

  .page-feedback {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .page-nav {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .page-nav__link--next {
    text-align: left;
  }

  .search-dialog {
    width: calc(100vw - 18px);
    margin-top: 9px;
  }

  #docs-search-input {
    font-size: 18px;
  }

  .search-results {
    max-height: calc(100dvh - 190px);
  }

  .search-result span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .status-dot,
  .doc-article--home .article-header::before {
    background: Highlight;
  }

  .side-section a[aria-current="page"],
  .feedback-buttons button[aria-pressed="true"] {
    outline: 2px solid Highlight;
  }
}

@media print {
  .docs-header,
  .docs-sidebar,
  .page-toc,
  .page-feedback,
  .page-nav,
  .source-actions,
  .breadcrumbs {
    display: none !important;
  }

  body,
  .docs-main {
    background: #fff;
  }

  .docs-shell {
    display: block;
  }

  .docs-main {
    padding: 0;
  }

  .doc-article {
    max-width: none;
  }

  a {
    color: inherit;
  }
}
