:root {
  --docs-bg: #ecebe5;
  --docs-paper: #f8f7f2;
  --docs-panel: #fffefa;
  --docs-ink: #172126;
  --docs-muted: #657176;
  --docs-rule: #c8cbc5;
  --docs-rail: #111a1e;
  --docs-rail-raised: #19262b;
  --docs-code: #0b1215;
}

html { height: 100%; background: var(--night); }

.api-page {
  height: 100%;
  overflow: hidden;
  color: var(--docs-ink);
  background: var(--night);
}

.api-app {
  display: grid;
  height: calc(100dvh - 70px);
  min-height: 0;
  grid-template-columns: clamp(260px, 19vw, 292px) minmax(0, 1fr);
  overflow: hidden;
}

.docs-rail {
  display: flex;
  min-height: 0;
  flex-direction: column;
  color: #d9e0e2;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    var(--docs-rail);
  background-size: 100% 40px;
  border-right: 1px solid #334248;
  overflow: hidden;
}

.rail-intro {
  flex: 0 0 auto;
  padding: clamp(20px, 2.7vh, 30px) 22px 20px;
  border-bottom: 1px solid #2b393e;
}

.release-mark {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 17px;
  color: #a6b1b4;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.release-mark span {
  width: 8px;
  height: 8px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,107,53,.11);
}

.rail-code {
  margin: 0 0 8px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
}

.rail-intro h1 {
  max-width: 230px;
  margin: 0 0 12px;
  color: var(--white);
  font-size: clamp(29px, 2.2vw, 35px);
  line-height: .98;
}

.rail-intro > p:last-child {
  max-width: 245px;
  margin: 0;
  color: #95a2a6;
  font-size: 12px;
  line-height: 1.55;
}

.rail-nav {
  min-height: 0;
  flex: 1 1 auto;
  padding: 7px 0;
  overflow-y: auto;
  scrollbar-color: #46555a transparent;
  scrollbar-width: thin;
}

.rail-nav button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 62px;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 3px 9px;
  align-content: center;
  padding: 9px 30px 9px 22px;
  color: #98a4a7;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
}

.rail-nav button::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 16px;
  color: transparent;
  font-family: var(--mono);
  font-size: 12px;
  transform: translateY(-50%);
}

.rail-nav button:hover { color: #eef2f3; background: rgba(255,255,255,.03); }
.rail-nav button.is-active { color: var(--white); background: var(--docs-rail-raised); border-left-color: var(--orange); }
.rail-nav button.is-active::after { color: var(--orange); }
.rail-nav button > span { grid-row: 1 / span 2; align-self: center; color: #718084; font-family: var(--mono); font-size: 10px; }
.rail-nav button.is-active > span { color: var(--orange); }
.rail-nav button b { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: .015em; line-height: 1; text-transform: uppercase; }
.rail-nav button small { color: #93a0a4; font-family: var(--mono); font-size: 11px; line-height: 1.35; }

.rail-status {
  flex: 0 0 auto;
  padding: 15px 22px 17px;
  background: rgba(6,11,13,.76);
  border-top: 1px solid #2c3a3f;
}

.rail-status b {
  display: inline-block;
  padding: 4px 7px;
  color: #ffd0bd;
  background: rgba(255,107,53,.1);
  border: 1px solid rgba(255,107,53,.25);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
}

.rail-status p { margin: 9px 0 11px; color: #859399; font-size: 11px; line-height: 1.5; }
.rail-status a { display: block; margin-top: 7px; color: #c3cbcd; font-family: var(--mono); font-size: 10px; text-decoration: none; text-transform: uppercase; }
.rail-status a:hover { color: var(--orange); }
.rail-status .rail-primary-link { color: #ffc7b1; }

.docs-stage {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 48px minmax(0, 1fr);
  background: var(--docs-bg);
}

.stage-bar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 2.4vw, 36px);
  color: #707b7f;
  background: #f7f6f1;
  border-bottom: 1px solid var(--docs-rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.stage-breadcrumb { display: flex; min-width: 0; gap: 10px; align-items: center; }
.stage-breadcrumb span { color: #929b99; }
.stage-breadcrumb i { color: #b3b8b3; font-style: normal; }
.stage-breadcrumb b { color: #354348; font-weight: 600; }
.stage-context { display: flex; gap: 9px; align-items: center; white-space: nowrap; }
.stage-context b { color: #4c595d; font-weight: 600; }
.stage-context small { color: #707b79; font-size: 10px; }
.context-dot { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,107,53,.11); }

.panel-stack { position: relative; min-width: 0; min-height: 0; overflow: hidden; }

.workspace-panel {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--docs-bg);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(12px, 0, 0);
  transition: opacity 210ms ease, transform 210ms cubic-bezier(.22, .72, .28, 1);
  will-change: opacity, transform;
}

.workspace-panel.is-entering { z-index: 3; opacity: 0; transform: translate3d(12px, 0, 0); }
.workspace-panel.is-active { z-index: 2; opacity: 1; pointer-events: auto; transform: none; }
.workspace-panel.is-leaving { z-index: 1; opacity: 0; pointer-events: none; transform: translate3d(-9px, 0, 0); }
.workspace-panel[hidden] { display: none; }

.panel-scroll {
  height: 100%;
  padding: clamp(27px, 3.6vh, 40px) clamp(26px, 3.5vw, 48px) 38px;
  overflow-y: auto;
  scrollbar-color: #a9afaa transparent;
  scrollbar-width: thin;
}

.panel-heading {
  display: grid;
  min-height: 104px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(30px, 4vw, 64px);
  align-items: end;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--docs-rule);
}

.panel-heading .eyebrow { margin: 0 0 9px; color: var(--orange-soft); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.panel-heading h2 { max-width: 850px; margin: 0; font-size: clamp(36px, 3.7vw, 52px); line-height: .98; }
.panel-heading h2:focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 6px; }
.panel-heading h2 em { color: var(--orange-soft); font-style: normal; }
.panel-heading > p { max-width: 480px; margin: 0 0 2px; color: var(--docs-muted); font-size: 14px; line-height: 1.6; }
.compact-heading { margin-bottom: 24px; }
.compact-heading h2 { font-size: clamp(34px, 3.3vw, 48px); }

.contract-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr) 30px minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 16px;
  background: var(--docs-panel);
  border: 1px solid var(--docs-rule);
}

.contract-flow article { min-width: 0; min-height: 144px; padding: 17px 18px; }
.contract-flow article > span { color: #7c8888; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; }
.contract-flow h3 { margin: 8px 0 6px; font-family: var(--display); font-size: 20px; font-weight: 600; text-transform: uppercase; }
.contract-flow p { margin: 0; color: #687478; font-size: 12px; line-height: 1.5; }
.flow-arrow { display: grid; width: 30px; place-items: center; color: var(--orange-soft); border-inline: 1px solid #dedfd9; font-family: var(--mono); font-size: 13px; font-style: normal; }
.flow-glyph { position: relative; width: 47px; height: 28px; margin-top: 8px; color: var(--orange-soft); }
.source-glyph i { position: absolute; left: 0; width: 34px; height: 1px; background: #788386; transform-origin: left; }
.source-glyph i:nth-child(1) { top: 4px; transform: rotate(13deg); }
.source-glyph i:nth-child(2) { top: 14px; }
.source-glyph i:nth-child(3) { top: 24px; transform: rotate(-13deg); }
.source-glyph::after { content: ""; position: absolute; top: 8px; right: 0; width: 12px; height: 12px; background: var(--orange); }
.hash-glyph { display: grid; place-items: center; color: var(--orange-soft); border: 1px solid #9ba3a1; font-family: var(--mono); font-size: 19px; }
.event-glyph i { position: absolute; left: 0; width: 46px; height: 11px; border: 1px solid #8c9695; }
.event-glyph i:first-child { top: 1px; }
.event-glyph i:last-child { top: 17px; border-color: var(--orange-soft); }

.overview-grid { display: grid; grid-template-columns: 1fr 1fr minmax(220px, .72fr); gap: 10px; }
.distinction-card, .scope-card { min-width: 0; padding: 16px; background: var(--docs-paper); border: 1px solid var(--docs-rule); }
.distinction-card header { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.distinction-card header span { color: #657273; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; }
.distinction-card header b { padding: 4px 6px; color: #8c4f3a; background: #f0ded5; font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.distinction-card > code { display: block; padding: 9px 10px; overflow: hidden; color: #d8e2e4; background: #172126; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.distinction-card > p, .scope-card > p { margin: 12px 0 0; color: #657175; font-size: 12px; line-height: 1.55; }
.planned-card { border-top: 3px solid var(--orange); }
.scope-card { color: #dfe5e6; background: #172126; border-color: #344348; }
.scope-card > span { color: var(--orange); font-family: var(--mono); font-size: 10px; }
.scope-card h3 { margin: 11px 0 0; color: var(--white); font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1; text-transform: uppercase; }
.scope-card > p { color: #a1acae; }
.developer-kit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 30px; align-items: center; margin-top: 14px; padding: 18px; color: #dfe5e6; background: #172126; border: 1px solid #344348; }
.developer-kit > div:first-child > span { color: var(--orange); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.developer-kit h3 { margin: 7px 0 6px; color: var(--white); font-family: var(--display); font-size: 24px; font-weight: 600; text-transform: uppercase; }
.developer-kit p { max-width: 680px; margin: 0; color: #9eaaad; font-size: 12px; line-height: 1.55; }
.developer-kit-links { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #46555a; border-left: 1px solid #46555a; }
.developer-kit-links a { display: flex; min-height: 48px; gap: 16px; align-items: center; justify-content: space-between; padding: 10px 12px; color: #d3dcde; border-right: 1px solid #46555a; border-bottom: 1px solid #46555a; font-family: var(--mono); font-size: 11px; text-decoration: none; }
.developer-kit-links a:hover { color: var(--night); background: var(--cyan); }
.developer-kit-links i { color: var(--orange); font-style: normal; }
.developer-kit-links a:hover i { color: var(--night); }
.inline-route { display: inline-flex; gap: 24px; align-items: center; margin-top: 16px; padding: 11px 14px; color: var(--white); background: var(--docs-ink); border: 0; cursor: pointer; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.inline-route:hover { background: var(--orange-soft); }

.explorer-layout {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto 62px minmax(0, 1fr);
  padding: clamp(27px, 3.6vh, 40px) clamp(26px, 3.5vw, 48px) 34px;
}

.explorer-heading { margin-bottom: 24px; }
.explorer-heading h2 { font-size: clamp(36px, 3.7vw, 52px); }
.explorer-heading > p { font-size: 14px; }
.request-strip { display: grid; min-width: 0; grid-template-columns: minmax(300px, 1fr) 250px 230px; color: #dce4e5; background: #172126; border: 1px solid #344348; }
.request-address { display: flex; min-width: 0; gap: 11px; align-items: center; padding: 0 16px; }
.request-address > b { padding: 5px 7px; color: var(--night); background: var(--cyan); font-family: var(--mono); font-size: 10px; }
.request-address code { min-width: 0; overflow: hidden; color: #d5dddf; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.request-address em { padding: 4px 5px; color: #ffcbb6; border: 1px solid rgba(255,107,53,.35); font-family: var(--mono); font-size: 10px; font-style: normal; }
.request-strip label { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px; align-items: center; padding: 0 13px; border-left: 1px solid #344348; }
.request-strip label > span { color: #a5b1b4; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.request-strip select { min-width: 0; padding: 8px 25px 8px 8px; color: #e1e6e7; background: #111a1e; border: 1px solid #4a5a60; font-family: var(--mono); font-size: 10px; }
.response-state { display: flex; gap: 10px; align-items: center; padding: 0 13px; border-left: 1px solid #344348; }
.response-state > span { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; }
.response-state > span.is-live { background: var(--green); box-shadow: 0 0 0 4px rgba(147,211,176,.1); }
.response-state > span.is-error { background: var(--red); }
.response-state div { display: grid; min-width: 0; }
.response-state b { font-family: var(--mono); font-size: 10px; font-weight: 600; }
.response-state small { overflow: hidden; color: #a0adb0; font-family: var(--mono); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.response-workspace { display: grid; min-width: 0; min-height: 0; grid-template-columns: 188px minmax(0, 1fr) 220px; overflow: hidden; color: #dce3e4; background: #0d1518; border: 1px solid #344348; border-top: 0; }
.sample-tabs { display: flex; min-height: 0; flex-direction: column; padding: 10px; background: #111b1f; border-right: 1px solid #344348; }
.sample-tabs button { display: grid; grid-template-columns: 31px 1fr; grid-template-rows: auto auto; gap: 2px 8px; padding: 12px 9px; color: #a0acae; background: transparent; border: 0; border-left: 2px solid transparent; cursor: pointer; text-align: left; }
.sample-tabs button:hover { color: #edf1f2; background: #172429; }
.sample-tabs button.is-active { color: var(--white); background: #172429; border-left-color: var(--orange); }
.sample-tabs button span { grid-row: 1 / span 2; align-self: center; color: var(--green); font-family: var(--mono); font-size: 10px; }
.sample-tabs button[data-sample="error"] span { color: var(--orange); }
.sample-tabs button b { font-family: var(--display); font-size: 16px; font-weight: 600; text-transform: uppercase; }
.sample-tabs button small { color: #9aa8ab; font-family: var(--mono); font-size: 10px; }
.code-console { display: grid; min-width: 0; min-height: 0; grid-template-rows: 42px minmax(0, 1fr) 36px; background: var(--docs-code); }
.code-console > header { display: flex; gap: 13px; align-items: center; justify-content: space-between; padding: 0 13px; color: #9aa7aa; background: #121d21; border-bottom: 1px solid #2b3a3f; font-family: var(--mono); font-size: 10px; }
.window-dots { display: flex; gap: 5px; margin-right: auto; }
.window-dots i { width: 6px; height: 6px; background: #546469; border-radius: 50%; }
.window-dots i:first-child { background: var(--orange); }
.code-console > header button { padding: 7px 9px; color: #c3ccce; background: transparent; border: 1px solid #4a5b61; cursor: pointer; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.code-console > header button:hover { color: var(--night); background: var(--cyan); border-color: var(--cyan); }
.code-console pre { min-width: 0; min-height: 0; padding: 18px; margin: 0; overflow: auto; color: #d3dadd; font-family: var(--mono); font-size: clamp(11px, .8vw, 13px); line-height: 1.62; tab-size: 2; scrollbar-color: #435359 #0b1215; }
.code-console > footer { display: flex; gap: 15px; align-items: center; justify-content: space-between; padding: 0 13px; overflow: hidden; color: #9caaae; background: #10191d; border-top: 1px solid #29383d; font-family: var(--mono); font-size: 10px; letter-spacing: .025em; text-transform: uppercase; }
.code-console > footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.response-anatomy { min-height: 0; padding: 16px; overflow-y: auto; background: #10191d; border-left: 1px solid #344348; }
.response-anatomy > p { margin: 0 0 12px; color: #8c999d; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; }
.response-anatomy dl { margin: 0; }
.response-anatomy dl div { padding: 10px 0; border-top: 1px solid #2c3a3f; }
.response-anatomy dt { color: var(--cyan); font-family: var(--mono); font-size: 10px; }
.response-anatomy dd { margin: 4px 0 0; color: #96a4a8; font-size: 10px; line-height: 1.45; }
.response-anatomy button { width: 100%; margin-top: 13px; padding: 11px; color: #e0e5e6; background: transparent; border: 1px solid #53646a; cursor: pointer; font-family: var(--mono); font-size: 10px; text-align: left; text-transform: uppercase; }
.response-anatomy button span { float: right; color: var(--orange); }

.resource-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); gap: 16px; align-items: start; }
.endpoint-catalog { display: flex; height: auto; align-self: start; flex-direction: column; background: var(--docs-panel); border: 1px solid var(--docs-rule); }
.endpoint-catalog article { display: grid; min-height: 0; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; align-items: center; flex: 0 0 auto; padding: 10px 13px; border-bottom: 1px solid #d7d8d2; }
.endpoint-catalog article:last-child { border-bottom: 0; }
.method { display: grid; height: 29px; padding: 0; place-items: center; color: var(--night); background: transparent; font-family: var(--mono); font-size: 10px; font-weight: 600; }
.method.get { background: var(--cyan); }
.method.post { color: var(--white); background: var(--orange-soft); }
.endpoint-catalog code { color: #273438; font-size: 12px; overflow-wrap: anywhere; }
.endpoint-catalog p { margin: 3px 0 0; color: #697478; font-size: 13px; line-height: 1.35; }
.endpoint-catalog article > b { padding: 4px 6px; color: #687373; border: 1px solid #b7bbb5; font-family: var(--mono); font-size: 10px; font-weight: 600; }
.resource-spec { align-self: start; padding: 18px; color: #dce3e4; background: #172126; border: 1px solid #344348; }
.resource-spec > header { display: grid; grid-template-columns: 45px minmax(0,1fr); gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #35454a; }
.resource-spec > header > span { display: grid; height: 29px; place-items: center; color: var(--night); background: var(--cyan); font-family: var(--mono); font-size: 10px; }
.resource-spec header div { display: grid; min-width: 0; }
.resource-spec header code { overflow: hidden; color: #d4dddf; font-size: 11px; text-overflow: ellipsis; }
.resource-spec header small { color: #a0adb0; font-family: var(--mono); font-size: 10px; }
.resource-spec > p { margin: 14px 0; color: #a1acae; font-size: 12px; line-height: 1.55; }
.resource-spec dl { margin: 0; }
.resource-spec dl div { display: grid; grid-template-columns: 105px 1fr; gap: 14px; padding: 7px 0; border-top: 1px solid #2e3d42; }
.resource-spec dt { color: #a7b3b6; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.resource-spec dd { margin: 0; color: #bcc5c7; font-size: 10px; line-height: 1.4; }
.resource-spec dd code { color: var(--cyan); font-size: 10px; }
.mini-code { margin-top: 14px; background: #0b1215; border: 1px solid #2d3c41; }
.mini-code > span { display: block; padding: 7px 10px; color: #a5b1b4; border-bottom: 1px solid #2d3c41; font-family: var(--mono); font-size: 10px; }
.mini-code pre { padding: 10px; margin: 0; overflow-x: auto; color: #c7d0d2; font-family: var(--mono); font-size: 10px; line-height: 1.55; }
.resource-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.resource-facts article { padding: 14px; background: #dedfd9; border-top: 2px solid #9aa2a0; }
.resource-facts span { color: var(--orange-soft); font-family: var(--mono); font-size: 10px; }
.resource-facts p { margin: 7px 0 0; color: #5b686c; font-size: 12px; line-height: 1.5; }

.model-canvas { display: grid; grid-template-columns: minmax(220px,.65fr) 100px 1.35fr; gap: 14px; align-items: center; padding: 21px; background: #dfe0da; border: 1px solid var(--docs-rule); }
.model-node { min-width: 0; padding: 16px; background: var(--docs-paper); border: 1px solid #c5c8c2; }
.model-node > span { color: #6b7777; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; }
.model-node h3 { margin: 10px 0 12px; font-family: var(--display); font-size: 21px; font-weight: 600; text-transform: uppercase; }
.model-node code { display: block; margin-top: 4px; color: #606d71; font-size: 10px; }
.primary-node { color: #dce4e5; background: #172126; border-color: #344348; }
.primary-node code { color: #a1adaf; }
.model-link { display: flex; align-items: center; }
.model-link span { flex: 1; height: 1px; background: #a5aaa6; }
.model-link b { padding: 5px; color: var(--orange-soft); font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.evidence-nodes { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.clock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.clock-grid article { display: grid; min-width: 0; grid-template-columns: 38px 1fr; gap: 12px; padding: 15px; background: var(--docs-panel); border: 1px solid var(--docs-rule); }
.clock-grid article > span { display: grid; width: 34px; height: 34px; place-items: center; color: var(--night); background: var(--orange); font-family: var(--mono); font-size: 10px; }
.clock-grid h3 { margin: 0 0 5px; font-family: var(--display); font-size: 18px; font-weight: 600; text-transform: uppercase; }
.clock-grid code { color: var(--orange-soft); font-size: 10px; overflow-wrap: anywhere; }
.clock-grid p { margin: 7px 0 0; color: #687478; font-size: 11px; line-height: 1.5; }
.field-strip { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 14px; background: #172126; border: 1px solid #344348; }
.field-strip > div { min-width: 0; padding: 14px; border-right: 1px solid #344348; }
.field-strip > div:last-child { border-right: 0; }
.field-strip code { color: var(--cyan); font-size: 10px; }
.field-strip p { margin: 7px 0 0; color: #a1adaf; font-size: 10px; line-height: 1.45; }
.field-strip p span { display: inline-block; margin: 2px; padding: 3px 5px; background: #243338; font-family: var(--mono); font-size: 10px; }

.events-scroll { color: var(--docs-ink); background: var(--docs-bg); }
.dark-heading h2 { color: var(--docs-ink); }
.dark-heading > p { color: var(--docs-muted); }
.events-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(390px,.82fr); gap: 16px; }
.event-catalog { align-self: start; background: var(--docs-panel); border: 1px solid var(--docs-rule); }
.event-catalog article { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 5px 15px; padding: 12px 14px; border-bottom: 1px solid #d7d8d2; }
.event-catalog article:last-child { border-bottom: 0; }
.event-catalog span { grid-row: 1 / span 2; color: #687475; font-family: var(--mono); font-size: 10px; }
.event-catalog code { color: #226c78; font-size: 10px; overflow-wrap: anywhere; }
.event-catalog p { margin: 0; color: #687478; font-size: 11px; line-height: 1.45; }
.webhook-console { display: grid; min-width: 0; min-height: 292px; grid-template-rows: 40px minmax(0,1fr) 34px; background: #080d0f; border: 1px solid #344348; }
.webhook-console header { display: flex; align-items: center; justify-content: space-between; padding: 0 13px; color: #b0bbbd; background: #172429; border-bottom: 1px solid #344348; font-family: var(--mono); font-size: 10px; }
.webhook-console header b { color: var(--orange); font-weight: 600; }
.webhook-console pre { min-width: 0; min-height: 0; padding: 16px; margin: 0; overflow: auto; color: #d0d8da; font-family: var(--mono); font-size: 11px; line-height: 1.6; }
.webhook-console footer { padding: 9px 13px; color: #9eabad; background: #10191d; border-top: 1px solid #29383d; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.event-guardrails { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 15px; }
.event-guardrails article { padding: 14px; background: var(--docs-panel); border: 1px solid var(--docs-rule); border-top: 2px solid #6e7d80; }
.event-guardrails b { color: var(--docs-ink); font-family: var(--display); font-size: 17px; font-weight: 600; text-transform: uppercase; }
.event-guardrails p { margin: 6px 0 0; color: #687478; font-size: 11px; line-height: 1.5; }
.event-guardrails code { color: #226c78; font-size: 10px; }

.access-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.access-card { min-width: 0; padding: 18px; background: var(--docs-panel); border: 1px solid var(--docs-rule); }
.access-card header { display: flex; gap: 15px; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid #d4d5cf; }
.access-card header span { color: var(--orange-soft); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; }
.access-card header b { color: #606c70; font-family: var(--mono); font-size: 10px; font-weight: 400; }
.access-card > p { margin: 14px 0; color: #657175; font-size: 12px; line-height: 1.55; }
.access-card pre { padding: 14px; margin: 0; overflow: auto; color: #d1d9db; background: #111b1f; font-family: var(--mono); font-size: 11px; line-height: 1.6; }
.access-card ul { padding: 0; margin: 14px 0 0; list-style: none; }
.access-card li { padding: 7px 0 7px 16px; color: #657175; border-top: 1px solid #dedfd9; font-size: 11px; }
.access-card li::before { content: "+"; float: left; margin-left: -16px; color: var(--orange-soft); font-family: var(--mono); }
.error-card { background: #e3e3dd; }
.boundary-banner { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; margin-top: 15px; padding: 17px 19px; color: #dce3e4; background: #172126; border-left: 4px solid var(--orange); }
.boundary-banner > span { color: #ffcbb5; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .05em; }
.boundary-banner h3 { margin: 0 0 5px; color: var(--white); font-family: var(--display); font-size: 20px; font-weight: 600; text-transform: uppercase; }
.boundary-banner p { margin: 0; color: #a0acae; font-size: 11px; line-height: 1.5; }
.next-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 15px; }
.next-links a { display: grid; grid-template-columns: 78px 1fr auto; gap: 13px; align-items: center; padding: 15px; color: var(--docs-ink); background: var(--docs-panel); border: 1px solid var(--docs-rule); text-decoration: none; }
.next-links a:hover { border-color: var(--orange-soft); }
.next-links span { color: var(--orange-soft); font-family: var(--mono); font-size: 10px; }
.next-links b { font-family: var(--display); font-size: 18px; font-weight: 600; text-transform: uppercase; }
.next-links i { color: var(--orange-soft); font-style: normal; }

@media (max-height: 760px) and (min-width: 901px) {
  .rail-intro { padding-top: 16px; padding-bottom: 15px; }
  .rail-intro h1 { font-size: 28px; }
  .rail-intro > p:last-child { display: none; }
  .release-mark { margin-bottom: 10px; }
  .rail-nav button { min-height: 52px; }
  .rail-status p { display: none; }
  .rail-status { padding-block: 11px; }
  .panel-scroll, .explorer-layout { padding-top: 24px; }
  .panel-heading { min-height: 88px; padding-bottom: 16px; margin-bottom: 18px; }
}

@media (max-width: 1220px) {
  .api-app { grid-template-columns: 248px minmax(0,1fr); }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .scope-card { grid-column: 1 / -1; }
  .developer-kit { grid-template-columns: 1fr; }
  .request-strip { grid-template-columns: minmax(270px,1fr) 235px; }
  .response-state { display: none; }
  .response-workspace { grid-template-columns: 168px minmax(0,1fr); }
  .response-anatomy { display: none; }
  .resource-layout { grid-template-columns: 1fr; }
  .endpoint-catalog { width: 100%; }
  .model-canvas { grid-template-columns: 1fr; }
  .model-link { width: 70px; justify-self: center; transform: rotate(90deg); }
  .evidence-nodes { width: 100%; }
}

@media (max-width: 900px) {
  .api-app { width: 100%; min-width: 0; grid-template-columns: minmax(0,1fr); grid-template-rows: 59px minmax(0,1fr); }
  .docs-rail { display: block; width: 100%; min-width: 0; max-width: 100%; border-right: 0; border-bottom: 1px solid #344348; }
  .rail-intro, .rail-status { display: none; }
  .rail-nav { display: flex; width: 100%; min-width: 0; max-width: 100%; padding: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .rail-nav button { min-width: 142px; min-height: 58px; grid-template-columns: 25px 1fr; flex: 1 0 auto; padding: 7px 13px; border-left: 0; border-bottom: 3px solid transparent; }
  .rail-nav button.is-active { border-bottom-color: var(--orange); border-left-color: transparent; }
  .rail-nav button::after, .rail-nav button small { display: none; }
  .docs-stage { width: 100%; min-width: 0; max-width: 100%; grid-template-rows: 43px minmax(0,1fr); }
  .stage-bar { padding-inline: 16px; }
  .stage-context small { display: none; }
  .panel-scroll { padding: 25px 20px 30px; }
  .panel-heading { min-height: 0; grid-template-columns: 1fr; gap: 13px; align-items: start; padding-bottom: 17px; }
  .panel-heading > p { max-width: 700px; }
  .contract-flow { grid-template-columns: 1fr; }
  .flow-arrow { width: auto; height: 25px; border-inline: 0; border-block: 1px solid #dedfd9; transform: rotate(90deg); }
  .contract-flow article { min-height: 125px; }
  .overview-grid { grid-template-columns: 1fr; }
  .scope-card { grid-column: auto; }
  .developer-kit-links { grid-template-columns: 1fr 1fr; }
  .explorer-layout { grid-template-rows: auto auto minmax(0,1fr); padding: 24px 16px 16px; }
  .explorer-heading { margin-bottom: 17px; }
  .request-strip { grid-template-columns: 1fr; }
  .request-address { min-height: 47px; }
  .request-strip label { min-height: 45px; border-top: 1px solid #344348; border-left: 0; }
  .response-workspace { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }
  .sample-tabs { flex-direction: row; padding: 7px; overflow-x: auto; border-right: 0; border-bottom: 1px solid #344348; }
  .sample-tabs button { min-width: 135px; }
  .resource-facts, .clock-grid, .field-strip, .event-guardrails { grid-template-columns: 1fr; }
  .evidence-nodes { grid-template-columns: 1fr; }
  .events-layout { grid-template-columns: 1fr; }
  .access-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .rail-nav button { min-width: 120px; }
  .rail-nav button b { font-size: 15px; }
  .stage-context b { display: none; }
  .panel-heading h2 { font-size: clamp(34px, 10.5vw, 46px); }
  .distinction-card header { align-items: flex-start; flex-direction: column; }
  .endpoint-catalog article { grid-template-columns: 42px minmax(0,1fr); }
  .endpoint-catalog article > b { display: none; }
  .model-canvas { padding: 14px; }
  .boundary-banner { grid-template-columns: 1fr; gap: 8px; }
  .next-links { grid-template-columns: 1fr; }
  .developer-kit { padding: 15px; }
  .developer-kit-links { grid-template-columns: 1fr; }
  .code-console pre { padding: 14px; font-size: 11px; }
  .code-console > footer span:first-child { display: none; }
}

@media (max-width: 680px) {
  .api-app { height: calc(100dvh - 62px); }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-panel { transition: none; }
}

/* A documentation interface can be dense without asking the user to squint. */
.api-app { font-size: 13px; }

.api-app :is(small, dt) {
  font-size: 11px !important;
  line-height: 1.45;
}

.api-app :is(p, dd, li) {
  font-size: clamp(12px, .92vw, 14px);
  line-height: 1.55;
}

.api-app :is(code, pre) {
  font-size: clamp(11.5px, .82vw, 13px) !important;
}

.api-app :is(button, select) { font-size: 11px; }

.api-app :is(
  .release-mark,
  .rail-code,
  .rail-status b,
  .rail-status a,
  .stage-bar,
  .contract-flow article > span,
  .distinction-card header span,
  .distinction-card header b,
  .scope-card > span,
  .request-address > b,
  .request-address em,
  .request-strip label > span,
  .response-state b,
  .sample-tabs button span,
  .code-console > header,
  .code-console > footer,
  .response-anatomy > p,
  .response-anatomy dt,
  .method,
  .endpoint-catalog article > b,
  .resource-spec > header > span,
  .mini-code > span,
  .resource-facts span,
  .model-node > span,
  .model-link b,
  .clock-grid article > span,
  .field-strip p span,
  .event-catalog > article > span,
  .webhook-console header,
  .webhook-console footer,
  .access-card header span,
  .access-card header b,
  .boundary-banner > span,
  .next-links span
) {
  font-size: 11px;
}

.api-app :is(.inline-route, .code-console > header button, .response-anatomy button) {
  min-height: 38px;
  font-size: 11px;
}

.api-app .rail-nav button > span { font-size: 11px; }
