@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-semibold.ttf") format("truetype");
  font-weight: 500 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f5f4ee;
  --surface: #fbfaf6;
  --ink: #1e2722;
  --muted: #536259;
  --moss: #425e4a;
  --line: #d9ddd2;
  --tint: #e8eee4;
  --header-height: 4.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 "DM Sans", system-ui, sans-serif;
}
a { color: var(--moss); text-underline-offset: .19em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 5;
  inset: .5rem auto auto .5rem;
  padding: .55rem .9rem;
  background: var(--surface);
}
.top {
  position: sticky;
  z-index: 3;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.top-inner {
  max-width: 91rem;
  min-height: var(--header-height);
  margin: 0 auto;
  padding: .75rem clamp(1rem, 3.5vw, 3rem);
  display: grid;
  grid-template-columns: 1fr minmax(13rem, 30rem) 1fr;
  align-items: center;
  gap: 1.25rem;
}
.top-inner > form:last-child { justify-self: end; margin: 0; }
.brand { display: flex; align-items: center; gap: .9rem; width: max-content; }
.brand > a:first-child { display: inline-flex; align-items: center; }
.wordmark { width: 6.2rem; height: auto; display: block; }
.docs-label {
  padding-left: .85rem;
  border-left: 1px solid var(--line);
  color: var(--moss);
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
}
.search {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--surface);
}
.search:focus-within { border-color: var(--moss); }
.search-icon {
  position: relative;
  flex: 0 0 auto;
  width: .7rem;
  height: .7rem;
  margin: 0 .75rem 0 .9rem;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}
.search-icon::after {
  position: absolute;
  content: "";
  width: .35rem;
  height: 1.5px;
  bottom: -.12rem;
  right: -.24rem;
  background: var(--muted);
  transform: rotate(45deg);
}
.search input {
  flex: 1;
  width: 0;
  min-width: 0;
  padding: .48rem .25rem;
  border: 0;
  border-radius: .3rem;
  background: transparent;
  font-size: .94rem;
}
.search input:focus-visible { outline-offset: 0; }
.search button, .sign-out {
  padding: .42rem .7rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: var(--moss);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}
.search button { margin-right: .16rem; }
.search button:hover, .sign-out:hover { background: var(--tint); }
.docs-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) minmax(0, 48rem) minmax(9rem, 13rem);
  align-items: start;
  gap: clamp(1.8rem, 4vw, 4.2rem);
  max-width: 91rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.5vw, 3rem);
}
.sidebar, .toc {
  position: sticky;
  top: var(--header-height);
  max-height: calc(100dvh - var(--header-height));
  overflow: auto;
  padding: 3.15rem .35rem 2rem 0;
  font-size: .9rem;
}
.sidebar { border-right: 1px solid var(--line); min-height: calc(100dvh - var(--header-height)); }
.sidebar ul, .toc ul, .mobile-nav ul, .search-results { margin: 0; padding: 0; list-style: none; }
.nav-group { margin-bottom: 1.45rem; }
.nav-group p, .toc p {
  margin: 0 0 .38rem;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
}
.nav-group a, .toc a {
  display: block;
  padding: .35rem .5rem;
  border-radius: .32rem;
  color: var(--muted);
  line-height: 1.4;
  text-decoration: none;
}
.nav-group a[aria-current], .nav-group a:hover, .toc a:hover {
  background: var(--tint);
  color: var(--ink);
}
.nav-group a[aria-current] { font-weight: 700; }
.toc a { padding-left: 0; }
.toc a:hover { background: transparent; text-decoration: underline; }
.mobile-nav { display: none; }
.article { min-width: 0; padding: clamp(2.1rem, 4.6vw, 4.25rem) 0 4rem; }
.article:focus { outline: 0; }
.article-head { margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.breadcrumb {
  display: flex;
  gap: .55rem;
  margin: 0 0 .7rem;
  color: var(--muted);
  font-size: .875rem;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
h1, h2 { line-height: 1.14; }
h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.55rem);
  letter-spacing: -.052em;
}
.lede {
  max-width: 39rem;
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.15vw, 1.2rem);
}
.doc-section { margin: 0 0 2.65rem; }
.doc-section h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.45rem, 2.5vw, 1.82rem);
  letter-spacing: -.035em;
}
.doc-section p { margin: .75rem 0; }
.steps { padding-left: 1.4rem; margin: .65rem 0; }
.steps li { padding-left: .25rem; margin: 0 0 .6rem; }
.steps li::marker { color: var(--moss); font-weight: 700; }
code, kbd {
  font: .9em/1.5 ui-monospace, "SF Mono", Consolas, monospace;
  background: var(--tint);
  border-radius: .24rem;
  padding: .08rem .29rem;
  overflow-wrap: anywhere;
}
kbd { border: 1px solid var(--line); }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.topic, .article-footer a, .search-results a {
  display: flex;
  flex-direction: column;
  gap: .24rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.4;
  text-decoration: none;
}
.topic:hover, .article-footer a:hover, .search-results a:hover { border-color: var(--moss); background: var(--tint); }
.topic span, .article-footer span, .search-results span { color: var(--muted); font-size: .9rem; }
figure { margin: 1.2rem 0; }
.capture img, .walkthrough video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: .68rem;
  background: #171719;
}
.walkthrough video { aspect-ratio: 16 / 9; object-fit: contain; }
figcaption { margin-top: .48rem; font-size: .91rem; color: var(--muted); }
figcaption strong { color: var(--ink); }
.example {
  margin: 1rem 0;
  padding: .78rem 1rem;
  border-left: 3px solid var(--moss);
  border-radius: 0 .35rem .35rem 0;
  background: var(--tint);
}
.example span { color: var(--moss); font-weight: 700; font-size: .88rem; }
.example p { margin: .25rem 0 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .55rem; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: .68rem .75rem; text-align: left; vertical-align: top; }
thead { background: var(--tint); }
tbody { background: var(--surface); }
tbody tr + tr { border-top: 1px solid var(--line); }
.article-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}
.article-footer a:last-child { text-align: right; }
.search-results { display: grid; gap: .7rem; }
.auth-top { display: flex; }
.auth-main { padding: clamp(3.3rem, 11vh, 7rem) 1rem 4rem; display: grid; place-items: start center; }
.auth-card {
  width: min(100%, 32rem);
  padding: clamp(1.35rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--surface);
}
.auth-card h1 { font-size: clamp(1.9rem, 5.5vw, 2.72rem); }
.auth-card p { margin: .7rem 0 1.35rem; color: var(--muted); overflow-wrap: anywhere; }
.auth-form { display: grid; gap: .55rem; }
.auth-form label { font-weight: 700; font-size: .94rem; }
.auth-form input:not([type="hidden"]) {
  min-width: 0;
  width: 100%;
  min-height: 2.9rem;
  padding: .55rem .72rem;
  border: 1px solid #a4aca0;
  border-radius: .45rem;
  background: #fff;
}
.primary {
  margin-top: .38rem;
  min-height: 2.9rem;
  padding: .55rem .8rem;
  border: 1px solid var(--moss);
  border-radius: .45rem;
  background: var(--moss);
  color: #fff;
  font-weight: 700;
}
.primary:hover { background: var(--ink); }
.auth-card .form-error {
  padding: .5rem .7rem;
  border-left: 3px solid #8c2933;
  background: #f9eded;
  color: #85262f;
}
.resend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45rem 1rem; margin-top: .9rem; font-size: .92rem; }
.text-button { padding: 0; background: transparent; border: 0; color: var(--moss); text-decoration: underline; text-underline-offset: .19em; }
@media (max-width: 70rem) {
  .docs-layout { grid-template-columns: minmax(10rem, 13rem) minmax(0, 48rem); }
  .toc { display: none; }
}
@media (max-width: 48rem) {
  :root { --header-height: 7rem; }
  html { scroll-padding-top: 8.2rem; }
  .top-inner { grid-template-columns: 1fr auto; gap: .45rem .7rem; padding-block: .55rem; }
  .top-inner .search { grid-column: 1 / -1; grid-row: 2; }
  .auth-top { min-height: 3.8rem; }
  .docs-layout { display: block; }
  .sidebar { display: none; }
  .mobile-nav { display: block; border-bottom: 1px solid var(--line); padding: .55rem 0; }
  .mobile-nav summary { cursor: pointer; color: var(--moss); font-weight: 700; }
  .mobile-nav nav { padding: .75rem .1rem .2rem; }
  .mobile-nav .nav-group { margin-bottom: .8rem; }
  .article { padding-top: 1.8rem; }
}
@media (max-width: 34rem) {
  .topic-grid { grid-template-columns: 1fr; }
  th, td { padding: .52rem; }
}

.capture-portrait { max-width: 24rem; }
.mobile-toc { display: none; }

@media (max-width: 70rem) {
  .mobile-toc {
    display: block;
    margin-bottom: 1.65rem;
    padding: .6rem .75rem;
    border: 1px solid var(--line);
    border-radius: .4rem;
    color: var(--muted);
  }
  .mobile-toc summary { cursor: pointer; color: var(--ink); font-weight: 700; }
  .mobile-toc ul { margin: .5rem 0 0; padding-left: 1.3rem; }
}
