@charset "UTF-8";
:root {
  --header-height: 82px;
  --bg: #f7f8f5;
  --surface: #fff;
  --ink: #202a25;
  --muted: #5f6c64;
  --faint: #68746c;
  --line: #dce2da;
  --accent: #166b4b;
  --accent-soft: #e5f1e9;
  --code: #17261f;
  --code-ink: #dceae2;
  --header: rgba(247, 248, 245, 0.94);
  --shadow: 0 22px 65px -34px rgba(24, 44, 31, 0.36);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141c18;
  --surface: #1b2520;
  --ink: #edf3ee;
  --muted: #b0bfb5;
  --faint: #92a698;
  --line: #344339;
  --accent: #9ae7bb;
  --accent-soft: #233c2c;
  --code: #0d1711;
  --code-ink: #dceae2;
  --header: rgba(20, 28, 24, 0.94);
  --shadow: 0 22px 65px -34px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
p,
h1,
h2,
h3,
figure {
  margin: 0;
}
code,
kbd,
.eyebrow,
.hero-meta,
.feature-index,
.section-number,
.section-signature,
.code-toolbar,
.document-meta,
.rail-version {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
code {
  font-size: 0.9em;
}
p code,
li code,
td code,
th code {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: #b5e6c5;
  color: #162b1d;
}
[hidden] {
  display: none !important;
}
.section-shell {
  max-width: 1224px;
  margin: 0 auto;
  padding: 0 40px;
}
.eyebrow {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #46aa70;
  vertical-align: middle;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  z-index: 50;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.skip-link:focus {
  transform: none;
}
.site-header {
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  backdrop-filter: blur(16px);
}
.header-inner {
  height: 100%;
  max-width: 1440px;
  padding: 0 48px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 42px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  letter-spacing: -0.8px;
  font-weight: 700;
  white-space: nowrap;
}
.brand-mark {
  width: 32px;
  height: 32px;
  stroke: none;
}
.brand-mark rect {
  fill: var(--ink);
}
.brand-mark path {
  stroke: var(--bg);
  stroke-width: 2.5;
  fill: none;
}
.brand-dot {
  color: var(--accent);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 7px 0;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}
.main-nav a[aria-current="page"] {
  font-weight: 600;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.language-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10px;
}
.language-switch a {
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--muted);
  white-space: nowrap;
}
.language-switch a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.language-switch a:hover {
  color: var(--accent);
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  color: var(--muted);
}
.theme-toggle:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.theme-toggle svg {
  fill: none;
  width: 18px;
  height: 18px;
}
.sun-icon {
  display: none;
}
:root[data-theme="dark"] .sun-icon {
  display: block;
}
:root[data-theme="dark"] .moon-icon {
  display: none;
}
.header-github {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}
.header-github svg {
  width: 16px;
  height: 16px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.38fr;
  gap: 50px;
  padding-top: 92px;
  padding-bottom: 87px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(52px, 5.4vw, 74px);
  line-height: 1.03;
  letter-spacing: -4px;
  font-weight: 650;
  margin: 25px 0 24px;
}
.hero-copy h1 > span {
  color: var(--accent);
}
.hero-period {
  color: var(--accent);
  margin-left: 2px;
}
.hero-lead {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.5px;
  line-height: 1.5;
  margin-bottom: 13px;
}
.hero-description {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.hero-buttons {
  display: flex;
  gap: 17px;
  align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 7px;
  font-weight: 600;
  white-space: nowrap;
}
.button svg {
  width: 17px;
  height: 17px;
}
.button-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}
.button-primary:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.button-text {
  padding-left: 0;
  padding-right: 0;
  color: var(--muted);
}
.button-text:hover {
  color: var(--accent);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 23px;
  color: var(--faint);
  font-size: 10px;
}
.hero-meta span + span::before {
  content: "/";
  display: inline-block;
  color: var(--line);
  margin: 0 13px;
}
.hero-visual {
  position: relative;
  min-width: 0;
  transform: translateY(7px);
}
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 43px -15px 19px 27px;
  background: var(--accent-soft);
  border-radius: 20px;
}
.preview-header,
.preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}
.preview-header {
  padding: 0 5px 12px;
}
.preview-header > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.screenshot-tabs {
  display: flex;
  padding: 3px;
  background: var(--accent-soft);
  border-radius: 6px;
  gap: 1px;
}
.screenshot-tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10px;
  padding: 5px 11px;
  border-radius: 4px;
  line-height: 1.3;
}
.screenshot-tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px #0000000b;
}
.screenshot-frame {
  background: #192621;
  padding: 7px;
  border: 1px solid #253b2e;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
}
.preview-footer {
  padding: 11px 5px 0;
}
.shortcut-note {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 31px;
  color: var(--muted);
  font-size: 10px;
}
.shortcut-line {
  width: 31px;
  height: 1px;
  background: var(--line);
  margin-right: 5px;
}
kbd {
  font-size: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink);
}
.shortcut-note > span:last-child {
  margin-left: 4px;
}
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 30px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-strip > div {
  padding: 0 28px;
  position: relative;
}
.feature-strip > div:first-child {
  padding-left: 0;
}
.feature-strip > div:last-child {
  padding-right: 0;
}
.feature-strip > div + div {
  border-left: 1px solid var(--line);
}
.feature-index {
  font-size: 10px;
  color: var(--faint);
  display: block;
  margin-bottom: 12px;
}
.feature-strip h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 7px;
}
.feature-strip p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.feature-strip code {
  background: none;
  padding: 0;
  color: var(--muted);
}
.guide-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding-top: 85px;
  padding-bottom: 85px;
}
.promo-copy h2 {
  font-size: 36px;
  font-weight: 550;
  letter-spacing: -1px;
  line-height: 1.45;
  margin-top: 17px;
}
.promo-copy p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 18px;
}
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 20px;
}
.inline-link svg {
  width: 17px;
  height: 17px;
}
.code-teaser {
  background: var(--code);
  color: var(--code-ink);
  border: 1px solid #263d2e;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #ffffff16;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #a4c3ae;
}
.code-teaser pre {
  padding: 24px 24px 29px;
  margin: 0;
  font-size: 13px;
  line-height: 2.1;
  overflow: auto;
}
.code-teaser code {
  font-size: inherit;
}
.code-comment {
  color: #a4bda9;
}
.code-token {
  color: #b5e9c5;
}
.teaser-footer {
  display: flex;
  gap: 20px;
  padding: 12px 20px;
  border-top: 1px solid #ffffff16;
  font-size: 10px;
  color: #a4c3ae;
}
.legacy-section {
  border-top: 1px solid var(--line);
  padding-top: 59px;
  padding-bottom: 67px;
}
.legacy-heading h2 {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1.3px;
  margin: 10px 0 10px;
}
.legacy-heading h2 span {
  color: var(--accent);
  font-weight: 450;
  margin-left: 8px;
}
.legacy-heading > p:last-child {
  font-size: 13px;
  color: var(--muted);
}
.legacy-downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
}
.legacy-downloads > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 24px;
  transition: background 0.18s;
}
.legacy-downloads > a + a {
  border-left: 1px solid var(--line);
}
.legacy-downloads > a:hover {
  background: var(--accent-soft);
}
.legacy-downloads > a > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.download-kicker {
  font-size: 9px;
  letter-spacing: 0.07em;
  color: var(--faint);
}
.legacy-downloads strong {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
.download-caption {
  font-size: 11px;
  color: var(--muted);
}
.legacy-downloads svg {
  width: 23px;
  height: 23px;
  color: var(--accent);
}
.legacy-footnote {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 10px;
}
.legacy-footnote > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.legacy-footnote svg {
  width: 15px;
  height: 15px;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-inner {
  max-width: 1440px;
  padding: 30px 48px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-brand {
  font-size: 16px;
  letter-spacing: -0.6px;
}
.footer-brand svg {
  width: 26px;
  height: 26px;
}
.footer-inner > p {
  font-size: 11px;
  color: var(--muted);
}
.footer-inner > div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.footer-inner > div a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.footer-inner > div svg {
  width: 13px;
  height: 13px;
}
.guide-layout {
  max-width: 1424px;
  display: grid;
  grid-template-columns: 204px minmax(0, 760px) 150px;
  gap: 46px;
  padding-top: 52px;
  padding-bottom: 60px;
  align-items: start;
}
.guide-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  max-height: calc(100vh - var(--header-height) - 55px);
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}
.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 21px;
}
.back-link svg {
  transform: rotate(180deg);
  width: 15px;
  height: 15px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.search-field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search-field svg {
  width: 15px;
  height: 15px;
  color: var(--faint);
}
.search-field input {
  border: 0;
  width: 100%;
  min-width: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}
.search-field input::placeholder {
  color: var(--muted);
}
.search-field input:focus-visible {
  outline: none;
}
.search-field kbd {
  font-size: 9px;
  padding: 0 4px;
  background: var(--bg);
}
.search-message {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  padding-top: 9px;
}
.mobile-toc > summary {
  display: none;
}
.chapter-nav {
  padding-top: 22px;
}
.nav-group {
  margin-bottom: 19px;
}
.nav-group > p {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  padding-left: 12px;
  margin-bottom: 7px;
}
.nav-group > a {
  display: flex;
  gap: 11px;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  border-left: 2px solid transparent;
}
.nav-group > a > span {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  opacity: 1;
  align-self: center;
}
.nav-group > a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-group > a[aria-current="location"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
  border-left-color: var(--accent);
}
.sidebar-pdf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink);
  padding: 14px 10px 3px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.sidebar-pdf svg {
  width: 14px;
  height: 14px;
}
.pdf-password {
  display: block;
  font-size: 9px;
  color: var(--muted);
  padding: 4px 10px 14px;
}
.pdf-password code {
  font-size: 10px;
}
.guide-intro {
  padding: 8px 0 35px;
}
.guide-intro h1 {
  font-size: 42px;
  font-weight: 550;
  letter-spacing: -1.8px;
  line-height: 1.4;
  margin: 14px 0 15px;
}
.guide-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
}
.document-meta {
  display: flex;
  gap: 16px;
  margin-top: 21px;
  font-size: 9px;
  color: var(--muted);
  flex-wrap: wrap;
}
.document-meta > span + span::before {
  content: "·";
  margin-right: 16px;
  color: var(--faint);
}
.source-banner {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 28px;
  padding: 16px 17px;
  background: var(--accent-soft);
  border-radius: 7px;
  color: var(--muted);
}
.source-indicator {
  font-size: 10px;
  white-space: nowrap;
  color: var(--accent);
  font-weight: 600;
  padding-top: 1px;
}
.source-banner p {
  font-size: 11px;
  line-height: 1.9;
}
.source-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guide-content {
  min-width: 0;
}
.reference-section {
  padding: 43px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 21px;
}
.section-number {
  font-size: 11px;
  color: var(--accent);
  padding-top: 4px;
}
.section-signature {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.015em;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.section-heading h2 {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.6px;
  line-height: 1.45;
}
.source-page {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 5px;
}
.reference-section > p,
.example > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.95;
  margin: 10px 0 15px;
}
.code-block {
  background: var(--code);
  color: var(--code-ink);
  border: 1px solid #263d2e;
  border-radius: 8px;
  margin: 22px 0;
  overflow: hidden;
}
.code-block .code-toolbar {
  font-size: 9px;
  padding: 8px 16px;
  min-height: 40px;
}
.copy-code {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #bdd9c5;
  font-size: 10px;
  letter-spacing: 0;
  padding: 5px 0;
}
.copy-code:hover {
  color: #fff;
}
.copy-code svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.5;
}
.copy-code:focus-visible {
  outline-color: #b5e9c5;
}
.code-block pre {
  margin: 0;
  padding: 18px 20px;
  font-size: 12px;
  line-height: 1.9;
  overflow-x: auto;
}
.code-block code {
  font-size: inherit;
  color: inherit;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre;
}
.table-scroll {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  scrollbar-width: thin;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  line-height: 1.9;
}
th,
td {
  text-align: left;
  padding: 11px 13px;
  vertical-align: top;
}
thead {
  background: var(--accent-soft);
  font-size: 10px;
  color: var(--accent);
}
thead th {
  font-weight: 600;
}
tbody tr + tr {
  border-top: 1px solid var(--line);
}
tbody th {
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "PingFang SC", monospace;
}
tbody td {
  color: var(--muted);
}
tbody td:nth-child(2) {
  min-width: 90px;
}
tbody td:last-child {
  min-width: 145px;
}
tbody td code {
  padding: 1px 4px;
  font-size: 10px;
}
tbody th code {
  white-space: normal;
}
.example,
.reference-detail {
  margin-top: 27px;
}
.example h3,
.reference-detail h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}
.example .code-block {
  margin-top: 11px;
  margin-bottom: 12px;
}
.example-equivalent {
  font-size: 11px !important;
}
.steps-list {
  padding-left: 19px;
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
}
.steps-list li {
  padding-left: 3px;
}
.reference-notes {
  display: flex;
  gap: 15px;
  margin-top: 23px;
  padding: 16px 18px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 5px 5px 0;
}
.note-label {
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 1px;
}
.reference-notes ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.reference-notes li + li {
  margin-top: 7px;
}
.guide-rail {
  position: sticky;
  top: calc(var(--header-height) + 53px);
  padding-top: 10px;
}
.rail-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
}
.guide-rail p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 10px;
}
.guide-rail > a {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  margin-top: 13px;
}
.guide-rail > a svg {
  width: 14px;
  height: 14px;
}
.rail-divider {
  display: block;
  height: 1px;
  background: var(--line);
  margin: 23px 0;
}
.guide-rail .rail-project {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
  font-weight: 550;
  display: block;
}
.rail-project svg {
  vertical-align: middle;
}
.rail-version {
  display: block;
  color: var(--faint);
  font-size: 9px;
  margin-top: 9px;
}
.reading-progress {
  position: fixed;
  top: calc(var(--header-height) - 2px);
  width: 100%;
  height: 2px;
  z-index: 21;
  pointer-events: none;
}
.reading-progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0;
}
.document-end {
  border-top: 1px solid var(--line);
  padding-top: 37px;
  margin-top: 4px;
}
.document-end h2 {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.6px;
  margin-top: 13px;
}
.document-end > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 20px;
}
.document-source {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 23px;
}
.document-source svg {
  width: 14px;
  height: 14px;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 110px;
    padding-bottom: 105px;
  }
  .hero-copy h1 {
    font-size: 80px;
  }
  .guide-layout {
    gap: 54px;
  }
}
@media (max-width: 1180px) {
  .guide-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 35px;
  }
  .guide-rail {
    display: none;
  }
  .hero {
    gap: 32px;
    padding-top: 75px;
  }
  .hero-buttons {
    gap: 13px;
  }
  .hero-copy h1 {
    letter-spacing: -3px;
  }
  .header-inner {
    padding: 0 35px;
  }
  .section-shell {
    padding-left: 35px;
    padding-right: 35px;
  }
  .hero-description {
    font-size: 13px;
  }
  .preview-header {
    font-size: 9px;
  }
  .screenshot-tabs button {
    font-size: 9px;
  }
  .feature-strip > div {
    padding: 0 20px;
  }
}
@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 58px;
    padding-bottom: 52px;
  }
  .hero-copy {
    max-width: 650px;
  }
  .hero-copy h1 {
    font-size: 66px;
    margin-top: 19px;
    line-height: 1.04;
  }
  .hero-lead {
    font-size: 22px;
  }
  .hero-visual {
    max-width: 740px;
    width: 100%;
    transform: none;
  }
  .hero-visual::before {
    inset: 40px -10px 18px 28px;
  }
  .shortcut-note {
    margin-top: 20px;
  }
  .guide-promo {
    gap: 30px;
    padding-top: 58px;
    padding-bottom: 58px;
  }
  .promo-copy h2 {
    font-size: 28px;
  }
  .desktop-break {
    display: none;
  }
  .header-inner {
    gap: 22px;
  }
  .main-nav {
    gap: 20px;
  }
  .footer-inner {
    padding: 27px 35px;
    gap: 18px;
  }
  .footer-inner > p {
    max-width: 210px;
  }
}
@media (max-width: 760px) {
  :root {
    --header-height: 108px;
  }
  .header-inner {
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 52px 32px;
    align-content: center;
    gap: 4px 15px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .main-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0;
    gap: 18px;
    justify-content: space-between;
  }
  .main-nav a {
    font-size: 11px;
  }
  .header-actions {
    grid-row: 1;
    grid-column: 2;
    gap: 12px;
  }
  .header-github {
    display: none;
  }
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
  .section-shell {
    padding-left: 23px;
    padding-right: 23px;
  }
  .hero {
    padding-top: 43px;
    gap: 30px;
  }
  .hero-copy h1 {
    font-size: 61px;
    letter-spacing: -3.5px;
    margin-top: 19px;
    margin-bottom: 19px;
  }
  .hero-lead {
    font-size: 21px;
  }
  .hero-description {
    font-size: 13px;
    max-width: 370px;
  }
  .hero-buttons {
    margin-top: 22px;
    gap: 19px;
  }
  .hero-meta {
    margin-top: 19px;
  }
  .hero-visual::before {
    display: none;
  }
  .preview-footer {
    font-size: 9px;
  }
  .shortcut-note {
    font-size: 9px;
  }
  .feature-strip {
    grid-template-columns: 1fr;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .feature-strip > div,
  .feature-strip > div:first-child,
  .feature-strip > div:last-child {
    padding: 22px 0 22px 35px;
  }
  .feature-strip > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .feature-index {
    position: absolute;
    left: 0;
    top: 26px;
    margin: 0;
  }
  .feature-strip h2 {
    font-size: 14px;
  }
  .feature-strip p {
    font-size: 11px;
  }
  .guide-promo {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 45px;
    padding-bottom: 47px;
  }
  .promo-copy h2 {
    font-size: 29px;
  }
  .promo-copy p:not(.eyebrow) {
    font-size: 12px;
    margin-top: 13px;
  }
  .code-teaser pre {
    font-size: 12px;
    padding: 21px 18px;
  }
  .code-toolbar {
    font-size: 8px;
    padding: 11px 15px;
  }
  .teaser-footer {
    font-size: 9px;
  }
  .legacy-section {
    padding-top: 39px;
    padding-bottom: 40px;
  }
  .legacy-heading h2 {
    font-size: 27px;
  }
  .legacy-heading > p:last-child {
    font-size: 12px;
    line-height: 1.85;
  }
  .legacy-downloads {
    grid-template-columns: 1fr;
    margin-top: 21px;
  }
  .legacy-downloads > a {
    padding: 20px;
  }
  .legacy-downloads > a + a {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .legacy-footnote {
    flex-direction: column;
    font-size: 10px;
    gap: 8px;
  }
  .footer-inner {
    padding: 23px;
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .footer-inner > p {
    font-size: 10px;
    max-width: none;
  }
  .footer-inner > div {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 5px 0 0;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    font-size: 9px;
  }
  .guide-layout {
    display: block;
    padding-top: 20px;
  }
  .guide-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin-bottom: 31px;
  }
  .back-link {
    margin-bottom: 16px;
  }
  .search-field {
    height: 42px;
  }
  .search-field input {
    font-size: 12px;
  }
  .mobile-toc {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
  }
  .mobile-toc > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    padding: 11px 13px;
    cursor: pointer;
    list-style: none;
  }
  .mobile-toc > summary::-webkit-details-marker {
    display: none;
  }
  .mobile-toc > summary span {
    font-size: 10px;
    color: var(--muted);
  }
  .mobile-toc > summary::after {
    content: "+";
    font-family: monospace;
    color: var(--accent);
    margin-left: 10px;
  }
  .mobile-toc[open] > summary::after {
    content: "−";
  }
  .chapter-nav {
    padding: 10px 8px 2px;
    border-top: 1px solid var(--line);
  }
  .chapter-nav a {
    font-size: 12px;
    padding: 9px 11px;
  }
  .nav-group > p {
    font-size: 10px;
  }
  .sidebar-pdf {
    padding: 12px 0 0;
    border: 0;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 1px;
  }
  .pdf-password {
    display: inline-block;
    padding: 4px 0 0;
    font-size: 10px;
  }
  .guide-intro {
    padding: 0 0 31px;
  }
  .guide-intro h1 {
    font-size: 32px;
    letter-spacing: -1px;
    margin: 12px 0 13px;
  }
  .guide-lead {
    font-size: 13px;
  }
  .document-meta {
    gap: 10px;
    font-size: 8px;
    margin-top: 18px;
  }
  .document-meta > span + span::before {
    margin-right: 10px;
  }
  .source-banner {
    padding: 13px;
    gap: 9px;
    margin-top: 20px;
  }
  .source-banner p {
    font-size: 10px;
  }
  .reference-section {
    padding: 32px 0;
    scroll-margin-top: 20px;
  }
  .section-heading {
    gap: 12px;
    margin-bottom: 17px;
    flex-wrap: wrap;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .source-page {
    font-size: 8px;
    padding-top: 3px;
  }
  .section-signature {
    font-size: 10px;
  }
  .section-number {
    font-size: 10px;
  }
  .reference-section > p,
  .example > p {
    font-size: 12px;
    line-height: 1.95;
  }
  .code-block pre {
    font-size: 10px;
    padding: 14px 15px;
  }
  .code-block .code-toolbar {
    padding: 7px 13px;
  }
  .table-scroll {
    margin: 18px 0;
  }
  table {
    font-size: 10px;
    min-width: 450px;
  }
  th,
  td {
    padding: 10px 11px;
  }
  .reference-notes {
    padding: 13px 14px;
    gap: 9px;
    flex-direction: column;
  }
  .note-label {
    font-size: 10px;
  }
  .reference-notes ul {
    font-size: 10px;
  }
  .document-end h2 {
    font-size: 23px;
  }
  .document-end > p:not(.eyebrow) {
    font-size: 12px;
  }
}
@media (max-width: 380px) {
  .header-inner {
    padding: 0 15px;
    gap: 10px;
  }
  .brand {
    font-size: 16px;
  }
  .brand-mark {
    width: 25px;
    height: 25px;
  }
  .main-nav {
    gap: 10px;
  }
  .main-nav a {
    font-size: 10px;
  }
  .theme-toggle {
    width: 29px;
    height: 29px;
  }
  .hero-copy h1 {
    font-size: 55px;
  }
  .hero-buttons {
    gap: 13px;
  }
  .button {
    font-size: 11px;
    padding: 10px 13px;
  }
  .button-text {
    padding-left: 0;
    padding-right: 0;
  }
  .section-shell {
    padding-left: 20px;
    padding-right: 20px;
  }
  .guide-intro h1 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
