/* App-owned docs use the product's type, tokens and controls. This stylesheet
   belongs to the trusted web release, not the cell that selects the content. */
.docs-topbar,
.docs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  max-width: var(--measure-read);
  margin: 0 auto;
  padding: var(--s-5) var(--s-6);
}
.docs-topbar {
  border-bottom: 1px solid var(--rule);
}
.docs-topbar .ink-mark {
  display: block;
  width: 120px;
  height: 32px;
}
.docs-footer {
  border-top: 1px solid var(--rule);
}
.docs-body {
  max-width: var(--measure-read);
  margin: 0 auto;
  padding: var(--s-9) var(--s-6) var(--s-12);
  font-size: 16px;
  line-height: 1.6;
}
.docs-page a {
  color: var(--fg-0);
  text-decoration: underline;
  text-decoration-color: var(--fg-3);
  text-underline-offset: 0.18em;
}
.docs-page a:hover {
  text-decoration-color: currentColor;
}
.docs-page a:focus-visible,
.docs-fold > summary:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.docs-body h1,
.docs-body h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--fw-reg);
  line-height: 1.15;
  color: var(--fg-0);
}
.docs-body h1 {
  margin: var(--s-7) 0;
  font: var(--fw-med) italic var(--fs-h1) / 1.05 var(--font-serif);
  text-wrap: balance;
}
@media (max-width: 760px) {
  .docs-body h1 {
    font-size: var(--fs-h1-phone);
    line-height: 1.1;
  }
}
.docs-body h2 {
  margin: var(--s-11) 0 var(--s-6);
  font-size: clamp(22px, 2.2vw, 30px);
}
.docs-body h3 {
  margin: var(--s-9) 0 var(--s-4);
  color: var(--fg-0);
  font: var(--fw-med) var(--fs-mono-body) / 1.5 var(--font-mono);
}
.docs-body p,
.docs-body ul,
.docs-body ol {
  max-width: 72ch;
  margin: 0 0 var(--s-6);
}
.docs-body li {
  margin: var(--s-4) 0;
}
.docs-body strong {
  color: var(--fg-0);
  font-weight: var(--fw-med);
}
.docs-body code,
.docs-body pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}
.docs-body pre {
  padding: var(--s-5);
  overflow-x: auto;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
}
.docs-body pre code {
  font-size: inherit;
}
.docs-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: var(--fs-body);
}
.docs-body th,
.docs-body td {
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.docs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: var(--s-5) 0;
  font: var(--fs-mono-small) / 1.5 var(--font-mono);
}
.docs-anchor {
  scroll-margin-top: var(--s-6);
}
.docs-shot {
  margin: var(--s-6) 0 var(--s-8);
}
.docs-video {
  display: block;
  width: 100%;
  margin: var(--s-6) 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
}
.docs-shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r-2);
}
.docs-shot figcaption {
  margin-top: var(--s-3);
  font-size: var(--fs-body);
  color: var(--fg-2);
}
.docs-image-dark,
:root[data-theme="dark"] .docs-image-light {
  display: none;
}
:root[data-theme="dark"] .docs-image-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .docs-image-light {
    display: none;
  }
  :root[data-theme="system"] .docs-image-dark {
    display: block;
  }
}
.docs-after,
.docs-shot:has(input[value="after"]:checked) .docs-before {
  display: none;
}
.docs-shot:has(input[value="after"]:checked) .docs-after {
  display: block;
}
.docs-comparison {
  display: flex;
  gap: var(--s-3);
  border: 0;
  padding: 0;
  margin: 0 0 var(--s-4);
}
.docs-comparison legend {
  padding: 0;
  margin-bottom: var(--s-3);
  font-size: var(--fs-body);
}
.docs-comparison label {
  display: inline-flex;
  align-items: center;
}
.docs-comparison label:has(:checked) {
  border-color: var(--fg-0);
  background: color-mix(in oklab, var(--fg-0) 8%, transparent);
  color: var(--fg-0);
}
.docs-comparison label:has(:focus-visible) {
  outline: 2px solid transparent;
  box-shadow: var(--shadow-focus);
}
.docs-fold {
  max-width: 72ch;
  margin: var(--s-5) 0 var(--s-8);
  border-top: 1px solid var(--rule);
}
.docs-fold > summary {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  cursor: pointer;
  list-style: none;
  color: var(--fg-0);
}
.docs-fold > summary::-webkit-details-marker {
  display: none;
}
.docs-fold > summary::before {
  content: "+";
  font-family: var(--font-mono);
}
.docs-fold[open] > summary::before {
  content: "−";
}
