:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --text: #1c1d1f;
  --muted: #686f78;
  --border: #e1e6ed;
  --accent: #066cee;
  --accent-strong: #1071f3;
  --code-bg: #111827;
  --code-text: #e5e7eb;
  --ring: rgba(6, 108, 238, 0.18);
  --highlight-bg: rgba(6, 108, 238, 0.16);
  --shadow: 0 10px 28px rgba(29, 29, 29, 0.08);
  --header-bg: #066cee;
  --header-text: #ffffff;
  --header-muted: rgba(255, 255, 255, 0.72);
  --header-border: rgba(255, 255, 255, 0.16);
  --header-control-bg: rgba(255, 255, 255, 0.04);
  --sidebar-width: clamp(288px, 18vw, 380px);
  --sidebar-padding-x: 8px;
  --content-width: 90vw;
  --document-gap: clamp(36px, 4vw, 72px);
  --toc-width: clamp(180px, 14vw, 300px);
  --nav-indent: 18px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1d1d1d;
  --surface: #222223;
  --surface-soft: #2b2c2c;
  --text: #ffffff;
  --muted: #c0c2c4;
  --border: #434445;
  --accent: #5b99ba;
  --accent-strong: #adc4d2;
  --code-bg: #080b10;
  --code-text: #f3f4f6;
  --ring: rgba(91, 153, 186, 0.28);
  --highlight-bg: rgba(91, 153, 186, 0.3);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --header-bg: #155f7a;
  --header-text: #ffffff;
  --header-muted: rgba(255, 255, 255, 0.72);
  --header-border: rgba(255, 255, 255, 0.16);
  --header-control-bg: rgba(255, 255, 255, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #1d1d1d;
    --surface: #222223;
    --surface-soft: #2b2c2c;
    --text: #ffffff;
    --muted: #c0c2c4;
    --border: #434445;
    --accent: #5b99ba;
    --accent-strong: #adc4d2;
    --code-bg: #080b10;
    --code-text: #f3f4f6;
    --ring: rgba(91, 153, 186, 0.28);
    --highlight-bg: rgba(91, 153, 186, 0.3);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    --header-bg: #155f7a;
    --header-text: #ffffff;
    --header-muted: rgba(255, 255, 255, 0.72);
    --header-border: rgba(255, 255, 255, 0.16);
    --header-control-bg: rgba(255, 255, 255, 0.05);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.625;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

a[href="#broken-link"] {
  color: var(--muted);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-style: dotted;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  column-gap: clamp(32px, 3.2vw, 64px);
  width: var(--content-width);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  background: transparent;
  padding: 24px var(--sidebar-padding-x) 16px 0;
}

.sidebar-search {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.brand-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--header-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.brand-link:hover {
  color: var(--header-text);
  text-decoration: none;
}

.topbar-brand,
.topbar-brand:visited,
.topbar-brand:hover,
.topbar-brand:focus,
.topbar-brand:active {
  color: var(--header-text);
}

.brand-mark,
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.brand-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
}

.brand-logo {
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  padding: 3px;
}

.search-box {
  display: block;
  margin-bottom: 20px;
}

.search-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

.nav-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-tree .nav-tree {
  display: none;
  margin: 2px 0 8px calc(var(--nav-indent) + 4px);
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.nav-item.is-expanded > .nav-tree {
  display: block;
}

.nav-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 4px;
  align-items: start;
  min-height: 32px;
  margin: 1px 0;
}

.nav-toggle,
.nav-spacer {
  width: 24px;
  height: 32px;
}

.nav-toggle {
  position: relative;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.nav-toggle::before {
  position: absolute;
  top: 11px;
  left: 8px;
  width: 7px;
  height: 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  content: "";
  transform: rotate(-45deg);
  transition: transform 140ms ease, color 140ms ease;
}

.nav-item.is-expanded > .nav-row .nav-toggle::before {
  transform: rotate(45deg);
}

.nav-toggle:hover {
  background: rgba(6, 108, 238, 0.08);
  color: var(--accent);
}

.nav-link,
.nav-group {
  display: block;
  min-width: 0;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  padding: 6px 6px 6px 8px;
  overflow-wrap: anywhere;
}

.nav-group {
  color: var(--muted);
  font-weight: 400;
}

.nav-link:hover {
  background: color-mix(in srgb, var(--accent), transparent 92%);
  color: var(--text);
  text-decoration: none;
}

.nav-item.is-current-branch > .nav-row .nav-group,
.nav-item.is-current-branch > .nav-row .nav-link:not(.is-active) {
  color: var(--muted);
}

.nav-link.is-active {
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 2px 0 0 var(--accent);
}

.nav-item.is-current-page > .nav-row .nav-toggle {
  color: var(--muted);
}

.content-shell {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  height: 64px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  padding: 0 clamp(20px, 3vw, 44px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.topbar-title {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button,
.theme-toggle,
.topbar-action,
.language-picker select,
.topbar-search input,
.code-copy,
.search-panel button {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.topbar-brand {
  width: fit-content;
  font-size: 18px;
  font-weight: 650;
}

.topbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  border: 0;
  background: transparent;
  color: var(--header-text);
  white-space: nowrap;
  padding: 0;
}

.topbar-action:hover {
  color: var(--header-muted);
  text-decoration: none;
}

.language-picker {
  width: auto;
  min-width: 130px;
}

.language-picker span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.language-picker select {
  width: 100%;
  min-height: 20px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--header-text);
  padding: 0 18px 0 0;
}

.language-picker {
  position: relative;
}

.language-picker::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 1.7px solid var(--header-muted);
  border-bottom: 1.7px solid var(--header-muted);
  content: "";
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.topbar-search {
  width: 224px;
  min-width: 0;
}

.topbar-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.topbar-search input {
  width: 100%;
  min-height: 39px;
  border-color: var(--header-border);
  border-radius: 12px;
  background: var(--header-control-bg);
  color: var(--header-text);
  padding: 8px 12px;
}

.topbar-search input::placeholder {
  color: var(--header-muted);
}

.icon-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 9px;
}

.icon-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--header-text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  min-width: 96px;
  border-color: var(--header-border);
  border-radius: 12px;
  background: var(--header-control-bg);
  color: var(--header-text);
  padding: 7px 12px;
}

.theme-toggle:hover {
  border-color: var(--header-text);
  color: var(--header-text);
}

.theme-toggle__icon {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.theme-toggle__icon::after {
  position: absolute;
  inset: 2px 0 2px 6px;
  border-radius: 0 10px 10px 0;
  background: currentColor;
  content: "";
}

.document {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) var(--toc-width);
  gap: var(--document-gap);
  width: 100%;
  margin: 0;
  padding: 32px 0 70px;
}

.doc-content {
  min-width: 0;
}

.doc-content h1,
.doc-content h2,
.doc-content h3,
.doc-content h4 {
  line-height: 1.22;
}

.doc-content h1 {
  margin: 0 0 28px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.doc-content h1 + .page-description {
  margin-top: -10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 16px;
}

.doc-content h2 {
  margin-top: 42px;
  font-size: 26px;
}

.doc-content h3 {
  margin-top: 30px;
  font-size: 22px;
}

.doc-content p,
.doc-content li {
  color: var(--muted);
}

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

.doc-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 24px 0;
  padding: 12px 18px;
  background: var(--surface);
  color: var(--muted);
}

.doc-content figure {
  margin: 24px 0;
}

.doc-content div[align="left"] figure,
.doc-content div[align="center"] figure,
.doc-content div[align="right"] figure {
  display: inline-block;
  max-width: 100%;
}

.doc-content div[align="left"] {
  text-align: left;
}

.doc-content div[align="center"] {
  text-align: center;
}

.doc-content div[align="right"] {
  text-align: right;
}

.doc-content figure img {
  display: block;
  margin: 0 auto;
}

.doc-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.doc-content img {
  max-width: 100%;
  border-radius: 4px;
  box-shadow: none;
}

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

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  padding: 8px 14px;
  font-weight: 700;
}

.button-link:hover {
  background: var(--accent-strong);
  color: #ffffff;
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.doc-content table[data-view="cards"] {
  display: block;
  min-width: 0;
  border-collapse: separate;
}

.doc-content table[data-view="cards"] thead {
  display: none;
}

.doc-content table[data-view="cards"] tbody {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.doc-content table[data-view="cards"] tr {
  display: grid;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  padding: 12px 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.doc-content table[data-view="cards"] tr:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.doc-content table[data-view="cards"] td {
  display: block;
  border: 0;
  padding: 0;
}

.doc-content table[data-view="cards"] td[data-hidden],
.doc-content table[data-view="cards"] th[data-hidden] {
  display: none;
}

.doc-content table[data-view="cards"] td:first-child {
  color: var(--text);
  font-weight: 500;
  text-align: left;
}

.doc-content table[data-view="cards"] td:first-child::first-letter {
  color: var(--accent);
}

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

th {
  background: var(--surface-soft);
  color: var(--text);
}

.code-block {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--code-bg);
  margin: 24px 0;
}

.code-block__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #b7c1cf;
  font-size: 12px;
  padding: 8px 10px;
}

.code-copy {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  padding: 4px 8px;
}

.code-block pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
}

.code-block code {
  color: var(--code-text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.gitbook-hint {
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 4px;
  background: var(--surface);
  margin: 24px 0;
  padding: 14px 16px;
}

.gitbook-hint__label {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.gitbook-hint__content > :first-child {
  margin-top: 0;
}

.gitbook-hint__content > :last-child {
  margin-bottom: 0;
}

.gitbook-hint--info {
  border-left-color: #787878;
  background: color-mix(in srgb, #787878, var(--surface) 94%);
}

.gitbook-hint--warning {
  border-left-color: #f59e0b;
  background: color-mix(in srgb, #f59e0b, var(--surface) 92%);
}

.gitbook-hint--danger {
  border-left-color: #ef4444;
  background: color-mix(in srgb, #ef4444, var(--surface) 92%);
}

.gitbook-hint--success {
  border-left-color: #10b981;
  background: color-mix(in srgb, #10b981, var(--surface) 92%);
}

.gitbook-content-ref,
.gitbook-embed--link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  margin: 18px 0;
  padding: 12px 20px;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.gitbook-content-ref:hover,
.gitbook-embed--link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
  text-decoration: none;
}

.gitbook-content-ref span,
.gitbook-embed--link span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gitbook-content-ref strong,
.gitbook-embed--link strong {
  display: block;
  margin-top: 3px;
}

.gitbook-embed--video {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  margin: 24px 0;
  overflow: hidden;
  background: var(--code-bg);
}

.gitbook-embed--video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.content-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.content-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  padding: 12px 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.content-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
  color: var(--accent);
  text-decoration: none;
}

.content-card svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 160ms ease;
}

.content-card:hover svg {
  transform: translateX(2px);
}

.section-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 32px;
}

.section-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: 0 0 0 1px var(--border);
  color: var(--text);
  padding: 12px 20px;
  text-decoration: none;
  transition: box-shadow 160ms ease, color 160ms ease;
}

.section-card:hover {
  box-shadow: 0 0 0 1px var(--accent);
  color: var(--text);
  text-decoration: none;
}

.section-card strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
}

.section-card__eyebrow,
.section-card__meta {
  display: none;
}

.section-card svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  fill: none;
  padding: 0;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 160ms ease, color 160ms ease;
}

.section-card:hover svg {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
  transform: translateX(2px);
}

.page-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 36px;
}

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

.page-link {
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  padding: 16px;
}

.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

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

.page-link span {
  display: block;
  font-size: 12px;
}

.page-link strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-top: 2px;
}

.page-toc {
  position: sticky;
  top: 82px;
  height: max-content;
  border-left: 0;
  padding-left: 18px;
}

.page-toc h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
}

.toc-empty,
.toc-list {
  color: var(--muted);
  font-size: 13px;
}

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

.toc-list li {
  margin: 6px 0;
}

.toc-level-3 {
  padding-left: 12px;
}

.search-panel {
  position: fixed;
  top: 72px;
  right: 24px;
  bottom: auto;
  z-index: 50;
  width: min(520px, calc(100vw - 48px));
}

.search-panel__inner {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
}

.search-panel button {
  padding: 6px 10px;
}

.search-results {
  max-height: 440px;
  overflow: auto;
  padding: 8px;
}

.search-result {
  display: block;
  border-radius: 4px;
  padding: 10px;
}

.search-result:hover {
  background: var(--surface-soft);
  text-decoration: none;
}

.search-result strong,
.search-result span {
  display: block;
}

.search-result span,
.empty-state {
  color: var(--muted);
  font-size: 13px;
}

.search-highlight {
  border-radius: 2px;
  background: var(--highlight-bg);
  color: inherit;
  padding: 0 1px;
}

@media (max-width: 1280px) {
  :root {
    --sidebar-width: clamp(280px, 25vw, 340px);
    --content-width: min(100% - 40px, 1180px);
    --document-gap: 40px;
    --toc-width: 200px;
  }

  .topbar-search {
    width: 224px;
  }
}

@media (max-width: 1080px) {
  :root {
    --sidebar-width: 280px;
    --content-width: min(100% - 36px, 920px);
    --document-gap: 0;
  }

  .app-shell {
    column-gap: 32px;
  }

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

  .page-toc {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --content-width: min(100% - 32px, 820px);
  }

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

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 64px auto 0 0;
    z-index: 60;
    width: min(360px, 88vw);
    border-right: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 22px 0 48px rgba(0, 0, 0, 0.18);
    padding: 16px;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .sidebar-search {
    display: block;
    margin-bottom: 14px;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 64px 0 0;
    z-index: 55;
    display: block;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(2px);
  }

  .sidebar-backdrop[hidden] {
    display: none;
  }

  .search-panel {
    top: 76px;
    right: 16px;
    left: 16px;
    z-index: 90;
    width: auto;
  }

  .search-results {
    max-height: calc(100vh - 160px);
  }

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

  .icon-button {
    display: block;
  }

  .topbar {
    z-index: 70;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    height: 64px;
    min-height: 64px;
    padding: 0 16px;
  }

  .topbar-brand {
    width: auto;
    min-width: 0;
  }

  .topbar-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-actions {
    grid-column: auto;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  .topbar-main-link,
  .topbar-search {
    display: none;
  }

  .language-picker {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    overflow: hidden;
  }

  .language-picker select {
    width: 44px;
    min-height: 38px;
    border: 1px solid var(--header-border);
    border-radius: 12px;
    background: var(--header-control-bg);
    font-size: 18px;
    line-height: 1;
    padding: 7px 4px 7px 8px;
    text-overflow: clip;
  }

  .language-picker::after {
    display: none;
  }

  .theme-toggle {
    min-width: 0;
    width: 38px;
    padding: 0;
  }

  .theme-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .document {
    width: var(--content-width);
    margin: 0 auto;
    padding-top: 28px;
  }

  .content-card-grid,
  .section-card-grid,
  .page-links {
    grid-template-columns: 1fr;
  }

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

  .doc-content h1 {
    font-size: 32px;
  }

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