* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  --bg: #fff;
  --panel: #f6f8f9;
  --text: #25303a;
  --muted: #64717d;
  --line: #e3e8eb;
  --accent: #087a64;
  --on-accent: #fff;
  --soft: #eaf5f0;
  --code: #17252d;
  --code-text: #e3edf1;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #12171c;
  --panel: #1b232b;
  --text: #e2e9ef;
  --muted: #a0aeb9;
  --line: #303c46;
  --accent: #7ad8b9;
  --on-accent: #10291f;
  --soft: #1b362e;
  --code: #0c1217;
  --code-text: #e3edf1;
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.8 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
a:hover {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
}
dialog {
  color: var(--text);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 15px;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 20px;
  border-radius: 5px;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 45px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  font: italic bold 25px Georgia;
}
.brand-divider {
  height: 18px;
  width: 1px;
  background: var(--line);
  margin: 0 4px;
}
.brand [data-label] {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.top-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  align-self: stretch;
  font-size: 13px;
}
.top-nav a {
  display: flex;
  align-items: center;
}
.top-nav .active {
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
}
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-tools > button:not(.search-trigger) {
  background: none;
  border: 0;
  padding: 5px;
  font-size: 12px;
  white-space: nowrap;
}
.search-trigger {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 212px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}
.search-trigger > span:first-child {
  font-size: 20px;
  line-height: 1;
}
.search-trigger kbd {
  font: 10px/1.6 monospace;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
  margin-left: auto;
}
.github-link {
  font-size: 11px;
  white-space: nowrap;
}
#theme-toggle {
  font-size: 19px !important;
}
#menu-toggle {
  display: none;
}
.layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr) 205px;
  max-width: 1536px;
  margin: auto;
  min-height: calc(100vh - 76px);
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 29px 20px 25px;
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px 29px;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
}
.sidebar-top > span {
  font-size: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0 5px;
  border-radius: 4px;
  font-weight: 400;
}
.sidebar section {
  margin-bottom: 23px;
}
.sidebar h2 {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin: 0 12px 8px;
  letter-spacing: 0.4px;
}
.sidebar section > a {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 7px 11px;
  border-radius: 5px;
  margin: 2px 0;
  font-size: 12px;
  line-height: 1.6;
  min-width: 0;
}
.sidebar section > a > span:last-of-type {
  min-width: 0;
  overflow-wrap: anywhere;
}
.nav-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.45;
  flex: none;
}
.sidebar a[aria-current="page"] {
  color: var(--accent);
  background: var(--soft);
  font-weight: 600;
}
.sidebar a[aria-current="page"] .nav-dot {
  background: var(--accent);
  opacity: 1;
}
.sidebar small {
  font-size: 9px;
  color: var(--accent);
  margin-left: auto;
  white-space: nowrap;
}
.sidebar-foot {
  border-top: 1px solid var(--line);
  margin: 28px 10px 0;
  padding-top: 18px;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-foot a {
  display: block;
  margin: 5px 0;
}
.home,
.article {
  padding: 52px 48px 28px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.home-eyebrow,
.eyebrow,
.article-eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--accent);
  font-weight: 700;
}
.home-eyebrow > span {
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 8px;
}
.home-hero h1 {
  font-size: clamp(30px, 3vw, 43px);
  letter-spacing: -1.8px;
  line-height: 1.35;
  margin: 20px 0 16px;
  font-weight: 750;
}
.home-hero > p {
  font-size: 15px;
  max-width: 550px;
  color: var(--muted);
  line-height: 1.95;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 12px;
  margin: 27px 0 37px;
}
.primary {
  display: flex;
  gap: 27px;
  padding: 9px 18px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 6px;
  font-weight: 600;
}
.primary:hover {
  color: var(--on-accent);
  filter: brightness(0.95);
}
.learning-path {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.path-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.path-heading h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin: 4px 0 20px;
}
.path-caption {
  font-size: 9px;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.path-steps > a {
  display: flex;
  gap: 10px;
  align-items: start;
  min-width: 0;
}
.step-number {
  font: 11px/1.7 monospace;
  flex: none;
  color: var(--accent);
  padding: 3px 5px;
  background: var(--soft);
  border-radius: 4px;
}
.path-steps b {
  font-size: 11px;
  display: block;
  font-weight: 600;
}
.path-steps b > span {
  color: var(--accent);
  margin-left: 4px;
}
.path-steps p {
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  margin: 35px 0 18px;
}
.section-heading h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 4px 0 0;
}
.section-heading > span {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.topic-card {
  padding: 22px 22px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.topic-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--accent);
  font: 19px monospace;
}
.topic-card h3 {
  font-size: 15px;
  margin: 14px 0 5px;
}
.topic-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 20px;
}
.card-bottom b {
  font-size: 16px;
  color: var(--accent);
}
.route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding-top: 28px;
}
.route-grid h2 {
  font-size: 17px;
  margin: 6px 0 8px;
}
.route-grid p {
  font-size: 12px;
  color: var(--muted);
}
.route-grid a {
  display: block;
  color: var(--accent);
  font-size: 12px;
  margin: 7px 0;
}
.route-grid a:after {
  content: " →";
  float: right;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 10px;
}
.toc {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 43px 22px 25px 8px;
  font-size: 11px;
}
.toc-label {
  display: block;
  font-size: 11px;
  margin-bottom: 15px;
  font-weight: 600;
}
.toc nav a {
  display: block;
  border-left: 1px solid var(--line);
  padding: 6px 0 6px 13px;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.toc nav a:hover,
.toc nav a.selected {
  color: var(--accent);
  border-color: var(--accent);
}
.toc-help {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
  color: var(--muted);
}
.toc-help b {
  color: var(--text);
  font-size: 11px;
}
.toc-help a {
  color: var(--accent);
}
.article {
  padding-top: 30px;
  max-width: 900px;
  line-height: 1.95;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 29px;
}
.article h1 {
  font-size: 35px;
  line-height: 1.35;
  letter-spacing: -1px;
  margin: 8px 0 18px;
}
.lead {
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
  margin: 0;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 10px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 25px;
}
.article-meta a {
  color: var(--accent);
}
.doc-body {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.doc-body h2 {
  font-size: 21px;
  line-height: 1.6;
  margin: 36px 0 15px;
  letter-spacing: -0.4px;
}
.doc-body h3 {
  font-size: 16px;
  margin: 26px 0 10px;
  line-height: 1.6;
}
.doc-body h4 {
  font-size: 14px;
  margin: 24px 0 8px;
}
.doc-body p {
  margin: 14px 0;
}
.doc-body ul,
.doc-body ol {
  padding-left: 24px;
  margin: 15px 0;
}
.doc-body li {
  padding-left: 3px;
  margin: 6px 0;
}
.doc-body li p {
  margin: 6px 0;
}
.doc-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 30%, transparent);
  text-underline-offset: 3px;
}
.doc-body code {
  font:
    12px/1.8 Consolas,
    "SFMono-Regular",
    monospace;
  padding: 2px 5px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.doc-body pre {
  background: var(--code);
  color: var(--code-text);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 42px 18px 18px;
  position: relative;
  overflow: auto;
  font:
    12px/1.9 Consolas,
    monospace;
  margin: 20px 0;
  tab-size: 2;
}
.doc-body pre code {
  color: inherit;
  background: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
  line-height: inherit;
}
.code-copy {
  position: absolute;
  top: 9px;
  right: 10px;
  border: 1px solid #71838d66;
  background: var(--code);
  color: var(--code-text);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
}
.doc-body figure {
  margin: 26px 0;
  min-width: 0;
  max-width: 100%;
}
.doc-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: block;
}
.image-zoom {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.doc-body figcaption {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  margin-top: 10px;
}
.doc-body blockquote,
.doc-callout {
  padding: 16px 20px;
  margin: 22px 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  font-size: 13px;
}
.doc-body blockquote p:first-child,
.doc-callout p:first-child {
  margin-top: 0;
}
.doc-body blockquote p:last-child,
.doc-callout p:last-child {
  margin-bottom: 0;
}
.doc-callout-title {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 7px;
}
.doc-callout.warning {
  border-left-color: #b57c22;
}
.doc-callout.warning .doc-callout-title {
  color: var(--text);
}
.doc-table-wrap {
  overflow: auto;
  max-width: 100%;
  min-width: 0;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  scrollbar-width: thin;
}
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.75;
}
.doc-body th,
.doc-body td {
  padding: 12px 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  min-width: 100px;
}
.doc-body th {
  background: var(--panel);
  font-weight: 600;
  white-space: nowrap;
}
.doc-body tr:last-child td {
  border-bottom: 0;
}
.doc-body td code {
  font-size: 11px;
}
.doc-body td p {
  margin: 0;
}
.doc-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
.doc-body details {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 15px;
  margin: 20px 0;
}
.doc-body summary {
  cursor: pointer;
  font-weight: 600;
}
.doc-body .doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.doc-body .doc-card {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 7px;
}
.article-end {
  display: flex;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding-top: 22px;
}
.article-end a {
  color: var(--accent);
}
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 25px 0 15px;
}
.page-nav a {
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 6px;
  font-size: 12px;
}
.page-nav a:last-child {
  text-align: right;
}
.page-nav a:hover {
  border-color: var(--accent);
}
.page-nav small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.page-nav b {
  font-weight: 600;
}
dialog {
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 80px #0003;
}
dialog::backdrop {
  background: #16222c88;
  backdrop-filter: blur(4px);
}
#search-dialog {
  width: min(650px, calc(100% - 32px));
  max-height: 78vh;
  margin: 12vh auto 0;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 18px;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
#search-input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.search-input-wrap button {
  font-size: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  padding: 3px 7px;
}
.search-results {
  padding: 8px;
  overflow: auto;
  max-height: 53vh;
  overscroll-behavior: contain;
}
.search-count {
  font-size: 10px;
  padding: 8px 15px;
  color: var(--muted);
}
.search-result {
  display: block;
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.search-result:hover,
.search-result.selected {
  background: var(--soft);
  border-color: var(--line);
}
.search-result b {
  font-size: 13px;
  display: block;
}
.search-result b span {
  float: right;
  color: var(--muted);
}
.search-result small {
  display: block;
  color: var(--accent);
  font-size: 10px;
  margin: 3px 0;
}
.search-result p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.search-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 9px;
  border-top: 1px solid var(--line);
}
.empty {
  padding: 30px;
  color: var(--muted);
  font-size: 13px;
}
#image-dialog {
  width: min(1350px, calc(100% - 40px));
  max-height: 90vh;
  padding: 36px 20px 15px;
  overscroll-behavior: contain;
}
#image-dialog > button {
  position: absolute;
  right: 10px;
  top: 4px;
  font-size: 24px;
  background: none;
  border: 0;
  color: var(--text);
}
#image-dialog img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  margin: auto;
}
#image-dialog p {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 0;
}
.toast {
  display: none;
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 7px;
  z-index: 100;
  font-size: 12px;
  max-width: 90vw;
}
.toast.visible {
  display: block;
}
.noscript {
  padding: 30px;
}
.nav-backdrop {
  display: none;
}
@media (min-width: 1500px) {
  .home,
  .article {
    padding-left: 65px;
    padding-right: 65px;
  }
  .home {
    padding-top: 65px;
  }
  .topic-card {
    padding: 25px;
  }
}
@media (max-width: 1250px) {
  .site-header {
    gap: 28px;
  }
  .header-tools {
    gap: 12px;
  }
  .layout {
    grid-template-columns: 220px minmax(0, 1fr) 180px;
  }
  .home,
  .article {
    padding-left: 32px;
    padding-right: 32px;
  }
  .search-trigger {
    width: 180px;
  }
  .brand-divider,
  .brand [data-label] {
    display: none;
  }
  .path-steps {
    gap: 10px;
  }
  .path-steps > a {
    gap: 7px;
  }
  .path-caption {
    display: none;
  }
  .toc {
    padding-right: 15px;
  }
  .learning-path {
    padding: 20px;
  }
}
@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
  .article {
    max-width: 850px;
  }
  .top-nav {
    gap: 20px;
  }
  .github-link {
    display: none;
  }
  .home-hero h1 {
    font-size: 36px;
  }
}
@media (max-width: 800px) {
  .site-header {
    height: 65px;
    padding: 0 20px;
  }
  .top-nav {
    display: none;
  }
  .sidebar {
    top: 65px;
    height: calc(100vh - 65px);
    padding: 25px 12px;
  }
  .layout {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .home,
  .article {
    padding: 34px 26px;
  }
  .home-hero h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .home-hero > p {
    font-size: 14px;
  }
  .path-steps {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .path-heading h2 {
    font-size: 17px;
  }
  .path-steps b {
    font-size: 12px;
  }
  .path-steps p {
    font-size: 11px;
  }
  .path-steps > a {
    gap: 12px;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .section-heading > span {
    display: none;
  }
  .route-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .article h1 {
    font-size: 30px;
  }
  .article .lead {
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  .site-header {
    height: 62px;
    padding: 0 16px;
    gap: 8px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .logo {
    width: 27px;
    height: 27px;
  }
  .header-tools {
    gap: 10px;
  }
  .header-tools > button:not(.search-trigger) {
    font-size: 11px;
    padding: 4px;
  }
  .search-trigger {
    width: 27px;
    padding: 0;
    background: none;
    border: 0;
  }
  .search-trigger > span:first-child {
    font-size: 26px;
  }
  .search-trigger > span:nth-child(2),
  .search-trigger kbd {
    display: none;
  }
  #menu-toggle {
    display: block;
  }
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .sidebar.open {
    display: block;
    position: fixed;
    top: 62px;
    left: 0;
    bottom: 0;
    width: min(310px, 85vw);
    height: calc(100dvh - 62px);
    background: var(--bg);
    z-index: 40;
    padding: 25px;
  }
  .nav-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 62px 0 0;
    background: #16222c66;
    border: 0;
    z-index: 30;
  }
  .menu-open {
    overflow: hidden;
  }
  .home,
  .article {
    padding: 32px 22px;
  }
  .home-eyebrow {
    font-size: 9px;
  }
  .home-hero h1 {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .home-hero > p {
    font-size: 14px;
  }
  .hero-actions {
    gap: 20px;
    font-size: 11px;
    margin-bottom: 28px;
  }
  .primary {
    padding: 9px 15px;
    gap: 22px;
  }
  .learning-path {
    padding: 19px;
  }
  .path-heading h2 {
    font-size: 17px;
    margin-top: 7px;
    margin-bottom: 22px;
  }
  .section-heading {
    margin-top: 28px;
  }
  .topic-grid {
    gap: 12px;
  }
  .topic-card {
    padding: 19px;
  }
  .article h1 {
    font-size: 30px;
  }
  .breadcrumb {
    margin-bottom: 25px;
    font-size: 10px;
  }
  .doc-body h2 {
    font-size: 19px;
  }
  .doc-body h3 {
    font-size: 16px;
  }
  .doc-body {
    font-size: 13px;
  }
  .doc-body blockquote,
  .doc-callout {
    padding: 14px 16px;
    font-size: 12px;
  }
  .doc-body .doc-grid {
    grid-template-columns: 1fr;
  }
  .page-nav {
    gap: 10px;
  }
  .page-nav a {
    padding: 13px;
    font-size: 11px;
  }
  .article-end {
    gap: 10px;
    font-size: 10px;
  }
  .search-footer > span:last-child {
    display: none;
  }
  footer {
    font-size: 9px;
    flex-wrap: wrap;
  }
  #search-dialog {
    margin-top: 7vh;
  }
  .home-eyebrow > span {
    display: none;
  }
  .doc-body table {
    font-size: 11px;
  }
  .doc-body th,
  .doc-body td {
    padding: 10px;
    min-width: 95px;
  }
  .doc-body pre {
    font-size: 11px;
  }
  .doc-body code {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .topic-card {
    transition: none;
  }
  .topic-card:hover {
    transform: none;
  }
}

.home-tutorials {
  margin-bottom: 48px;
}
.topic-grid.tutorial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 650px) {
  .topic-grid.tutorial-grid {
    grid-template-columns: 1fr;
  }
}

/* Practical tutorial diagrams use text so they remain readable and searchable. */
.doc-body .doc-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 28px 0;
  padding: 0;
}
.doc-body .doc-workflow li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  overflow-wrap: anywhere;
}
.doc-workflow span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.doc-workflow strong {
  font-size: 14px;
}
.doc-workflow small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 1100px) {
  .doc-body .doc-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .doc-body .doc-workflow li {
    padding: 12px;
  }
}

/* Installation: choose a route, then follow four verifiable steps. */
.install-guide,
.install-guide > *,
.install-route-button,
.install-reference-body {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.doc-body .install-intro {
  color: var(--muted);
  margin-top: 0;
}
.install-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.install-route-button {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 21px;
  text-align: left;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  line-height: 1.65;
}
.install-route-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.install-route-button:hover {
  border-color: var(--accent);
}
.install-route-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
}
.install-route-tag {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.5px;
}
.install-route-button small {
  color: var(--muted);
  font-size: 12px;
  margin-top: auto;
}
.install-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 25px 0 42px;
}
.doc-body .install-roadmap a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 12px;
  border-top: 2px solid var(--line);
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
  text-decoration: none;
}
.doc-body .install-roadmap a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.install-roadmap span {
  color: var(--accent);
  font:
    12px/1.5 ui-monospace,
    monospace;
}
.install-platform-select {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  font-size: 13px;
}
.install-platform-select label {
  color: var(--muted);
}
.install-platform-select select {
  padding: 8px 30px 8px 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  font: inherit;
}
.install-platform-select select:focus-visible,
.install-reference summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.doc-body a.install-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 18px;
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.doc-body a.install-download:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.doc-body .install-note {
  font-size: 13px;
  color: var(--muted);
}
.doc-body .install-reference {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 14px 0;
}
.install-reference > summary {
  padding: 13px 17px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}
.install-reference > summary::marker {
  color: var(--accent);
}
.install-reference[open] > summary {
  border-bottom: 1px solid var(--line);
}
.install-reference-body,
.install-reference > ol {
  margin: 0;
  padding: 6px 18px 15px;
}
.install-reference > ol {
  padding: 13px 20px 13px 38px;
}
.doc-body .install-reference-body h3 {
  font-size: 16px;
  margin-top: 17px;
}
.doc-body .install-check {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin: 22px 0 36px;
  padding: 14px 17px;
  border-left: 3px solid var(--accent);
  border-radius: 0 5px 5px 0;
  background: var(--soft);
  font-size: 13px;
}
.install-check > span:first-child {
  color: var(--accent);
  font-weight: 700;
}
.install-check strong {
  margin-right: 8px;
}
.doc-body .install-figure {
  margin: 24px 0;
}
.install-figure .image-zoom {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.doc-body .install-figure img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
}
.doc-body .install-figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.install-next {
  margin: 30px 0 40px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.install-next > strong {
  font-size: 17px;
}
.doc-body .install-next p {
  margin: 9px 0 15px;
  font-size: 13px;
}
.doc-body .install-next a {
  display: inline-block;
  margin: 4px 22px 4px 0;
  font-size: 13px;
}
@media (max-width: 600px) {
  .install-routes {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .install-route-button {
    padding: 17px;
    gap: 6px;
  }
  .install-roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 30px;
  }
  .install-roadmap a {
    padding-left: 5px;
  }
  .install-reference > summary {
    padding: 12px 14px;
  }
  .install-reference-body {
    padding-right: 14px;
    padding-left: 14px;
  }
}

/* Legacy content components retained during the documentation migration. */
:root {
  --bg-elev: var(--panel);
  --bg-elev2: var(--panel);
  --border: var(--line);
  --text-dim: var(--muted);
  --shadow-lg: 0 12px 35px #0002;
}
.doc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.doc-card {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 7px;
}
.doc-card h3:first-child {
  margin-top: 0;
}
.doc-video-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.doc-faq-card {
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: 7px;
  margin: 15px 0;
}
.doc-faq-q {
  font-weight: 600;
  margin-bottom: 8px;
}
.doc-faq-a {
  font-size: 13px;
  color: var(--muted);
}
.doc-callout-tip {
  background: var(--soft);
}
.doc-callout-warn {
  border-left-color: #b57c22;
}
.doc-step-box {
  display: flex;
  gap: 16px;
  min-width: 0;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.doc-step-num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
}
.doc-step-content {
  min-width: 0;
  max-width: 100%;
  flex: 1;
}
.doc-step-content h3:first-child {
  margin-top: 0;
}
.doc-badge-pill {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 7px;
  background: var(--soft);
  color: var(--accent);
  font-size: 10px;
}
.doc-body video {
  max-width: 100%;
  height: auto;
}
@media (max-width: 800px) {
  .doc-grid-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .doc-step-box {
    padding: 15px;
    gap: 10px;
  }
}
