:root {
  --page: #fafafa;
  --surface: #ffffff;
  --text: #242424;
  --muted: #696969;
  --line: #e2e2e2;
  --accent: #536dfe;
  --accent-dark: #4057df;
  --accent-soft: #eef1ff;
  --code: #f2f2f2;
  --header-height: 54px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code,
pre {
  font-family: "Liberation Mono", "Courier New", monospace;
}

code {
  padding: 1px 4px;
  color: #6049c7;
  background: var(--code);
  border: 1px solid #dddddd;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  position: relative;
  margin: 20px 0;
  padding: 18px 20px;
  overflow-x: auto;
  color: #202020;
  background: #f5f5f5;
  border: 1px solid #dcdcdc;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
}

pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: inherit;
}

figure.highlight {
  margin: 20px 0;
}

figure.highlight pre {
  margin: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -60px;
  left: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: #222222;
}

.skip-link:focus {
  top: 8px;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eeeeee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  width: min(1040px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #202633;
}

.brand:hover {
  text-decoration: none;
}

.brand strong {
  color: var(--accent);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand span {
  font-size: 15px;
  font-weight: 700;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
}

.header-links a {
  color: #202633;
}

.tag {
  padding: 3px 7px;
  color: #694900;
  background: #fff4cc;
  border: 1px solid #dbbd58;
  border-radius: 2px;
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
}

.layout {
  display: grid;
  width: min(1040px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding-top: calc(var(--header-height) + 56px);
  grid-template-columns: 180px minmax(0, 720px);
  gap: 56px;
}

.sidebar {
  position: sticky;
  top: 92px;
  height: fit-content;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 22px;
}

.nav-section > a {
  display: block;
  padding: 4px 0;
  color: #444444;
  font-size: 13px;
}

.nav-section > a.active {
  color: var(--accent);
  font-weight: 700;
}

.nav-title {
  margin: 0 0 8px;
  color: #777777;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform {
  margin-top: 26px;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
}

main {
  min-width: 0;
}

article {
  padding-bottom: 60px;
}

.doc-section {
  display: none;
}

.doc-section.is-active {
  display: block;
}

.hero {
  padding: 24px 0 58px;
}

.page-header {
  margin-bottom: 34px;
  padding: 24px 0 34px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: 38px;
}

.page-header .lede {
  margin-top: 14px;
  font-size: 16px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: #242424;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  line-height: 1.2;
}

h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

h3 {
  margin: 10px 0 7px;
  font-size: 17px;
}

h4 {
  margin: 24px 0 7px;
  font-size: 15px;
}

article > h3 {
  margin-top: 28px;
}

.lede {
  max-width: 640px;
  margin: 24px 0 0;
  color: #4d4d4d;
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  margin-top: 30px;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-block;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.button:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.text-link {
  font-size: 14px;
  font-weight: 700;
}

article > h2 {
  margin-top: 0;
  padding-top: 38px;
  scroll-margin-top: 72px;
  border-top: 1px solid var(--line);
}

article > h2:not(:first-of-type) {
  margin-top: 38px;
}

p {
  margin: 11px 0;
}

ul,
ol {
  margin: 12px 0;
  padding-left: 26px;
}

li {
  margin: 5px 0;
}

blockquote {
  margin: 18px 0;
  padding: 10px 16px;
  color: #574a25;
  background: #fff8dc;
  border-left: 3px solid #d49a19;
}

blockquote p {
  margin: 3px 0;
}

table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 9px 10px;
  border: 1px solid #d8d8d8;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eeeeee;
}

tbody tr:nth-child(even) {
  background: #f7f7f7;
}

.feature-grid {
  display: grid;
  margin: 28px 0 4px;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.feature-number {
  color: var(--accent);
  font-family: "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: #555555;
  font-size: 13px;
  line-height: 1.5;
}

.home-intro {
  margin-top: 28px;
  font-size: 16px;
}

.home-facts {
  display: grid;
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-facts > div {
  display: flex;
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px solid #d9defe;
  border-radius: 4px;
  flex-direction: column;
  gap: 2px;
}

.home-facts strong {
  font-size: 12px;
}

.home-facts span {
  color: #4f4f4f;
  font-size: 13px;
}

.commands {
  display: grid;
  margin: 24px 0;
  grid-template-columns: 110px 1fr;
  border-top: 1px solid var(--line);
}

.commands dt,
.commands dd {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.commands dt {
  font-weight: 700;
}

.commands dd {
  color: #505050;
}

.section-pagination {
  display: flex;
  margin-top: 44px;
  padding-top: 18px;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.section-page {
  display: flex;
  min-width: 150px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  flex-direction: column;
}

.section-page:hover {
  border-color: #c9cff8;
  text-decoration: none;
}

.section-page.next {
  margin-left: auto;
  text-align: right;
}

.section-page span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-page strong {
  color: var(--accent);
  font-size: 13px;
}

.page-footer {
  display: flex;
  margin-top: 48px;
  padding-top: 18px;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.page-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .brand {
    gap: 10px;
  }

  .brand span,
  .header-links a:not(:last-of-type),
  .header-links .tag {
    display: none;
  }

  .layout {
    display: block;
    width: auto;
    padding: calc(var(--header-height) + 28px) 18px 40px;
  }

  .sidebar {
    position: static;
    display: block;
    max-height: none;
    margin-bottom: 34px;
    padding-bottom: 22px;
    overflow: visible;
    border-bottom: 1px solid var(--line);
  }

  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .nav-section {
    margin: 0;
  }

  .platform {
    display: none;
  }

  .hero {
    padding: 18px 0 42px;
  }

  h1 {
    font-size: 40px;
  }

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

  .home-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .hero-actions,
  .page-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .commands {
    grid-template-columns: 88px 1fr;
  }

  .sidebar nav {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .sidebar,
  .hero-actions {
    display: none;
  }

  .layout {
    display: block;
    width: auto;
    padding: 0;
  }
}
