:root {
  --syntax-background: #050607;
  --syntax-text: #f8fafc;
  --syntax-accent: #47d8ca;
  --syntax-silver: #999ea7;
  --syntax-border: rgba(185, 192, 203, 0.17);

  --header-height: 60px;
  --sidebar-width: 300px;
  --toc-width: 220px;
  --article-width: 760px;
  --shell-width: 1480px;

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --page-bg: var(--syntax-background);
  --surface: #0a0c0f;
  --surface-raised: #101318;
  --surface-hover: #15191f;
  --header-bg: rgba(5, 6, 7, 0.9);
  --sidebar-bg: #07090b;
  --text-primary: var(--syntax-text);
  --text-secondary: #c3c8d0;
  --text-muted: var(--syntax-silver);
  --accent: var(--syntax-accent);
  --accent-link: #65e4d8;
  --accent-soft: rgba(71, 216, 202, 0.1);
  --accent-border: rgba(71, 216, 202, 0.38);
  --border: var(--syntax-border);
  --border-strong: rgba(185, 192, 203, 0.28);
  --warning: #f4c66a;
  --warning-soft: rgba(244, 198, 106, 0.1);
  --warning-border: rgba(244, 198, 106, 0.38);
  --code-bg: #11151a;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 24px 72px rgba(0, 0, 0, 0.42);
  --radius-sm: 7px;
  --radius-md: 11px;
  --radius-lg: 15px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme] {
  color-scheme: dark;
  background: var(--page-bg);
}

html[data-theme="dark"] {
  --page-bg: var(--syntax-background);
  --surface: #0a0c0f;
  --surface-raised: #101318;
  --surface-hover: #15191f;
  --header-bg: rgba(5, 6, 7, 0.9);
  --sidebar-bg: #07090b;
  --text-primary: var(--syntax-text);
  --text-secondary: #c3c8d0;
  --text-muted: var(--syntax-silver);
  --accent: var(--syntax-accent);
  --accent-link: #65e4d8;
  --accent-soft: rgba(71, 216, 202, 0.1);
  --accent-border: rgba(71, 216, 202, 0.38);
  --border: var(--syntax-border);
  --border-strong: rgba(185, 192, 203, 0.28);
  --code-bg: #11151a;
}

html[data-theme="light"] {
  color-scheme: light;
  --page-bg: #f6f8fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-hover: #edf1f4;
  --header-bg: rgba(255, 255, 255, 0.91);
  --sidebar-bg: #fbfcfd;
  --text-primary: #15181d;
  --text-secondary: #414750;
  --text-muted: #69717c;
  --accent: #15998e;
  --accent-link: #087f76;
  --accent-soft: rgba(21, 153, 142, 0.09);
  --accent-border: rgba(21, 153, 142, 0.34);
  --border: rgba(35, 45, 57, 0.14);
  --border-strong: rgba(35, 45, 57, 0.24);
  --warning: #9a6700;
  --warning-soft: rgba(154, 103, 0, 0.08);
  --warning-border: rgba(154, 103, 0, 0.3);
  --code-bg: #edf1f4;
  --shadow-sm: 0 8px 24px rgba(31, 41, 55, 0.08);
  --shadow-lg: 0 24px 72px rgba(31, 41, 55, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 52% 0, rgba(71, 216, 202, 0.035), transparent 30rem),
    var(--page-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

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

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

button {
  border: 0;
}

::selection {
  background: rgba(71, 216, 202, 0.28);
  color: var(--text-primary);
}

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

#main-content:focus-visible {
  outline: none;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 12px;
  padding: 9px 14px;
  transform: translateY(calc(-100% - 20px));
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 160ms var(--ease-out);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}

.header-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--shell-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  gap: 10px;
}

.menu-button,
.theme-toggle {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

.menu-button {
  display: none;
}

.menu-button:hover,
.theme-toggle:hover {
  border-color: var(--border);
  background: var(--surface-hover);
  color: var(--text-primary);
}

.menu-button svg,
.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 1.02rem;
  font-weight: 780;
  letter-spacing: -0.015em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.header-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.header-link:hover,
.header-link[aria-current="page"] {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.theme-toggle {
  margin-left: 3px;
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, var(--article-width)) var(--toc-width);
  column-gap: clamp(28px, 3.2vw, 48px);
  width: 100%;
  max-width: var(--shell-width);
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: 0 24px;
}

.sidebar {
  position: fixed;
  z-index: 80;
  top: var(--header-height);
  bottom: 0;
  left: max(0px, calc((100vw - var(--shell-width)) / 2 + 24px));
  grid-column: 1;
  width: var(--sidebar-width);
  border-right: 1px solid var(--border);
  background: var(--sidebar-bg);
}

.sidebar-scroll {
  height: 100%;
  padding: 22px 18px 44px 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 8px;
}

.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--border-strong);
  background-clip: padding-box;
}

.menu-home {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 650;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.menu-home:hover,
.menu-home[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-link);
}

.menu-category {
  margin-top: 18px;
}

.menu-category:first-of-type {
  margin-top: 12px;
}

.menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 3px;
}

.menu-link {
  display: block;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 730;
  line-height: 1.35;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.menu-link:hover,
.menu-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-link);
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.menu-toggle:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.menu-toggle svg {
  width: 15px;
  height: 15px;
  transform: rotate(0deg);
  transition: transform 180ms var(--ease-out);
}

.menu-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.submenu {
  margin: 4px 0 0 10px;
  padding: 2px 0 3px 11px;
  border-left: 1px solid var(--border);
}

.submenu[hidden] {
  display: none;
}

.submenu-link {
  display: block;
  margin: 1px 0;
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.81rem;
  font-weight: 520;
  line-height: 1.42;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.submenu-link:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.submenu-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-link);
  font-weight: 650;
}

.main-column {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

.article-wrap {
  width: 100%;
  max-width: var(--article-width);
  padding: 48px 0 96px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 0 0 21px;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 580;
  line-height: 1.4;
  list-style: none;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--border-strong);
  font-weight: 400;
}

.breadcrumb-item a {
  border-radius: 4px;
  transition: color 150ms ease;
}

.breadcrumb-item a:hover {
  color: var(--accent-link);
}

.breadcrumb-item[aria-current="page"] {
  color: var(--text-secondary);
}

.doc-title {
  max-width: 18ch;
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1.07;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 66ch;
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 1.09rem;
  line-height: 1.72;
}

.doc-section {
  margin-top: 46px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

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

.doc-section h2,
.doc-section h3,
.doc-section h4 {
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.25;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.doc-section h2 {
  margin: 44px 0 15px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
  font-size: 1.62rem;
  font-weight: 770;
}

.doc-section h3 {
  margin: 32px 0 12px;
  font-size: 1.26rem;
  font-weight: 740;
}

.doc-section h4 {
  margin: 26px 0 10px;
  font-size: 1.05rem;
  font-weight: 720;
}

.doc-section p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

.doc-section strong {
  color: var(--text-primary);
  font-weight: 720;
}

.doc-section img,
.doc-section video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.doc-section code {
  padding: 0.16em 0.38em;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--code-bg);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.doc-section pre {
  max-width: 100%;
  margin: 20px 0;
  padding: 18px 20px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--code-bg);
  color: var(--text-primary);
  line-height: 1.55;
  scrollbar-color: var(--border-strong) transparent;
}

.doc-section pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.86rem;
}

.doc-section blockquote {
  margin: 22px 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--accent);
  color: var(--text-secondary);
}

.doc-section blockquote > :last-child {
  margin-bottom: 0;
}

.doc-section table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.doc-section th {
  background: var(--surface-raised);
  color: var(--text-primary);
  font-weight: 680;
}

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

.doc-section hr {
  height: 1px;
  margin: 40px 0;
  border: 0;
  background: var(--border);
}

.heading-anchor {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  border-radius: 4px;
  color: var(--accent-link);
  font-size: 0.72em;
  opacity: 0;
  vertical-align: 0.08em;
  transition: opacity 150ms ease;
}

h2:hover .heading-anchor,
h3:hover .heading-anchor,
h4:hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.category-card {
  position: relative;
  display: flex;
  min-height: 144px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(71, 216, 202, 0.045), transparent 52%),
    var(--surface);
  box-shadow: 0 0 0 0 transparent;
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.category-card::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  color: var(--text-muted);
  content: "";
  transform: rotate(45deg);
  transition:
    right 180ms var(--ease-out),
    color 180ms ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  background-color: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

.category-card:hover::after {
  right: 15px;
  color: var(--accent-link);
}

.category-card-link {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.category-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.category-card-title {
  display: block;
  max-width: calc(100% - 24px);
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.35;
}

.category-card-copy {
  display: block;
  margin: 10px 0 0;
  padding-right: 18px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.notice {
  margin: 24px 0;
  padding: 17px 18px;
  border: 1px solid var(--accent-border);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--text-secondary);
}

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

.notice-title {
  display: block;
  margin: 0 0 5px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 760;
  letter-spacing: 0.015em;
}

.notice-warning {
  border-color: var(--warning-border);
  background: var(--warning-soft);
}

.notice-warning .notice-title {
  color: var(--warning);
}

.inline-link {
  color: var(--accent-link);
  font-weight: 620;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color 150ms ease,
    text-decoration-color 150ms ease;
}

.inline-link:hover {
  color: var(--accent-link);
  text-decoration-color: currentColor;
}

.loader-panel {
  margin: 24px 0 8px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
  box-shadow: var(--shadow-sm);
}

.loader-panel-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 20px 8px;
}

.loader-panel-intro strong {
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
}

.loader-panel-intro p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.loader-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  padding: 11px 20px 20px;
}

.loader-action {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 740;
  transition:
    transform 150ms var(--ease-out),
    border-color 150ms ease,
    background-color 150ms ease;
}

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

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

.loader-action-primary {
  background: var(--accent);
  color: #04110f;
}

.loader-action-primary:hover {
  background: var(--accent-link);
}

.loader-action[hidden],
.loader-frame-shell[hidden] {
  display: none;
}

.loader-panel-status {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.loader-frame-shell {
  margin: 0 12px 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #ffffff;
}

.loader-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-hover);
  color: var(--text-primary);
  font-size: 0.76rem;
}

.loader-frame-header span {
  color: var(--text-muted);
}

.loader-frame {
  display: block;
  width: 100%;
  height: 690px;
  border: 0;
  background: #ffffff;
}

.loader-download-frame {
  display: none;
}

.loader-panel-footnote {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.loader-unavailable {
  margin-bottom: 8px;
}

.doc-list {
  margin: 15px 0 20px;
  padding-left: 1.4rem;
  color: var(--text-secondary);
}

.doc-list li {
  margin: 0.42rem 0;
  padding-left: 0.2rem;
}

.doc-list li::marker {
  color: var(--accent);
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pager-link {
  display: flex;
  min-height: 86px;
  flex-direction: column;
  justify-content: center;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 660;
  line-height: 1.35;
  transition:
    border-color 170ms ease,
    background-color 170ms ease,
    transform 170ms var(--ease-out);
}

.pager-link:last-child {
  align-items: flex-end;
  text-align: right;
}

.pager-link:only-child {
  grid-column: 2;
}

.pager-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent-border);
  background: var(--surface-raised);
}

.pager-label {
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc {
  grid-column: 3;
  min-width: 0;
  padding-top: 48px;
}

.toc-inner {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  max-height: calc(100vh - var(--header-height) - 60px);
  padding-left: 18px;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  scrollbar-width: none;
}

.toc-inner::-webkit-scrollbar {
  display: none;
}

.toc-title {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.toc-link {
  display: block;
  margin-left: -19px;
  padding: 5px 0 5px 18px;
  border-left: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 520;
  line-height: 1.42;
  transition:
    color 150ms ease,
    border-color 150ms ease;
}

.toc-link:hover {
  color: var(--text-primary);
}

.toc-link[aria-current="true"],
.toc-link.active {
  border-left-color: var(--accent);
  color: var(--accent-link);
  font-weight: 650;
}

.mobile-backdrop {
  position: fixed;
  z-index: 70;
  inset: var(--header-height) 0 0;
  display: none;
  visibility: hidden;
  border: 0;
  background: rgba(0, 0, 0, 0.56);
  opacity: 0;
  cursor: default;
  transition:
    opacity 200ms ease,
    visibility 200ms step-end;
}

.external-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.82em;
  height: 0.82em;
  margin-left: 0.18em;
  vertical-align: -0.04em;
  stroke: currentColor;
  stroke-width: 1.8;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1150px) and (min-width: 997px) {
  .layout {
    column-gap: 18px;
    padding-inline: 12px;
  }

  .sidebar {
    left: 0;
  }

  .sidebar-scroll {
    padding-left: 12px;
  }

  .toc-inner {
    padding-left: 13px;
  }

  .toc-link {
    margin-left: -14px;
    padding-left: 13px;
  }
}

@media (max-width: 996px) {
  body.mobile-open {
    overflow: hidden;
  }

  .header-inner {
    max-width: none;
    padding-inline: 15px;
  }

  .menu-button {
    display: inline-grid;
  }

  .layout {
    display: block;
    max-width: none;
    padding: 0;
  }

  .sidebar {
    z-index: 90;
    left: 0;
    width: min(320px, calc(100vw - 46px));
    border-right-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
    transform: translateX(calc(-100% - 14px));
    visibility: hidden;
    transition:
      transform 220ms var(--ease-out),
      visibility 220ms step-end;
  }

  .sidebar-scroll {
    padding: 18px 14px 42px;
  }

  .mobile-open .sidebar,
  .sidebar.mobile-open {
    transform: translateX(0);
    visibility: visible;
    transition:
      transform 220ms var(--ease-out),
      visibility 0ms step-start;
  }

  .mobile-backdrop {
    display: block;
  }

  .mobile-open .mobile-backdrop,
  .mobile-backdrop.mobile-open {
    visibility: visible;
    opacity: 1;
    transition:
      opacity 200ms ease,
      visibility 0ms step-start;
  }

  .main-column {
    width: 100%;
  }

  .article-wrap {
    max-width: calc(var(--article-width) + 48px);
    margin: 0 auto;
    padding: 38px 24px 76px;
  }

  .toc {
    display: none;
  }
}

@media (max-width: 700px) {
  .header-link {
    padding-inline: 8px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 126px;
  }
}

@media (max-width: 560px) {
  .header-links .header-link {
    display: none;
  }

  .header-inner {
    padding-inline: 10px;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .article-wrap {
    padding: 31px 18px 64px;
  }

  .breadcrumbs {
    margin-bottom: 17px;
    font-size: 0.75rem;
  }

  .doc-title {
    font-size: clamp(2rem, 10vw, 2.5rem);
  }

  .lead {
    margin-top: 16px;
    font-size: 1rem;
  }

  .doc-section {
    margin-top: 38px;
  }

  .doc-section h2 {
    font-size: 1.42rem;
  }

  .doc-section pre {
    margin-inline: -4px;
    padding: 15px;
  }

  .loader-panel-intro,
  .loader-frame-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .loader-panel-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .loader-action {
    width: 100%;
  }

  .loader-frame-shell {
    margin-inline: 8px;
  }

  .loader-frame {
    height: 610px;
  }

  .pager {
    grid-template-columns: 1fr;
    margin-top: 50px;
  }

  .pager-link:only-child {
    grid-column: 1;
  }

  .pager-link:last-child {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 390px) {
  .brand-name {
    max-width: 128px;
  }

  .article-wrap {
    padding-inline: 15px;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: rgba(185, 192, 203, 0.4);
    --border-strong: rgba(185, 192, 203, 0.62);
  }

  html[data-theme="light"] {
    --border: rgba(35, 45, 57, 0.32);
    --border-strong: rgba(35, 45, 57, 0.52);
  }

  .menu-link,
  .submenu-link,
  .toc-link,
  .header-link {
    font-weight: 650;
  }
}

@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;
  }

  .category-card:hover,
  .pager-link:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .sidebar,
  .toc,
  .mobile-backdrop,
  .pager {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #111111;
  }

  .layout,
  .main-column,
  .article-wrap {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .doc-title,
  .doc-section h2,
  .doc-section h3,
  .doc-section h4,
  .doc-section strong {
    color: #111111;
  }

  .lead,
  .doc-section p,
  .doc-list,
  .notice {
    color: #333333;
  }
}
