@font-face {
  font-family: Space Grotesk;
  src: url(fonts/space-grotesk.ttf) format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: IBM Plex Sans;
  src: url(fonts/plex-sans.ttf) format("truetype");
  font-weight: 100 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --canvas: #101214;
  --rail: #141719;
  --surface: #1a1e21;
  --surface-hover: #23292d;
  --line: #2c3337;
  --ink: #eef0eb;
  --muted: #a5afb2;
  --quiet: #929ea2;
  --acid: #dfff00;
  --cyan: #78d9df;
  --header: 72px;
  --sidebar: 252px;
  --body: "IBM Plex Sans", sans-serif;
  --display: "Space Grotesk", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
::selection {
  background: var(--acid);
  color: var(--canvas);
}
* {
  scrollbar-color: #465256 var(--canvas);
  scrollbar-width: thin;
}
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 5px;
}
input {
  caret-color: var(--acid);
}
svg {
  flex-shrink: 0;
}
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.25;
  font-weight: 600;
  text-wrap: balance;
}
h1 {
  letter-spacing: -0.035em;
}
h2,
h3 {
  letter-spacing: -0.02em;
}
p {
  margin: 0 0 1.3em;
}
kbd {
  font-family: var(--body);
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  background: var(--acid);
  color: var(--canvas);
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--acid);
}
.brand-docs {
  color: var(--quiet);
  font-weight: 400;
}
.header-links {
  display: flex;
  gap: 25px;
  margin-left: 20px;
  font-size: 13px;
}
.header-links a {
  color: var(--muted);
}
.header-links a:hover {
  color: var(--ink);
}
.search-trigger {
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--rail);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  font-size: 13px;
  color: var(--muted);
  width: 244px;
  min-height: 38px;
  text-align: left;
}
.search-trigger .icon {
  width: 16px;
  height: 16px;
}
.search-trigger kbd {
  margin-left: auto;
}
.search-trigger:hover {
  border-color: var(--quiet);
  color: var(--ink);
}
.github-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.github-link .icon {
  width: 14px;
  height: 14px;
  color: var(--quiet);
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--surface-hover);
  color: var(--acid);
}
.menu-toggle {
  display: none;
}
.sidebar {
  position: fixed;
  top: var(--header);
  left: 0;
  bottom: 0;
  width: var(--sidebar);
  background: var(--rail);
  border-right: 1px solid var(--line);
  padding: 27px 18px 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 20;
}
.library-link {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 13px;
  padding: 11px 12px;
  margin-bottom: 22px;
  border-radius: 5px;
  font-weight: 500;
}
.library-link .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.library-link.active {
  background: #252c19;
  color: var(--acid);
}
.library-link.active .icon {
  color: var(--acid);
}
.nav-group {
  margin-bottom: 23px;
}
.nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 12px;
  cursor: pointer;
}
.nav-group summary::-webkit-details-marker {
  display: none;
}
.nav-group summary .icon {
  width: 11px;
  height: 11px;
  transition: transform 0.16s ease-out;
}
.nav-group[open] > summary .icon,
.nav-section[open] > summary .icon {
  transform: rotate(90deg);
}
.nav-group ul {
  padding: 7px 0 0;
  margin: 0;
  list-style: none;
}
.nav-group a {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  padding: 7px 12px;
  color: var(--muted);
  border-left: 1px solid transparent;
}
.nav-group a:hover {
  color: var(--ink);
  background: var(--surface);
}
.nav-group a.active {
  color: var(--acid);
  border-left-color: var(--acid);
  background: #20251c;
}
.nav-section { margin: 2px 0 8px; }
.nav-section > summary {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  border-radius: 5px;
}
.nav-section > summary:hover { background: var(--surface); }
.nav-section > ul { margin-inline-start: 12px; padding-top: 2px; }
.page-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  margin: -8px 0 28px;
  padding: 6px 0 0;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.document .page-tabs a {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
.document .page-tabs a:hover { color: var(--ink); }
.document .page-tabs a[aria-current] { color: var(--acid); border-bottom-color: var(--acid); }
.page-tabs a:focus-visible { outline-offset: -3px; }
.breadcrumbs { flex-wrap: wrap; }
.sidebar-footer {
  margin-top: auto;
  padding: 24px 12px 0;
  font-size: 11px;
  color: var(--quiet);
}
.small-mark {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--acid);
  margin-right: 7px;
}
.sidebar-footer a {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}
.sidebar-footer .icon {
  width: 10px;
  height: 10px;
  margin-left: 3px;
}
.nav-scrim {
  display: none;
}
.workspace {
  margin-left: var(--sidebar);
  padding-top: var(--header);
}
main {
  max-width: 1470px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header));
  padding: 0 56px;
  outline: none;
}
.site-footer {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 25px 0 30px;
  margin-top: 50px;
  font-size: 11px;
  color: var(--quiet);
}
.site-footer a {
  color: var(--muted);
}
.site-footer .icon {
  width: 11px;
  height: 11px;
}
.footer-slash {
  color: var(--acid);
  padding: 0 5px;
}
.library-intro {
  position: relative;
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.library-intro h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  margin: 0 0 22px;
  line-height: 1.12;
  font-weight: 500;
  max-width: 780px;
}
.library-intro h1 span {
  color: var(--acid);
}
.library-intro p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 25px;
}
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
}
.text-action:hover {
  color: var(--acid);
}
.text-action .icon {
  width: 17px;
  height: 17px;
}
.intro-motif {
  position: absolute;
  right: 0;
  bottom: 48px;
  width: 180px;
  height: 140px;
  z-index: -1;
  color: #3a464b;
}
.intro-motif svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}
.intro-motif .motif-highlight {
  stroke: #8c9f21;
}
.resource-section {
  padding-top: 35px;
  scroll-margin-top: 90px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.section-heading h2 {
  font-size: 19px;
  margin: 0;
  font-weight: 500;
}
.section-heading > span {
  color: var(--quiet);
  font-size: 12px;
}
.resource-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 175px;
  gap: 19px;
  padding: 29px 0 30px;
  border-bottom: 1px solid var(--line);
}
.resource-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 46px;
  background: #202718;
  color: var(--acid);
  border-radius: 5px;
}
.resource-icon .icon {
  width: 24px;
  height: 24px;
}
.resource-icon.database {
  background: #15282a;
  color: var(--cyan);
}
.resource-icon.api {
  background: #222135;
  color: #c3b8f4;
}
.resource-kind {
  font-size: 11px;
  line-height: 1.5;
  color: var(--quiet);
  margin: 0 0 6px;
}
.resource-info h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 9px;
}
.resource-info h3 a:hover {
  color: var(--acid);
}
.resource-info p {
  max-width: 570px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 18px;
}
.resource-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 12px;
}
.resource-links a {
  display: flex;
  align-items: center;
  gap: 7px;
}
.resource-links a:hover {
  color: var(--cyan);
}
.resource-links .icon {
  width: 14px;
  height: 14px;
  color: var(--quiet);
}
.resource-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  justify-content: space-between;
  padding: 2px 0 3px;
  font-size: 10px;
  color: var(--muted);
}
.resource-meta > span {
  line-height: 1.5;
  max-width: 160px;
  text-align: right;
}
.resource-meta .icon-button {
  width: 32px;
  height: 32px;
  color: var(--muted);
}
.resource-meta .icon-button:hover {
  color: var(--acid);
}
.library-help {
  display: flex;
  gap: 35px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 34px 0 0;
}
.library-help h2 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 10px;
}
.library-help p {
  max-width: 500px;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.library-help > a {
  font-size: 11px;
  line-height: 1.5;
  flex-shrink: 0;
  padding-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.library-help > a:hover {
  color: var(--cyan);
}
.library-help > a .icon {
  width: 14px;
  height: 14px;
}
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 174px;
  gap: 48px;
  padding-top: 34px;
}
.document {
  min-width: 0;
  max-width: 75ch;
  font-size: 15.5px;
  line-height: 1.8;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 32px;
  line-height: 1.5;
}
.breadcrumbs > a {
  color: var(--quiet);
}
.breadcrumbs .icon {
  width: 11px;
  height: 11px;
}
.document h1 {
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 28px;
  max-width: 25ch;
}
.document h2 {
  font-size: 25px;
  line-height: 1.3;
  font-weight: 500;
  margin: 48px 0 19px;
  padding-top: 4px;
}
.document h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 32px 0 15px;
}
.document h4 {
  font-size: 16px;
  margin: 26px 0 12px;
}
.document p {
  margin: 0 0 20px;
}
.document strong {
  font-weight: 600;
  color: var(--ink);
}
.document a:not(.page-pagination a):not(.page-tabs a) {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: #31595d;
  text-decoration-thickness: 1px;
}
.document a:hover {
  text-decoration-color: var(--cyan);
}
.document ul,
.document ol {
  padding-left: 23px;
  margin: 15px 0 24px;
}
.document li {
  padding-left: 3px;
  margin: 7px 0;
}
.document li::marker {
  color: var(--quiet);
}
.document li ul,
.document li ol {
  margin: 8px 0 15px;
}
.document hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 35px 0;
}
.document code {
  font-family: var(--mono);
  font-size: 0.82em;
  padding: 3px 5px;
  border-radius: 3px;
  background: #222a2e;
  color: #d1e5e2;
  overflow-wrap: anywhere;
}
.document pre {
  position: relative;
  overflow-x: auto;
  background: #171c20;
  padding: 23px 22px;
  margin: 24px 0 30px;
  border-radius: 7px;
  line-height: 1.8;
  tab-size: 4;
  max-width: 100%;
}
.document pre code {
  display: block;
  padding: 0;
  background: none;
  color: #d6e0df;
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: normal;
  white-space: pre;
  word-break: normal;
}
.document .codehilite {
  position: relative;
}
.document .codehilite pre {
  padding-top: 43px;
}
.copy-code {
  position: absolute;
  right: 9px;
  top: 8px;
  z-index: 1;
  background: #242d32;
  border: 0;
  border-radius: 4px;
  font-size: 10px;
  color: var(--muted);
  padding: 4px 9px;
  line-height: 1.5;
  min-height: 28px;
  min-width: 50px;
}
.copy-code:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.document pre:has(> .copy-code) {
  padding-top: 43px;
}
.document blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  background: #1c2425;
  border-left: 1px solid var(--cyan);
  border-radius: 0 5px 5px 0;
  color: #c2d0d0;
}
.document blockquote p:last-child {
  margin-bottom: 0;
}
.document table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.65;
  margin: 24px 0 30px;
}
.document th {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  padding: 13px 14px;
  border-bottom: 1px solid #424d51;
  white-space: nowrap;
}
.document td {
  padding: 13px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  min-width: 100px;
  color: #bdc8ca;
}
.document td code {
  font-size: 11px;
}
.document td:first-child {
  min-width: 140px;
}
.document img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
.document .headerlink {
  opacity: 0;
  margin-left: 10px;
  color: var(--quiet) !important;
  text-decoration: none !important;
  font-weight: 400;
  font-size: 0.7em;
}
.document :is(h1, h2, h3):hover .headerlink,
.document .headerlink:focus {
  opacity: 1;
}
.page-index {
  position: sticky;
  top: 108px;
  align-self: start;
  max-height: calc(100vh - 135px);
  overflow-y: auto;
  font-size: 11px;
  line-height: 1.6;
}
.page-index h2 {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  margin: 4px 0 15px;
}
.page-index nav {
  border-left: 1px solid var(--line);
}
.page-index nav a {
  display: block;
  color: var(--quiet);
  padding: 6px 0 6px 15px;
  border-left: 1px solid transparent;
  margin-left: -1px;
}
.page-index nav a:hover {
  color: var(--ink);
}
.page-index nav a.active {
  color: var(--acid);
  border-left-color: var(--acid);
}
.source-link {
  display: block;
  margin: 24px 0 0 15px;
  color: var(--muted);
  font-size: 10px;
}
.source-link .icon {
  width: 11px;
  height: 11px;
  margin-left: 4px;
}
.page-pagination {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 45px;
}
.page-pagination a {
  display: block;
  color: var(--muted);
  font-size: 12px;
  max-width: 48%;
  text-decoration: none;
}
.page-pagination a span {
  display: block;
  color: var(--quiet);
  font-size: 10px;
  margin-bottom: 8px;
}
.page-pagination strong {
  font-family: var(--display);
  font-weight: 500 !important;
  color: var(--ink) !important;
}
.page-pagination .next {
  margin-left: auto;
  text-align: right;
}
.page-pagination .icon {
  width: 14px;
  height: 14px;
}
.page-pagination a:hover strong {
  color: var(--acid) !important;
}
.codehilite .c,
.codehilite .c1,
.codehilite .cm,
.codehilite .cs {
  color: #8e9da5;
  font-style: italic;
}
.codehilite .k,
.codehilite .kd,
.codehilite .kn,
.codehilite .kp,
.codehilite .kr,
.codehilite .kt {
  color: #d5b4f4;
}
.codehilite .s,
.codehilite .s1,
.codehilite .s2,
.codehilite .sb,
.codehilite .sc {
  color: #b4d88e;
}
.codehilite .mi,
.codehilite .mf,
.codehilite .m,
.codehilite .kc {
  color: #e6ba7d;
}
.codehilite .nf,
.codehilite .nc,
.codehilite .na {
  color: #82d3dc;
}
.codehilite .nt,
.codehilite .nb {
  color: #e6e7a1;
}
.codehilite .o,
.codehilite .p {
  color: #b7c6c9;
}
.codehilite .err {
  color: #ffc2bd;
}
.search-dialog {
  border: 1px solid #435056;
  border-radius: 10px;
  background: var(--rail);
  color: var(--ink);
  padding: 0;
  width: min(660px, calc(100vw - 28px));
  margin: 115px auto auto;
  box-shadow: 0 22px 80px #0009;
  max-height: calc(100dvh - 150px);
  overflow: hidden;
}
.search-dialog::backdrop {
  background: #06090cc9;
}
.search-header {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.search-header > .icon {
  color: var(--acid);
}
.search-header input {
  background: transparent;
  color: var(--ink);
  border: 0;
  outline: 0;
  font-size: 16px;
  min-width: 0;
  flex: 1;
  padding: 4px;
}
.search-header input::placeholder {
  color: var(--quiet);
}
.search-header input::-webkit-search-cancel-button {
  display: none;
}
.search-header .icon-button {
  border: 0;
}
.search-results {
  overflow-y: auto;
  max-height: calc(100dvh - 285px);
  min-height: 120px;
  padding: 10px;
}
.search-message {
  color: var(--muted);
  font-size: 14px;
  padding: 25px 20px;
  margin: 0;
}
.search-result {
  display: block;
  padding: 15px 17px;
  border-radius: 5px;
}
.search-result:hover,
.search-result:focus-visible {
  background: var(--surface-hover);
}
.search-result strong {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 6px;
}
.search-result span {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.search-result .result-path {
  font-size: 10px;
  color: var(--cyan);
  margin: 8px 0 0;
}
.search-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 11px 18px;
  color: var(--quiet);
  font-size: 10px;
}
.search-footer kbd {
  margin-right: 3px;
}
.search-retry {
  margin: 0 0 20px 20px;
  border: 1px solid var(--line);
  padding: 6px 12px;
  background: var(--surface);
  border-radius: 4px;
  font-size: 12px;
}
@media (min-width: 1600px) {
  main {
    padding-left: 75px;
    padding-right: 75px;
  }
  .library-intro {
    padding-top: 85px;
    padding-bottom: 65px;
  }
  .resource-row {
    padding-top: 35px;
    padding-bottom: 35px;
  }
}
@media (max-width: 1250px) {
  .header-links {
    display: none;
  }
  main {
    padding: 0 38px;
  }
  .guide-layout {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) 150px;
  }
  .resource-row {
    grid-template-columns: 44px minmax(0, 1fr) 140px;
    gap: 17px;
  }
  .intro-motif {
    width: 145px;
    opacity: 0.7;
  }
  .library-help {
    display: block;
  }
  .library-help > a {
    margin-top: 20px;
  }
  .library-intro h1 {
    font-size: 46px;
  }
  .resource-meta > span {
    max-width: 130px;
  }
}
@media (max-width: 1080px) {
  :root {
    --sidebar: 224px;
  }
  .site-header {
    gap: 22px;
    padding: 0 25px;
  }
  .brand {
    font-size: 15px;
  }
  .search-trigger {
    width: 220px;
  }
  .guide-layout {
    display: block;
  }
  .page-index {
    display: none;
  }
  main {
    padding: 0 36px;
  }
  .library-intro h1 {
    font-size: 40px;
  }
  .intro-motif {
    display: none;
  }
  .resource-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 17px;
  }
  .resource-meta {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 15px;
    margin-top: -5px;
  }
  .resource-meta > span {
    max-width: none;
    text-align: left;
  }
  .resource-meta .icon-button {
    width: 28px;
    height: 28px;
  }
  .resource-icon {
    width: 40px;
    height: 42px;
  }
  .resource-info p {
    max-width: unset;
  }
  .resource-info h3 {
    font-size: 21px;
  }
  .document {
    max-width: 100%;
  }
}
@media (max-width: 820px) {
  :root {
    --header: 64px;
  }
  .site-header {
    gap: 13px;
    padding: 0 18px;
  }
  .brand {
    font-size: 15px;
    gap: 9px;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
  }
  .brand-docs {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    width: 30px;
    height: 34px;
    border: 0;
  }
  .menu-toggle .icon {
    width: 19px;
    height: 19px;
  }
  .github-link {
    display: none;
  }
  .search-trigger {
    width: 35px;
    height: 35px;
    min-height: 35px;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
  }
  .search-trigger .icon {
    width: 19px;
    height: 19px;
  }
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }
  .sidebar {
    width: 270px;
    transform: translateX(-100%);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding-top: 20px;
  }
  .nav-open .sidebar {
    transform: none;
  }
  .nav-open .nav-scrim {
    display: block;
    position: fixed;
    inset: var(--header) 0 0;
    background: #05080bc9;
    border: 0;
    z-index: 19;
  }
  .workspace {
    margin-left: 0;
  }
  main {
    padding: 0 25px;
  }
  .library-intro {
    padding: 42px 0 34px;
  }
  .library-intro h1 {
    font-size: clamp(34px, 7.8vw, 50px);
  }
  .library-intro p {
    font-size: 16px;
    line-height: 1.7;
  }
  .resource-section {
    padding-top: 29px;
  }
  .resource-row {
    padding: 26px 0;
  }
  .resource-meta {
    font-size: 10px;
  }
  .resource-info h3 {
    font-size: 21px;
  }
  .resource-kind {
    margin-bottom: 5px;
  }
  .resource-info p {
    font-size: 14px;
  }
  .resource-links {
    gap: 22px;
  }
  .guide-layout {
    padding-top: 25px;
  }
  .breadcrumbs {
    margin-bottom: 25px;
  }
  .document h1 {
    font-size: 32px;
    margin-bottom: 24px;
  }
  .document {
    font-size: 15px;
    line-height: 1.8;
  }
  .document h2 {
    font-size: 23px;
    margin-top: 39px;
  }
  .site-footer {
    flex-direction: column;
    gap: 10px;
    margin-top: 35px;
    padding: 23px 0;
  }
  .search-dialog {
    margin-top: 80px;
    max-height: calc(100dvh - 100px);
  }
  .search-results {
    max-height: calc(100dvh - 235px);
  }
  .library-help {
    padding-top: 29px;
  }
  .page-pagination {
    gap: 20px;
  }
  .document table {
    font-size: 12px;
  }
  .document pre {
    padding-left: 16px;
    padding-right: 16px;
  }
  .document pre code {
    font-size: 11.5px;
  }
}
@media (max-width: 390px) {
  .brand {
    font-size: 13px;
  }
  .site-header {
    padding: 0 13px;
    gap: 8px;
  }
  main {
    padding: 0 20px;
  }
  .resource-row {
    column-gap: 13px;
  }
  .resource-info h3 {
    font-size: 19px;
  }
  .resource-links {
    gap: 14px;
    font-size: 11px;
  }
  .library-intro h1 {
    font-size: 32px;
  }
  .text-action {
    font-size: 12px;
  }
  .resource-icon {
    width: 35px;
    height: 39px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .site-header,
  .sidebar,
  .page-index,
  .page-pagination,
  .search-dialog,
  .site-footer {
    display: none;
  }
  .workspace {
    margin: 0;
    padding: 0;
  }
  main {
    padding: 0;
  }
  .guide-layout {
    display: block;
  }
  body {
    background: white;
    color: black;
  }
  .document pre,
  .document code {
    background: #eee;
    color: black;
  }
  .document a {
    color: black;
  }
  .document table {
    overflow: visible;
  }
  .document td,
  .document th {
    color: black;
    border-color: #999;
  }
}

/* Locale controls are real links and work before JavaScript loads. */
.language-switch { display:flex; gap:3px; margin-inline-start:auto; flex-shrink:0; }
.language-code { display:none; }
.language-switch a { font-size:13px; padding:7px 8px; color:var(--muted,#a5afb2); border-radius:4px; }
.language-switch a[aria-current] { background:#23292d; color:#dfff00; }
.language-switch a:hover { color:#eef0eb; }
.locale-notice { padding:12px 16px; background:#1a1e21; border:1px solid #2c3337; border-radius:6px; }
@media(max-width:1080px){ .header-links { display:none; } }
@media(max-width:540px){ .language-name { display:none; } .language-code { display:inline; } .language-switch a { padding:8px 5px; font-size:12px; } .site-header { gap:9px; } .brand-docs { display:none; } }
