:root {
  --white: #fff;
  --gray: #f5f5f7;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #86868b;
  --line: #d2d2d7;
  --blue: #06c;
  --blue-hover: #0071e3;
  --green: #218239;
  --orange: #a05a00;
  --content: 980px;
  --wide: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); text-decoration: underline; }
button, select { font: inherit; }
code, pre { font-family: "SFMono-Regular", "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 980px;
  color: #fff;
  background: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-160%);
}

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

:focus-visible {
  outline: 3px solid rgba(0, 102, 204, .45);
  outline-offset: 3px;
}

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

.local-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 52px;
  border-bottom: 1px solid rgba(0,0,0,.12);
  background: rgba(250,250,252,.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
  width: min(var(--wide), calc(100% - 44px));
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.project-name {
  color: var(--text);
  font-size: 17px;
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -.022em;
  white-space: nowrap;
}

.project-name:hover { color: var(--text); text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}

.nav-links a { color: #424245; }
.nav-links a:hover { color: #000; text-decoration: none; }

.language-select {
  min-width: 60px;
  height: 28px;
  padding: 0 22px 0 8px;
  border: 1px solid #d2d2d7;
  border-radius: 980px;
  color: #424245;
  background: rgba(255,255,255,.72);
  font-size: 11px;
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 36px; height: 36px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px; height: 1px;
  margin: 5px auto;
  background: var(--text);
}

.content {
  width: min(var(--content), calc(100% - 44px));
  margin: 0 auto;
}

.content.narrow { width: min(760px, calc(100% - 44px)); }
.center { text-align: center; }
.section { padding: 92px 0; }
.section-white { background: var(--white); }
.section-gray { background: var(--gray); }

.intro {
  padding: 80px 0 84px;
}

.intro-layout {
  width: min(var(--wide), calc(100% - 44px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 72px;
  align-items: center;
}

.intro-copy-wrap { max-width: 670px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.43;
  font-weight: 600;
  letter-spacing: -.016em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 4.7vw, 50px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.04em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 3.7vw, 42px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.035em;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.21;
  font-weight: 600;
  letter-spacing: -.022em;
}

.intro-copy,
.section-intro {
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.5;
}

.intro-copy { max-width: 650px; margin-bottom: 0; }
.section-intro { max-width: 720px; margin-bottom: 0; }

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.47;
}

.centered-links { justify-content: center; }

.project-image {
  width: 100%;
  max-width: 360px;
  margin: 0;
  justify-self: end;
}

.project-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: var(--gray);
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}

.project-image figcaption {
  margin-top: 9px;
  color: var(--secondary);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.section-heading { margin-bottom: 46px; }

.two-column {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.lead-copy p {
  margin: 0;
  font-size: 27px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.026em;
}

.body-copy p {
  margin-bottom: 17px;
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.53;
  letter-spacing: -.018em;
}

.inline-guide {
  margin: 22px 0 0 !important;
  font-size: 14px !important;
}

.flow {
  margin-top: 58px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-radius: 22px;
  background: var(--white);
}

.flow span,
.step-number {
  width: 28px; height: 28px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 50%;
  color: var(--secondary);
  background: var(--gray);
  font-size: 12px;
  font-weight: 600;
}

.flow strong, .flow small { display: block; }
.flow strong { margin-bottom: 5px; font-size: 17px; }
.flow small { color: var(--secondary); font-size: 13px; line-height: 1.38; }
.flow i { color: var(--line); font-size: 24px; font-style: normal; }

.spec-list { border-top: 1px solid var(--line); }

.spec-row {
  min-height: 64px;
  padding: 17px 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
}

.spec-name { font-weight: 600; }
.spec-value { color: var(--secondary); }

.spec-value code {
  padding: 2px 5px;
  border-radius: 5px;
  color: var(--text);
  background: var(--gray);
  font-size: .9em;
}

.status {
  width: 180px;
  justify-self: end;
  text-align: right;
  font-size: 12px;
  white-space: nowrap;
}

.status.supported { color: var(--green); }
.status.note { color: var(--orange); }
.status.hardware { color: var(--secondary); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  padding: 27px 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.step-number { margin: 0; background: var(--white); }
.steps h3 { margin-top: 2px; }

.steps p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.53;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}

.guide-links a {
  font-size: 13px;
  line-height: 1.4;
}

.command {
  margin-top: 34px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 14px;
  background: var(--white);
}

.command span, .command code { display: block; }
.command span { margin-bottom: 7px; color: var(--secondary); font-size: 12px; }

.command code {
  max-width: 760px;
  overflow: auto;
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.command button {
  flex: 0 0 auto;
  padding: 6px 11px;
  border: 0;
  border-radius: 980px;
  color: var(--blue);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.command button:hover { background: var(--gray); }

.contents-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.file-tree {
  overflow: hidden;
  border-radius: 18px;
  background: var(--gray);
}

.file-tree pre { margin: 0; padding: 28px; overflow-x: auto; }
.file-tree code { color: #424245; font-size: 13px; line-height: 1.75; }
.components { border-top: 1px solid var(--line); }
.components article { padding: 18px 0; border-bottom: 1px solid var(--line); }
.components h3 { margin-bottom: 5px; font-size: 17px; }
.components p { margin: 0; color: var(--secondary); font-size: 14px; line-height: 1.5; }

.notice {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.notice h2 { margin-bottom: 0; }

.notice > div:last-child > p:first-child {
  margin-bottom: 0;
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.53;
}

.last-section { padding-top: 84px; padding-bottom: 96px; }
.last-section h2 { margin-bottom: 16px; font-size: 34px; }

footer {
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  background: var(--gray);
}

.footer-inner {
  width: min(var(--content), calc(100% - 44px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--secondary);
  font-size: 11px;
  line-height: 1.36;
}

.footer-inner p { margin: 0; }

@media (max-width: 820px) {
  .nav-inner { width: min(100% - 32px, var(--wide)); }
  .menu-button { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0; right: 0;
    padding: 8px 16px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(250,250,252,.98);
  }

  .nav-links.open { display: flex; }
  .nav-links > a { padding: 13px 6px; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 14px; }
  .language-wrap { padding: 12px 6px 2px; }
  .language-select { width: 100%; height: 34px; }

  .intro-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
  }

  .two-column, .contents-grid, .notice { grid-template-columns: 1fr; gap: 30px; }

  .flow { grid-template-columns: 1fr; gap: 18px; }
  .flow i { display: none; }
  .flow > div { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .flow > div:last-child { padding-bottom: 0; border-bottom: 0; }

  .spec-row { grid-template-columns: 1fr auto; gap: 6px 18px; }
  .spec-value { grid-column: 1 / -1; grid-row: 2; }
  .status {
    width: auto;
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 60px; }

  .content, .content.narrow, .intro-layout {
    width: min(100% - 32px, var(--wide));
  }

  .intro { padding: 60px 0 66px; }

  .intro-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .project-image {
    width: min(100%, 330px);
    justify-self: center;
  }

  .section { padding: 70px 0; }
  h1 { font-size: 37px; letter-spacing: -.04em; }
  h2 { font-size: 31px; }
  .intro-copy, .section-intro { font-size: 17px; }
  .lead-copy p { font-size: 24px; }

  .flow { margin-top: 42px; padding: 23px; border-radius: 18px; }
  .spec-row { padding: 16px 0; }
  .status { font-size: 11px; }

  .steps li {
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .command { align-items: flex-end; }
  .command code { max-width: calc(100vw - 120px); }
  .file-tree pre { padding: 22px 18px; }

  .footer-inner {
    width: min(100% - 32px, var(--content));
    flex-direction: column;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}