@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --canvas: #f4f4f1;
  --paper: #ffffff;
  --ink: #17181c;
  --ink-2: #33353b;
  --muted: #62646b;
  --line: #e2e1db;
  --line-strong: #cfcec7;
  --blue: #1f5ae8;
  --blue-deep: #1848c2;
  --blue-tint: #e9effe;
  --orange: #ff5a26;
  --orange-tint: #fff0e9;
  --green: #12805c;
  --green-tint: #e6f5ee;
  --amber: #9a6200;
  --amber-tint: #fff5d9;
  --code: #101114;
  --top: 60px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top) + 20px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}
.skip:focus {
  top: 12px;
}

/* Top bar */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--top);
  padding: 0 clamp(14px, 2.4vw, 28px);
  background: color-mix(in srgb, var(--canvas) 90%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.brand span {
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.version {
  margin-left: auto;
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle .icon {
  width: 24px;
  height: 24px;
  margin: auto;
}

.search {
  position: relative;
  flex: 0 1 420px;
  margin-left: clamp(8px, 4vw, 72px);
}
.search > .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 38px;
  border: 0;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-strong);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.search input::placeholder {
  color: var(--muted);
}
.search input:focus {
  outline: 0;
  box-shadow: 0 0 0 2px var(--blue);
}
.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: 46px;
  max-height: min(70vh, 520px);
  padding: 6px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow:
    0 0 0 1px var(--line),
    0 18px 50px -12px rgba(23, 24, 28, 0.28);
  overflow-y: auto;
}
.search-results a,
.search-results p {
  display: block;
  margin: 0;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.4;
}
.search-results a:hover,
.search-results a.is-active {
  background: var(--canvas);
}
.search-results strong {
  display: block;
  font-weight: 600;
}
.search-results span {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
}
.search-results mark {
  background: var(--amber-tint);
  color: inherit;
  border-radius: 3px;
}

/* Layout */

.layout {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr) 232px;
  align-items: start;
  max-width: 1480px;
  margin-inline: auto;
}

.sidebar {
  position: sticky;
  top: var(--top);
  height: calc(100vh - var(--top));
  padding: 22px 14px 40px clamp(14px, 2.4vw, 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-part {
  margin: 22px 0 10px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}
.nav-part:first-child {
  margin-top: 0;
}
.nav-group {
  margin-bottom: 14px;
}
.nav-title {
  margin: 0 0 2px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.35;
}
.sidebar a:hover {
  background: rgba(23, 24, 28, 0.06);
}
.sidebar a[aria-current="page"] {
  background: var(--paper);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 2px rgba(23, 24, 28, 0.05);
  color: var(--ink);
  font-weight: 600;
}

.content {
  min-width: 0;
  margin: 10px 0 0;
  padding: clamp(24px, 4vw, 56px) clamp(18px, 4.5vw, 64px) 40px;
  border-radius: 20px 20px 0 0;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  min-height: calc(100vh - var(--top) - 10px);
}
article {
  max-width: 800px;
}

.toc {
  position: sticky;
  top: var(--top);
  max-height: calc(100vh - var(--top));
  padding: 34px 20px 40px 26px;
  overflow-y: auto;
  font-size: 13.5px;
}
.toc p {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--ink);
}
.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line-strong);
}
.toc a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 1px solid transparent;
  color: var(--muted);
  line-height: 1.4;
}
.toc a:hover {
  color: var(--ink);
}
.toc a.is-current {
  border-left-color: var(--blue);
  color: var(--ink);
  font-weight: 550;
}

/* Article */

.crumb {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede {
  margin: 16px 0 0;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
h2 {
  position: relative;
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 1.625rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.028em;
}
h3 {
  margin: 34px 0 0;
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.018em;
}
.anchor {
  position: absolute;
  left: -22px;
  color: var(--line-strong);
  font-weight: 400;
  opacity: 0;
}
h2:hover .anchor,
.anchor:focus {
  opacity: 1;
}
article p {
  margin: 14px 0 0;
}
article ul,
article ol {
  margin: 14px 0 0;
  padding-left: 24px;
}
article li {
  margin: 6px 0 0;
}
article li::marker {
  color: var(--muted);
}
article a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--blue) 35%, transparent);
  text-underline-offset: 3px;
}
article a:hover {
  text-decoration-color: var(--blue);
}
strong {
  font-weight: 650;
}
code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--canvas);
  font-family: var(--mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}
kbd {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 1.5px 0 var(--line-strong);
  font-family: var(--mono);
  font-size: 0.82em;
}
.ui {
  font-weight: 650;
}

/* Numbered steps */

ol.steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
ol.steps > li {
  position: relative;
  margin: 0;
  padding: 0 0 26px 52px;
  counter-increment: step;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
ol.steps > li::after {
  content: "";
  position: absolute;
  left: 15.5px;
  top: 40px;
  bottom: 8px;
  width: 1px;
  background: var(--line-strong);
}
ol.steps > li:last-child {
  padding-bottom: 0;
}
ol.steps > li:last-child::after {
  display: none;
}
ol.steps > li > h3 {
  margin: 0;
  padding-top: 3px;
}
ol.steps > li > p:first-child {
  margin-top: 0;
  padding-top: 3px;
}

/* Screenshots and their marks */

figure.shot {
  margin: 22px 0 0;
}
.shot-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--canvas);
  box-shadow:
    0 0 0 1px rgba(23, 24, 28, 0.1),
    0 12px 28px -14px rgba(23, 24, 28, 0.28);
  overflow: hidden;
  cursor: zoom-in;
}
.shot-open img {
  width: 100%;
}
figure.shot--narrow {
  max-width: 420px;
}
figure.shot--medium {
  max-width: 620px;
}
figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

ol.marks {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: mark;
}
ol.marks > li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 38px;
  counter-increment: mark;
}
ol.marks > li + li {
  border-top: 1px solid var(--line);
}
ol.marks > li::before {
  content: counter(mark);
  position: absolute;
  left: 0;
  top: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Notes */

.note,
.warn,
.tip {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--blue-tint);
  font-size: 15.5px;
}
.note::before,
.warn::before,
.tip::before {
  content: "i";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
}
.warn {
  background: var(--amber-tint);
}
.warn::before {
  content: "!";
  background: var(--amber);
}
.tip {
  background: var(--green-tint);
}
.tip::before {
  content: "\2713";
  background: var(--green);
}
.note > *,
.warn > *,
.tip > * {
  grid-column: 2;
  margin: 0;
}
.note > * + *,
.warn > * + *,
.tip > * + * {
  margin-top: 8px;
}

/* Tables, code, cards */

.table {
  margin: 22px 0 0;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line);
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
th,
td {
  padding: 11px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--canvas);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}

.code {
  position: relative;
  margin: 18px 0 0;
  border-radius: 12px;
  background: var(--code);
  color: #e7e8ec;
}
.code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
}
.code code {
  padding: 0;
  background: none;
  font-size: inherit;
  overflow-wrap: normal;
}
.code-copy {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 5px 11px;
  border: 0;
  border-radius: 8px;
  background: #23262d;
  box-shadow: inset 0 0 0 1px #33363e;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.cards li {
  margin: 0;
}
.cards a {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--canvas);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.15s var(--ease);
}
.cards a:hover {
  box-shadow: 0 0 0 1px var(--line-strong);
}
.cards strong {
  font-size: 16px;
  letter-spacing: -0.015em;
}
.cards span {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 22px 0 0;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}
.facts div {
  padding: 14px 16px;
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
}
.facts dt {
  font-size: 13.5px;
  color: var(--muted);
}
.facts dd {
  margin: 2px 0 0;
  font-weight: 600;
  line-height: 1.35;
}

/* Checklist */

ul.checklist {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line);
}
ul.checklist li {
  margin: 0;
}
ul.checklist li + li {
  border-top: 1px solid var(--line);
}
ul.checklist label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
}
ul.checklist input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--blue);
}
ul.checklist span {
  display: block;
  font-size: 14.5px;
  color: var(--muted);
}
ul.checklist input:checked + div > strong {
  color: var(--muted);
  text-decoration: line-through;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--canvas);
  font-size: 13.5px;
  color: var(--muted);
}

/* Pager and footer */

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 800px;
  margin-top: 64px;
}
.pager-link {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
}
.pager-link:hover {
  box-shadow: 0 0 0 1px var(--line-strong);
}
.pager-link span {
  font-size: 13.5px;
  color: var(--muted);
}
.pager-link strong {
  font-weight: 600;
  letter-spacing: -0.015em;
}
.pager-link--next {
  text-align: right;
}
.foot {
  max-width: 800px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

/* Lightbox */

.lightbox {
  width: min(96vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--canvas);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.6);
  overflow: auto;
}
.lightbox::backdrop {
  background: rgba(12, 13, 16, 0.78);
}
.lightbox img {
  width: 100%;
}
.lightbox-close {
  position: sticky;
  top: 10px;
  float: right;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 10px 10px -48px 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 24, 28, 0.86);
  color: #fff;
  cursor: pointer;
}

/* Smaller screens */

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 272px minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
}

@media (max-width: 860px) {
  .layout {
    display: block;
  }
  .menu-toggle {
    display: grid;
  }
  .brand span,
  .version {
    display: none;
  }
  .search {
    flex: 1 1 auto;
    margin-left: 0;
  }
  .sidebar {
    position: fixed;
    inset: var(--top) 0 0 0;
    z-index: 30;
    display: none;
    width: auto;
    height: auto;
    padding: 18px 16px 40px;
    background: var(--canvas);
  }
  .sidebar.is-open {
    display: block;
  }
  .sidebar a {
    padding: 9px 10px;
    font-size: 16px;
  }
  .content {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .anchor {
    display: none;
  }
  ol.steps > li {
    padding-left: 44px;
  }
  .lightbox img {
    width: 1040px;
    max-width: none;
  }
  .table table {
    min-width: 540px;
  }
}

@media print {
  .top,
  .sidebar,
  .toc,
  .pager,
  .code-copy {
    display: none;
  }
  .layout {
    display: block;
  }
  .content {
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  body {
    background: #fff;
  }
  figure.shot,
  ol.marks,
  .note,
  .warn,
  .tip {
    break-inside: avoid;
  }
}

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