/* Syfo Docs visual standard — shared by every generated documentation page. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Syfo Han SC";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-sc-subset.woff2") format("woff2");
  unicode-range: U+2E80-303F, U+3040-30FF, U+3190-31FF, U+3200-32FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE10-FE4F, U+FF00-FFEF;
}

@font-face {
  font-family: "Syfo Han JP";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-jp-subset.woff2") format("woff2");
  unicode-range: U+2E80-303F, U+3040-30FF, U+3190-31FF, U+3200-32FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE10-FE4F, U+FF00-FFEF;
}

:root {
  --docs-max: 1240px;
  --docs-reading: 790px;
  --docs-nav-height: 72px;
  --docs-sidebar: 264px;
  --docs-ink: #1f1d1a;
  --docs-body: #49443d;
  --docs-muted: #7c756b;
  --docs-footer-muted: #b8b0a3;
  --docs-code: #1c1916;
}

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

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 102, 63, 0.055), transparent 27rem),
    var(--bg-paper);
  color: var(--docs-ink);
  font-size: 15px;
  line-height: 1.68;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  background-image: repeating-linear-gradient(90deg, rgba(31, 29, 26, 0.012) 0, rgba(31, 29, 26, 0.012) 1px, transparent 1px, transparent 4px);
}

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

button,
summary {
  font: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(100% - 48px, var(--docs-max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  translate: 0 -160%;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--docs-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: translate var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  translate: 0;
}

/* Global brand navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(31, 29, 26, 0.06);
  background: rgba(251, 248, 243, 0.85);
  backdrop-filter: blur(12px);
}

.nav .wrap {
  width: 100%;
  max-width: 1200px;
  padding: 16px 24px;
}

.nav .row {
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand .wm {
  color: var(--docs-ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nav .links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav .links a,
.nav-signin {
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav .links > a:hover,
.nav-signin:hover {
  color: var(--docs-ink);
}

.nav .right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.langmenu {
  position: relative;
}

.langmenu > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--fg-2);
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.langmenu > summary::-webkit-details-marker {
  display: none;
}

.langmenu > summary:hover,
.langmenu[open] > summary {
  border-color: #c8beb0;
  background: #fff;
  color: var(--docs-ink);
}

.langpop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  display: flex;
  min-width: 158px;
  flex-direction: column;
  gap: 2px;
  padding: 7px;
  border: 1px solid var(--border-2);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(40, 33, 26, 0.14);
}

.langpop a {
  padding: 9px 11px;
  border-radius: 7px;
  color: var(--docs-body);
  font-size: 13px;
}

.langpop a:hover {
  background: var(--bg-sunken);
}

.langpop a.cur {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 7px 18px rgba(217, 102, 63, 0.18);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.nav .btn-primary {
  min-height: 0;
  padding: 10px 18px;
  background: var(--docs-ink);
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.nav .btn-primary:hover {
  background: #34302b;
}

.btn-ghost {
  border-color: var(--border-2);
  background: #fff;
  color: var(--docs-ink);
}

.btn-ghost:hover {
  border-color: #c5baaa;
  background: var(--bg-sunken);
}

.btn .arr {
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .arr {
  transform: translateX(2px);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: #fff;
  color: var(--docs-ink);
  cursor: pointer;
}

.nav-toggle .ic-close,
.nav.open .nav-toggle .ic-open {
  display: none;
}

.nav.open .nav-toggle .ic-close {
  display: block;
}

.nav-menu {
  display: none;
}

/* Documentation layout */
.docs-layout {
  position: relative;
  display: grid;
  grid-template-columns: var(--docs-sidebar) minmax(0, 1fr);
  gap: clamp(42px, 5vw, 74px);
  width: min(100% - 48px, var(--docs-max));
  min-height: calc(100vh - var(--docs-nav-height));
  margin-inline: auto;
  padding: 42px 0 100px;
}

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

.docs-sidebar {
  position: sticky;
  top: calc(var(--docs-nav-height) + 22px);
  align-self: start;
  max-height: calc(100vh - var(--docs-nav-height) - 44px);
  overflow: auto;
  padding: 6px 22px 32px 0;
  border-right: 1px solid var(--border-1);
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}

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

.sidebar-group {
  margin: 0 0 22px;
}

.sidebar-group + .sidebar-group {
  padding-top: 18px;
  border-top: 1px solid var(--border-1);
}

.sidebar-group-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 7px;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--docs-muted);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.sidebar-group-toggle:hover {
  background: var(--bg-sunken);
  color: var(--docs-ink);
}

.sidebar-group-toggle .chevron {
  width: 7px;
  height: 7px;
  flex: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  transition: rotate var(--dur-fast) var(--ease-out);
}

.sidebar-group-toggle[aria-expanded="false"] .chevron {
  rotate: -45deg;
}

.sidebar-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-group li {
  margin: 2px 0;
}

.sidebar-group a {
  position: relative;
  display: block;
  padding: 8px 10px 8px 13px;
  border-radius: 8px;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.42;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.sidebar-group a:hover {
  transform: translateX(2px);
  background: var(--bg-sunken);
  color: var(--docs-ink);
}

.sidebar-group a.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.sidebar-group a.active::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 5px;
  width: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.sidebar-backdrop {
  display: none;
}

.docs-content {
  min-width: 0;
  width: min(100%, var(--docs-reading));
}

.doc-page-head {
  margin-bottom: 8px;
  padding: 8px 0 34px;
  border-bottom: 1px solid var(--border-1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 19px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--docs-ink);
  font-family: var(--font-sans);
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin-top: 16px;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.lead {
  max-width: 59ch;
  margin: 18px 0 0;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.7;
}

.article {
  color: var(--docs-body);
}

.article h2,
.article h3,
.article h4 {
  scroll-margin-top: calc(var(--docs-nav-height) + 28px);
}

.article h2 {
  margin: 58px 0 16px;
  padding-top: 4px;
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 750;
  letter-spacing: -0.032em;
  line-height: 1.2;
}

.article h3 {
  margin: 38px 0 12px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.022em;
  line-height: 1.3;
}

.article h4 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
}

.article p,
.article li {
  color: var(--docs-body);
  font-size: 15.5px;
}

.article p {
  margin: 13px 0 18px;
}

.article ul,
.article ol {
  margin: 12px 0 22px;
  padding-left: 1.35em;
}

.article li {
  margin: 7px 0;
  padding-left: 3px;
}

.article strong {
  color: var(--docs-ink);
  font-weight: 750;
}

.article a:not(.btn) {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 42%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article a:not(.btn):hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

.article code,
.quick-list code {
  padding: 0.12em 0.38em;
  border: 1px solid var(--border-1);
  border-radius: 5px;
  background: #f1ece4;
  color: #332d28;
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-variant-ligatures: none;
}

.code-shell {
  position: relative;
  margin: 22px 0;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px 20px 19px;
  border: 1px solid #302a25;
  border-radius: 12px;
  background: var(--docs-code);
  box-shadow: 0 18px 38px rgba(28, 25, 22, 0.1);
  color: #f7f2eb;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  tab-size: 2;
  white-space: pre-wrap;
  word-break: break-word;
}

.article pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.code-copy {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9d1c7;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.code-copy:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

blockquote,
.note {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 23%, var(--border-1));
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--accent-soft) 54%, #fff);
  color: var(--docs-body);
}

blockquote p:first-child,
.note p:first-child {
  margin-top: 0;
}

blockquote p:last-child,
.note p:last-child {
  margin-bottom: 0;
}

figure {
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid var(--border-1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(52, 44, 36, 0.07);
}

figure img,
.article > img {
  display: block;
  max-width: 100%;
  height: auto;
}

figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--border-1);
  color: var(--docs-muted);
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-1);
  border-radius: 12px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}

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

th {
  background: #f4efe7;
  color: var(--docs-ink);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.015em;
}

tr:last-child td {
  border-bottom: 0;
}

/* Documentation home */
.doc-home .wrap {
  width: 100%;
}

.doc-section {
  padding: 54px 0 8px;
}

.doc-section.compact {
  padding-top: 54px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 14px 0 11px;
  font-size: clamp(29px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.section-head p {
  margin: 0;
  color: var(--fg-2);
  font-size: 15px;
}

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

.doc-card {
  position: relative;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--border-1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 0 rgba(31, 29, 26, 0.02);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.doc-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20px;
  width: 34px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--accent);
}

.doc-card:hover {
  transform: translateY(-3px);
  border-color: #d7cdbc;
  box-shadow: 0 16px 36px rgba(56, 47, 38, 0.08);
}

.doc-card > span,
.doc-card > div {
  color: var(--docs-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.doc-card h3 {
  margin: 19px 0 9px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.doc-card p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--fg-2);
  font-size: 13.5px;
}

.doc-card > div:last-child {
  color: var(--accent-strong);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.quick-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-list a {
  padding: 17px 0;
  border-top: 1px solid var(--border-1);
}

.quick-list b {
  display: block;
  margin-bottom: 5px;
  color: var(--docs-ink);
}

.quick-list a:hover b {
  color: var(--accent-strong);
}

.quick-list span {
  display: block;
  color: var(--fg-2);
  font-size: 13px;
}

/* Shared dark footer */
.global-footer {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 6vw, 72px) 0 36px;
  background: var(--docs-ink);
  color: var(--docs-footer-muted);
  font-size: 13px;
}

.global-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.global-footer .cols {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(110px, 1fr));
  gap: 32px;
}

.global-footer .col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.global-footer .col b {
  margin-bottom: 3px;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.global-footer .col a {
  color: var(--docs-footer-muted);
  transition: color var(--dur-fast) var(--ease-out);
}

.global-footer .col a:hover {
  color: #fff;
}

.global-footer .brandcol {
  gap: 13px;
}

.global-footer .brandcol .wm {
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.global-footer .brandcol p {
  max-width: 245px;
  margin: 0;
  line-height: 1.55;
}

.global-footer .brandcol .enter {
  color: #fff;
  font-weight: 700;
}

.global-footer .base {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid #3a3630;
  color: #8a8378;
  font-size: 12px;
}

.global-footer .base .tag {
  text-align: right;
}

.error-page {
  display: grid;
  min-height: 62vh;
  place-items: center;
  padding: 80px 24px;
  text-align: center;
}

.error-page .error-code {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.error-page h1 {
  margin-inline: auto;
}

.error-page p {
  max-width: 46ch;
  margin: 17px auto 26px;
  color: var(--fg-2);
}

@media (min-width: 901px) and (max-width: 1140px) {
  :root {
    --docs-nav-height: 137px;
  }

  .nav .row {
    flex-wrap: wrap;
    row-gap: 24px;
  }

  .nav .right {
    flex-basis: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 1080px) {
  .global-footer .cols {
    grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(130px, 1fr));
  }
}

@media (max-width: 900px) {
  .nav .links,
  .nav .right .navcta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav.open .nav-menu {
    display: flex;
  }

  .nav-menu {
    max-height: calc(100vh - var(--docs-nav-height));
    flex-direction: column;
    overflow-y: auto;
    padding: 6px 0 18px;
  }

  .nav-menu > a:not(.btn) {
    padding: 14px 2px;
    border-bottom: 1px solid var(--border-1);
    color: var(--docs-ink);
    font-size: 16px;
    font-weight: 500;
  }

  .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
  }

  .nav-actions-mobile .btn {
    min-height: 0;
    padding: 13px 18px;
    border-bottom: 0;
    font-size: 14px;
    font-weight: 600;
  }
}

@media (max-width: 800px) {
  .wrap,
  .docs-layout {
    width: min(100% - 36px, var(--docs-max));
  }

  .docs-layout {
    display: block;
    padding-top: 20px;
  }

  .docs-sidebar-toggle {
    position: sticky;
    top: calc(var(--docs-nav-height) + 10px);
    z-index: 45;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 24px;
    padding: 11px 14px;
    border: 1px solid var(--border-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 20px rgba(52, 44, 36, 0.07);
    color: var(--docs-ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(12px);
  }

  .docs-sidebar-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    rotate: 45deg;
  }

  .docs-sidebar {
    position: fixed;
    top: var(--docs-nav-height);
    bottom: 0;
    left: 0;
    z-index: 90;
    width: min(88vw, 344px);
    max-height: none;
    padding: 0 18px 30px;
    border: 0;
    border-right: 1px solid var(--border-2);
    background: #fbf8f3;
    box-shadow: 20px 0 60px rgba(31, 29, 26, 0.18);
    transform: translateX(-105%);
    transition: transform var(--dur-slow) var(--ease-out);
  }

  body.docs-sidebar-open {
    overflow: hidden;
  }

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

  .sidebar-mobile-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -18px 18px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-1);
    background: rgba(251, 248, 243, 0.96);
    backdrop-filter: blur(12px);
  }

  .sidebar-mobile-head strong {
    font-size: 13px;
  }

  .sidebar-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-2);
    border-radius: 50%;
    background: #fff;
    color: var(--docs-ink);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: var(--docs-nav-height) 0 0;
    z-index: 80;
    display: block;
    background: rgba(31, 29, 26, 0.42);
    opacity: 0;
    transition: opacity var(--dur-slow) var(--ease-out);
  }

  .sidebar-backdrop.is-visible {
    opacity: 1;
  }

  .docs-content {
    width: 100%;
  }

  .doc-page-head {
    padding-top: 6px;
  }

  .doc-grid,
  .quick-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .global-footer .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
  }

  .global-footer .brandcol {
    grid-column: 1 / -1;
  }

  .global-footer .base {
    flex-direction: column;
  }

  .global-footer .base .tag {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .wrap,
  .docs-layout {
    width: min(100% - 28px, var(--docs-max));
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 15.5px;
  }

  .article h2 {
    margin-top: 48px;
  }

  pre {
    padding: 18px 15px;
    font-size: 11.5px;
  }

  .doc-card {
    min-height: 172px;
  }

  .global-footer .cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
