/* ==========================================================================
   divizu — field manual theme
   Warm dark, hard edges, exposed rules. No rounded-card furniture.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("./fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("./fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --ink: #0c0c0a;
  --ink-deep: #090908;
  --raised: #11110e;
  --panel: #151512;
  --panel-2: #1a1a16;
  --panel-3: #20201b;
  --line: #2a2a24;
  --line-2: #3b3a32;
  --line-3: #504e43;

  --paper: #ece7da;
  --body: #c9c3b5;
  --muted: #918b7d;
  --faint: #666156;
  --ghost: #49463d;

  --accent: #f1602f;
  --accent-bright: #ff7a4d;
  --accent-dim: #a53f1d;
  --green: #b7d16b;
  --red: #ef6a58;
  --blue: #79a7d4;
  --amber: #dfb052;

  --grid: rgba(236, 231, 218, 0.028);
  --grid-strong: rgba(236, 231, 218, 0.055);
  --wash: rgba(236, 231, 218, 0.035);

  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;

  --topbar-h: 60px;
  --shell: 1312px;
  --gutter: 32px;
  --ease: 140ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 28px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--ink);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(241, 96, 47, 0.3);
  color: var(--paper);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

img,
svg {
  max-width: 100%;
}

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

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

button,
summary {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
}

.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 9px 13px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skip-link:focus {
  top: 12px;
  color: var(--ink);
}

.mono {
  font-family: var(--mono);
}

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

.kicker,
.overline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kicker::before,
.overline::before {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--accent);
  content: "";
}

.kicker.is-plain::before,
.overline.is-plain::before {
  display: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag.is-accent {
  border-color: rgba(241, 96, 47, 0.46);
  color: var(--accent);
}

.tag.is-green {
  border-color: rgba(183, 209, 107, 0.4);
  color: var(--green);
}

.text-link {
  color: var(--paper);
  text-decoration-line: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--ease), text-decoration-color var(--ease);
}

.text-link:hover {
  color: var(--accent-bright);
  text-decoration-color: currentColor;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    border-color var(--ease),
    background var(--ease),
    color var(--ease);
}

.btn:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.btn .arrow {
  transition: transform var(--ease);
}

.btn:hover .arrow {
  transform: translateX(2px);
}

.btn-solid {
  border-color: var(--accent);
  background: var(--accent);
  color: #180b06;
}

.btn-solid:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.btn-small {
  height: 31px;
  padding-inline: 10px;
  font-size: 9.5px;
}

.icon-btn {
  display: inline-grid;
  width: 31px;
  height: 31px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
}

.icon-btn:hover {
  border-color: var(--paper);
  color: var(--paper);
}

/* ------------------------------------------------------------------ topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.topbar-in {
  display: flex;
  align-items: stretch;
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  min-height: var(--topbar-h);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
}

.brand-mark {
  width: 23px;
  height: 23px;
  flex: none;
  overflow: visible;
}

.brand-mark .mark-field {
  fill: var(--ink);
}

.brand-mark .mark-frame {
  fill: none;
  stroke: var(--paper);
  stroke-width: 2;
}

.brand-mark .mark-tab {
  fill: var(--accent);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
}

.brand-sub {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.topbar-nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin-left: auto;
}

.topbar-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--ease), color var(--ease);
}

.topbar-nav a:last-child {
  border-right: 1px solid var(--line);
}

.topbar-nav a:hover {
  background: var(--wash);
  color: var(--paper);
}

.topbar-nav a[aria-current="page"] {
  color: var(--paper);
}

.topbar-nav a[aria-current="page"] .nav-num {
  color: var(--accent);
}

.nav-num {
  color: var(--faint);
  font-size: 8px;
}

.nav-ext {
  color: var(--faint);
}

.topbar-end {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
}

.build-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.build-chip::before {
  width: 5px;
  height: 5px;
  background: var(--green);
  content: "";
}

/* -------------------------------------------------------------------- hero */

.page-home {
  background: var(--ink);
}

/* ------------------------------------------------------------- home intro */

.home-intro {
  padding: clamp(32px, 4.2vw, 58px) 0 0;
}

.intro-head {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.intro-head h1 {
  margin-top: 20px;
  color: var(--paper);
  font-size: clamp(48px, 5.8vw, 80px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.062em;
}

.intro-head h1 .accent {
  color: var(--accent);
}

.intro-side {
  max-width: 42ch;
  padding-bottom: 2px;
}

.intro-side p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.62;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* --------------------------------------------------------------- live demo */

.demo-frame {
  margin-top: clamp(28px, 3.4vw, 42px);
  border: 1px solid var(--line-2);
  background: var(--panel);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  padding: 5px 8px 5px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--raised);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  letter-spacing: 0.09em;
}

.demo-live::before {
  width: 4px;
  height: 4px;
  background: currentColor;
  content: "";
}

.demo-file {
  color: var(--paper);
  text-transform: none;
}

.demo-hint {
  margin-left: auto;
  color: var(--faint);
}

.demo-grid {
  display: grid;
  height: clamp(390px, 33vw, 470px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.demo-grid .panel {
  border: 0;
}

.demo-grid .demo-source {
  border-right: 1px solid var(--line);
}

.demo-grid .viz-stage {
  width: 100%;
  height: 100%;
  padding: 18px;
}

.demo-grid .viz-stage svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.demo-source .panel-foot span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-2);
  border-top: 0;
}

.home-facts > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px 15px;
  border-left: 1px solid var(--line);
}

.home-facts > div:first-child {
  border-left: 0;
}

.fact-num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
}

.home-facts strong {
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 520;
  letter-spacing: -0.01em;
}

.home-facts > div > span:last-child {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.agent-block {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 4.4vw, 54px) 0;
  border-top: 1px solid var(--line-2);
  scroll-margin-top: calc(var(--topbar-h) + 24px);
}

.agent-copy h2 {
  margin-top: 12px;
  color: var(--paper);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.045em;
}

.agent-copy p:not(.kicker) {
  max-width: 42ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.agent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.agent-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-3);
  color: var(--paper);
}

.agent-links a:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.agent-prompt {
  border: 1px solid var(--line-2);
  background: var(--panel);
}

.agent-prompt-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--raised);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-prompt-head .copy-btn {
  margin-left: auto;
}

.agent-prompt pre {
  padding: 18px;
  margin: 0;
  overflow: auto;
  background: #0f0f0c;
  color: var(--body);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.agent-prompt code {
  font: inherit;
}

.btn-solid[data-copied] {
  border-color: var(--green);
  background: var(--green);
  color: var(--ink);
}

.home-cli {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  margin-top: 18px;
  border-bottom: 1px solid var(--line-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
}

.home-cli-label {
  color: var(--accent);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-cli code {
  flex: 1;
  overflow: auto;
  color: var(--body);
  font: inherit;
  white-space: nowrap;
}

.home-cli a {
  color: var(--paper);
  white-space: nowrap;
}

.home-cli a:hover {
  color: var(--accent-bright);
}

/* -------------------------------------------------------------------- code */

.code {
  min-width: 0;
  border: 1px solid var(--line-2);
  background: #0f0f0c;
}

.code-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--raised);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.code-head .code-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-head .code-meta {
  margin-left: auto;
  color: var(--faint);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 23px;
  padding: 0 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color var(--ease), color var(--ease);
}

.copy-btn:hover,
.copy-btn[data-copied] {
  border-color: var(--accent);
  color: var(--accent);
}

.code pre {
  padding: 17px 18px 19px;
  margin: 0;
  overflow: auto;
  color: var(--body);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.78;
  tab-size: 2;
}

.code code {
  font: inherit;
}

.c-key {
  color: var(--accent);
}

.c-str {
  color: var(--amber);
}

.c-com {
  color: var(--faint);
}

.c-fn {
  color: var(--blue);
}

.c-num {
  color: var(--green);
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 32px;
  padding: 42px 0 26px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .brand-name {
  font-size: 20px;
}

.footer-brand p {
  max-width: 34ch;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-label {
  margin-bottom: 3px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-col a {
  width: fit-content;
  color: var(--muted);
  font-size: 12.5px;
  transition: color var(--ease);
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--ghost);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------- diagram palette */

.doc-figure-stage svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.viz-stage .di-viz,
.doc-figure-stage .di-viz {
  --di-canvas-bg: transparent;
  --di-font: var(--mono);
}

/* ==========================================================================
   Playground
   ========================================================================== */

.page-playground {
  display: flex;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
}

.page-playground .topbar {
  position: relative;
  flex: none;
}

.workbench {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 10px 12px 0;
}

.workbench-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 7px 10px 7px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.bar-path {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bar-path .path-current {
  overflow: hidden;
  color: var(--paper);
  text-overflow: ellipsis;
}

.bar-path .path-slash {
  color: var(--ghost);
}

.bar-path .path-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  color: var(--green);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bar-path .path-live::before {
  width: 4px;
  height: 4px;
  background: currentColor;
  content: "";
}

.bar-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.tool-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-wrap::after {
  position: absolute;
  right: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  content: "▾";
  pointer-events: none;
}

.select-wrap select {
  height: 31px;
  max-width: 152px;
  padding: 0 25px 0 9px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  outline: 0;
  appearance: none;
  background: var(--ink);
  color: var(--body);
  font-family: var(--mono);
  font-size: 9.5px;
  cursor: pointer;
}

.select-wrap select:hover {
  border-color: var(--line-3);
  color: var(--paper);
}

.seg {
  display: inline-flex;
  height: 31px;
  border: 1px solid var(--line-2);
}

.seg button {
  min-width: 44px;
  padding: 0 9px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.seg button:first-child {
  border-left: 0;
}

.seg button:hover {
  color: var(--paper);
}

.seg button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}

.settings {
  position: relative;
}

.settings > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 31px;
  padding: 0 9px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  list-style: none;
  text-transform: uppercase;
  user-select: none;
}

.settings > summary::-webkit-details-marker {
  display: none;
}

.settings > summary:hover,
.settings[open] > summary {
  border-color: var(--paper);
  color: var(--paper);
}

.settings-panel {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 30;
  width: 264px;
  padding: 14px;
  border: 1px solid var(--line-2);
  background: var(--panel);
}

.settings-panel h3 {
  margin-bottom: 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.setting {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.setting label {
  color: var(--body);
  font-family: var(--mono);
  font-size: 9px;
}

.setting output {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
}

.settings-panel select {
  height: 25px;
  padding: 0 6px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: var(--ink);
  color: var(--body);
  font-family: var(--mono);
  font-size: 9px;
  cursor: pointer;
}

.setting input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  height: 2px;
  margin: 5px 0 3px;
  appearance: none;
  background: var(--line-2);
  cursor: pointer;
}

.setting input[type="range"]::-webkit-slider-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: var(--accent);
}

.setting input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
}

.settings-reset {
  width: 100%;
  height: 27px;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-reset:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-switch {
  display: none;
  flex: none;
  margin-bottom: 7px;
}

.mobile-switch .seg {
  display: grid;
  height: 36px;
  grid-template-columns: 1fr 1fr;
}

.split {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr);
}

.split-handle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}

.split-handle::before {
  width: 1px;
  height: 100%;
  background: transparent;
  content: "";
  transition: background var(--ease);
}

.split-handle:hover::before,
.split.is-resizing .split-handle::before {
  background: var(--accent);
}

.split-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-top: 0;
  border-bottom: 0;
  background: var(--panel);
  transform: translate(-50%, -50%);
}

.split.is-resizing {
  cursor: col-resize;
  user-select: none;
}

.split.is-resizing textarea {
  pointer-events: none;
}

.panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.panel-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.panel-index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
}

.panel-head h2 {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  white-space: nowrap;
}

.panel-meta kbd {
  padding: 1px 4px;
  border: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.zoom-tools {
  display: inline-flex;
  height: 24px;
  border: 1px solid var(--line);
}

.zoom-tools button {
  min-width: 24px;
  padding: 0 6px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
}

.zoom-tools button:first-child {
  border-left: 0;
}

.zoom-tools button:hover {
  color: var(--paper);
}

.zoom-tools #zoom-reset {
  min-width: 34px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zoom-tools button:disabled {
  cursor: default;
  opacity: 0.35;
}

.viz-stage.is-zoomed {
  flex: 0 0 auto;
  max-width: none;
  margin: 0 auto;
}

.viz-stage.is-zoomed svg {
  max-width: none;
}

.editor {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 46px minmax(0, 1fr);
  background: #0f0f0c;
}

.gutter {
  overflow: auto;
  padding: 16px 8px 36px 0;
  border-right: 1px solid var(--line);
  color: var(--ghost);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.78;
  text-align: right;
  white-space: pre;
  user-select: none;
  scrollbar-width: none;
}

.gutter::-webkit-scrollbar {
  display: none;
}

.editor-stack {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.highlight,
.editor-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px 20px 36px;
  margin: 0;
  border: 0;
  outline: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: 0;
  tab-size: 2;
  white-space: pre;
}

.highlight {
  overflow: hidden;
  color: var(--body);
  pointer-events: none;
}

.editor-input {
  overflow: auto;
  resize: none;
  appearance: none;
  background: transparent;
  color: transparent;
  caret-color: var(--paper);
  scrollbar-color: var(--line-2) transparent;
}

.editor-input::selection {
  background: rgba(241, 96, 47, 0.25);
  color: transparent;
}

.tk-key {
  color: var(--accent);
}

.tk-block {
  color: var(--paper);
  font-weight: 500;
}

.tk-const {
  color: var(--green);
}

.tk-str {
  color: var(--amber);
}

.tk-op {
  color: var(--blue);
}

.tk-com {
  color: var(--ghost);
}

.tk-punc {
  color: var(--faint);
}

.tk-num {
  color: var(--amber);
}

.panel-foot {
  display: flex;
  flex: none;
  align-items: center;
  gap: 18px;
  min-height: 33px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  background: var(--raised);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.panel-foot .foot-right {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.foot-sep {
  width: 1px;
  height: 10px;
  background: var(--line);
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.state::before {
  width: 4px;
  height: 4px;
  background: currentColor;
  content: "";
}

.state[data-state="error"] {
  color: var(--red);
}

.state[data-state="empty"] {
  color: var(--faint);
}

.viz-scroll {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: auto;
  background-color: #0f0f0c;
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size:
    96px 96px,
    96px 96px,
    24px 24px,
    24px 24px;
}

.page-playground[data-render-theme="light"] .viz-scroll {
  background-color: #f2ede0;
  background-image:
    linear-gradient(rgba(23, 21, 15, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 15, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(23, 21, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 15, 0.035) 1px, transparent 1px);
  background-size:
    96px 96px,
    96px 96px,
    24px 24px,
    24px 24px;
}

.viz-stage {
  display: grid;
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  margin: auto;
  place-items: center;
}

.viz-stage svg,
.viz-stage img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: auto;
}

.demo-grid .viz-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.viz-stage.is-stale svg {
  opacity: 0.3;
}

.viz-empty {
  max-width: 34ch;
  padding: 28px;
  border: 1px dashed var(--line-2);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.viz-empty strong {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-weight: 500;
}

.render-error {
  flex: none;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(239, 106, 88, 0.34);
  background: #1d0f0c;
  color: var(--red);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.workbench-foot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 28px;
  padding: 0 2px;
  color: var(--ghost);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workbench-foot a {
  color: var(--faint);
}

.workbench-foot a:hover {
  color: var(--paper);
}

/* ==========================================================================
   Docs
   ========================================================================== */

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

.progress {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  z-index: 90;
  width: 0;
  height: 2px;
  background: var(--accent);
  pointer-events: none;
}

.doc-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  padding: clamp(50px, 7vw, 86px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.doc-masthead h1 {
  margin-top: 20px;
  color: var(--paper);
  font-size: clamp(48px, 6.6vw, 88px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.doc-masthead-lede {
  max-width: 58ch;
  margin-top: 24px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.62;
}

.doc-meta {
  border-top: 1px solid var(--line-2);
}

.doc-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
}

.doc-meta dt {
  color: var(--faint);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.doc-meta dd {
  color: var(--paper);
  text-align: right;
}

.doc-main {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding: 42px 0 96px;
}

.doc-nav {
  position: sticky;
  top: calc(var(--topbar-h) + 30px);
  align-self: start;
  max-height: calc(100dvh - var(--topbar-h) - 52px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.doc-nav-label {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc-nav ol {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.doc-nav a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.4;
  transition: color var(--ease);
}

.doc-nav a .toc-num {
  color: var(--ghost);
  font-size: 8px;
}

.doc-nav a:hover {
  color: var(--paper);
}

.doc-nav a.is-active {
  color: var(--paper);
}

.doc-nav a.is-active .toc-num {
  color: var(--accent);
}

.doc-nav-foot {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ghost);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.doc-nav-foot a {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.doc-nav-foot a:hover {
  color: var(--paper);
}

.doc-content {
  min-width: 0;
  max-width: 790px;
}

.doc-section {
  padding-top: 48px;
  scroll-margin-top: calc(var(--topbar-h) + 26px);
}

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

.doc-section + .doc-section {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.doc-sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 11px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-2);
}

.doc-sec-num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
}

.doc-sec-head h2 {
  color: var(--paper);
  font-size: clamp(24px, 2.6vw, 31px);
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.doc-sec-file {
  margin-left: auto;
  color: var(--ghost);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.prose {
  color: var(--body);
  font-size: 14.5px;
  line-height: 1.72;
}

.prose p {
  margin-bottom: 17px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h3 {
  margin: 30px 0 10px;
  color: var(--paper);
  font-size: 17px;
  font-weight: 580;
  letter-spacing: -0.016em;
}

.prose ul,
.prose ol {
  padding-left: 18px;
  margin: 16px 0 20px;
}

.prose li {
  margin: 5px 0;
}

.prose li::marker {
  color: var(--faint);
}

.prose strong {
  color: var(--paper);
  font-weight: 600;
}

.prose a {
  color: var(--paper);
  text-decoration-line: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
  transition: color var(--ease), text-decoration-color var(--ease);
}

.prose a:hover {
  color: var(--accent-bright);
  text-decoration-color: currentColor;
}

.prose :not(pre) > code {
  padding: 1px 4px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.82em;
}

.prose .code {
  margin: 20px 0;
}

.note {
  padding: 14px 16px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.note strong {
  color: var(--paper);
}

.table-wrap {
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.table-wrap th,
.table-wrap td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: var(--panel-2);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-wrap td {
  color: var(--muted);
  line-height: 1.55;
}

.table-wrap td:first-child {
  color: var(--paper);
  white-space: nowrap;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap code {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.role-card {
  padding: 0 14px 13px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.role-card .swatch {
  height: 3px;
  margin: 0 -14px 12px;
}

.swatch-root {
  background: #f1602f;
}

.swatch-component {
  background: #6f9fce;
}

.swatch-boundary {
  background: #d7a24a;
}

.swatch-value {
  background: #2dd4bf;
}

.role-card strong {
  display: block;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-card code {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.9em;
}

.role-grid .role-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.role-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.doc-figure {
  margin: 22px 0;
  border: 1px solid var(--line-2);
  background: var(--panel);
}

.doc-figure-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--raised);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.doc-figure-head .fig-id {
  color: var(--accent);
}

.doc-figure-head .fig-name {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-figure-head .fig-size {
  margin-left: auto;
  white-space: nowrap;
}

.doc-figure-head .fig-open {
  color: var(--paper);
  white-space: nowrap;
}

.doc-figure-head .fig-open:hover {
  color: var(--accent-bright);
}

.doc-figure-stage.is-pannable {
  display: block !important;
  max-height: 540px;
  padding: 20px;
  overflow: auto;
  place-items: initial;
  text-align: left;
  cursor: grab;
}

.doc-figure-stage.is-pannable svg,
.doc-figure-stage.is-pannable img {
  width: 2200px;
  max-width: none;
  height: auto;
  margin: 0;
}

.doc-figure-stage.is-pannable.is-dragging {
  cursor: grabbing;
}

.doc-figure-stage {
  display: grid;
  padding: 22px;
  place-items: center;
  background-color: #0f0f0c;
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size:
    96px 96px,
    96px 96px,
    24px 24px,
    24px 24px;
}

.doc-figure-stage img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.doc-figure figcaption {
  padding: 10px 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.65;
}

.doc-figure figcaption code {
  color: var(--paper);
}

.doc-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.doc-end a {
  color: var(--paper);
}

.doc-end a:hover {
  color: var(--accent-bright);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

  .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
  }

  .footer-meta {
    grid-column: 1 / -1;
    align-items: flex-start;
    flex-direction: row;
    gap: 18px;
    text-align: left;
  }
}

@media (max-width: 1000px) {
  .doc-masthead {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .doc-meta {
    max-width: 420px;
  }

  .doc-main {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 28px;
  }

  .doc-nav {
    position: static;
    max-height: none;
    padding: 12px 14px;
    border: 1px solid var(--line);
    overflow: visible;
  }

  .doc-nav-label {
    padding-bottom: 8px;
  }

  .doc-nav ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
    margin-top: 5px;
  }

  .doc-nav a {
    padding: 4px 0;
    font-size: 10px;
  }

  .doc-nav-foot {
    display: none;
  }
}

@media (max-width: 960px) {
  .workbench-bar {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .bar-path {
    flex: 1 1 220px;
  }

  .bar-tools {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: 0;
  }

  .tool-label {
    display: none;
  }

  .mobile-switch {
    display: grid;
  }

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

  .split-handle {
    display: none;
  }

  .page-playground[data-panel="source"] .output-panel {
    display: none;
  }

  .page-playground[data-panel="output"] .source-panel {
    display: none;
  }
}

@media (max-width: 860px) {
  .intro-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .intro-side {
    max-width: 60ch;
  }

  .demo-grid {
    height: auto;
    grid-template-columns: 1fr;
  }

  .demo-grid .panel {
    height: 360px;
  }

  .demo-grid .demo-output {
    order: 1;
  }

  .demo-grid .demo-source {
    order: 2;
    border-top: 1px solid var(--line);
    border-right: 0;
    border-bottom: 0;
  }

  .demo-hint {
    display: none;
  }

  .agent-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 18px;
    --topbar-h: 56px;
  }

  .brand-sub {
    display: none;
  }

  .topbar-nav a {
    padding-inline: 10px;
  }

  .topbar-nav .nav-num {
    display: none;
  }

  .topbar-nav a:last-child {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-meta {
    flex-direction: column;
    gap: 6px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .doc-sec-file {
    display: none;
  }

  .doc-masthead h1 {
    font-size: clamp(44px, 12vw, 66px);
  }

  .doc-end {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .workbench {
    padding-inline: 7px;
  }

  .workbench-foot {
    padding-inline: 4px;
  }

  .workbench-foot .hide-mobile {
    display: none;
  }

  .bar-tools .btn {
    height: 31px;
    padding-inline: 9px;
  }

  .seg button {
    min-width: 38px;
    padding-inline: 7px;
  }
}

@media (max-width: 560px) {
  .intro-head h1 {
    font-size: clamp(44px, 13vw, 60px);
  }

  .intro-actions .btn {
    flex: 1 1 auto;
  }

  .demo-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .demo-grid .panel {
    height: 330px;
  }

  .output-panel .panel-meta > #dims {
    display: none;
  }

  .home-facts {
    grid-template-columns: 1fr;
  }

  .home-facts > div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .home-facts > div:first-child {
    border-top: 0;
  }

  .home-cli {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .home-cli code {
    order: 3;
    flex-basis: 100%;
    font-size: 9px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .bar-path {
    flex-basis: 100%;
  }

  .bar-tools {
    justify-content: flex-start;
    width: 100%;
  }

  .bar-tools .btn-solid {
    margin-left: auto;
  }

  .split {
    min-height: 0;
  }

  .viz-stage {
    padding: 12px;
  }

  .panel-foot {
    gap: 10px;
  }

  .panel-foot .foot-right {
    gap: 10px;
  }

  .doc-masthead {
    padding-top: 38px;
  }

  .doc-section {
    padding-top: 38px;
  }

  .doc-section + .doc-section {
    margin-top: 38px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .topbar,
  .skip-link,
  .doc-nav,
  .progress,
  .workbench-bar,
  .mobile-switch,
  .panel-foot,
  .workbench-foot {
    display: none !important;
  }

  body,
  .page-playground {
    height: auto;
    overflow: visible;
    background: #fff;
    color: #111;
  }

  .page-playground .workbench,
  .split {
    display: block;
  }

  .panel,
  .code,
  .doc-figure,
  .note,
  .table-wrap {
    border-color: #bbb;
    background: #fff;
  }
}
