/* _generatedBy: scripts/build-site-docs.js — do not edit */

/* Docs shell — loads after /css/subpage.css and reuses its tokens and chrome.
   Light/dark follows the system preference via the subpage.css token swap. */

html {
  scroll-padding-top: 84px;
}

.skip-link {
  position: absolute;
  top: -52px;
  left: 16px;
  z-index: 120;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 12px;
}

/* --- Layout ------------------------------------------------------------- */

.docs-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 24px 56px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  align-items: start;
}

.docs-menu-button {
  display: none;
}

.docs-sidebar {
  position: sticky;
  top: 62px;
  max-height: calc(100vh - 62px);
  overflow-y: auto;
  padding: 30px 16px 40px 0;
  border-right: 1px solid var(--line);
}

.docs-main {
  min-width: 0;
  padding: 34px 0 90px;
}

/* --- Sidebar navigation -------------------------------------------------- */

.docs-nav ul,
.docs-overview-link {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.docs-group-label {
  margin: 20px 0 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.docs-nav a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.docs-nav a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.docs-nav a[aria-current='page'] {
  border-left-color: var(--accent);
  color: var(--ink);
  font-weight: 650;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

/* --- Search --------------------------------------------------------------- */

.docs-search {
  position: relative;
  margin-bottom: 10px;
}

.docs-search input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 13.5px;
}

.docs-search input::placeholder {
  color: var(--muted);
}

.docs-search-results {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  max-height: 340px;
  overflow-y: auto;
}

.docs-search-results a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
}

.docs-search-results a:hover,
.docs-search-results a:focus-visible {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.docs-search-results strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
}

.docs-search-results span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.docs-search-empty {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
}

/* --- Breadcrumbs, notes, hero --------------------------------------------- */

.docs-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
}

.docs-breadcrumbs li + li::before {
  content: '›';
  margin: 0 7px;
  color: var(--muted);
}

.docs-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

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

.docs-breadcrumbs [aria-current='page'] {
  color: var(--ink);
}

.transition-note {
  margin: 0 0 26px;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-left-width: 4px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  font-size: 13.5px;
}

.transition-note p {
  max-width: 72ch;
  color: var(--muted);
}

.transition-note-title {
  margin-bottom: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.docs-hero {
  margin-bottom: 30px;
}

.docs-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(32px, 5vw, 44px);
}

/* --- Landing cards --------------------------------------------------------- */

.docs-card-group {
  margin-top: 34px;
}

.docs-card-group h2 {
  margin-bottom: 14px;
}

.docs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.docs-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  transition: transform 180ms var(--ease-out), border-color 180ms ease, box-shadow 180ms ease;
}

.docs-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.docs-card h3 {
  margin-bottom: 6px;
  font-size: 15.5px;
}

.docs-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* --- Table of contents ------------------------------------------------------ */

.docs-toc {
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
}

.docs-toc-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.docs-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-toc li {
  margin: 5px 0;
}

.docs-toc .toc-level-3 {
  padding-left: 16px;
}

.docs-toc a {
  color: var(--muted);
  text-decoration: none;
}

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

/* --- Article typography ------------------------------------------------------ */

.docs-content h1 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.6vw, 40px);
  letter-spacing: -0.5px;
}

.docs-content h2 {
  margin: 42px 0 0;
  font-size: clamp(20px, 3vw, 25px);
  letter-spacing: -0.2px;
}

.docs-content h3 {
  margin: 30px 0 0;
  font-size: 17px;
}

.docs-content h4 {
  margin: 24px 0 0;
  font-size: 15px;
  font-family: var(--display);
}

.docs-content p,
.docs-content li {
  margin-top: 13px;
  max-width: 72ch;
}

.docs-content li {
  margin-top: 8px;
}

.docs-content ul,
.docs-content ol {
  margin: 4px 0 0;
  padding-left: 24px;
}

.docs-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.docs-content blockquote {
  margin: 18px 0 0;
  padding: 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.docs-content code {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-raised);
  font-family: var(--mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.docs-content pre {
  position: relative;
  margin: 16px 0 0;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
}

.docs-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
  overflow-wrap: normal;
}

.docs-content pre[data-lang]:not([data-lang='text'])::before {
  content: attr(data-lang);
  position: absolute;
  top: 9px;
  right: 74px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docs-content pre[data-copy-fallback]::before {
  display: none;
}

.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 650;
  transition: color 140ms ease, border-color 140ms ease;
}

.code-copy:hover {
  color: var(--ink);
  border-color: var(--muted);
}

.heading-anchor {
  margin-left: 9px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  opacity: 0;
  transition: opacity 140ms ease;
}

.heading-anchor:hover {
  color: var(--accent);
}

h2:hover .heading-anchor,
h3:hover .heading-anchor,
h4:hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.docs-content th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  text-align: left;
  text-transform: uppercase;
}

.docs-content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

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

.docs-content .align-right {
  text-align: right;
}

.docs-content .align-center {
  text-align: center;
}

/* --- Prev/next pager --------------------------------------------------------- */

.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.docs-pager a {
  display: grid;
  gap: 3px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 160ms ease, transform 180ms var(--ease-out);
}

.docs-pager a:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.docs-pager a span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.docs-pager a strong {
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 650;
}

.docs-pager-next {
  text-align: right;
}

/* --- Wide screens: table of contents moves to a right rail -------------------- */

@media (min-width: 1200px) {
  .docs-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 212px;
    gap: 46px;
  }

  .docs-toc {
    position: sticky;
    top: 96px;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin: 0;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
  }

  .docs-content {
    grid-column: 1;
    grid-row: 1;
  }
}

/* --- Narrow screens: sidebar collapses behind the menu button ------------------ */

@media (max-width: 899px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .docs-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0 0;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 650;
    justify-self: start;
  }

  .docs-sidebar {
    display: none;
    position: static;
    max-height: none;
    padding: 18px 0 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .docs-body[data-nav-open] .docs-sidebar {
    display: block;
  }

  .docs-main {
    padding-top: 26px;
  }

  .docs-pager {
    grid-template-columns: 1fr;
  }

  .docs-pager-next {
    text-align: left;
  }
}
