*,
*::before,
*::after { box-sizing: border-box; }

:root,
[data-vk-theme="dark"],
:root:not([data-vk-theme="light"]) {
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --st-primary: #22d3ee;
  --st-secondary: #0e7490;
  --page-bg: #0a0c10;
  --text: #e8e8ec;
  --text-muted: #8b92a0;
  --surface: #12151c;
  --surface-border: #252a36;
  --surface-divider: #1e232d;

  --vk-color-primary: #22d3ee;
  --vk-color-primary-hover: #67e8f9;
  --vk-color-primary-active: #06b6d4;
  --vk-color-primary-light: color-mix(in srgb, #22d3ee 35%, transparent);
  --vk-color-primary-subtle: color-mix(in srgb, #22d3ee 12%, var(--surface));
  --vk-color-on-primary: #042f3a;
  --vk-color-accent: #0e7490;
  --vk-gradient-brand-end: var(--st-secondary);
  --vk-font-display: var(--font-display);
  --vk-navbar-max-width: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-vk-theme="light"]) {
    --vk-color-primary: #22d3ee;
    --vk-color-primary-hover: #67e8f9;
    --vk-color-primary-active: #06b6d4;
    --vk-color-on-primary: #042f3a;
    --vk-color-accent: #0e7490;
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--st-primary);
  color: #042f3a;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 0.55rem 0.55rem;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

.copy-wrap {
  position: relative;
}

.copy-wrap .copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 1;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.45rem;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-wrap .copy-btn:hover,
.copy-wrap .copy-btn:focus-visible {
  color: var(--text);
  border-color: color-mix(in srgb, var(--st-primary) 40%, var(--surface-border));
}

.hero .copy-wrap {
  margin: 1.25rem 0 0;
}

.hero .copy-wrap .install-cmd {
  margin: 0;
}

.copy-wrap pre[data-copy] {
  padding-right: 4.5rem;
}

html {
  overflow-x: clip;
}

body {
  font-family: var(--vk-font-family, ui-sans-serif, system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--vk-color-text, var(--text));
  background:
    radial-gradient(ellipse 80% 45% at 50% -8%, color-mix(in srgb, var(--st-primary) 18%, transparent), transparent 60%),
    var(--page-bg);
}

a {
  color: inherit;
}

code,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

.page {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.75rem 5rem;
}

.brand-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-slot svg {
  width: 2.1rem;
  height: 2.1rem;
  display: block;
  filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--st-primary) 35%, transparent));
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.55rem;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
}

.nav-link[aria-current="page"] {
  color: var(--st-primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 5.5rem) 0 3rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-primary);
}

.hero h1,
.section h2,
.close h2,
.start-body h1,
.start-body h2,
.docs-body h1,
.docs-body h2 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4.2vw + 0.4rem, 3.4rem);
  font-weight: 800;
  max-width: 22ch;
}

.cmd-lede {
  margin: 0 0 2rem;
  display: grid;
  gap: 0.95rem;
}

.cmd-lede div {
  display: grid;
  grid-template-columns: 8.6rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}

.cmd-lede dt {
  margin: 0;
}

.cmd-lede dt code {
  font-size: 0.95rem;
  color: var(--text);
}

.cmd-lede dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.lede {
  margin: 0 0 2.15rem;
  max-width: 40rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0;
}

.install-cmd,
.share-cmd,
.pty pre,
.start-body pre,
.docs-body pre,
.works pre {
  scrollbar-width: thin;
  scrollbar-color: #3a4150 transparent;
}

.install-cmd {
  margin: 1.25rem 0 0;
  padding: 0.95rem 1.15rem;
  background: #0e1016;
  border: 1px solid var(--surface-border);
  border-radius: 0.9rem;
  overflow-x: auto;
  color: #c4cad4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

.pty {
  border: 1px solid color-mix(in srgb, var(--st-primary) 28%, var(--surface-border));
  border-radius: 1.1rem;
  background: #0e1016;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--st-primary) 8%, transparent) inset,
    0 28px 60px rgb(0 0 0 / 28%);
  overflow: hidden;
}

.pty-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--surface-divider);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-primary);
}

.pty-dots {
  display: flex;
  gap: 0.3rem;
}

.pty-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text-muted) 55%, transparent);
}

.pty pre {
  margin: 0;
  padding: 1.1rem 1.15rem 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #c4cad4;
  white-space: pre-wrap;
}

.pty .prompt { color: var(--st-primary); }
.pty .ok { color: #67e8f9; }
.pty .dim { color: #5c6478; }

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--st-primary);
}

.icon-tile svg {
  width: 24px;
  height: 24px;
}

.facts,
.share {
  display: grid;
  gap: 1.2rem;
  margin-top: 0;
}

.facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.share {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 2.75rem;
}

.fact {
  padding: 1.45rem 1.5rem;
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  text-decoration: none;
  color: inherit;
}

a.fact:hover {
  border-color: color-mix(in srgb, var(--st-primary) 40%, var(--surface-border));
}

.fact .icon-tile {
  margin-bottom: 0.9rem;
}

.fact p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.fact .kicker {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--st-primary);
}

.works article {
  padding: 1.45rem 1.5rem;
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.works article {
  display: flex;
  flex-direction: column;
}

.works h3 {
  margin: 0.9rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.works p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.works p {
  margin-bottom: 1.1rem;
}

.share-cmd {
  margin: 0;
  padding: 1.2rem 1.25rem;
  background: #0e1016;
  border: 1px solid var(--surface-border);
  border-radius: 0.9rem;
  overflow-x: auto;
  color: #c4cad4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
}

.share-cmd .cmt {
  color: #6b7380;
}

.share-cmd .str {
  color: var(--st-primary);
}

.share a {
  color: var(--st-primary);
  text-decoration: none;
}

.share a:hover {
  text-decoration: underline;
}

.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.works pre {
  margin: auto 0 0;
  padding: 0.7rem 0.85rem;
  background: #0e1016;
  border: 1px solid var(--surface-border);
  border-radius: 0.7rem;
  overflow-x: auto;
  color: #c4cad4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.section {
  padding: 5.5rem 0 1.5rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2vw + 0.8rem, 2.1rem);
  font-weight: 750;
}

.section-lede {
  margin: 0 0 2.5rem;
  max-width: 40rem;
  color: var(--text-muted);
}

.close {
  margin-top: 4.5rem;
  padding: 2.6rem 2.1rem;
  border-radius: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--st-primary) 35%, var(--surface-border));
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, color-mix(in srgb, var(--st-primary) 18%, transparent), transparent 55%),
    var(--surface);
}

.close h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.close p {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: var(--text-muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 4.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--surface-divider);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--st-primary);
}

.gitlab-icon {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 0.25rem;
}

.docs-layout,
.start-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 3rem;
  padding-top: 2.75rem;
}

.side-nav {
  position: sticky;
  top: 4.5rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.start-layout .side-nav {
  gap: 1.15rem;
}

.side-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.side-nav-label {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-muted) 75%, var(--st-primary));
}

.side-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 0.2rem 0 0.2rem 0.7rem;
  border-left: 2px solid transparent;
}

.side-nav a:hover {
  color: var(--text);
}

.side-nav a.is-current {
  color: var(--st-primary);
  border-left-color: var(--st-primary);
}

.docs-body h1,
.start-body h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
}

.docs-body h2,
.start-body h2 {
  margin: 3.1rem 0 0.95rem;
  font-size: 1.4rem;
  font-weight: 750;
  scroll-margin-top: 5rem;
}

.docs-body h3 {
  margin: 1.85rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  scroll-margin-top: 5rem;
}

.docs-body h2:first-of-type,
.start-body h2:first-of-type {
  margin-top: 2.25rem;
}

.docs-body p,
.start-body p,
.docs-body li,
.start-body li {
  color: var(--text-muted);
}

.docs-body p,
.start-body p {
  margin: 0 0 1rem;
  max-width: 44rem;
}

.docs-body a,
.start-body a {
  color: var(--st-primary);
  text-decoration: none;
}

.docs-body a:hover,
.start-body a:hover {
  text-decoration: underline;
}

.docs-body ul,
.start-body ul,
.docs-body ol,
.start-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  max-width: 44rem;
}

.docs-body li + li,
.start-body li + li {
  margin-top: 0.35rem;
}

.lede-guide {
  max-width: 40rem;
  font-size: 1.12rem;
  line-height: 1.55;
}

.docs-body pre,
.start-body pre,
.docs-body .code,
.start-body .code {
  margin: 0 0 0.7rem;
  padding: 1.15rem 1.25rem;
  background: #0e1016;
  border: 1px solid var(--surface-border);
  border-radius: 0.9rem;
  overflow-x: auto;
  color: #c4cad4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
}

.start-body .str { color: var(--st-primary); }
.start-body .cmt { color: #6b7380; }

.expect {
  margin: 0 0 1.7rem;
  max-width: 44rem;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--text-muted) 80%, var(--st-primary));
}

.expect code {
  color: var(--text);
}

.step-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.step-title::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--st-primary) 45%, var(--surface-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--st-primary) 10%, var(--surface));
  color: var(--st-primary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
}

.start-body {
  counter-reset: guide-step;
}

.docs-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.75rem 0 0.5rem;
}

.docs-map a {
  display: grid;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem 1.25rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
}

.docs-map a:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--st-primary) 40%, var(--surface-border));
}

.docs-map .kicker {
  margin: 0;
  color: var(--text);
}

.docs-map p:last-child {
  margin: 0;
  font-size: 0.95rem;
}

.callout {
  margin: 0 0 1.6rem;
  padding: 1.05rem 1.2rem;
  max-width: 44rem;
  border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--st-primary) 28%, var(--surface-border));
  background: color-mix(in srgb, var(--st-primary) 8%, var(--surface));
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 0.7rem;
}

.fields {
  width: 100%;
  max-width: 56rem;
  margin: 0 0 1.6rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.docs-body h2 code,
.start-body h2 code {
  font-size: 0.92em;
  font-weight: 750;
  color: var(--text);
}

.synopsis {
  color: var(--text);
}

.fields th,
.fields td {
  padding: 0.65rem 0.75rem 0.65rem 0;
  border-bottom: 1px solid var(--surface-divider);
  text-align: left;
  vertical-align: top;
}

.fields th {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fields td:first-child {
  width: 11.5rem;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}

.fields th:nth-child(n+2),
.fields td:nth-child(n+2) {
  padding-right: 0.85rem;
}

.fields td:last-child {
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .page {
    padding: 0 1.25rem 3.25rem;
  }

  .section {
    padding: 3.25rem 0 1rem;
  }

  .hero,
  .facts,
  .share,
  .works,
  .docs-layout,
  .start-layout,
  .docs-map {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero > *,
  .docs-layout > *,
  .start-layout > *,
  .pty,
  .install-cmd,
  .copy-wrap,
  .share-cmd,
  .start-body pre,
  .docs-body pre,
  .works pre {
    min-width: 0;
    max-width: 100%;
  }

  .hero {
    padding-top: 1.75rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .cmd-lede div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }

  .install-cmd,
  .start-body pre,
  .docs-body pre,
  .works pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .share-cmd,
  .start-body pre,
  .docs-body pre,
  .works pre {
    font-size: 0.78rem;
  }

  .close {
    padding: 1.5rem 1.15rem;
  }

  .side-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    margin: 0 -1.25rem;
    padding: 0.1rem 1.25rem 0.85rem;
    border-bottom: 1px solid var(--surface-divider);
  }

  .side-nav-group {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.45rem;
  }

  .side-nav-label {
    width: 100%;
    margin: 0;
  }

  .side-nav a {
    flex: none;
    white-space: nowrap;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--surface-border);
    border-left-width: 1px;
    border-radius: 0.65rem;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    font-weight: 600;
  }

  .side-nav a.is-current {
    border-color: color-mix(in srgb, var(--st-primary) 45%, var(--surface-border));
    background: color-mix(in srgb, var(--st-primary) 10%, var(--surface));
  }

  .fields td:first-child {
    width: auto;
  }
}

@media (max-width: 768px) {
  .nav-link {
    display: block;
    padding: 0.7rem 0.55rem;
    font-size: 1rem;
  }
}

@media (max-width: 700px) {
  .works {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .page {
    padding: 0 1.1rem 3rem;
  }

  .side-nav {
    margin: 0 -1.1rem;
    padding-inline: 1.1rem;
  }

  .lede,
  .cmd-lede dd,
  .section-lede {
    font-size: 1rem;
  }
}

/* Stalker additions */

.hero-note {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero-note a {
  color: var(--st-primary);
  text-decoration: none;
}

.hero-note a:hover {
  text-decoration: underline;
}

.pty pre .cmd { color: var(--text); }
.pty pre .prompt { color: var(--st-primary); user-select: none; }
.pty pre .out { color: #8b92a0; }
.pty pre .hl { color: var(--st-primary); }

.pty-foot {
  margin: 0;
  padding: 0.7rem 1rem 0.85rem;
  border-top: 1px solid var(--surface-divider);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.facts--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.works h3 code {
  font-size: 0.85em;
  color: var(--st-primary);
}

.works .needs {
  margin: 0 0 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--surface-divider);
  font-size: 0.88rem;
}

.works .needs strong {
  color: var(--text);
  font-weight: 650;
}

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0.9rem;
  margin: 0 0 2.5rem;
}

.flow-node {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.flow-node.is-self {
  border-color: color-mix(in srgb, var(--st-primary) 45%, var(--surface-border));
  background: color-mix(in srgb, var(--st-primary) 8%, var(--surface));
}

.flow-node .kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

.flow-node.is-self .kicker {
  color: var(--st-primary);
}

.flow-node p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--st-primary) 70%, var(--text-muted));
}

.flow-arrow svg {
  width: 22px;
  height: 22px;
}

.sample {
  display: grid;
  gap: 0.7rem;
  max-width: 52rem;
}

.sample pre {
  margin: 0;
  padding: 1.05rem 1.2rem;
  background: #0e1016;
  border: 1px solid var(--surface-border);
  border-radius: 0.9rem;
  overflow-x: auto;
  color: #c4cad4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
}

.sample p {
  margin: 0.4rem 0 0.6rem;
  max-width: 44rem;
  color: var(--text-muted);
}

.limits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.limits li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--surface-divider);
}

.limits h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.limits p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.terms {
  display: grid;
  gap: 0;
  margin: 0 0 1.6rem;
  max-width: 52rem;
}

.terms > div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--surface-divider);
  scroll-margin-top: 5rem;
}

.terms dt {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

.terms dt code {
  color: var(--text);
}

.terms dd {
  margin: 0;
  color: var(--text-muted);
}

.section .terms {
  max-width: none;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 1.6rem;
  scrollbar-width: thin;
  scrollbar-color: #3a4150 transparent;
}

.table-wrap .fields {
  margin: 0;
  max-width: none;
}

.fields td:first-child {
  font-family: inherit;
  font-size: inherit;
}

.fields td code {
  color: var(--text);
  overflow-wrap: anywhere;
}

.fields td {
  min-width: 7rem;
}

.section .fields td:first-child {
  color: var(--text);
  font-weight: 600;
}

.start-body pre.out {
  color: #9aa2b1;
  background: color-mix(in srgb, #0e1016 70%, var(--surface));
  border-style: dashed;
}

.start-body pre + p,
.start-body .copy-wrap + p,
.start-body .copy-wrap + pre {
  margin-top: 1.1rem;
}

.start-body .out-label {
  margin: 1rem 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-muted) 75%, var(--st-primary));
}

.term-tag {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.05rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--st-primary) 40%, var(--surface-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--st-primary) 10%, var(--surface));
  color: var(--st-primary);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.terminals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0 0 1.6rem;
  max-width: 48rem;
  padding: 0;
  list-style: none;
}

.terminals li {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--surface-border);
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.start-body .terminals li + li {
  margin-top: 0;
}

.terminals .term-tag {
  margin: 0 0 0.45rem;
}

.terminals p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .facts--3,
  .limits,
  .terminals {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .flow-arrow svg {
    transform: rotate(90deg);
  }

  .terms > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .sample pre,
  .pty pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
  }

  .sample,
  .sample pre {
    min-width: 0;
    max-width: 100%;
  }
}

.lede a,
.section-lede a,
.sample a,
.pty-foot a {
  color: var(--st-primary);
  text-decoration: none;
}

.lede a:hover,
.section-lede a:hover,
.sample a:hover,
.pty-foot a:hover {
  text-decoration: underline;
}

.section-lede--after {
  margin-top: 2.25rem;
}

.works pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.start-body .terminals {
  padding-left: 0;
}

.start-body pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.docs-body p,
.docs-body li,
.start-body p {
  overflow-wrap: anywhere;
}
