:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --ink: #183d33;
  --muted: #626960;
  --gold: #9a7b43;
  --rule: #dedbd0;
  --serif:
    Georgia, "Bitstream Charter", "Noto Serif CJK SC", "Songti SC", serif;
  --sans:
    "Helvetica Neue", Arial, "Noto Sans CJK SC", "PingFang SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
#main,
.introduction {
  scroll-margin-top: 106px;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0 0 1.3em;
}
h1,
h2,
h3 {
  margin: 0;
}
button {
  color: inherit;
}
button:disabled {
  cursor: wait;
}
:focus-visible {
  outline: 2px solid #9a7534;
  outline-offset: 5px;
}
::selection {
  color: var(--ink);
  background: #e7d8ae;
}
.js-only {
  display: none !important;
}
.enhanced .js-only {
  display: inline-flex !important;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 20;
  background: var(--ink);
  color: white;
  padding: 12px 22px;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 262px;
  z-index: 5;
  padding: 42px 26px 26px;
  color: #f6f0de;
  background: linear-gradient(150deg, #1d463b, #102f29);
  display: flex;
  flex-direction: column;
  border-right: 1px solid #987f4f;
  overflow-y: auto;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  padding-left: 4px;
}
.brand img {
  flex: 0 0 auto;
}
.brand > span {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.brand small {
  display: block;
  font: 10px/1.5 var(--sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 9px;
  color: #ceb98a;
}
.sidebar nav,
.menu-dialog nav {
  margin-top: 53px;
}
.nav-label {
  margin: 30px 12px 12px;
  font-size: 10px;
  color: #c4b386;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.nav-label:first-child {
  margin-top: 0;
}
nav [data-chapter] {
  display: flex;
  align-items: baseline;
  gap: 13px;
  padding: 11px 13px;
  margin: 4px 0;
  color: #d5ded6;
  border-left: 2px solid transparent;
  font-size: 13px;
  transition:
    color 160ms ease,
    background 160ms ease;
}
nav [data-chapter]:hover {
  color: #fff9e8;
  background: #ffffff09;
}
nav [data-chapter][aria-current] {
  color: #fff4d7;
  background: #ffffff0b;
  border-color: #d0ad66;
}
.chapter-number {
  font-family: var(--mono);
  font-size: 10px;
  color: #b4b9a4;
}
nav [aria-current] .chapter-number {
  color: #d3b875;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 46px;
}
.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #bba26b;
  opacity: 0.8;
  font-size: 18px;
}
.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  background: #c2af7b40;
  flex: 1;
}
.languages {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 23px 0 22px;
  color: #c1c6ba;
  font-size: 12px;
}
.languages a:hover,
.languages [aria-current] {
  color: #fff4d6;
}
.languages [aria-current] {
  text-decoration: underline;
  text-decoration-color: #c7a665;
  text-underline-offset: 7px;
}
.languages > span {
  color: #637a6f;
}
.version {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  margin: 0;
  color: #b9c3b5;
  white-space: nowrap;
}
.version > span:last-child {
  margin-left: auto;
  font-size: 9px;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c5ae72;
}
.main-shell {
  margin-left: 262px;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 54px;
  background: #f8f6f0ed;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 3;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.breadcrumb > span:first-of-type {
  color: var(--ink);
}
.breadcrumb-divider {
  color: #c5bda7;
}
.topbar-actions {
  display: flex;
  gap: 27px;
  align-items: center;
}
.search-trigger {
  display: flex;
  gap: 11px;
  align-items: center;
  color: #666c63;
  background: transparent;
  border: 1px solid #dad7cc;
  padding: 7px 10px;
  font-size: 11px;
  border-radius: 3px;
}
.search-trigger:hover {
  border-color: #a89973;
  background: #f0eee5;
}
kbd {
  display: inline-grid;
  place-items: center;
  font: 10px/1.3 var(--mono);
  border: 1px solid #d6d2c3;
  border-radius: 2px;
  min-width: 19px;
  padding: 2px 4px;
  margin-left: 25px;
  color: #7d806e;
}
.repository-link {
  font-size: 12px;
  display: flex;
  gap: 8px;
}
.repository-link:hover,
.text-link:hover {
  color: var(--gold);
}
.mobile-logo,
.enhanced .mobile-menu {
  display: none !important;
}
main {
  max-width: 1270px;
  margin: 0 auto;
  padding: 0 64px;
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr;
  gap: 44px;
  align-items: center;
  padding: 67px 0 58px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  color: #826735;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
}
.eyebrow-line {
  width: 28px;
  height: 1px;
  background: #9c834b;
}
h1 {
  font: 400 clamp(46px, 4.3vw, 66px)/1.1 var(--serif);
  letter-spacing: -1.6px;
}
h1 em {
  display: block;
  font-weight: 400;
}
.hero-lead {
  margin: 29px 0 9px;
  font: 400 20px/1.5 var(--serif);
  color: #3e5144;
}
.hero-text {
  color: var(--muted);
  font-size: 14px;
  max-width: 430px;
  line-height: 1.85;
  margin-bottom: 26px;
}
.hero-actions {
  display: flex;
  gap: 23px;
  align-items: center;
  flex-wrap: wrap;
}
.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 13px 19px;
  background: var(--ink);
  color: #fff6e3;
  border: 1px solid var(--ink);
  font-size: 12px;
  border-radius: 2px;
  transition: background 160ms ease;
}
.button-primary:hover {
  background: #2b5545;
}
.button-primary span {
  font-size: 16px;
}
.text-link {
  font-size: 12px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.folio {
  position: relative;
  max-width: 328px;
  width: 100%;
  justify-self: end;
  padding: 9px;
  border: 1px solid #c7b788;
  background: #f0ecdf;
  box-shadow:
    10px 10px 0 -1px var(--paper),
    10px 10px 0 0 #ddd5bf;
  transform: rotate(2deg);
}
.folio-inner {
  border: 1px solid #d6c8a1;
  text-align: center;
  padding: 23px 15px 25px;
  background: radial-gradient(ellipse at 50% 30%, #faf7ee, #efebdf);
}
.folio-overline {
  color: #7f734f;
  font: 8px/1.5 var(--sans);
  letter-spacing: 2.1px;
  margin-bottom: 18px;
}
.mark-mat {
  width: min(100%, 217px);
  padding: 7px;
  border: 1px solid #d9cdaf;
  margin: 0 auto;
  background: repeating-conic-gradient(#d7cfb615 0% 25%, transparent 0% 50%) 0 /
    20px 20px;
}
.mark-mat img {
  display: block;
  width: 100%;
  height: auto;
}
.folio-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 68px;
  margin: 16px auto 11px;
  color: #9a7b43;
  font-size: 12px;
}
.folio-rule::before,
.folio-rule::after {
  content: "";
  height: 1px;
  background: #bda770;
  flex: 1;
}
.folio-name {
  font: 23px/1.3 var(--serif);
  letter-spacing: 0.3px;
  margin-bottom: 9px;
}
.folio-caption {
  font-size: 7px;
  letter-spacing: 1.7px;
  color: #7d775f;
  margin: 0;
}
.folio-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px double #ad9156;
}
.top-left {
  top: -5px;
  left: -5px;
  border-right: 0;
  border-bottom: 0;
}
.bottom-right {
  right: -5px;
  bottom: -5px;
  border-left: 0;
  border-top: 0;
}
.pillars {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 29px 0 27px;
}
.pillars > div {
  padding: 0 22px;
  border-left: 1px solid var(--rule);
  position: relative;
}
.pillars > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.pillars > div:last-child {
  padding-right: 0;
}
.pillar-number {
  color: #947b45;
  font: italic 12px var(--serif);
  display: block;
  margin-bottom: 9px;
}
.pillars h2 {
  font: 400 17px/1.35 var(--serif);
  margin-bottom: 7px;
}
.pillars p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}
.chapter {
  padding: 65px 0 46px;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 106px;
}
.chapter-heading {
  margin-bottom: 31px;
  max-width: 800px;
}
.chapter-heading .eyebrow {
  margin-bottom: 14px;
}
.section-number {
  font: 10px var(--mono);
  border: 1px solid #c7b688;
  padding: 4px 6px;
  letter-spacing: 0.7px;
}
.chapter h2 {
  font: 400 36px/1.25 var(--serif);
  letter-spacing: -0.6px;
}
.section-summary {
  color: var(--muted);
  margin: 15px 0 0;
  max-width: 720px;
}
.chapter-body > p {
  max-width: 840px;
}
.chapter-body p {
  color: #586357;
}
h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
.chapter-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #767b6d;
  font-size: 10px;
  margin-top: 20px;
}
.chapter-top:hover {
  color: var(--ink);
}
.callout {
  display: flex;
  gap: 17px;
  padding: 21px 24px;
  margin: 25px 0 32px;
  background: #eeede2;
  border-left: 2px solid #b59b5e;
}
.callout-mark {
  font-size: 24px;
  line-height: 1.2;
  color: #8e753d;
}
.callout h3 {
  font: 400 19px/1.3 var(--serif);
  margin-bottom: 8px;
}
.callout p {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}
code {
  font-family: var(--mono);
  font-size: 0.84em;
}
p code,
td code {
  background: #eeece2;
  border: 1px solid #e1ddd0;
  padding: 2px 5px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps > li {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  gap: 19px;
  padding: 16px 0 23px;
}
.step-number {
  font: italic 22px/1.5 var(--serif);
  color: #9c824d;
}
.step-content h3 {
  margin: 0 0 7px;
}
.step-content > p {
  margin-bottom: 16px;
  font-size: 14px;
}
.code-block {
  border: 1px solid #cdd1c2;
  border-radius: 3px;
  overflow: hidden;
  background: #1a362e;
  margin: 17px 0;
}
.code-header {
  height: 37px;
  background: #213e33;
  border-bottom: 1px solid #c0cca317;
  color: #c4cfbc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  font: 10px var(--mono);
  letter-spacing: 0.6px;
}
.copy-button {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d0d6c8;
  border: 0;
  background: transparent;
  padding: 5px 0 5px 10px;
  font: 10px var(--sans);
  letter-spacing: 0.4px;
}
.copy-button svg {
  width: 13px;
  height: 13px;
}
.copy-button:hover {
  color: #f5df9d;
}
pre {
  color: #f0e8cf;
  padding: 19px 23px;
  margin: 0;
  overflow-x: auto;
  line-height: 1.9;
  tab-size: 2;
}
pre code {
  font-size: 12px;
}
.aside-note {
  font-size: 12px !important;
  color: #707766 !important;
}
.prompt {
  border: 1px solid #d1c6a5;
  background: #f6f1e3;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  margin: 15px 0;
}
.prompt-mark {
  font: 46px/0.8 var(--serif);
  color: #ab8f4f;
  transform: translateY(8px);
}
.prompt p {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0;
  color: #254435;
  flex: 1;
}
.icon-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #8c835217;
  border-color: #8c83523d;
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 44px;
  margin: 34px 0;
}
.features > div {
  padding-left: 33px;
  position: relative;
}
.feature-number {
  position: absolute;
  left: 0;
  top: 3px;
  font: italic 14px/1.5 var(--serif);
  color: #977b3b;
}
.features h3 {
  margin-bottom: 9px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
}
.features p {
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
}
.subheading {
  font-family: var(--serif);
  font-size: 22px;
  margin: 37px 0 14px;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 25px;
  border-top: 1px solid #b9b69f;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  color: #4d594c;
  font-size: 10px;
  letter-spacing: 0.5px;
  font-weight: 500;
  padding: 12px 14px;
  background: #edeee4;
  white-space: nowrap;
}
td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--rule);
  color: #5b6355;
  vertical-align: top;
}
td:first-child {
  color: var(--ink);
  width: 45%;
}
td code {
  font-size: 11px;
  line-height: 1.8;
}
.prompts {
  display: grid;
  gap: 13px;
  margin-top: 31px;
}
.prompts h3 {
  font-size: 12px;
  color: #7a745d;
  font-weight: 400;
}
.prompts .prompt {
  margin-top: 8px;
}
details {
  border-bottom: 1px solid var(--rule);
}
.tools,
.faq {
  border-top: 1px solid #bbb9a6;
  margin: 26px 0;
}
summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  min-height: 65px;
  padding: 15px 14px;
}
summary::-webkit-details-marker {
  display: none;
}
summary:hover {
  background: #efeee4;
}
summary code {
  color: var(--ink);
  width: 185px;
  flex: 0 0 auto;
  font-size: 12px;
}
summary > span:not(.expand) {
  font-size: 13px;
  color: #66705f;
}
.expand {
  margin-left: auto;
  color: #948054;
  font-size: 20px;
  line-height: 1;
  transition: transform 150ms ease;
}
details[open] .expand {
  transform: rotate(45deg);
}
.details-content {
  padding: 0 14px 17px;
  max-width: 770px;
}
.details-content p {
  font-size: 13px;
  margin: 0 0 13px;
}
.details-content p:last-child {
  margin-bottom: 0;
}
.tool-input {
  font-family: var(--mono);
  font-size: 11px !important;
  color: #657061;
  background: #eeeee4;
  padding: 13px 16px;
  overflow-wrap: anywhere;
}
.faq summary {
  padding-left: 0;
}
.faq summary > span:not(.expand) {
  color: var(--ink);
  font-size: 14px;
}
.faq .details-content {
  padding-left: 0;
}
.footer {
  padding: 43px 0 35px;
}
.footer-mark {
  display: flex;
  align-items: center;
  gap: 13px;
}
.footer-mark p {
  font: italic 19px/1.3 var(--serif);
  margin: 0;
}
.footer-mark small {
  display: block;
  font: 10px/1.4 var(--sans);
  color: #858575;
  margin-top: 7px;
  letter-spacing: 0.6px;
}
.footer-links {
  display: flex;
  gap: 23px;
  flex-wrap: wrap;
  margin-top: 27px;
  font-size: 11px;
  color: #69715f;
}
.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.footer-note {
  font-size: 10px;
  color: #858575;
  margin: 17px 0 0;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 131px);
  transform: translate(-50%, 15px);
  color: #fff2d3;
  background: #183d33;
  box-shadow: 0 5px 35px #163d3725;
  border: 1px solid #a28953;
  padding: 11px 22px;
  font-size: 13px;
  z-index: 30;
  max-width: calc(100vw - 30px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #b8a77b;
  box-shadow: 0 20px 100px #081e2650;
  padding: 0;
}
dialog::backdrop {
  background: #0b241fad;
  backdrop-filter: blur(3px);
}
html:has(dialog[open]) {
  overflow: hidden;
}
.search-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: min(720px, 85vh);
  top: 10vh;
  margin: 0 auto;
}
.search-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 23px 5px;
}
.search-dialog h2 {
  font: 22px var(--serif);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 10px 23px 0;
  border-bottom: 1px solid #b4a682;
}
.search-input-wrap input {
  border: 0;
  background: transparent;
  color: var(--ink);
  width: 100%;
  padding: 14px 0;
  outline: none;
  font-size: 14px;
}
.search-input-wrap:focus-within {
  border-bottom: 2px solid var(--ink);
}
.search-count {
  color: #7a7e6e;
  padding: 12px 24px 4px;
  margin: 0;
  font-size: 10px;
}
#search-results {
  margin: 0;
  padding: 8px 12px 15px;
  list-style: none;
  overflow-y: auto;
  max-height: 420px;
}
#search-results a {
  display: block;
  padding: 14px 13px;
  border: 1px solid transparent;
}
#search-results a:hover,
#search-results a:focus-visible {
  background: #eeeddf;
  border-color: #c4b990;
  outline-offset: -2px;
}
#search-results strong {
  display: block;
  font: 20px/1.3 var(--serif);
  margin-bottom: 7px;
}
#search-results a span {
  color: #737a68;
  font-size: 12px;
  line-height: 1.6;
  display: block;
}
.search-empty {
  padding: 30px 12px;
  color: #7b7766;
  font-size: 14px;
}
.search-hint {
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 25px;
  font-size: 10px;
  color: #7d806f;
}
.menu-dialog {
  width: min(340px, 92vw);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto 0 0;
  color: #f6f0de;
  background: #153a31;
  border: 0;
  border-right: 1px solid #a38a4f;
  padding: 30px 24px;
}
.menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-dialog .sidebar-bottom {
  padding-top: 25px;
}
.menu-dialog nav {
  margin-top: 32px;
}
:lang(zh-CN) h1 {
  font-size: clamp(38px, 3.6vw, 56px);
  line-height: 1.35;
  letter-spacing: 1px;
}
:lang(zh-CN) h1 em {
  font-style: normal;
}
:lang(zh-CN) .hero-lead {
  font-size: 19px;
  letter-spacing: 0.6px;
}
:lang(zh-CN) .hero-text {
  line-height: 2;
}
:lang(zh-CN) .chapter h2 {
  font-size: 33px;
  line-height: 1.5;
  letter-spacing: 0.6px;
}
:lang(zh-CN) .eyebrow {
  letter-spacing: 1.4px;
}
:lang(zh-CN) .footer-mark p {
  font-style: normal;
  font-size: 17px;
}
@media (min-width: 1600px) {
  main {
    padding-left: 85px;
    padding-right: 85px;
  }
  .hero {
    padding-top: 82px;
    padding-bottom: 73px;
  }
}
@media (max-width: 1250px) {
  main {
    padding: 0 39px;
  }
  .topbar {
    padding: 0 39px;
  }
  .hero {
    grid-template-columns: 1.15fr 0.8fr;
    gap: 28px;
  }
  h1 {
    font-size: 49px;
  }
  .hero-actions {
    gap: 15px;
  }
  .hero-actions .text-link {
    font-size: 11px;
  }
  .folio-inner {
    padding: 20px 12px;
  }
  .folio-name {
    font-size: 21px;
  }
  .folio-caption {
    font-size: 6px;
  }
  .folio-overline {
    font-size: 7px;
  }
  .topbar-actions {
    gap: 18px;
  }
  .search-trigger kbd {
    margin-left: 8px;
  }
}
@media (max-width: 1100px) {
  .search-trigger > span {
    display: none;
  }
  .hero {
    gap: 24px;
  }
  h1 {
    font-size: 43px;
  }
  .hero-lead {
    font-size: 18px;
  }
  .hero-text {
    font-size: 13px;
  }
  .button-primary {
    padding: 11px 15px;
    gap: 15px;
  }
  .hero-actions {
    gap: 16px;
  }
  .pillars > div {
    padding-left: 17px;
    padding-right: 17px;
  }
  .pillars h2 {
    font-size: 15px;
  }
  :lang(zh-CN) h1 {
    font-size: 37px;
  }
}
@media (max-width: 960px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 25px;
  }
  .sidebar nav {
    margin-top: 20px;
  }
  .sidebar-bottom {
    padding-top: 20px;
  }
  .enhanced .sidebar {
    display: none;
  }
  .main-shell {
    margin-left: 0;
  }
  .mobile-logo {
    display: block !important;
  }
  .enhanced .mobile-menu {
    display: inline-flex !important;
  }
  .topbar {
    height: 68px;
    padding: 0 28px;
  }
  .topbar-actions {
    gap: 14px;
  }
  main {
    max-width: 860px;
    padding: 0 36px;
  }
  .hero {
    padding-top: 49px;
  }
  .folio {
    max-width: 300px;
  }
  h1 {
    font-size: 55px;
  }
  .hero-text {
    font-size: 14px;
  }
  .hero-lead {
    font-size: 20px;
  }
  :lang(zh-CN) h1 {
    font-size: 44px;
  }
  .pillars h2 {
    font-size: 17px;
  }
  .toast {
    left: 50%;
  }
}
@media (max-width: 620px) {
  :root {
    font-size: 14px;
  }
  #main,
  .introduction,
  .chapter {
    scroll-margin-top: 90px;
  }
  main {
    padding: 0 24px;
  }
  .topbar {
    height: 63px;
    padding: 0 17px;
    gap: 10px;
  }
  .breadcrumb {
    gap: 8px;
    font-size: 11px;
  }
  .breadcrumb-divider,
  .breadcrumb > span:last-child {
    display: none;
  }
  .topbar-actions {
    gap: 7px;
  }
  .topbar .repository-link {
    display: none;
  }
  .search-trigger {
    border: 0;
    padding: 7px;
  }
  .search-trigger kbd {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 41px 0 40px;
  }
  .eyebrow {
    font-size: 9px;
    gap: 10px;
    letter-spacing: 1.7px;
    margin-bottom: 20px;
  }
  h1 {
    font-size: clamp(44px, 11vw, 62px);
    letter-spacing: -1px;
  }
  .hero-lead {
    margin-top: 22px;
    font-size: 20px;
  }
  .hero-text {
    max-width: 460px;
  }
  .hero-actions {
    gap: 21px;
  }
  .button-primary {
    padding: 12px 16px;
    font-size: 12px;
  }
  .hero-actions .text-link {
    font-size: 12px;
  }
  .folio {
    justify-self: center;
    max-width: 252px;
  }
  .folio-inner {
    padding: 20px 18px;
  }
  .mark-mat {
    max-width: 155px;
  }
  .folio-overline {
    font-size: 7px;
    margin-bottom: 15px;
  }
  .folio-rule {
    margin-top: 13px;
    margin-bottom: 8px;
  }
  .folio-name {
    font-size: 22px;
  }
  .pillars {
    grid-template-columns: 1fr;
    padding: 7px 0;
  }
  .pillars > div {
    padding: 20px 0 20px 35px !important;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .pillars > div:first-child {
    border-top: 0;
  }
  .pillar-number {
    position: absolute;
    left: 4px;
    top: 22px;
  }
  .pillars h2 {
    font-size: 19px;
  }
  .pillars p {
    font-size: 12px;
  }
  .chapter {
    padding: 43px 0 32px;
  }
  .chapter h2 {
    font-size: 31px;
  }
  .chapter-heading {
    margin-bottom: 23px;
  }
  .section-summary {
    font-size: 14px;
  }
  .callout {
    padding: 17px 16px;
    gap: 11px;
    margin: 20px 0 26px;
  }
  .callout h3 {
    font-size: 19px;
  }
  .callout p {
    font-size: 12px;
  }
  .callout-mark {
    font-size: 21px;
  }
  .steps > li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 18px;
  }
  .step-number {
    font-size: 20px;
  }
  .step-content h3 {
    font-size: 15px;
  }
  .step-content > p {
    font-size: 13px;
  }
  .code-header {
    padding: 0 12px;
    font-size: 9px;
  }
  pre {
    padding: 15px 13px;
  }
  pre code {
    font-size: 11px;
  }
  .prompt {
    padding: 13px;
    gap: 10px;
  }
  .prompt p {
    font-size: 17px;
  }
  .prompt-mark {
    font-size: 36px;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .features h3 {
    font-size: 21px;
  }
  .features p {
    font-size: 13px;
  }
  th,
  td {
    padding: 12px 10px;
  }
  table {
    font-size: 12px;
  }
  td code {
    font-size: 10px;
    padding: 1px 2px;
  }
  summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 4px 8px;
    padding: 14px 9px;
  }
  summary code {
    width: auto;
    font-size: 12px;
    grid-column: 1;
  }
  .tools summary > span:not(.expand) {
    grid-column: 1;
    grid-row: 2;
    font-size: 12px;
  }
  summary .expand {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .faq summary .expand {
    grid-row: 1;
  }
  .details-content {
    padding-left: 9px;
    padding-right: 9px;
  }
  .footer {
    padding: 32px 0;
  }
  .footer-mark p {
    font-size: 18px;
  }
  .footer-links {
    gap: 15px 20px;
    font-size: 11px;
  }
  .search-dialog {
    top: 5vh;
    max-height: 88dvh;
  }
  #search-results {
    max-height: 50dvh;
  }
  .search-dialog-heading {
    padding-left: 17px;
    padding-right: 17px;
  }
  .search-dialog h2 {
    font-size: 21px;
  }
  .search-input-wrap {
    margin-left: 17px;
    margin-right: 17px;
  }
  .search-input-wrap input {
    font-size: 13px;
  }
  :lang(zh-CN) h1 {
    font-size: clamp(36px, 10vw, 52px);
    line-height: 1.35;
    letter-spacing: 2px;
  }
  :lang(zh-CN) .chapter h2 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  :root {
    font-size: 11pt;
  }
  .sidebar,
  .topbar,
  .hero-actions,
  .chapter-top,
  .js-only,
  dialog,
  .toast,
  .folio,
  .footer-links {
    display: none !important;
  }
  .main-shell {
    margin: 0;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .hero {
    display: block;
    padding: 25px 0;
  }
  .chapter {
    padding: 30px 0;
  }
  .chapter h2 {
    break-after: avoid;
  }
  pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: black;
  }
  .code-block,
  .code-header {
    background: white;
    color: black;
  }
}
