/* Public documentation (/docs). Generated pages come from scripts/hero/build-docs.py.
   Scoped under .docs so the shared navigation, footer and Webflow styles are untouched.

   Same tokens as the marketing kit (public/assets/pages.css?v=d573ae898c): ink #171717, text #525252,
   muted #737373, line #e5e5e5, brand #2563eb. The type scale and weights come from design.css,
   which every page already loads. The kit's components are copied here rather than loaded,
   because pages.css needs rest.css and platform3.css with it. */

.docs {
  --doc-ink: #171717;
  --doc-text: #3a3a3a;
  --doc-soft: #525252;
  --doc-faint: #737373;
  --doc-line: #e5e5e5;
  --doc-line-soft: #f0f0f0;
  --doc-bg-soft: #fafafa;
  --doc-accent: #2563eb;
  --doc-accent-soft: #e8efff;
  --doc-accent-tint: #f4f7ff;
  --doc-radius: 12px;
  --doc-top: 92px;
  --doc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #fff;
  color: var(--doc-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: var(--track-text, -0.0075em);
  display: block;
}

.docs h1,
.docs h2,
.docs h3,
.docs h4,
.docs summary,
.docs strong,
.docs kbd {
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
}

/* The Webflow base styles set a size, tracking and colour on bare elements, per breakpoint. Hand
   those back to the documentation's own scale; :where() keeps this below every class rule here. */
:where(.docs) :is(p, li, figcaption, summary) {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

:where(.docs) a {
  font-weight: inherit;
}

:where(.docs) figure {
  margin: 0;
}

:where(.docs) figcaption {
  text-align: left;
}

.docs-grid {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 232px;
  gap: 0 56px;
  align-items: start;
  max-width: 1380px;
  margin: 0 auto;
  padding: 36px 32px 112px;
}

/* ------------------------------------------------------------------ sidebar */

.docs-sidebar {
  position: sticky;
  top: var(--doc-top);
  align-self: start;
  max-height: calc(100vh - var(--doc-top) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  border-right: 1px solid var(--doc-line-soft);
}

.docs-sidebar__mobile > summary {
  display: none;
}

.docs-search__button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  margin-bottom: 24px;
  border: 1px solid var(--doc-line);
  border-radius: 9px;
  background: #fff;
  color: var(--doc-faint);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.docs-search__button:hover {
  border-color: #a3a3a3;
  color: var(--doc-ink);
}

.docs-search__button svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.docs-search__button span {
  flex: 1;
  text-align: left;
}

.docs-search__button kbd {
  font-family: var(--doc-mono);
  font-size: 11px;
  color: var(--doc-faint);
  background: var(--doc-bg-soft);
  border: 1px solid var(--doc-line);
  border-radius: 5px;
  padding: 1px 5px;
}

.docs-navgroup {
  margin-bottom: 26px;
}

/* Eyebrow of the kit (.lpg-eye): sentence case, with the 8px brand square. */
.docs-navgroup > p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--doc-ink);
}

.docs-navgroup > p::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--doc-accent);
}

.docs-navgroup > p.is-toggle {
  cursor: pointer;
  border-radius: 8px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-bottom: 3px;
  user-select: none;
}

.docs-navgroup > p.is-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-right: 1.5px solid var(--doc-faint);
  border-bottom: 1.5px solid var(--doc-faint);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}

.docs-navgroup.is-folded > p.is-toggle::after {
  transform: translateX(-2px) rotate(-45deg);
}

.docs-navgroup > p.is-toggle:hover {
  background: var(--doc-bg-soft);
}

.docs-navgroup > p.is-toggle:focus-visible {
  outline: 2px solid var(--doc-accent);
  outline-offset: -2px;
}

.docs-navgroup.is-folded {
  margin-bottom: 8px;
}

.docs-navgroup.is-folded > ul {
  display: none;
}

.docs-navgroup ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-navgroup li {
  margin: 0;
}

.docs-navgroup a {
  display: block;
  padding: 6px 10px 6px 28px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--doc-soft);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.docs-navgroup a:hover {
  background: var(--doc-bg-soft);
  color: var(--doc-ink);
}

.docs-navgroup a.is-active {
  background: var(--doc-accent-tint);
  color: var(--doc-accent);
  font-weight: 500;
}

/* ------------------------------------------------------------------ article */

.docs-article {
  min-width: 0;
  max-width: 760px;
  padding-top: 4px;
}

.docs-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--doc-faint);
}

.docs-crumbs a {
  color: var(--doc-faint);
  text-decoration: none;
}

.docs-crumbs a:hover {
  color: var(--doc-ink);
}

.docs-crumbs span[aria-hidden] {
  color: #d4d4d4;
  font-weight: 400;
}

.docs-crumbs > span:last-child {
  color: var(--doc-ink);
}

.docs-article h1 {
  margin: 0 0 16px;
  font-size: var(--fs-heading-m, 36px);
  line-height: 1.1;
  letter-spacing: var(--track-heading, -0.03em);
  font-weight: var(--fw-heading, 450);
  color: var(--doc-ink);
  text-wrap: balance;
}

.docs-lead {
  margin: 0 0 36px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--doc-soft);
  text-wrap: pretty;
}

/* The hub opens on the landscape the product rows of the homepage stand on. */
.docs-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 32px;
  padding: 40px 40px 44px;
  border-radius: 14px;
  background: #1c2a52 var(--bg) center 10% / cover no-repeat;
  color: #fff;
  isolation: isolate;
}

.docs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 16, 42, 0.55) 0%, rgba(9, 16, 42, 0.3) 60%, rgba(9, 16, 42, 0.12) 100%);
}

.docs-hero--shot {
  padding-bottom: 0;
  background-position: center top;
}

.docs-article .docs-hero h1 {
  max-width: 18ch;
  margin-bottom: 14px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(5, 8, 20, 0.25);
}

.docs-hero .docs-lead {
  max-width: 52ch;
  margin: 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.86);
}

/* Only the top of the screen shows: the application rises out of the landscape. */
.docs-hero__shot {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  object-position: left top;
  margin-top: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #fff;
  box-shadow: 0 20px 50px rgba(10, 20, 40, 0.3);
}

.docs-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--doc-text);
}

.docs-body h2 {
  margin: 56px 0 16px;
  font-size: var(--fs-heading-xs, 24px);
  line-height: var(--lh-heading, 1.2);
  letter-spacing: -0.025em;
  font-weight: var(--fw-heading, 450);
  color: var(--doc-ink);
  scroll-margin-top: calc(var(--doc-top) + 16px);
  text-wrap: balance;
}

.docs-body h3 {
  margin: 32px 0 10px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--doc-ink);
  scroll-margin-top: calc(var(--doc-top) + 16px);
}

.docs-body p {
  margin: 0 0 16px;
}

.docs-body ul,
.docs-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.docs-body li {
  margin-bottom: 8px;
}

/* The kit's bullet: a hollow circle. */
.docs-body > ul {
  list-style: none;
  padding-left: 0;
}

.docs-body > ul > li {
  position: relative;
  padding-left: 22px;
}

.docs-body > ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc((1lh - 9px) / 2);
  box-sizing: border-box;
  width: 9px;
  height: 9px;
  border: 1.5px solid #a3a3a3;
  border-radius: 50%;
}

.docs-body strong {
  font-weight: 600;
  color: var(--doc-ink);
}

.docs-body a {
  color: var(--doc-accent);
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.15s ease;
}

.docs-body a:hover {
  text-decoration-color: var(--doc-accent);
}

.docs-body code {
  font-family: var(--doc-mono);
  font-size: 0.875em;
  letter-spacing: 0;
  background: var(--doc-bg-soft);
  border: 1px solid var(--doc-line);
  border-radius: 5px;
  padding: 1px 5px;
}

/* steps: the kit's numbered steps (.lpg-step), a small brand number and hairline rows */

.docs-body .docs-steps {
  counter-reset: docstep;
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
  border-top: 1px solid var(--doc-line);
}

.docs-steps > li {
  position: relative;
  counter-increment: docstep;
  margin: 0;
  padding: 20px 0 20px 52px;
  border-bottom: 1px solid var(--doc-line);
}

.docs-steps > li::before {
  content: counter(docstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--doc-accent);
  font-variant-numeric: tabular-nums;
}

.docs-step__h {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--doc-ink);
}

.docs-steps p {
  margin: 0;
  color: var(--doc-soft);
}

.docs-steps .docs-shot {
  margin: 16px 0 4px;
}

/* callouts: the kit's prompt box, a tint with a 2px rule on the left */

.docs-callout {
  display: block;
  margin: 24px 0;
  padding: 14px 18px;
  border: 0;
  border-left: 2px solid var(--doc-accent);
  border-radius: 0 10px 10px 0;
  background: var(--doc-accent-tint);
  color: var(--doc-ink);
}

.docs-callout strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--doc-accent);
}

.docs-callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.docs-callout--tip {
  border-left-color: #1fc16b;
  background: #f3faf6;
}

.docs-callout--tip strong {
  color: #137a45;
}

.docs-callout--warn {
  border-left-color: #d98a2b;
  background: #fdf8f1;
}

.docs-callout--warn strong {
  color: #9a5a12;
}

/* figures */

.docs-figure {
  margin: 28px 0 30px;
  padding: 20px 20px 12px;
  border: 1px solid var(--doc-line);
  border-radius: var(--doc-radius);
  background: #fff;
  overflow-x: auto;
}

.docs-svg {
  display: block;
  min-width: 540px;
  height: auto;
}

.docs-figure figcaption,
.docs-shot figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--doc-soft);
}

/* screenshots and clips of the interface: the kit's .lpg-shot frame */

.docs-shot {
  margin: 28px 0 30px;
}

.docs-shot__frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--doc-line);
  border-radius: var(--doc-radius);
  background: #fff;
  box-shadow: 0 14px 40px rgba(10, 20, 40, 0.08);
}

.docs-shot:not(.docs-shot--stage) .docs-shot__frame {
  max-width: var(--w, none);
  margin-inline: auto;
}

.docs-shot img,
.docs-shot video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: var(--doc-bg-soft);
}

.docs-shot img.is-zoomable,
.docs-shot video.is-zoomable {
  cursor: zoom-in;
}

.docs-shot img.is-zoomable:focus-visible,
.docs-shot__toggle:focus-visible {
  outline: 2px solid var(--doc-accent);
  outline-offset: -2px;
}

/* a long screen is cut to a readable height in the article; a click opens all of it */
.docs-shot--tall .docs-shot__frame {
  max-height: 720px;
}

.docs-shot--tall .docs-shot__frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.docs-steps .docs-shot--tall .docs-shot__frame {
  max-height: 560px;
}

/* the kit's .lpg-frame: the screenshot rises out of a landscape */
.docs-shot--stage .docs-shot__frame {
  padding: 40px 44px 0;
  border: 0;
  border-radius: 14px;
  background: #dfe6f0 var(--bg) center / cover no-repeat;
  box-shadow: none;
}

.docs-shot--stage img,
.docs-shot--stage video {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #fff;
  box-shadow: 0 20px 50px rgba(10, 20, 40, 0.3);
}

.docs-shot__toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 23, 23, 0.72);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.docs-shot__toggle:hover {
  background: var(--doc-ink);
}

.docs-shot__frame:hover .docs-shot__toggle,
.docs-shot__toggle:focus-visible,
.docs-shot__toggle.is-pinned {
  opacity: 1;
}

.docs-shot__toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.docs-shot__toggle .docs-ico-pause,
.docs-shot__toggle.is-playing .docs-ico-play {
  display: none;
}

.docs-shot__toggle.is-playing .docs-ico-pause {
  display: block;
}

@media (hover: none) {
  .docs-shot__toggle {
    opacity: 1;
  }
}

.docs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(9, 16, 42, 0.78);
  cursor: zoom-out;
}

.docs-lightbox[hidden] {
  display: none;
}

.docs-lightbox.is-tall {
  align-items: flex-start;
  overflow-y: auto;
}

.docs-lightbox.is-tall img,
.docs-lightbox.is-tall video {
  max-width: min(100%, 1040px);
  max-height: none;
}

.docs-lightbox img,
.docs-lightbox video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(3, 8, 24, 0.5);
}

.docs-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.docs-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.26);
}

/* tables */

.docs-tablewrap {
  margin: 24px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--doc-line);
  border-radius: var(--doc-radius);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

.docs-table th,
.docs-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--doc-line-soft);
}

.docs-table thead th {
  background: var(--doc-bg-soft);
  border-bottom-color: var(--doc-line);
  font-size: 13px;
  font-weight: 500;
  color: var(--doc-faint);
  white-space: nowrap;
}

.docs-table tbody tr:last-child td {
  border-bottom: 0;
}

/* cards: the kit's tiles */

.docs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.docs-card,
.docs-body a.docs-card {
  display: block;
  padding: 22px 22px 20px;
  border: 1px solid var(--doc-line);
  border-radius: var(--doc-radius);
  text-decoration: none;
  background: #fff;
  transition: border-color 0.2s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.docs-card:hover {
  border-color: #a3a3a3;
  transform: translateY(-2px);
}

.docs-card strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--doc-ink);
  margin-bottom: 6px;
}

.docs-card span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--doc-soft);
}

.docs-arrow {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.docs-card .docs-arrow {
  color: var(--doc-accent);
  transition: translate 0.2s;
}

.docs-card:hover .docs-arrow {
  translate: 2px -2px;
}

/* faq */

.docs-faq {
  margin: 22px 0 8px;
  border-top: 1px solid var(--doc-line);
}

.docs-faq details {
  border-bottom: 1px solid var(--doc-line);
}

.docs-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--doc-ink);
  position: relative;
}

.docs-faq summary::-webkit-details-marker {
  display: none;
}

.docs-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 13px;
  font-size: 20px;
  font-weight: 400;
  color: var(--doc-faint);
}

.docs-faq details[open] summary::after {
  content: "–";
}

.docs-faq p {
  margin: 0 0 18px;
  color: var(--doc-soft);
}

/* pager + meta */

.docs-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 64px 0 18px;
}

.docs-pager a {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--doc-line);
  border-radius: var(--doc-radius);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.docs-pager a:hover {
  border-color: #a3a3a3;
  transform: translateY(-2px);
}

.docs-pager__next {
  text-align: right;
  grid-column: 2;
}

.docs-pager small {
  display: block;
  font-size: 13px;
  color: var(--doc-faint);
  margin-bottom: 3px;
}

.docs-pager strong {
  font-size: 16px;
  font-weight: 500;
  color: var(--doc-ink);
}

.docs-pager__prev strong::before {
  content: "\2190\00a0";
  color: var(--doc-accent);
}

.docs-pager__next strong::after {
  content: "\00a0\2192";
  color: var(--doc-accent);
}

.docs-updated {
  font-size: 13px;
  color: var(--doc-faint);
  margin: 0;
}

/* was this page helpful? + support */

.docs-feedback {
  margin: 56px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--doc-line);
}

.docs-feedback__ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.docs-feedback__ask[hidden] {
  display: none;
}

.docs-feedback__ask > p:first-child {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--doc-ink);
}

.docs-feedback__buttons {
  display: flex;
  gap: 8px;
}

.docs-feedback__buttons button {
  min-width: 64px;
  min-height: 36px;
  padding: 6px 16px;
  border: 1px solid var(--doc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--doc-ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.docs-feedback__buttons button:hover:not(:disabled) {
  border-color: #a3a3a3;
}

.docs-feedback__buttons button:focus-visible {
  outline: 2px solid var(--doc-accent);
  outline-offset: 2px;
}

.docs-feedback__buttons button:disabled {
  cursor: default;
  opacity: 0.55;
}

.docs-feedback__buttons button[aria-pressed="true"] {
  opacity: 1;
  border-color: var(--doc-accent);
  background: var(--doc-accent-tint);
  color: var(--doc-accent);
}

.docs-feedback__thanks {
  margin: 0;
  font-size: 14px;
  color: var(--doc-soft);
}

.docs-feedback__thanks:empty {
  display: none;
}

.docs-feedback__support {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--doc-soft);
}

.docs-feedback__support a {
  color: var(--doc-accent);
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.35);
  text-underline-offset: 0.2em;
}

/* related articles */

.docs-related {
  margin: 40px 0 0;
}

.docs .docs-related h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--doc-ink);
}

.docs-related ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-related li {
  margin: 0;
}

.docs-related a {
  display: block;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--doc-line);
  border-radius: var(--doc-radius);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.docs-related a:hover {
  border-color: #a3a3a3;
  transform: translateY(-2px);
}

.docs-related small {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--doc-faint);
}

.docs-related strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--doc-ink);
}

.docs-related + .docs-pager {
  margin-top: 24px;
}

@media (max-width: 860px) {
  .docs-related ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-related a,
  .docs-related a:hover {
    transition: none;
    transform: none;
  }
}

/* ------------------------------------------------------------------ right rail */

.docs-rail {
  position: sticky;
  top: var(--doc-top);
  align-self: start;
  max-height: calc(100vh - var(--doc-top) - 24px);
  overflow-y: auto;
  padding-top: 4px;
}

.docs-toc > p {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--doc-ink);
}

.docs-toc ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-left: 1px solid var(--doc-line);
}

.docs-toc li {
  margin: 0;
}

.docs-toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--doc-soft);
  text-decoration: none;
}

.docs-toc a:hover {
  color: var(--doc-ink);
}

.docs-toc a.is-current {
  color: var(--doc-accent);
  border-left-color: var(--doc-accent);
}

.docs-aside {
  padding: 20px;
  border: 1px solid var(--doc-line);
  border-radius: var(--doc-radius);
  background: var(--doc-bg-soft);
}

.docs-aside__logo {
  display: block;
  width: auto;
  height: 24px;
  margin: 0 0 16px;
}

.docs-aside p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--doc-soft);
}

.docs-aside p.docs-aside__t {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--doc-ink);
}

/* the kit's primary button (.button-v2-main) */
.docs-aside__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border: 1px solid var(--doc-ink);
  border-radius: 9px;
  background: var(--doc-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.docs-aside__cta:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.docs-aside__cta .docs-arrow {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

/* the kit's "learn more" link (.lp-more) */
.docs-aside__link {
  display: flex;
  align-items: center;
  gap: 0.35em;
  width: max-content;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--doc-ink);
  text-decoration: none;
  border-bottom: 0;
}

.docs-aside__link::after {
  content: "\2192";
  transition: translate 0.2s;
}

.docs-aside__link:hover {
  color: var(--doc-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.docs-aside__link:hover::after {
  translate: 3px 0;
}

/* ------------------------------------------------------------------ search modal */

.docs-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(9, 16, 42, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
}

.docs-modal[hidden] {
  display: none;
}

.docs-modal__box {
  width: min(640px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(3, 8, 24, 0.35);
  overflow: hidden;
}

.docs-modal input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--doc-line);
  padding: 18px 20px;
  font: inherit;
  font-size: 16px;
  color: var(--doc-ink);
  outline: none;
  background: #fff;
}

.docs-modal__results {
  max-height: min(56vh, 460px);
  overflow-y: auto;
  padding: 8px;
}

.docs-modal__hint,
.docs-modal__empty {
  margin: 0;
  padding: 18px 12px;
  font-size: 14px;
  color: var(--doc-faint);
}

.docs-result {
  display: block;
  padding: 11px 12px;
  border-radius: 9px;
  text-decoration: none;
}

.docs-result:hover,
.docs-result:focus-visible,
.docs-result.is-current {
  background: var(--doc-accent-tint);
  outline: none;
}

.docs-result strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--doc-ink);
  margin-bottom: 2px;
}

.docs-result span {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--doc-soft);
}

.docs-result mark {
  background: var(--doc-accent-soft);
  color: var(--doc-ink);
  border-radius: 3px;
  padding: 0 2px;
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1180px) {
  .docs-grid {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 0 40px;
  }

  .docs-rail {
    display: none;
  }
}

@media (max-width: 860px) {
  .docs-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 18px 72px;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--doc-line);
    padding: 0 0 16px;
    margin-bottom: 24px;
  }

  .docs-sidebar__mobile > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    padding: 11px 14px;
    border: 1px solid var(--doc-line);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--doc-ink);
  }

  .docs-sidebar__mobile > summary::-webkit-details-marker {
    display: none;
  }

  .docs-sidebar__mobile > summary::after {
    content: "▾";
    color: var(--doc-faint);
  }

  .docs-sidebar__in {
    padding-top: 18px;
  }

  .docs-lead {
    font-size: 17px;
    margin-bottom: 28px;
  }

  .docs-hero {
    margin-bottom: 26px;
    padding: 28px 22px 32px;
  }

  .docs-hero--shot {
    padding-bottom: 0;
  }

  .docs-hero .docs-lead {
    margin: 0;
    font-size: 16px;
  }

  .docs-hero__shot {
    max-height: 180px;
    margin-top: 26px;
  }

  .docs-body h2 {
    margin-top: 44px;
  }

  .docs-steps > li {
    padding-left: 38px;
  }

  .docs-shot--stage .docs-shot__frame {
    padding: 18px 14px 0;
  }

  .docs-lightbox {
    padding: 12px;
  }

  .docs-cards,
  .docs-pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-pager__next {
    grid-column: 1;
    text-align: left;
  }
}
