/* sp2 Quantum — GateKeeper. Light mode, monochrome brand, minimal chrome. */

:root {
  --bg: #ffffff;
  --fg: #111113;          /* near-black brand foreground */
  --fg-strong: #18181b;   /* brand primary */
  --muted: #71717a;       /* secondary text */
  --muted-2: #a1a1aa;
  --border: #e4e4e7;      /* hairline borders */
  --border-strong: #d4d4d8;
  --surface: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(9, 9, 11, 0.04), 0 12px 40px rgba(9, 9, 11, 0.10);
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --logo-height: 40px;
  --product-name-size: 34px;
  --docs-rail-width: 300px;
  --docs-topbar-height: 72px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--fg);
  /* Soft studio backdrop, like a product showroom */
  background: radial-gradient(120% 90% at 50% 32%, #ffffff 0%, #f4f4f5 58%, #e9e9ec 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Top bar (floating) ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand { display: inline-flex; }
.brand img {
  height: var(--logo-height);
  width: auto;
  display: block;
  opacity: 0.92;
}

.product {
  display: grid;
  justify-items: end;
  gap: 7px;
  text-align: right;
  line-height: 1.15;
}
.product__name {
  display: block;
  font-size: var(--product-name-size);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
}
.info-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(212, 212, 216, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.04), 0 10px 24px rgba(9, 9, 11, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.18s ease, transform 0.18s ease;
}
.panel-open .info-trigger {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}
.info-trigger:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border-strong);
  color: var(--fg);
}
.info-trigger__icon {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

/* ---------- 3D stage ---------- */
.stage { position: fixed; inset: 0; z-index: 0; }
#scene {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
#scene:active { cursor: grabbing; }

/* ---------- Loading state ---------- */
.loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  pointer-events: none;
}
.loader__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg);
  animation: loaderPulse 1.1s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}
body.is-loaded .loader { display: none; }

/* ---------- Hotspots ---------- */
.hotspots {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}
.hotspot {
  appearance: none;
  position: absolute;
  width: max-content;
  min-width: 34px;
  min-height: 26px;
  transform: translate(-50%, -50%);
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.9);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.05;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 1px 3px rgba(9, 9, 11, 0.12);
  transition: transform 0.16s ease, background 0.16s ease;
}
.hotspot::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 1px solid var(--fg);
  opacity: 0.18;
  animation: pulse 2.6s ease-out infinite;
}
.hotspot:hover { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.hotspot.is-active {
  background: var(--fg-strong);
  color: #fff;
  border-color: var(--fg-strong);
}
.hotspot.is-active::before { border-color: var(--fg-strong); }
@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.4; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Idle hint ---------- */
.hint {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  z-index: 30;
  margin: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.04), 0 10px 26px rgba(9, 9, 11, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(17, 17, 19, 0.68);
  pointer-events: none;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}
.hint.is-hidden { opacity: 0; }
.hint__mobile { display: none; }

/* ---------- Detail panel ---------- */
.panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 40;
  width: 660px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 112px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 34px 32px;
  overflow-y: auto;
  transform: translate(-50%, -46%) scale(0.98);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}
.panel--has-media { width: 940px; }
.panel.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.panel__body {
  display: grid;
  gap: 30px;
}
.panel--has-media .panel__body {
  grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 1.22fr);
  align-items: start;
}
.panel__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
}
.panel__close:hover { background: #f4f4f5; color: var(--fg); }
.panel__index {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}
.panel__title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0;
}
.panel__desc {
  margin: 0 0 20px;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.panel__facts {
  padding-top: 15px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
}
.panel__media {
  margin: 0;
}
.panel__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 410px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.panel__media figcaption {
  margin-top: 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}

/* ---------- Bottom resource bar ---------- */
.resourcebar {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, auto);
  align-items: center;
  gap: 18px;
  width: max-content;
  max-width: calc(100vw - 220px);
  min-width: 0;
  min-height: 56px;
  padding: 16px 22px 16px 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: none;
  border-bottom: none;
  border-radius: 0 16px 0 0;
  box-shadow: 0 -1px 2px rgba(9, 9, 11, 0.04), 0 -14px 36px rgba(9, 9, 11, 0.08);
}
.resourcebar__links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 22px;
  flex-wrap: wrap;
  min-width: 0;
}
.resourcebar a,
.quote-button {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.resourcebar a {
  max-width: 100%;
  padding: 4px 0;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-transform: lowercase;
  letter-spacing: 0;
}
.resourcebar a:hover { color: var(--fg); }
.quote-button {
  appearance: none;
  border: 1px solid var(--fg-strong);
  background: var(--fg-strong);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  transition: opacity 0.15s ease, transform 0.05s ease;
}
.quote-button:hover { opacity: 0.88; }
.quote-button:active { transform: translateY(1px); }
.quote-button--full {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
}
.quote-button--floating {
  position: fixed;
  right: 28px;
  bottom: 22px;
  z-index: 20;
  min-height: 48px;
  padding-inline: 24px;
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.28);
  backdrop-filter: blur(2px);
}
.modal__card {
  position: relative;
  width: 460px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 30px 30px 28px;
}
.modal__card--info {
  width: 760px;
  padding: 42px 46px;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
}
.modal__close:hover { background: #f4f4f5; color: var(--fg); }
.modal__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.modal__title { margin: 0 0 18px; font-size: 32px; font-weight: 600; letter-spacing: 0; }
.modal__sub { margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.info-copy {
  display: grid;
  gap: 16px;
  max-width: 64ch;
}
.info-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Form ---------- */
.form { display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; color: var(--muted); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 9px 11px;
  width: 100%;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--fg);
  box-shadow: 0 0 0 3px rgba(17, 17, 19, 0.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  :root {
    --logo-height: 28px;
    --product-name-size: 22px;
    --mobile-footer-height: 64px;
    --docs-topbar-height: 64px;
  }
  body {
    background: radial-gradient(145% 90% at 50% 36%, #ffffff 0%, #f5f5f6 54%, #e6e7ea 100%);
  }
  .topbar {
    align-items: flex-start;
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top)) 14px 0;
  }
  .brand,
  .product {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0;
  }
  .product {
    max-width: calc(100vw - 210px);
    display: grid;
    justify-items: end;
    gap: 6px;
    padding: 0;
    text-align: right;
  }
  .product__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hotspot {
    width: max-content;
    min-width: 40px;
    min-height: 30px;
    padding: 0 11px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.86);
  }
  .hotspot::before { inset: -8px; }
  .hint {
    bottom: calc(var(--mobile-footer-height) + 74px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 28px);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.26);
    font-size: 11px;
    letter-spacing: 0;
  }
  .hint__desktop { display: none; }
  .hint__mobile { display: inline; }
  .resourcebar {
    left: 0;
    bottom: 0;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: none;
    min-height: calc(var(--mobile-footer-height) + env(safe-area-inset-bottom));
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-radius: 0;
  }
  .resourcebar__links {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .resourcebar__links::-webkit-scrollbar { display: none; }
  .quote-button--floating {
    right: 14px;
    bottom: calc(var(--mobile-footer-height) + 14px + env(safe-area-inset-bottom));
    min-height: 52px;
    padding-inline: 20px;
    border-radius: 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  .resourcebar a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 2px;
    font-size: 12px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .panel {
    top: 50%;
    left: 10px;
    right: 10px;
    bottom: auto;
    width: auto;
    max-height: calc(100dvh - 116px);
    padding: 30px 20px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translateY(-46%) scale(0.98);
  }
  .panel::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: var(--border-strong);
    transform: translateX(-50%);
  }
  .panel.is-open { transform: translateY(-50%) scale(1); }
  .panel__close {
    top: 16px;
    right: 16px;
    background: #f4f4f5;
  }
  .panel__title { font-size: 20px; }
  .panel__desc { font-size: 13px; line-height: 1.55; }
  .panel__facts { font-size: 11px; }
  .panel--has-media .panel__body { grid-template-columns: 1fr; gap: 18px; }
  .panel__media img { max-height: 36dvh; }
  .modal {
    align-items: end;
    justify-items: center;
    padding: 0 10px calc(10px + env(safe-area-inset-bottom));
  }
  .modal__card {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 20px - env(safe-area-inset-top));
    border-radius: 20px;
    padding: 28px 20px 20px;
  }
  .modal__title { font-size: 22px; }
  .field input,
  .field select,
  .field textarea {
    min-height: 44px;
    font-size: 16px;
  }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Docs page ---------- */
html.docs-html,
html.docs-html body {
  min-height: 100%;
  height: auto;
  overflow: auto;
}

body.docs-page {
  min-height: 100%;
  overflow: visible;
  color: var(--fg);
  background: #f8f9fa;
}

.docs-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px 28px;
  background: rgba(248, 249, 250, 0.88);
  border-bottom: 1px solid rgba(212, 212, 216, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.docs-topbar__brand img {
  height: 34px;
}

.docs-product--commands {
  gap: 4px;
}

.docs-product--commands .product__name {
  font-size: 26px;
}

.docs-product__return {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  text-decoration: none;
}

.docs-product__return:hover {
  color: var(--fg);
}

.docs-topbar__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.docs-topbar__nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 999px;
}

.docs-topbar__nav a:hover,
.docs-topbar__nav a[aria-current="page"] {
  color: var(--fg);
  background: #fff;
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.05);
}

.docs-shell {
  display: grid;
  grid-template-columns: var(--docs-rail-width) minmax(0, 1fr);
  min-height: 100dvh;
}

.docs-rail {
  position: fixed;
  top: var(--docs-topbar-height);
  left: 0;
  bottom: 0;
  width: var(--docs-rail-width);
  height: auto;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 32px 24px 32px 28px;
  font-family: var(--font-sans);
  opacity: 0.68;
  transition: opacity 0.18s ease;
}

.docs-rail:hover,
.docs-rail:focus-within {
  opacity: 1;
}

.docs-rail__inner {
  position: sticky;
  top: 24px;
}

.docs-eyebrow,
.docs-loading {
  font-family: var(--font-mono);
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-rail h2 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
}

.docs-nav {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-nav a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: baseline;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.docs-nav a span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}

.docs-nav a:hover,
.docs-nav a.is-active {
  color: var(--fg);
  background: #fff;
}

.docs-nav__sub {
  display: grid;
  gap: 1px;
  margin: 2px 0 8px;
  padding: 0;
  list-style: none;
}

.docs-nav .docs-nav__sub-link {
  display: block;
  grid-template-columns: none;
  gap: 0;
  padding: 4px 8px 4px 54px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
}

.docs-nav .docs-nav__sub-link:hover,
.docs-nav .docs-nav__sub-link.is-active {
  color: var(--fg);
  background: transparent;
}

.command-nav {
  gap: 12px;
}

.command-nav a {
  display: block;
  grid-template-columns: none;
  gap: 0;
  padding: 6px 8px;
}

.command-nav__group-title {
  margin: 0 8px 5px 8px;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.command-nav__group-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.command-nav__name {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-main {
  grid-column: 2;
  min-width: 0;
  overflow: visible;
  padding-top: 104px;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

.docs-wrap {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 0 30px 96px;
}

.docs-article {
  padding-bottom: 40vh;
}

.docs-section {
  padding: 56px 0 22px;
}

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

.docs-section + .docs-section {
  border-top: 1px solid var(--border);
}

.docs-section h2 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0;
}

.docs-section h3 {
  margin: 46px 0 12px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}

.docs-section h4,
.docs-section h5 {
  margin: 34px 0 10px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
}

.docs-section p,
.docs-section li {
  color: #3f3f46;
  font-size: 16px;
  line-height: 1.78;
}

.docs-section p,
.docs-section ul,
.docs-section ol,
.docs-section pre,
.docs-section blockquote {
  margin: 18px 0;
}

.docs-section ul,
.docs-section ol {
  padding-left: 24px;
}

.docs-section a {
  color: var(--fg);
  text-decoration-color: var(--muted-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.docs-section a:hover {
  text-decoration-color: var(--fg);
}

.docs-section code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 4px;
}

.docs-section pre {
  position: relative;
  overflow-x: auto;
  background: #f6f8fa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 38px 16px 16px;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
}

.docs-section pre.code-block--compact {
  padding: 14px 74px 14px 16px;
}

.docs-section pre code {
  display: block;
  white-space: pre;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.7;
}

.docs-section pre[data-language]::before {
  content: attr(data-language);
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-section blockquote {
  border-left: 3px solid var(--fg);
  background: #fff;
  padding: 12px 18px;
}

.docs-section blockquote p {
  margin: 0;
}

.docs-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
}

.docs-section th,
.docs-section td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.docs-section th {
  color: var(--fg);
  background: #f4f4f5;
  font-weight: 600;
}

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

.docs-section img {
  display: block;
  width: 100%;
  height: auto;
  margin: 24px 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.docs-caption {
  margin: 0 0 24px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}

.docs-loading {
  margin-top: 42px;
}

@media (max-width: 760px) {
  body.docs-page {
    background: #f8f9fa;
  }

  .docs-topbar {
    min-height: 64px;
    padding: calc(11px + env(safe-area-inset-top)) 14px 11px;
  }

  .docs-topbar__brand img {
    height: 28px;
  }

  .docs-product--commands .product__name {
    font-size: 20px;
  }

  .docs-product__return {
    font-size: 10px;
  }

  .docs-topbar__nav {
    gap: 4px;
    font-size: 11px;
  }

  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-rail {
    display: none;
  }

  .docs-main {
    grid-column: 1;
    padding-top: calc(84px + env(safe-area-inset-top));
    scroll-padding-top: calc(92px + env(safe-area-inset-top));
  }

  .docs-wrap {
    padding: 0 18px 72px;
  }

  .docs-section p,
  .docs-section li {
    font-size: 15px;
    line-height: 1.7;
  }

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

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

  .docs-section h3 {
    font-size: 19px;
  }
}
