:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #f7f8fa;
  --surface-hover: #eceff3;
  --ink: #202934;
  --muted: #697380;
  --faint: #929ba5;
  --line: #e7eaf0;
  --accent: #2b58df;
  --accent-bg: #eef3ff;
  --code: #f5f7fa;
  --header: #ffffffed;
  --shadow: 0 18px 70px #17254222;
  --sidebar-width: 268px;
  --header-height: 78px;
  --font: "Work Sans", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151a21;
  --surface: #1b222b;
  --surface-hover: #28323e;
  --ink: #edf1f7;
  --muted: #a9b4c2;
  --faint: #8894a4;
  --line: #2d3744;
  --accent: #8caaff;
  --accent-bg: #232f48;
  --code: #1e2733;
  --header: #151a21ee;
  --shadow: 0 18px 70px #0006;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 0;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.modal-open,
body.nav-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
}
svg {
  flex-shrink: 0;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: var(--accent-bg);
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
.js-only {
  display: none !important;
}
.js .js-only {
  display: flex !important;
}
.mobile-only {
  display: none !important;
}
.js .mobile-only {
  display: none !important;
}
.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  transition:
    background 0.15s,
    color 0.15s;
}
.icon-button:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  padding: 10px 20px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px;
}
.skip-link:focus {
  top: 10px;
}
.small-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.topbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 36px 0 26px;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(16px);
  z-index: 30;
}
.brand-area {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(var(--sidebar-width) - 26px);
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.2;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 37px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 7px;
}
.brand-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 5px;
}
.search-trigger {
  align-items: center;
  gap: 12px;
  width: min(400px, 36vw);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  min-height: 39px;
}
.search-trigger:hover {
  border-color: var(--faint);
}
.search-trigger kbd {
  margin-left: auto;
}
kbd {
  font: 10px/1.5 var(--font);
  color: var(--muted);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
  background: var(--bg);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.support-link {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
}
.support-link:hover {
  color: var(--accent);
}
.header-divider {
  height: 19px;
  border-left: 1px solid var(--line);
}
.sidebar {
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  padding: 30px 18px 20px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  z-index: 25;
}
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  margin-bottom: 20px;
}
.sidebar-top .small-label {
  font-size: 9px;
  letter-spacing: 0.1em;
}
.edition {
  font-size: 9px;
  font-weight: 500;
  padding: 1px 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}
.nav-group {
  margin-bottom: 5px;
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 1px;
}
.chapter-link {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  flex: 1;
  padding: 10px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}
.chapter-link:hover {
  background: var(--surface-hover);
}
.chapter-number {
  font-size: 9px;
  line-height: 1.8;
  color: var(--faint);
  font-weight: 400;
  flex-shrink: 0;
  padding-top: 1px;
}
.nav-group.is-current > .nav-row > .chapter-link {
  color: var(--accent);
}
.chapter-link.is-active {
  background: var(--accent-bg);
}
.chapter-link.is-active .chapter-number {
  color: var(--accent);
}
.nav-expand {
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 30px;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  color: var(--faint);
}
.nav-expand svg {
  transition: transform 0.15s;
}
.nav-expand[aria-expanded="true"] svg {
  transform: rotate(90deg);
}
.nav-expand:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.nav-children {
  list-style: none;
  padding: 0 0 0 12px;
  margin: 3px 0 10px 20px;
  border-left: 1px solid var(--line);
}
.nav-children li {
  margin: 1px 0;
}
.nav-children a {
  display: block;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  padding: 7px 9px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.nav-children a:hover {
  color: var(--ink);
  background: var(--surface-hover);
}
.nav-children a.is-active {
  color: var(--accent);
  background: var(--accent-bg);
  font-weight: 500;
}
.sidebar-bottom {
  border-top: 1px solid var(--line);
  margin: 30px 11px 0;
  padding-top: 24px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}
.sidebar-bottom > a {
  display: inline-block;
  padding: 12px 15px;
  background: #232a33;
  border-radius: 7px;
}
.sidebar-bottom img {
  display: block;
  width: 122px;
  height: auto;
}
.sidebar-bottom > span {
  font-size: 9px;
  color: var(--faint);
}
.page-layout {
  padding-top: var(--header-height);
  margin-left: var(--sidebar-width);
  display: grid;
  grid-template-columns: minmax(0, 820px) 190px;
  justify-content: center;
  gap: 48px;
  padding-inline: 56px 32px;
}
.main-content {
  min-width: 0;
  outline: none;
}
.document-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  margin-bottom: 14px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
}
.breadcrumbs > a:hover {
  color: var(--accent);
}
#breadcrumb-current {
  color: var(--muted);
}
.doc-content {
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: break-word;
}
.doc-section {
  scroll-margin-top: 105px;
}
.doc-content h1 {
  font-size: 43px;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.16;
  max-width: 680px;
  margin-bottom: 23px;
}
.doc-content h2 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.25;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.doc-content h3 {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 32px 0 16px;
}
.doc-content h5 {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 28px 0 13px;
}
.doc-content h3 > a {
  color: var(--ink);
  text-decoration: none;
}
.doc-content h3 > a::after {
  content: "#";
  display: inline-block;
  font-size: 17px;
  margin-left: 10px;
  opacity: 0;
  color: var(--faint);
  font-weight: 400;
}
.doc-content h3:hover > a::after,
.doc-content h3 > a:focus-visible::after {
  opacity: 1;
}
.doc-content p {
  margin: 16px 0;
  color: var(--muted);
}
.doc-content a:not(.image-zoom, .video-poster, .video-external) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.doc-content a:hover {
  text-decoration-color: transparent;
}
.doc-content h3 a {
  color: var(--ink) !important;
  text-decoration: none !important;
}
.doc-content strong,
.doc-content b {
  color: var(--ink);
  font-weight: 600;
}
.doc-content .version {
  display: inline-flex;
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.doc-content ul,
.doc-content ol {
  padding-left: 24px;
  color: var(--muted);
  margin: 18px 0;
}
.doc-content li {
  padding-left: 4px;
  margin: 7px 0;
}
.doc-content li::marker {
  color: var(--faint);
}
.doc-content blockquote {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: var(--surface);
  padding: 14px 20px;
  color: var(--muted);
}
.doc-content blockquote p {
  margin: 0;
}
.doc-content pre {
  font:
    12px/1.85 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
  margin: 0;
  padding: 22px 24px;
  background: var(--code);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.code-block {
  position: relative;
  margin: 20px 0;
}
.code-block pre {
  padding-top: 38px;
}
.copy-code {
  position: absolute;
  right: 10px;
  top: 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 9px;
  color: var(--muted);
}
.copy-code:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.step-content {
  scroll-margin-top: 106px;
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 2px;
}
.step-content:first-of-type {
  border-top: 0;
  margin-top: 30px;
  padding-top: 0;
}
.doc-content .source-spacer {
  display: none;
}
.doc-content .image-zoom {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0;
  line-height: 0;
  cursor: zoom-in;
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 7px;
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.doc-content .image-zoom:hover {
  border-color: var(--faint);
  box-shadow: 0 5px 18px #1423380a;
}
.doc-content .image-zoom img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}
.doc-content li .image-zoom {
  margin: 16px 0 24px;
}
.doc-content [id] {
  scroll-margin-top: 106px;
}
.video-embed {
  margin: 24px 0 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  line-height: 1.5;
}
.video-poster {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111820;
}
.video-poster > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 4px solid #ffffffd9;
  border-radius: 50%;
  background: #2856e8;
  color: white;
  box-shadow: 0 5px 35px #0e1b4266;
}
.play-button svg {
  fill: currentColor;
  stroke-width: 0;
  margin-left: -2px;
  width: 29px;
}
.video-poster:hover .play-button {
  background: #153bbf;
}
.video-external {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 14px;
  font-size: 10px;
  color: var(--muted);
}
.video-external:hover {
  color: var(--accent);
}
.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  background: #111820;
}
.doc-section + .doc-section {
  margin-top: 65px;
}
.js .doc-section {
  margin-top: 0;
}
.doc-content span[style*="color: #ff0000"] {
  font-weight: 500;
}
:root[data-theme="dark"] .doc-content span[style*="color: #ff0000"] {
  color: #ff9a9a !important;
}
.start-panel {
  margin-top: 37px;
}
.start-heading {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-bottom: 24px;
}
.start-heading .small-label {
  color: var(--accent);
  font-size: 9px;
}
.start-heading h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 10px 0;
}
.start-heading > p:last-child {
  font-size: 12px;
  color: var(--muted);
}
.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.chapter-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px 22px;
  min-height: 164px;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.15s;
}
.chapter-card:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
  transform: translateY(-2px);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--faint);
}
.card-top > span {
  font:
    10px ui-monospace,
    Consolas,
    monospace;
  letter-spacing: 0.03em;
}
.card-top > svg {
  color: var(--muted);
  width: 17px;
  height: 17px;
}
.chapter-card h3 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.chapter-card p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.help-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px 20px;
  margin-top: 24px;
}
.help-strip > svg {
  margin-left: auto;
  color: var(--muted);
}
.help-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 15px;
  color: var(--accent);
  background: var(--bg);
}
.help-strip strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  line-height: 1.5;
}
.help-strip small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.help-strip:hover {
  border-color: var(--faint);
}
.right-rail {
  position: sticky;
  top: calc(var(--header-height) + 42px);
  align-self: start;
  flex-direction: column;
  padding-top: 0;
  margin-top: 42px;
  max-height: calc(100dvh - var(--header-height) - 70px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.right-rail > .small-label {
  font-size: 9px;
  margin-bottom: 15px;
  color: var(--ink);
}
#page-toc {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  margin: 0 0 30px;
  padding-left: 14px;
  gap: 1px;
}
#page-toc a {
  position: relative;
  display: block;
  padding: 5px 0;
  font-size: 10px;
  line-height: 1.65;
  color: var(--muted);
  overflow-wrap: anywhere;
}
#page-toc a:hover,
#page-toc a.is-active {
  color: var(--accent);
}
#page-toc a.is-active::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: var(--accent);
}
#page-toc a.toc-sub {
  padding-left: 9px;
  font-size: 9px;
}
.rail-resources {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.rail-resources .small-label {
  font-size: 9px;
  margin-bottom: 12px;
}
.rail-resources > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  padding: 6px 0;
}
.rail-resources > a:hover {
  color: var(--accent);
}
.page-pagination {
  display: flex;
  gap: 15px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.page-pagination > a {
  flex: 1;
  max-width: 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
}
.page-pagination > a:last-child {
  text-align: right;
  margin-left: auto;
}
.page-pagination span {
  font-size: 9px;
  color: var(--muted);
}
.page-pagination strong {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}
.page-pagination > a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.document-footer {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  font-size: 9px;
  color: var(--faint);
  padding: 27px 0 35px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #14213488;
  backdrop-filter: blur(5px);
}
#search-dialog {
  width: min(650px, calc(100vw - 32px));
  max-height: min(680px, calc(100dvh - 64px));
  margin: 12vh auto auto;
  overflow: hidden;
}
#search-dialog[open] {
  display: flex;
  flex-direction: column;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.search-input-row > svg {
  color: var(--accent);
}
#search-input {
  font-size: 15px;
  flex: 1;
  min-width: 0;
  background: transparent;
  color: var(--ink);
  border: 0;
  outline: 0 !important;
  padding: 4px 0;
  line-height: 1.5;
}
.search-input-row:focus-within {
  box-shadow: inset 0 -2px var(--accent);
}
#search-status {
  font-size: 10px;
  color: var(--muted);
  padding: 15px 20px 5px;
}
#search-results {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px 10px 12px;
  min-height: 100px;
}
.search-result {
  display: block;
  border-radius: 6px;
  padding: 13px 12px;
  margin: 2px 0;
  line-height: 1.5;
  outline-offset: -3px !important;
}
.search-result:hover,
.search-result:focus-visible {
  background: var(--accent-bg);
}
.result-category {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.search-result strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.result-snippet {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 5px;
}
.result-snippet mark {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 500;
}
.search-empty {
  padding: 35px 20px;
  text-align: center;
}
.search-empty strong {
  font-size: 17px;
  font-weight: 500;
  display: block;
}
.search-empty p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.search-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  font-size: 9px;
  color: var(--muted);
  background: var(--surface);
}
.search-footer kbd {
  font-size: 9px;
  margin: 0 2px;
}
#image-dialog {
  width: fit-content;
  max-width: calc(100vw - 40px);
  max-height: 92dvh;
}
#image-dialog[open] {
  display: flex;
  flex-direction: column;
}
.image-dialog-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.image-dialog-header h2 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.image-dialog-header > a {
  margin-left: auto;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.image-dialog-header > a:hover {
  color: var(--accent);
}
.image-dialog-body {
  overflow: auto;
  background: #e9ecf0;
  overscroll-behavior: contain;
}
.image-dialog-body > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: auto;
}
html:not(.js) .right-rail,
html:not(.js) .header-divider {
  display: none;
}
html:not(.js) .page-layout {
  grid-template-columns: minmax(0, 900px);
}
@media (min-width: 1700px) {
  .page-layout {
    gap: 70px;
    padding-inline: 85px 60px;
  }
  .doc-content h1 {
    font-size: 48px;
  }
  .topbar {
    padding-right: 50px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 246px;
  }
  .topbar {
    padding-left: 22px;
    padding-right: 24px;
    gap: 24px;
  }
  .brand-area {
    width: calc(var(--sidebar-width) - 22px);
  }
  .page-layout {
    gap: 30px;
    grid-template-columns: minmax(0, 760px) 150px;
    padding-inline: 36px 24px;
  }
  .doc-content h1 {
    font-size: 38px;
  }
  .right-rail .small-label {
    font-size: 8px;
  }
  .chapter-card {
    padding: 18px;
    min-height: 160px;
  }
  .sidebar {
    padding-inline: 14px;
  }
  .sidebar-top {
    padding-inline: 10px;
  }
  .search-trigger {
    width: min(350px, 34vw);
  }
}
@media (max-width: 1050px) {
  .page-layout {
    display: block;
    padding-inline: 40px;
  }
  .js .right-rail {
    display: none !important;
  }
  .doc-content h1 {
    font-size: 40px;
  }
  .header-actions {
    gap: 14px;
  }
  .search-trigger {
    width: 300px;
  }
  .brand-area {
    width: calc(var(--sidebar-width) - 22px);
  }
  .doc-content {
    font-size: 13px;
  }
  .doc-content pre {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  :root {
    --header-height: 68px;
    --sidebar-width: 280px;
  }
  .topbar {
    padding-inline: 16px;
    gap: 14px;
  }
  .brand-area {
    width: auto;
    gap: 8px;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
  }
  .brand-icon {
    display: none;
  }
  .brand-label {
    font-size: 9px;
    margin-top: 3px;
  }
  .js .mobile-only {
    display: flex !important;
  }
  .search-trigger {
    width: auto;
    min-height: 36px;
    padding: 8px;
    border: 0;
    background: transparent;
    margin-left: auto;
  }
  .search-trigger > span,
  .search-trigger > kbd {
    display: none;
  }
  .header-actions {
    gap: 7px;
    margin-left: 0;
  }
  .header-divider {
    display: none;
  }
  .support-link {
    font-size: 10px;
  }
  .support-link > svg {
    width: 10px;
  }
  .sidebar {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    margin-top: var(--header-height);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px;
  }
  .js .sidebar {
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    margin: 0;
    width: min(310px, 86vw);
    padding: 24px 18px;
    border-right: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
  }
  .js .nav-open .sidebar {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.2s;
  }
  .sidebar-backdrop {
    position: fixed;
    inset: var(--header-height) 0 0;
    background: #15243a66;
    z-index: 24;
    border: 0;
    cursor: default;
  }
  .page-layout {
    margin-left: 0;
    padding-inline: 26px;
  }
  .document-toolbar {
    min-height: 78px;
    margin-bottom: 12px;
  }
  .breadcrumbs {
    font-size: 10px;
  }
  .doc-content h1 {
    font-size: 38px;
    max-width: 620px;
  }
  .doc-content h2 {
    font-size: 30px;
  }
  .doc-content h3 {
    font-size: 22px;
  }
  .doc-content {
    font-size: 14px;
  }
  .right-rail {
    display: none !important;
  }
  .start-panel {
    margin-top: 30px;
  }
  .chapter-card {
    min-height: 165px;
  }
  .sidebar-bottom {
    margin-top: 25px;
  }
  .chapter-link {
    font-size: 13px;
    padding-block: 11px;
  }
  .nav-children a {
    font-size: 12px;
    padding-block: 9px;
  }
  .nav-expand {
    width: 32px;
    height: 35px;
  }
  .sidebar-top .small-label {
    font-size: 10px;
  }
  .nav-group {
    margin-bottom: 6px;
  }
  .chapter-number {
    font-size: 10px;
  }
  .js .sidebar[inert] {
    pointer-events: none;
  }
  html:not(.js) .page-layout {
    padding-top: 0;
  }
  html:not(.js) .sidebar-bottom {
    display: none;
  }
  html:not(.js) .nav-children {
    columns: 2;
  }
  #search-dialog {
    margin-top: 8vh;
  }
  .search-trigger .icon-button {
    width: 30px;
  }
}
@media (max-width: 440px) {
  .topbar {
    gap: 8px;
    padding-inline: 12px;
  }
  .brand {
    font-size: 14px;
  }
  .brand-area {
    gap: 5px;
  }
  .support-link {
    display: none;
  }
  .header-actions .icon-button {
    width: 31px;
  }
  .search-trigger {
    padding: 7px;
  }
  .brand-area > .icon-button {
    width: 30px;
  }
  .page-layout {
    padding-inline: 20px;
  }
  .document-toolbar {
    min-height: 70px;
  }
  .doc-content h1 {
    font-size: 34px;
    letter-spacing: -0.055em;
  }
  .doc-content h2 {
    font-size: 28px;
  }
  .doc-content h3 {
    font-size: 20px;
  }
  .doc-content h5 {
    font-size: 15px;
  }
  .doc-content {
    font-size: 13px;
    line-height: 1.9;
  }
  .chapter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .chapter-card {
    min-height: 0;
    padding: 18px 19px;
  }
  .card-top {
    margin-bottom: 13px;
  }
  .chapter-card h3 {
    font-size: 16px;
  }
  .chapter-card p {
    font-size: 11px;
  }
  .start-heading h2 {
    font-size: 23px;
  }
  .help-strip {
    padding: 15px;
    gap: 12px;
  }
  .doc-content pre {
    font-size: 10px;
    padding: 37px 14px 18px;
  }
  .doc-content ul,
  .doc-content ol {
    padding-left: 19px;
  }
  .doc-content .image-zoom {
    padding: 3px;
    border-radius: 5px;
  }
  .doc-content blockquote {
    padding: 13px 15px;
  }
  .video-embed {
    margin-block: 22px;
  }
  .play-button {
    width: 50px;
    height: 50px;
  }
  .video-external {
    font-size: 9px;
  }
  .page-pagination {
    gap: 10px;
    margin-top: 35px;
  }
  .page-pagination > a {
    padding: 12px;
  }
  .page-pagination strong {
    font-size: 11px;
  }
  .document-footer {
    font-size: 8px;
    gap: 10px;
    padding-block: 22px;
  }
  .search-input-row {
    padding: 13px;
    gap: 10px;
  }
  #search-input {
    font-size: 13px;
  }
  .search-footer {
    padding: 10px 12px;
    font-size: 8px;
  }
  .search-footer kbd {
    font-size: 8px;
  }
  #image-dialog {
    max-width: calc(100vw - 16px);
  }
  .image-dialog-header {
    padding: 10px;
    gap: 8px;
  }
  .image-dialog-header h2 {
    font-size: 11px;
  }
  .image-dialog-header > a {
    font-size: 9px;
  }
  .image-dialog-header .icon-button {
    width: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
@media print {
  :root {
    --bg: #fff;
    --ink: #000;
    --muted: #333;
    --line: #ddd;
    --code: #f6f6f6;
  }
  body {
    overflow: visible !important;
    background: white !important;
    color: black !important;
    font-size: 11pt;
  }
  .topbar,
  .sidebar,
  .right-rail,
  .sidebar-backdrop,
  .document-toolbar,
  .start-panel,
  .page-pagination,
  .copy-code,
  dialog,
  .skip-link {
    display: none !important;
  }
  .js .js-only {
    display: none !important;
  }
  .page-layout {
    display: block;
    margin: 0;
    padding: 0;
  }
  .doc-content {
    font-size: 11pt;
  }
  .doc-content .doc-section[hidden],
  .doc-content .doc-section {
    display: block !important;
    margin-top: 30pt;
    break-before: page;
  }
  .doc-content .doc-section:first-child {
    break-before: auto;
  }
  .step-content {
    break-before: auto;
  }
  .doc-content h1 {
    font-size: 26pt;
  }
  .doc-content h2 {
    font-size: 22pt;
  }
  .doc-content h3 {
    font-size: 16pt;
  }
  .doc-content h1,
  .doc-content h2,
  .doc-content h3,
  .doc-content h5 {
    break-after: avoid;
  }
  .doc-content img {
    max-height: 220mm;
    width: auto;
    object-fit: contain;
  }
  .image-zoom {
    break-inside: avoid;
  }
  .doc-content .image-zoom {
    border: 0;
    padding: 0;
  }
  .video-poster,
  .video-embed iframe {
    display: none;
  }
  .video-external {
    justify-content: flex-start;
  }
  .video-external::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
  }
  .doc-content a {
    color: #000 !important;
  }
  .document-footer {
    color: #555;
    font-size: 8pt;
  }
  pre {
    break-inside: avoid;
  }
}
