@font-face {
  font-family: Space Grotesk;
  src: url("/assets/space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f4f4ed;
  --surface: #fff;
  --surface-soft: #eceee5;
  --ink: #1a1d18;
  --muted: #62685b;
  --line: #daddd0;
  --lime: #c5f953;
  --accent: #416609;
  --code: #151b19;
  --font: "Space Grotesk", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141914;
  --surface: #1c231c;
  --surface-soft: #222b23;
  --ink: #edf0e4;
  --muted: #a6b39e;
  --line: #354134;
  --accent: #c5f953;
  --code: #0c120e;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: var(--lime);
  color: #1a1d18;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.portal-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: var(--lime);
  color: #1a1d18;
  padding: 12px;
  transform: translateY(-160%);
}
.portal-skip:focus {
  transform: none;
}
.portal-header {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 30;
}
.portal-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1.8px;
  line-height: 1;
}
.portal-brand-dot {
  color: #779d37;
}
.portal-brand-mark {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-right: 9px;
  transform: skew(-12deg);
}
.portal-brand-mark i {
  display: block;
  width: 23px;
  height: 5px;
  background: currentColor;
}
.portal-brand-mark i:nth-child(2) {
  width: 17px;
}
.portal-brand-mark i:nth-child(3) {
  width: 8px;
}
.portal-nav {
  display: flex;
  gap: 25px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.portal-nav a {
  padding: 29px 0;
  border-bottom: 2px solid transparent;
}
.portal-nav a:hover,
.portal-nav a[aria-current] {
  border-color: var(--accent);
}
.portal-tools {
  display: flex;
  flex-shrink: 0;
  gap: 14px;
  align-items: center;
  margin-left: auto;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 12px;
}
.search-trigger kbd {
  font: 11px var(--mono);
}
.theme-toggle {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 24px;
  min-width: 32px;
  min-height: 40px;
}
.version-badge {
  font: 11px var(--mono);
  border: 1px solid var(--line);
  padding: 6px 8px;
  border-radius: 4px;
}
.mobile-navigation {
  display: none;
}
.portal-container {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
  padding-bottom: 90px;
}
.portal-hero {
  padding: 76px 0 52px;
  max-width: 840px;
}
.portal-eyebrow {
  font: 600 11px var(--mono);
  letter-spacing: 1.7px;
  color: var(--muted);
  margin-bottom: 23px;
  text-transform: uppercase;
}
.portal-eyebrow span {
  font-size: 18px;
  margin-right: 8px;
  color: var(--accent);
}
.portal-hero h1 {
  font-weight: 500;
  letter-spacing: -3px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.06;
  max-width: 880px;
}
.portal-lead {
  margin-top: 25px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 670px;
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.portal-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    transform 0.2s,
    border-color 0.2s;
  min-height: 265px;
}
.portal-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.card-kicker {
  font: 10px var(--mono);
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 34px;
}
.card-icon {
  position: absolute;
  right: 25px;
  top: 22px;
  color: var(--accent);
  font-size: 29px;
}
.portal-card h2 {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
  font-weight: 500;
}
.portal-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 25px;
}
.card-action {
  font-size: 12px;
  font-weight: 600;
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.section-label {
  margin: 60px 0 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 24px;
  letter-spacing: -0.6px;
}
.section-label span {
  font: 11px var(--mono);
  color: var(--muted);
}
.portal-callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 22px 25px;
  background: var(--surface);
  margin: 26px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.portal-callout strong {
  color: var(--ink);
}
.portal-callout a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.portal-button {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
}
.portal-button.secondary {
  background: var(--surface);
  color: var(--ink);
}
.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0;
}
.portal-footer {
  border-top: 1px solid var(--line);
  padding: 40px;
  display: flex;
  gap: 35px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.portal-footer p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}
.portal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  font-size: 12px;
  margin-left: auto;
}
.portal-footer .footer-license {
  width: 100%;
  font: 10px var(--mono);
  letter-spacing: 0.7px;
}
.docs-frame {
  display: grid;
  grid-template-columns: 250px minmax(0, 800px) 210px;
  justify-content: center;
  min-height: calc(100vh - 80px);
}
.docs-sidebar {
  border-right: 1px solid var(--line);
  padding: 30px 20px 50px 24px;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 10px var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
  padding: 3px 8px 25px;
}
.sidebar-label a {
  border: 1px solid var(--line);
  padding: 3px 5px;
  border-radius: 3px;
}
.doc-group {
  margin-bottom: 25px;
}
.doc-group a {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  border-radius: 4px;
  padding: 7px 9px;
  margin: 2px 0;
}
.doc-group a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}
.doc-group a[aria-current] {
  background: var(--surface-soft);
  color: var(--accent);
  box-shadow: inset 2px 0 var(--accent);
}
.doc-main {
  padding: 34px 54px 75px;
  min-width: 0;
}
.doc-breadcrumb {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 35px;
}
.doc-title .portal-eyebrow {
  font-size: 9px;
  margin-bottom: 12px;
}
.doc-title h1 {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -1.8px;
}
.doc-description {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin-top: 18px;
}
.doc-source {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 10px;
  color: var(--muted);
  padding: 21px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.doc-source a:hover {
  color: var(--accent);
}
.doc-toc {
  padding: 43px 24px 30px 12px;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow: auto;
  scrollbar-width: thin;
}
.doc-toc p {
  font: 9px var(--mono);
  letter-spacing: 1.4px;
  margin-bottom: 18px;
  color: var(--muted);
}
.doc-toc a {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.doc-toc a:hover,
.doc-toc a[data-active] {
  color: var(--accent);
  border-color: var(--accent);
}
.prose {
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.prose > :first-child {
  margin-top: 0;
}
.prose p {
  margin: 17px 0;
}
.prose h1 {
  font-size: 32px;
}
.prose h2 {
  font-size: 27px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.7px;
  margin: 42px 0 18px;
}
.prose h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 28px 0 14px;
}
.prose h4 {
  font-size: 16px;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose ul,
.prose ol {
  padding-left: 23px;
}
.prose li {
  margin: 7px 0;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.83em;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 2px 5px;
  border-radius: 4px;
}
.prose pre {
  overflow: auto;
  padding: 24px;
  border-radius: 7px;
  background: var(--code);
  color: #e1e8dd;
  font: 12px/1.85 var(--mono);
  tab-size: 2;
  margin: 20px 0;
  max-width: 100%;
}
.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}
.code-block,
.code-frame,
.code-example {
  position: relative;
  min-width: 0;
}
.code-block pre,
.code-frame pre {
  padding-top: 42px;
}
.prose [data-copy-code] {
  position: absolute;
  right: 12px;
  top: 8px;
  background: #263128;
  border: 1px solid #475544;
  border-radius: 3px;
  color: #e5eedc;
  font: 10px var(--mono);
  padding: 5px 9px;
  z-index: 1;
}
.prose table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 12px;
}
.prose td,
.prose th {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}
.prose th {
  font-size: 11px;
  background: var(--surface-soft);
  font-weight: 600;
}
.prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 3px 22px;
  background: var(--surface);
  color: var(--muted);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 35px 0;
}
.prose img {
  max-width: 100%;
}
.prose details {
  border: 1px solid var(--line);
  padding: 18px;
  margin: 20px 0;
  border-radius: 5px;
}
.prose summary {
  font-weight: 500;
  cursor: pointer;
}
.page-feedback {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 27px 0;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 50px;
}
.page-feedback a {
  color: var(--accent);
}
.doc-neighbours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.doc-neighbours a {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 5px;
  background: var(--surface);
}
.doc-neighbours span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.doc-neighbours strong {
  font-size: 13px;
  font-weight: 500;
}
.article-layout {
  max-width: 780px;
  margin-inline: auto;
}
.article-layout .portal-hero {
  padding-bottom: 35px;
}
.article-layout .prose {
  font-size: 16px;
}
#search-dialog {
  width: min(660px, calc(100% - 32px));
  max-height: 80vh;
  margin-top: 12vh;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 90px #0004;
}
#search-dialog::backdrop {
  background: #1119;
  backdrop-filter: blur(4px);
}
.search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.search-heading h2 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.search-heading button {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 10px;
}
#docs-search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 16px;
  font-size: 15px;
  color: var(--ink);
}
.search-status,
.search-help {
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0;
}
.search-results {
  max-height: 45vh;
  overflow: auto;
}
.search-results a {
  display: block;
  border-top: 1px solid var(--line);
  padding: 18px 8px;
  border-radius: 3px;
}
.search-results a:hover {
  background: var(--surface);
}
.search-results strong {
  display: block;
  font-size: 14px;
  margin-bottom: 7px;
}
.search-results span {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.metric-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
  border-radius: 7px;
}
.metric-card .metric-value {
  font-size: 43px;
  letter-spacing: -2px;
  line-height: 1.2;
  font-weight: 500;
}
.metric-value small {
  font: 14px var(--mono);
  letter-spacing: 0;
}
.metric-card h2 {
  font-size: 13px;
  margin: 12px 0;
}
.metric-card p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.benchmark-bars {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}
.bench-row {
  display: grid;
  grid-template-columns: 165px 1fr 80px;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.bench-track {
  height: 24px;
  background: var(--surface-soft);
  border-radius: 3px;
  overflow: hidden;
}
.bench-fill {
  height: 100%;
  background: var(--lime);
}
.bench-fill.other {
  background: #89967d;
}
.bench-row strong {
  font: 11px var(--mono);
}
.data-scroll {
  overflow: auto;
  max-width: 100%;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table th {
  font: 10px var(--mono);
  color: var(--muted);
  background: var(--surface-soft);
}
.data-table td:nth-child(2) {
  font-weight: 600;
}
.data-table caption {
  text-align: left;
  font-size: 13px;
  margin: 12px 0 18px;
  color: var(--muted);
}
.playground-container {
  width: calc(100% - 64px);
  max-width: 1600px;
  margin: 0 auto 70px;
}
.playground-container .portal-hero {
  padding: 42px 0 30px;
}
.playground-container .portal-hero h1 {
  font-size: 44px;
}
.playground-container .portal-lead {
  font-size: 14px;
  margin-top: 16px;
}
.playground-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.playground-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}
.playground-toolbar button,
.playground-toolbar select,
.playground-files button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 4px;
}
.playground-toolbar label {
  font-size: 11px;
}
.playground-toolbar button[data-action="run"] {
  background: var(--lime);
  color: #1a1d18;
  border-color: var(--lime);
}
.playground-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
}
.playground-editor-pane {
  min-width: 0;
  border-right: 1px solid var(--line);
}
.playground-preview-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.playground-files,
.playground-pane-heading {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 14px;
  background: var(--surface-soft);
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  font: 11px var(--mono);
}
.playground-files button[aria-selected="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.playground-editor {
  font-size: 13px;
  min-height: 400px;
}
.playground-editor .cm-editor {
  height: 420px;
}
.playground-editor .cm-scroller {
  font-family: var(--mono);
  overflow: auto;
}
.playground-preview {
  width: 100%;
  border: 0;
  background: #fff;
  min-height: 420px;
  flex: 1;
}
.playground-output {
  border-top: 1px solid var(--line);
  padding: 18px;
  font-size: 12px;
}
.playground-output pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.7 var(--mono);
  max-height: 300px;
  overflow: auto;
  background: var(--surface-soft);
  padding: 15px;
  border-radius: 4px;
}
.playground-output summary {
  cursor: pointer;
  margin: 14px 0;
}
.playground-status {
  font-size: 11px;
}
.playground-notice {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 14px 0;
}
.lesson-number {
  font: 11px var(--mono);
  color: var(--accent);
}
@media (min-width: 1600px) {
  .docs-frame {
    grid-template-columns: 270px 850px 230px;
  }
  .doc-main {
    padding-inline: 65px;
  }
}
@media (max-width: 1150px) {
  .portal-header {
    padding-inline: 24px;
    gap: 24px;
  }
  .portal-nav {
    gap: 18px;
  }
  .search-trigger {
    gap: 12px;
  }
  .search-trigger span {
    display: none;
  }
  .docs-frame {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .doc-toc {
    display: none;
  }
  .doc-main {
    padding-inline: 40px;
  }
  .portal-footer {
    padding: 35px 24px;
  }
}
@media (max-width: 960px) {
  .portal-nav {
    display: none;
  }
  .mobile-navigation {
    display: block;
    position: relative;
    flex-shrink: 0;
  }
  .mobile-navigation summary {
    cursor: pointer;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    font-size: 22px;
    list-style: none;
  }
  .mobile-navigation summary::-webkit-details-marker {
    display: none;
  }
  .mobile-navigation nav {
    position: absolute;
    right: 0;
    top: 48px;
    display: grid;
    gap: 0;
    width: 230px;
    max-width: calc(100vw - 36px);
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 12px 40px #0002;
    border-radius: 5px;
    padding: 8px;
  }
  .mobile-navigation a {
    padding: 12px;
    font-size: 14px;
    border-left: 2px solid transparent;
  }
  .mobile-navigation a:hover,
  .mobile-navigation a[aria-current] {
    background: var(--paper);
    border-left-color: var(--accent);
  }
}
@media (max-width: 850px) {
  .portal-nav {
    gap: 14px;
    font-size: 11px;
  }
  .portal-header {
    gap: 20px;
  }
  .version-badge {
    display: none;
  }
  .portal-tools {
    gap: 8px;
  }
  .portal-container {
    width: calc(100% - 48px);
  }
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portal-hero {
    padding: 50px 0 35px;
  }
  .docs-frame {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .docs-sidebar {
    padding-inline: 12px;
  }
  .doc-main {
    padding: 28px 28px 60px;
  }
  .doc-title h1 {
    font-size: 35px;
  }
  .metric-card {
    padding: 20px;
  }
  .metric-card .metric-value {
    font-size: 33px;
  }
  .portal-footer nav {
    margin-left: 0;
  }
  .playground-container {
    width: calc(100% - 32px);
  }
}
@media (max-width: 640px) {
  .portal-header {
    height: 68px;
    padding-inline: 18px;
    gap: 18px;
  }
  .portal-brand {
    font-size: 29px;
  }
  .portal-tools {
    margin-left: auto;
  }
  .search-trigger {
    padding: 8px 9px;
  }
  .portal-container {
    width: calc(100% - 36px);
    padding-bottom: 60px;
  }
  .portal-hero {
    padding-top: 42px;
  }
  .portal-hero h1 {
    font-size: 42px;
    letter-spacing: -1.8px;
  }
  .portal-lead {
    font-size: 16px;
  }
  .portal-grid,
  .portal-grid.two {
    grid-template-columns: 1fr;
  }
  .portal-card {
    min-height: 230px;
    padding: 25px;
  }
  .docs-frame {
    display: flex;
    flex-direction: column;
  }
  .docs-sidebar {
    position: static;
    height: auto;
    max-height: 250px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
    display: flex;
    gap: 24px;
    overflow: auto;
    order: 1;
  }
  .sidebar-label {
    display: none;
  }
  .doc-group {
    min-width: 170px;
    margin: 0;
  }
  .doc-main {
    padding: 28px 21px 50px;
    order: 0;
  }
  .doc-title h1 {
    font-size: 36px;
  }
  .doc-breadcrumb {
    margin-bottom: 30px;
  }
  .prose {
    font-size: 14px;
  }
  .prose h2 {
    font-size: 25px;
  }
  .prose pre {
    font-size: 11px;
    padding: 18px;
  }
  .doc-source {
    gap: 13px;
  }
  .doc-neighbours strong {
    font-size: 11px;
  }
  .doc-neighbours a {
    padding: 13px;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .metric-card .metric-value {
    font-size: 44px;
  }
  .bench-row {
    grid-template-columns: 120px 1fr 70px;
    font-size: 11px;
  }
  .playground-workspace {
    grid-template-columns: 1fr;
  }
  .playground-editor-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .playground-editor .cm-editor {
    height: 320px;
  }
  .playground-editor {
    min-height: 320px;
  }
  .playground-preview {
    min-height: 300px;
  }
  .playground-container .portal-hero h1 {
    font-size: 36px;
  }
  .portal-footer {
    padding: 30px 20px;
  }
  .portal-footer nav {
    gap: 17px;
    font-size: 11px;
  }
  .search-heading h2 {
    font-size: 20px;
  }
  #search-dialog {
    padding: 20px;
    margin-top: 9vh;
  }
  .article-layout .prose {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.playground-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.playground-description,
.playground-status,
.playground-boundary {
  padding: 10px 16px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.playground-share {
  padding: 14px;
  display: grid;
  gap: 8px;
  font-size: 12px;
}
.playground-share input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.playground-add-file {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.playground-add-file input {
  min-width: 0;
  padding: 7px 9px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.playground-add-file button {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 7px 9px;
  border-radius: 3px;
}
.playground-preview-host {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.playground-files {
  flex-wrap: wrap;
}
.code-example-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 8px;
  left: 15px;
  right: 12px;
  z-index: 1;
  color: var(--muted);
  font: 10px var(--mono);
}
.prose .code-example-toolbar [data-copy-code] {
  position: static;
}
.prose .code-example pre {
  padding-top: 42px;
}
:root[data-theme="dark"] .shiki {
  color: var(--shiki-dark) !important;
  background-color: var(--shiki-dark-bg) !important;
}
:root[data-theme="dark"] .shiki span {
  color: var(--shiki-dark) !important;
}
.heading-anchor {
  font-size: 0.75em;
  opacity: 0;
  margin-left: 9px;
}
.prose h2:hover .heading-anchor,
.prose h3:hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}
.doc-table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.doc-table-scroll table {
  display: table;
}
.editorial-note {
  font-size: 12px;
  color: var(--muted);
  padding: 14px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  margin-bottom: 25px;
}
.prose .portal-button {
  color: var(--paper);
  text-decoration: none;
}
.prose .portal-button.secondary {
  color: var(--ink);
}
.mobile-doc-sections {
  display: none;
}
@media (max-width: 640px) {
  .mobile-doc-sections {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 15px 21px;
  }
  .mobile-doc-sections summary {
    font-size: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
  }
  .mobile-doc-sections[open] summary {
    margin-bottom: 24px;
  }
  .mobile-doc-sections .doc-group {
    margin-bottom: 22px;
  }
  .docs-sidebar {
    display: none;
  }
}
[hidden] {
  display: none !important;
}

/* Reading surfaces stay quiet; Forma's accent identifies actions and location. */
.search-icon {
  display: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.docs-page {
  --paper: #f4f4ed;
  --surface: #fff;
  --surface-soft: #f0f3e9;
  --ink: #20251e;
  --muted: #596352;
  --line: #e1e6da;
  --accent: #3c650e;
  --reading-font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  font-family: var(--reading-font);
}
:root[data-theme="dark"] .docs-page {
  --paper: #171d17;
  --surface: #111711;
  --surface-soft: #222c20;
  --ink: #ecf1e7;
  --muted: #acb8a4;
  --line: #303c2d;
  --accent: #c5f953;
}
.docs-page .portal-header {
  height: 72px;
  gap: 28px;
  padding-inline: 28px;
}
.docs-page .portal-brand {
  font-family: var(--font);
  font-size: 29px;
}
.docs-page .portal-nav {
  gap: 22px;
  font-size: 12px;
}
.docs-page .portal-nav a {
  padding-block: 27px 25px;
}
.docs-page .portal-tools {
  gap: 10px;
}
.docs-page .theme-toggle {
  min-width: 40px;
}
.docs-page .search-trigger {
  min-height: 38px;
  padding-inline: 12px;
  gap: 20px;
}
.docs-switcher {
  display: flex;
  gap: 26px;
  padding: 0 30px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.docs-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 48px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  color: var(--muted);
}
.docs-switcher a[aria-current] {
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.docs-switcher a:hover {
  color: var(--accent);
}
.docs-page .docs-frame {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  /* Keep navigation at the edge and prose readable on ultrawide displays. */
  grid-template-columns: 260px minmax(0, 840px) minmax(224px, 1fr);
  justify-content: start;
  min-height: calc(100vh - 120px);
}
.docs-page .docs-sidebar {
  top: 72px;
  height: calc(100dvh - 72px);
  max-height: none;
  padding: 22px 18px 35px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  overscroll-behavior: contain;
  display: block;
}
.docs-sidebar-head {
  padding-bottom: 15px;
}
.docs-page .sidebar-label {
  font: 10px var(--mono);
  padding: 0 10px 14px;
  letter-spacing: 0.06em;
}
.docs-sidebar-search {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #c9d2c0;
  border-radius: 7px;
  padding: 9px 11px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}
:root[data-theme="dark"] .docs-sidebar-search {
  border-color: var(--line);
}
.docs-sidebar-search kbd {
  font: 10px var(--mono);
  white-space: nowrap;
}
.docs-sidebar-search:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.docs-page .doc-group {
  margin: 0 0 9px;
  min-width: 0;
}
.docs-page .doc-group > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  border-radius: 5px;
  margin: 0;
}
.docs-page .doc-group > summary::-webkit-details-marker {
  display: none;
}
.docs-page .doc-group > summary:hover {
  background: var(--surface-soft);
}
.doc-group-title {
  flex: 1;
}
.doc-group-count {
  color: var(--muted);
  font: 10px var(--mono);
  font-weight: 400;
}
.doc-group-chevron {
  width: 12px;
  color: var(--muted);
  transition: transform 160ms ease;
}
.doc-group[open] .doc-group-chevron {
  transform: rotate(90deg);
}
.doc-group-links {
  padding: 0 0 5px 9px;
}
.docs-page .doc-group a {
  position: relative;
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 11px;
  margin: 2px 0;
  min-height: 36px;
  border-left: 1px solid var(--line);
  border-radius: 0 5px 5px 0;
}
.docs-page .doc-group a[aria-current] {
  background: #e8f0dd;
  color: #345510;
  border-left: 2px solid #678f32;
  box-shadow: none;
  font-weight: 500;
}
:root[data-theme="dark"] .docs-page .doc-group a[aria-current] {
  color: var(--lime);
  background: #28351e;
  border-color: var(--lime);
}
.docs-page .doc-main {
  width: 100%;
  min-width: 0;
  padding: 36px 50px 80px;
  order: initial;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.docs-page .doc-breadcrumb {
  font-size: 12px;
  margin-bottom: 24px;
  gap: 10px;
  align-items: center;
}
.docs-page .doc-breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.docs-page .doc-title .portal-eyebrow {
  display: none;
}
.docs-page .doc-title h1 {
  font-family: var(--font);
  font-size: 38px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -1.45px;
  overflow-wrap: anywhere;
}
.docs-page .doc-description {
  font-size: 17px;
  line-height: 1.65;
  margin-top: 13px;
  max-width: 65ch;
}
.docs-page .doc-source {
  align-items: center;
  gap: 4px 18px;
  padding: 15px 0 18px;
  margin-bottom: 28px;
  font-size: 12px;
}
.docs-page .doc-source a,
.docs-page .doc-source button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.docs-page .doc-source button {
  font-size: inherit;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
}
.docs-page .doc-source button:hover {
  color: var(--accent);
}
.doc-source-version {
  display: block;
  flex-basis: 100%;
  font: 10px/1.6 var(--mono);
  opacity: 0.9;
}
.doc-copy-status {
  font-size: 12px;
  color: var(--accent);
}
.docs-page .prose {
  font-size: 16px;
  line-height: 1.8;
}
.docs-page .prose p {
  margin: 18px 0;
}
.docs-page .prose h2 {
  font-family: var(--font);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.25;
  margin: 40px 0 17px;
  letter-spacing: -0.7px;
}
.docs-page .prose h3 {
  font-family: var(--font);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  margin: 28px 0 14px;
  letter-spacing: -0.3px;
}
.docs-page .prose h4 {
  margin-top: 24px;
}
.docs-page .prose li {
  margin-block: 7px;
}
.docs-page .prose a {
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 4px;
}
.docs-page .prose a:hover {
  text-decoration-color: var(--accent);
}
.docs-page .prose :not(pre) > code {
  font-size: 0.85em;
  padding: 2px 5px;
  border-radius: 4px;
}
.docs-page .prose pre {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: 12px/1.8 var(--mono);
  padding: 22px;
  margin-block: 22px;
}
.docs-page .prose .code-example pre {
  padding-top: 56px;
}
.docs-page .code-example-toolbar {
  min-height: 38px;
  padding: 5px 14px;
  top: 1px;
  left: 1px;
  right: 1px;
  background: var(--paper);
  border-radius: 7px 7px 0 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.docs-page .prose .code-example-toolbar [data-copy-code] {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line);
  min-height: 28px;
  padding: 4px 9px;
  font-size: 10px;
}
.docs-page .prose .code-example-toolbar [data-copy-code]:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.docs-page .prose table {
  font-size: 13px;
  line-height: 1.65;
}
.docs-page .prose th {
  font-size: 12px;
}
.docs-page .prose td,
.docs-page .prose th {
  padding: 13px 15px;
}
.docs-page .doc-table-scroll {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-block: 24px;
}
.docs-page .doc-table-scroll table {
  margin: 0;
}
.docs-page .prose blockquote {
  padding: 1px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid #8eb655;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
}
.docs-page .portal-callout {
  border: 1px solid var(--line);
  border-left: 3px solid #8eb655;
  background: var(--paper);
  padding: 18px 21px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.7;
}
.docs-page .editorial-note {
  padding: 14px 18px;
  border-radius: 6px;
  background: var(--paper);
  font-size: 12px;
  line-height: 1.7;
}
.docs-page .doc-toc {
  display: block;
  width: 100%;
  max-width: 248px;
  top: 72px;
  height: calc(100dvh - 72px);
  padding: 38px 22px 30px 18px;
  overscroll-behavior: contain;
}
.docs-page .doc-toc > p {
  padding-left: 13px;
  font: 600 11px var(--reading-font);
  letter-spacing: 0;
  margin-bottom: 15px;
}
.docs-page .toc-link {
  display: block;
  margin: 0;
  padding: 7px 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.docs-page .toc-link[data-level="3"] {
  padding-left: 23px;
  font-size: 11px;
}
.docs-page .toc-link:hover {
  color: var(--ink);
  background: var(--paper);
}
.docs-page .toc-link[aria-current="location"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-soft);
  font-weight: 500;
}
.mobile-doc-toc {
  display: none;
}
.docs-page .page-feedback {
  margin-top: 55px;
  padding-block: 23px;
  font-size: 12px;
}
.docs-page .doc-neighbours {
  gap: 16px;
}
.docs-page .doc-neighbours a {
  padding: 20px;
  border-radius: 8px;
  background: var(--paper);
}
.docs-page .doc-neighbours a:hover {
  border-color: var(--accent);
}
.docs-page .doc-neighbours span {
  font-size: 11px;
}
.docs-page .doc-neighbours strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}
.docs-welcome {
  margin-block: 30px 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.docs-welcome-label {
  font: 10px var(--mono);
  color: var(--accent);
  letter-spacing: 0.04em;
}
.docs-welcome h2 {
  margin-top: 12px;
  font: 600 26px/1.2 var(--font);
  letter-spacing: -0.6px;
}
.docs-welcome > p:not(.docs-welcome-label) {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 12px;
}
.docs-welcome-command {
  margin-top: 23px;
  padding: 18px 21px;
  background: #1c2518;
  color: #edf3e6;
  border: 1px solid #39482e;
  border-radius: 8px;
  min-width: 0;
}
.docs-welcome-command > span {
  display: block;
  color: #c5f953;
  font: 10px/1.6 var(--mono);
}
.docs-welcome-command > span {
  padding-right: 58px;
}
.docs-welcome-command [data-copy-code] {
  position: absolute;
  top: 13px;
  right: 15px;
  border: 1px solid #58694a;
  border-radius: 4px;
  background: #293622;
  color: #edf3e6;
  font-size: 11px;
  min-height: 32px;
  padding: 4px 9px;
}
.docs-welcome-command.code-frame pre {
  padding: 0;
}
.docs-welcome-command pre {
  margin: 17px 0;
  overflow-x: auto;
  font: 12px/1.8 var(--mono);
}
.docs-welcome-command p {
  font-size: 12px;
  color: #bdcbb2;
  line-height: 1.6;
}
.docs-welcome-command p a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.docs-welcome-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.docs-welcome-paths a {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  transition: border-color 150ms ease;
}
.docs-welcome-paths a:hover {
  border-color: var(--accent);
}
.docs-welcome-paths a > span {
  display: block;
  font: 11px var(--mono);
  color: var(--accent);
  margin-bottom: 16px;
}
.docs-welcome-paths h3 {
  font: 600 15px/1.35 var(--font);
}
.docs-welcome-paths p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 9px;
}
.search-results .search-result-kind {
  display: block;
  color: var(--accent);
  font: 10px/1.5 var(--mono);
  margin-bottom: 5px;
}
.docs-page .portal-footer {
  background: var(--paper);
}
@media (max-width: 1200px) {
  .docs-page .docs-frame {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .docs-page .doc-main {
    padding-inline: 40px;
  }
  .docs-page .doc-toc {
    display: none;
  }
  .docs-page .portal-header {
    gap: 22px;
  }
  .docs-page .portal-nav {
    gap: 17px;
  }
  .docs-page .search-trigger span {
    display: none;
  }
  .docs-page .mobile-doc-toc {
    display: block;
    margin: 0 0 28px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--paper);
  }
  .mobile-doc-toc > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    min-height: 46px;
    cursor: pointer;
    font-size: 13px;
    list-style: none;
  }
  .mobile-doc-toc > summary::-webkit-details-marker {
    display: none;
  }
  .mobile-doc-toc[open] > summary {
    border-bottom: 1px solid var(--line);
  }
  .mobile-doc-toc > nav {
    max-height: min(45vh, 400px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 16px;
  }
  .docs-page .mobile-doc-toc .toc-link {
    font-size: 13px;
    padding-block: 9px;
  }
  .docs-page .mobile-doc-toc .toc-link[data-level="3"] {
    font-size: 12px;
  }
}
@media (max-width: 900px) {
  .docs-page .search-trigger .search-icon {
    display: block;
  }
  .docs-page .search-trigger kbd {
    display: none;
  }
  .docs-page .doc-title .portal-eyebrow {
    display: block;
    font-size: 9px;
    margin-bottom: 10px;
  }
  .docs-page .docs-frame {
    display: block;
  }
  .docs-page .docs-sidebar {
    display: none;
  }
  .docs-page .doc-main {
    max-width: 800px;
    margin-inline: auto;
    padding: 30px 36px 65px;
  }
  .docs-page .mobile-doc-sections {
    display: block;
    padding: 0 26px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .docs-page .mobile-doc-sections > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    cursor: pointer;
    font-size: 13px;
    margin: 0;
    list-style: none;
  }
  .docs-page .mobile-doc-sections > summary::-webkit-details-marker {
    display: none;
  }
  .docs-page .mobile-doc-sections[open] {
    max-height: 65dvh;
    overflow-y: auto;
    padding-bottom: 16px;
    overscroll-behavior: contain;
  }
  .docs-page .mobile-doc-sections .doc-group {
    margin: 0 0 8px;
  }
  .docs-page .mobile-doc-sections .doc-group > summary {
    margin-bottom: 0;
  }
  .docs-page .mobile-doc-sections .doc-group a {
    min-height: 44px;
    padding-top: 12px;
  }
  .docs-page .doc-title h1 {
    font-size: 36px;
  }
  .docs-page .portal-header {
    padding-inline: 24px;
  }
}
@media (max-width: 640px) {
  .docs-page .portal-header {
    height: 68px;
    padding-inline: 18px;
    gap: 12px;
  }
  .docs-page .portal-brand {
    font-size: 27px;
  }
  .docs-page .portal-tools {
    gap: 5px;
  }
  .docs-page .search-trigger {
    padding-inline: 9px;
  }
  .docs-switcher {
    padding-inline: 20px;
    gap: 22px;
  }
  .docs-switcher a {
    font-size: 12px;
  }
  .docs-page .mobile-doc-sections {
    padding-inline: 20px;
  }
  .docs-page .doc-main {
    padding: 25px 22px 50px;
  }
  .docs-page .doc-breadcrumb {
    font-size: 11px;
    margin-bottom: 18px;
  }
  .docs-page .doc-title h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .docs-page .doc-description {
    font-size: 16px;
  }
  .docs-page .doc-source {
    gap: 3px 16px;
    font-size: 11px;
    margin-bottom: 22px;
  }
  .docs-page .prose {
    font-size: 15px;
    line-height: 1.8;
  }
  .docs-page .prose h2 {
    font-size: 25px;
  }
  .docs-page .prose h3 {
    font-size: 20px;
  }
  .docs-page .prose pre {
    padding-inline: 16px;
    font-size: 11px;
  }
  .docs-page .prose td,
  .docs-page .prose th {
    padding: 10px 12px;
  }
  .docs-page .doc-neighbours {
    grid-template-columns: 1fr;
  }
  .docs-page .doc-neighbours > span {
    display: none;
  }
  .docs-welcome-paths {
    grid-template-columns: 1fr;
  }
  .docs-welcome-paths a {
    padding: 18px;
  }
  .docs-welcome-paths a > span {
    margin-bottom: 10px;
  }
  .docs-welcome-paths p {
    font-size: 13px;
  }
  .docs-welcome-command {
    padding-inline: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .docs-page *,
  .docs-page *::before,
  .docs-page *::after {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}
