:root {
  --docs-bg: #ffffff;
  --docs-surface: #ffffff;
  --docs-surface-soft: #f6f8fa;
  --docs-surface-tint: #e7f3f8;
  --docs-ink: #0e1f30;
  --docs-muted: #3a4b5b;
  --docs-faint: #697886;
  --docs-subtle: #8a97a6;
  --docs-border: #dfe5ec;
  --docs-border-soft: #e8edf2;
  --docs-border-strong: #bfdfeb;
  --docs-accent: #0e7aa6;
  --docs-accent-strong: #0a668c;
  --docs-link: #0066ff;
  --docs-info: #2547c4;
  --docs-warning: #955108;
  --docs-danger: #b23128;
  --docs-navy: #021a3a;
  --docs-topbar: #021a3a;
  --docs-brand-cyan: #4db4d6;
  --docs-sandbox: #7ee0a0;
  --docs-code: #021326;
  --docs-code-raised: #04182f;
  --docs-code-line: #0c2742;
  --docs-code-text: #d6e2ee;
  --docs-code-muted: #8fa9c2;
  --docs-success: #1b7a3d;
  --docs-success-tint: #e7f6ec;
  --docs-focus: #4db4d6;
  --docs-sidebar: 244px;
  --docs-content: 1000px;
  --docs-radius: 10px;
  --docs-radius-sm: 4px;
  --docs-weight-regular: 400;
  --docs-weight-medium: 500;
  --docs-weight-semibold: 600;
  --docs-weight-bold: 700;
  color-scheme: light;
  font-family:
    "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  background: var(--docs-bg);
  color: var(--docs-ink);
  font-weight: var(--docs-weight-regular);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--docs-accent);
}

button,
input,
textarea,
select {
  font: inherit;
}

code,
pre {
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

p code,
li code,
.section-footnote code {
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-sm);
  background: var(--docs-surface-soft);
  color: var(--docs-ink);
  font-size: 0.92em;
  padding: 1px 5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-sm);
  background: var(--docs-surface);
  padding: 8px 12px;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--docs-focus);
  outline-offset: 2px;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--docs-topbar);
  padding: 0 26px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-wordmark {
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
}

.brand-wordmark span {
  color: var(--docs-brand-cyan);
}

.brand-product {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: #9fc6d8;
  font-size: 10px;
  font-weight: var(--docs-weight-bold);
  letter-spacing: 0.11em;
  padding: 3px 7px;
  text-transform: uppercase;
}

.docs-search {
  position: relative;
  min-width: 0;
}

.docs-search input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 13px;
  padding: 7px 58px 7px 14px;
}

.docs-search input:focus-visible {
  border-color: rgba(77, 180, 214, 0.72);
  outline: 2px solid var(--docs-focus);
  outline-offset: 2px;
}

.docs-search input::placeholder {
  color: #9aa7b3;
}

.search-shortcut {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: #7d93aa;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 10.5px;
  line-height: 1;
  padding: 3px 6px;
  pointer-events: none;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
  box-shadow: 0 18px 48px rgba(2, 26, 58, 0.18);
}

.search-results.is-open {
  display: grid;
}

.search-results a,
.search-empty {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--docs-border);
  padding: 10px 12px;
  color: var(--docs-muted);
  font-size: 13px;
}

.search-results a:last-child {
  border-bottom: 0;
}

.search-results strong {
  color: var(--docs-ink);
  font-size: 14px;
  font-weight: var(--docs-weight-semibold);
  line-height: 1.1;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 4px;
  background: var(--docs-accent);
  color: white;
  font-size: 15px;
  font-weight: var(--docs-weight-semibold);
}

.utility-links,
.topbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #aebfce;
  font-size: 13.5px;
  font-weight: var(--docs-weight-medium);
}

.topbar-links a,
.utility-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 6px;
  padding: 8px 11px;
}

.topbar-links a:hover,
.topbar-links a.is-active,
.utility-links a:hover {
  color: #ffffff;
}

.topbar-links a.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.topbar-primary {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: max-content max-content minmax(260px, 420px) max-content;
  align-items: center;
  gap: 22px;
  width: 100%;
}

.utility-links {
  justify-content: end;
  gap: 8px;
  font-size: 13px;
}

.docs-layout {
  display: grid;
  grid-template-columns: var(--docs-sidebar) minmax(0, var(--docs-content));
  gap: 0;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0;
}

.docs-sidebar {
  position: sticky;
  top: 60px;
  align-self: stretch;
  height: calc(100vh - 60px);
  max-height: calc(100vh - 60px);
  overflow: auto;
  border-right: 1px solid var(--docs-border-soft);
  padding: 30px 14px 60px;
}

.sidebar-label {
  margin: 0 0 10px;
  color: var(--docs-subtle);
  font-size: 10.5px;
  font-weight: var(--docs-weight-bold);
  letter-spacing: 0.09em;
  line-height: 1.4;
  padding: 0 12px;
  text-transform: uppercase;
}

.docs-sidebar nav {
  display: grid;
  gap: 0;
}

.stacked-cards {
  display: grid;
  gap: 14px;
}

.docs-sidebar a {
  border-left: 2px solid transparent;
  border-radius: 0 5px 5px 0;
  color: var(--docs-muted);
  display: block;
  font-size: 13.5px;
  font-weight: var(--docs-weight-regular);
  padding: 7px 12px;
}

.docs-sidebar a:hover {
  background: var(--docs-surface-soft);
  color: var(--docs-ink);
}

.docs-sidebar a.is-active {
  border-left-color: var(--docs-accent);
  color: var(--docs-accent);
  font-weight: var(--docs-weight-semibold);
}

.docs-main {
  min-width: 0;
  max-width: 100%;
  padding: 38px 40px 100px;
}

.docs-main:focus {
  outline: none;
}

.docs-section {
  scroll-margin-top: 76px;
  border-bottom: 0;
  padding: 56px 0 0;
}

.docs-section:first-child {
  padding-top: 0;
}

.docs-section:last-child {
  border-bottom: 0;
}

.overview-section h1,
.docs-section h2 {
  margin: 0;
  color: var(--docs-ink);
  font-weight: var(--docs-weight-semibold);
  letter-spacing: -0.01em;
}

.docs-section h3 {
  margin: 0;
  color: var(--docs-ink);
  font-weight: var(--docs-weight-medium);
  letter-spacing: 0;
}

.overview-section h1 {
  max-width: 780px;
  font-size: 42px;
  font-weight: var(--docs-weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.docs-section h2 {
  font-size: 24px;
  line-height: 1.25;
}

.docs-section h3 {
  font-size: 16px;
  line-height: 1.35;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--docs-accent);
  font-size: 12px;
  font-weight: var(--docs-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--docs-muted);
  font-size: 17px;
  line-height: 1.6;
}

.docs-intro {
  display: grid;
  gap: 0;
  align-items: start;
}

.intro-copy {
  min-width: 0;
}

.operation-flow {
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
}

.contract-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 900px;
  margin: 28px 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 44px rgba(2, 26, 58, 0.28);
  padding: 50px 6px 6px;
}

.contract-strip::before {
  content: "Integration contract";
  position: absolute;
  top: 18px;
  left: 24px;
  color: var(--docs-sandbox);
  font-size: 11px;
  font-weight: var(--docs-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contract-strip::after {
  content: "Staging · public contract";
  position: absolute;
  top: 18px;
  left: 220px;
  color: #7d93aa;
  font-size: 11.5px;
}

.contract-strip div {
  min-width: 0;
  background: var(--docs-navy);
  padding: 15px 18px;
}

.contract-strip dt,
.contract-strip dd {
  margin: 0;
}

.contract-strip dt {
  color: #7d93aa;
  font-size: 11px;
  font-weight: var(--docs-weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contract-strip dd {
  min-width: 0;
  color: #e8f1f8;
  font-size: 13.5px;
  font-weight: var(--docs-weight-regular);
  line-height: 1.4;
  margin-top: 7px;
}

.contract-strip code {
  overflow-wrap: anywhere;
  border: 0;
  background: transparent;
  color: #e8f1f8;
  font-size: 13px;
  padding: 0;
}

.operation-flow {
  margin: 28px 0 32px;
  overflow: hidden;
  border-radius: 12px;
}

.operation-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--docs-border);
  background: var(--docs-surface-soft);
  padding: 16px 18px;
}

.operation-flow-header h2 {
  font-size: 17px;
  line-height: 1.35;
}

.operation-flow-header p {
  margin: 0;
  color: var(--docs-muted);
  font-size: 13px;
}

.operation-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.operation-steps li {
  display: grid;
  grid-template-columns: 30px minmax(240px, 0.95fr) minmax(140px, 0.6fr) minmax(0, 0.85fr);
  gap: 14px;
  align-items: start;
  border-top: 1px solid #eceff3;
  padding: 16px 18px;
}

.operation-steps li:first-child {
  border-top: 0;
}

.operation-steps span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--docs-navy);
  color: #ffffff;
  font-size: 12px;
  font-weight: var(--docs-weight-medium);
}

.operation-steps code {
  min-width: 0;
  overflow-wrap: break-word;
  border: 0;
  background: transparent;
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  padding: 0;
}

.operation-steps strong {
  color: var(--docs-ink);
  font-size: 14px;
  font-weight: var(--docs-weight-medium);
  line-height: 1.35;
}

.operation-steps p {
  margin: 0;
  color: var(--docs-muted);
  font-size: 13px;
  line-height: 1.45;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 700px;
  margin-bottom: 26px;
}

.section-heading p,
.docs-section > p,
.step-list p,
.model-grid p,
.path-grid p,
.guide-card-grid p,
.rail-grid p,
.callout p,
.timeline-list p,
.test-grid p,
.decision-grid p,
.asset-grid p,
.release-panel p,
.section-footnote,
.check-list {
  margin: 0;
  color: var(--docs-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 7px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: var(--docs-weight-medium);
}

.button-primary {
  border: 1px solid var(--docs-accent);
  background: var(--docs-accent);
  color: white;
}

.button-primary:hover {
  color: white;
  background: var(--docs-accent-strong);
}

.button-secondary {
  border: 1px solid var(--docs-border);
  background: var(--docs-surface);
  color: var(--docs-ink);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--docs-focus);
  outline-offset: 2px;
}

.test-grid span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-bottom: 16px;
  place-items: center;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-sm);
  color: var(--docs-accent);
  font-size: 12px;
  font-weight: var(--docs-weight-medium);
}

.step-list {
  display: grid;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-list li {
  position: relative;
  display: grid;
  gap: 12px;
  padding-left: 42px;
  counter-increment: step;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-sm);
  background: var(--docs-surface);
  color: var(--docs-accent);
  font-size: 13px;
  font-weight: var(--docs-weight-medium);
}

.step-list .decision-grid {
  margin-top: 4px;
}

.code-tabs {
  min-width: 0;
}

.tab-list {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.tab-list button {
  min-height: 36px;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-sm);
  background: var(--docs-surface);
  color: var(--docs-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: var(--docs-weight-medium);
  padding: 6px 10px;
}

.tab-list button[aria-selected="true"] {
  border-color: var(--docs-accent);
  background: var(--docs-surface-tint);
  color: var(--docs-accent);
}

.code-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--docs-code-line);
  border-radius: var(--docs-radius);
  background: var(--docs-code);
  box-shadow: none;
}

.docs-section > .model-grid + .code-card,
.docs-section > .decision-grid + .code-card,
.docs-section > .rail-grid + .code-card,
.docs-section > .test-grid + .code-card {
  margin-top: 22px;
}

.docs-section > .rail-grid + .timeline-list,
.docs-section > .test-grid + .timeline-list,
.docs-section > .base-url-card + .timeline-list {
  margin-top: 22px;
}

.docs-section > .code-card + .code-card {
  margin-top: 16px;
}

.code-card.is-hidden {
  display: none;
}

.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--docs-code-line);
  background: var(--docs-code-raised);
  min-height: 40px;
  padding: 0 12px 0 14px;
  color: var(--docs-code-muted);
  font-size: 11.5px;
}

.code-card-header span {
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.code-card-header button {
  min-height: 26px;
  border: 1px solid #1d3554;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: #cfe0ee;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: var(--docs-weight-semibold);
  padding: 4px 11px;
}

.code-card-header button:hover {
  border-color: #47709d;
}

.code-card pre {
  overflow: auto;
  margin: 0;
  padding: 15px 16px;
  color: var(--docs-code-text);
  font-size: 12.5px;
  line-height: 1.7;
}

.code-card pre code {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  padding: 0;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 48px;
  align-items: start;
}

.two-column-section > div:first-child {
  max-width: 640px;
}

.callout,
.base-url-card,
.model-grid article,
.path-grid a,
.rail-grid article,
.test-grid article,
.decision-grid article,
.asset-grid a,
.sandbox-workspace,
.release-panel > div,
.fixture-list > div {
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
}

.callout,
.base-url-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.inline-code,
.base-url-card code {
  overflow-wrap: anywhere;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-sm);
  background: var(--docs-surface-soft);
  color: var(--docs-ink);
  font-size: 13px;
  padding: 8px 10px;
}

.model-grid,
.path-grid,
.rail-grid,
.test-grid,
.decision-grid,
.asset-grid,
.fixture-list,
.release-panel,
.guide-card-grid {
  display: grid;
  gap: 12px;
}

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

.path-grid {
  grid-template-columns: repeat(4, 1fr);
}

.home-directory {
  margin: 0;
  border-top: 0;
  border-bottom: 0;
  background: var(--docs-bg);
  padding: 56px 0 0;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 28px;
}

.category-tabs a {
  min-height: 44px;
  border-bottom: 2px solid transparent;
  color: var(--docs-muted);
  font-size: 15px;
  font-weight: var(--docs-weight-semibold);
  padding: 12px 24px 10px 0;
}

.category-tabs a:hover,
.category-tabs a.is-active {
  border-bottom-color: var(--docs-accent);
  color: var(--docs-ink);
  font-weight: var(--docs-weight-medium);
}

.guide-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.guide-card-grid a {
  display: grid;
  min-height: 186px;
  align-content: start;
  gap: 13px;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
  padding: 20px;
}

.guide-card-grid a:hover {
  border-color: var(--docs-border-strong);
  box-shadow: 0 6px 20px rgba(2, 26, 58, 0.07);
}

.guide-card-grid span {
  color: var(--docs-success);
  font-size: 12px;
  font-weight: var(--docs-weight-semibold);
}

.guide-card-grid strong {
  color: var(--docs-ink);
  font-size: 16px;
  font-weight: var(--docs-weight-semibold);
  line-height: 1.35;
}

.guide-card-grid p {
  font-size: 14px;
  line-height: 1.55;
}

.rail-grid,
.test-grid,
.decision-grid,
.asset-grid {
  grid-template-columns: repeat(2, 1fr);
}

.model-grid article,
.path-grid a,
.rail-grid article,
.test-grid article,
.decision-grid article,
.asset-grid a {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.model-grid span,
.path-grid span,
.asset-grid span,
.release-panel span,
.fixture-list span {
  display: block;
  color: var(--docs-accent);
  font-size: 12px;
  font-weight: var(--docs-weight-medium);
}

.rail-grid a,
.path-grid a,
.asset-grid a {
  color: var(--docs-accent);
  font-size: 13px;
  font-weight: var(--docs-weight-medium);
}

.rail-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.path-grid strong,
.asset-grid strong {
  color: var(--docs-ink);
  font-weight: var(--docs-weight-medium);
}

.path-grid p {
  color: var(--docs-muted);
  font-weight: 400;
}

.sandbox-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 20px;
  margin-top: 18px;
  padding: 22px;
}

.sandbox-workspace h3 {
  margin-top: 0;
}

.sandbox-workspace p {
  margin: 10px 0 0;
  color: var(--docs-muted);
}

.fixture-list {
  grid-template-columns: repeat(2, 1fr);
}

.fixture-list > div {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.fixture-list code {
  overflow-wrap: anywhere;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-sm);
  background: var(--docs-surface-soft);
  color: var(--docs-ink);
  font-size: 12px;
  padding: 8px;
}

.release-panel {
  gap: 10px;
}

.release-panel > div {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.release-panel strong {
  color: var(--docs-ink);
  font-weight: var(--docs-weight-medium);
}

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

.timeline-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
}

.timeline-list div,
.error-table > div {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid var(--docs-border);
  padding: 14px 16px;
}

.timeline-list div:last-child,
.error-table > div:last-child {
  border-bottom: 0;
}

.timeline-list strong,
.error-table strong {
  font-family:
    "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: var(--docs-weight-medium);
}

.error-table {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
}

.section-footnote {
  margin-top: 14px;
  font-size: 14px;
}

.base-url-card span {
  color: var(--docs-faint);
  font-size: 12px;
  font-weight: var(--docs-weight-medium);
  text-transform: uppercase;
}

.base-url-wide {
  margin-top: 16px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.reference-section {
  padding-bottom: 0;
}

.reference-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scalar-shell {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  min-height: 680px;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
}

.scalar-shell-full {
  min-height: calc(100vh - 220px);
  border-color: var(--docs-border);
  border-radius: var(--docs-radius);
}

.reference-loading {
  margin: 0;
  padding: 32px;
  color: var(--docs-muted);
}

.reference-page {
  background: var(--docs-surface);
}

.reference-main {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 0;
}

.reference-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 60px);
}

.explorer-rail {
  position: sticky;
  top: 60px;
  align-self: stretch;
  height: calc(100vh - 60px);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  border-right: 1px solid var(--docs-border-soft);
  padding: 26px 14px 60px;
}

.explorer-rail nav {
  display: grid;
  gap: 2px;
}

.explorer-rail a {
  display: grid;
  gap: 3px;
  min-height: 34px;
  align-content: center;
  border-left: 2px solid transparent;
  border-radius: 0 5px 5px 0;
  color: var(--docs-muted);
  font-size: 13px;
  line-height: 1.35;
  padding: 6px 10px;
}

.explorer-rail a:hover {
  background: var(--docs-surface-soft);
  color: var(--docs-ink);
}

.explorer-rail a.is-active {
  border-left-color: var(--docs-accent);
  color: var(--docs-accent);
  font-weight: var(--docs-weight-semibold);
}

.explorer-rail a span {
  color: var(--docs-faint);
  font-size: 12px;
  font-weight: var(--docs-weight-regular);
}

.explorer-rail p {
  margin: 24px 0 8px;
  color: var(--docs-subtle);
  font-size: 10.5px;
  font-weight: var(--docs-weight-bold);
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
  padding: 0 10px;
}

.explorer-rail p:first-of-type {
  margin-top: 28px;
}

.explorer-home,
.explorer-compare {
  color: var(--docs-ink);
  font-weight: var(--docs-weight-medium);
}

.explorer-compare {
  margin-top: 2px;
}

.reference-content {
  min-width: 0;
  padding: 36px 40px 100px;
}

.reference-hero {
  display: block;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 24px;
}

.reference-hero h1 {
  margin: 0;
  color: var(--docs-ink);
  font-size: 34px;
  font-weight: var(--docs-weight-semibold);
  line-height: 1.12;
}

.reference-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--docs-muted);
  font-size: 16px;
  line-height: 1.55;
}

.reference-illustration {
  display: none;
}

.reference-foundations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--docs-border);
}

.reference-foundations article {
  display: grid;
  gap: 10px;
  align-content: start;
}

.foundation-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--docs-surface-tint);
  color: var(--docs-accent);
}

.foundation-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.reference-foundations h2 {
  margin: 0;
  color: var(--docs-ink);
  font-size: 17px;
  font-weight: var(--docs-weight-semibold);
  line-height: 1.35;
}

.reference-foundations p {
  margin: 0;
  color: var(--docs-muted);
  font-size: 14px;
  line-height: 1.55;
}

.reference-foundations a {
  color: var(--docs-link);
  font-size: 14px;
  font-weight: var(--docs-weight-medium);
}

.reference-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.version-compare {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 0.55fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--docs-border);
}

.version-compare h2 {
  margin: 0;
  color: var(--docs-ink);
  font-size: 22px;
  font-weight: var(--docs-weight-medium);
  line-height: 1.3;
}

.version-compare p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--docs-muted);
  font-size: 14px;
  line-height: 1.55;
}

.version-table {
  overflow: hidden;
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius);
  background: var(--docs-surface);
}

.version-table > div {
  display: grid;
  grid-template-columns: minmax(90px, 0.28fr) minmax(110px, 0.25fr) minmax(0, 0.47fr);
  border-top: 1px solid var(--docs-border);
}

.version-table > div:first-child {
  border-top: 0;
  background: var(--docs-surface-soft);
}

.version-table span {
  min-width: 0;
  padding: 11px 12px;
  color: var(--docs-muted);
  font-size: 13px;
  line-height: 1.35;
}

.version-table [role="columnheader"] {
  color: var(--docs-ink);
  font-weight: var(--docs-weight-medium);
}

@media (max-width: 1340px) {
  .topbar-links {
    display: none;
  }

  .topbar-primary {
    grid-template-columns: max-content minmax(220px, 1fr) max-content;
  }

  .docs-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

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

@media (max-width: 1040px) {
  .docs-intro {
    grid-template-columns: 1fr;
  }

  .operation-flow-header {
    display: grid;
  }

  .operation-steps li {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .operation-steps code,
  .operation-steps strong,
  .operation-steps p {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  .docs-topbar {
    grid-template-columns: 1fr max-content;
    gap: 10px;
    padding: 12px 16px;
  }

  .brand-lockup {
    min-width: 0;
  }

  .topbar-primary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .utility-links {
    justify-content: start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .docs-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .topbar-primary .docs-search {
    grid-column: auto;
    order: 2;
  }

  .topbar-primary .utility-links {
    order: 3;
  }

  .docs-layout {
    display: block;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 0 18px 56px;
  }

  .docs-sidebar {
    position: relative;
    top: auto;
    z-index: 10;
    width: calc(100% + 36px);
    max-width: calc(100% + 36px);
    height: auto;
    max-height: none;
    margin: 0 -18px;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--docs-border);
    background: rgba(255, 255, 255, 0.97);
    padding: 10px 18px;
  }

  .docs-sidebar .sidebar-label {
    display: none;
  }

  .docs-sidebar nav {
    display: flex;
    width: max-content;
    max-width: none;
    gap: 4px;
  }

  .docs-sidebar a {
    min-height: 40px;
    white-space: nowrap;
  }

  .docs-main {
    padding: 36px 0 56px;
  }

  .docs-section {
    width: 100%;
    max-width: 100%;
    padding: 44px 0;
  }

  .overview-section h1 {
    max-width: 100%;
    font-size: 34px;
  }

  .lede {
    max-width: 100%;
    font-size: 16px;
  }

  .contract-strip {
    grid-template-columns: 1fr;
  }

  .model-grid,
  .path-grid,
  .guide-card-grid,
  .rail-grid,
  .test-grid,
  .decision-grid,
  .asset-grid,
  .sandbox-workspace,
  .fixture-list,
  .two-column-section {
    grid-template-columns: 1fr;
  }

  .two-column-section {
    gap: 28px;
  }

  .home-directory {
    margin-right: 0;
    margin-left: 0;
    padding: 38px 0;
  }

  .guide-card-grid a {
    min-height: 0;
  }

  .step-list li {
    padding-left: 0;
    padding-top: 38px;
  }

  .timeline-list div,
  .error-table > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .reference-main {
    width: 100%;
    padding: 0;
  }

  .reference-shell {
    display: block;
    width: 100%;
    margin: 0;
  }

  .explorer-rail {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--docs-border);
    padding: 10px 18px;
  }

  .explorer-rail nav {
    display: flex;
    width: max-content;
    gap: 4px;
  }

  .explorer-rail p,
  .explorer-rail a span {
    display: none;
  }

  .explorer-rail a {
    min-height: 40px;
    white-space: nowrap;
  }

  .reference-main {
    width: 100%;
  }

  .reference-content {
    width: 100%;
    padding: 36px 18px 48px;
  }

  .reference-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding-bottom: 28px;
    margin-bottom: 32px;
  }

  .reference-illustration {
    display: none;
  }

  .reference-hero h1 {
    font-size: 28px;
  }

  .version-table {
    overflow-x: auto;
  }

  .version-table > div {
    min-width: 0;
  }
}

@media (max-width: 540px) {
  .overview-section h1 {
    font-size: 30px;
  }

  .docs-section h2 {
    font-size: 24px;
  }

  .hero-actions,
  .reference-choice {
    display: grid;
  }

  .operation-steps li {
    grid-template-columns: 1fr;
  }

  .operation-steps code,
  .operation-steps strong,
  .operation-steps p {
    grid-column: auto;
  }

  .tab-list {
    overflow-x: auto;
  }

  .tab-list button {
    min-width: max-content;
  }

  .code-card pre {
    font-size: 12px;
  }

  .reference-foundations,
  .version-compare {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .version-table > div {
    grid-template-columns: 1fr;
  }
}

@media (pointer: coarse) {
  .docs-sidebar a,
  .explorer-rail a,
  .topbar-links a,
  .topbar-taxonomy a,
  .utility-links a,
  .button,
  .tab-list button,
  .code-card-header button,
  .rail-grid a,
  .path-grid a,
  .guide-card-grid a,
  .product-card-grid a,
  .resource-link-list a,
  .asset-grid a {
    min-height: 44px;
  }
}

@media (pointer: coarse) {
  .docs-sidebar a,
  .topbar-links a,
  .button,
  .tab-list button,
  .code-card-header button,
  .rail-grid a,
  .path-grid a,
  .guide-card-grid a,
  .asset-grid a {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
